mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-29 03:00:45 -04:00
Replace the old window-resize + Bootstrap event listener approach with per-output ResizeObserver, IntersectionObserver, and MutationObserver. Each bound output now gets its own observers that handle resize, visibility, and theme changes independently, rather than relying on global window resize events and jQuery Bootstrap hooks. Also renames sendImageSize -> sendOutputInfo, simplifies bind.ts by removing sendOutputHiddenState/maybeAddThemeObserver from BindInputsCtx, and makes ImageOutputBinding.resize() actually set width/height on the img element. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>