@oxy.so/bloom 23.1.0 → 23.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +1 -2
- package/README.md +1 -1
- package/docs/adoption-matrix.mdx +1 -2
- package/docs/bloom-language-codemod.mdx +4 -2
- package/docs/bloom-language-for-agents.mdx +1 -0
- package/docs/bloom-language.mdx +9 -1
- package/docs/page-header.mdx +3 -3
- package/docs/public-parts.mdx +2 -5
- package/docs/semantic-composition.mdx +2 -2
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/docs/verification.mdx +1 -1
- package/docs/zoomable-media-gallery.mdx +33 -3
- package/lib/commonjs/agent-chat/shared.js +1 -3
- package/lib/commonjs/agent-chat/shared.js.map +1 -1
- package/lib/commonjs/agent-progress/AgentProgressPlan.js +1 -2
- package/lib/commonjs/agent-progress/AgentProgressPlan.js.map +1 -1
- package/lib/commonjs/ai-chat/AiChatGalleryPanelBase.js +9 -9
- package/lib/commonjs/ai-chat/AiChatGalleryPanelBase.js.map +1 -1
- package/lib/commonjs/ai-chat/AiChatImageGenerationBase.js +6 -6
- package/lib/commonjs/ai-chat/AiChatImageGenerationBase.js.map +1 -1
- package/lib/commonjs/app-shell/use-shell-viewport.js +0 -11
- package/lib/commonjs/app-shell/use-shell-viewport.js.map +1 -1
- package/lib/commonjs/avatar/Avatar.js +37 -18
- package/lib/commonjs/avatar/Avatar.js.map +1 -1
- package/lib/commonjs/avatar/LiveBadge.js +6 -1
- package/lib/commonjs/avatar/LiveBadge.js.map +1 -1
- package/lib/commonjs/avatar-flight/create-avatar-flight-layer.js +5 -5
- package/lib/commonjs/avatar-flight/create-avatar-flight-layer.js.map +1 -1
- package/lib/commonjs/button/shared.js +0 -7
- package/lib/commonjs/button/shared.js.map +1 -1
- package/lib/commonjs/canvas/CanvasPanelBase.js +2 -2
- package/lib/commonjs/canvas/CanvasPanelBase.js.map +1 -1
- package/lib/commonjs/card/SelectionCard.js +11 -11
- package/lib/commonjs/card/SelectionCard.js.map +1 -1
- package/lib/commonjs/chat-composer/shared.js +0 -7
- package/lib/commonjs/chat-composer/shared.js.map +1 -1
- package/lib/commonjs/chat-list/shared.js +1 -8
- package/lib/commonjs/chat-list/shared.js.map +1 -1
- package/lib/commonjs/chip/Chip.js +2 -2
- package/lib/commonjs/chip/Chip.js.map +1 -1
- package/lib/commonjs/composer-panel/ModelPickerBase.js +2 -1
- package/lib/commonjs/composer-panel/ModelPickerBase.js.map +1 -1
- package/lib/commonjs/composer-panel/shared.js +0 -7
- package/lib/commonjs/composer-panel/shared.js.map +1 -1
- package/lib/commonjs/content-panel/ContentPanel.web.js +12 -35
- package/lib/commonjs/content-panel/ContentPanel.web.js.map +1 -1
- package/lib/commonjs/cover-header/CoverHeader.js +1 -2
- package/lib/commonjs/cover-header/CoverHeader.js.map +1 -1
- package/lib/commonjs/dialog/DetailDialogMotion.js +1 -2
- package/lib/commonjs/dialog/DetailDialogMotion.js.map +1 -1
- package/lib/commonjs/floating/FloatingPanel.js +3 -3
- package/lib/commonjs/floating/FloatingPanel.js.map +1 -1
- package/lib/commonjs/floating/TriggerSlot.js +2 -2
- package/lib/commonjs/floating/TriggerSlot.js.map +1 -1
- package/lib/commonjs/floating/constants.js +1 -1
- package/lib/commonjs/floating/menu-swatch-row.js +2 -2
- package/lib/commonjs/floating/menu-swatch-row.js.map +1 -1
- package/lib/commonjs/floating/shared.js +2 -2
- package/lib/commonjs/floating/shared.js.map +1 -1
- package/lib/commonjs/image/BloomImage.js +4 -0
- package/lib/commonjs/image/BloomImage.js.map +1 -1
- package/lib/commonjs/image/expo-image-module.js.map +1 -1
- package/lib/commonjs/link-preview/LinkPreviewCard.js +21 -5
- package/lib/commonjs/link-preview/LinkPreviewCard.js.map +1 -1
- package/lib/commonjs/lyrics/shared.js +0 -12
- package/lib/commonjs/lyrics/shared.js.map +1 -1
- package/lib/commonjs/mail-list/shared.js +1 -11
- package/lib/commonjs/mail-list/shared.js.map +1 -1
- package/lib/commonjs/media-card/shared.js +0 -12
- package/lib/commonjs/media-card/shared.js.map +1 -1
- package/lib/commonjs/media-flight/MediaSurface.js +34 -12
- package/lib/commonjs/media-flight/MediaSurface.js.map +1 -1
- package/lib/commonjs/media-header/shared.js +0 -12
- package/lib/commonjs/media-header/shared.js.map +1 -1
- package/lib/commonjs/media-player/shared.js +0 -12
- package/lib/commonjs/media-player/shared.js.map +1 -1
- package/lib/commonjs/multi-agent-chat/Marketplace.js +3 -3
- package/lib/commonjs/multi-agent-chat/Marketplace.js.map +1 -1
- package/lib/commonjs/music-library/shared.js +0 -12
- package/lib/commonjs/music-library/shared.js.map +1 -1
- package/lib/commonjs/page-header/EdgeScrim.js +19 -16
- package/lib/commonjs/page-header/EdgeScrim.js.map +1 -1
- package/lib/commonjs/page-header/PageHeader.js +10 -2
- package/lib/commonjs/page-header/PageHeader.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoardCanvas.js +2 -2
- package/lib/commonjs/project-board/ProjectBoardCanvas.js.map +1 -1
- package/lib/commonjs/property-insights/shared.js +1 -14
- package/lib/commonjs/property-insights/shared.js.map +1 -1
- package/lib/commonjs/radio/RadioHost.js +2 -2
- package/lib/commonjs/radio/RadioHost.js.map +1 -1
- package/lib/commonjs/select/Select.js +2 -2
- package/lib/commonjs/select/Select.js.map +1 -1
- package/lib/commonjs/select/Select.web.js +2 -2
- package/lib/commonjs/select/Select.web.js.map +1 -1
- package/lib/commonjs/select/shared.js +2 -2
- package/lib/commonjs/select/shared.js.map +1 -1
- package/lib/commonjs/shapes/Image.js +11 -3
- package/lib/commonjs/shapes/Image.js.map +1 -1
- package/lib/commonjs/sidebar/SidebarItem.js +2 -2
- package/lib/commonjs/sidebar/SidebarItem.js.map +1 -1
- package/lib/commonjs/sidebar/SidebarOnboardingCard.js +2 -2
- package/lib/commonjs/sidebar/SidebarOnboardingCard.js.map +1 -1
- package/lib/commonjs/sidebar/parts.js +0 -50
- package/lib/commonjs/sidebar/parts.js.map +1 -1
- package/lib/commonjs/stay-filters/EnergyRatingFilter.js +0 -6
- package/lib/commonjs/stay-filters/EnergyRatingFilter.js.map +1 -1
- package/lib/commonjs/styles/aria-hosts.js +20 -0
- package/lib/commonjs/styles/aria-hosts.js.map +1 -0
- package/lib/commonjs/surface/Surface.js +8 -2
- package/lib/commonjs/surface/Surface.js.map +1 -1
- package/lib/commonjs/surface/Surface.web.js +1 -2
- package/lib/commonjs/surface/Surface.web.js.map +1 -1
- package/lib/commonjs/surface/SurfacePaint.js +1 -2
- package/lib/commonjs/surface/SurfacePaint.js.map +1 -1
- package/lib/commonjs/toast/animations.js +1 -2
- package/lib/commonjs/toast/animations.js.map +1 -1
- package/lib/commonjs/typography/TypographyScope.js +0 -6
- package/lib/commonjs/typography/TypographyScope.js.map +1 -1
- package/lib/commonjs/zoomable-media-gallery/ZoomableMediaGalleryBase.js +255 -258
- package/lib/commonjs/zoomable-media-gallery/ZoomableMediaGalleryBase.js.map +1 -1
- package/lib/module/agent-chat/shared.js +0 -2
- package/lib/module/agent-chat/shared.js.map +1 -1
- package/lib/module/agent-progress/AgentProgressPlan.js +1 -2
- package/lib/module/agent-progress/AgentProgressPlan.js.map +1 -1
- package/lib/module/ai-chat/AiChatGalleryPanelBase.js +1 -1
- package/lib/module/ai-chat/AiChatGalleryPanelBase.js.map +1 -1
- package/lib/module/ai-chat/AiChatImageGenerationBase.js +1 -1
- package/lib/module/ai-chat/AiChatImageGenerationBase.js.map +1 -1
- package/lib/module/app-shell/use-shell-viewport.js +1 -11
- package/lib/module/app-shell/use-shell-viewport.js.map +1 -1
- package/lib/module/avatar/Avatar.js +37 -18
- package/lib/module/avatar/Avatar.js.map +1 -1
- package/lib/module/avatar/LiveBadge.js +6 -1
- package/lib/module/avatar/LiveBadge.js.map +1 -1
- package/lib/module/avatar-flight/create-avatar-flight-layer.js +6 -6
- package/lib/module/avatar-flight/create-avatar-flight-layer.js.map +1 -1
- package/lib/module/button/shared.js +0 -6
- package/lib/module/button/shared.js.map +1 -1
- package/lib/module/canvas/CanvasPanelBase.js +2 -2
- package/lib/module/canvas/CanvasPanelBase.js.map +1 -1
- package/lib/module/card/SelectionCard.js +1 -1
- package/lib/module/card/SelectionCard.js.map +1 -1
- package/lib/module/chat-composer/shared.js +1 -1
- package/lib/module/chat-composer/shared.js.map +1 -1
- package/lib/module/chat-list/shared.js +0 -7
- package/lib/module/chat-list/shared.js.map +1 -1
- package/lib/module/chip/Chip.js +2 -2
- package/lib/module/chip/Chip.js.map +1 -1
- package/lib/module/composer-panel/ModelPickerBase.js +2 -1
- package/lib/module/composer-panel/ModelPickerBase.js.map +1 -1
- package/lib/module/composer-panel/shared.js +0 -1
- package/lib/module/composer-panel/shared.js.map +1 -1
- package/lib/module/content-panel/ContentPanel.web.js +12 -35
- package/lib/module/content-panel/ContentPanel.web.js.map +1 -1
- package/lib/module/cover-header/CoverHeader.js +1 -2
- package/lib/module/cover-header/CoverHeader.js.map +1 -1
- package/lib/module/dialog/DetailDialogMotion.js +2 -3
- package/lib/module/dialog/DetailDialogMotion.js.map +1 -1
- package/lib/module/floating/FloatingPanel.js +3 -3
- package/lib/module/floating/FloatingPanel.js.map +1 -1
- package/lib/module/floating/TriggerSlot.js +2 -2
- package/lib/module/floating/TriggerSlot.js.map +1 -1
- package/lib/module/floating/constants.js +1 -1
- package/lib/module/floating/menu-swatch-row.js +2 -2
- package/lib/module/floating/menu-swatch-row.js.map +1 -1
- package/lib/module/floating/shared.js +2 -2
- package/lib/module/floating/shared.js.map +1 -1
- package/lib/module/image/BloomImage.js +4 -0
- package/lib/module/image/BloomImage.js.map +1 -1
- package/lib/module/image/expo-image-module.js.map +1 -1
- package/lib/module/link-preview/LinkPreviewCard.js +21 -5
- package/lib/module/link-preview/LinkPreviewCard.js.map +1 -1
- package/lib/module/lyrics/shared.js +1 -2
- package/lib/module/lyrics/shared.js.map +1 -1
- package/lib/module/mail-list/shared.js +0 -9
- package/lib/module/mail-list/shared.js.map +1 -1
- package/lib/module/media-card/shared.js +1 -2
- package/lib/module/media-card/shared.js.map +1 -1
- package/lib/module/media-flight/MediaSurface.js +34 -12
- package/lib/module/media-flight/MediaSurface.js.map +1 -1
- package/lib/module/media-header/shared.js +1 -2
- package/lib/module/media-header/shared.js.map +1 -1
- package/lib/module/media-player/shared.js +1 -2
- package/lib/module/media-player/shared.js.map +1 -1
- package/lib/module/multi-agent-chat/Marketplace.js +3 -3
- package/lib/module/multi-agent-chat/Marketplace.js.map +1 -1
- package/lib/module/music-library/shared.js +0 -1
- package/lib/module/music-library/shared.js.map +1 -1
- package/lib/module/page-header/EdgeScrim.js +19 -16
- package/lib/module/page-header/EdgeScrim.js.map +1 -1
- package/lib/module/page-header/PageHeader.js +11 -3
- package/lib/module/page-header/PageHeader.js.map +1 -1
- package/lib/module/project-board/ProjectBoardCanvas.js +2 -2
- package/lib/module/project-board/ProjectBoardCanvas.js.map +1 -1
- package/lib/module/property-insights/shared.js +1 -2
- package/lib/module/property-insights/shared.js.map +1 -1
- package/lib/module/radio/RadioHost.js +2 -2
- package/lib/module/radio/RadioHost.js.map +1 -1
- package/lib/module/select/Select.js +2 -2
- package/lib/module/select/Select.js.map +1 -1
- package/lib/module/select/Select.web.js +2 -2
- package/lib/module/select/Select.web.js.map +1 -1
- package/lib/module/select/shared.js +2 -2
- package/lib/module/select/shared.js.map +1 -1
- package/lib/module/shapes/Image.js +11 -3
- package/lib/module/shapes/Image.js.map +1 -1
- package/lib/module/sidebar/SidebarItem.js +2 -2
- package/lib/module/sidebar/SidebarItem.js.map +1 -1
- package/lib/module/sidebar/SidebarOnboardingCard.js +2 -2
- package/lib/module/sidebar/SidebarOnboardingCard.js.map +1 -1
- package/lib/module/sidebar/parts.js +3 -52
- package/lib/module/sidebar/parts.js.map +1 -1
- package/lib/module/stay-filters/EnergyRatingFilter.js +0 -1
- package/lib/module/stay-filters/EnergyRatingFilter.js.map +1 -1
- package/lib/module/styles/aria-hosts.js +16 -0
- package/lib/module/styles/aria-hosts.js.map +1 -0
- package/lib/module/surface/Surface.js +11 -5
- package/lib/module/surface/Surface.js.map +1 -1
- package/lib/module/surface/Surface.web.js +2 -3
- package/lib/module/surface/Surface.web.js.map +1 -1
- package/lib/module/surface/SurfacePaint.js +1 -2
- package/lib/module/surface/SurfacePaint.js.map +1 -1
- package/lib/module/toast/animations.js +0 -1
- package/lib/module/toast/animations.js.map +1 -1
- package/lib/module/typography/TypographyScope.js +0 -5
- package/lib/module/typography/TypographyScope.js.map +1 -1
- package/lib/module/zoomable-media-gallery/ZoomableMediaGalleryBase.js +256 -259
- package/lib/module/zoomable-media-gallery/ZoomableMediaGalleryBase.js.map +1 -1
- package/lib/typescript/commonjs/agent-chat/shared.d.ts +0 -2
- package/lib/typescript/commonjs/agent-chat/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-progress/AgentProgressPlan.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/use-shell-viewport.d.ts +0 -1
- package/lib/typescript/commonjs/app-shell/use-shell-viewport.d.ts.map +1 -1
- package/lib/typescript/commonjs/avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/avatar/LiveBadge.d.ts +6 -2
- package/lib/typescript/commonjs/avatar/LiveBadge.d.ts.map +1 -1
- package/lib/typescript/commonjs/button/shared.d.ts +0 -2
- package/lib/typescript/commonjs/button/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/button/types.d.ts +1 -1
- package/lib/typescript/commonjs/button/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/shared.d.ts +0 -1
- package/lib/typescript/commonjs/chat-composer/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-list/shared.d.ts +0 -9
- package/lib/typescript/commonjs/chat-list/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/composer-panel/shared.d.ts +0 -1
- package/lib/typescript/commonjs/composer-panel/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/content-panel/ContentPanel.web.d.ts +9 -11
- package/lib/typescript/commonjs/content-panel/ContentPanel.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/cover-header/CoverHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/DetailDialogMotion.d.ts.map +1 -1
- package/lib/typescript/commonjs/floating/constants.d.ts +1 -1
- package/lib/typescript/commonjs/floating/shared.d.ts +1 -1
- package/lib/typescript/commonjs/floating/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/floating/types.d.ts +2 -2
- package/lib/typescript/commonjs/floating/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/image/BloomImage.d.ts +1 -1
- package/lib/typescript/commonjs/image/BloomImage.d.ts.map +1 -1
- package/lib/typescript/commonjs/image/expo-image-module.d.ts +3 -1
- package/lib/typescript/commonjs/image/expo-image-module.d.ts.map +1 -1
- package/lib/typescript/commonjs/image/index.d.ts +1 -1
- package/lib/typescript/commonjs/image/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/image/types.d.ts +18 -0
- package/lib/typescript/commonjs/image/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/link-preview/LinkPreviewCard.d.ts.map +1 -1
- package/lib/typescript/commonjs/link-preview/types.d.ts +7 -0
- package/lib/typescript/commonjs/link-preview/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/lyrics/shared.d.ts +0 -2
- package/lib/typescript/commonjs/lyrics/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/mail-list/shared.d.ts +0 -9
- package/lib/typescript/commonjs/mail-list/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/media-card/shared.d.ts +0 -2
- package/lib/typescript/commonjs/media-card/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/media-flight/MediaSurface.d.ts +10 -1
- package/lib/typescript/commonjs/media-flight/MediaSurface.d.ts.map +1 -1
- package/lib/typescript/commonjs/media-header/shared.d.ts +0 -2
- package/lib/typescript/commonjs/media-header/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/media-header/types.d.ts +1 -1
- package/lib/typescript/commonjs/media-header/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/media-player/PlayerIconButton.d.ts +1 -1
- package/lib/typescript/commonjs/media-player/PlayerIconButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/media-player/shared.d.ts +0 -2
- package/lib/typescript/commonjs/media-player/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/music-library/shared.d.ts +0 -2
- package/lib/typescript/commonjs/music-library/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/page-header/EdgeScrim.d.ts +19 -16
- package/lib/typescript/commonjs/page-header/EdgeScrim.d.ts.map +1 -1
- package/lib/typescript/commonjs/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/property-insights/shared.d.ts +0 -2
- package/lib/typescript/commonjs/property-insights/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/queue-panel/QueueIconButton.d.ts +1 -1
- package/lib/typescript/commonjs/queue-panel/QueueIconButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/shapes/Image.d.ts +1 -1
- package/lib/typescript/commonjs/shapes/Image.d.ts.map +1 -1
- package/lib/typescript/commonjs/shapes/types.d.ts +10 -0
- package/lib/typescript/commonjs/shapes/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/parts.d.ts +0 -6
- package/lib/typescript/commonjs/sidebar/parts.d.ts.map +1 -1
- package/lib/typescript/commonjs/stay-filters/EnergyRatingFilter.d.ts +1 -2
- package/lib/typescript/commonjs/stay-filters/EnergyRatingFilter.d.ts.map +1 -1
- package/lib/typescript/commonjs/styles/aria-hosts.d.ts +49 -0
- package/lib/typescript/commonjs/styles/aria-hosts.d.ts.map +1 -0
- package/lib/typescript/commonjs/surface/Surface.d.ts.map +1 -1
- package/lib/typescript/commonjs/surface/Surface.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/surface/SurfacePaint.d.ts.map +1 -1
- package/lib/typescript/commonjs/toast/animations.d.ts +0 -1
- package/lib/typescript/commonjs/toast/animations.d.ts.map +1 -1
- package/lib/typescript/commonjs/track-list/parts.d.ts +1 -1
- package/lib/typescript/commonjs/track-list/parts.d.ts.map +1 -1
- package/lib/typescript/commonjs/typography/TypographyScope.d.ts +0 -4
- package/lib/typescript/commonjs/typography/TypographyScope.d.ts.map +1 -1
- package/lib/typescript/commonjs/zoomable-media-gallery/ZoomableMediaGalleryBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/zoomable-media-gallery/types.d.ts +11 -0
- package/lib/typescript/commonjs/zoomable-media-gallery/types.d.ts.map +1 -1
- package/lib/typescript/module/agent-chat/shared.d.ts +0 -2
- package/lib/typescript/module/agent-chat/shared.d.ts.map +1 -1
- package/lib/typescript/module/agent-progress/AgentProgressPlan.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/use-shell-viewport.d.ts +0 -1
- package/lib/typescript/module/app-shell/use-shell-viewport.d.ts.map +1 -1
- package/lib/typescript/module/avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/module/avatar/LiveBadge.d.ts +6 -2
- package/lib/typescript/module/avatar/LiveBadge.d.ts.map +1 -1
- package/lib/typescript/module/button/shared.d.ts +0 -2
- package/lib/typescript/module/button/shared.d.ts.map +1 -1
- package/lib/typescript/module/button/types.d.ts +1 -1
- package/lib/typescript/module/button/types.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/shared.d.ts +0 -1
- package/lib/typescript/module/chat-composer/shared.d.ts.map +1 -1
- package/lib/typescript/module/chat-list/shared.d.ts +0 -9
- package/lib/typescript/module/chat-list/shared.d.ts.map +1 -1
- package/lib/typescript/module/composer-panel/shared.d.ts +0 -1
- package/lib/typescript/module/composer-panel/shared.d.ts.map +1 -1
- package/lib/typescript/module/content-panel/ContentPanel.web.d.ts +9 -11
- package/lib/typescript/module/content-panel/ContentPanel.web.d.ts.map +1 -1
- package/lib/typescript/module/cover-header/CoverHeader.d.ts.map +1 -1
- package/lib/typescript/module/dialog/DetailDialogMotion.d.ts.map +1 -1
- package/lib/typescript/module/floating/constants.d.ts +1 -1
- package/lib/typescript/module/floating/shared.d.ts +1 -1
- package/lib/typescript/module/floating/shared.d.ts.map +1 -1
- package/lib/typescript/module/floating/types.d.ts +2 -2
- package/lib/typescript/module/floating/types.d.ts.map +1 -1
- package/lib/typescript/module/image/BloomImage.d.ts +1 -1
- package/lib/typescript/module/image/BloomImage.d.ts.map +1 -1
- package/lib/typescript/module/image/expo-image-module.d.ts +3 -1
- package/lib/typescript/module/image/expo-image-module.d.ts.map +1 -1
- package/lib/typescript/module/image/index.d.ts +1 -1
- package/lib/typescript/module/image/index.d.ts.map +1 -1
- package/lib/typescript/module/image/types.d.ts +18 -0
- package/lib/typescript/module/image/types.d.ts.map +1 -1
- package/lib/typescript/module/link-preview/LinkPreviewCard.d.ts.map +1 -1
- package/lib/typescript/module/link-preview/types.d.ts +7 -0
- package/lib/typescript/module/link-preview/types.d.ts.map +1 -1
- package/lib/typescript/module/lyrics/shared.d.ts +0 -2
- package/lib/typescript/module/lyrics/shared.d.ts.map +1 -1
- package/lib/typescript/module/mail-list/shared.d.ts +0 -9
- package/lib/typescript/module/mail-list/shared.d.ts.map +1 -1
- package/lib/typescript/module/media-card/shared.d.ts +0 -2
- package/lib/typescript/module/media-card/shared.d.ts.map +1 -1
- package/lib/typescript/module/media-flight/MediaSurface.d.ts +10 -1
- package/lib/typescript/module/media-flight/MediaSurface.d.ts.map +1 -1
- package/lib/typescript/module/media-header/shared.d.ts +0 -2
- package/lib/typescript/module/media-header/shared.d.ts.map +1 -1
- package/lib/typescript/module/media-header/types.d.ts +1 -1
- package/lib/typescript/module/media-header/types.d.ts.map +1 -1
- package/lib/typescript/module/media-player/PlayerIconButton.d.ts +1 -1
- package/lib/typescript/module/media-player/PlayerIconButton.d.ts.map +1 -1
- package/lib/typescript/module/media-player/shared.d.ts +0 -2
- package/lib/typescript/module/media-player/shared.d.ts.map +1 -1
- package/lib/typescript/module/music-library/shared.d.ts +0 -2
- package/lib/typescript/module/music-library/shared.d.ts.map +1 -1
- package/lib/typescript/module/page-header/EdgeScrim.d.ts +19 -16
- package/lib/typescript/module/page-header/EdgeScrim.d.ts.map +1 -1
- package/lib/typescript/module/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/module/property-insights/shared.d.ts +0 -2
- package/lib/typescript/module/property-insights/shared.d.ts.map +1 -1
- package/lib/typescript/module/queue-panel/QueueIconButton.d.ts +1 -1
- package/lib/typescript/module/queue-panel/QueueIconButton.d.ts.map +1 -1
- package/lib/typescript/module/shapes/Image.d.ts +1 -1
- package/lib/typescript/module/shapes/Image.d.ts.map +1 -1
- package/lib/typescript/module/shapes/types.d.ts +10 -0
- package/lib/typescript/module/shapes/types.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/parts.d.ts +0 -6
- package/lib/typescript/module/sidebar/parts.d.ts.map +1 -1
- package/lib/typescript/module/stay-filters/EnergyRatingFilter.d.ts +1 -2
- package/lib/typescript/module/stay-filters/EnergyRatingFilter.d.ts.map +1 -1
- package/lib/typescript/module/styles/aria-hosts.d.ts +49 -0
- package/lib/typescript/module/styles/aria-hosts.d.ts.map +1 -0
- package/lib/typescript/module/surface/Surface.d.ts.map +1 -1
- package/lib/typescript/module/surface/Surface.web.d.ts.map +1 -1
- package/lib/typescript/module/surface/SurfacePaint.d.ts.map +1 -1
- package/lib/typescript/module/toast/animations.d.ts +0 -1
- package/lib/typescript/module/toast/animations.d.ts.map +1 -1
- package/lib/typescript/module/track-list/parts.d.ts +1 -1
- package/lib/typescript/module/track-list/parts.d.ts.map +1 -1
- package/lib/typescript/module/typography/TypographyScope.d.ts +0 -4
- package/lib/typescript/module/typography/TypographyScope.d.ts.map +1 -1
- package/lib/typescript/module/zoomable-media-gallery/ZoomableMediaGalleryBase.d.ts.map +1 -1
- package/lib/typescript/module/zoomable-media-gallery/types.d.ts +11 -0
- package/lib/typescript/module/zoomable-media-gallery/types.d.ts.map +1 -1
- package/package.json +1 -18
- package/src/__tests__/support/held-animations.ts +33 -0
- package/src/__tests__/support/public-part-classifications.json +0 -3
- package/src/agent-chat/shared.ts +0 -2
- package/src/agent-progress/AgentProgressPlan.tsx +2 -3
- package/src/ai-chat/AiChatGalleryPanelBase.tsx +1 -1
- package/src/ai-chat/AiChatImageGenerationBase.tsx +1 -1
- package/src/app-shell/use-shell-viewport.ts +1 -7
- package/src/avatar/Avatar.tsx +44 -16
- package/src/avatar/LiveBadge.tsx +10 -3
- package/src/avatar-flight/create-avatar-flight-layer.tsx +8 -8
- package/src/button/shared.ts +0 -6
- package/src/button/types.ts +1 -1
- package/src/canvas/CanvasPanelBase.tsx +3 -3
- package/src/card/SelectionCard.tsx +1 -1
- package/src/chat-composer/shared.ts +0 -1
- package/src/chat-list/shared.ts +0 -7
- package/src/chip/Chip.tsx +3 -3
- package/src/composer-panel/ModelPickerBase.tsx +1 -1
- package/src/composer-panel/shared.ts +0 -1
- package/src/content-panel/ContentPanel.web.tsx +12 -35
- package/src/cover-header/CoverHeader.tsx +2 -3
- package/src/dialog/DetailDialogMotion.tsx +2 -3
- package/src/floating/FloatingPanel.tsx +3 -3
- package/src/floating/TriggerSlot.tsx +2 -2
- package/src/floating/constants.ts +1 -1
- package/src/floating/menu-swatch-row.tsx +3 -3
- package/src/floating/shared.tsx +3 -3
- package/src/floating/types.ts +2 -2
- package/src/image/BloomImage.tsx +4 -0
- package/src/image/expo-image-module.ts +3 -1
- package/src/image/index.ts +1 -0
- package/src/image/types.ts +19 -0
- package/src/link-preview/LinkPreviewCard.tsx +27 -5
- package/src/link-preview/types.ts +7 -0
- package/src/lyrics/shared.ts +0 -3
- package/src/mail-list/shared.ts +0 -9
- package/src/media-card/shared.ts +1 -9
- package/src/media-flight/MediaSurface.tsx +46 -8
- package/src/media-header/shared.ts +1 -8
- package/src/media-header/types.ts +1 -1
- package/src/media-player/PlayerIconButton.tsx +1 -1
- package/src/media-player/shared.ts +1 -8
- package/src/multi-agent-chat/Marketplace.tsx +5 -5
- package/src/music-library/shared.ts +0 -2
- package/src/page-header/EdgeScrim.tsx +17 -14
- package/src/page-header/PageHeader.tsx +11 -6
- package/src/project-board/ProjectBoardCanvas.tsx +3 -3
- package/src/property-insights/shared.ts +1 -3
- package/src/queue-panel/QueueIconButton.tsx +1 -1
- package/src/radio/RadioHost.tsx +2 -2
- package/src/select/Select.tsx +3 -3
- package/src/select/Select.web.tsx +3 -3
- package/src/select/shared.tsx +3 -3
- package/src/shapes/Image.tsx +18 -2
- package/src/shapes/types.ts +10 -0
- package/src/sidebar/SidebarItem.tsx +2 -2
- package/src/sidebar/SidebarOnboardingCard.tsx +3 -3
- package/src/sidebar/parts.tsx +3 -36
- package/src/stay-filters/EnergyRatingFilter.tsx +0 -2
- package/src/styles/aria-hosts.ts +62 -0
- package/src/surface/Surface.tsx +12 -6
- package/src/surface/Surface.web.tsx +3 -4
- package/src/surface/SurfacePaint.tsx +1 -2
- package/src/toast/animations.ts +0 -1
- package/src/track-list/parts.tsx +1 -1
- package/src/typography/TypographyScope.tsx +0 -5
- package/src/zoomable-media-gallery/ZoomableMediaGalleryBase.tsx +368 -324
- package/src/zoomable-media-gallery/types.ts +11 -0
- package/docs/teleport.mdx +0 -72
- package/lib/commonjs/styles/styled-primitives.js +0 -37
- package/lib/commonjs/styles/styled-primitives.js.map +0 -1
- package/lib/commonjs/teleport/Portal.js +0 -109
- package/lib/commonjs/teleport/Portal.js.map +0 -1
- package/lib/commonjs/teleport/PortalHost.js +0 -75
- package/lib/commonjs/teleport/PortalHost.js.map +0 -1
- package/lib/commonjs/teleport/PortalHostView.js +0 -40
- package/lib/commonjs/teleport/PortalHostView.js.map +0 -1
- package/lib/commonjs/teleport/PortalHostView.native.js +0 -24
- package/lib/commonjs/teleport/PortalHostView.native.js.map +0 -1
- package/lib/commonjs/teleport/PortalProvider.js +0 -57
- package/lib/commonjs/teleport/PortalProvider.js.map +0 -1
- package/lib/commonjs/teleport/PortalProviderView.js +0 -59
- package/lib/commonjs/teleport/PortalProviderView.js.map +0 -1
- package/lib/commonjs/teleport/PortalProviderView.native.js +0 -19
- package/lib/commonjs/teleport/PortalProviderView.native.js.map +0 -1
- package/lib/commonjs/teleport/PortalView.js +0 -83
- package/lib/commonjs/teleport/PortalView.js.map +0 -1
- package/lib/commonjs/teleport/PortalView.native.js +0 -14
- package/lib/commonjs/teleport/PortalView.native.js.map +0 -1
- package/lib/commonjs/teleport/index.js +0 -35
- package/lib/commonjs/teleport/index.js.map +0 -1
- package/lib/commonjs/teleport/portal-manager.js +0 -40
- package/lib/commonjs/teleport/portal-manager.js.map +0 -1
- package/lib/commonjs/teleport/portal-registry.js +0 -24
- package/lib/commonjs/teleport/portal-registry.js.map +0 -1
- package/lib/commonjs/teleport/reducer.js +0 -86
- package/lib/commonjs/teleport/reducer.js.map +0 -1
- package/lib/commonjs/teleport/scroll-view-context/context.js +0 -17
- package/lib/commonjs/teleport/scroll-view-context/context.js.map +0 -1
- package/lib/commonjs/teleport/scroll-view-context/context.native.js +0 -22
- package/lib/commonjs/teleport/scroll-view-context/context.native.js.map +0 -1
- package/lib/commonjs/teleport/scroll-view-context/types.js +0 -2
- package/lib/commonjs/teleport/scroll-view-context/types.js.map +0 -1
- package/lib/commonjs/teleport/specs/PortalHostViewNativeComponent.js +0 -17
- package/lib/commonjs/teleport/specs/PortalHostViewNativeComponent.js.map +0 -1
- package/lib/commonjs/teleport/specs/PortalViewNativeComponent.js +0 -17
- package/lib/commonjs/teleport/specs/PortalViewNativeComponent.js.map +0 -1
- package/lib/commonjs/teleport/teleport-global.d.ts +0 -11
- package/lib/commonjs/teleport/types.js +0 -6
- package/lib/commonjs/teleport/types.js.map +0 -1
- package/lib/commonjs/teleport/use-id.js +0 -24
- package/lib/commonjs/teleport/use-id.js.map +0 -1
- package/lib/commonjs/teleport/use-portal.js +0 -59
- package/lib/commonjs/teleport/use-portal.js.map +0 -1
- package/lib/module/styles/styled-primitives.js +0 -34
- package/lib/module/styles/styled-primitives.js.map +0 -1
- package/lib/module/teleport/Portal.js +0 -103
- package/lib/module/teleport/Portal.js.map +0 -1
- package/lib/module/teleport/PortalHost.js +0 -71
- package/lib/module/teleport/PortalHost.js.map +0 -1
- package/lib/module/teleport/PortalHostView.js +0 -35
- package/lib/module/teleport/PortalHostView.js.map +0 -1
- package/lib/module/teleport/PortalHostView.native.js +0 -18
- package/lib/module/teleport/PortalHostView.native.js.map +0 -1
- package/lib/module/teleport/PortalProvider.js +0 -51
- package/lib/module/teleport/PortalProvider.js.map +0 -1
- package/lib/module/teleport/PortalProviderView.js +0 -54
- package/lib/module/teleport/PortalProviderView.js.map +0 -1
- package/lib/module/teleport/PortalProviderView.native.js +0 -15
- package/lib/module/teleport/PortalProviderView.native.js.map +0 -1
- package/lib/module/teleport/PortalView.js +0 -79
- package/lib/module/teleport/PortalView.js.map +0 -1
- package/lib/module/teleport/PortalView.native.js +0 -10
- package/lib/module/teleport/PortalView.native.js.map +0 -1
- package/lib/module/teleport/index.js +0 -30
- package/lib/module/teleport/index.js.map +0 -1
- package/lib/module/teleport/portal-manager.js +0 -33
- package/lib/module/teleport/portal-manager.js.map +0 -1
- package/lib/module/teleport/portal-registry.js +0 -18
- package/lib/module/teleport/portal-registry.js.map +0 -1
- package/lib/module/teleport/reducer.js +0 -81
- package/lib/module/teleport/reducer.js.map +0 -1
- package/lib/module/teleport/scroll-view-context/context.js +0 -12
- package/lib/module/teleport/scroll-view-context/context.js.map +0 -1
- package/lib/module/teleport/scroll-view-context/context.native.js +0 -18
- package/lib/module/teleport/scroll-view-context/context.native.js.map +0 -1
- package/lib/module/teleport/scroll-view-context/types.js +0 -2
- package/lib/module/teleport/scroll-view-context/types.js.map +0 -1
- package/lib/module/teleport/specs/PortalHostViewNativeComponent.js +0 -13
- package/lib/module/teleport/specs/PortalHostViewNativeComponent.js.map +0 -1
- package/lib/module/teleport/specs/PortalViewNativeComponent.js +0 -13
- package/lib/module/teleport/specs/PortalViewNativeComponent.js.map +0 -1
- package/lib/module/teleport/teleport-global.d.ts +0 -11
- package/lib/module/teleport/types.js +0 -4
- package/lib/module/teleport/types.js.map +0 -1
- package/lib/module/teleport/use-id.js +0 -19
- package/lib/module/teleport/use-id.js.map +0 -1
- package/lib/module/teleport/use-portal.js +0 -55
- package/lib/module/teleport/use-portal.js.map +0 -1
- package/lib/typescript/commonjs/styles/styled-primitives.d.ts +0 -69
- package/lib/typescript/commonjs/styles/styled-primitives.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/Portal.d.ts +0 -48
- package/lib/typescript/commonjs/teleport/Portal.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/PortalHost.d.ts +0 -25
- package/lib/typescript/commonjs/teleport/PortalHost.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/PortalHostView.d.ts +0 -5
- package/lib/typescript/commonjs/teleport/PortalHostView.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/PortalHostView.native.d.ts +0 -4
- package/lib/typescript/commonjs/teleport/PortalHostView.native.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/PortalProvider.d.ts +0 -23
- package/lib/typescript/commonjs/teleport/PortalProvider.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/PortalProviderView.d.ts +0 -3
- package/lib/typescript/commonjs/teleport/PortalProviderView.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/PortalProviderView.native.d.ts +0 -9
- package/lib/typescript/commonjs/teleport/PortalProviderView.native.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/PortalView.d.ts +0 -9
- package/lib/typescript/commonjs/teleport/PortalView.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/PortalView.native.d.ts +0 -8
- package/lib/typescript/commonjs/teleport/PortalView.native.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/index.d.ts +0 -29
- package/lib/typescript/commonjs/teleport/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/portal-manager.d.ts +0 -16
- package/lib/typescript/commonjs/teleport/portal-manager.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/portal-registry.d.ts +0 -10
- package/lib/typescript/commonjs/teleport/portal-registry.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/reducer.d.ts +0 -40
- package/lib/typescript/commonjs/teleport/reducer.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/scroll-view-context/context.d.ts +0 -4
- package/lib/typescript/commonjs/teleport/scroll-view-context/context.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/scroll-view-context/context.native.d.ts +0 -13
- package/lib/typescript/commonjs/teleport/scroll-view-context/context.native.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/scroll-view-context/types.d.ts +0 -10
- package/lib/typescript/commonjs/teleport/scroll-view-context/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/specs/PortalHostViewNativeComponent.d.ts +0 -13
- package/lib/typescript/commonjs/teleport/specs/PortalHostViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/specs/PortalViewNativeComponent.d.ts +0 -14
- package/lib/typescript/commonjs/teleport/specs/PortalViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/types.d.ts +0 -22
- package/lib/typescript/commonjs/teleport/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/use-id.d.ts +0 -2
- package/lib/typescript/commonjs/teleport/use-id.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/use-portal.d.ts +0 -35
- package/lib/typescript/commonjs/teleport/use-portal.d.ts.map +0 -1
- package/lib/typescript/module/styles/styled-primitives.d.ts +0 -69
- package/lib/typescript/module/styles/styled-primitives.d.ts.map +0 -1
- package/lib/typescript/module/teleport/Portal.d.ts +0 -48
- package/lib/typescript/module/teleport/Portal.d.ts.map +0 -1
- package/lib/typescript/module/teleport/PortalHost.d.ts +0 -25
- package/lib/typescript/module/teleport/PortalHost.d.ts.map +0 -1
- package/lib/typescript/module/teleport/PortalHostView.d.ts +0 -5
- package/lib/typescript/module/teleport/PortalHostView.d.ts.map +0 -1
- package/lib/typescript/module/teleport/PortalHostView.native.d.ts +0 -4
- package/lib/typescript/module/teleport/PortalHostView.native.d.ts.map +0 -1
- package/lib/typescript/module/teleport/PortalProvider.d.ts +0 -23
- package/lib/typescript/module/teleport/PortalProvider.d.ts.map +0 -1
- package/lib/typescript/module/teleport/PortalProviderView.d.ts +0 -3
- package/lib/typescript/module/teleport/PortalProviderView.d.ts.map +0 -1
- package/lib/typescript/module/teleport/PortalProviderView.native.d.ts +0 -9
- package/lib/typescript/module/teleport/PortalProviderView.native.d.ts.map +0 -1
- package/lib/typescript/module/teleport/PortalView.d.ts +0 -9
- package/lib/typescript/module/teleport/PortalView.d.ts.map +0 -1
- package/lib/typescript/module/teleport/PortalView.native.d.ts +0 -8
- package/lib/typescript/module/teleport/PortalView.native.d.ts.map +0 -1
- package/lib/typescript/module/teleport/index.d.ts +0 -29
- package/lib/typescript/module/teleport/index.d.ts.map +0 -1
- package/lib/typescript/module/teleport/portal-manager.d.ts +0 -16
- package/lib/typescript/module/teleport/portal-manager.d.ts.map +0 -1
- package/lib/typescript/module/teleport/portal-registry.d.ts +0 -10
- package/lib/typescript/module/teleport/portal-registry.d.ts.map +0 -1
- package/lib/typescript/module/teleport/reducer.d.ts +0 -40
- package/lib/typescript/module/teleport/reducer.d.ts.map +0 -1
- package/lib/typescript/module/teleport/scroll-view-context/context.d.ts +0 -4
- package/lib/typescript/module/teleport/scroll-view-context/context.d.ts.map +0 -1
- package/lib/typescript/module/teleport/scroll-view-context/context.native.d.ts +0 -13
- package/lib/typescript/module/teleport/scroll-view-context/context.native.d.ts.map +0 -1
- package/lib/typescript/module/teleport/scroll-view-context/types.d.ts +0 -10
- package/lib/typescript/module/teleport/scroll-view-context/types.d.ts.map +0 -1
- package/lib/typescript/module/teleport/specs/PortalHostViewNativeComponent.d.ts +0 -13
- package/lib/typescript/module/teleport/specs/PortalHostViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/teleport/specs/PortalViewNativeComponent.d.ts +0 -14
- package/lib/typescript/module/teleport/specs/PortalViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/teleport/types.d.ts +0 -22
- package/lib/typescript/module/teleport/types.d.ts.map +0 -1
- package/lib/typescript/module/teleport/use-id.d.ts +0 -2
- package/lib/typescript/module/teleport/use-id.d.ts.map +0 -1
- package/lib/typescript/module/teleport/use-portal.d.ts +0 -35
- package/lib/typescript/module/teleport/use-portal.d.ts.map +0 -1
- package/src/styles/styled-primitives.ts +0 -87
- package/src/teleport/Portal.tsx +0 -96
- package/src/teleport/PortalHost.tsx +0 -61
- package/src/teleport/PortalHostView.native.tsx +0 -14
- package/src/teleport/PortalHostView.tsx +0 -30
- package/src/teleport/PortalProvider.tsx +0 -51
- package/src/teleport/PortalProviderView.native.tsx +0 -11
- package/src/teleport/PortalProviderView.tsx +0 -54
- package/src/teleport/PortalView.native.tsx +0 -7
- package/src/teleport/PortalView.tsx +0 -83
- package/src/teleport/index.ts +0 -32
- package/src/teleport/portal-manager.tsx +0 -29
- package/src/teleport/portal-registry.ts +0 -24
- package/src/teleport/reducer.ts +0 -93
- package/src/teleport/scroll-view-context/context.native.ts +0 -19
- package/src/teleport/scroll-view-context/context.ts +0 -12
- package/src/teleport/scroll-view-context/types.ts +0 -7
- package/src/teleport/specs/PortalHostViewNativeComponent.ts +0 -15
- package/src/teleport/specs/PortalViewNativeComponent.ts +0 -16
- package/src/teleport/teleport-global.d.ts +0 -11
- package/src/teleport/types.ts +0 -22
- package/src/teleport/use-id.ts +0 -18
- package/src/teleport/use-portal.ts +0 -46
|
@@ -121,6 +121,22 @@ const SCRIM_CHROME = {
|
|
|
121
121
|
background: 'rgba(0,0,0,0.55)',
|
|
122
122
|
foreground: '#fff'
|
|
123
123
|
};
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Calls `onCommit` from the commit that mounts it. Placed INSIDE the portaled
|
|
127
|
+
* overlay, so it runs once the overlay itself is in the tree — the viewer's
|
|
128
|
+
* own effects run a commit earlier, before the portal outlet has rendered the
|
|
129
|
+
* content, and a flight started there would be under way before its first
|
|
130
|
+
* frame was on screen.
|
|
131
|
+
*/
|
|
132
|
+
function OnCommit({
|
|
133
|
+
onCommit
|
|
134
|
+
}) {
|
|
135
|
+
(0, _react.useLayoutEffect)(() => {
|
|
136
|
+
onCommit();
|
|
137
|
+
}, [onCommit]);
|
|
138
|
+
return null;
|
|
139
|
+
}
|
|
124
140
|
function createZoomableMediaGallery(Button) {
|
|
125
141
|
function NavArrow({
|
|
126
142
|
direction,
|
|
@@ -171,10 +187,14 @@ function createZoomableMediaGallery(Button) {
|
|
|
171
187
|
* renders through the Bloom `Portal` on BOTH platforms (RN's `Modal` is not
|
|
172
188
|
* used on native — on the New Architecture / Fabric Android its host views
|
|
173
189
|
* mount full-screen but never composite, leaving the viewer invisible).
|
|
174
|
-
* - The OPENING (tapped) item
|
|
175
|
-
* aspect-ratio-preserving fit within {@link FIT_FRACTION} of the screen
|
|
176
|
-
*
|
|
177
|
-
*
|
|
190
|
+
* - The OPENING (tapped) item flies from its measured rect to a centered,
|
|
191
|
+
* aspect-ratio-preserving fit within {@link FIT_FRACTION} of the screen, and
|
|
192
|
+
* every dismissal flies it back. The horizontal paging `ScrollView` is
|
|
193
|
+
* mounted from the first frame, seeded at the tapped index, and the flight
|
|
194
|
+
* transforms it: the media on screen is ONE surface, the active page's, from
|
|
195
|
+
* the first frame of the open to the last frame of the close. One shared
|
|
196
|
+
* value (`flight`) drives the transform and the backdrop, on the UI thread;
|
|
197
|
+
* `hiddenThumbIndex` lets the consumer hide the thumbnail it stands in for.
|
|
178
198
|
* - Gesture disambiguation: the pager owns horizontal swipes; a vertical-only
|
|
179
199
|
* `Gesture.Pan` (`activeOffsetY` + `failOffsetX`) owns drag-to-dismiss, so the
|
|
180
200
|
* two never fight.
|
|
@@ -187,8 +207,8 @@ function createZoomableMediaGallery(Button) {
|
|
|
187
207
|
* handing the same player to this gallery moves a playing video into fullscreen
|
|
188
208
|
* without re-opening the stream. Exactly ONE view is mounted per opening — the
|
|
189
209
|
* active page's — while every other page and every strip tile renders the still
|
|
190
|
-
* (`MediaPoster`). The
|
|
191
|
-
*
|
|
210
|
+
* (`MediaPoster`). The active page's view lives from the first frame of the
|
|
211
|
+
* open to the last frame of the close, so the transition swaps nothing.
|
|
192
212
|
*
|
|
193
213
|
* `expo-video` is an OPTIONAL peer loaded through `media-flight/expo-video-module`.
|
|
194
214
|
* Without it a video page degrades to its poster, once, with a dev warning.
|
|
@@ -202,7 +222,8 @@ function createZoomableMediaGallery(Button) {
|
|
|
202
222
|
cornerRadius = _constants.DEFAULT_CORNER_RADIUS,
|
|
203
223
|
indicatorVariant = 'dots',
|
|
204
224
|
videoControls = false,
|
|
205
|
-
labels: labelsProp
|
|
225
|
+
labels: labelsProp,
|
|
226
|
+
hiddenThumbIndex
|
|
206
227
|
}, ref) => {
|
|
207
228
|
const {
|
|
208
229
|
messages
|
|
@@ -246,8 +267,9 @@ function createZoomableMediaGallery(Button) {
|
|
|
246
267
|
const insets = (0, _useCssSafeAreaInsets.useCssSafeAreaInsets)((0, _reactNativeSafeAreaContext.useSafeAreaInsets)());
|
|
247
268
|
const radiusFor = (0, _react.useCallback)(fit => resolveCornerRadius(cornerRadius, fit), [cornerRadius]);
|
|
248
269
|
const [isOpen, setIsOpen] = (0, _react.useState)(false);
|
|
249
|
-
//
|
|
250
|
-
|
|
270
|
+
// True once the open flight has landed, until a dismissal starts: the
|
|
271
|
+
// chrome (share, counter, arrows) shows and the pager may page.
|
|
272
|
+
const [settled, setSettled] = (0, _react.useState)(false);
|
|
251
273
|
const [items, setItems] = (0, _react.useState)([]);
|
|
252
274
|
// The accepted opening's item identities are needed by async probes even
|
|
253
275
|
// before React commits the corresponding state update.
|
|
@@ -271,10 +293,23 @@ function createZoomableMediaGallery(Button) {
|
|
|
271
293
|
if (_reactNative.Platform.OS !== 'web') return true;
|
|
272
294
|
return typeof navigator !== 'undefined' && typeof navigator.share === 'function';
|
|
273
295
|
});
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
296
|
+
|
|
297
|
+
// The transition is ONE value: 0 is the media standing on its thumbnail,
|
|
298
|
+
// 1 is the media fitted on screen. Open springs it to 1, every dismissal
|
|
299
|
+
// springs it back to 0, and both ends of the media's transform and the
|
|
300
|
+
// backdrop's fade are read from it — so a close started mid-open, or from
|
|
301
|
+
// wherever a drag left the media, lands on the thumbnail by construction,
|
|
302
|
+
// and its one completion callback is the frame the viewer has returned.
|
|
303
|
+
const flight = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
304
|
+
// The finger's offset while dragging to dismiss, applied at the fitted
|
|
305
|
+
// end of the flight. Rest is (0, 0, 1).
|
|
306
|
+
const dragX = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
307
|
+
const dragY = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
308
|
+
const dragScale = (0, _reactNativeReanimated.useSharedValue)(1);
|
|
309
|
+
// The media itself is opaque: only the backdrop and chrome fade. It fades
|
|
310
|
+
// only where there is no thumbnail to fly to (or from), and drops to 0 on
|
|
311
|
+
// the frame the fly-back lands, when the thumbnail takes its place.
|
|
312
|
+
const mediaOpacity = (0, _reactNativeReanimated.useSharedValue)(1);
|
|
278
313
|
|
|
279
314
|
// Zoom transform of the active media, kept SEPARATE from the open/close +
|
|
280
315
|
// dismiss-drag transform above (reusing those would collide two meanings).
|
|
@@ -290,13 +325,13 @@ function createZoomableMediaGallery(Button) {
|
|
|
290
325
|
// Origin (offset from screen center) of the tapped item.
|
|
291
326
|
const originX = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
292
327
|
const originY = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
328
|
+
|
|
329
|
+
// Per-drag baseline captured at pan start (transient).
|
|
293
330
|
const startX = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
294
331
|
const startY = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
295
|
-
// Per-drag baseline captured at pan start (transient).
|
|
296
332
|
const startScale = (0, _reactNativeReanimated.useSharedValue)(1);
|
|
297
|
-
//
|
|
298
|
-
//
|
|
299
|
-
// shrinks back to it. Never overwritten by the drag gesture.
|
|
333
|
+
// Scale of the fitted media at its thumbnail (thumbWidth / fittedWidth):
|
|
334
|
+
// the flight's 0 end.
|
|
300
335
|
const originScale = (0, _reactNativeReanimated.useSharedValue)(1);
|
|
301
336
|
const pagerRef = (0, _react.useRef)(null);
|
|
302
337
|
const shareButtonRef = (0, _react.useRef)(null);
|
|
@@ -310,54 +345,35 @@ function createZoomableMediaGallery(Button) {
|
|
|
310
345
|
// True from the first dismiss request until the viewer is actually unmounted.
|
|
311
346
|
const dismissingRef = (0, _react.useRef)(false);
|
|
312
347
|
|
|
313
|
-
//
|
|
314
|
-
// the
|
|
315
|
-
//
|
|
316
|
-
//
|
|
317
|
-
// gesture or an imperative `open()` — never from an effect — so React's own
|
|
318
|
-
// teardown reaches none of them. A screen left within the ~300 ms of the open
|
|
319
|
-
// transition therefore leaves a live timer holding the whole subtree, and the
|
|
320
|
-
// state it eventually writes lands on a tree nobody is rendering. React makes
|
|
321
|
-
// that a silent no-op rather than an error, which is exactly why it survived:
|
|
322
|
-
// measured under jest, the gallery's `revealPager` timer outlives the file
|
|
323
|
-
// that mounted it and fires inside the NEXT test file in the same worker
|
|
324
|
-
// process, sometimes re-scheduling itself two files further on.
|
|
325
|
-
const pendingRef = (0, _react.useRef)(new Set());
|
|
326
|
-
const frameRef = (0, _react.useRef)(null);
|
|
348
|
+
// Nothing in the transition is a timer: the open starts from the commit
|
|
349
|
+
// that mounts the overlay and ends in its spring's callback, and the close
|
|
350
|
+
// ends in its own. An unmount only has to stop that callback from writing
|
|
351
|
+
// (`unmountedRef`) and give the thumbnail back.
|
|
327
352
|
const unmountedRef = (0, _react.useRef)(false);
|
|
328
|
-
const
|
|
329
|
-
|
|
330
|
-
// this can be reached once the component is already gone — starting a timer
|
|
331
|
-
// there would put one back after the cleanup has run.
|
|
332
|
-
if (unmountedRef.current) return;
|
|
333
|
-
const handle = setTimeout(() => {
|
|
334
|
-
pendingRef.current.delete(handle);
|
|
335
|
-
step();
|
|
336
|
-
}, delay);
|
|
337
|
-
pendingRef.current.add(handle);
|
|
338
|
-
}, []);
|
|
353
|
+
const hiddenThumbRef = (0, _react.useRef)(hiddenThumbIndex);
|
|
354
|
+
hiddenThumbRef.current = hiddenThumbIndex;
|
|
339
355
|
(0, _react.useEffect)(() => {
|
|
340
356
|
unmountedRef.current = false;
|
|
341
357
|
return () => {
|
|
342
358
|
unmountedRef.current = true;
|
|
343
359
|
reportOpen(false);
|
|
344
|
-
|
|
345
|
-
pendingRef.current.clear();
|
|
346
|
-
if (frameRef.current !== null) {
|
|
347
|
-
cancelAnimationFrame(frameRef.current);
|
|
348
|
-
frameRef.current = null;
|
|
349
|
-
}
|
|
360
|
+
if (hiddenThumbRef.current) hiddenThumbRef.current.value = -1;
|
|
350
361
|
};
|
|
351
362
|
}, [reportOpen]);
|
|
352
363
|
|
|
353
364
|
// Single writer for the current index: updates state (drives indicator + open
|
|
354
365
|
// image) and the synchronous mirror together, and only when it changes.
|
|
366
|
+
// The thumbnail the media stands in for follows the page, so a swipe
|
|
367
|
+
// gives back the one it left and hides the one it reached.
|
|
355
368
|
const setActiveIndexBoth = (0, _react.useCallback)((next, opening = false) => {
|
|
356
369
|
const changed = activeIndexRef.current !== next;
|
|
357
370
|
activeIndexRef.current = next;
|
|
358
371
|
setActiveIndex(prev => prev === next ? prev : next);
|
|
372
|
+
if (changed && hiddenThumbIndex && !opening && !dismissingRef.current) {
|
|
373
|
+
hiddenThumbIndex.value = next;
|
|
374
|
+
}
|
|
359
375
|
if (changed || opening) onIndexChangeRef.current?.(next);
|
|
360
|
-
}, []);
|
|
376
|
+
}, [hiddenThumbIndex]);
|
|
361
377
|
|
|
362
378
|
// Snap the active media back to its un-zoomed baseline (no animation) and
|
|
363
379
|
// clear all zoom bookkeeping. Called on every path that changes the active
|
|
@@ -402,7 +418,7 @@ function createZoomableMediaGallery(Button) {
|
|
|
402
418
|
};
|
|
403
419
|
}, [fitBox]);
|
|
404
420
|
|
|
405
|
-
// Fitted size of the
|
|
421
|
+
// Fitted size of the media for the CURRENT page. On open this is
|
|
406
422
|
// the opened item's fit;
|
|
407
423
|
// after swiping it tracks the viewed item so the collapse-on-dismiss renders
|
|
408
424
|
// and flies back the media actually on screen.
|
|
@@ -449,78 +465,54 @@ function createZoomableMediaGallery(Button) {
|
|
|
449
465
|
});
|
|
450
466
|
}, [isCurrentRatioProbe]);
|
|
451
467
|
|
|
452
|
-
//
|
|
453
|
-
// every dismiss path (fly-back and fade-out fallback).
|
|
468
|
+
// The viewer has returned: unmount and put every value back at rest.
|
|
454
469
|
const finalizeDismiss = (0, _react.useCallback)(() => {
|
|
470
|
+
if (unmountedRef.current) return;
|
|
455
471
|
setIsOpen(false);
|
|
456
472
|
// Keep the dismissal latch until the next open. Throttled web scroll
|
|
457
473
|
// events can arrive after the pager unmounts and must not reset selection.
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
474
|
+
flight.value = 0;
|
|
475
|
+
dragX.value = 0;
|
|
476
|
+
dragY.value = 0;
|
|
477
|
+
dragScale.value = 1;
|
|
478
|
+
resetZoom();
|
|
462
479
|
reportOpen(false);
|
|
463
|
-
}, [
|
|
480
|
+
}, [dragScale, dragX, dragY, flight, reportOpen, resetZoom]);
|
|
464
481
|
|
|
465
|
-
// Fly the
|
|
466
|
-
//
|
|
467
|
-
//
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
duration,
|
|
478
|
-
easing
|
|
479
|
-
});
|
|
480
|
-
translateY.value = (0, _reactNativeReanimated.withTiming)(target.y, {
|
|
481
|
-
duration,
|
|
482
|
-
easing
|
|
483
|
-
});
|
|
484
|
-
opacity.value = (0, _reactNativeReanimated.withTiming)(0, {
|
|
485
|
-
duration,
|
|
486
|
-
easing
|
|
487
|
-
});
|
|
488
|
-
schedule(finalizeDismiss, duration + 20);
|
|
482
|
+
// Fly the media home: back to `target` (the current item's thumbnail,
|
|
483
|
+
// relative to the screen center), or, with no thumbnail to land on, into
|
|
484
|
+
// the center while it fades. Both end on the same callback — the frame
|
|
485
|
+
// the flight reaches 0 hides the media and gives the thumbnail back
|
|
486
|
+
// together, on the UI thread, so the photo is on screen exactly once.
|
|
487
|
+
const flyHome = (0, _react.useCallback)(target => {
|
|
488
|
+
if (unmountedRef.current) return;
|
|
489
|
+
const web = _reactNative.Platform.OS === 'web';
|
|
490
|
+
if (target) {
|
|
491
|
+
originX.value = target.x;
|
|
492
|
+
originY.value = target.y;
|
|
493
|
+
originScale.value = target.scale;
|
|
489
494
|
} else {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
duration: _constants.OPACITY_DURATION
|
|
495
|
+
originX.value = 0;
|
|
496
|
+
originY.value = 0;
|
|
497
|
+
originScale.value = _constants.MIN_DRAG_SCALE;
|
|
498
|
+
mediaOpacity.value = (0, _reactNativeReanimated.withTiming)(0, {
|
|
499
|
+
duration: web ? _constants.CLOSE_DURATION_WEB : _constants.OPACITY_DURATION
|
|
495
500
|
});
|
|
496
|
-
schedule(finalizeDismiss, _constants.CLOSE_DURATION_WEB);
|
|
497
501
|
}
|
|
498
|
-
|
|
502
|
+
const thumb = hiddenThumbIndex;
|
|
503
|
+
const landed = finished => {
|
|
504
|
+
'worklet';
|
|
499
505
|
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
});
|
|
511
|
-
opacity.value = (0, _reactNativeReanimated.withTiming)(0, {
|
|
512
|
-
duration,
|
|
513
|
-
easing
|
|
514
|
-
});
|
|
515
|
-
schedule(finalizeDismiss, duration + 20);
|
|
516
|
-
} else {
|
|
517
|
-
scale.value = (0, _reactNativeReanimated.withSpring)(_constants.MIN_DRAG_SCALE, _constants.CLOSE_SPRING);
|
|
518
|
-
opacity.value = (0, _reactNativeReanimated.withTiming)(0, {
|
|
519
|
-
duration: _constants.OPACITY_DURATION
|
|
520
|
-
});
|
|
521
|
-
schedule(finalizeDismiss, _constants.CLOSE_DURATION_WEB);
|
|
522
|
-
}
|
|
523
|
-
}, [finalizeDismiss, opacity, scale, schedule]);
|
|
506
|
+
if (!finished) return;
|
|
507
|
+
mediaOpacity.value = 0;
|
|
508
|
+
if (thumb) thumb.value = -1;
|
|
509
|
+
(0, _reactNativeReanimated.runOnJS)(finalizeDismiss)();
|
|
510
|
+
};
|
|
511
|
+
flight.value = web ? (0, _reactNativeReanimated.withTiming)(0, {
|
|
512
|
+
duration: _constants.CLOSE_DURATION_WEB,
|
|
513
|
+
easing: _reactNativeReanimated.Easing.in(_reactNativeReanimated.Easing.cubic)
|
|
514
|
+
}, landed) : (0, _reactNativeReanimated.withSpring)(0, _constants.CLOSE_SPRING, landed);
|
|
515
|
+
}, [finalizeDismiss, flight, hiddenThumbIndex, mediaOpacity, originScale, originX, originY]);
|
|
524
516
|
const handleDismiss = (0, _react.useCallback)(() => {
|
|
525
517
|
// A press on the image reaches BOTH its tap gesture and the page beneath it
|
|
526
518
|
// (which owns the dismiss for the empty area around the image), so this can
|
|
@@ -529,40 +521,79 @@ function createZoomableMediaGallery(Button) {
|
|
|
529
521
|
if (dismissingRef.current) return;
|
|
530
522
|
dismissingRef.current = true;
|
|
531
523
|
pendingShareFocus.current = null;
|
|
532
|
-
|
|
533
|
-
//
|
|
534
|
-
|
|
524
|
+
setSettled(false);
|
|
525
|
+
// A zoomed page unzooms on the way home, in step with the flight.
|
|
526
|
+
zoomScale.value = (0, _reactNativeReanimated.withSpring)(1, _constants.CLOSE_SPRING);
|
|
527
|
+
zoomTranslateX.value = (0, _reactNativeReanimated.withSpring)(0, _constants.CLOSE_SPRING);
|
|
528
|
+
zoomTranslateY.value = (0, _reactNativeReanimated.withSpring)(0, _constants.CLOSE_SPRING);
|
|
535
529
|
const index = activeIndexRef.current;
|
|
536
530
|
const current = items[index];
|
|
537
|
-
//
|
|
538
|
-
//
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
if (measureThumb && current) {
|
|
542
|
-
const centerX = SCREEN_WIDTH / 2;
|
|
543
|
-
const centerY = SCREEN_HEIGHT / 2;
|
|
544
|
-
void measureThumb(index).then(rect => {
|
|
545
|
-
if (rect && rect.width > 0 && activeFit.width > 0) {
|
|
546
|
-
flyBackTo({
|
|
547
|
-
x: rect.x + rect.width / 2 - centerX,
|
|
548
|
-
y: rect.y + rect.height / 2 - centerY,
|
|
549
|
-
scale: rect.width / activeFit.width
|
|
550
|
-
});
|
|
551
|
-
} else {
|
|
552
|
-
fadeOutCenter();
|
|
553
|
-
}
|
|
554
|
-
});
|
|
531
|
+
// The target is the CURRENT item's thumbnail, measured now: the page may
|
|
532
|
+
// have changed, and the list under the viewer may have scrolled.
|
|
533
|
+
if (!measureThumb || !current) {
|
|
534
|
+
flyHome(null);
|
|
555
535
|
return;
|
|
556
536
|
}
|
|
557
|
-
|
|
558
|
-
|
|
537
|
+
const centerX = SCREEN_WIDTH / 2;
|
|
538
|
+
const centerY = SCREEN_HEIGHT / 2;
|
|
539
|
+
void measureThumb(index).then(rect => {
|
|
540
|
+
flyHome(rect && rect.width > 0 && activeFit.width > 0 ? {
|
|
541
|
+
x: rect.x + rect.width / 2 - centerX,
|
|
542
|
+
y: rect.y + rect.height / 2 - centerY,
|
|
543
|
+
scale: rect.width / activeFit.width
|
|
544
|
+
} : null);
|
|
545
|
+
});
|
|
546
|
+
}, [activeFit, flyHome, items, measureThumb, SCREEN_HEIGHT, SCREEN_WIDTH, zoomScale, zoomTranslateX, zoomTranslateY]);
|
|
559
547
|
|
|
560
|
-
//
|
|
561
|
-
//
|
|
562
|
-
//
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
548
|
+
// The open flight: from the thumbnail to the fitted center. The thumbnail
|
|
549
|
+
// is hidden in the same write, so the photo is on screen exactly once. It
|
|
550
|
+
// starts when the opened media shows a picture (`onPicture`) if it has a
|
|
551
|
+
// preview — the thumbnail's own, already decoded URL — and otherwise as
|
|
552
|
+
// soon as the overlay is committed. Started any earlier, the thumbnail
|
|
553
|
+
// was hidden and the media had flown a frame or two before its first
|
|
554
|
+
// pixel was drawn: a hole where the avatar was, then a photo already on
|
|
555
|
+
// its way.
|
|
556
|
+
const flightPendingRef = (0, _react.useRef)(false);
|
|
557
|
+
const startOpenFlight = (0, _react.useCallback)(() => {
|
|
558
|
+
if (!flightPendingRef.current) return;
|
|
559
|
+
flightPendingRef.current = false;
|
|
560
|
+
const generation = openingGenerationRef.current;
|
|
561
|
+
const settle = () => {
|
|
562
|
+
if (unmountedRef.current || dismissingRef.current || openingGenerationRef.current !== generation) return;
|
|
563
|
+
setSettled(true);
|
|
564
|
+
};
|
|
565
|
+
const landed = finished => {
|
|
566
|
+
'worklet';
|
|
567
|
+
|
|
568
|
+
if (finished) (0, _reactNativeReanimated.runOnJS)(settle)();
|
|
569
|
+
};
|
|
570
|
+
if (hiddenThumbIndex) hiddenThumbIndex.value = activeIndexRef.current;
|
|
571
|
+
if (mediaOpacity.value < 1) {
|
|
572
|
+
mediaOpacity.value = (0, _reactNativeReanimated.withTiming)(1, {
|
|
573
|
+
duration: _reactNative.Platform.OS === 'web' ? _constants.OPEN_DURATION_WEB : _constants.OPACITY_DURATION
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
flight.value = _reactNative.Platform.OS === 'web' ? (0, _reactNativeReanimated.withTiming)(1, {
|
|
577
|
+
duration: _constants.OPEN_DURATION_WEB,
|
|
578
|
+
easing: _reactNativeReanimated.Easing.out(_reactNativeReanimated.Easing.cubic)
|
|
579
|
+
}, landed) : (0, _reactNativeReanimated.withSpring)(1, _constants.OPEN_SPRING, landed);
|
|
580
|
+
}, [flight, hiddenThumbIndex, mediaOpacity]);
|
|
581
|
+
|
|
582
|
+
// The overlay is committed (see `OnCommit`). Seat the pager on the opened
|
|
583
|
+
// page now that it exists: `contentOffset` alone is not honoured on web
|
|
584
|
+
// for a pager mounted with the overlay (it stayed on page 0 while the
|
|
585
|
+
// counter said 2 / 2), and the viewer's own layout effects run before the
|
|
586
|
+
// portal has rendered the pager.
|
|
587
|
+
const onOverlayCommit = (0, _react.useCallback)(() => {
|
|
588
|
+
pagerRef.current?.scrollTo({
|
|
589
|
+
x: activeIndexRef.current * SCREEN_WIDTH,
|
|
590
|
+
y: 0,
|
|
591
|
+
animated: false
|
|
592
|
+
});
|
|
593
|
+
const opened = openedItemsRef.current[activeIndexRef.current];
|
|
594
|
+
const waitsForPicture = opened !== undefined && opened.kind !== 'video' && opened.previewUri !== undefined && opened.previewUri !== opened.uri;
|
|
595
|
+
if (!waitsForPicture) startOpenFlight();
|
|
596
|
+
}, [startOpenFlight, SCREEN_WIDTH]);
|
|
566
597
|
const open = (0, _react.useCallback)((nextItems, index, rect) => {
|
|
567
598
|
if (openRef.current || unmountedRef.current || nextItems.length === 0) return;
|
|
568
599
|
dismissingRef.current = false;
|
|
@@ -607,10 +638,9 @@ function createZoomableMediaGallery(Button) {
|
|
|
607
638
|
});
|
|
608
639
|
}
|
|
609
640
|
|
|
610
|
-
// The
|
|
611
|
-
//
|
|
612
|
-
//
|
|
613
|
-
// of the thumbnail width to the fitted width.
|
|
641
|
+
// The media is laid out at its FINAL fitted size and the flight scales it
|
|
642
|
+
// down onto the thumbnail: its 0 end is the thumbnail's center (as an
|
|
643
|
+
// offset from the screen's) and width over the fitted width.
|
|
614
644
|
const fitted = fitForRatio(ratio, targetUri);
|
|
615
645
|
const centerX = SCREEN_WIDTH / 2;
|
|
616
646
|
const centerY = SCREEN_HEIGHT / 2;
|
|
@@ -618,52 +648,23 @@ function createZoomableMediaGallery(Button) {
|
|
|
618
648
|
originX.value = rect.x + rect.width / 2 - centerX;
|
|
619
649
|
originY.value = rect.y + rect.height / 2 - centerY;
|
|
620
650
|
originScale.value = rect.width / fitted.width;
|
|
651
|
+
mediaOpacity.value = 1;
|
|
621
652
|
} else {
|
|
653
|
+
// Nothing to grow out of: the media appears in place and fades in.
|
|
622
654
|
originX.value = 0;
|
|
623
655
|
originY.value = 0;
|
|
624
656
|
originScale.value = 1;
|
|
657
|
+
mediaOpacity.value = 0;
|
|
625
658
|
}
|
|
659
|
+
flight.value = 0;
|
|
660
|
+
dragX.value = 0;
|
|
661
|
+
dragY.value = 0;
|
|
662
|
+
dragScale.value = 1;
|
|
663
|
+
flightPendingRef.current = true;
|
|
664
|
+
setSettled(false);
|
|
626
665
|
setIsOpen(true);
|
|
627
666
|
reportOpen(true);
|
|
628
|
-
|
|
629
|
-
translateY.value = originY.value;
|
|
630
|
-
scale.value = originScale.value;
|
|
631
|
-
opacity.value = 0;
|
|
632
|
-
if (_reactNative.Platform.OS === 'web') {
|
|
633
|
-
frameRef.current = requestAnimationFrame(() => {
|
|
634
|
-
frameRef.current = null;
|
|
635
|
-
const duration = _constants.OPEN_DURATION_WEB;
|
|
636
|
-
const easing = _reactNativeReanimated.Easing.out(_reactNativeReanimated.Easing.cubic);
|
|
637
|
-
scale.value = (0, _reactNativeReanimated.withTiming)(1, {
|
|
638
|
-
duration,
|
|
639
|
-
easing
|
|
640
|
-
});
|
|
641
|
-
translateX.value = (0, _reactNativeReanimated.withTiming)(0, {
|
|
642
|
-
duration,
|
|
643
|
-
easing
|
|
644
|
-
});
|
|
645
|
-
translateY.value = (0, _reactNativeReanimated.withTiming)(0, {
|
|
646
|
-
duration,
|
|
647
|
-
easing
|
|
648
|
-
});
|
|
649
|
-
opacity.value = (0, _reactNativeReanimated.withTiming)(1, {
|
|
650
|
-
duration,
|
|
651
|
-
easing
|
|
652
|
-
});
|
|
653
|
-
schedule(revealPager, duration);
|
|
654
|
-
});
|
|
655
|
-
} else {
|
|
656
|
-
schedule(() => {
|
|
657
|
-
scale.value = (0, _reactNativeReanimated.withSpring)(1, _constants.OPEN_SPRING);
|
|
658
|
-
translateX.value = (0, _reactNativeReanimated.withSpring)(0, _constants.OPEN_SPRING);
|
|
659
|
-
translateY.value = (0, _reactNativeReanimated.withSpring)(0, _constants.OPEN_SPRING);
|
|
660
|
-
opacity.value = (0, _reactNativeReanimated.withTiming)(1, {
|
|
661
|
-
duration: _constants.OPACITY_DURATION
|
|
662
|
-
});
|
|
663
|
-
schedule(revealPager, _constants.OPEN_DURATION_WEB);
|
|
664
|
-
}, 0);
|
|
665
|
-
}
|
|
666
|
-
}, [SCREEN_WIDTH, SCREEN_HEIGHT, fitForRatio, isCurrentRatioProbe, opacity, originScale, originX, originY, revealPager, reportOpen, scale, schedule, setActiveIndexBoth, translateX, translateY]);
|
|
667
|
+
}, [SCREEN_WIDTH, SCREEN_HEIGHT, dragScale, dragX, dragY, fitForRatio, flight, isCurrentRatioProbe, mediaOpacity, originScale, originX, originY, reportOpen, setActiveIndexBoth]);
|
|
667
668
|
|
|
668
669
|
// Closing from outside is the same dismissal a press on the backdrop starts.
|
|
669
670
|
const close = (0, _react.useCallback)(() => {
|
|
@@ -673,6 +674,11 @@ function createZoomableMediaGallery(Button) {
|
|
|
673
674
|
open,
|
|
674
675
|
close
|
|
675
676
|
}), [open, close]);
|
|
677
|
+
|
|
678
|
+
// Drag to dismiss: the media follows the finger on the UI thread, shrinking
|
|
679
|
+
// and dimming the backdrop with distance. Short of the threshold it springs
|
|
680
|
+
// back carrying the finger's speed; past it, the same flight home as any
|
|
681
|
+
// other dismissal, starting from wherever the finger left it.
|
|
676
682
|
const panGesture = (0, _react.useMemo)(() => _reactNativeGestureHandler.Gesture.Pan()
|
|
677
683
|
// Disabled while zoomed so a drag pans the zoomed image (via the
|
|
678
684
|
// per-page pan gesture) instead of trying to dismiss the whole viewer.
|
|
@@ -680,30 +686,31 @@ function createZoomableMediaGallery(Button) {
|
|
|
680
686
|
// Only claim drags that are decided to be vertical; horizontal drags
|
|
681
687
|
// fall through to the pager's ScrollView so swiping changes pages.
|
|
682
688
|
.activeOffsetY([-_constants.AXIS_DECISION_OFFSET, _constants.AXIS_DECISION_OFFSET]).failOffsetX([-_constants.AXIS_DECISION_OFFSET, _constants.AXIS_DECISION_OFFSET]).onStart(() => {
|
|
683
|
-
startX.value =
|
|
684
|
-
startY.value =
|
|
685
|
-
startScale.value =
|
|
689
|
+
startX.value = dragX.value;
|
|
690
|
+
startY.value = dragY.value;
|
|
691
|
+
startScale.value = dragScale.value;
|
|
686
692
|
}).onUpdate(event => {
|
|
687
|
-
|
|
688
|
-
|
|
693
|
+
dragX.value = startX.value + event.translationX;
|
|
694
|
+
dragY.value = startY.value + event.translationY;
|
|
689
695
|
const dragDistance = Math.sqrt(event.translationX ** 2 + event.translationY ** 2);
|
|
690
|
-
const maxDrag = SCREEN_HEIGHT * _constants.MAX_DRAG_FRACTION;
|
|
691
|
-
opacity.value = Math.max(0, 1 - dragDistance / maxDrag);
|
|
692
696
|
const scaleReduction = Math.max(_constants.MIN_DRAG_SCALE, 1 - dragDistance / (SCREEN_HEIGHT * _constants.SCALE_DRAG_FRACTION));
|
|
693
|
-
|
|
697
|
+
dragScale.value = startScale.value * scaleReduction;
|
|
694
698
|
}).onEnd(event => {
|
|
695
699
|
const dragDistance = Math.sqrt(event.translationX ** 2 + event.translationY ** 2);
|
|
696
700
|
if (dragDistance > SCREEN_HEIGHT * _constants.DISMISS_FRACTION) {
|
|
697
701
|
(0, _reactNativeReanimated.runOnJS)(handleDismiss)();
|
|
698
702
|
} else {
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
703
|
+
dragScale.value = (0, _reactNativeReanimated.withSpring)(1, _constants.SNAP_BACK_SPRING);
|
|
704
|
+
dragX.value = (0, _reactNativeReanimated.withSpring)(0, {
|
|
705
|
+
..._constants.SNAP_BACK_SPRING,
|
|
706
|
+
velocity: event.velocityX
|
|
707
|
+
});
|
|
708
|
+
dragY.value = (0, _reactNativeReanimated.withSpring)(0, {
|
|
709
|
+
..._constants.SNAP_BACK_SPRING,
|
|
710
|
+
velocity: event.velocityY
|
|
704
711
|
});
|
|
705
712
|
}
|
|
706
|
-
}), [handleDismiss, isOpen, isZoomed, SCREEN_HEIGHT,
|
|
713
|
+
}), [dragScale, dragX, dragY, handleDismiss, isOpen, isZoomed, SCREEN_HEIGHT, startScale, startX, startY]);
|
|
707
714
|
|
|
708
715
|
// CRITICAL — every shared value a mapper READS must be listed in its dependency
|
|
709
716
|
// array. On web WITHOUT the react-native-worklets babel plugin (what every Oxy
|
|
@@ -714,32 +721,36 @@ function createZoomableMediaGallery(Button) {
|
|
|
714
721
|
// double-tap zoom on web. Native (plugin present) auto-tracks and ignores the
|
|
715
722
|
// extra deps, so listing them is correct on both platforms. Same rule as
|
|
716
723
|
// `bottom-sheet/BottomSheetBase.tsx`. Do NOT strip these.
|
|
724
|
+
//
|
|
725
|
+
// The backdrop (and the chrome over it) is the flight, dimmed by how far
|
|
726
|
+
// the media has been dragged.
|
|
727
|
+
const backdropProgress = (0, _reactNativeReanimated.useDerivedValue)(() => {
|
|
728
|
+
const dragDistance = Math.sqrt(dragX.value ** 2 + dragY.value ** 2);
|
|
729
|
+
const dragDim = Math.max(0, 1 - dragDistance / (SCREEN_HEIGHT * _constants.MAX_DRAG_FRACTION));
|
|
730
|
+
return flight.value * dragDim;
|
|
731
|
+
}, [dragX, dragY, flight, SCREEN_HEIGHT]);
|
|
717
732
|
const backdropStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
|
|
718
|
-
opacity:
|
|
719
|
-
}), [
|
|
720
|
-
|
|
721
|
-
// The single open-surface animates from origin → fitted center.
|
|
722
|
-
const openImageStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
|
|
723
|
-
transform: [{
|
|
724
|
-
translateX: translateX.value
|
|
725
|
-
}, {
|
|
726
|
-
translateY: translateY.value
|
|
727
|
-
}, {
|
|
728
|
-
scale: scale.value
|
|
729
|
-
}]
|
|
730
|
-
}), [translateX, translateY, scale]);
|
|
733
|
+
opacity: backdropProgress.value
|
|
734
|
+
}), [backdropProgress]);
|
|
731
735
|
|
|
732
|
-
//
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
736
|
+
// The pager — and so the active page's media, centered in it — rides the
|
|
737
|
+
// flight: at 0 it stands on the thumbnail, at 1 it is where the finger
|
|
738
|
+
// has it. ONE surface paints the media from the first frame of the open
|
|
739
|
+
// to the last frame of the close; nothing is swapped, remounted or
|
|
740
|
+
// re-decoded on the way, which is what used to flash.
|
|
741
|
+
const mediaStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
742
|
+
const t = flight.value;
|
|
743
|
+
return {
|
|
744
|
+
opacity: mediaOpacity.value,
|
|
745
|
+
transform: [{
|
|
746
|
+
translateX: originX.value + (dragX.value - originX.value) * t
|
|
747
|
+
}, {
|
|
748
|
+
translateY: originY.value + (dragY.value - originY.value) * t
|
|
749
|
+
}, {
|
|
750
|
+
scale: originScale.value + (dragScale.value - originScale.value) * t
|
|
751
|
+
}]
|
|
752
|
+
};
|
|
753
|
+
}, [dragScale, dragX, dragY, flight, mediaOpacity, originScale, originX, originY]);
|
|
743
754
|
|
|
744
755
|
// Pinch/double-tap zoom transform, layered on TOP of the active page image's
|
|
745
756
|
// `fit`-based sizing (composed, never replacing it).
|
|
@@ -758,7 +769,7 @@ function createZoomableMediaGallery(Button) {
|
|
|
758
769
|
// close fly-back target). Shared by `onMomentumScrollEnd` (native) and `onScroll`
|
|
759
770
|
// (web, where paging may not fire a reliable momentum-end).
|
|
760
771
|
const updateIndexFromOffset = (0, _react.useCallback)(offsetX => {
|
|
761
|
-
if (dismissingRef.current || !
|
|
772
|
+
if (dismissingRef.current || !settled) return;
|
|
762
773
|
const lastIndex = items.length - 1;
|
|
763
774
|
if (lastIndex < 0) return;
|
|
764
775
|
const next = Math.min(Math.max(Math.round(offsetX / SCREEN_WIDTH), 0), lastIndex);
|
|
@@ -779,13 +790,13 @@ function createZoomableMediaGallery(Button) {
|
|
|
779
790
|
setActiveIndexBoth(next);
|
|
780
791
|
const item = items[next];
|
|
781
792
|
if (item) ensureRatio(next, item);
|
|
782
|
-
}, [ensureRatio, items,
|
|
793
|
+
}, [ensureRatio, items, resetZoom, setActiveIndexBoth, settled, SCREEN_WIDTH]);
|
|
783
794
|
|
|
784
795
|
// Programmatically page to `index` (arrow buttons, keyboard, thumbnail taps).
|
|
785
796
|
// Clamps into range and lets the existing scroll handlers own the index/ratio
|
|
786
797
|
// state-sync — this only triggers the scroll. No-op until the pager is mounted.
|
|
787
798
|
const pageTo = (0, _react.useCallback)(index => {
|
|
788
|
-
if (!
|
|
799
|
+
if (!settled) return;
|
|
789
800
|
const lastIndex = items.length - 1;
|
|
790
801
|
if (lastIndex < 0) return;
|
|
791
802
|
const clamped = Math.min(Math.max(index, 0), lastIndex);
|
|
@@ -795,7 +806,7 @@ function createZoomableMediaGallery(Button) {
|
|
|
795
806
|
y: 0,
|
|
796
807
|
animated: true
|
|
797
808
|
});
|
|
798
|
-
}, [items.length,
|
|
809
|
+
}, [items.length, resetZoom, settled, SCREEN_WIDTH]);
|
|
799
810
|
const onPagerScroll = (0, _react.useCallback)(event => {
|
|
800
811
|
updateIndexFromOffset(event.nativeEvent.contentOffset.x);
|
|
801
812
|
}, [updateIndexFromOffset]);
|
|
@@ -833,13 +844,13 @@ function createZoomableMediaGallery(Button) {
|
|
|
833
844
|
// `SCREEN_WIDTH` makes the two agree by construction, and running it before
|
|
834
845
|
// paint keeps the corrected offset from being visible as a jump.
|
|
835
846
|
(0, _react.useLayoutEffect)(() => {
|
|
836
|
-
if (!
|
|
847
|
+
if (!isOpen) return;
|
|
837
848
|
pagerRef.current?.scrollTo({
|
|
838
849
|
x: activeIndexRef.current * SCREEN_WIDTH,
|
|
839
850
|
y: 0,
|
|
840
851
|
animated: false
|
|
841
852
|
});
|
|
842
|
-
}, [
|
|
853
|
+
}, [isOpen, SCREEN_WIDTH]);
|
|
843
854
|
|
|
844
855
|
// Double-tap toggles zoom: reset when already zoomed, else zoom to the tapped
|
|
845
856
|
// point (biased toward it, clamped near the image center). `x`/`y` are local
|
|
@@ -981,16 +992,16 @@ function createZoomableMediaGallery(Button) {
|
|
|
981
992
|
// `onRequestClose`: Android back flies the media home like every other
|
|
982
993
|
// dismiss. The viewer is a Portal, not an RN `Modal`, so without it nothing
|
|
983
994
|
// consumed the press and back finished the whole app.
|
|
984
|
-
(0, _jsxRuntime.
|
|
995
|
+
(0, _jsxRuntime.jsxs)(_index.OverlayRoot, {
|
|
985
996
|
style: styles.modalContainer,
|
|
986
997
|
onRequestClose: handleDismiss,
|
|
987
998
|
modal: true,
|
|
988
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeGestureHandler.GestureHandlerRootView, {
|
|
999
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeGestureHandler.GestureHandlerRootView, {
|
|
989
1000
|
style: _reactNative.StyleSheet.absoluteFill,
|
|
990
1001
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Backdrop, {
|
|
991
1002
|
onPress: handleDismiss,
|
|
992
1003
|
accessibilityLabel: labels.close,
|
|
993
|
-
progress:
|
|
1004
|
+
progress: backdropProgress,
|
|
994
1005
|
blurIntensity: page || !overlayCanBlur() ? 0 : undefined,
|
|
995
1006
|
dimColor: pagePalette?.background,
|
|
996
1007
|
dimOpacity: page ? 1 : overlayCanBlur() ? undefined : UNBLURRED_DIM_OPACITY
|
|
@@ -1002,34 +1013,17 @@ function createZoomableMediaGallery(Button) {
|
|
|
1002
1013
|
height: SCREEN_HEIGHT
|
|
1003
1014
|
}, webUserSelectNoneStyle],
|
|
1004
1015
|
pointerEvents: "box-none",
|
|
1005
|
-
children: [
|
|
1006
|
-
|
|
1007
|
-
style: webPointerStyle,
|
|
1008
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
1009
|
-
style: [styles.mediaBox, {
|
|
1010
|
-
width: activeFit.width,
|
|
1011
|
-
height: activeFit.height,
|
|
1012
|
-
borderRadius: radiusFor(activeFit)
|
|
1013
|
-
}, openImageStyle],
|
|
1014
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MediaSurface.MediaSurface, {
|
|
1015
|
-
content: activeItem,
|
|
1016
|
-
contentFit: "contain",
|
|
1017
|
-
nativeControls: videoControls,
|
|
1018
|
-
accessibilityLabel: activeItem.alt,
|
|
1019
|
-
style: _reactNative.StyleSheet.absoluteFill
|
|
1020
|
-
})
|
|
1021
|
-
})
|
|
1022
|
-
}), pagerReady && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
1023
|
-
style: [_reactNative.StyleSheet.absoluteFill, pagerContainerStyle],
|
|
1016
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
1017
|
+
style: [_reactNative.StyleSheet.absoluteFill, mediaStyle],
|
|
1024
1018
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
|
|
1025
1019
|
ref: pagerRef,
|
|
1026
1020
|
testID: "bloom-media-gallery-pager",
|
|
1027
1021
|
horizontal: true,
|
|
1028
1022
|
pagingEnabled: true
|
|
1029
|
-
// Frozen while zoomed so a horizontal drag pans
|
|
1030
|
-
// instead of paging away from it.
|
|
1023
|
+
// Frozen in flight, and while zoomed so a horizontal drag pans
|
|
1024
|
+
// the zoomed image instead of paging away from it.
|
|
1031
1025
|
,
|
|
1032
|
-
scrollEnabled: !isZoomed,
|
|
1026
|
+
scrollEnabled: settled && !isZoomed,
|
|
1033
1027
|
showsHorizontalScrollIndicator: false,
|
|
1034
1028
|
contentOffset: {
|
|
1035
1029
|
x: activeIndexRef.current * SCREEN_WIDTH,
|
|
@@ -1079,6 +1073,7 @@ function createZoomableMediaGallery(Button) {
|
|
|
1079
1073
|
contentFit: "contain",
|
|
1080
1074
|
nativeControls: videoControls,
|
|
1081
1075
|
accessibilityLabel: item.alt,
|
|
1076
|
+
onPicture: startOpenFlight,
|
|
1082
1077
|
style: _reactNative.StyleSheet.absoluteFill
|
|
1083
1078
|
})
|
|
1084
1079
|
})
|
|
@@ -1105,7 +1100,7 @@ function createZoomableMediaGallery(Button) {
|
|
|
1105
1100
|
}, mediaKey(item, idx));
|
|
1106
1101
|
})
|
|
1107
1102
|
})
|
|
1108
|
-
}),
|
|
1103
|
+
}), settled && items.length > 1 && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeReanimated.default.View, {
|
|
1109
1104
|
style: [styles.indicatorWrap, {
|
|
1110
1105
|
bottom: INDICATOR_BOTTOM + insets.bottom
|
|
1111
1106
|
}, backdropStyle],
|
|
@@ -1148,19 +1143,19 @@ function createZoomableMediaGallery(Button) {
|
|
|
1148
1143
|
}]
|
|
1149
1144
|
}, `dot-${mediaKey(item, idx)}`))
|
|
1150
1145
|
})]
|
|
1151
|
-
}), _reactNative.Platform.OS === 'web' &&
|
|
1146
|
+
}), _reactNative.Platform.OS === 'web' && settled && items.length > 1 && activeIndex > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(NavArrow, {
|
|
1152
1147
|
buttonRef: previousButtonRef,
|
|
1153
1148
|
pageColors: pageColors,
|
|
1154
1149
|
direction: "left",
|
|
1155
1150
|
label: labels.previous,
|
|
1156
1151
|
onPress: () => pageTo(activeIndex - 1)
|
|
1157
|
-
}), _reactNative.Platform.OS === 'web' &&
|
|
1152
|
+
}), _reactNative.Platform.OS === 'web' && settled && items.length > 1 && activeIndex < items.length - 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(NavArrow, {
|
|
1158
1153
|
buttonRef: nextButtonRef,
|
|
1159
1154
|
pageColors: pageColors,
|
|
1160
1155
|
direction: "right",
|
|
1161
1156
|
label: labels.next,
|
|
1162
1157
|
onPress: () => pageTo(activeIndex + 1)
|
|
1163
|
-
}), canShare &&
|
|
1158
|
+
}), canShare && settled && activeItem && /*#__PURE__*/(0, _jsxRuntime.jsx)(Button, {
|
|
1164
1159
|
ref: shareButtonRef,
|
|
1165
1160
|
onPress: handleShare,
|
|
1166
1161
|
disabled: activeItem.shareUrl !== undefined && shareUri(activeItem) === undefined,
|
|
@@ -1219,7 +1214,9 @@ function createZoomableMediaGallery(Button) {
|
|
|
1219
1214
|
children: videoOverlay
|
|
1220
1215
|
})
|
|
1221
1216
|
})]
|
|
1222
|
-
})
|
|
1217
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(OnCommit, {
|
|
1218
|
+
onCommit: onOverlayCommit
|
|
1219
|
+
})]
|
|
1223
1220
|
});
|
|
1224
1221
|
if (!isOpen) return null;
|
|
1225
1222
|
|