@oxy.so/bloom 19.5.2 → 19.7.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/docs/adoption-matrix.mdx +19 -19
- package/docs/app-shell.mdx +18 -11
- package/docs/bottom-bar.mdx +57 -1
- package/docs/button.mdx +19 -0
- package/docs/chat-composer.mdx +59 -1
- package/docs/compose-layouts.mdx +114 -2
- package/docs/dialog.mdx +7 -0
- package/docs/engagement-bar.mdx +9 -0
- package/docs/icons.mdx +22 -0
- package/docs/layout.mdx +1 -1
- package/docs/list.mdx +4 -3
- package/docs/page-header.mdx +7 -0
- package/docs/public-parts.mdx +14 -3
- package/docs/screen.mdx +4 -0
- package/docs/scroll.mdx +6 -3
- package/docs/sidebar.mdx +26 -5
- package/docs/tab-pager.mdx +10 -0
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/lib/commonjs/app-shell/AppShell.js +3 -3
- package/lib/commonjs/app-shell/AppShell.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellEngine.js +2 -1
- package/lib/commonjs/app-shell/AppShellEngine.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellPanelLayout.js +345 -172
- package/lib/commonjs/app-shell/AppShellPanelLayout.js.map +1 -1
- package/lib/commonjs/app-shell/RetainedPanelLayout.js +6 -0
- package/lib/commonjs/app-shell/RetainedPanelLayout.js.map +1 -1
- package/lib/commonjs/app-shell/panel-layout-css.js +20 -13
- package/lib/commonjs/app-shell/panel-layout-css.js.map +1 -1
- package/lib/commonjs/app-shell/panel-layout.js +33 -185
- package/lib/commonjs/app-shell/panel-layout.js.map +1 -1
- package/lib/commonjs/app-shell/panel-motion.js +13 -36
- package/lib/commonjs/app-shell/panel-motion.js.map +1 -1
- package/lib/commonjs/app-shell/panel-transitions.js +26 -0
- package/lib/commonjs/app-shell/panel-transitions.js.map +1 -0
- package/lib/commonjs/app-shell/shell-layout-css.js +2 -2
- package/lib/commonjs/app-shell/shell-layout-css.js.map +1 -1
- package/lib/commonjs/app-shell/use-panel-exit-completion.js +100 -0
- package/lib/commonjs/app-shell/use-panel-exit-completion.js.map +1 -0
- package/lib/commonjs/app-shell/use-panel-resize.js +21 -7
- package/lib/commonjs/app-shell/use-panel-resize.js.map +1 -1
- package/lib/commonjs/app-shell/use-panel-reveal.js +2 -1
- package/lib/commonjs/app-shell/use-panel-reveal.js.map +1 -1
- package/lib/commonjs/bottom-bar/BottomBarBase.js +141 -37
- package/lib/commonjs/bottom-bar/BottomBarBase.js.map +1 -1
- package/lib/commonjs/bottom-sheet/BottomSheetBase.js +3 -2
- package/lib/commonjs/bottom-sheet/BottomSheetBase.js.map +1 -1
- package/lib/commonjs/button/GlyphAttention.js +110 -0
- package/lib/commonjs/button/GlyphAttention.js.map +1 -0
- package/lib/commonjs/button/GlyphButton.js +18 -7
- package/lib/commonjs/button/GlyphButton.js.map +1 -1
- package/lib/commonjs/chat-composer/CompactComposer.js +18 -0
- package/lib/commonjs/chat-composer/CompactComposer.js.map +1 -0
- package/lib/commonjs/chat-composer/CompactComposer.web.js +18 -0
- package/lib/commonjs/chat-composer/CompactComposer.web.js.map +1 -0
- package/lib/commonjs/chat-composer/compact-text.js +11 -0
- package/lib/commonjs/chat-composer/compact-text.js.map +1 -0
- package/lib/commonjs/chat-composer/compact-types.js +6 -0
- package/lib/commonjs/chat-composer/compact-types.js.map +1 -0
- package/lib/commonjs/chat-composer/create-compact-composer.js +185 -0
- package/lib/commonjs/chat-composer/create-compact-composer.js.map +1 -0
- package/lib/commonjs/chat-composer/index.js +14 -0
- package/lib/commonjs/chat-composer/index.js.map +1 -1
- package/lib/commonjs/chat-composer/index.web.js +14 -0
- package/lib/commonjs/chat-composer/index.web.js.map +1 -1
- package/lib/commonjs/chat-composer/messages.js +8 -1
- package/lib/commonjs/chat-composer/messages.js.map +1 -1
- package/lib/commonjs/dialog/DialogBottomSheet.js +6 -3
- package/lib/commonjs/dialog/DialogBottomSheet.js.map +1 -1
- package/lib/commonjs/engagement-bar/EngagementAction.js +6 -5
- package/lib/commonjs/engagement-bar/EngagementAction.js.map +1 -1
- package/lib/commonjs/engagement-bar/EngagementBar.js +31 -7
- package/lib/commonjs/engagement-bar/EngagementBar.js.map +1 -1
- package/lib/commonjs/engagement-bar/EngagementPop.js +10 -3
- package/lib/commonjs/engagement-bar/EngagementPop.js.map +1 -1
- package/lib/commonjs/engagement-bar/context.js.map +1 -1
- package/lib/commonjs/engagement-bar/paint.js +59 -12
- package/lib/commonjs/engagement-bar/paint.js.map +1 -1
- package/lib/commonjs/hooks/use-border-box-size.js +46 -0
- package/lib/commonjs/hooks/use-border-box-size.js.map +1 -0
- package/lib/commonjs/icons/index.js +12 -0
- package/lib/commonjs/icons/index.js.map +1 -1
- package/lib/commonjs/icons/social/BookmarkFillIcon.js +12 -0
- package/lib/commonjs/icons/social/BookmarkFillIcon.js.map +1 -0
- package/lib/commonjs/icons/social/BookmarkIcon.js +12 -0
- package/lib/commonjs/icons/social/BookmarkIcon.js.map +1 -0
- package/lib/commonjs/icons/social/GifAttachmentIcon.js +12 -0
- package/lib/commonjs/icons/social/GifAttachmentIcon.js.map +1 -0
- package/lib/commonjs/icons/social/LikeFillIcon.js +13 -0
- package/lib/commonjs/icons/social/LikeFillIcon.js.map +1 -0
- package/lib/commonjs/icons/social/LikeIcon.js +14 -0
- package/lib/commonjs/icons/social/LikeIcon.js.map +1 -0
- package/lib/commonjs/icons/social/MediaAttachmentIcon.js +12 -0
- package/lib/commonjs/icons/social/MediaAttachmentIcon.js.map +1 -0
- package/lib/commonjs/icons/social/ReplyIcon.js +14 -0
- package/lib/commonjs/icons/social/ReplyIcon.js.map +1 -0
- package/lib/commonjs/icons/social/RepostIcon.js +12 -0
- package/lib/commonjs/icons/social/RepostIcon.js.map +1 -0
- package/lib/commonjs/icons/social/ShareIcon.js +12 -0
- package/lib/commonjs/icons/social/ShareIcon.js.map +1 -0
- package/lib/commonjs/icons/social/index.js +69 -0
- package/lib/commonjs/icons/social/index.js.map +1 -0
- package/lib/commonjs/index.js +14 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +14 -0
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/layout/ScrollBar.web.js +62 -29
- package/lib/commonjs/layout/ScrollBar.web.js.map +1 -1
- package/lib/commonjs/layout/bottom-edge.js +14 -0
- package/lib/commonjs/layout/bottom-edge.js.map +1 -1
- package/lib/commonjs/layout/scroll-metrics.js.map +1 -1
- package/lib/commonjs/list/VirtualList.js +12 -0
- package/lib/commonjs/list/VirtualList.js.map +1 -1
- package/lib/commonjs/list/VirtualList.web.js +40 -19
- package/lib/commonjs/list/VirtualList.web.js.map +1 -1
- package/lib/commonjs/list/flash-list-module.js.map +1 -1
- package/lib/commonjs/locale/translations/ar.js +8 -0
- package/lib/commonjs/locale/translations/ar.js.map +1 -1
- package/lib/commonjs/locale/translations/bn.js +8 -0
- package/lib/commonjs/locale/translations/bn.js.map +1 -1
- package/lib/commonjs/locale/translations/ca.js +8 -0
- package/lib/commonjs/locale/translations/ca.js.map +1 -1
- package/lib/commonjs/locale/translations/de.js +8 -0
- package/lib/commonjs/locale/translations/de.js.map +1 -1
- package/lib/commonjs/locale/translations/es.js +8 -0
- package/lib/commonjs/locale/translations/es.js.map +1 -1
- package/lib/commonjs/locale/translations/fr.js +8 -0
- package/lib/commonjs/locale/translations/fr.js.map +1 -1
- package/lib/commonjs/locale/translations/hi.js +8 -0
- package/lib/commonjs/locale/translations/hi.js.map +1 -1
- package/lib/commonjs/locale/translations/id.js +8 -0
- package/lib/commonjs/locale/translations/id.js.map +1 -1
- package/lib/commonjs/locale/translations/it.js +8 -0
- package/lib/commonjs/locale/translations/it.js.map +1 -1
- package/lib/commonjs/locale/translations/ja.js +8 -0
- package/lib/commonjs/locale/translations/ja.js.map +1 -1
- package/lib/commonjs/locale/translations/pt.js +8 -0
- package/lib/commonjs/locale/translations/pt.js.map +1 -1
- package/lib/commonjs/locale/translations/ru.js +8 -0
- package/lib/commonjs/locale/translations/ru.js.map +1 -1
- package/lib/commonjs/locale/translations/tr.js +8 -0
- package/lib/commonjs/locale/translations/tr.js.map +1 -1
- package/lib/commonjs/locale/translations/zh.js +8 -0
- package/lib/commonjs/locale/translations/zh.js.map +1 -1
- package/lib/commonjs/page-header/EdgeScrim.js +14 -4
- package/lib/commonjs/page-header/EdgeScrim.js.map +1 -1
- package/lib/commonjs/page-header/PageHeader.js +19 -6
- package/lib/commonjs/page-header/PageHeader.js.map +1 -1
- package/lib/commonjs/screen/ScreenBase.js +15 -6
- package/lib/commonjs/screen/ScreenBase.js.map +1 -1
- package/lib/commonjs/screen/ScreenScrollViewBase.js +12 -2
- package/lib/commonjs/screen/ScreenScrollViewBase.js.map +1 -1
- package/lib/commonjs/screen/context.js.map +1 -1
- package/lib/commonjs/screen/use-intrinsic-content-height.js +53 -0
- package/lib/commonjs/screen/use-intrinsic-content-height.js.map +1 -0
- package/lib/commonjs/screen/use-screen-viewport.js +37 -6
- package/lib/commonjs/screen/use-screen-viewport.js.map +1 -1
- package/lib/commonjs/scroll/constants.js +4 -1
- package/lib/commonjs/scroll/constants.js.map +1 -1
- package/lib/commonjs/scroll/owner-handoff.js +27 -7
- package/lib/commonjs/scroll/owner-handoff.js.map +1 -1
- package/lib/commonjs/scroll/use-scroll-restoration.web.js +2 -11
- package/lib/commonjs/scroll/use-scroll-restoration.web.js.map +1 -1
- package/lib/commonjs/sidebar/Sidebar.js +121 -87
- package/lib/commonjs/sidebar/Sidebar.js.map +1 -1
- package/lib/commonjs/sidebar/arrangement.js +36 -0
- package/lib/commonjs/sidebar/arrangement.js.map +1 -0
- package/lib/commonjs/sidebar/index.js.map +1 -1
- package/lib/commonjs/tab-bar/TabBarBase.js +126 -20
- package/lib/commonjs/tab-bar/TabBarBase.js.map +1 -1
- package/lib/commonjs/tab-bar/shared.js +3 -1
- package/lib/commonjs/tab-bar/shared.js.map +1 -1
- package/lib/commonjs/tab-pager/TabPagerBottomBar.js +12 -2
- package/lib/commonjs/tab-pager/TabPagerBottomBar.js.map +1 -1
- package/lib/module/app-shell/AppShell.js +3 -3
- package/lib/module/app-shell/AppShell.js.map +1 -1
- package/lib/module/app-shell/AppShellEngine.js +2 -1
- package/lib/module/app-shell/AppShellEngine.js.map +1 -1
- package/lib/module/app-shell/AppShellPanelLayout.js +319 -147
- package/lib/module/app-shell/AppShellPanelLayout.js.map +1 -1
- package/lib/module/app-shell/RetainedPanelLayout.js +7 -1
- package/lib/module/app-shell/RetainedPanelLayout.js.map +1 -1
- package/lib/module/app-shell/panel-layout-css.js +19 -12
- package/lib/module/app-shell/panel-layout-css.js.map +1 -1
- package/lib/module/app-shell/panel-layout.js +32 -183
- package/lib/module/app-shell/panel-layout.js.map +1 -1
- package/lib/module/app-shell/panel-motion.js +14 -36
- package/lib/module/app-shell/panel-motion.js.map +1 -1
- package/lib/module/app-shell/panel-transitions.js +21 -0
- package/lib/module/app-shell/panel-transitions.js.map +1 -0
- package/lib/module/app-shell/shell-layout-css.js +2 -2
- package/lib/module/app-shell/shell-layout-css.js.map +1 -1
- package/lib/module/app-shell/use-panel-exit-completion.js +97 -0
- package/lib/module/app-shell/use-panel-exit-completion.js.map +1 -0
- package/lib/module/app-shell/use-panel-resize.js +22 -8
- package/lib/module/app-shell/use-panel-resize.js.map +1 -1
- package/lib/module/app-shell/use-panel-reveal.js +2 -1
- package/lib/module/app-shell/use-panel-reveal.js.map +1 -1
- package/lib/module/bottom-bar/BottomBarBase.js +143 -39
- package/lib/module/bottom-bar/BottomBarBase.js.map +1 -1
- package/lib/module/bottom-sheet/BottomSheetBase.js +3 -2
- package/lib/module/bottom-sheet/BottomSheetBase.js.map +1 -1
- package/lib/module/button/GlyphAttention.js +104 -0
- package/lib/module/button/GlyphAttention.js.map +1 -0
- package/lib/module/button/GlyphButton.js +18 -7
- package/lib/module/button/GlyphButton.js.map +1 -1
- package/lib/module/chat-composer/CompactComposer.js +14 -0
- package/lib/module/chat-composer/CompactComposer.js.map +1 -0
- package/lib/module/chat-composer/CompactComposer.web.js +14 -0
- package/lib/module/chat-composer/CompactComposer.web.js.map +1 -0
- package/lib/module/chat-composer/compact-text.js +7 -0
- package/lib/module/chat-composer/compact-text.js.map +1 -0
- package/lib/module/chat-composer/compact-types.js +4 -0
- package/lib/module/chat-composer/compact-types.js.map +1 -0
- package/lib/module/chat-composer/create-compact-composer.js +181 -0
- package/lib/module/chat-composer/create-compact-composer.js.map +1 -0
- package/lib/module/chat-composer/index.js +2 -0
- package/lib/module/chat-composer/index.js.map +1 -1
- package/lib/module/chat-composer/index.web.js +2 -0
- package/lib/module/chat-composer/index.web.js.map +1 -1
- package/lib/module/chat-composer/messages.js +7 -0
- package/lib/module/chat-composer/messages.js.map +1 -1
- package/lib/module/dialog/DialogBottomSheet.js +6 -3
- package/lib/module/dialog/DialogBottomSheet.js.map +1 -1
- package/lib/module/engagement-bar/EngagementAction.js +7 -6
- package/lib/module/engagement-bar/EngagementAction.js.map +1 -1
- package/lib/module/engagement-bar/EngagementBar.js +29 -5
- package/lib/module/engagement-bar/EngagementBar.js.map +1 -1
- package/lib/module/engagement-bar/EngagementPop.js +10 -3
- package/lib/module/engagement-bar/EngagementPop.js.map +1 -1
- package/lib/module/engagement-bar/context.js.map +1 -1
- package/lib/module/engagement-bar/paint.js +60 -13
- package/lib/module/engagement-bar/paint.js.map +1 -1
- package/lib/module/hooks/use-border-box-size.js +42 -0
- package/lib/module/hooks/use-border-box-size.js.map +1 -0
- package/lib/module/icons/index.js +2 -1
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/icons/social/BookmarkFillIcon.js +9 -0
- package/lib/module/icons/social/BookmarkFillIcon.js.map +1 -0
- package/lib/module/icons/social/BookmarkIcon.js +9 -0
- package/lib/module/icons/social/BookmarkIcon.js.map +1 -0
- package/lib/module/icons/social/GifAttachmentIcon.js +9 -0
- package/lib/module/icons/social/GifAttachmentIcon.js.map +1 -0
- package/lib/module/icons/social/LikeFillIcon.js +10 -0
- package/lib/module/icons/social/LikeFillIcon.js.map +1 -0
- package/lib/module/icons/social/LikeIcon.js +11 -0
- package/lib/module/icons/social/LikeIcon.js.map +1 -0
- package/lib/module/icons/social/MediaAttachmentIcon.js +9 -0
- package/lib/module/icons/social/MediaAttachmentIcon.js.map +1 -0
- package/lib/module/icons/social/ReplyIcon.js +11 -0
- package/lib/module/icons/social/ReplyIcon.js.map +1 -0
- package/lib/module/icons/social/RepostIcon.js +9 -0
- package/lib/module/icons/social/RepostIcon.js.map +1 -0
- package/lib/module/icons/social/ShareIcon.js +9 -0
- package/lib/module/icons/social/ShareIcon.js.map +1 -0
- package/lib/module/icons/social/index.js +12 -0
- package/lib/module/icons/social/index.js.map +1 -0
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +1 -1
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/layout/ScrollBar.web.js +64 -31
- package/lib/module/layout/ScrollBar.web.js.map +1 -1
- package/lib/module/layout/bottom-edge.js +14 -1
- package/lib/module/layout/bottom-edge.js.map +1 -1
- package/lib/module/layout/scroll-metrics.js.map +1 -1
- package/lib/module/list/VirtualList.js +12 -0
- package/lib/module/list/VirtualList.js.map +1 -1
- package/lib/module/list/VirtualList.web.js +41 -20
- package/lib/module/list/VirtualList.web.js.map +1 -1
- package/lib/module/list/flash-list-module.js.map +1 -1
- package/lib/module/locale/translations/ar.js +8 -0
- package/lib/module/locale/translations/ar.js.map +1 -1
- package/lib/module/locale/translations/bn.js +8 -0
- package/lib/module/locale/translations/bn.js.map +1 -1
- package/lib/module/locale/translations/ca.js +8 -0
- package/lib/module/locale/translations/ca.js.map +1 -1
- package/lib/module/locale/translations/de.js +8 -0
- package/lib/module/locale/translations/de.js.map +1 -1
- package/lib/module/locale/translations/es.js +8 -0
- package/lib/module/locale/translations/es.js.map +1 -1
- package/lib/module/locale/translations/fr.js +8 -0
- package/lib/module/locale/translations/fr.js.map +1 -1
- package/lib/module/locale/translations/hi.js +8 -0
- package/lib/module/locale/translations/hi.js.map +1 -1
- package/lib/module/locale/translations/id.js +8 -0
- package/lib/module/locale/translations/id.js.map +1 -1
- package/lib/module/locale/translations/it.js +8 -0
- package/lib/module/locale/translations/it.js.map +1 -1
- package/lib/module/locale/translations/ja.js +8 -0
- package/lib/module/locale/translations/ja.js.map +1 -1
- package/lib/module/locale/translations/pt.js +8 -0
- package/lib/module/locale/translations/pt.js.map +1 -1
- package/lib/module/locale/translations/ru.js +8 -0
- package/lib/module/locale/translations/ru.js.map +1 -1
- package/lib/module/locale/translations/tr.js +8 -0
- package/lib/module/locale/translations/tr.js.map +1 -1
- package/lib/module/locale/translations/zh.js +8 -0
- package/lib/module/locale/translations/zh.js.map +1 -1
- package/lib/module/page-header/EdgeScrim.js +14 -4
- package/lib/module/page-header/EdgeScrim.js.map +1 -1
- package/lib/module/page-header/PageHeader.js +19 -6
- package/lib/module/page-header/PageHeader.js.map +1 -1
- package/lib/module/screen/ScreenBase.js +15 -6
- package/lib/module/screen/ScreenBase.js.map +1 -1
- package/lib/module/screen/ScreenScrollViewBase.js +12 -2
- package/lib/module/screen/ScreenScrollViewBase.js.map +1 -1
- package/lib/module/screen/context.js.map +1 -1
- package/lib/module/screen/use-intrinsic-content-height.js +50 -0
- package/lib/module/screen/use-intrinsic-content-height.js.map +1 -0
- package/lib/module/screen/use-screen-viewport.js +39 -8
- package/lib/module/screen/use-screen-viewport.js.map +1 -1
- package/lib/module/scroll/constants.js +3 -0
- package/lib/module/scroll/constants.js.map +1 -1
- package/lib/module/scroll/owner-handoff.js +27 -8
- package/lib/module/scroll/owner-handoff.js.map +1 -1
- package/lib/module/scroll/use-scroll-restoration.web.js +1 -10
- package/lib/module/scroll/use-scroll-restoration.web.js.map +1 -1
- package/lib/module/sidebar/Sidebar.js +121 -87
- package/lib/module/sidebar/Sidebar.js.map +1 -1
- package/lib/module/sidebar/arrangement.js +32 -0
- package/lib/module/sidebar/arrangement.js.map +1 -0
- package/lib/module/sidebar/index.js.map +1 -1
- package/lib/module/tab-bar/TabBarBase.js +130 -23
- package/lib/module/tab-bar/TabBarBase.js.map +1 -1
- package/lib/module/tab-bar/shared.js +2 -0
- package/lib/module/tab-bar/shared.js.map +1 -1
- package/lib/module/tab-pager/TabPagerBottomBar.js +13 -3
- package/lib/module/tab-pager/TabPagerBottomBar.js.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShell.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShellEngine.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShellPanelLayout.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/RetainedPanelLayout.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/panel-layout-css.d.ts +2 -1
- package/lib/typescript/commonjs/app-shell/panel-layout-css.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/panel-layout-types.d.ts +11 -2
- package/lib/typescript/commonjs/app-shell/panel-layout-types.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/panel-layout.d.ts +13 -27
- package/lib/typescript/commonjs/app-shell/panel-layout.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/panel-motion.d.ts +1 -12
- package/lib/typescript/commonjs/app-shell/panel-motion.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/panel-transitions.d.ts +4 -0
- package/lib/typescript/commonjs/app-shell/panel-transitions.d.ts.map +1 -0
- package/lib/typescript/commonjs/app-shell/shell-layout-css.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/types.d.ts +4 -0
- package/lib/typescript/commonjs/app-shell/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/use-panel-exit-completion.d.ts +14 -0
- package/lib/typescript/commonjs/app-shell/use-panel-exit-completion.d.ts.map +1 -0
- package/lib/typescript/commonjs/app-shell/use-panel-reorder.d.ts +2 -2
- package/lib/typescript/commonjs/app-shell/use-panel-reorder.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/use-panel-resize.d.ts +4 -2
- package/lib/typescript/commonjs/app-shell/use-panel-resize.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/use-panel-reveal.d.ts +2 -2
- package/lib/typescript/commonjs/app-shell/use-panel-reveal.d.ts.map +1 -1
- package/lib/typescript/commonjs/bottom-bar/BottomBarBase.d.ts +1 -1
- package/lib/typescript/commonjs/bottom-bar/BottomBarBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/bottom-bar/types.d.ts +10 -2
- package/lib/typescript/commonjs/bottom-bar/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/bottom-sheet/BottomSheetBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/bottom-sheet/types.d.ts +2 -0
- package/lib/typescript/commonjs/bottom-sheet/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/button/GlyphAttention.d.ts +11 -0
- package/lib/typescript/commonjs/button/GlyphAttention.d.ts.map +1 -0
- package/lib/typescript/commonjs/button/GlyphButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/button/types.d.ts +11 -0
- package/lib/typescript/commonjs/button/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/CompactComposer.d.ts +2 -0
- package/lib/typescript/commonjs/chat-composer/CompactComposer.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/CompactComposer.web.d.ts +2 -0
- package/lib/typescript/commonjs/chat-composer/CompactComposer.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/compact-text.d.ts +3 -0
- package/lib/typescript/commonjs/chat-composer/compact-text.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/compact-types.d.ts +45 -0
- package/lib/typescript/commonjs/chat-composer/compact-types.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/create-compact-composer.d.ts +13 -0
- package/lib/typescript/commonjs/chat-composer/create-compact-composer.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/index.d.ts +3 -0
- package/lib/typescript/commonjs/chat-composer/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/index.web.d.ts +3 -0
- package/lib/typescript/commonjs/chat-composer/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/messages.d.ts +8 -0
- package/lib/typescript/commonjs/chat-composer/messages.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/DialogBottomSheet.d.ts +2 -2
- package/lib/typescript/commonjs/dialog/DialogBottomSheet.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/types.d.ts +2 -0
- package/lib/typescript/commonjs/dialog/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/engagement-bar/EngagementAction.d.ts.map +1 -1
- package/lib/typescript/commonjs/engagement-bar/EngagementBar.d.ts +3 -3
- package/lib/typescript/commonjs/engagement-bar/EngagementBar.d.ts.map +1 -1
- package/lib/typescript/commonjs/engagement-bar/EngagementPop.d.ts +2 -1
- package/lib/typescript/commonjs/engagement-bar/EngagementPop.d.ts.map +1 -1
- package/lib/typescript/commonjs/engagement-bar/context.d.ts +1 -0
- package/lib/typescript/commonjs/engagement-bar/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/engagement-bar/paint.d.ts +4 -2
- package/lib/typescript/commonjs/engagement-bar/paint.d.ts.map +1 -1
- package/lib/typescript/commonjs/engagement-bar/types.d.ts +10 -1
- package/lib/typescript/commonjs/engagement-bar/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/hooks/use-border-box-size.d.ts +13 -0
- package/lib/typescript/commonjs/hooks/use-border-box-size.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/index.d.ts +1 -0
- package/lib/typescript/commonjs/icons/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/icons/social/BookmarkFillIcon.d.ts +8 -0
- package/lib/typescript/commonjs/icons/social/BookmarkFillIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/social/BookmarkIcon.d.ts +8 -0
- package/lib/typescript/commonjs/icons/social/BookmarkIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/social/GifAttachmentIcon.d.ts +8 -0
- package/lib/typescript/commonjs/icons/social/GifAttachmentIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/social/LikeFillIcon.d.ts +8 -0
- package/lib/typescript/commonjs/icons/social/LikeFillIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/social/LikeIcon.d.ts +8 -0
- package/lib/typescript/commonjs/icons/social/LikeIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/social/MediaAttachmentIcon.d.ts +8 -0
- package/lib/typescript/commonjs/icons/social/MediaAttachmentIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/social/ReplyIcon.d.ts +8 -0
- package/lib/typescript/commonjs/icons/social/ReplyIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/social/RepostIcon.d.ts +8 -0
- package/lib/typescript/commonjs/icons/social/RepostIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/social/ShareIcon.d.ts +8 -0
- package/lib/typescript/commonjs/icons/social/ShareIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/social/index.d.ts +10 -0
- package/lib/typescript/commonjs/icons/social/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +2 -2
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.web.d.ts +2 -2
- package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/ScrollBar.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/bottom-edge.d.ts +2 -0
- package/lib/typescript/commonjs/layout/bottom-edge.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/scroll-metrics.d.ts +2 -0
- package/lib/typescript/commonjs/layout/scroll-metrics.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/types.d.ts +2 -2
- package/lib/typescript/commonjs/layout/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/VirtualList.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/VirtualList.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/flash-list-module.d.ts +1 -1
- package/lib/typescript/commonjs/list/flash-list-module.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ar.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/bn.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ca.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/de.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/es.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/fr.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/hi.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/id.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/it.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ja.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/pt.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ru.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/tr.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/types.d.ts +2 -1
- package/lib/typescript/commonjs/locale/translations/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/zh.d.ts.map +1 -1
- package/lib/typescript/commonjs/page-header/EdgeScrim.d.ts +3 -1
- package/lib/typescript/commonjs/page-header/EdgeScrim.d.ts.map +1 -1
- package/lib/typescript/commonjs/page-header/PageHeader.d.ts +1 -1
- package/lib/typescript/commonjs/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/page-header/types.d.ts +2 -0
- package/lib/typescript/commonjs/page-header/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/ScreenBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/ScreenScrollViewBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/context.d.ts +3 -0
- package/lib/typescript/commonjs/screen/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/use-intrinsic-content-height.d.ts +3 -0
- package/lib/typescript/commonjs/screen/use-intrinsic-content-height.d.ts.map +1 -0
- package/lib/typescript/commonjs/screen/use-screen-viewport.d.ts.map +1 -1
- package/lib/typescript/commonjs/scroll/constants.d.ts +2 -0
- package/lib/typescript/commonjs/scroll/constants.d.ts.map +1 -1
- package/lib/typescript/commonjs/scroll/owner-handoff.d.ts +3 -1
- package/lib/typescript/commonjs/scroll/owner-handoff.d.ts.map +1 -1
- package/lib/typescript/commonjs/scroll/use-scroll-restoration.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/Sidebar.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/arrangement.d.ts +32 -0
- package/lib/typescript/commonjs/sidebar/arrangement.d.ts.map +1 -0
- package/lib/typescript/commonjs/sidebar/index.d.ts +1 -0
- package/lib/typescript/commonjs/sidebar/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/types.d.ts +13 -1
- package/lib/typescript/commonjs/sidebar/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/tab-bar/TabBarBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/tab-bar/shared.d.ts +2 -0
- package/lib/typescript/commonjs/tab-bar/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/tab-bar/types.d.ts +2 -0
- package/lib/typescript/commonjs/tab-bar/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/tab-pager/TabPagerBottomBar.d.ts +1 -1
- package/lib/typescript/commonjs/tab-pager/TabPagerBottomBar.d.ts.map +1 -1
- package/lib/typescript/commonjs/tab-pager/types.d.ts +4 -1
- package/lib/typescript/commonjs/tab-pager/types.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShell.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShellEngine.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShellPanelLayout.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/RetainedPanelLayout.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/panel-layout-css.d.ts +2 -1
- package/lib/typescript/module/app-shell/panel-layout-css.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/panel-layout-types.d.ts +11 -2
- package/lib/typescript/module/app-shell/panel-layout-types.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/panel-layout.d.ts +13 -27
- package/lib/typescript/module/app-shell/panel-layout.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/panel-motion.d.ts +1 -12
- package/lib/typescript/module/app-shell/panel-motion.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/panel-transitions.d.ts +4 -0
- package/lib/typescript/module/app-shell/panel-transitions.d.ts.map +1 -0
- package/lib/typescript/module/app-shell/shell-layout-css.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/types.d.ts +4 -0
- package/lib/typescript/module/app-shell/types.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/use-panel-exit-completion.d.ts +14 -0
- package/lib/typescript/module/app-shell/use-panel-exit-completion.d.ts.map +1 -0
- package/lib/typescript/module/app-shell/use-panel-reorder.d.ts +2 -2
- package/lib/typescript/module/app-shell/use-panel-reorder.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/use-panel-resize.d.ts +4 -2
- package/lib/typescript/module/app-shell/use-panel-resize.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/use-panel-reveal.d.ts +2 -2
- package/lib/typescript/module/app-shell/use-panel-reveal.d.ts.map +1 -1
- package/lib/typescript/module/bottom-bar/BottomBarBase.d.ts +1 -1
- package/lib/typescript/module/bottom-bar/BottomBarBase.d.ts.map +1 -1
- package/lib/typescript/module/bottom-bar/types.d.ts +10 -2
- package/lib/typescript/module/bottom-bar/types.d.ts.map +1 -1
- package/lib/typescript/module/bottom-sheet/BottomSheetBase.d.ts.map +1 -1
- package/lib/typescript/module/bottom-sheet/types.d.ts +2 -0
- package/lib/typescript/module/bottom-sheet/types.d.ts.map +1 -1
- package/lib/typescript/module/button/GlyphAttention.d.ts +11 -0
- package/lib/typescript/module/button/GlyphAttention.d.ts.map +1 -0
- package/lib/typescript/module/button/GlyphButton.d.ts.map +1 -1
- package/lib/typescript/module/button/types.d.ts +11 -0
- package/lib/typescript/module/button/types.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/CompactComposer.d.ts +2 -0
- package/lib/typescript/module/chat-composer/CompactComposer.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/CompactComposer.web.d.ts +2 -0
- package/lib/typescript/module/chat-composer/CompactComposer.web.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/compact-text.d.ts +3 -0
- package/lib/typescript/module/chat-composer/compact-text.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/compact-types.d.ts +45 -0
- package/lib/typescript/module/chat-composer/compact-types.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/create-compact-composer.d.ts +13 -0
- package/lib/typescript/module/chat-composer/create-compact-composer.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/index.d.ts +3 -0
- package/lib/typescript/module/chat-composer/index.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/index.web.d.ts +3 -0
- package/lib/typescript/module/chat-composer/index.web.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/messages.d.ts +8 -0
- package/lib/typescript/module/chat-composer/messages.d.ts.map +1 -1
- package/lib/typescript/module/dialog/DialogBottomSheet.d.ts +2 -2
- package/lib/typescript/module/dialog/DialogBottomSheet.d.ts.map +1 -1
- package/lib/typescript/module/dialog/types.d.ts +2 -0
- package/lib/typescript/module/dialog/types.d.ts.map +1 -1
- package/lib/typescript/module/engagement-bar/EngagementAction.d.ts.map +1 -1
- package/lib/typescript/module/engagement-bar/EngagementBar.d.ts +3 -3
- package/lib/typescript/module/engagement-bar/EngagementBar.d.ts.map +1 -1
- package/lib/typescript/module/engagement-bar/EngagementPop.d.ts +2 -1
- package/lib/typescript/module/engagement-bar/EngagementPop.d.ts.map +1 -1
- package/lib/typescript/module/engagement-bar/context.d.ts +1 -0
- package/lib/typescript/module/engagement-bar/context.d.ts.map +1 -1
- package/lib/typescript/module/engagement-bar/paint.d.ts +4 -2
- package/lib/typescript/module/engagement-bar/paint.d.ts.map +1 -1
- package/lib/typescript/module/engagement-bar/types.d.ts +10 -1
- package/lib/typescript/module/engagement-bar/types.d.ts.map +1 -1
- package/lib/typescript/module/hooks/use-border-box-size.d.ts +13 -0
- package/lib/typescript/module/hooks/use-border-box-size.d.ts.map +1 -0
- package/lib/typescript/module/icons/index.d.ts +1 -0
- package/lib/typescript/module/icons/index.d.ts.map +1 -1
- package/lib/typescript/module/icons/social/BookmarkFillIcon.d.ts +8 -0
- package/lib/typescript/module/icons/social/BookmarkFillIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/social/BookmarkIcon.d.ts +8 -0
- package/lib/typescript/module/icons/social/BookmarkIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/social/GifAttachmentIcon.d.ts +8 -0
- package/lib/typescript/module/icons/social/GifAttachmentIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/social/LikeFillIcon.d.ts +8 -0
- package/lib/typescript/module/icons/social/LikeFillIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/social/LikeIcon.d.ts +8 -0
- package/lib/typescript/module/icons/social/LikeIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/social/MediaAttachmentIcon.d.ts +8 -0
- package/lib/typescript/module/icons/social/MediaAttachmentIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/social/ReplyIcon.d.ts +8 -0
- package/lib/typescript/module/icons/social/ReplyIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/social/RepostIcon.d.ts +8 -0
- package/lib/typescript/module/icons/social/RepostIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/social/ShareIcon.d.ts +8 -0
- package/lib/typescript/module/icons/social/ShareIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/social/index.d.ts +10 -0
- package/lib/typescript/module/icons/social/index.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +2 -2
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/index.web.d.ts +2 -2
- package/lib/typescript/module/index.web.d.ts.map +1 -1
- package/lib/typescript/module/layout/ScrollBar.web.d.ts.map +1 -1
- package/lib/typescript/module/layout/bottom-edge.d.ts +2 -0
- package/lib/typescript/module/layout/bottom-edge.d.ts.map +1 -1
- package/lib/typescript/module/layout/scroll-metrics.d.ts +2 -0
- package/lib/typescript/module/layout/scroll-metrics.d.ts.map +1 -1
- package/lib/typescript/module/layout/types.d.ts +2 -2
- package/lib/typescript/module/layout/types.d.ts.map +1 -1
- package/lib/typescript/module/list/VirtualList.d.ts.map +1 -1
- package/lib/typescript/module/list/VirtualList.web.d.ts.map +1 -1
- package/lib/typescript/module/list/flash-list-module.d.ts +1 -1
- package/lib/typescript/module/list/flash-list-module.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ar.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/bn.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ca.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/de.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/es.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/fr.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/hi.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/id.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/it.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ja.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/pt.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ru.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/tr.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/types.d.ts +2 -1
- package/lib/typescript/module/locale/translations/types.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/zh.d.ts.map +1 -1
- package/lib/typescript/module/page-header/EdgeScrim.d.ts +3 -1
- package/lib/typescript/module/page-header/EdgeScrim.d.ts.map +1 -1
- package/lib/typescript/module/page-header/PageHeader.d.ts +1 -1
- package/lib/typescript/module/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/module/page-header/types.d.ts +2 -0
- package/lib/typescript/module/page-header/types.d.ts.map +1 -1
- package/lib/typescript/module/screen/ScreenBase.d.ts.map +1 -1
- package/lib/typescript/module/screen/ScreenScrollViewBase.d.ts.map +1 -1
- package/lib/typescript/module/screen/context.d.ts +3 -0
- package/lib/typescript/module/screen/context.d.ts.map +1 -1
- package/lib/typescript/module/screen/use-intrinsic-content-height.d.ts +3 -0
- package/lib/typescript/module/screen/use-intrinsic-content-height.d.ts.map +1 -0
- package/lib/typescript/module/screen/use-screen-viewport.d.ts.map +1 -1
- package/lib/typescript/module/scroll/constants.d.ts +2 -0
- package/lib/typescript/module/scroll/constants.d.ts.map +1 -1
- package/lib/typescript/module/scroll/owner-handoff.d.ts +3 -1
- package/lib/typescript/module/scroll/owner-handoff.d.ts.map +1 -1
- package/lib/typescript/module/scroll/use-scroll-restoration.web.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/Sidebar.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/arrangement.d.ts +32 -0
- package/lib/typescript/module/sidebar/arrangement.d.ts.map +1 -0
- package/lib/typescript/module/sidebar/index.d.ts +1 -0
- package/lib/typescript/module/sidebar/index.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/types.d.ts +13 -1
- package/lib/typescript/module/sidebar/types.d.ts.map +1 -1
- package/lib/typescript/module/tab-bar/TabBarBase.d.ts.map +1 -1
- package/lib/typescript/module/tab-bar/shared.d.ts +2 -0
- package/lib/typescript/module/tab-bar/shared.d.ts.map +1 -1
- package/lib/typescript/module/tab-bar/types.d.ts +2 -0
- package/lib/typescript/module/tab-bar/types.d.ts.map +1 -1
- package/lib/typescript/module/tab-pager/TabPagerBottomBar.d.ts +1 -1
- package/lib/typescript/module/tab-pager/TabPagerBottomBar.d.ts.map +1 -1
- package/lib/typescript/module/tab-pager/types.d.ts +4 -1
- package/lib/typescript/module/tab-pager/types.d.ts.map +1 -1
- package/package.json +154 -1
- package/src/__tests__/support/public-part-classifications.json +22 -1
- package/src/__tests__/support/yoga-host-tree.ts +67 -4
- package/src/app-shell/AppShell.tsx +7 -3
- package/src/app-shell/AppShellEngine.tsx +6 -2
- package/src/app-shell/AppShellPanelLayout.tsx +466 -189
- package/src/app-shell/RetainedPanelLayout.tsx +7 -1
- package/src/app-shell/panel-layout-css.ts +41 -27
- package/src/app-shell/panel-layout-types.ts +11 -2
- package/src/app-shell/panel-layout.ts +49 -256
- package/src/app-shell/panel-motion.ts +34 -52
- package/src/app-shell/panel-transitions.ts +39 -0
- package/src/app-shell/shell-layout-css.ts +6 -2
- package/src/app-shell/types.ts +4 -0
- package/src/app-shell/use-panel-exit-completion.ts +95 -0
- package/src/app-shell/use-panel-reorder.ts +2 -2
- package/src/app-shell/use-panel-resize.ts +37 -10
- package/src/app-shell/use-panel-reveal.ts +4 -9
- package/src/bottom-bar/BottomBarBase.tsx +230 -46
- package/src/bottom-bar/types.ts +10 -2
- package/src/bottom-sheet/BottomSheetBase.tsx +6 -2
- package/src/bottom-sheet/types.ts +2 -0
- package/src/button/GlyphAttention.tsx +100 -0
- package/src/button/GlyphButton.tsx +21 -6
- package/src/button/types.ts +11 -0
- package/src/chat-composer/CompactComposer.tsx +7 -0
- package/src/chat-composer/CompactComposer.web.tsx +7 -0
- package/src/chat-composer/compact-text.ts +4 -0
- package/src/chat-composer/compact-types.ts +47 -0
- package/src/chat-composer/create-compact-composer.tsx +213 -0
- package/src/chat-composer/index.ts +8 -0
- package/src/chat-composer/index.web.ts +8 -0
- package/src/chat-composer/messages.ts +16 -0
- package/src/dialog/DialogBottomSheet.tsx +13 -2
- package/src/dialog/types.ts +2 -0
- package/src/engagement-bar/EngagementAction.tsx +5 -4
- package/src/engagement-bar/EngagementBar.tsx +30 -5
- package/src/engagement-bar/EngagementPop.tsx +11 -3
- package/src/engagement-bar/context.ts +1 -0
- package/src/engagement-bar/paint.ts +60 -13
- package/src/engagement-bar/types.ts +10 -1
- package/src/hooks/use-border-box-size.ts +38 -0
- package/src/icons/index.ts +2 -1
- package/src/icons/social/BookmarkFillIcon.tsx +6 -0
- package/src/icons/social/BookmarkIcon.tsx +6 -0
- package/src/icons/social/GifAttachmentIcon.tsx +6 -0
- package/src/icons/social/LikeFillIcon.tsx +7 -0
- package/src/icons/social/LikeIcon.tsx +8 -0
- package/src/icons/social/MediaAttachmentIcon.tsx +6 -0
- package/src/icons/social/ReplyIcon.tsx +8 -0
- package/src/icons/social/RepostIcon.tsx +6 -0
- package/src/icons/social/ShareIcon.tsx +6 -0
- package/src/icons/social/index.ts +9 -0
- package/src/index.ts +5 -0
- package/src/index.web.ts +5 -0
- package/src/layout/ScrollBar.web.tsx +74 -40
- package/src/layout/bottom-edge.tsx +17 -0
- package/src/layout/scroll-metrics.tsx +2 -0
- package/src/layout/types.ts +2 -2
- package/src/list/VirtualList.tsx +18 -0
- package/src/list/VirtualList.web.tsx +69 -22
- package/src/list/flash-list-module.ts +2 -0
- package/src/locale/translations/ar.ts +9 -0
- package/src/locale/translations/bn.ts +9 -0
- package/src/locale/translations/ca.ts +10 -0
- package/src/locale/translations/de.ts +10 -0
- package/src/locale/translations/es.ts +10 -0
- package/src/locale/translations/fr.ts +10 -0
- package/src/locale/translations/hi.ts +9 -0
- package/src/locale/translations/id.ts +10 -0
- package/src/locale/translations/it.ts +10 -0
- package/src/locale/translations/ja.ts +10 -0
- package/src/locale/translations/pt.ts +10 -0
- package/src/locale/translations/ru.ts +10 -0
- package/src/locale/translations/tr.ts +10 -0
- package/src/locale/translations/types.ts +5 -1
- package/src/locale/translations/zh.ts +9 -0
- package/src/page-header/EdgeScrim.tsx +29 -9
- package/src/page-header/PageHeader.tsx +10 -6
- package/src/page-header/types.ts +2 -0
- package/src/screen/ScreenBase.tsx +13 -6
- package/src/screen/ScreenScrollViewBase.tsx +24 -2
- package/src/screen/context.ts +3 -0
- package/src/screen/use-intrinsic-content-height.ts +56 -0
- package/src/screen/use-screen-viewport.ts +60 -11
- package/src/scroll/constants.ts +3 -0
- package/src/scroll/owner-handoff.ts +45 -11
- package/src/scroll/use-scroll-restoration.web.ts +4 -10
- package/src/sidebar/Sidebar.tsx +146 -121
- package/src/sidebar/arrangement.ts +47 -0
- package/src/sidebar/index.ts +6 -0
- package/src/sidebar/types.ts +13 -1
- package/src/tab-bar/TabBarBase.tsx +193 -27
- package/src/tab-bar/shared.ts +2 -0
- package/src/tab-bar/types.ts +2 -0
- package/src/tab-pager/TabPagerBottomBar.tsx +23 -3
- package/src/tab-pager/types.ts +4 -1
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
cancelAnimation,
|
|
4
4
|
withDelay,
|
|
5
5
|
withTiming,
|
|
6
|
+
runOnJS,
|
|
6
7
|
type SharedValue,
|
|
7
8
|
} from 'react-native-reanimated';
|
|
8
9
|
|
|
@@ -11,52 +12,6 @@ export const PANEL_LAYOUT_MS = 380;
|
|
|
11
12
|
export const PANEL_ENTER_DELAY_MS = PANEL_EXIT_MS + PANEL_LAYOUT_MS;
|
|
12
13
|
const ease = Easing.bezier(0.4, 0, 0.2, 1);
|
|
13
14
|
|
|
14
|
-
/** Native adapter for the same exit → geometry → entry phases used by the CSS compositor. */
|
|
15
|
-
export function animatePanelLayout(
|
|
16
|
-
values: {
|
|
17
|
-
width: SharedValue<number>;
|
|
18
|
-
gap: SharedValue<number>;
|
|
19
|
-
opacity: SharedValue<number>;
|
|
20
|
-
scale: SharedValue<number>;
|
|
21
|
-
},
|
|
22
|
-
target: { width: number; gap: number; visible: boolean },
|
|
23
|
-
ordered: boolean,
|
|
24
|
-
reduced: boolean,
|
|
25
|
-
) {
|
|
26
|
-
'worklet';
|
|
27
|
-
for (const value of [values.width, values.gap, values.opacity, values.scale])
|
|
28
|
-
cancelAnimation(value);
|
|
29
|
-
if (reduced) {
|
|
30
|
-
values.width.value = target.width;
|
|
31
|
-
values.gap.value = target.gap;
|
|
32
|
-
values.opacity.value = target.visible ? 1 : 0;
|
|
33
|
-
values.scale.value = 1;
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
const geometryDelay = ordered ? PANEL_EXIT_MS : 0;
|
|
37
|
-
const fadeDelay =
|
|
38
|
-
ordered && target.visible && values.opacity.value < 1 ? PANEL_ENTER_DELAY_MS : 0;
|
|
39
|
-
values.width.value = withDelay(
|
|
40
|
-
geometryDelay,
|
|
41
|
-
withTiming(target.width, { duration: PANEL_LAYOUT_MS, easing: ease }),
|
|
42
|
-
);
|
|
43
|
-
values.gap.value = withDelay(
|
|
44
|
-
geometryDelay,
|
|
45
|
-
withTiming(target.gap, { duration: PANEL_LAYOUT_MS, easing: ease }),
|
|
46
|
-
);
|
|
47
|
-
values.opacity.value = withDelay(
|
|
48
|
-
fadeDelay,
|
|
49
|
-
withTiming(target.visible ? 1 : 0, {
|
|
50
|
-
duration: ordered ? PANEL_EXIT_MS : PANEL_LAYOUT_MS,
|
|
51
|
-
easing: ease,
|
|
52
|
-
}),
|
|
53
|
-
);
|
|
54
|
-
values.scale.value = withDelay(
|
|
55
|
-
fadeDelay,
|
|
56
|
-
withTiming(ordered && !target.visible ? 0.98 : 1, { duration: PANEL_EXIT_MS }),
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
15
|
/** A track's flex along its group's axis, as shared values (`PanelFlexTrack`). */
|
|
61
16
|
export interface PanelFlexValues {
|
|
62
17
|
grow: SharedValue<number>;
|
|
@@ -90,6 +45,7 @@ export function animatePanelFlex(
|
|
|
90
45
|
},
|
|
91
46
|
ordered: boolean,
|
|
92
47
|
immediate: boolean,
|
|
48
|
+
onExitComplete?: () => void,
|
|
93
49
|
) {
|
|
94
50
|
'worklet';
|
|
95
51
|
const geometry = [
|
|
@@ -110,24 +66,50 @@ export function animatePanelFlex(
|
|
|
110
66
|
values.max.value = target.max;
|
|
111
67
|
values.opacity.value = target.visible ? 1 : 0;
|
|
112
68
|
values.scale.value = 1;
|
|
69
|
+
if (!target.visible) onExitComplete?.();
|
|
113
70
|
return;
|
|
114
71
|
}
|
|
115
72
|
const geometryDelay = ordered ? PANEL_EXIT_MS : 0;
|
|
116
73
|
const fadeDelay =
|
|
117
74
|
ordered && target.visible && values.opacity.value < 1 ? PANEL_ENTER_DELAY_MS : 0;
|
|
118
75
|
const timing = { duration: PANEL_LAYOUT_MS, easing: ease };
|
|
76
|
+
// Every geometry channel has the same delay/duration. Choose one that
|
|
77
|
+
// actually changes; a zero-basis split often animates only grow/minimums.
|
|
78
|
+
const completionOwner =
|
|
79
|
+
!target.visible && onExitComplete
|
|
80
|
+
? (geometry.find(([shared, to]) => shared.value !== to)?.[0] ??
|
|
81
|
+
(Number.isFinite(values.max.value) &&
|
|
82
|
+
Number.isFinite(target.max) &&
|
|
83
|
+
values.max.value !== target.max
|
|
84
|
+
? values.max
|
|
85
|
+
: values.opacity))
|
|
86
|
+
: undefined;
|
|
87
|
+
const completed = (finished?: boolean) => {
|
|
88
|
+
'worklet';
|
|
89
|
+
if (finished && onExitComplete) runOnJS(onExitComplete)();
|
|
90
|
+
};
|
|
119
91
|
for (const [shared, to] of geometry)
|
|
120
|
-
shared.value = withDelay(
|
|
92
|
+
shared.value = withDelay(
|
|
93
|
+
geometryDelay,
|
|
94
|
+
withTiming(to, timing, shared === completionOwner ? completed : undefined),
|
|
95
|
+
);
|
|
121
96
|
values.max.value =
|
|
122
97
|
Number.isFinite(values.max.value) && Number.isFinite(target.max)
|
|
123
|
-
? withDelay(
|
|
98
|
+
? withDelay(
|
|
99
|
+
geometryDelay,
|
|
100
|
+
withTiming(target.max, timing, values.max === completionOwner ? completed : undefined),
|
|
101
|
+
)
|
|
124
102
|
: target.max;
|
|
125
103
|
values.opacity.value = withDelay(
|
|
126
104
|
fadeDelay,
|
|
127
|
-
withTiming(
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
105
|
+
withTiming(
|
|
106
|
+
target.visible ? 1 : 0,
|
|
107
|
+
{
|
|
108
|
+
duration: ordered ? PANEL_EXIT_MS : PANEL_LAYOUT_MS,
|
|
109
|
+
easing: ease,
|
|
110
|
+
},
|
|
111
|
+
values.opacity === completionOwner ? completed : undefined,
|
|
112
|
+
),
|
|
131
113
|
);
|
|
132
114
|
values.scale.value = withDelay(
|
|
133
115
|
fadeDelay,
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/** Only finite compositor geometry transitions can delay a scroll-owner handoff or reveal. */
|
|
2
|
+
const GEOMETRY_PROPERTY =
|
|
3
|
+
/^(width|height|flex-basis|flex-grow|min-width|min-height|max-width|max-height|margin-inline-start|margin-top|padding-inline-start|display)$/;
|
|
4
|
+
|
|
5
|
+
export function panelGeometryTransitions(owners: Iterable<HTMLElement>): Animation[] {
|
|
6
|
+
return [...new Set(owners)].flatMap((owner) =>
|
|
7
|
+
(owner.getAnimations?.() ?? []).filter(
|
|
8
|
+
(animation) =>
|
|
9
|
+
'transitionProperty' in animation &&
|
|
10
|
+
typeof animation.transitionProperty === 'string' &&
|
|
11
|
+
GEOMETRY_PROPERTY.test(animation.transitionProperty) &&
|
|
12
|
+
(animation.pending || animation.playState === 'running'),
|
|
13
|
+
),
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** Only the track and its material paint layers own panel exit completion. */
|
|
18
|
+
export function panelExitTransitions(owner: HTMLElement): Animation[] {
|
|
19
|
+
return (owner.getAnimations?.({ subtree: true }) ?? []).filter((animation) => {
|
|
20
|
+
if (
|
|
21
|
+
!('transitionProperty' in animation) ||
|
|
22
|
+
typeof animation.transitionProperty !== 'string' ||
|
|
23
|
+
(!animation.pending && animation.playState !== 'running')
|
|
24
|
+
)
|
|
25
|
+
return false;
|
|
26
|
+
const target = (animation.effect as KeyframeEffect | null)?.target;
|
|
27
|
+
if (!(target instanceof HTMLElement)) return false;
|
|
28
|
+
if (target === owner)
|
|
29
|
+
return (
|
|
30
|
+
GEOMETRY_PROPERTY.test(animation.transitionProperty) ||
|
|
31
|
+
/^(opacity|scale)$/.test(animation.transitionProperty)
|
|
32
|
+
);
|
|
33
|
+
return (
|
|
34
|
+
animation.transitionProperty === 'opacity' &&
|
|
35
|
+
target.parentElement?.hasAttribute('data-bloom-panel-material') === true &&
|
|
36
|
+
target.closest('[data-bloom-panel-owner]') === owner
|
|
37
|
+
);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
@@ -152,7 +152,9 @@ ${root} [data-bloom-dock-moving] :is([data-bloom-shell-nav="${scope}"],[data-blo
|
|
|
152
152
|
// Express that alignment as a length so the browser can interpolate the
|
|
153
153
|
// same frame in both directions, including RTL, without measured FLIP boxes.
|
|
154
154
|
const alignmentEnvelope =
|
|
155
|
-
layout.mode === 'deck'
|
|
155
|
+
layout.mode === 'deck' || layout.mode === 'flow'
|
|
156
|
+
? '100cqw'
|
|
157
|
+
: `${panelEnvelope(layout, width, gap)}px`;
|
|
156
158
|
const alignment =
|
|
157
159
|
aligned && !options.fillWidth
|
|
158
160
|
? `max(var(--bloom-frame-start), calc((100cqw - var(--bloom-nav-width) - var(--bloom-nav-gap) - ${alignmentEnvelope} - var(--bloom-frame-end) + var(--bloom-frame-start)) / 2))`
|
|
@@ -168,7 +170,9 @@ ${root} [data-bloom-panel-group="${scope}"] [data-bloom-panel-mask],${root} [dat
|
|
|
168
170
|
${root} [data-bloom-panel-group="${scope}"] [data-bloom-panel],${root} [data-bloom-panel-group="${scope}"] [data-bloom-panel-content]{border-radius:0!important;--bloom-panel-sticky-top:0px!important}`;
|
|
169
171
|
if (mode === 'panel') {
|
|
170
172
|
const preferred =
|
|
171
|
-
layout.mode === 'deck'
|
|
173
|
+
layout.mode === 'deck' || layout.mode === 'flow'
|
|
174
|
+
? options.contentWidth
|
|
175
|
+
: panelEnvelope(layout, width, gap);
|
|
172
176
|
const required = metrics.expanded + preferred + navigationGap + gutter * 2;
|
|
173
177
|
rules += `@container ${scope} (width < ${required}px){${state(force ?? true, true)}}`;
|
|
174
178
|
}
|
package/src/app-shell/types.ts
CHANGED
|
@@ -580,6 +580,10 @@ export interface AppShellPanelProps {
|
|
|
580
580
|
* Descriptors also use `visible` to hide both presentations.
|
|
581
581
|
*/
|
|
582
582
|
floating?: {
|
|
583
|
+
/** Compact presentation; end is the default for existing side panels. */
|
|
584
|
+
placement?: 'bottom' | 'end' | 'center';
|
|
585
|
+
/** Also present as a sheet when the group's explicit split minimums cannot fit. */
|
|
586
|
+
whenConstrained?: boolean;
|
|
583
587
|
below: AppShellBreakpoint;
|
|
584
588
|
open: boolean;
|
|
585
589
|
onOpenChange: (open: boolean) => void;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { useCallback, useLayoutEffect, useRef, type RefObject } from 'react';
|
|
2
|
+
import { panelExitTransitions } from './panel-transitions';
|
|
3
|
+
|
|
4
|
+
/** Observe an actual exit only; never retain application content or run a clock. */
|
|
5
|
+
export function usePanelExitCompletion({
|
|
6
|
+
present,
|
|
7
|
+
floating,
|
|
8
|
+
css,
|
|
9
|
+
reducedMotion,
|
|
10
|
+
owner,
|
|
11
|
+
onExitComplete,
|
|
12
|
+
}: {
|
|
13
|
+
present: boolean;
|
|
14
|
+
floating: boolean;
|
|
15
|
+
css: boolean;
|
|
16
|
+
reducedMotion: boolean;
|
|
17
|
+
owner: RefObject<unknown>;
|
|
18
|
+
onExitComplete?: () => void;
|
|
19
|
+
}) {
|
|
20
|
+
const callback = useRef(onExitComplete);
|
|
21
|
+
callback.current = onExitComplete;
|
|
22
|
+
const previous = useRef({ present, floating });
|
|
23
|
+
const serial = useRef(0);
|
|
24
|
+
const pending = useRef<{ generation: number; complete: () => void; floating: boolean } | null>(
|
|
25
|
+
null,
|
|
26
|
+
);
|
|
27
|
+
const sheetClosed = useRef(false);
|
|
28
|
+
if (present) sheetClosed.current = false;
|
|
29
|
+
const finish = useCallback((generation: number) => {
|
|
30
|
+
if (pending.current?.generation !== generation) return;
|
|
31
|
+
const complete = pending.current.complete;
|
|
32
|
+
pending.current = null;
|
|
33
|
+
complete();
|
|
34
|
+
}, []);
|
|
35
|
+
useLayoutEffect(() => {
|
|
36
|
+
if (present) {
|
|
37
|
+
previous.current = { present, floating };
|
|
38
|
+
pending.current = null;
|
|
39
|
+
serial.current += 1;
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const wasPresent = previous.current.present;
|
|
43
|
+
const wasFloating = previous.current.floating;
|
|
44
|
+
previous.current = { present, floating };
|
|
45
|
+
if (!callback.current || (!wasPresent && pending.current === null)) return;
|
|
46
|
+
if (!pending.current)
|
|
47
|
+
pending.current = {
|
|
48
|
+
generation: ++serial.current,
|
|
49
|
+
complete: callback.current,
|
|
50
|
+
floating: wasFloating,
|
|
51
|
+
};
|
|
52
|
+
const { generation } = pending.current;
|
|
53
|
+
// A breakpoint removed the outgoing presentation. The replacement was
|
|
54
|
+
// never opened and therefore has no exit animation to report.
|
|
55
|
+
if (pending.current.floating !== floating) {
|
|
56
|
+
finish(generation);
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
if (floating) {
|
|
60
|
+
// A gesture can finish the Dialog before its onOpenChange state commits.
|
|
61
|
+
if (sheetClosed.current) finish(generation);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
// Native reports the end of its existing worklet animation.
|
|
65
|
+
if (!css) return;
|
|
66
|
+
let disposed = false;
|
|
67
|
+
const settled = () => {
|
|
68
|
+
if (disposed || pending.current?.generation !== generation) return;
|
|
69
|
+
const node = owner.current as HTMLElement | null;
|
|
70
|
+
const transitions = reducedMotion || !node ? [] : panelExitTransitions(node);
|
|
71
|
+
if (!transitions.length) finish(generation);
|
|
72
|
+
else
|
|
73
|
+
void Promise.allSettled(transitions.map((animation) => animation.finished)).then(settled);
|
|
74
|
+
};
|
|
75
|
+
settled();
|
|
76
|
+
return () => {
|
|
77
|
+
disposed = true;
|
|
78
|
+
};
|
|
79
|
+
}, [present, floating, css, reducedMotion, owner, finish]);
|
|
80
|
+
useLayoutEffect(
|
|
81
|
+
() => () => {
|
|
82
|
+
pending.current = null;
|
|
83
|
+
},
|
|
84
|
+
[],
|
|
85
|
+
);
|
|
86
|
+
const captureNativeCompletion = useCallback(() => {
|
|
87
|
+
const generation = pending.current?.generation;
|
|
88
|
+
return generation === undefined ? undefined : () => finish(generation);
|
|
89
|
+
}, [finish]);
|
|
90
|
+
const completeFloating = useCallback(() => {
|
|
91
|
+
sheetClosed.current = true;
|
|
92
|
+
if (pending.current !== null) finish(pending.current.generation);
|
|
93
|
+
}, [finish]);
|
|
94
|
+
return { captureNativeCompletion, completeFloating };
|
|
95
|
+
}
|
|
@@ -12,7 +12,7 @@ import { useMessages } from '../locale/messages';
|
|
|
12
12
|
import { APP_SHELL_MESSAGES } from './messages';
|
|
13
13
|
import { reorderPanelIds, panelReorderPreview, type PanelReorderGeometry } from './panel-reorder';
|
|
14
14
|
import type { AppShellPanelLayout } from './panel-layout-types';
|
|
15
|
-
import type {
|
|
15
|
+
import type { PanelFlexTrack } from './panel-layout';
|
|
16
16
|
import { usePrefersReducedMotion } from '../hooks/use-prefers-reduced-motion';
|
|
17
17
|
|
|
18
18
|
export interface PanelReorderPoint {
|
|
@@ -75,7 +75,7 @@ export function usePanelReorder({
|
|
|
75
75
|
nativeScroll,
|
|
76
76
|
}: {
|
|
77
77
|
layout: AppShellPanelLayout;
|
|
78
|
-
tracks: readonly Pick<
|
|
78
|
+
tracks: readonly Pick<PanelFlexTrack, 'id' | 'visible' | 'floating'>[];
|
|
79
79
|
vertical: boolean;
|
|
80
80
|
documentHorizontal: boolean;
|
|
81
81
|
scope: string | null;
|
|
@@ -4,8 +4,9 @@ import type { ComponentRef } from 'react';
|
|
|
4
4
|
import {
|
|
5
5
|
clampPanelWidth,
|
|
6
6
|
panelForAxis,
|
|
7
|
+
panelContentResizeLimit,
|
|
7
8
|
resizePanelPair,
|
|
8
|
-
type
|
|
9
|
+
type PanelFlexTrack,
|
|
9
10
|
} from './panel-layout';
|
|
10
11
|
import { panelSizeProperty, panelGrowProperty } from './panel-layout-css';
|
|
11
12
|
import type { AppShellPanelDefinition, AppShellPanelLayout } from './panel-layout-types';
|
|
@@ -13,6 +14,8 @@ import type { AppShellPanelDefinition, AppShellPanelLayout } from './panel-layou
|
|
|
13
14
|
type Sizes = Readonly<Record<string, number>>;
|
|
14
15
|
export interface PanelResizePreview {
|
|
15
16
|
read: () => number;
|
|
17
|
+
/** Intrinsic content plus chrome, read once at the start of a vertical gesture. */
|
|
18
|
+
contentHeight?: (panelHeight: number) => number | undefined;
|
|
16
19
|
update: (size: number) => void;
|
|
17
20
|
}
|
|
18
21
|
|
|
@@ -26,6 +29,8 @@ type Drag = {
|
|
|
26
29
|
next?: AppShellPanelDefinition;
|
|
27
30
|
firstSize: number;
|
|
28
31
|
nextSize: number;
|
|
32
|
+
firstContentMax?: number;
|
|
33
|
+
nextContentMax?: number;
|
|
29
34
|
values?: Sizes;
|
|
30
35
|
properties: Map<CSSStyleDeclaration, Set<string>>;
|
|
31
36
|
};
|
|
@@ -41,7 +46,7 @@ export function usePanelResize({
|
|
|
41
46
|
onCommit,
|
|
42
47
|
}: {
|
|
43
48
|
layout: AppShellPanelLayout;
|
|
44
|
-
tracks: readonly Pick<
|
|
49
|
+
tracks: readonly Pick<PanelFlexTrack, 'id' | 'visible'>[];
|
|
45
50
|
vertical: boolean;
|
|
46
51
|
document: boolean;
|
|
47
52
|
scope: string | null;
|
|
@@ -125,14 +130,21 @@ export function usePanelResize({
|
|
|
125
130
|
const visible = tracks.filter((track) => track.visible);
|
|
126
131
|
const nextId = visible[visible.findIndex((track) => track.id === panel.id) + 1]?.id;
|
|
127
132
|
const next =
|
|
128
|
-
layout.mode !== 'deck' && !(vertical && document)
|
|
133
|
+
layout.mode !== 'deck' && layout.mode !== 'flow' && !(vertical && document)
|
|
129
134
|
? layout.panels.find((candidate) => candidate.id === nextId)
|
|
130
135
|
: undefined;
|
|
136
|
+
const firstSize = size(panel.id);
|
|
137
|
+
const nextSize = next ? size(next.id) : 0;
|
|
131
138
|
return {
|
|
132
139
|
first: panelForAxis(panel, vertical ? 'vertical' : 'horizontal'),
|
|
133
140
|
next: next ? panelForAxis(next, vertical ? 'vertical' : 'horizontal') : undefined,
|
|
134
|
-
firstSize
|
|
135
|
-
nextSize
|
|
141
|
+
firstSize,
|
|
142
|
+
nextSize,
|
|
143
|
+
firstContentMax: vertical
|
|
144
|
+
? previews.current.get(panel.id)?.contentHeight?.(firstSize)
|
|
145
|
+
: undefined,
|
|
146
|
+
nextContentMax:
|
|
147
|
+
vertical && next ? previews.current.get(next.id)?.contentHeight?.(nextSize) : undefined,
|
|
136
148
|
};
|
|
137
149
|
};
|
|
138
150
|
const control = {
|
|
@@ -145,6 +157,11 @@ export function usePanelResize({
|
|
|
145
157
|
// Cancel the transition-restoration frame before starting a new transaction.
|
|
146
158
|
if (frame.current !== null) cancelAnimationFrame(frame.current);
|
|
147
159
|
frame.current = null;
|
|
160
|
+
const measured = snapshot(panel);
|
|
161
|
+
if (!(measured.firstSize > 0) || (measured.next && !(measured.nextSize > 0))) {
|
|
162
|
+
interrupted.current = true;
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
148
165
|
const root = scope ? (rootRef.current as unknown as HTMLElement) : null;
|
|
149
166
|
const shell = root?.closest<HTMLElement>(`[data-bloom-layout="${scope}"]`);
|
|
150
167
|
const targets = new Map<string, { node: HTMLElement; size: string; grow: string }>();
|
|
@@ -169,7 +186,7 @@ export function usePanelResize({
|
|
|
169
186
|
null)
|
|
170
187
|
: null,
|
|
171
188
|
targets,
|
|
172
|
-
...
|
|
189
|
+
...measured,
|
|
173
190
|
properties: new Map(),
|
|
174
191
|
};
|
|
175
192
|
root?.setAttribute('data-bloom-panel-resizing', vertical ? 'vertical' : 'horizontal');
|
|
@@ -177,10 +194,20 @@ export function usePanelResize({
|
|
|
177
194
|
resize(panel: AppShellPanelDefinition, requested: number) {
|
|
178
195
|
if (interrupted.current) return;
|
|
179
196
|
const active = drag.current?.id === panel.id ? drag.current : null;
|
|
180
|
-
const { first, next, firstSize, nextSize } =
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
197
|
+
const { first, next, firstSize, nextSize, firstContentMax, nextContentMax } =
|
|
198
|
+
active ?? snapshot(panel);
|
|
199
|
+
if (!(firstSize > 0) || (next && !(nextSize > 0))) return;
|
|
200
|
+
const firstLimit = panelContentResizeLimit(
|
|
201
|
+
first,
|
|
202
|
+
active?.values?.[first.id] ?? firstSize,
|
|
203
|
+
firstContentMax,
|
|
204
|
+
);
|
|
205
|
+
const nextLimit = next
|
|
206
|
+
? panelContentResizeLimit(next, active?.values?.[next.id] ?? nextSize, nextContentMax)
|
|
207
|
+
: undefined;
|
|
208
|
+
const values = nextLimit
|
|
209
|
+
? resizePanelPair(firstLimit, nextLimit, firstSize, nextSize, requested)
|
|
210
|
+
: { [panel.id]: clampPanelWidth(firstLimit, requested) };
|
|
184
211
|
if (!active) {
|
|
185
212
|
onCommit(values);
|
|
186
213
|
return;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useEffect, useRef, type RefObject } from 'react';
|
|
2
|
+
import { panelGeometryTransitions } from './panel-transitions';
|
|
2
3
|
import type { PanelRevealRequest, AppShellPanelDefinition } from './panel-layout-types';
|
|
3
|
-
import type {
|
|
4
|
+
import type { PanelFlexTrack } from './panel-layout';
|
|
4
5
|
|
|
5
6
|
/** Selection can hydrate at any time. Only a new explicit action may move the page. */
|
|
6
7
|
export function usePanelReveal({
|
|
@@ -17,7 +18,7 @@ export function usePanelReveal({
|
|
|
17
18
|
enabled: boolean;
|
|
18
19
|
scope: string | null;
|
|
19
20
|
panels: readonly AppShellPanelDefinition[];
|
|
20
|
-
tracks: readonly Pick<
|
|
21
|
+
tracks: readonly Pick<PanelFlexTrack, 'id' | 'visible'>[];
|
|
21
22
|
reducedMotion: boolean;
|
|
22
23
|
}) {
|
|
23
24
|
const consumed = useRef<PanelRevealRequest | undefined>(undefined);
|
|
@@ -45,13 +46,7 @@ export function usePanelReveal({
|
|
|
45
46
|
root.querySelectorAll<HTMLElement>(`[data-bloom-panel-owner="${scope}"]`),
|
|
46
47
|
);
|
|
47
48
|
if (envelope) owners.push(envelope);
|
|
48
|
-
const transitions = owners
|
|
49
|
-
(owner.getAnimations?.() ?? []).filter(
|
|
50
|
-
(animation) =>
|
|
51
|
-
'transitionProperty' in animation &&
|
|
52
|
-
(animation.pending || animation.playState === 'running'),
|
|
53
|
-
),
|
|
54
|
-
);
|
|
49
|
+
const transitions = panelGeometryTransitions(owners);
|
|
55
50
|
if (transitions.length) {
|
|
56
51
|
void Promise.allSettled(transitions.map((animation) => animation.finished)).then(
|
|
57
52
|
revealWhenSettled,
|