@oxy.so/bloom 23.1.1 → 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
package/src/avatar/Avatar.tsx
CHANGED
|
@@ -8,13 +8,11 @@ import type { PressableStateCallbackType, TextStyle } from 'react-native';
|
|
|
8
8
|
import { imageSourcesKey } from './source-key';
|
|
9
9
|
|
|
10
10
|
import { useTheme } from '../theme/use-theme';
|
|
11
|
-
import { useMessages } from '../locale/messages';
|
|
12
11
|
import { useImageResolver } from '../image-resolver/context';
|
|
13
12
|
import { isImageUrl } from '../image-resolver/is-image-url';
|
|
14
13
|
import { Z_INDEX } from '../styles/z-index';
|
|
15
14
|
import { PRESS_HOST_STYLE } from '../styles/press-host';
|
|
16
15
|
import { useAvatarPlaceholder } from './context';
|
|
17
|
-
import { AVATAR_MESSAGES } from './messages';
|
|
18
16
|
import { LiveBadge } from './LiveBadge';
|
|
19
17
|
import { AvatarRing } from './AvatarRing';
|
|
20
18
|
import { CharacterFace } from './CharacterFace';
|
|
@@ -145,6 +143,8 @@ export const AVATAR_PHOTO_RETRY_DELAYS_MS = [2_000, 8_000] as const;
|
|
|
145
143
|
type PhotoStage = 'primary' | 'fallback' | 'placeholder';
|
|
146
144
|
|
|
147
145
|
interface PhotoState {
|
|
146
|
+
/** The sources this state is about (`imageSourcesKey`): new sources start the stages over. */
|
|
147
|
+
key: string;
|
|
148
148
|
stage: PhotoStage;
|
|
149
149
|
/** Requests of the primary photo made before the current one. */
|
|
150
150
|
attempt: number;
|
|
@@ -183,7 +183,7 @@ function AvatarPhotoRetry({
|
|
|
183
183
|
() =>
|
|
184
184
|
setPhoto((current) =>
|
|
185
185
|
current.retry && current.attempt === attempt
|
|
186
|
-
? { stage: 'primary', attempt: attempt + 1 }
|
|
186
|
+
? { key: current.key, stage: 'primary', attempt: attempt + 1 }
|
|
187
187
|
: current,
|
|
188
188
|
),
|
|
189
189
|
delay,
|
|
@@ -202,25 +202,50 @@ function AvatarPhotoRetry({
|
|
|
202
202
|
return null;
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
+
function initialPhoto(
|
|
206
|
+
key: string,
|
|
207
|
+
primarySource: ImageSource | undefined,
|
|
208
|
+
fallbackSource: ImageSource | undefined,
|
|
209
|
+
): PhotoState {
|
|
210
|
+
return {
|
|
211
|
+
key,
|
|
212
|
+
stage: primarySource ? 'primary' : fallbackSource ? 'fallback' : 'placeholder',
|
|
213
|
+
attempt: 0,
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
|
|
205
217
|
/**
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
218
|
+
* New resolved source values start the stages over. A primary that fails
|
|
219
|
+
* transiently shows the next stage at once and is requested again after
|
|
220
|
+
* {@link AVATAR_PHOTO_RETRY_DELAYS_MS}; a 404 is never re-requested.
|
|
221
|
+
*
|
|
222
|
+
* The stages restart in place, not by remounting: a list row that takes another
|
|
223
|
+
* person keeps its image view and hands it the new picture (`recyclingKey`
|
|
224
|
+
* clears the old one at once), instead of building a new native view for every
|
|
225
|
+
* avatar a fling scrolls past. Until the picture arrives the shape shows
|
|
226
|
+
* `loadingColor`.
|
|
209
227
|
*/
|
|
210
228
|
function AvatarImageContent({
|
|
211
229
|
primarySource,
|
|
212
230
|
fallbackSource,
|
|
213
231
|
onImageError,
|
|
232
|
+
loadingColor,
|
|
214
233
|
...placeholder
|
|
215
234
|
}: React.ComponentProps<typeof ShapeFallback> & {
|
|
216
235
|
primarySource?: ImageSource;
|
|
217
236
|
fallbackSource?: ImageSource;
|
|
218
237
|
onImageError?: () => void;
|
|
238
|
+
loadingColor?: string;
|
|
219
239
|
}) {
|
|
220
|
-
const
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
240
|
+
const sourcesKey = imageSourcesKey(primarySource, fallbackSource);
|
|
241
|
+
const [state, setPhoto] = useState<PhotoState>(() =>
|
|
242
|
+
initialPhoto(sourcesKey, primarySource, fallbackSource),
|
|
243
|
+
);
|
|
244
|
+
let photo = state;
|
|
245
|
+
if (state.key !== sourcesKey) {
|
|
246
|
+
photo = initialPhoto(sourcesKey, primarySource, fallbackSource);
|
|
247
|
+
setPhoto(photo);
|
|
248
|
+
}
|
|
224
249
|
const { stage, attempt, retry } = photo;
|
|
225
250
|
const uri = primaryUri(primarySource);
|
|
226
251
|
const source =
|
|
@@ -241,15 +266,19 @@ function AvatarImageContent({
|
|
|
241
266
|
shape: placeholder.shape,
|
|
242
267
|
size: placeholder.size,
|
|
243
268
|
alt: placeholder.alt,
|
|
269
|
+
placeholderColor: loadingColor,
|
|
270
|
+
recyclingKey: primaryUri(source),
|
|
244
271
|
onError: ({ error }: BloomImageErrorInfo) =>
|
|
245
272
|
setPhoto((current) => {
|
|
246
|
-
if (current.stage !== stage || current.attempt !== attempt)
|
|
273
|
+
if (current.key !== sourcesKey || current.stage !== stage || current.attempt !== attempt)
|
|
274
|
+
return current;
|
|
247
275
|
if (stage !== 'primary') return { ...current, stage: 'placeholder' };
|
|
248
276
|
const kind = classifyImageFailure(error);
|
|
249
277
|
const retriable =
|
|
250
278
|
attempt < AVATAR_PHOTO_RETRY_DELAYS_MS.length &&
|
|
251
279
|
(kind === 'transient' || (kind === 'unknown' && canProbeImageFailure(uri)));
|
|
252
280
|
return {
|
|
281
|
+
key: sourcesKey,
|
|
253
282
|
stage: fallbackSource ? 'fallback' : 'placeholder',
|
|
254
283
|
attempt,
|
|
255
284
|
...(retriable ? { retry: kind } : {}),
|
|
@@ -260,7 +289,8 @@ function AvatarImageContent({
|
|
|
260
289
|
return (
|
|
261
290
|
<>
|
|
262
291
|
{stage === 'primary' && onImageError && attempt === 0 ? (
|
|
263
|
-
|
|
292
|
+
// Its once-per-photo report is per sources, so it alone starts afresh.
|
|
293
|
+
<ObservedAvatarImage key={sourcesKey} {...image} onImageError={onImageError} />
|
|
264
294
|
) : (
|
|
265
295
|
<ShapeImage key={`${stage}:${attempt}`} {...image} />
|
|
266
296
|
)}
|
|
@@ -314,8 +344,6 @@ const AvatarComponent: React.FC<AvatarProps> = ({
|
|
|
314
344
|
testID,
|
|
315
345
|
}) => {
|
|
316
346
|
const theme = useTheme();
|
|
317
|
-
const { messages } = useMessages(AVATAR_MESSAGES);
|
|
318
|
-
const liveLabel = liveLabelProp ?? messages.live;
|
|
319
347
|
const placeholderConfig = useAvatarPlaceholder();
|
|
320
348
|
const scope = useContext(BloomAppearanceContext);
|
|
321
349
|
const size = resolveAvatarSize(sizeProp ?? scope.size);
|
|
@@ -442,10 +470,10 @@ const AvatarComponent: React.FC<AvatarProps> = ({
|
|
|
442
470
|
/>
|
|
443
471
|
) : (
|
|
444
472
|
<AvatarImageContent
|
|
445
|
-
key={imageSourcesKey(primarySource, fallbackSource)}
|
|
446
473
|
primarySource={primarySource}
|
|
447
474
|
fallbackSource={fallbackSource}
|
|
448
475
|
onImageError={onImageError}
|
|
476
|
+
loadingColor={theme.colors.backgroundTertiary}
|
|
449
477
|
{...placeholderProps}
|
|
450
478
|
/>
|
|
451
479
|
)}
|
|
@@ -468,7 +496,7 @@ const AvatarComponent: React.FC<AvatarProps> = ({
|
|
|
468
496
|
{showLiveBadge && (
|
|
469
497
|
<LiveBadge
|
|
470
498
|
variant={size > 32 ? 'small' : 'tiny'}
|
|
471
|
-
label={
|
|
499
|
+
label={liveLabelProp}
|
|
472
500
|
backgroundColor={liveBadgeColor}
|
|
473
501
|
textColor={theme.colors.negativeForeground}
|
|
474
502
|
/>
|
package/src/avatar/LiveBadge.tsx
CHANGED
|
@@ -2,9 +2,11 @@ import type React from 'react';
|
|
|
2
2
|
import { memo } from 'react';
|
|
3
3
|
import { View, StyleSheet } from 'react-native';
|
|
4
4
|
|
|
5
|
+
import { useMessages } from '../locale/messages';
|
|
5
6
|
import { fontSize } from '../styles/tokens';
|
|
6
7
|
import { Z_INDEX } from '../styles/z-index';
|
|
7
8
|
import { Text } from '../typography';
|
|
9
|
+
import { AVATAR_MESSAGES } from './messages';
|
|
8
10
|
|
|
9
11
|
export type LiveBadgeVariant = 'tiny' | 'small';
|
|
10
12
|
|
|
@@ -18,8 +20,12 @@ const LABEL_SIZE: Record<LiveBadgeVariant, number> = { small: fontSize._2xs, tin
|
|
|
18
20
|
interface LiveBadgeProps {
|
|
19
21
|
/** Size variant — `'tiny'` for small avatars, `'small'` for larger ones. */
|
|
20
22
|
variant: LiveBadgeVariant;
|
|
21
|
-
/**
|
|
22
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Text shown inside the pill, already localized by the caller. Omitted, the
|
|
25
|
+
* pill says Bloom's own localized "LIVE": read here, where only a live avatar
|
|
26
|
+
* pays for it, not in every avatar.
|
|
27
|
+
*/
|
|
28
|
+
label?: string;
|
|
23
29
|
/** Pill background color (defaults come from the theme `negative` token). */
|
|
24
30
|
backgroundColor: string;
|
|
25
31
|
/** Pill text color (defaults come from the theme `negativeForeground` token). */
|
|
@@ -39,6 +45,7 @@ const LiveBadgeComponent: React.FC<LiveBadgeProps> = ({
|
|
|
39
45
|
backgroundColor,
|
|
40
46
|
textColor,
|
|
41
47
|
}) => {
|
|
48
|
+
const { messages } = useMessages(AVATAR_MESSAGES);
|
|
42
49
|
return (
|
|
43
50
|
<View style={styles.wrapper}>
|
|
44
51
|
<View style={[styles.pill, { backgroundColor }]}>
|
|
@@ -47,7 +54,7 @@ const LiveBadgeComponent: React.FC<LiveBadgeProps> = ({
|
|
|
47
54
|
numberOfLines={1}
|
|
48
55
|
style={[styles.text, { color: textColor, fontSize: LABEL_SIZE[variant] }]}
|
|
49
56
|
>
|
|
50
|
-
{label}
|
|
57
|
+
{label ?? messages.live}
|
|
51
58
|
</Text>
|
|
52
59
|
</View>
|
|
53
60
|
</View>
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
type ComponentType,
|
|
7
7
|
type PropsWithChildren,
|
|
8
8
|
} from 'react';
|
|
9
|
-
import { Platform, useWindowDimensions,
|
|
9
|
+
import { Platform, useWindowDimensions, View } from 'react-native';
|
|
10
10
|
import Animated, {
|
|
11
11
|
cancelAnimation,
|
|
12
12
|
Easing,
|
|
@@ -19,12 +19,12 @@ import Animated, {
|
|
|
19
19
|
|
|
20
20
|
import { AgentAvatar } from '../agent-avatar';
|
|
21
21
|
import { OverlayRoot } from '../overlay';
|
|
22
|
-
import {
|
|
22
|
+
import { BloomImage } from '../image';
|
|
23
23
|
import { avatarFlightPoint, measureAvatar } from './geometry';
|
|
24
24
|
import type { ActiveAvatarFlight, AvatarFlightLayerState, AvatarRect } from './types';
|
|
25
25
|
import { usePrefersReducedMotion } from '../hooks/use-prefers-reduced-motion';
|
|
26
26
|
|
|
27
|
-
const AnimatedView = Animated.createAnimatedComponent(
|
|
27
|
+
const AnimatedView = Animated.createAnimatedComponent(View);
|
|
28
28
|
|
|
29
29
|
const EASE_OUT = Easing.bezier(0.22, 1, 0.36, 1);
|
|
30
30
|
const DEFAULT_DURATION = 800;
|
|
@@ -39,7 +39,7 @@ const TRACK_FRAMES = 90;
|
|
|
39
39
|
function Figure({ flight, paused = true }: { flight: ActiveAvatarFlight; paused?: boolean }) {
|
|
40
40
|
const { width, height } = flight.from;
|
|
41
41
|
return flight.snapshot ? (
|
|
42
|
-
<
|
|
42
|
+
<BloomImage
|
|
43
43
|
source={flight.snapshot}
|
|
44
44
|
accessible={false}
|
|
45
45
|
contentFit="contain"
|
|
@@ -173,7 +173,7 @@ function Flights({ layer }: { layer: AvatarFlightLayerState }) {
|
|
|
173
173
|
|
|
174
174
|
return (
|
|
175
175
|
<OverlayRoot testID="avatar-flight-layer">
|
|
176
|
-
<
|
|
176
|
+
<View
|
|
177
177
|
ref={surface}
|
|
178
178
|
collapsable={false}
|
|
179
179
|
pointerEvents="none"
|
|
@@ -193,7 +193,7 @@ function Flights({ layer }: { layer: AvatarFlightLayerState }) {
|
|
|
193
193
|
/>
|
|
194
194
|
) : (
|
|
195
195
|
// Waiting for its target to mount: parked where it left.
|
|
196
|
-
<
|
|
196
|
+
<View
|
|
197
197
|
key={flight.spec.key}
|
|
198
198
|
pointerEvents="none"
|
|
199
199
|
style={{
|
|
@@ -205,10 +205,10 @@ function Flights({ layer }: { layer: AvatarFlightLayerState }) {
|
|
|
205
205
|
}}
|
|
206
206
|
>
|
|
207
207
|
<Figure flight={placed} />
|
|
208
|
-
</
|
|
208
|
+
</View>
|
|
209
209
|
);
|
|
210
210
|
})}
|
|
211
|
-
</
|
|
211
|
+
</View>
|
|
212
212
|
</OverlayRoot>
|
|
213
213
|
);
|
|
214
214
|
}
|
package/src/button/shared.ts
CHANGED
|
@@ -489,12 +489,6 @@ export function resolveCanonicalButtonPalette(
|
|
|
489
489
|
};
|
|
490
490
|
}
|
|
491
491
|
|
|
492
|
-
/** `linear-gradient(180deg, top, bottom)`, or a flat one for a solid state. */
|
|
493
|
-
export function paintToCssImage(paint: ButtonStatePaint): string {
|
|
494
|
-
const [top, bottom] = paint.gradient ?? [paint.background, paint.background];
|
|
495
|
-
return `linear-gradient(180deg, ${top} 0%, ${bottom} 100%)`;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
492
|
/** Elements are content; function, memo and forwardRef icons are components. */
|
|
499
493
|
export function isIconComponent(
|
|
500
494
|
icon: ReactNode | ButtonIconComponent,
|
package/src/button/types.ts
CHANGED
|
@@ -16,7 +16,7 @@ import type {
|
|
|
16
16
|
ViewStyle,
|
|
17
17
|
TextStyle,
|
|
18
18
|
} from 'react-native';
|
|
19
|
-
import type { WebAriaProps } from '../styles/
|
|
19
|
+
import type { WebAriaProps } from '../styles/aria-hosts';
|
|
20
20
|
import type { BloomIconComponent } from '../icons/icon-component';
|
|
21
21
|
import type { TypeScaleVariant } from '../typography/scale';
|
|
22
22
|
|
|
@@ -30,7 +30,7 @@ import { ScreenScope } from '../layout/screen-scope';
|
|
|
30
30
|
import { useClaimBottomEdge } from '../layout/bottom-edge';
|
|
31
31
|
import { ScrollOffsetProvider } from '../layout/scroll-offset';
|
|
32
32
|
import { EDGE_GAP, windowEdgeGap } from '../layout/edge';
|
|
33
|
-
import {
|
|
33
|
+
import { AriaPressable } from '../styles/aria-hosts';
|
|
34
34
|
import { interactiveWebCss, useInteractiveWebCss } from '../styles/interactive-web-css';
|
|
35
35
|
import { useTouchInput } from '../styles/pointer';
|
|
36
36
|
import type { WebCssStyle } from '../styles/web-view-style';
|
|
@@ -343,7 +343,7 @@ export function createCanvasPanel(
|
|
|
343
343
|
<ScrollOffsetProvider value={scrollY}>
|
|
344
344
|
<GestureDetector gesture={handlePan} touchAction="none">
|
|
345
345
|
<View style={{ display: lateral ? 'none' : 'flex' }}>
|
|
346
|
-
<
|
|
346
|
+
<AriaPressable
|
|
347
347
|
ref={handleRef}
|
|
348
348
|
{...keyProps}
|
|
349
349
|
onPress={() => moveTo(SNAPS[(SNAPS.indexOf(snap) + 1) % 3]!)}
|
|
@@ -384,7 +384,7 @@ export function createCanvasPanel(
|
|
|
384
384
|
backgroundColor: colors.textTertiary,
|
|
385
385
|
}}
|
|
386
386
|
/>
|
|
387
|
-
</
|
|
387
|
+
</AriaPressable>
|
|
388
388
|
</View>
|
|
389
389
|
</GestureDetector>
|
|
390
390
|
<GestureDetector gesture={headerPan} touchAction={lateral ? 'auto' : 'none'}>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { memo, useEffect, useMemo, useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { AriaPressable as Pressable, AriaView as View } from '../styles/aria-hosts';
|
|
3
3
|
|
|
4
4
|
import { resolveButtonRamps } from '../button/shared';
|
|
5
5
|
import { useInteractionState } from '../hooks/use-interaction-state';
|
|
@@ -101,7 +101,6 @@ export interface ChatComposerPalette {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
/** Re-exported from `theme/color-utils`, which owns it (it was copied here). */
|
|
104
|
-
export { withAlpha } from '../theme/color-utils';
|
|
105
104
|
|
|
106
105
|
export function resolveChatComposerPalette(theme: Theme, backing?: string): ChatComposerPalette {
|
|
107
106
|
const { accent } = resolveButtonRamps(theme);
|
package/src/chat-list/shared.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { colorRamp, DANGER_TABLE, resolveButtonRamps } from '../button/shared';
|
|
2
2
|
import { CHAT_INDICATORS_MESSAGES } from '../chat-indicators/messages';
|
|
3
3
|
import type { MessageDeliveryStatus } from '../chat-indicators/types';
|
|
4
|
-
import { RiChat3Line } from '../icons/remix/RiChat3Line';
|
|
5
4
|
import { RiContactsBookLine } from '../icons/remix/RiContactsBookLine';
|
|
6
5
|
import { RiFileGifLine } from '../icons/remix/RiFileGifLine';
|
|
7
6
|
import { RiFileTextLine } from '../icons/remix/RiFileTextLine';
|
|
@@ -87,9 +86,6 @@ export const CHAT_ROW_GEOMETRY: Record<ChatListDensity, ChatRowGeometry> = {
|
|
|
87
86
|
},
|
|
88
87
|
};
|
|
89
88
|
|
|
90
|
-
/** Corner radius of a row's hover/selected fill. */
|
|
91
|
-
export const CHAT_ROW_RADIUS = 12;
|
|
92
|
-
|
|
93
89
|
// The swipe's thresholds and pane width live in `swipe-row/constants.ts` —
|
|
94
90
|
// this family drags through `SwipeRow` and owns none of that geometry.
|
|
95
91
|
|
|
@@ -114,9 +110,6 @@ export const CHAT_ATTACHMENT_ICONS: Record<ChatAttachmentKind, ChatIconComponent
|
|
|
114
110
|
poll: RiListCheck3,
|
|
115
111
|
};
|
|
116
112
|
|
|
117
|
-
/** The glyph of an empty conversations list. */
|
|
118
|
-
export const CHAT_EMPTY_ICON = RiChat3Line;
|
|
119
|
-
|
|
120
113
|
// ---------------------------------------------------------------------------
|
|
121
114
|
// Paint
|
|
122
115
|
// ---------------------------------------------------------------------------
|
package/src/chip/Chip.tsx
CHANGED
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import type { WebCssStyle } from '../styles/web-view-style';
|
|
27
27
|
import { CHIP_GEOMETRY, resolveChipPaint, resolveChipRing } from './shared';
|
|
28
28
|
import type { ChipProps } from './types';
|
|
29
|
-
import {
|
|
29
|
+
import { AriaPressable } from '../styles/aria-hosts';
|
|
30
30
|
import { IS_WEB } from '../styles/platform';
|
|
31
31
|
import type { MemoRefComponent } from '../styles/native-refs';
|
|
32
32
|
|
|
@@ -359,7 +359,7 @@ const ChipComponent = forwardRef<ComponentRef<typeof View>, ChipProps>(function
|
|
|
359
359
|
: null;
|
|
360
360
|
|
|
361
361
|
const button = (
|
|
362
|
-
<
|
|
362
|
+
<AriaPressable
|
|
363
363
|
ref={ref}
|
|
364
364
|
// The DOM hook the adopted sheet above hangs off.
|
|
365
365
|
//
|
|
@@ -436,7 +436,7 @@ const ChipComponent = forwardRef<ComponentRef<typeof View>, ChipProps>(function
|
|
|
436
436
|
>
|
|
437
437
|
{onClose ? null : material}
|
|
438
438
|
{content}
|
|
439
|
-
</
|
|
439
|
+
</AriaPressable>
|
|
440
440
|
);
|
|
441
441
|
if (!onClose) return button;
|
|
442
442
|
// Selection and removal are sibling controls, never nested buttons.
|
|
@@ -89,7 +89,6 @@ export interface ComposerPalette {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
/** Re-exported from `theme/color-utils`, which owns it (it was copied here). */
|
|
92
|
-
export { withAlpha } from '../theme/color-utils';
|
|
93
92
|
|
|
94
93
|
/** Canonical surfaces and foregrounds follow the preset's authored role pairs. */
|
|
95
94
|
export function resolveComposerPalette(theme: Theme): ComposerPalette {
|
|
@@ -9,14 +9,14 @@ import { resolveSurfaceMaterial } from '../surface/resolve-surface-material';
|
|
|
9
9
|
* from letting feed content bleed to the rounded panel edge, both solved here
|
|
10
10
|
* with sticky, full-viewport-height overlays inside the panel surface:
|
|
11
11
|
*
|
|
12
|
-
* 1. BLEED-MASK overlay (
|
|
12
|
+
* 1. BLEED-MASK overlay (z-index 30): a `box-shadow` ring in the GUTTER color
|
|
13
13
|
* (Bloom `background` token) drawn OVER content that bleeds into the thin
|
|
14
14
|
* lateral gutter / rounded corners. The clip stays within the panel’s horizontal bounds
|
|
15
15
|
* and covers the full declared vertical insets. It sits below opaque chrome (headers/banners),
|
|
16
16
|
* so it only masks the content's bleed, never the chrome. No border.
|
|
17
17
|
* (`clip-path` lives in the adopted sheet — RN-web drops it from `style`.)
|
|
18
18
|
*
|
|
19
|
-
* 2. BORDER-FRAME overlay (
|
|
19
|
+
* 2. BORDER-FRAME overlay (z-index 120): a single 1px rounded `border` token
|
|
20
20
|
* outline with a transparent interior, ABOVE all content. Being one element
|
|
21
21
|
* above everything, it draws ONE continuous rounded border around all four
|
|
22
22
|
* sides — no seams, no double lines, no per-chrome borders.
|
|
@@ -62,19 +62,17 @@ import { resolveSurfaceMaterial } from '../surface/resolve-surface-material';
|
|
|
62
62
|
*
|
|
63
63
|
* Framing is tri-state via the `framed` prop:
|
|
64
64
|
*
|
|
65
|
-
* - `undefined` (DEFAULT) → RESPONSIVE
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* (`display:none` below the breakpoint), so the breakpoint is decided entirely
|
|
71
|
-
* in CSS — no consumer JS breakpoint hook.
|
|
65
|
+
* - `undefined` (DEFAULT) → RESPONSIVE: full-bleed below the `framedFrom`
|
|
66
|
+
* breakpoint (default `768`), framed at/above it. The window width picks the
|
|
67
|
+
* rounding and the overlays' `display: none`; the sticky inset PageHeader
|
|
68
|
+
* inherits follows the same breakpoint in CSS (`PANEL_INSET_CSS`, keyed by
|
|
69
|
+
* `data-bloom-panel`).
|
|
72
70
|
* - `false` → NEVER framed (full-bleed at every size): a single flat surface,
|
|
73
71
|
* no rounding, no overlays.
|
|
74
72
|
* - `true` → ALWAYS framed (rounded + overlays at every size).
|
|
75
73
|
*
|
|
76
|
-
* The overlays are gated by VISIBILITY (
|
|
77
|
-
*
|
|
74
|
+
* The overlays are gated by VISIBILITY (`display: none` below the breakpoint)
|
|
75
|
+
* rather than by conditional mounting for the responsive case, so
|
|
78
76
|
* crossing the breakpoint never remounts them. The content wrapper likewise
|
|
79
77
|
* keeps a stable `key` so `{children}` reconciles in place across the breakpoint
|
|
80
78
|
* instead of remounting (which would reset feed scroll / the virtualizer +
|
|
@@ -123,20 +121,6 @@ export const PANEL_TOP_INSET = 8;
|
|
|
123
121
|
/** Bottom sticky inset (px) of the framed panel chrome. */
|
|
124
122
|
export const PANEL_BOTTOM_INSET = 8;
|
|
125
123
|
|
|
126
|
-
/**
|
|
127
|
-
* Per-breakpoint literal Tailwind variant tokens for the WEB responsive mode.
|
|
128
|
-
* Each field is a WHOLE literal class string (never assembled from parts at
|
|
129
|
-
* runtime) so the consumer's content-scan over `lib/**` picks up every
|
|
130
|
-
* arbitrary/`min-*`/`max-*`/`web:` token verbatim. Selecting a bundle by
|
|
131
|
-
* `framedFrom` value is the only runtime decision:
|
|
132
|
-
* - `surface` → framing rounding on the surface at/above the breakpoint.
|
|
133
|
-
* - `content` → the same rounding + a web-only horizontal clip on the
|
|
134
|
-
* inner content wrapper (`web:<bp>:overflow-x-clip`, platform-first-then-
|
|
135
|
-
* breakpoint — matching the consumer convention `web:sm:flex` in `@mercaria/ui`).
|
|
136
|
-
* - `overlayHidden` → `display:none` for the sticky overlays BELOW the breakpoint.
|
|
137
|
-
* `min-[500px]:` (≥500) and `max-[500px]:` (<500) are exactly complementary
|
|
138
|
-
* (meet at 500, no overlap/gap), mirroring the named `md:`/`max-md:` pair.
|
|
139
|
-
*/
|
|
140
124
|
/** `flex: 1`, as the CSS shorthand computes it. */
|
|
141
125
|
const FLEX_FILL: ViewStyle = { flexGrow: 1, flexShrink: 1, flexBasis: '0%' };
|
|
142
126
|
const PANEL_RADIUS = 'var(--bloom-panel-radius)';
|
|
@@ -338,16 +322,9 @@ const ContentPanelComponent: React.FC<ContentPanelProps> = ({
|
|
|
338
322
|
marginBottom: cssLength('calc(-100dvh + 16px)'),
|
|
339
323
|
};
|
|
340
324
|
|
|
341
|
-
//
|
|
342
|
-
//
|
|
343
|
-
//
|
|
344
|
-
// An INSET is a runtime number — a shell's gutter, a measured header — which
|
|
345
|
-
// a Tailwind arbitrary class cannot express (content-scanning needs the
|
|
346
|
-
// literal string in source, not a value computed later), so a non-default
|
|
347
|
-
// inset shifts the same three properties through inline `style` instead,
|
|
348
|
-
// which has no such constraint. The default (8/8) leaves the classes standing
|
|
349
|
-
// alone, and `panel` mode ignores the inset entirely — that mode already
|
|
350
|
-
// starts at the panel's own box.
|
|
325
|
+
// A non-default inset (a shell's gutter, a measured header) shifts the same
|
|
326
|
+
// three properties; `panel` mode ignores it, as it starts at the panel's own
|
|
327
|
+
// box.
|
|
351
328
|
//
|
|
352
329
|
// RN's `ViewStyle.height`/`marginBottom` types only accept a number or a
|
|
353
330
|
// `${number}%` string, not an arbitrary CSS `calc()`, because most of that
|
|
@@ -7,7 +7,6 @@ import { Text } from '../typography';
|
|
|
7
7
|
import { useCommonMessages } from '../locale/common-messages';
|
|
8
8
|
import { useMessages } from '../locale/messages';
|
|
9
9
|
import { pointerEventsStyles } from '../styles/pointer-events';
|
|
10
|
-
import { StyledView } from '../styles/styled-primitives';
|
|
11
10
|
import { useTheme } from '../theme/use-theme';
|
|
12
11
|
import { CoverImage } from './CoverImage';
|
|
13
12
|
import { CENTER_POSITION, clampPosition, dragCoverPosition, coverSourceIdentity } from './geometry';
|
|
@@ -214,7 +213,7 @@ function CoverHeaderComponent({
|
|
|
214
213
|
]}
|
|
215
214
|
>
|
|
216
215
|
<GestureDetector gesture={gesture} touchAction={editing ? 'none' : 'auto'}>
|
|
217
|
-
<
|
|
216
|
+
<View
|
|
218
217
|
ref={editHost}
|
|
219
218
|
collapsable={false}
|
|
220
219
|
{...webProps}
|
|
@@ -272,7 +271,7 @@ function CoverHeaderComponent({
|
|
|
272
271
|
testID={testID ? `${testID}-cover-image` : undefined}
|
|
273
272
|
/>
|
|
274
273
|
) : null)}
|
|
275
|
-
</
|
|
274
|
+
</View>
|
|
276
275
|
</GestureDetector>
|
|
277
276
|
</View>
|
|
278
277
|
<View
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState, type ReactNode } from 'react';
|
|
2
|
-
import { useWindowDimensions } from 'react-native';
|
|
2
|
+
import { useWindowDimensions, View } from 'react-native';
|
|
3
3
|
import Animated, {
|
|
4
4
|
Easing,
|
|
5
5
|
useAnimatedStyle,
|
|
@@ -7,10 +7,9 @@ import Animated, {
|
|
|
7
7
|
withTiming,
|
|
8
8
|
} from 'react-native-reanimated';
|
|
9
9
|
import { useDialogContext } from './context';
|
|
10
|
-
import { StyledView } from '../styles/styled-primitives';
|
|
11
10
|
import { DetailDialogEnteredContext } from './context';
|
|
12
11
|
import { usePrefersReducedMotion } from '../hooks/use-prefers-reduced-motion';
|
|
13
|
-
const AnimatedView = Animated.createAnimatedComponent(
|
|
12
|
+
const AnimatedView = Animated.createAnimatedComponent(View);
|
|
14
13
|
function phase(start: number, end: number, value: number) {
|
|
15
14
|
'worklet';
|
|
16
15
|
const t = Math.min(1, Math.max(0, (value - start) / (end - start)));
|
|
@@ -90,7 +90,7 @@ import { usePlacementBoundary } from '../overlay/placement-boundary';
|
|
|
90
90
|
import { useSurfaceMaterial } from '../surface/use-surface-material.web';
|
|
91
91
|
import { surfacePresenceStyle, useSurfacePresenceContent } from '../surface/use-surface-presence';
|
|
92
92
|
import { Portal } from '../portal/index.web';
|
|
93
|
-
import {
|
|
93
|
+
import { AriaView } from '../styles/aria-hosts';
|
|
94
94
|
import { SurfaceLevelProvider, surfaceFillVars, useSurfaceFill } from '../styles/surface-levels';
|
|
95
95
|
import { webDataSet } from '../styles/web-data';
|
|
96
96
|
import { WEB_OVERFLOW_CLIP, WEB_POSITION_FIXED, type WebCssStyle } from '../styles/web-view-style';
|
|
@@ -121,8 +121,8 @@ import { usePrefersReducedMotion } from '../hooks/use-prefers-reduced-motion';
|
|
|
121
121
|
*/
|
|
122
122
|
const PANEL_CURVE = surfaceStyle({ curve: SURFACE_SHAPES.menu.curve });
|
|
123
123
|
|
|
124
|
-
/** `
|
|
125
|
-
const AnimatedPanel = Animated.createAnimatedComponent(
|
|
124
|
+
/** `AriaView` for its `listbox` role, which React Native's `Role` lacks. */
|
|
125
|
+
const AnimatedPanel = Animated.createAnimatedComponent(AriaView);
|
|
126
126
|
|
|
127
127
|
/** The hook the surface material's stylesheet paints the panel through (`useSurfaceMaterial`). */
|
|
128
128
|
const MATERIAL_HOOK = webDataSet({ 'bloom-floating-surface': '' });
|
|
@@ -36,7 +36,7 @@ import { StyleSheet, type PointerEvent, View, type StyleProp, type ViewStyle } f
|
|
|
36
36
|
|
|
37
37
|
import { useRestoreAccessibilityFocus } from '../hooks/use-accessibility-focus';
|
|
38
38
|
import { mergeRefs } from '../hooks/merge-refs';
|
|
39
|
-
import {
|
|
39
|
+
import { AriaPressable } from '../styles/aria-hosts';
|
|
40
40
|
import type { OverlayTriggerProps, TriggerHandleProps } from './types';
|
|
41
41
|
import { PrimaryTriggerStateContext } from './context';
|
|
42
42
|
|
|
@@ -242,7 +242,7 @@ export function TriggerSlot({
|
|
|
242
242
|
const control = asChild ? (
|
|
243
243
|
cloneTrigger(children, handle)
|
|
244
244
|
) : (
|
|
245
|
-
<
|
|
245
|
+
<AriaPressable {...handle}>{children}</AriaPressable>
|
|
246
246
|
);
|
|
247
247
|
return (
|
|
248
248
|
<View
|
|
@@ -47,7 +47,7 @@ export const DEFAULT_ALIGN_OFFSET = 0;
|
|
|
47
47
|
*
|
|
48
48
|
* React Native types no `aria-haspopup` (it is a PROPERTY, with no state to fold
|
|
49
49
|
* into `accessibilityState`) and ignores it; react-native-web forwards it.
|
|
50
|
-
* `styles/
|
|
50
|
+
* `styles/aria-hosts.ts`'s `WebAriaProps` is what makes it spellable
|
|
51
51
|
* without a cast.
|
|
52
52
|
*/
|
|
53
53
|
export const MENU_TRIGGER_POPUP = 'menu';
|
|
@@ -41,7 +41,7 @@ import { RiCheckLine as CheckIcon } from '../icons/remix/RiCheckLine';
|
|
|
41
41
|
import { RiCloseLine as RemoveIcon } from '../icons/remix/RiCloseLine';
|
|
42
42
|
import { RiSubtractLine as MixedIcon } from '../icons/remix/RiSubtractLine';
|
|
43
43
|
import { AA_LARGE_TEXT_CONTRAST, contrastRatio, mixColors } from '../styles/color-contrast';
|
|
44
|
-
import {
|
|
44
|
+
import { AriaPressable } from '../styles/aria-hosts';
|
|
45
45
|
import { parseRgba } from '../theme/color-utils';
|
|
46
46
|
import { useTheme } from '../theme/use-theme';
|
|
47
47
|
import { useMenuSurface } from './context';
|
|
@@ -173,7 +173,7 @@ function Swatch({
|
|
|
173
173
|
const glyphSize = shown ? geometry.litGlyph : geometry.glyph;
|
|
174
174
|
|
|
175
175
|
return (
|
|
176
|
-
<
|
|
176
|
+
<AriaPressable
|
|
177
177
|
ref={swatchRef}
|
|
178
178
|
role={Platform.OS === 'web' ? 'menuitemcheckbox' : undefined}
|
|
179
179
|
accessibilityRole="checkbox"
|
|
@@ -215,7 +215,7 @@ function Swatch({
|
|
|
215
215
|
>
|
|
216
216
|
{Glyph ? <Glyph width={glyphSize} height={glyphSize} fill={paint.glyph} /> : null}
|
|
217
217
|
</View>
|
|
218
|
-
</
|
|
218
|
+
</AriaPressable>
|
|
219
219
|
);
|
|
220
220
|
}
|
|
221
221
|
|
package/src/floating/shared.tsx
CHANGED
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
type ViewStyle,
|
|
45
45
|
} from 'react-native';
|
|
46
46
|
|
|
47
|
-
import {
|
|
47
|
+
import { AriaPressable, type WebAriaProps } from '../styles/aria-hosts';
|
|
48
48
|
import { useInteractionState } from '../hooks/use-interaction-state';
|
|
49
49
|
import { FOCUS_SETTLE_MS } from '../hooks/use-accessibility-focus';
|
|
50
50
|
import {
|
|
@@ -287,7 +287,7 @@ export function MenuRowShell({
|
|
|
287
287
|
: null;
|
|
288
288
|
|
|
289
289
|
return (
|
|
290
|
-
<
|
|
290
|
+
<AriaPressable
|
|
291
291
|
ref={navigation.inPopup ? rowRef : undefined}
|
|
292
292
|
nativeID={nativeID}
|
|
293
293
|
onLayout={onLayout}
|
|
@@ -440,7 +440,7 @@ export function MenuRowShell({
|
|
|
440
440
|
on a direct flex child of the row, and a slot view would absorb them. */}
|
|
441
441
|
{trailing}
|
|
442
442
|
</MenuRowInkContext.Provider>
|
|
443
|
-
</
|
|
443
|
+
</AriaPressable>
|
|
444
444
|
);
|
|
445
445
|
}
|
|
446
446
|
|