@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
|
@@ -9,11 +9,20 @@ import type {
|
|
|
9
9
|
|
|
10
10
|
import type { BloomIconComponent } from '../icons/icon-component';
|
|
11
11
|
import type { AccentTone } from '../theme/accent-colors';
|
|
12
|
+
import type { BloomSize } from '../appearance/types';
|
|
12
13
|
|
|
13
14
|
/** The colour an action takes while `active`: any accent tone but the neutral one. */
|
|
14
15
|
export type EngagementTone = Exclude<AccentTone, 'default'>;
|
|
15
16
|
|
|
16
17
|
export interface EngagementBarProps {
|
|
18
|
+
/** Vertical rails stack actions and put each count below its glyph. Default horizontal. */
|
|
19
|
+
orientation?: 'horizontal' | 'vertical';
|
|
20
|
+
/** Inherits BloomScope (default md). Large uses 28px glyphs for media rails. */
|
|
21
|
+
size?: BloomSize;
|
|
22
|
+
/** White resting glyphs/counts over media; active actions retain their semantic tone. */
|
|
23
|
+
tone?: 'default' | 'onImage';
|
|
24
|
+
/** Keep zero counts visible, including the first 0→1 roll. Default false. */
|
|
25
|
+
showZeroCounts?: boolean;
|
|
17
26
|
/** The leading actions, in reading order. */
|
|
18
27
|
children: ReactNode;
|
|
19
28
|
/** Actions pushed to the far edge of the row (save, translate, insights). */
|
|
@@ -39,7 +48,7 @@ export interface EngagementActionProps {
|
|
|
39
48
|
/** Required: the action is a glyph, so nothing else names it. */
|
|
40
49
|
accessibilityLabel: string;
|
|
41
50
|
accessibilityHint?: string;
|
|
42
|
-
/**
|
|
51
|
+
/** Beside the glyph, or below in a vertical bar; zero follows the bar's showZeroCounts. */
|
|
43
52
|
count?: number | null;
|
|
44
53
|
/**
|
|
45
54
|
* Whether the viewer has done this (liked, reposted, saved). Defined makes the
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { useCallback, useRef, type ComponentRef } from 'react';
|
|
2
|
+
import { Platform, type LayoutChangeEvent, type View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
type Size = { width: number; height: number };
|
|
5
|
+
|
|
6
|
+
/** Read size, not position: web resize entries already contain the measured box. */
|
|
7
|
+
export function useBorderBoxSize(onSize: (size: Size) => void) {
|
|
8
|
+
const callback = useRef(onSize);
|
|
9
|
+
callback.current = onSize;
|
|
10
|
+
const observer = useRef<ResizeObserver | null>(null);
|
|
11
|
+
const observe = Platform.OS === 'web' && typeof ResizeObserver !== 'undefined';
|
|
12
|
+
const ref = useCallback(
|
|
13
|
+
(view: ComponentRef<typeof View> | null) => {
|
|
14
|
+
observer.current?.disconnect();
|
|
15
|
+
observer.current = null;
|
|
16
|
+
if (!observe || !view) return;
|
|
17
|
+
const node = view as unknown as HTMLElement;
|
|
18
|
+
const current = new ResizeObserver((entries) => {
|
|
19
|
+
if (observer.current !== current) return;
|
|
20
|
+
const entry = entries.find((candidate) => candidate.target === node);
|
|
21
|
+
if (!entry) return;
|
|
22
|
+
const box = entry.borderBoxSize?.[0];
|
|
23
|
+
callback.current(
|
|
24
|
+
box
|
|
25
|
+
? { width: box.inlineSize, height: box.blockSize }
|
|
26
|
+
: { width: node.offsetWidth, height: node.offsetHeight },
|
|
27
|
+
);
|
|
28
|
+
});
|
|
29
|
+
observer.current = current;
|
|
30
|
+
current.observe(node, { box: 'border-box' });
|
|
31
|
+
},
|
|
32
|
+
[observe],
|
|
33
|
+
);
|
|
34
|
+
const onLayout = useCallback((event: LayoutChangeEvent) => {
|
|
35
|
+
callback.current(event.nativeEvent.layout);
|
|
36
|
+
}, []);
|
|
37
|
+
return { ref: observe ? ref : undefined, onLayout: observe ? undefined : onLayout };
|
|
38
|
+
}
|
package/src/icons/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// General glyphs use Remix Icon (Remix Icon License 1.0, `remix/LICENSE.txt`),
|
|
2
2
|
// one file per icon under `remix/`. The few brand marks Remix lacks come from
|
|
3
3
|
// Simple Icons (CC0 1.0) under `simple-icons/`. Old Bloom icon names map to
|
|
4
4
|
// their Remix equivalents in `remix-mapping.json`;
|
|
@@ -10,3 +10,4 @@ export { resolveIconSlot } from './render-icon';
|
|
|
10
10
|
export { sizes, useCommonSVGProps } from './shared';
|
|
11
11
|
export * from './remix';
|
|
12
12
|
export * from './simple-icons';
|
|
13
|
+
export * from './social';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { createSinglePathSVG } from '../TEMPLATE';
|
|
2
|
+
|
|
3
|
+
/** An outlined bookmark. */
|
|
4
|
+
export const BookmarkIcon = createSinglePathSVG({
|
|
5
|
+
path: 'M4 4.5C4 3.12 5.119 2 6.5 2h11C18.881 2 20 3.12 20 4.5v18.44l-8-5.71-8 5.71V4.5zM6.5 4c-.276 0-.5.22-.5.5v14.56l6-4.29 6 4.29V4.5c0-.28-.224-.5-.5-.5h-11z',
|
|
6
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { createSinglePathSVG } from '../TEMPLATE';
|
|
2
|
+
|
|
3
|
+
/** A rounded square with GIF lettering. */
|
|
4
|
+
export const GifAttachmentIcon = createSinglePathSVG({
|
|
5
|
+
path: 'M3 5.5C3 4.119 4.12 3 5.5 3h13C19.88 3 21 4.119 21 5.5v13c0 1.381-1.12 2.5-2.5 2.5h-13C4.12 21 3 19.881 3 18.5v-13zM5.5 5c-.28 0-.5.224-.5.5v13c0 .276.22.5.5.5h13c.28 0 .5-.224.5-.5v-13c0-.276-.22-.5-.5-.5h-13zM18 10.711V9.25h-3.74v5.5h1.44v-1.719h1.7V11.57h-1.7v-.859H18zM11.79 9.25h1.44v5.5h-1.44v-5.5zm-3.07 1.375c.34 0 .77.172 1.02.43l1.03-.86c-.51-.601-1.28-.945-2.05-.945C7.19 9.25 6 10.453 6 12s1.19 2.75 2.72 2.75c.85 0 1.54-.344 2.05-.945v-2.149H8.38v1.032H9.4v.515c-.17.086-.42.172-.68.172-.76 0-1.36-.602-1.36-1.375 0-.688.6-1.375 1.36-1.375z',
|
|
6
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createSinglePathSVG } from '../TEMPLATE';
|
|
2
|
+
|
|
3
|
+
/** A filled heart. */
|
|
4
|
+
export const LikeFillIcon = createSinglePathSVG({
|
|
5
|
+
path: 'M1.34375 7.03125L1.34375 7.04043C1.34374 7.54211 1.34372 8.26295 1.6611 9.15585C1.9795 10.0516 2.60026 11.0779 3.77681 12.2544C5.59273 14.0704 7.58105 15.5215 8.33387 16.0497C8.73525 16.3313 9.26573 16.3313 9.66705 16.0496C10.4197 15.5213 12.4074 14.0703 14.2232 12.2544C15.3997 11.0779 16.0205 10.0516 16.3389 9.15585C16.6563 8.26296 16.6563 7.54211 16.6562 7.04043V7.03125C16.6562 4.73466 15.0849 2.75 12.6562 2.75C11.5214 2.75 10.6433 3.28244 9.99228 3.95476C9.59009 4.37012 9.26356 4.8491 9 5.31533C8.73645 4.8491 8.40991 4.37012 8.00772 3.95476C7.35672 3.28244 6.47861 2.75 5.34375 2.75C2.9151 2.75 1.34375 4.73466 1.34375 7.03125Z',
|
|
6
|
+
viewBox: '0 0 18 18',
|
|
7
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createSinglePathSVG } from '../TEMPLATE';
|
|
2
|
+
|
|
3
|
+
/** An outlined heart. */
|
|
4
|
+
export const LikeIcon = createSinglePathSVG({
|
|
5
|
+
path: 'M1.34375 7.53125L1.34375 7.54043C1.34374 8.04211 1.34372 8.76295 1.6611 9.65585C1.9795 10.5516 2.60026 11.5779 3.77681 12.7544C5.59273 14.5704 7.58105 16.0215 8.33387 16.5497C8.73525 16.8313 9.26573 16.8313 9.66705 16.5496C10.4197 16.0213 12.4074 14.5703 14.2232 12.7544C15.3997 11.5779 16.0205 10.5516 16.3389 9.65585C16.6563 8.76296 16.6563 8.04211 16.6562 7.54043V7.53125C16.6562 5.23466 15.0849 3.25 12.6562 3.25C11.5214 3.25 10.6433 3.78244 9.99228 4.45476C9.59009 4.87012 9.26356 5.3491 9 5.81533C8.73645 5.3491 8.40991 4.87012 8.00772 4.45476C7.35672 3.78244 6.47861 3.25 5.34375 3.25C2.9151 3.25 1.34375 5.23466 1.34375 7.53125Z',
|
|
6
|
+
viewBox: '0 0 18 18',
|
|
7
|
+
strokeWidth: 1.8,
|
|
8
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { createSinglePathSVG } from '../TEMPLATE';
|
|
2
|
+
|
|
3
|
+
/** Two overlapping photo and video cards. */
|
|
4
|
+
export const MediaAttachmentIcon = createSinglePathSVG({
|
|
5
|
+
path: 'm18.509 14.757-4.285-2.474a.857.857 0 0 0-1.286.743v4.948a.857.857 0 0 0 1.286.742l4.285-2.474a.857.857 0 0 0 0-1.485ZM5.225 3.977a1.25 1.25 0 1 0 1.25 1.25 1.25 1.25 0 0 0-1.25-1.25ZM19.5 7.5h-3v-3a4.004 4.004 0 0 0-4-4h-8a4.004 4.004 0 0 0-4 4v8a4.004 4.004 0 0 0 4 4h3v3a4.004 4.004 0 0 0 4 4h8a4.004 4.004 0 0 0 4-4v-8a4.004 4.004 0 0 0-4-4Zm-12 7h-3a1.997 1.997 0 0 1-1.882-1.349l2.607-2.607L7.5 12.819Zm.23-4.28L6.41 8.9a1.679 1.679 0 0 0-2.37 0L2.5 10.44V4.5a2.003 2.003 0 0 1 2-2h8a2.003 2.003 0 0 1 2 2v3h-3a3.992 3.992 0 0 0-3.77 2.72ZM21.5 19.5a2.003 2.003 0 0 1-2 2h-8a2.003 2.003 0 0 1-2-2v-8a2.003 2.003 0 0 1 2-2h8a2.003 2.003 0 0 1 2 2Z',
|
|
6
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createSinglePathSVG } from '../TEMPLATE';
|
|
2
|
+
|
|
3
|
+
/** A rounded reply bubble with a trailing tail. */
|
|
4
|
+
export const ReplyIcon = createSinglePathSVG({
|
|
5
|
+
path: 'M15.376 13.2177L16.2861 16.7955L12.7106 15.8848C12.6781 15.8848 12.6131 15.8848 12.5806 15.8848C11.3779 16.5678 9.94767 16.8931 8.41995 16.7955C4.94194 16.5353 2.08152 13.7381 1.72397 10.2578C1.2689 5.63919 5.13697 1.76863 9.75264 2.22399C13.2307 2.58177 16.0261 5.41151 16.2861 8.92429C16.4161 10.453 16.0586 11.8841 15.376 13.0876C15.376 13.1526 15.376 13.1852 15.376 13.2177Z',
|
|
6
|
+
viewBox: '0 0 18 18',
|
|
7
|
+
strokeWidth: 1.5,
|
|
8
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { createSinglePathSVG } from '../TEMPLATE';
|
|
2
|
+
|
|
3
|
+
/** Two opposing arrows for reposting. */
|
|
4
|
+
export const RepostIcon = createSinglePathSVG({
|
|
5
|
+
path: 'M4.5 3.88l4.432 4.14-1.364 1.46L5.5 7.55V16c0 1.1.896 2 2 2H13v2H7.5c-2.209 0-4-1.79-4-4V7.55L1.432 9.48.068 8.02 4.5 3.88zM16.5 6H11V4h5.5c2.209 0 4 1.79 4 4v8.45l2.068-1.93 1.364 1.46-4.432 4.14-4.432-4.14 1.364-1.46 2.068 1.93V8c0-1.1-.896-2-2-2z',
|
|
6
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { createSinglePathSVG } from '../TEMPLATE';
|
|
2
|
+
|
|
3
|
+
/** An upward arrow above an open tray. */
|
|
4
|
+
export const ShareIcon = createSinglePathSVG({
|
|
5
|
+
path: 'M12 2.59l5.7 5.7-1.41 1.42L13 6.41V16h-2V6.41l-3.3 3.3-1.41-1.42L12 2.59zM21 15l-.02 3.51c0 1.38-1.12 2.49-2.5 2.49H5.5C4.11 21 3 19.88 3 18.5V15h2v3.5c0 .28.22.5.5.5h12.98c.28 0 .5-.22.5-.5L19 15h2z',
|
|
6
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { MediaAttachmentIcon } from './MediaAttachmentIcon';
|
|
2
|
+
export { GifAttachmentIcon } from './GifAttachmentIcon';
|
|
3
|
+
export { ReplyIcon } from './ReplyIcon';
|
|
4
|
+
export { RepostIcon } from './RepostIcon';
|
|
5
|
+
export { LikeIcon } from './LikeIcon';
|
|
6
|
+
export { LikeFillIcon } from './LikeFillIcon';
|
|
7
|
+
export { BookmarkIcon } from './BookmarkIcon';
|
|
8
|
+
export { BookmarkFillIcon } from './BookmarkFillIcon';
|
|
9
|
+
export { ShareIcon } from './ShareIcon';
|
package/src/index.ts
CHANGED
|
@@ -663,6 +663,8 @@ export {
|
|
|
663
663
|
AttachmentMenu,
|
|
664
664
|
ATTACHMENT_MENU_ITEMS,
|
|
665
665
|
ChatComposer,
|
|
666
|
+
CompactComposer,
|
|
667
|
+
acceptsComposerText,
|
|
666
668
|
ComposerAttachmentStrip,
|
|
667
669
|
ComposerBanner,
|
|
668
670
|
ComposerIconButton,
|
|
@@ -687,6 +689,9 @@ export type {
|
|
|
687
689
|
ChatComposerIcon,
|
|
688
690
|
ChatComposerLabels,
|
|
689
691
|
ChatComposerProps,
|
|
692
|
+
CompactComposerProps,
|
|
693
|
+
CompactComposerLabels,
|
|
694
|
+
CompactComposerAction,
|
|
690
695
|
ChatComposerSendOn,
|
|
691
696
|
ChatComposerSuggestion,
|
|
692
697
|
ComposerAttachmentStripProps,
|
package/src/index.web.ts
CHANGED
|
@@ -668,6 +668,8 @@ export {
|
|
|
668
668
|
AttachmentMenu,
|
|
669
669
|
ATTACHMENT_MENU_ITEMS,
|
|
670
670
|
ChatComposer,
|
|
671
|
+
CompactComposer,
|
|
672
|
+
acceptsComposerText,
|
|
671
673
|
ComposerAttachmentStrip,
|
|
672
674
|
ComposerBanner,
|
|
673
675
|
ComposerIconButton,
|
|
@@ -692,6 +694,9 @@ export type {
|
|
|
692
694
|
ChatComposerIcon,
|
|
693
695
|
ChatComposerLabels,
|
|
694
696
|
ChatComposerProps,
|
|
697
|
+
CompactComposerProps,
|
|
698
|
+
CompactComposerLabels,
|
|
699
|
+
CompactComposerAction,
|
|
695
700
|
ChatComposerSendOn,
|
|
696
701
|
ChatComposerSuggestion,
|
|
697
702
|
ComposerAttachmentStripProps,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveScrollElement } from '../scroll/scrollable.web';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useLayoutEffect, useRef, useState } from 'react';
|
|
3
|
+
import { ServerStyleSheet } from '../styles/ServerStyleSheet';
|
|
4
4
|
import { ScrollAreaBar } from './ScrollAreaBar.web';
|
|
5
5
|
import type { ScrollBarProps } from './types';
|
|
6
6
|
|
|
@@ -10,9 +10,26 @@ const CSS = `
|
|
|
10
10
|
[data-bloom-scroll-area] { scrollbar-width: none; }
|
|
11
11
|
[data-bloom-scroll-area]::-webkit-scrollbar { display: none; }
|
|
12
12
|
`;
|
|
13
|
-
const owners = new WeakMap<HTMLElement, number>();
|
|
13
|
+
const owners = new WeakMap<HTMLElement, { count: number; original: string | null }>();
|
|
14
14
|
const THICKNESS = { sm: 4, md: 6 } as const;
|
|
15
15
|
|
|
16
|
+
function claimIndicator(scroller: HTMLElement) {
|
|
17
|
+
const claim = owners.get(scroller) ?? {
|
|
18
|
+
count: 0,
|
|
19
|
+
original: scroller.getAttribute('data-bloom-scroll-area'),
|
|
20
|
+
};
|
|
21
|
+
claim.count += 1;
|
|
22
|
+
owners.set(scroller, claim);
|
|
23
|
+
scroller.setAttribute('data-bloom-scroll-area', '');
|
|
24
|
+
return () => {
|
|
25
|
+
claim.count -= 1;
|
|
26
|
+
if (claim.count > 0) return;
|
|
27
|
+
owners.delete(scroller);
|
|
28
|
+
if (claim.original === null) scroller.removeAttribute('data-bloom-scroll-area');
|
|
29
|
+
else scroller.setAttribute('data-bloom-scroll-area', claim.original);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
16
33
|
/**
|
|
17
34
|
* Bloom's scrollbar over a scroller of your own: themed, compact, drawn OVER the content (so it
|
|
18
35
|
* takes no room and nothing moves when it appears), and hidden when it is not needed. It hides
|
|
@@ -31,46 +48,63 @@ export function ScrollBar({
|
|
|
31
48
|
offset,
|
|
32
49
|
}: ScrollBarProps) {
|
|
33
50
|
const [scroller, setScroller] = useState<HTMLElement | null>(null);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
scroller.setAttribute('data-bloom-scroll-area', '');
|
|
49
|
-
return () => {
|
|
50
|
-
const remaining = (owners.get(scroller) ?? 1) - 1;
|
|
51
|
-
if (remaining > 0) owners.set(scroller, remaining);
|
|
52
|
-
else {
|
|
53
|
-
owners.delete(scroller);
|
|
54
|
-
scroller.removeAttribute('data-bloom-scroll-area');
|
|
51
|
+
const claim = useRef<{ node: HTMLElement; release(): void } | null>(null);
|
|
52
|
+
const resolveOwner = () =>
|
|
53
|
+
target === 'document'
|
|
54
|
+
? ((document.scrollingElement ?? document.documentElement) as HTMLElement)
|
|
55
|
+
: resolveScrollElement(target);
|
|
56
|
+
// Claim the current owner before paint, including a replaced ref. Waiting for
|
|
57
|
+
// passive effects exposed the system bar between document and panel modes.
|
|
58
|
+
useLayoutEffect(() => {
|
|
59
|
+
let cancelled = false;
|
|
60
|
+
const attach = () => {
|
|
61
|
+
const node = resolveOwner();
|
|
62
|
+
if (claim.current?.node !== node) {
|
|
63
|
+
claim.current?.release();
|
|
64
|
+
claim.current = node ? { node, release: claimIndicator(node) } : null;
|
|
55
65
|
}
|
|
66
|
+
if (scroller !== node) setScroller(node);
|
|
67
|
+
return node;
|
|
56
68
|
};
|
|
57
|
-
|
|
69
|
+
if (!attach()) {
|
|
70
|
+
// An ancestor ref attaches after child layout effects. Resolve once at
|
|
71
|
+
// the end of this commit, before paint, without a passive-render round trip.
|
|
72
|
+
queueMicrotask(() => {
|
|
73
|
+
if (!cancelled) attach();
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return () => {
|
|
77
|
+
cancelled = true;
|
|
78
|
+
};
|
|
79
|
+
});
|
|
80
|
+
useLayoutEffect(
|
|
81
|
+
() => () => {
|
|
82
|
+
claim.current?.release();
|
|
83
|
+
claim.current = null;
|
|
84
|
+
},
|
|
85
|
+
[],
|
|
86
|
+
);
|
|
58
87
|
|
|
59
88
|
return (
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
89
|
+
<>
|
|
90
|
+
<ServerStyleSheet id={STYLE_ID} css={CSS} />
|
|
91
|
+
{scrollbar === 'never' ? null : (
|
|
92
|
+
<ScrollAreaBar
|
|
93
|
+
scroller={scroller}
|
|
94
|
+
area={
|
|
95
|
+
target === 'document' && typeof document !== 'undefined'
|
|
96
|
+
? document.documentElement
|
|
97
|
+
: (scroller?.parentElement ?? null)
|
|
98
|
+
}
|
|
99
|
+
viewport={target === 'document'}
|
|
100
|
+
offset={offset}
|
|
101
|
+
horizontal={Boolean(horizontal)}
|
|
102
|
+
side={side}
|
|
103
|
+
mode={scrollbar}
|
|
104
|
+
thickness={THICKNESS[size]}
|
|
105
|
+
insets={insets}
|
|
106
|
+
/>
|
|
107
|
+
)}
|
|
108
|
+
</>
|
|
75
109
|
);
|
|
76
110
|
}
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
*/
|
|
60
60
|
import {
|
|
61
61
|
createContext,
|
|
62
|
+
useCallback,
|
|
62
63
|
useContext,
|
|
63
64
|
useId,
|
|
64
65
|
useMemo,
|
|
@@ -178,3 +179,19 @@ export function useClaimBottomEdge(height: number): void {
|
|
|
178
179
|
return () => store.release(id);
|
|
179
180
|
}, [store, id, height]);
|
|
180
181
|
}
|
|
182
|
+
|
|
183
|
+
/** Publish a naturally laid-out host without using its height to lay it out again. */
|
|
184
|
+
export function useMeasuredBottomEdgeClaim(active: boolean): (height: number) => void {
|
|
185
|
+
const store = useContext(BottomEdgeContext);
|
|
186
|
+
const id = useId();
|
|
187
|
+
useIsomorphicLayoutEffect(() => {
|
|
188
|
+
if (!active) store?.release(id);
|
|
189
|
+
return () => store?.release(id);
|
|
190
|
+
}, [active, store, id]);
|
|
191
|
+
return useCallback(
|
|
192
|
+
(height: number) => {
|
|
193
|
+
if (active && Number.isFinite(height)) store?.claim(id, Math.max(0, height));
|
|
194
|
+
},
|
|
195
|
+
[active, store, id],
|
|
196
|
+
);
|
|
197
|
+
}
|
|
@@ -6,6 +6,8 @@ export interface ScrollMetrics {
|
|
|
6
6
|
scrollY: SharedValue<number>;
|
|
7
7
|
contentHeight: SharedValue<number>;
|
|
8
8
|
viewportHeight: SharedValue<number>;
|
|
9
|
+
/** Natural content extent, including viewport padding; -1 when unknown. */
|
|
10
|
+
intrinsicContentHeight?: SharedValue<number>;
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
/** Internal scope boundary; overlay screens must not follow the page beneath them. */
|
package/src/layout/types.ts
CHANGED
|
@@ -49,8 +49,8 @@ export interface ScrollBarProps {
|
|
|
49
49
|
target: RefObject<unknown> | 'document';
|
|
50
50
|
/** Cross-axis clearance for persistent viewport chrome (document bars). */
|
|
51
51
|
offset?: number;
|
|
52
|
-
/** When the bar shows. Default `'scroll'
|
|
53
|
-
scrollbar?:
|
|
52
|
+
/** When the bar shows. Default `'scroll'`; `'never'` hides both indicators on web. */
|
|
53
|
+
scrollbar?: ScrollAreaScrollbar;
|
|
54
54
|
/** The bar's thickness: `sm` 4px (default) or `md` 6px. */
|
|
55
55
|
size?: 'sm' | 'md';
|
|
56
56
|
/** Which inline edge a vertical bar sits on. Default `'end'`. Ignored when `horizontal`. */
|
package/src/list/VirtualList.tsx
CHANGED
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
import * as React from 'react';
|
|
24
24
|
import Animated from 'react-native-reanimated';
|
|
25
25
|
import { useScreenScroll } from '../screen/use-screen-scroll';
|
|
26
|
+
import { useIntrinsicContentHeight } from '../screen/use-intrinsic-content-height';
|
|
27
|
+
import { useScreenViewport } from '../screen/context';
|
|
26
28
|
import { mergeRefs } from '../hooks/merge-refs';
|
|
27
29
|
import { useHeaderDockInset } from '../layout/header-dock';
|
|
28
30
|
import { useNativeScrollIndicator } from '../layout/use-native-scroll-indicator';
|
|
@@ -117,6 +119,8 @@ function VirtualListNativeInner<T>(
|
|
|
117
119
|
// Optional: a list must work outside a provider, with the platform's spinner.
|
|
118
120
|
const primary = React.useContext(BloomThemeContext)?.theme.colors.primary;
|
|
119
121
|
const indicator = useNativeScrollIndicator(scrollbar);
|
|
122
|
+
const publishIntrinsic = useIntrinsicContentHeight();
|
|
123
|
+
const viewport = useScreenViewport();
|
|
120
124
|
const stickyHeaderOffset = useHeaderDockInset();
|
|
121
125
|
const header = renderSlot(ListHeaderComponent);
|
|
122
126
|
|
|
@@ -158,6 +162,20 @@ function VirtualListNativeInner<T>(
|
|
|
158
162
|
onScroll: props.screenBinding?.onScroll,
|
|
159
163
|
scrollEventThrottle: 16,
|
|
160
164
|
contentContainerStyle,
|
|
165
|
+
onContentSizeChange: publishIntrinsic
|
|
166
|
+
? (_width, height) => {
|
|
167
|
+
const flat = StyleSheet.flatten(contentContainerStyle);
|
|
168
|
+
publishIntrinsic(flat?.flexGrow || flat?.flex || flat?.minHeight ? -1 : height);
|
|
169
|
+
if (viewport?.active) viewport.metrics.contentHeight.value = height;
|
|
170
|
+
}
|
|
171
|
+
: undefined,
|
|
172
|
+
onLayout:
|
|
173
|
+
publishIntrinsic && viewport
|
|
174
|
+
? (event) => {
|
|
175
|
+
if (viewport.active)
|
|
176
|
+
viewport.metrics.viewportHeight.value = event.nativeEvent.layout.height;
|
|
177
|
+
}
|
|
178
|
+
: undefined,
|
|
161
179
|
numColumns,
|
|
162
180
|
onEndReached: onEndReached ? () => onEndReached() : undefined,
|
|
163
181
|
onEndReachedThreshold,
|
|
@@ -43,6 +43,7 @@ import {
|
|
|
43
43
|
} from '../scroll/context';
|
|
44
44
|
import { deriveScrollKey, type ScrollOffsetStore } from '../scroll/store';
|
|
45
45
|
import { useScreenViewport } from '../screen/context';
|
|
46
|
+
import { useIntrinsicContentHeight } from '../screen/use-intrinsic-content-height';
|
|
46
47
|
import { useScreenWindowScroll } from '../screen/use-screen-window-scroll';
|
|
47
48
|
import { useDocumentEndReached } from '../screen/use-document-end-reached';
|
|
48
49
|
import { DEFAULT_END_REACHED_THRESHOLD } from '../screen/use-end-reached';
|
|
@@ -53,9 +54,16 @@ import type { CSSProperties } from 'react';
|
|
|
53
54
|
import { StyleSheet, View } from 'react-native';
|
|
54
55
|
import {
|
|
55
56
|
defaultRangeExtractor,
|
|
57
|
+
elementScroll,
|
|
58
|
+
observeElementOffset,
|
|
59
|
+
observeElementRect,
|
|
60
|
+
observeWindowOffset,
|
|
61
|
+
observeWindowRect,
|
|
56
62
|
useVirtualizer,
|
|
57
|
-
|
|
63
|
+
windowScroll,
|
|
58
64
|
type Range,
|
|
65
|
+
type ReactVirtualizer,
|
|
66
|
+
type ReactVirtualizerOptions,
|
|
59
67
|
} from '@tanstack/react-virtual';
|
|
60
68
|
|
|
61
69
|
import type { VirtualListHandle, VirtualListProps, VirtualListSlot } from './types';
|
|
@@ -81,6 +89,28 @@ const END_MARKER_STYLE: CSSProperties = {
|
|
|
81
89
|
|
|
82
90
|
const NO_ROWS: readonly number[] = [];
|
|
83
91
|
|
|
92
|
+
type ScrollOwner = HTMLElement | Window;
|
|
93
|
+
type OwnerOptions = ReactVirtualizerOptions<ScrollOwner, HTMLDivElement>;
|
|
94
|
+
type OwnerAdapters = Pick<
|
|
95
|
+
OwnerOptions,
|
|
96
|
+
'observeElementRect' | 'observeElementOffset' | 'scrollToFn'
|
|
97
|
+
>;
|
|
98
|
+
// The core supports either owner. The convenience hooks only narrow their
|
|
99
|
+
// defaults; supply the matching adapters while retaining one measurement model.
|
|
100
|
+
const useOwnerVirtualizer = useVirtualizer as (
|
|
101
|
+
options: OwnerOptions,
|
|
102
|
+
) => ReactVirtualizer<ScrollOwner, HTMLDivElement>;
|
|
103
|
+
const documentAdapters = {
|
|
104
|
+
observeElementRect: observeWindowRect,
|
|
105
|
+
observeElementOffset: observeWindowOffset,
|
|
106
|
+
scrollToFn: windowScroll,
|
|
107
|
+
} as OwnerAdapters;
|
|
108
|
+
const elementAdapters = {
|
|
109
|
+
observeElementRect,
|
|
110
|
+
observeElementOffset,
|
|
111
|
+
scrollToFn: elementScroll,
|
|
112
|
+
} as OwnerAdapters;
|
|
113
|
+
|
|
84
114
|
/** One grid row: its items, each with the columns it spans. */
|
|
85
115
|
type GridRow = { index: number; span: number }[];
|
|
86
116
|
|
|
@@ -215,7 +245,13 @@ function VirtualListWebInner<T>(
|
|
|
215
245
|
// `scrollMargin` is its offset from the top of the scrolled content
|
|
216
246
|
// (everything above the rows), so virtual offsets map to scroll offsets.
|
|
217
247
|
const wrapperRef = React.useRef<HTMLDivElement | null>(null);
|
|
248
|
+
const intrinsicRef = React.useRef<HTMLDivElement | null>(null);
|
|
249
|
+
const publishIntrinsic = useIntrinsicContentHeight();
|
|
218
250
|
const [scrollMargin, setScrollMargin] = React.useState(0);
|
|
251
|
+
const measureIntrinsic = React.useCallback(() => {
|
|
252
|
+
const content = intrinsicRef.current;
|
|
253
|
+
if (content) publishIntrinsic?.(content.offsetHeight, content);
|
|
254
|
+
}, [publishIntrinsic]);
|
|
219
255
|
|
|
220
256
|
const measureScrollMargin = React.useCallback(() => {
|
|
221
257
|
const node = wrapperRef.current;
|
|
@@ -224,7 +260,7 @@ function VirtualListWebInner<T>(
|
|
|
224
260
|
// No box: a retained screen at `display: none`. Its reading would be the
|
|
225
261
|
// visible screen's scroll offset, stored as this list's origin.
|
|
226
262
|
if (rect.width === 0 && rect.height === 0) return;
|
|
227
|
-
const owner = scroller
|
|
263
|
+
const owner = (scroller?.current as HTMLElement | null | undefined) ?? null;
|
|
228
264
|
const top = owner
|
|
229
265
|
? rect.top - owner.getBoundingClientRect().top - owner.clientTop + owner.scrollTop
|
|
230
266
|
: rect.top + window.scrollY;
|
|
@@ -236,7 +272,8 @@ function VirtualListWebInner<T>(
|
|
|
236
272
|
// changes (content above/below the window shifts the wrapper).
|
|
237
273
|
React.useLayoutEffect(() => {
|
|
238
274
|
measureScrollMargin();
|
|
239
|
-
|
|
275
|
+
measureIntrinsic();
|
|
276
|
+
}, [measureScrollMargin, measureIntrinsic, count]);
|
|
240
277
|
|
|
241
278
|
// Seed before the first virtual range and before scroll restoration runs.
|
|
242
279
|
// The outer boundary remounts only when restoration identity changes.
|
|
@@ -263,21 +300,24 @@ function VirtualListWebInner<T>(
|
|
|
263
300
|
rangeExtractor,
|
|
264
301
|
getItemKey: keyExtractor ? (row: number) => itemKey(firstItemOf(row)) : undefined,
|
|
265
302
|
};
|
|
266
|
-
//
|
|
267
|
-
//
|
|
268
|
-
|
|
269
|
-
// A null owner disconnects its observers while preserving the layout model.
|
|
270
|
-
const windowVirtualizer = useWindowVirtualizer<HTMLDivElement>({
|
|
271
|
-
...options,
|
|
272
|
-
enabled: !scroller,
|
|
273
|
-
getScrollElement: () => (active && !scroller && typeof window !== 'undefined' ? window : null),
|
|
274
|
-
});
|
|
275
|
-
const elementVirtualizer = useVirtualizer<HTMLElement, HTMLDivElement>({
|
|
303
|
+
// Owner changes and inactivity detach observers, not the measurement model.
|
|
304
|
+
// Disabling a second model discarded offscreen sizes on every Deck switch.
|
|
305
|
+
const virtualizer = useOwnerVirtualizer({
|
|
276
306
|
...options,
|
|
277
|
-
|
|
278
|
-
getScrollElement: () =>
|
|
307
|
+
...(scroller ? elementAdapters : documentAdapters),
|
|
308
|
+
getScrollElement: () =>
|
|
309
|
+
active && typeof window !== 'undefined'
|
|
310
|
+
? scroller
|
|
311
|
+
? ((scroller.current as HTMLElement | null) ?? null)
|
|
312
|
+
: window
|
|
313
|
+
: null,
|
|
314
|
+
initialOffset: () =>
|
|
315
|
+
scroller
|
|
316
|
+
? ((scroller.current as HTMLElement | null)?.scrollTop ?? 0)
|
|
317
|
+
: typeof window !== 'undefined'
|
|
318
|
+
? window.scrollY
|
|
319
|
+
: 0,
|
|
279
320
|
});
|
|
280
|
-
const virtualizer = scroller ? elementVirtualizer : windowVirtualizer;
|
|
281
321
|
React.useLayoutEffect(
|
|
282
322
|
() => () => {
|
|
283
323
|
if (!measurementRestoration) return;
|
|
@@ -300,12 +340,19 @@ function VirtualListWebInner<T>(
|
|
|
300
340
|
React.useEffect(() => {
|
|
301
341
|
if (typeof window === 'undefined') return;
|
|
302
342
|
measureScrollMargin();
|
|
343
|
+
measureIntrinsic();
|
|
303
344
|
window.addEventListener('resize', measureScrollMargin);
|
|
304
345
|
// The wrapper gains its box when a retained screen is shown again, and moves
|
|
305
346
|
// without resizing when content above it grows (a header, an embed).
|
|
306
347
|
const observer =
|
|
307
|
-
typeof ResizeObserver === 'undefined'
|
|
348
|
+
typeof ResizeObserver === 'undefined'
|
|
349
|
+
? null
|
|
350
|
+
: new ResizeObserver((entries) => {
|
|
351
|
+
measureScrollMargin();
|
|
352
|
+
if (entries.some((entry) => entry.target === intrinsicRef.current)) measureIntrinsic();
|
|
353
|
+
});
|
|
308
354
|
const wrapper = wrapperRef.current;
|
|
355
|
+
if (publishIntrinsic && intrinsicRef.current) observer?.observe(intrinsicRef.current);
|
|
309
356
|
if (wrapper) observer?.observe(wrapper);
|
|
310
357
|
if (wrapper?.parentElement) observer?.observe(wrapper.parentElement);
|
|
311
358
|
observer?.observe((scroller ? scrollElement : null) ?? document.body);
|
|
@@ -313,7 +360,7 @@ function VirtualListWebInner<T>(
|
|
|
313
360
|
window.removeEventListener('resize', measureScrollMargin);
|
|
314
361
|
observer?.disconnect();
|
|
315
362
|
};
|
|
316
|
-
}, [measureScrollMargin, scroller, scrollElement, hasRows]);
|
|
363
|
+
}, [measureScrollMargin, measureIntrinsic, publishIntrinsic, scroller, scrollElement, hasRows]);
|
|
317
364
|
|
|
318
365
|
React.useImperativeHandle(ref, () => {
|
|
319
366
|
const scrollOwner = (top: number, animated?: boolean) => {
|
|
@@ -333,8 +380,8 @@ function VirtualListWebInner<T>(
|
|
|
333
380
|
// the ref only fires on real mount/unmount.
|
|
334
381
|
const measureElement = virtualizer.measureElement;
|
|
335
382
|
const getRowRef = React.useMemo(() => {
|
|
336
|
-
//
|
|
337
|
-
//
|
|
383
|
+
// The model and row refs survive owner changes; only activation reattaches
|
|
384
|
+
// measurements whose boxes were unavailable while the screen was hidden.
|
|
338
385
|
const cache = new Map<string, (node: HTMLDivElement | null) => void>();
|
|
339
386
|
return (key: string) => {
|
|
340
387
|
const existing = cache.get(key);
|
|
@@ -366,7 +413,7 @@ function VirtualListWebInner<T>(
|
|
|
366
413
|
if (count === 0) {
|
|
367
414
|
return (
|
|
368
415
|
<View style={[{ minHeight: 0 }, flatStyle]} testID={testID}>
|
|
369
|
-
<div style={flatContentStyle}>
|
|
416
|
+
<div ref={intrinsicRef} style={flatContentStyle}>
|
|
370
417
|
{header}
|
|
371
418
|
{renderSlot(ListEmptyComponent)}
|
|
372
419
|
{footer}
|
|
@@ -395,7 +442,7 @@ function VirtualListWebInner<T>(
|
|
|
395
442
|
{/* Like FlatList's, the content container wraps the header, the rows and
|
|
396
443
|
the footer, so its padding (a Screen's header and bar clearance) clears
|
|
397
444
|
the whole list rather than the rows alone. */}
|
|
398
|
-
<div style={flatContentStyle}>
|
|
445
|
+
<div ref={intrinsicRef} style={flatContentStyle}>
|
|
399
446
|
{header}
|
|
400
447
|
{/* A column, so a sticky row's top margin never collapses through it. */}
|
|
401
448
|
<div
|
|
@@ -303,6 +303,14 @@ const CARD_FORM_MESSAGES: Translations['CARD_FORM_MESSAGES'] = {
|
|
|
303
303
|
selectCountry: 'اختر دولة',
|
|
304
304
|
};
|
|
305
305
|
|
|
306
|
+
const COMPACT_COMPOSER_MESSAGES: Translations['COMPACT_COMPOSER_MESSAGES'] = {
|
|
307
|
+
input: 'اكتب رسالة',
|
|
308
|
+
expand: 'فتح المحرر الكامل',
|
|
309
|
+
characterCount: 'الأحرف',
|
|
310
|
+
characterCountValue: (count, max) => `${count} من ${max} حرفًا`,
|
|
311
|
+
limitHint: (max) => `تسمح الرسائل المختصرة بـ ${max} حرفًا. وسّع المحرر لكتابة المزيد.`,
|
|
312
|
+
};
|
|
313
|
+
|
|
306
314
|
const CHAT_COMPOSER_MESSAGES: Translations['CHAT_COMPOSER_MESSAGES'] = {
|
|
307
315
|
attach: 'إرفاق',
|
|
308
316
|
emoji: 'رموز تعبيرية',
|
|
@@ -3466,6 +3474,7 @@ const translations: Translations = {
|
|
|
3466
3474
|
SIDEBAR_MESSAGES,
|
|
3467
3475
|
FILE_SIZE_UNITS,
|
|
3468
3476
|
CARD_FORM_MESSAGES,
|
|
3477
|
+
COMPACT_COMPOSER_MESSAGES,
|
|
3469
3478
|
CHAT_COMPOSER_MESSAGES,
|
|
3470
3479
|
MAIL_COMPOSE_MESSAGES,
|
|
3471
3480
|
MEDIA_PLAYER_MESSAGES,
|