@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
package/src/floating/types.ts
CHANGED
|
@@ -31,7 +31,7 @@ import type {
|
|
|
31
31
|
} from 'react-native';
|
|
32
32
|
|
|
33
33
|
import type { MenuFocusIntent } from './menu-keyboard';
|
|
34
|
-
import type { WebAriaProps } from '../styles/
|
|
34
|
+
import type { WebAriaProps } from '../styles/aria-hosts';
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* What a family's ROOT publishes to its own trigger and surface: the open
|
|
@@ -186,7 +186,7 @@ export interface FloatingPanelProps extends FloatingPositionProps {
|
|
|
186
186
|
* `aria-haspopup` is here too, and it is a PROPERTY rather than a state: React
|
|
187
187
|
* Native types no such prop — there is no state for it to fold into
|
|
188
188
|
* `accessibilityState` — while react-native-web forwards it.
|
|
189
|
-
* `styles/
|
|
189
|
+
* `styles/aria-hosts.ts`'s `WebAriaProps` is what makes it spellable
|
|
190
190
|
* without a cast, and each family passes its OWN value from
|
|
191
191
|
* `floating/constants.ts`, because the five families open three different kinds
|
|
192
192
|
* of surface and one shared default would be a lie for two of them.
|
package/src/image/BloomImage.tsx
CHANGED
|
@@ -33,6 +33,8 @@ const RESIZE_MODE: Record<BloomImageContentFit, ImageResizeMode> = {
|
|
|
33
33
|
export function BloomImage({
|
|
34
34
|
contentFit = 'cover',
|
|
35
35
|
transition,
|
|
36
|
+
cachePolicy = 'memory-disk',
|
|
37
|
+
recyclingKey,
|
|
36
38
|
onLoad,
|
|
37
39
|
onError,
|
|
38
40
|
...rest
|
|
@@ -44,6 +46,8 @@ export function BloomImage({
|
|
|
44
46
|
{...rest}
|
|
45
47
|
contentFit={contentFit}
|
|
46
48
|
transition={transition}
|
|
49
|
+
cachePolicy={cachePolicy}
|
|
50
|
+
recyclingKey={recyclingKey}
|
|
47
51
|
onLoad={
|
|
48
52
|
onLoad
|
|
49
53
|
? (event) => onLoad({ width: event.source.width, height: event.source.height })
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
*/
|
|
32
32
|
import type { ComponentType } from 'react';
|
|
33
33
|
import { Platform, type ImageStyle, type StyleProp, type ViewProps } from 'react-native';
|
|
34
|
-
import type { BloomImageContentFit, BloomImageSource } from './types';
|
|
34
|
+
import type { BloomImageCachePolicy, BloomImageContentFit, BloomImageSource } from './types';
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Declared locally rather than taken from the ambient `NodeRequire`, which
|
|
@@ -53,6 +53,8 @@ export interface ExpoImageLikeProps extends Omit<ViewProps, 'style' | 'children'
|
|
|
53
53
|
blurRadius?: number;
|
|
54
54
|
alt?: string;
|
|
55
55
|
transition?: number | null;
|
|
56
|
+
cachePolicy?: BloomImageCachePolicy | null;
|
|
57
|
+
recyclingKey?: string | null;
|
|
56
58
|
onLoad?: (event: { source: { width: number; height: number } }) => void;
|
|
57
59
|
onError?: (event: { error: string }) => void;
|
|
58
60
|
}
|
package/src/image/index.ts
CHANGED
package/src/image/types.ts
CHANGED
|
@@ -7,6 +7,9 @@ import type { ImageSourcePropType, ImageStyle, StyleProp, ViewProps } from 'reac
|
|
|
7
7
|
*/
|
|
8
8
|
export type BloomImageContentFit = 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
|
|
9
9
|
|
|
10
|
+
/** Where a loaded image is kept: expo-image's cache policies. */
|
|
11
|
+
export type BloomImageCachePolicy = 'memory-disk' | 'memory' | 'disk' | 'none';
|
|
12
|
+
|
|
10
13
|
/** A bundled asset (`require()`), a URI descriptor or a bare URI string. */
|
|
11
14
|
export type BloomImageSource = ImageSourcePropType | string;
|
|
12
15
|
|
|
@@ -37,6 +40,22 @@ export interface BloomImageProps extends Omit<ViewProps, 'style' | 'children' |
|
|
|
37
40
|
alt?: string;
|
|
38
41
|
/** Cross-fade duration in ms when the image arrives. Defaults to none. */
|
|
39
42
|
transition?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Where a loaded image is kept for the next time it is drawn. Defaults to
|
|
45
|
+
* `memory-disk`: the decoded picture stays in memory, so an image scrolled back
|
|
46
|
+
* to, or drawn again by another row, paints in the same frame instead of being
|
|
47
|
+
* decoded from disk again. `disk` keeps only the downloaded bytes; `none` keeps
|
|
48
|
+
* nothing. expo-image's vocabulary; react-native's `Image` (web) ignores it.
|
|
49
|
+
*/
|
|
50
|
+
cachePolicy?: BloomImageCachePolicy;
|
|
51
|
+
/**
|
|
52
|
+
* The identity of what this image shows, for a view a list reuses for another
|
|
53
|
+
* item. When it changes the previous picture is cleared at once, so a recycled
|
|
54
|
+
* row never shows the last row's image while its own loads. Pass the source's
|
|
55
|
+
* URI. Ignored by react-native's `Image` (web), which keeps no picture across
|
|
56
|
+
* sources.
|
|
57
|
+
*/
|
|
58
|
+
recyclingKey?: string | null;
|
|
40
59
|
onLoad?: (info: BloomImageLoadInfo) => void;
|
|
41
60
|
onError?: (info: BloomImageErrorInfo) => void;
|
|
42
61
|
onLayout?: ViewProps['onLayout'];
|
|
@@ -34,6 +34,22 @@ import type { LinkPreviewCardProps, LinkPreviewImageSource } from './types';
|
|
|
34
34
|
/** Height (px) of the optional cover image at the top of the card. */
|
|
35
35
|
const COVER_IMAGE_HEIGHT = 160;
|
|
36
36
|
|
|
37
|
+
/**
|
|
38
|
+
* The text block of an article card (one with a cover, or one whose preview is
|
|
39
|
+
* still on its way) is never shorter than its full shape: the site name, two
|
|
40
|
+
* lines of title and two of description, with their gaps and the block's
|
|
41
|
+
* padding. Its height is then known before the preview loads, and a card whose
|
|
42
|
+
* title or description runs to one line, or whose preview arrives late, does
|
|
43
|
+
* not change height and move the list around it.
|
|
44
|
+
*/
|
|
45
|
+
const ARTICLE_TEXT_MIN_HEIGHT =
|
|
46
|
+
2 * space.md +
|
|
47
|
+
TYPE_SCALE['caption-1-medium'].lineHeight +
|
|
48
|
+
space.xs +
|
|
49
|
+
2 * TYPE_SCALE['headline-semibold'].lineHeight +
|
|
50
|
+
space.xs +
|
|
51
|
+
2 * TYPE_SCALE['body-2-regular'].lineHeight;
|
|
52
|
+
|
|
37
53
|
/** `tracking-wide` is 0.025em, which at the site name's 12px is 0.3px. */
|
|
38
54
|
const SITE_NAME_LETTER_SPACING = fontSize.xs * 0.025;
|
|
39
55
|
|
|
@@ -51,8 +67,8 @@ function hostnameOf(url: string): string | undefined {
|
|
|
51
67
|
|
|
52
68
|
/**
|
|
53
69
|
* `image` as `expo-image` takes it, or `undefined` when there is nothing to
|
|
54
|
-
* show. An empty list counts as no image, so
|
|
55
|
-
* cover.
|
|
70
|
+
* show. An empty list counts as no image, so a card whose preview has arrived
|
|
71
|
+
* never reserves a blank cover.
|
|
56
72
|
*/
|
|
57
73
|
function coverSource(
|
|
58
74
|
image: string | readonly LinkPreviewImageSource[] | undefined,
|
|
@@ -85,6 +101,7 @@ const LinkPreviewCardComponent: React.FC<LinkPreviewCardProps> = ({
|
|
|
85
101
|
siteName,
|
|
86
102
|
author,
|
|
87
103
|
coverFill = false,
|
|
104
|
+
pending = false,
|
|
88
105
|
onPress,
|
|
89
106
|
style,
|
|
90
107
|
}) => {
|
|
@@ -102,6 +119,8 @@ const LinkPreviewCardComponent: React.FC<LinkPreviewCardProps> = ({
|
|
|
102
119
|
}, [url, siteName, title]);
|
|
103
120
|
|
|
104
121
|
const cover = useMemo(() => coverSource(image), [image]);
|
|
122
|
+
// The slot is held while the preview is pending: it will most likely bring one.
|
|
123
|
+
const hasCoverSlot = Boolean(cover) || pending;
|
|
105
124
|
// Stable across re-renders and rendition lists alike: recycled list cells
|
|
106
125
|
// must not flash the previous card's image while the next one loads.
|
|
107
126
|
const coverKey = typeof cover === 'string' ? cover : cover?.[0]?.uri;
|
|
@@ -127,9 +146,9 @@ const LinkPreviewCardComponent: React.FC<LinkPreviewCardProps> = ({
|
|
|
127
146
|
accessibilityRole="link"
|
|
128
147
|
accessibilityLabel={displayTitle}
|
|
129
148
|
>
|
|
130
|
-
{
|
|
149
|
+
{hasCoverSlot ? (
|
|
131
150
|
<Image
|
|
132
|
-
source={cover}
|
|
151
|
+
source={cover ?? null}
|
|
133
152
|
recyclingKey={coverKey}
|
|
134
153
|
contentFit="cover"
|
|
135
154
|
cachePolicy="memory-disk"
|
|
@@ -144,7 +163,7 @@ const LinkPreviewCardComponent: React.FC<LinkPreviewCardProps> = ({
|
|
|
144
163
|
/>
|
|
145
164
|
) : null}
|
|
146
165
|
|
|
147
|
-
<View style={styles.content}>
|
|
166
|
+
<View style={hasCoverSlot ? [styles.content, styles.articleContent] : styles.content}>
|
|
148
167
|
{displaySiteName ? (
|
|
149
168
|
<Text
|
|
150
169
|
variant="caption-1-medium"
|
|
@@ -196,6 +215,9 @@ const styles = StyleSheet.create({
|
|
|
196
215
|
coverFixed: {
|
|
197
216
|
height: COVER_IMAGE_HEIGHT,
|
|
198
217
|
},
|
|
218
|
+
articleContent: {
|
|
219
|
+
minHeight: ARTICLE_TEXT_MIN_HEIGHT,
|
|
220
|
+
},
|
|
199
221
|
// `p-3` — four-sided, which is what keeps the last line clear of the card's
|
|
200
222
|
// 20px corner radius. Flush against the border, the description read as
|
|
201
223
|
// spilling past the rounded corner.
|
|
@@ -54,6 +54,13 @@ export interface LinkPreviewCardProps {
|
|
|
54
54
|
* fits a fixed-height row alongside other attachments without overflowing.
|
|
55
55
|
*/
|
|
56
56
|
coverFill?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* The preview's metadata is still being fetched. The card is drawn at the
|
|
59
|
+
* size it will have once it arrives — the cover slot and the reserved text
|
|
60
|
+
* block, both empty — so the feed around it does not move when it does.
|
|
61
|
+
* Defaults to `false`.
|
|
62
|
+
*/
|
|
63
|
+
pending?: boolean;
|
|
57
64
|
/** Press handler. When omitted, the card opens `url` with `openExternal`. */
|
|
58
65
|
onPress?: () => void;
|
|
59
66
|
/** Extra style merged onto the card surface. */
|
package/src/lyrics/shared.ts
CHANGED
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
AA_TEXT_CONTRAST,
|
|
10
10
|
contrastRatio,
|
|
11
11
|
darkenUntilContrast,
|
|
12
|
-
relativeLuminance,
|
|
13
12
|
} from '../styles/color-contrast';
|
|
14
13
|
import { mixColors } from '../styles/color-contrast';
|
|
15
14
|
|
|
@@ -244,5 +243,3 @@ export const LYRICS_CSS = `
|
|
|
244
243
|
}
|
|
245
244
|
}
|
|
246
245
|
`;
|
|
247
|
-
|
|
248
|
-
export { contrastRatio, relativeLuminance };
|
package/src/mail-list/shared.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { space } from '../styles/tokens';
|
|
2
2
|
|
|
3
|
-
import { RiInbox2Line } from '../icons/remix/RiInbox2Line';
|
|
4
3
|
import { formatGregorian } from '../locale/format-date';
|
|
5
4
|
import { pickMessages } from '../locale/messages';
|
|
6
5
|
import {
|
|
@@ -25,9 +24,6 @@ import type {
|
|
|
25
24
|
} from './types';
|
|
26
25
|
import { MAIL_LIST_MESSAGES } from './messages';
|
|
27
26
|
|
|
28
|
-
/** The glyph an empty inbox draws. */
|
|
29
|
-
export const MAIL_EMPTY_ICON = RiInbox2Line;
|
|
30
|
-
|
|
31
27
|
// ---------------------------------------------------------------------------
|
|
32
28
|
// Geometry — the whole difference between the densities
|
|
33
29
|
// ---------------------------------------------------------------------------
|
|
@@ -227,11 +223,6 @@ export function resolveMailPaint(theme: Theme, surface: string): MailPaint {
|
|
|
227
223
|
};
|
|
228
224
|
}
|
|
229
225
|
|
|
230
|
-
/** A label dot's fill: the tone's SOLID pair, so it reads at 8px. */
|
|
231
|
-
export function labelDotColor(theme: Theme, label: MailLabel): string {
|
|
232
|
-
return resolveAccentColors(theme.colors, label.tone ?? 'default', 'solid').background;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
226
|
/** The glyph colour an action's tone paints on the row. */
|
|
236
227
|
export function mailActionColor(action: MailAction, paint: MailPaint): string {
|
|
237
228
|
switch (action.tone) {
|
package/src/media-card/shared.ts
CHANGED
|
@@ -3,13 +3,7 @@ import type { ImageResolver } from '../image-resolver/context';
|
|
|
3
3
|
import { isImageUrl } from '../image-resolver/is-image-url';
|
|
4
4
|
import type { Theme } from '../theme/types';
|
|
5
5
|
import type { MediaCardLayout, MediaCardPlayButton, MediaCardSize } from './types';
|
|
6
|
-
import {
|
|
7
|
-
AA_TEXT_CONTRAST,
|
|
8
|
-
contrastRatio,
|
|
9
|
-
darken,
|
|
10
|
-
darkenUntilContrast,
|
|
11
|
-
relativeLuminance,
|
|
12
|
-
} from '../styles/color-contrast';
|
|
6
|
+
import { AA_TEXT_CONTRAST, darken, darkenUntilContrast } from '../styles/color-contrast';
|
|
13
7
|
import { IS_WEB } from '../styles/platform';
|
|
14
8
|
import { mixColors } from '../styles/color-contrast';
|
|
15
9
|
|
|
@@ -289,5 +283,3 @@ ${CARD}:focus-within [data-bloom-media-card-conceal] {
|
|
|
289
283
|
}
|
|
290
284
|
}
|
|
291
285
|
`;
|
|
292
|
-
|
|
293
|
-
export { contrastRatio, relativeLuminance };
|
|
@@ -119,6 +119,15 @@ export interface MediaSurfaceProps {
|
|
|
119
119
|
* missing `_removeListeners` into it makes the leak go away.
|
|
120
120
|
*/
|
|
121
121
|
detached?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Called when the box shows a picture: the image's preview layer or the
|
|
124
|
+
* image itself (whichever paints first; it may be called again for the
|
|
125
|
+
* other), or a failed preview, so a caller waiting on it never waits for
|
|
126
|
+
* ever. A viewer that flies out of an on-screen thumbnail waits for this
|
|
127
|
+
* before it hides the thumbnail and starts to move, so the photo is never
|
|
128
|
+
* missing from the screen for a frame.
|
|
129
|
+
*/
|
|
130
|
+
onPicture?: () => void;
|
|
122
131
|
}
|
|
123
132
|
|
|
124
133
|
/**
|
|
@@ -140,6 +149,7 @@ export const MediaSurface = memo(function MediaSurface({
|
|
|
140
149
|
pointerEvents,
|
|
141
150
|
flightId,
|
|
142
151
|
detached = false,
|
|
152
|
+
onPicture,
|
|
143
153
|
}: MediaSurfaceProps) {
|
|
144
154
|
// Captured once — see `surfaceType` above. A consumer changing it later gets
|
|
145
155
|
// the value the view was mounted with, which is the only value expo-video
|
|
@@ -210,12 +220,41 @@ export const MediaSurface = memo(function MediaSurface({
|
|
|
210
220
|
const reportLive = useCallback(() => {
|
|
211
221
|
if (flightId !== undefined) handOffFlight(flightId);
|
|
212
222
|
}, [flightId]);
|
|
223
|
+
const reportImage = useCallback(() => {
|
|
224
|
+
onPicture?.();
|
|
225
|
+
reportLive();
|
|
226
|
+
}, [onPicture, reportLive]);
|
|
213
227
|
|
|
214
228
|
const still = content.kind === 'video' ? content.poster : content.uri;
|
|
215
|
-
const
|
|
229
|
+
const previewUri = content.kind === 'video' ? undefined : content.previewUri;
|
|
230
|
+
// The already-visible thumbnail, as its OWN layer under the full image rather
|
|
231
|
+
// than expo-image's `placeholder`: a placeholder reports nothing when it
|
|
232
|
+
// paints, and "the preview is on screen" is the moment a viewer flying out of
|
|
233
|
+
// that thumbnail can take its place. It stays under the full image, which
|
|
234
|
+
// fades in over it, and stays the picture if the full image fails.
|
|
235
|
+
const preview =
|
|
236
|
+
still !== undefined && previewUri !== undefined && previewUri !== still
|
|
237
|
+
? previewUri
|
|
238
|
+
: undefined;
|
|
216
239
|
|
|
217
240
|
return (
|
|
218
241
|
<Animated.View style={[styles.box, style]} pointerEvents={pointerEvents}>
|
|
242
|
+
{preview === undefined ? null : (
|
|
243
|
+
<Image
|
|
244
|
+
key={`preview:${preview}`}
|
|
245
|
+
source={{ uri: preview }}
|
|
246
|
+
recyclingKey={preview}
|
|
247
|
+
contentFit={contentFit}
|
|
248
|
+
style={StyleSheet.absoluteFill}
|
|
249
|
+
cachePolicy="memory-disk"
|
|
250
|
+
priority="high"
|
|
251
|
+
loading="eager"
|
|
252
|
+
transition={0}
|
|
253
|
+
onDisplay={onPicture}
|
|
254
|
+
onError={onPicture}
|
|
255
|
+
{...webDraggableProps}
|
|
256
|
+
/>
|
|
257
|
+
)}
|
|
219
258
|
{still === undefined ? null : (
|
|
220
259
|
// Behind the video (and the whole picture on the image arm), so the box
|
|
221
260
|
// is never empty while a first frame decodes and a flight that starts
|
|
@@ -226,20 +265,19 @@ export const MediaSurface = memo(function MediaSurface({
|
|
|
226
265
|
<Image
|
|
227
266
|
key={still}
|
|
228
267
|
source={{ uri: still }}
|
|
229
|
-
placeholder={preview && preview !== still ? { uri: preview } : undefined}
|
|
230
|
-
placeholderContentFit={contentFit}
|
|
231
268
|
recyclingKey={still}
|
|
232
269
|
contentFit={contentFit}
|
|
233
270
|
style={StyleSheet.absoluteFill}
|
|
234
271
|
cachePolicy="memory-disk"
|
|
235
272
|
priority="high"
|
|
236
273
|
loading="eager"
|
|
237
|
-
transition={preview
|
|
274
|
+
transition={preview === undefined ? 0 : 120}
|
|
238
275
|
accessibilityLabel={accessibilityLabel}
|
|
239
|
-
//
|
|
240
|
-
// arm the poster is scenery: handing
|
|
241
|
-
// flying surface while the destination
|
|
242
|
-
|
|
276
|
+
// Both arms report a picture, but only the arm that IS the picture
|
|
277
|
+
// reports being live. On the video arm the poster is scenery: handing
|
|
278
|
+
// off on it would release the flying surface while the destination
|
|
279
|
+
// still had no video.
|
|
280
|
+
onDisplay={content.kind === 'video' ? onPicture : reportImage}
|
|
243
281
|
{...webDraggableProps}
|
|
244
282
|
/>
|
|
245
283
|
)}
|
|
@@ -13,12 +13,7 @@ import type { Theme } from '../theme/types';
|
|
|
13
13
|
import type { TypeScaleVariant } from '../typography/scale';
|
|
14
14
|
import { TYPE_SCALE } from '../typography/scale';
|
|
15
15
|
import type { WebCssStyle } from '../styles/web-view-style';
|
|
16
|
-
import {
|
|
17
|
-
AA_TEXT_CONTRAST,
|
|
18
|
-
contrastRatio,
|
|
19
|
-
readableOn,
|
|
20
|
-
relativeLuminance,
|
|
21
|
-
} from '../styles/color-contrast';
|
|
16
|
+
import { AA_TEXT_CONTRAST, contrastRatio, readableOn } from '../styles/color-contrast';
|
|
22
17
|
import { IS_WEB } from '../styles/platform';
|
|
23
18
|
import { mixColors } from '../styles/color-contrast';
|
|
24
19
|
|
|
@@ -238,5 +233,3 @@ export const MEDIA_HEADER_CSS = `
|
|
|
238
233
|
}
|
|
239
234
|
}
|
|
240
235
|
`;
|
|
241
|
-
|
|
242
|
-
export { contrastRatio, relativeLuminance };
|
|
@@ -4,7 +4,7 @@ import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
|
4
4
|
import type { BloomTone } from '../appearance';
|
|
5
5
|
import type { ButtonProps } from '../button/types';
|
|
6
6
|
import type { BloomIconComponent } from '../icons/icon-component';
|
|
7
|
-
import type { WebAriaProps } from '../styles/
|
|
7
|
+
import type { WebAriaProps } from '../styles/aria-hosts';
|
|
8
8
|
|
|
9
9
|
/** A URL, or an id the registered ImageResolver turns into one. */
|
|
10
10
|
export type MediaImageSource = string;
|
|
@@ -4,7 +4,7 @@ import { View, type GestureResponderEvent, type StyleProp, type ViewStyle } from
|
|
|
4
4
|
import { Button } from '../button';
|
|
5
5
|
import type { BloomIconComponent } from '../icons/icon-component';
|
|
6
6
|
import { resolveMediaControlsPaint } from '../media-controls/shared';
|
|
7
|
-
import type { WebAriaProps } from '../styles/
|
|
7
|
+
import type { WebAriaProps } from '../styles/aria-hosts';
|
|
8
8
|
import { useTheme } from '../theme/use-theme';
|
|
9
9
|
import { Text } from '../typography';
|
|
10
10
|
import type { RefComponent } from '../styles/native-refs';
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import type { WebCssStyle } from '../styles/web-view-style';
|
|
2
2
|
import type { MediaArtist, RepeatMode, SleepTimerValue, TransportControlsSize } from './types';
|
|
3
|
-
import {
|
|
4
|
-
AA_TEXT_CONTRAST,
|
|
5
|
-
contrastRatio,
|
|
6
|
-
darkenUntilContrast,
|
|
7
|
-
relativeLuminance,
|
|
8
|
-
} from '../styles/color-contrast';
|
|
3
|
+
import { AA_TEXT_CONTRAST, darkenUntilContrast } from '../styles/color-contrast';
|
|
9
4
|
import { formatMultiplier } from '../locale/format-number';
|
|
10
5
|
import { IS_WEB } from '../styles/platform';
|
|
11
6
|
|
|
@@ -122,5 +117,3 @@ export const MEDIA_PLAYER_CSS = `
|
|
|
122
117
|
text-decoration-line: underline;
|
|
123
118
|
}
|
|
124
119
|
`;
|
|
125
|
-
|
|
126
|
-
export { contrastRatio, relativeLuminance };
|
|
@@ -28,7 +28,7 @@ import { SOCIAL_COLOR_LOGOS } from '../social-button/color-logos';
|
|
|
28
28
|
import { ColorLogo } from '../social-button/SocialButtonBase';
|
|
29
29
|
import { IS_WEB } from '../styles/platform';
|
|
30
30
|
import { ROUNDED_FULL } from '../styles/rounded-full';
|
|
31
|
-
import {
|
|
31
|
+
import { AriaPressable } from '../styles/aria-hosts';
|
|
32
32
|
import type { WebCssStyle } from '../styles/web-view-style';
|
|
33
33
|
import { Tabs, TabsTrigger } from '../tabs';
|
|
34
34
|
import { TextField, TextFieldIcon, TextFieldInput } from '../text-field';
|
|
@@ -277,7 +277,7 @@ export function Marketplace({
|
|
|
277
277
|
<CatalogGrid>
|
|
278
278
|
{items.map((item) => (
|
|
279
279
|
<Card key={item.id} style={[styles.listing, IS_WEB && WEB_TRANSITION_COLORS]}>
|
|
280
|
-
<
|
|
280
|
+
<AriaPressable
|
|
281
281
|
{...MARKETPLACE_HOOKS.item}
|
|
282
282
|
accessibilityRole="button"
|
|
283
283
|
accessibilityLabel={formatMessage(messages.viewItem, item.name)}
|
|
@@ -291,7 +291,7 @@ export function Marketplace({
|
|
|
291
291
|
</Text>
|
|
292
292
|
<Text style={tokens.caption}>{item.category}</Text>
|
|
293
293
|
</View>
|
|
294
|
-
</
|
|
294
|
+
</AriaPressable>
|
|
295
295
|
<Text style={tokens.body2}>{item.description}</Text>
|
|
296
296
|
<Button
|
|
297
297
|
size="sm"
|
|
@@ -317,7 +317,7 @@ export function Marketplace({
|
|
|
317
317
|
{MARKETPLACE_ITEMS.filter((item) => item.kind === 'bot')
|
|
318
318
|
.slice(0, 4)
|
|
319
319
|
.map((item) => (
|
|
320
|
-
<
|
|
320
|
+
<AriaPressable
|
|
321
321
|
{...MARKETPLACE_HOOKS.tile}
|
|
322
322
|
key={item.id}
|
|
323
323
|
accessibilityRole="button"
|
|
@@ -330,7 +330,7 @@ export function Marketplace({
|
|
|
330
330
|
<Text style={tokens.body2Medium}>{item.name}</Text>
|
|
331
331
|
<Text style={tokens.caption}>{item.category}</Text>
|
|
332
332
|
</View>
|
|
333
|
-
</
|
|
333
|
+
</AriaPressable>
|
|
334
334
|
))}
|
|
335
335
|
</CatalogGrid>
|
|
336
336
|
);
|
|
@@ -30,17 +30,20 @@ import { withAlpha } from '../theme/color-utils';
|
|
|
30
30
|
*
|
|
31
31
|
* ── THE STOPS ───────────────────────────────────────────────────────────────
|
|
32
32
|
*
|
|
33
|
-
* Four of them describe the fading portion, after any opaque chrome region
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* the
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
33
|
+
* Four of them describe the fading portion, after any opaque chrome region:
|
|
34
|
+
* an ease-in-out (smoothstep at its thirds), the full range from opaque to
|
|
35
|
+
* nothing, leaving and arriving gently. An ease-out that held 86% through the
|
|
36
|
+
* first 42% of the fade read as a band that stopped at 90% and then stepped to
|
|
37
|
+
* opaque at the chrome's edge: the content showed at a faint, even 10% under it
|
|
38
|
+
* before it was hidden. Header/footer chrome stays opaque before that portion
|
|
39
|
+
* so scrolling text cannot cross its labels.
|
|
40
|
+
*
|
|
41
|
+
* The ramp continues BELOW the header's own box: the fade needs room past the
|
|
42
|
+
* layout, or it finishes at the same place the layout does, which is the line
|
|
43
|
+
* again. A floating header's chrome fade is short, the inset its row keeps
|
|
44
|
+
* below its islands, the way Apple's scroll edge ends just past the bar.
|
|
45
|
+
* `TAIL_RATIO` is the longer tail of a full-box ramp (a photo, a linear fade)
|
|
46
|
+
* and of the bottom chrome.
|
|
44
47
|
*
|
|
45
48
|
* ── `stopOpacity`, NOT AN `rgba()` STOP ─────────────────────────────────────
|
|
46
49
|
*
|
|
@@ -74,7 +77,7 @@ import { withAlpha } from '../theme/color-utils';
|
|
|
74
77
|
* gradient that is not there.
|
|
75
78
|
*/
|
|
76
79
|
|
|
77
|
-
/** How far past
|
|
80
|
+
/** How far past its chrome's height a full-box ramp, or the bottom chrome's fade, continues, as a ratio of it. */
|
|
78
81
|
export const SCRIM_TAIL_RATIO = 0.55;
|
|
79
82
|
/** Measured chrome occupies this fraction of its chrome + external tail box. */
|
|
80
83
|
export const SCRIM_CHROME_FRACTION = 1 / (1 + SCRIM_TAIL_RATIO);
|
|
@@ -86,8 +89,8 @@ export const SCRIM_CHROME_FRACTION = 1 / (1 + SCRIM_TAIL_RATIO);
|
|
|
86
89
|
*/
|
|
87
90
|
export const SCRIM_STOPS = [
|
|
88
91
|
{ offset: 0, opacity: 1 },
|
|
89
|
-
{ offset:
|
|
90
|
-
{ offset:
|
|
92
|
+
{ offset: 1 / 3, opacity: 0.74 },
|
|
93
|
+
{ offset: 2 / 3, opacity: 0.26 },
|
|
91
94
|
{ offset: 1, opacity: 0 },
|
|
92
95
|
] as const;
|
|
93
96
|
const LINEAR_STOPS = [
|
|
@@ -60,7 +60,7 @@ import { useSurfaceFillRecipe } from '../styles/surface-levels';
|
|
|
60
60
|
import { Title, Subtitle } from '../typography';
|
|
61
61
|
import { Surface } from '../surface/Surface';
|
|
62
62
|
import { PageHeaderIdentity } from './PageHeaderIdentity';
|
|
63
|
-
import { EdgeScrim,
|
|
63
|
+
import { EdgeScrim, SCRIM_TAIL_RATIO } from './EdgeScrim';
|
|
64
64
|
import type { PageHeaderProps } from './types';
|
|
65
65
|
import { useCommonMessages } from '../locale/common-messages';
|
|
66
66
|
import { useCssSafeAreaInsets } from '../hooks/use-css-safe-area-insets';
|
|
@@ -893,12 +893,17 @@ function PageHeaderComponent({
|
|
|
893
893
|
() => ({ opacity: dockProgress?.value ?? 0 }),
|
|
894
894
|
[dockProgress],
|
|
895
895
|
);
|
|
896
|
+
// The scroll edge: the page colour over the header's own measured box (the
|
|
897
|
+
// status bar and the row), then a short fade past its foot, as long as the
|
|
898
|
+
// inset the row keeps below its islands. A ratio of the whole header grew with
|
|
899
|
+
// the status bar and laid a band over whatever sat under the header (Mention's
|
|
900
|
+
// Home tabs, Pixel 8a). A photo's ramp, or a linear one, fades across its
|
|
901
|
+
// whole box instead, so it keeps the longer tail its legibility needs.
|
|
902
|
+
const fullBoxScrim = tone === 'onImage' || scrimFalloff !== 'smooth';
|
|
903
|
+
const scrimHeight = height + (fullBoxScrim ? height * SCRIM_TAIL_RATIO : OUTER_INSET);
|
|
896
904
|
const chrome = floating ? (
|
|
897
905
|
<Animated.View
|
|
898
|
-
style={[
|
|
899
|
-
[styles.scrim, { height: height * (1 + SCRIM_TAIL_RATIO) }, scrimStyle],
|
|
900
|
-
pointerEventsStyle('none'),
|
|
901
|
-
]}
|
|
906
|
+
style={[[styles.scrim, { height: scrimHeight }, scrimStyle], pointerEventsStyle('none')]}
|
|
902
907
|
testID={testID ? `${testID}-scrim` : undefined}
|
|
903
908
|
>
|
|
904
909
|
<EdgeScrim
|
|
@@ -906,7 +911,7 @@ function PageHeaderComponent({
|
|
|
906
911
|
// falling back to the page. Explicit scrimColor remains an override.
|
|
907
912
|
color={scrimColor ?? (imageScrim ? '#000000' : surfaceFill)}
|
|
908
913
|
falloff={scrimFalloff}
|
|
909
|
-
opaqueFraction={
|
|
914
|
+
opaqueFraction={fullBoxScrim || scrimHeight <= 0 ? 0 : height / scrimHeight}
|
|
910
915
|
testID={testID ? `${testID}-scrim-gradient` : undefined}
|
|
911
916
|
/>
|
|
912
917
|
</Animated.View>
|
|
@@ -4,7 +4,7 @@ import type { WebCssStyle } from '../styles/web-view-style';
|
|
|
4
4
|
import Animated from 'react-native-reanimated';
|
|
5
5
|
import { PageHeader } from '../page-header/PageHeader';
|
|
6
6
|
import { useDirectionProps } from '../hooks/use-is-rtl';
|
|
7
|
-
import {
|
|
7
|
+
import { AriaPressable } from '../styles/aria-hosts';
|
|
8
8
|
import { webDataSet } from '../styles/web-data';
|
|
9
9
|
import { useTheme } from '../theme/use-theme';
|
|
10
10
|
import { useColorTokens } from '../theme/color-tokens';
|
|
@@ -148,7 +148,7 @@ export function ProjectBoardCanvas<Item>({
|
|
|
148
148
|
{...{ dataSet: { 'bloom-board-item': itemId } }}
|
|
149
149
|
>
|
|
150
150
|
{dragMode === 'card' && (present || retained) && engine.canMove ? (
|
|
151
|
-
<
|
|
151
|
+
<AriaPressable
|
|
152
152
|
nativeID={binding.nativeID}
|
|
153
153
|
accessibilityRole="button"
|
|
154
154
|
accessibilityLabel={
|
|
@@ -189,7 +189,7 @@ export function ProjectBoardCanvas<Item>({
|
|
|
189
189
|
}}
|
|
190
190
|
>
|
|
191
191
|
{card}
|
|
192
|
-
</
|
|
192
|
+
</AriaPressable>
|
|
193
193
|
) : (
|
|
194
194
|
card
|
|
195
195
|
)}
|
|
@@ -6,7 +6,7 @@ import { quietTextOver } from '../styles/color-contrast';
|
|
|
6
6
|
import { AA_TEXT, resolveSurfaceLevel, surfaceFillOn, hairlineOn } from '../styles/surface-levels';
|
|
7
7
|
import type { Theme } from '../theme/types';
|
|
8
8
|
import type { EnergyClass } from './types';
|
|
9
|
-
import { contrastRatio
|
|
9
|
+
import { contrastRatio } from '../styles/color-contrast';
|
|
10
10
|
import { formatCompactCurrency, formatCurrency } from '../locale/format-number';
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -152,5 +152,3 @@ export const formatEuros = (value: number, locale?: string) => formatCurrency(va
|
|
|
152
152
|
export function formatEurosCompact(value: number, locale?: string): string {
|
|
153
153
|
return formatCompactCurrency(value, 'EUR', locale);
|
|
154
154
|
}
|
|
155
|
-
|
|
156
|
-
export { contrastRatio, relativeLuminance };
|
|
@@ -4,7 +4,7 @@ import type { GestureResponderEvent, View } from 'react-native';
|
|
|
4
4
|
|
|
5
5
|
import { Button } from '../button';
|
|
6
6
|
import type { ButtonIconComponent } from '../button';
|
|
7
|
-
import type { WebAriaProps } from '../styles/
|
|
7
|
+
import type { WebAriaProps } from '../styles/aria-hosts';
|
|
8
8
|
import type { WebCssStyle } from '../styles/web-view-style';
|
|
9
9
|
import { useTheme } from '../theme/use-theme';
|
|
10
10
|
import { resolveQueuePanelPaint } from './shared';
|
package/src/radio/RadioHost.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { type ComponentRef, forwardRef, type KeyboardEvent, type ReactNode } from 'react';
|
|
2
2
|
import { Platform, View, type StyleProp, type ViewStyle, type TextStyle } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { AriaPressable } from '../styles/aria-hosts';
|
|
4
4
|
import { resolveNativeWebStyle } from '../styles/resolve-native-web-style';
|
|
5
5
|
import { useInteractiveWebCss } from '../styles/interactive-web-css';
|
|
6
6
|
import { Text } from '../typography';
|
|
@@ -50,7 +50,7 @@ export const RadioHost: RefComponent<HostProps> = forwardRef<ComponentRef<typeof
|
|
|
50
50
|
// The key handlers are DOM-typed and web-only: React Native 0.88's Pressable
|
|
51
51
|
// types `onKeyDown` with its own event, so they never reach the native host.
|
|
52
52
|
const { onKeyDown: _onKeyDown, onKeyUp: _onKeyUp, ...native } = props;
|
|
53
|
-
return <
|
|
53
|
+
return <AriaPressable {...native} ref={ref} />;
|
|
54
54
|
}
|
|
55
55
|
const {
|
|
56
56
|
children,
|