@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.
Files changed (740) hide show
  1. package/docs/adoption-matrix.mdx +19 -19
  2. package/docs/app-shell.mdx +18 -11
  3. package/docs/bottom-bar.mdx +57 -1
  4. package/docs/button.mdx +19 -0
  5. package/docs/chat-composer.mdx +59 -1
  6. package/docs/compose-layouts.mdx +114 -2
  7. package/docs/dialog.mdx +7 -0
  8. package/docs/engagement-bar.mdx +9 -0
  9. package/docs/icons.mdx +22 -0
  10. package/docs/layout.mdx +1 -1
  11. package/docs/list.mdx +4 -3
  12. package/docs/page-header.mdx +7 -0
  13. package/docs/public-parts.mdx +14 -3
  14. package/docs/screen.mdx +4 -0
  15. package/docs/scroll.mdx +6 -3
  16. package/docs/sidebar.mdx +26 -5
  17. package/docs/tab-pager.mdx +10 -0
  18. package/docs/task-catalog.json +1 -1
  19. package/docs/task-catalog.mdx +1 -1
  20. package/lib/commonjs/app-shell/AppShell.js +3 -3
  21. package/lib/commonjs/app-shell/AppShell.js.map +1 -1
  22. package/lib/commonjs/app-shell/AppShellEngine.js +2 -1
  23. package/lib/commonjs/app-shell/AppShellEngine.js.map +1 -1
  24. package/lib/commonjs/app-shell/AppShellPanelLayout.js +345 -172
  25. package/lib/commonjs/app-shell/AppShellPanelLayout.js.map +1 -1
  26. package/lib/commonjs/app-shell/RetainedPanelLayout.js +6 -0
  27. package/lib/commonjs/app-shell/RetainedPanelLayout.js.map +1 -1
  28. package/lib/commonjs/app-shell/panel-layout-css.js +20 -13
  29. package/lib/commonjs/app-shell/panel-layout-css.js.map +1 -1
  30. package/lib/commonjs/app-shell/panel-layout.js +33 -185
  31. package/lib/commonjs/app-shell/panel-layout.js.map +1 -1
  32. package/lib/commonjs/app-shell/panel-motion.js +13 -36
  33. package/lib/commonjs/app-shell/panel-motion.js.map +1 -1
  34. package/lib/commonjs/app-shell/panel-transitions.js +26 -0
  35. package/lib/commonjs/app-shell/panel-transitions.js.map +1 -0
  36. package/lib/commonjs/app-shell/shell-layout-css.js +2 -2
  37. package/lib/commonjs/app-shell/shell-layout-css.js.map +1 -1
  38. package/lib/commonjs/app-shell/use-panel-exit-completion.js +100 -0
  39. package/lib/commonjs/app-shell/use-panel-exit-completion.js.map +1 -0
  40. package/lib/commonjs/app-shell/use-panel-resize.js +21 -7
  41. package/lib/commonjs/app-shell/use-panel-resize.js.map +1 -1
  42. package/lib/commonjs/app-shell/use-panel-reveal.js +2 -1
  43. package/lib/commonjs/app-shell/use-panel-reveal.js.map +1 -1
  44. package/lib/commonjs/bottom-bar/BottomBarBase.js +141 -37
  45. package/lib/commonjs/bottom-bar/BottomBarBase.js.map +1 -1
  46. package/lib/commonjs/bottom-sheet/BottomSheetBase.js +3 -2
  47. package/lib/commonjs/bottom-sheet/BottomSheetBase.js.map +1 -1
  48. package/lib/commonjs/button/GlyphAttention.js +110 -0
  49. package/lib/commonjs/button/GlyphAttention.js.map +1 -0
  50. package/lib/commonjs/button/GlyphButton.js +18 -7
  51. package/lib/commonjs/button/GlyphButton.js.map +1 -1
  52. package/lib/commonjs/chat-composer/CompactComposer.js +18 -0
  53. package/lib/commonjs/chat-composer/CompactComposer.js.map +1 -0
  54. package/lib/commonjs/chat-composer/CompactComposer.web.js +18 -0
  55. package/lib/commonjs/chat-composer/CompactComposer.web.js.map +1 -0
  56. package/lib/commonjs/chat-composer/compact-text.js +11 -0
  57. package/lib/commonjs/chat-composer/compact-text.js.map +1 -0
  58. package/lib/commonjs/chat-composer/compact-types.js +6 -0
  59. package/lib/commonjs/chat-composer/compact-types.js.map +1 -0
  60. package/lib/commonjs/chat-composer/create-compact-composer.js +185 -0
  61. package/lib/commonjs/chat-composer/create-compact-composer.js.map +1 -0
  62. package/lib/commonjs/chat-composer/index.js +14 -0
  63. package/lib/commonjs/chat-composer/index.js.map +1 -1
  64. package/lib/commonjs/chat-composer/index.web.js +14 -0
  65. package/lib/commonjs/chat-composer/index.web.js.map +1 -1
  66. package/lib/commonjs/chat-composer/messages.js +8 -1
  67. package/lib/commonjs/chat-composer/messages.js.map +1 -1
  68. package/lib/commonjs/dialog/DialogBottomSheet.js +6 -3
  69. package/lib/commonjs/dialog/DialogBottomSheet.js.map +1 -1
  70. package/lib/commonjs/engagement-bar/EngagementAction.js +6 -5
  71. package/lib/commonjs/engagement-bar/EngagementAction.js.map +1 -1
  72. package/lib/commonjs/engagement-bar/EngagementBar.js +31 -7
  73. package/lib/commonjs/engagement-bar/EngagementBar.js.map +1 -1
  74. package/lib/commonjs/engagement-bar/EngagementPop.js +10 -3
  75. package/lib/commonjs/engagement-bar/EngagementPop.js.map +1 -1
  76. package/lib/commonjs/engagement-bar/context.js.map +1 -1
  77. package/lib/commonjs/engagement-bar/paint.js +59 -12
  78. package/lib/commonjs/engagement-bar/paint.js.map +1 -1
  79. package/lib/commonjs/hooks/use-border-box-size.js +46 -0
  80. package/lib/commonjs/hooks/use-border-box-size.js.map +1 -0
  81. package/lib/commonjs/icons/index.js +12 -0
  82. package/lib/commonjs/icons/index.js.map +1 -1
  83. package/lib/commonjs/icons/social/BookmarkFillIcon.js +12 -0
  84. package/lib/commonjs/icons/social/BookmarkFillIcon.js.map +1 -0
  85. package/lib/commonjs/icons/social/BookmarkIcon.js +12 -0
  86. package/lib/commonjs/icons/social/BookmarkIcon.js.map +1 -0
  87. package/lib/commonjs/icons/social/GifAttachmentIcon.js +12 -0
  88. package/lib/commonjs/icons/social/GifAttachmentIcon.js.map +1 -0
  89. package/lib/commonjs/icons/social/LikeFillIcon.js +13 -0
  90. package/lib/commonjs/icons/social/LikeFillIcon.js.map +1 -0
  91. package/lib/commonjs/icons/social/LikeIcon.js +14 -0
  92. package/lib/commonjs/icons/social/LikeIcon.js.map +1 -0
  93. package/lib/commonjs/icons/social/MediaAttachmentIcon.js +12 -0
  94. package/lib/commonjs/icons/social/MediaAttachmentIcon.js.map +1 -0
  95. package/lib/commonjs/icons/social/ReplyIcon.js +14 -0
  96. package/lib/commonjs/icons/social/ReplyIcon.js.map +1 -0
  97. package/lib/commonjs/icons/social/RepostIcon.js +12 -0
  98. package/lib/commonjs/icons/social/RepostIcon.js.map +1 -0
  99. package/lib/commonjs/icons/social/ShareIcon.js +12 -0
  100. package/lib/commonjs/icons/social/ShareIcon.js.map +1 -0
  101. package/lib/commonjs/icons/social/index.js +69 -0
  102. package/lib/commonjs/icons/social/index.js.map +1 -0
  103. package/lib/commonjs/index.js +14 -0
  104. package/lib/commonjs/index.js.map +1 -1
  105. package/lib/commonjs/index.web.js +14 -0
  106. package/lib/commonjs/index.web.js.map +1 -1
  107. package/lib/commonjs/layout/ScrollBar.web.js +62 -29
  108. package/lib/commonjs/layout/ScrollBar.web.js.map +1 -1
  109. package/lib/commonjs/layout/bottom-edge.js +14 -0
  110. package/lib/commonjs/layout/bottom-edge.js.map +1 -1
  111. package/lib/commonjs/layout/scroll-metrics.js.map +1 -1
  112. package/lib/commonjs/list/VirtualList.js +12 -0
  113. package/lib/commonjs/list/VirtualList.js.map +1 -1
  114. package/lib/commonjs/list/VirtualList.web.js +40 -19
  115. package/lib/commonjs/list/VirtualList.web.js.map +1 -1
  116. package/lib/commonjs/list/flash-list-module.js.map +1 -1
  117. package/lib/commonjs/locale/translations/ar.js +8 -0
  118. package/lib/commonjs/locale/translations/ar.js.map +1 -1
  119. package/lib/commonjs/locale/translations/bn.js +8 -0
  120. package/lib/commonjs/locale/translations/bn.js.map +1 -1
  121. package/lib/commonjs/locale/translations/ca.js +8 -0
  122. package/lib/commonjs/locale/translations/ca.js.map +1 -1
  123. package/lib/commonjs/locale/translations/de.js +8 -0
  124. package/lib/commonjs/locale/translations/de.js.map +1 -1
  125. package/lib/commonjs/locale/translations/es.js +8 -0
  126. package/lib/commonjs/locale/translations/es.js.map +1 -1
  127. package/lib/commonjs/locale/translations/fr.js +8 -0
  128. package/lib/commonjs/locale/translations/fr.js.map +1 -1
  129. package/lib/commonjs/locale/translations/hi.js +8 -0
  130. package/lib/commonjs/locale/translations/hi.js.map +1 -1
  131. package/lib/commonjs/locale/translations/id.js +8 -0
  132. package/lib/commonjs/locale/translations/id.js.map +1 -1
  133. package/lib/commonjs/locale/translations/it.js +8 -0
  134. package/lib/commonjs/locale/translations/it.js.map +1 -1
  135. package/lib/commonjs/locale/translations/ja.js +8 -0
  136. package/lib/commonjs/locale/translations/ja.js.map +1 -1
  137. package/lib/commonjs/locale/translations/pt.js +8 -0
  138. package/lib/commonjs/locale/translations/pt.js.map +1 -1
  139. package/lib/commonjs/locale/translations/ru.js +8 -0
  140. package/lib/commonjs/locale/translations/ru.js.map +1 -1
  141. package/lib/commonjs/locale/translations/tr.js +8 -0
  142. package/lib/commonjs/locale/translations/tr.js.map +1 -1
  143. package/lib/commonjs/locale/translations/zh.js +8 -0
  144. package/lib/commonjs/locale/translations/zh.js.map +1 -1
  145. package/lib/commonjs/page-header/EdgeScrim.js +14 -4
  146. package/lib/commonjs/page-header/EdgeScrim.js.map +1 -1
  147. package/lib/commonjs/page-header/PageHeader.js +19 -6
  148. package/lib/commonjs/page-header/PageHeader.js.map +1 -1
  149. package/lib/commonjs/screen/ScreenBase.js +15 -6
  150. package/lib/commonjs/screen/ScreenBase.js.map +1 -1
  151. package/lib/commonjs/screen/ScreenScrollViewBase.js +12 -2
  152. package/lib/commonjs/screen/ScreenScrollViewBase.js.map +1 -1
  153. package/lib/commonjs/screen/context.js.map +1 -1
  154. package/lib/commonjs/screen/use-intrinsic-content-height.js +53 -0
  155. package/lib/commonjs/screen/use-intrinsic-content-height.js.map +1 -0
  156. package/lib/commonjs/screen/use-screen-viewport.js +37 -6
  157. package/lib/commonjs/screen/use-screen-viewport.js.map +1 -1
  158. package/lib/commonjs/scroll/constants.js +4 -1
  159. package/lib/commonjs/scroll/constants.js.map +1 -1
  160. package/lib/commonjs/scroll/owner-handoff.js +27 -7
  161. package/lib/commonjs/scroll/owner-handoff.js.map +1 -1
  162. package/lib/commonjs/scroll/use-scroll-restoration.web.js +2 -11
  163. package/lib/commonjs/scroll/use-scroll-restoration.web.js.map +1 -1
  164. package/lib/commonjs/sidebar/Sidebar.js +121 -87
  165. package/lib/commonjs/sidebar/Sidebar.js.map +1 -1
  166. package/lib/commonjs/sidebar/arrangement.js +36 -0
  167. package/lib/commonjs/sidebar/arrangement.js.map +1 -0
  168. package/lib/commonjs/sidebar/index.js.map +1 -1
  169. package/lib/commonjs/tab-bar/TabBarBase.js +126 -20
  170. package/lib/commonjs/tab-bar/TabBarBase.js.map +1 -1
  171. package/lib/commonjs/tab-bar/shared.js +3 -1
  172. package/lib/commonjs/tab-bar/shared.js.map +1 -1
  173. package/lib/commonjs/tab-pager/TabPagerBottomBar.js +12 -2
  174. package/lib/commonjs/tab-pager/TabPagerBottomBar.js.map +1 -1
  175. package/lib/module/app-shell/AppShell.js +3 -3
  176. package/lib/module/app-shell/AppShell.js.map +1 -1
  177. package/lib/module/app-shell/AppShellEngine.js +2 -1
  178. package/lib/module/app-shell/AppShellEngine.js.map +1 -1
  179. package/lib/module/app-shell/AppShellPanelLayout.js +319 -147
  180. package/lib/module/app-shell/AppShellPanelLayout.js.map +1 -1
  181. package/lib/module/app-shell/RetainedPanelLayout.js +7 -1
  182. package/lib/module/app-shell/RetainedPanelLayout.js.map +1 -1
  183. package/lib/module/app-shell/panel-layout-css.js +19 -12
  184. package/lib/module/app-shell/panel-layout-css.js.map +1 -1
  185. package/lib/module/app-shell/panel-layout.js +32 -183
  186. package/lib/module/app-shell/panel-layout.js.map +1 -1
  187. package/lib/module/app-shell/panel-motion.js +14 -36
  188. package/lib/module/app-shell/panel-motion.js.map +1 -1
  189. package/lib/module/app-shell/panel-transitions.js +21 -0
  190. package/lib/module/app-shell/panel-transitions.js.map +1 -0
  191. package/lib/module/app-shell/shell-layout-css.js +2 -2
  192. package/lib/module/app-shell/shell-layout-css.js.map +1 -1
  193. package/lib/module/app-shell/use-panel-exit-completion.js +97 -0
  194. package/lib/module/app-shell/use-panel-exit-completion.js.map +1 -0
  195. package/lib/module/app-shell/use-panel-resize.js +22 -8
  196. package/lib/module/app-shell/use-panel-resize.js.map +1 -1
  197. package/lib/module/app-shell/use-panel-reveal.js +2 -1
  198. package/lib/module/app-shell/use-panel-reveal.js.map +1 -1
  199. package/lib/module/bottom-bar/BottomBarBase.js +143 -39
  200. package/lib/module/bottom-bar/BottomBarBase.js.map +1 -1
  201. package/lib/module/bottom-sheet/BottomSheetBase.js +3 -2
  202. package/lib/module/bottom-sheet/BottomSheetBase.js.map +1 -1
  203. package/lib/module/button/GlyphAttention.js +104 -0
  204. package/lib/module/button/GlyphAttention.js.map +1 -0
  205. package/lib/module/button/GlyphButton.js +18 -7
  206. package/lib/module/button/GlyphButton.js.map +1 -1
  207. package/lib/module/chat-composer/CompactComposer.js +14 -0
  208. package/lib/module/chat-composer/CompactComposer.js.map +1 -0
  209. package/lib/module/chat-composer/CompactComposer.web.js +14 -0
  210. package/lib/module/chat-composer/CompactComposer.web.js.map +1 -0
  211. package/lib/module/chat-composer/compact-text.js +7 -0
  212. package/lib/module/chat-composer/compact-text.js.map +1 -0
  213. package/lib/module/chat-composer/compact-types.js +4 -0
  214. package/lib/module/chat-composer/compact-types.js.map +1 -0
  215. package/lib/module/chat-composer/create-compact-composer.js +181 -0
  216. package/lib/module/chat-composer/create-compact-composer.js.map +1 -0
  217. package/lib/module/chat-composer/index.js +2 -0
  218. package/lib/module/chat-composer/index.js.map +1 -1
  219. package/lib/module/chat-composer/index.web.js +2 -0
  220. package/lib/module/chat-composer/index.web.js.map +1 -1
  221. package/lib/module/chat-composer/messages.js +7 -0
  222. package/lib/module/chat-composer/messages.js.map +1 -1
  223. package/lib/module/dialog/DialogBottomSheet.js +6 -3
  224. package/lib/module/dialog/DialogBottomSheet.js.map +1 -1
  225. package/lib/module/engagement-bar/EngagementAction.js +7 -6
  226. package/lib/module/engagement-bar/EngagementAction.js.map +1 -1
  227. package/lib/module/engagement-bar/EngagementBar.js +29 -5
  228. package/lib/module/engagement-bar/EngagementBar.js.map +1 -1
  229. package/lib/module/engagement-bar/EngagementPop.js +10 -3
  230. package/lib/module/engagement-bar/EngagementPop.js.map +1 -1
  231. package/lib/module/engagement-bar/context.js.map +1 -1
  232. package/lib/module/engagement-bar/paint.js +60 -13
  233. package/lib/module/engagement-bar/paint.js.map +1 -1
  234. package/lib/module/hooks/use-border-box-size.js +42 -0
  235. package/lib/module/hooks/use-border-box-size.js.map +1 -0
  236. package/lib/module/icons/index.js +2 -1
  237. package/lib/module/icons/index.js.map +1 -1
  238. package/lib/module/icons/social/BookmarkFillIcon.js +9 -0
  239. package/lib/module/icons/social/BookmarkFillIcon.js.map +1 -0
  240. package/lib/module/icons/social/BookmarkIcon.js +9 -0
  241. package/lib/module/icons/social/BookmarkIcon.js.map +1 -0
  242. package/lib/module/icons/social/GifAttachmentIcon.js +9 -0
  243. package/lib/module/icons/social/GifAttachmentIcon.js.map +1 -0
  244. package/lib/module/icons/social/LikeFillIcon.js +10 -0
  245. package/lib/module/icons/social/LikeFillIcon.js.map +1 -0
  246. package/lib/module/icons/social/LikeIcon.js +11 -0
  247. package/lib/module/icons/social/LikeIcon.js.map +1 -0
  248. package/lib/module/icons/social/MediaAttachmentIcon.js +9 -0
  249. package/lib/module/icons/social/MediaAttachmentIcon.js.map +1 -0
  250. package/lib/module/icons/social/ReplyIcon.js +11 -0
  251. package/lib/module/icons/social/ReplyIcon.js.map +1 -0
  252. package/lib/module/icons/social/RepostIcon.js +9 -0
  253. package/lib/module/icons/social/RepostIcon.js.map +1 -0
  254. package/lib/module/icons/social/ShareIcon.js +9 -0
  255. package/lib/module/icons/social/ShareIcon.js.map +1 -0
  256. package/lib/module/icons/social/index.js +12 -0
  257. package/lib/module/icons/social/index.js.map +1 -0
  258. package/lib/module/index.js +1 -1
  259. package/lib/module/index.js.map +1 -1
  260. package/lib/module/index.web.js +1 -1
  261. package/lib/module/index.web.js.map +1 -1
  262. package/lib/module/layout/ScrollBar.web.js +64 -31
  263. package/lib/module/layout/ScrollBar.web.js.map +1 -1
  264. package/lib/module/layout/bottom-edge.js +14 -1
  265. package/lib/module/layout/bottom-edge.js.map +1 -1
  266. package/lib/module/layout/scroll-metrics.js.map +1 -1
  267. package/lib/module/list/VirtualList.js +12 -0
  268. package/lib/module/list/VirtualList.js.map +1 -1
  269. package/lib/module/list/VirtualList.web.js +41 -20
  270. package/lib/module/list/VirtualList.web.js.map +1 -1
  271. package/lib/module/list/flash-list-module.js.map +1 -1
  272. package/lib/module/locale/translations/ar.js +8 -0
  273. package/lib/module/locale/translations/ar.js.map +1 -1
  274. package/lib/module/locale/translations/bn.js +8 -0
  275. package/lib/module/locale/translations/bn.js.map +1 -1
  276. package/lib/module/locale/translations/ca.js +8 -0
  277. package/lib/module/locale/translations/ca.js.map +1 -1
  278. package/lib/module/locale/translations/de.js +8 -0
  279. package/lib/module/locale/translations/de.js.map +1 -1
  280. package/lib/module/locale/translations/es.js +8 -0
  281. package/lib/module/locale/translations/es.js.map +1 -1
  282. package/lib/module/locale/translations/fr.js +8 -0
  283. package/lib/module/locale/translations/fr.js.map +1 -1
  284. package/lib/module/locale/translations/hi.js +8 -0
  285. package/lib/module/locale/translations/hi.js.map +1 -1
  286. package/lib/module/locale/translations/id.js +8 -0
  287. package/lib/module/locale/translations/id.js.map +1 -1
  288. package/lib/module/locale/translations/it.js +8 -0
  289. package/lib/module/locale/translations/it.js.map +1 -1
  290. package/lib/module/locale/translations/ja.js +8 -0
  291. package/lib/module/locale/translations/ja.js.map +1 -1
  292. package/lib/module/locale/translations/pt.js +8 -0
  293. package/lib/module/locale/translations/pt.js.map +1 -1
  294. package/lib/module/locale/translations/ru.js +8 -0
  295. package/lib/module/locale/translations/ru.js.map +1 -1
  296. package/lib/module/locale/translations/tr.js +8 -0
  297. package/lib/module/locale/translations/tr.js.map +1 -1
  298. package/lib/module/locale/translations/zh.js +8 -0
  299. package/lib/module/locale/translations/zh.js.map +1 -1
  300. package/lib/module/page-header/EdgeScrim.js +14 -4
  301. package/lib/module/page-header/EdgeScrim.js.map +1 -1
  302. package/lib/module/page-header/PageHeader.js +19 -6
  303. package/lib/module/page-header/PageHeader.js.map +1 -1
  304. package/lib/module/screen/ScreenBase.js +15 -6
  305. package/lib/module/screen/ScreenBase.js.map +1 -1
  306. package/lib/module/screen/ScreenScrollViewBase.js +12 -2
  307. package/lib/module/screen/ScreenScrollViewBase.js.map +1 -1
  308. package/lib/module/screen/context.js.map +1 -1
  309. package/lib/module/screen/use-intrinsic-content-height.js +50 -0
  310. package/lib/module/screen/use-intrinsic-content-height.js.map +1 -0
  311. package/lib/module/screen/use-screen-viewport.js +39 -8
  312. package/lib/module/screen/use-screen-viewport.js.map +1 -1
  313. package/lib/module/scroll/constants.js +3 -0
  314. package/lib/module/scroll/constants.js.map +1 -1
  315. package/lib/module/scroll/owner-handoff.js +27 -8
  316. package/lib/module/scroll/owner-handoff.js.map +1 -1
  317. package/lib/module/scroll/use-scroll-restoration.web.js +1 -10
  318. package/lib/module/scroll/use-scroll-restoration.web.js.map +1 -1
  319. package/lib/module/sidebar/Sidebar.js +121 -87
  320. package/lib/module/sidebar/Sidebar.js.map +1 -1
  321. package/lib/module/sidebar/arrangement.js +32 -0
  322. package/lib/module/sidebar/arrangement.js.map +1 -0
  323. package/lib/module/sidebar/index.js.map +1 -1
  324. package/lib/module/tab-bar/TabBarBase.js +130 -23
  325. package/lib/module/tab-bar/TabBarBase.js.map +1 -1
  326. package/lib/module/tab-bar/shared.js +2 -0
  327. package/lib/module/tab-bar/shared.js.map +1 -1
  328. package/lib/module/tab-pager/TabPagerBottomBar.js +13 -3
  329. package/lib/module/tab-pager/TabPagerBottomBar.js.map +1 -1
  330. package/lib/typescript/commonjs/app-shell/AppShell.d.ts.map +1 -1
  331. package/lib/typescript/commonjs/app-shell/AppShellEngine.d.ts.map +1 -1
  332. package/lib/typescript/commonjs/app-shell/AppShellPanelLayout.d.ts.map +1 -1
  333. package/lib/typescript/commonjs/app-shell/RetainedPanelLayout.d.ts.map +1 -1
  334. package/lib/typescript/commonjs/app-shell/panel-layout-css.d.ts +2 -1
  335. package/lib/typescript/commonjs/app-shell/panel-layout-css.d.ts.map +1 -1
  336. package/lib/typescript/commonjs/app-shell/panel-layout-types.d.ts +11 -2
  337. package/lib/typescript/commonjs/app-shell/panel-layout-types.d.ts.map +1 -1
  338. package/lib/typescript/commonjs/app-shell/panel-layout.d.ts +13 -27
  339. package/lib/typescript/commonjs/app-shell/panel-layout.d.ts.map +1 -1
  340. package/lib/typescript/commonjs/app-shell/panel-motion.d.ts +1 -12
  341. package/lib/typescript/commonjs/app-shell/panel-motion.d.ts.map +1 -1
  342. package/lib/typescript/commonjs/app-shell/panel-transitions.d.ts +4 -0
  343. package/lib/typescript/commonjs/app-shell/panel-transitions.d.ts.map +1 -0
  344. package/lib/typescript/commonjs/app-shell/shell-layout-css.d.ts.map +1 -1
  345. package/lib/typescript/commonjs/app-shell/types.d.ts +4 -0
  346. package/lib/typescript/commonjs/app-shell/types.d.ts.map +1 -1
  347. package/lib/typescript/commonjs/app-shell/use-panel-exit-completion.d.ts +14 -0
  348. package/lib/typescript/commonjs/app-shell/use-panel-exit-completion.d.ts.map +1 -0
  349. package/lib/typescript/commonjs/app-shell/use-panel-reorder.d.ts +2 -2
  350. package/lib/typescript/commonjs/app-shell/use-panel-reorder.d.ts.map +1 -1
  351. package/lib/typescript/commonjs/app-shell/use-panel-resize.d.ts +4 -2
  352. package/lib/typescript/commonjs/app-shell/use-panel-resize.d.ts.map +1 -1
  353. package/lib/typescript/commonjs/app-shell/use-panel-reveal.d.ts +2 -2
  354. package/lib/typescript/commonjs/app-shell/use-panel-reveal.d.ts.map +1 -1
  355. package/lib/typescript/commonjs/bottom-bar/BottomBarBase.d.ts +1 -1
  356. package/lib/typescript/commonjs/bottom-bar/BottomBarBase.d.ts.map +1 -1
  357. package/lib/typescript/commonjs/bottom-bar/types.d.ts +10 -2
  358. package/lib/typescript/commonjs/bottom-bar/types.d.ts.map +1 -1
  359. package/lib/typescript/commonjs/bottom-sheet/BottomSheetBase.d.ts.map +1 -1
  360. package/lib/typescript/commonjs/bottom-sheet/types.d.ts +2 -0
  361. package/lib/typescript/commonjs/bottom-sheet/types.d.ts.map +1 -1
  362. package/lib/typescript/commonjs/button/GlyphAttention.d.ts +11 -0
  363. package/lib/typescript/commonjs/button/GlyphAttention.d.ts.map +1 -0
  364. package/lib/typescript/commonjs/button/GlyphButton.d.ts.map +1 -1
  365. package/lib/typescript/commonjs/button/types.d.ts +11 -0
  366. package/lib/typescript/commonjs/button/types.d.ts.map +1 -1
  367. package/lib/typescript/commonjs/chat-composer/CompactComposer.d.ts +2 -0
  368. package/lib/typescript/commonjs/chat-composer/CompactComposer.d.ts.map +1 -0
  369. package/lib/typescript/commonjs/chat-composer/CompactComposer.web.d.ts +2 -0
  370. package/lib/typescript/commonjs/chat-composer/CompactComposer.web.d.ts.map +1 -0
  371. package/lib/typescript/commonjs/chat-composer/compact-text.d.ts +3 -0
  372. package/lib/typescript/commonjs/chat-composer/compact-text.d.ts.map +1 -0
  373. package/lib/typescript/commonjs/chat-composer/compact-types.d.ts +45 -0
  374. package/lib/typescript/commonjs/chat-composer/compact-types.d.ts.map +1 -0
  375. package/lib/typescript/commonjs/chat-composer/create-compact-composer.d.ts +13 -0
  376. package/lib/typescript/commonjs/chat-composer/create-compact-composer.d.ts.map +1 -0
  377. package/lib/typescript/commonjs/chat-composer/index.d.ts +3 -0
  378. package/lib/typescript/commonjs/chat-composer/index.d.ts.map +1 -1
  379. package/lib/typescript/commonjs/chat-composer/index.web.d.ts +3 -0
  380. package/lib/typescript/commonjs/chat-composer/index.web.d.ts.map +1 -1
  381. package/lib/typescript/commonjs/chat-composer/messages.d.ts +8 -0
  382. package/lib/typescript/commonjs/chat-composer/messages.d.ts.map +1 -1
  383. package/lib/typescript/commonjs/dialog/DialogBottomSheet.d.ts +2 -2
  384. package/lib/typescript/commonjs/dialog/DialogBottomSheet.d.ts.map +1 -1
  385. package/lib/typescript/commonjs/dialog/types.d.ts +2 -0
  386. package/lib/typescript/commonjs/dialog/types.d.ts.map +1 -1
  387. package/lib/typescript/commonjs/engagement-bar/EngagementAction.d.ts.map +1 -1
  388. package/lib/typescript/commonjs/engagement-bar/EngagementBar.d.ts +3 -3
  389. package/lib/typescript/commonjs/engagement-bar/EngagementBar.d.ts.map +1 -1
  390. package/lib/typescript/commonjs/engagement-bar/EngagementPop.d.ts +2 -1
  391. package/lib/typescript/commonjs/engagement-bar/EngagementPop.d.ts.map +1 -1
  392. package/lib/typescript/commonjs/engagement-bar/context.d.ts +1 -0
  393. package/lib/typescript/commonjs/engagement-bar/context.d.ts.map +1 -1
  394. package/lib/typescript/commonjs/engagement-bar/paint.d.ts +4 -2
  395. package/lib/typescript/commonjs/engagement-bar/paint.d.ts.map +1 -1
  396. package/lib/typescript/commonjs/engagement-bar/types.d.ts +10 -1
  397. package/lib/typescript/commonjs/engagement-bar/types.d.ts.map +1 -1
  398. package/lib/typescript/commonjs/hooks/use-border-box-size.d.ts +13 -0
  399. package/lib/typescript/commonjs/hooks/use-border-box-size.d.ts.map +1 -0
  400. package/lib/typescript/commonjs/icons/index.d.ts +1 -0
  401. package/lib/typescript/commonjs/icons/index.d.ts.map +1 -1
  402. package/lib/typescript/commonjs/icons/social/BookmarkFillIcon.d.ts +8 -0
  403. package/lib/typescript/commonjs/icons/social/BookmarkFillIcon.d.ts.map +1 -0
  404. package/lib/typescript/commonjs/icons/social/BookmarkIcon.d.ts +8 -0
  405. package/lib/typescript/commonjs/icons/social/BookmarkIcon.d.ts.map +1 -0
  406. package/lib/typescript/commonjs/icons/social/GifAttachmentIcon.d.ts +8 -0
  407. package/lib/typescript/commonjs/icons/social/GifAttachmentIcon.d.ts.map +1 -0
  408. package/lib/typescript/commonjs/icons/social/LikeFillIcon.d.ts +8 -0
  409. package/lib/typescript/commonjs/icons/social/LikeFillIcon.d.ts.map +1 -0
  410. package/lib/typescript/commonjs/icons/social/LikeIcon.d.ts +8 -0
  411. package/lib/typescript/commonjs/icons/social/LikeIcon.d.ts.map +1 -0
  412. package/lib/typescript/commonjs/icons/social/MediaAttachmentIcon.d.ts +8 -0
  413. package/lib/typescript/commonjs/icons/social/MediaAttachmentIcon.d.ts.map +1 -0
  414. package/lib/typescript/commonjs/icons/social/ReplyIcon.d.ts +8 -0
  415. package/lib/typescript/commonjs/icons/social/ReplyIcon.d.ts.map +1 -0
  416. package/lib/typescript/commonjs/icons/social/RepostIcon.d.ts +8 -0
  417. package/lib/typescript/commonjs/icons/social/RepostIcon.d.ts.map +1 -0
  418. package/lib/typescript/commonjs/icons/social/ShareIcon.d.ts +8 -0
  419. package/lib/typescript/commonjs/icons/social/ShareIcon.d.ts.map +1 -0
  420. package/lib/typescript/commonjs/icons/social/index.d.ts +10 -0
  421. package/lib/typescript/commonjs/icons/social/index.d.ts.map +1 -0
  422. package/lib/typescript/commonjs/index.d.ts +2 -2
  423. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  424. package/lib/typescript/commonjs/index.web.d.ts +2 -2
  425. package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
  426. package/lib/typescript/commonjs/layout/ScrollBar.web.d.ts.map +1 -1
  427. package/lib/typescript/commonjs/layout/bottom-edge.d.ts +2 -0
  428. package/lib/typescript/commonjs/layout/bottom-edge.d.ts.map +1 -1
  429. package/lib/typescript/commonjs/layout/scroll-metrics.d.ts +2 -0
  430. package/lib/typescript/commonjs/layout/scroll-metrics.d.ts.map +1 -1
  431. package/lib/typescript/commonjs/layout/types.d.ts +2 -2
  432. package/lib/typescript/commonjs/layout/types.d.ts.map +1 -1
  433. package/lib/typescript/commonjs/list/VirtualList.d.ts.map +1 -1
  434. package/lib/typescript/commonjs/list/VirtualList.web.d.ts.map +1 -1
  435. package/lib/typescript/commonjs/list/flash-list-module.d.ts +1 -1
  436. package/lib/typescript/commonjs/list/flash-list-module.d.ts.map +1 -1
  437. package/lib/typescript/commonjs/locale/translations/ar.d.ts.map +1 -1
  438. package/lib/typescript/commonjs/locale/translations/bn.d.ts.map +1 -1
  439. package/lib/typescript/commonjs/locale/translations/ca.d.ts.map +1 -1
  440. package/lib/typescript/commonjs/locale/translations/de.d.ts.map +1 -1
  441. package/lib/typescript/commonjs/locale/translations/es.d.ts.map +1 -1
  442. package/lib/typescript/commonjs/locale/translations/fr.d.ts.map +1 -1
  443. package/lib/typescript/commonjs/locale/translations/hi.d.ts.map +1 -1
  444. package/lib/typescript/commonjs/locale/translations/id.d.ts.map +1 -1
  445. package/lib/typescript/commonjs/locale/translations/it.d.ts.map +1 -1
  446. package/lib/typescript/commonjs/locale/translations/ja.d.ts.map +1 -1
  447. package/lib/typescript/commonjs/locale/translations/pt.d.ts.map +1 -1
  448. package/lib/typescript/commonjs/locale/translations/ru.d.ts.map +1 -1
  449. package/lib/typescript/commonjs/locale/translations/tr.d.ts.map +1 -1
  450. package/lib/typescript/commonjs/locale/translations/types.d.ts +2 -1
  451. package/lib/typescript/commonjs/locale/translations/types.d.ts.map +1 -1
  452. package/lib/typescript/commonjs/locale/translations/zh.d.ts.map +1 -1
  453. package/lib/typescript/commonjs/page-header/EdgeScrim.d.ts +3 -1
  454. package/lib/typescript/commonjs/page-header/EdgeScrim.d.ts.map +1 -1
  455. package/lib/typescript/commonjs/page-header/PageHeader.d.ts +1 -1
  456. package/lib/typescript/commonjs/page-header/PageHeader.d.ts.map +1 -1
  457. package/lib/typescript/commonjs/page-header/types.d.ts +2 -0
  458. package/lib/typescript/commonjs/page-header/types.d.ts.map +1 -1
  459. package/lib/typescript/commonjs/screen/ScreenBase.d.ts.map +1 -1
  460. package/lib/typescript/commonjs/screen/ScreenScrollViewBase.d.ts.map +1 -1
  461. package/lib/typescript/commonjs/screen/context.d.ts +3 -0
  462. package/lib/typescript/commonjs/screen/context.d.ts.map +1 -1
  463. package/lib/typescript/commonjs/screen/use-intrinsic-content-height.d.ts +3 -0
  464. package/lib/typescript/commonjs/screen/use-intrinsic-content-height.d.ts.map +1 -0
  465. package/lib/typescript/commonjs/screen/use-screen-viewport.d.ts.map +1 -1
  466. package/lib/typescript/commonjs/scroll/constants.d.ts +2 -0
  467. package/lib/typescript/commonjs/scroll/constants.d.ts.map +1 -1
  468. package/lib/typescript/commonjs/scroll/owner-handoff.d.ts +3 -1
  469. package/lib/typescript/commonjs/scroll/owner-handoff.d.ts.map +1 -1
  470. package/lib/typescript/commonjs/scroll/use-scroll-restoration.web.d.ts.map +1 -1
  471. package/lib/typescript/commonjs/sidebar/Sidebar.d.ts.map +1 -1
  472. package/lib/typescript/commonjs/sidebar/arrangement.d.ts +32 -0
  473. package/lib/typescript/commonjs/sidebar/arrangement.d.ts.map +1 -0
  474. package/lib/typescript/commonjs/sidebar/index.d.ts +1 -0
  475. package/lib/typescript/commonjs/sidebar/index.d.ts.map +1 -1
  476. package/lib/typescript/commonjs/sidebar/types.d.ts +13 -1
  477. package/lib/typescript/commonjs/sidebar/types.d.ts.map +1 -1
  478. package/lib/typescript/commonjs/tab-bar/TabBarBase.d.ts.map +1 -1
  479. package/lib/typescript/commonjs/tab-bar/shared.d.ts +2 -0
  480. package/lib/typescript/commonjs/tab-bar/shared.d.ts.map +1 -1
  481. package/lib/typescript/commonjs/tab-bar/types.d.ts +2 -0
  482. package/lib/typescript/commonjs/tab-bar/types.d.ts.map +1 -1
  483. package/lib/typescript/commonjs/tab-pager/TabPagerBottomBar.d.ts +1 -1
  484. package/lib/typescript/commonjs/tab-pager/TabPagerBottomBar.d.ts.map +1 -1
  485. package/lib/typescript/commonjs/tab-pager/types.d.ts +4 -1
  486. package/lib/typescript/commonjs/tab-pager/types.d.ts.map +1 -1
  487. package/lib/typescript/module/app-shell/AppShell.d.ts.map +1 -1
  488. package/lib/typescript/module/app-shell/AppShellEngine.d.ts.map +1 -1
  489. package/lib/typescript/module/app-shell/AppShellPanelLayout.d.ts.map +1 -1
  490. package/lib/typescript/module/app-shell/RetainedPanelLayout.d.ts.map +1 -1
  491. package/lib/typescript/module/app-shell/panel-layout-css.d.ts +2 -1
  492. package/lib/typescript/module/app-shell/panel-layout-css.d.ts.map +1 -1
  493. package/lib/typescript/module/app-shell/panel-layout-types.d.ts +11 -2
  494. package/lib/typescript/module/app-shell/panel-layout-types.d.ts.map +1 -1
  495. package/lib/typescript/module/app-shell/panel-layout.d.ts +13 -27
  496. package/lib/typescript/module/app-shell/panel-layout.d.ts.map +1 -1
  497. package/lib/typescript/module/app-shell/panel-motion.d.ts +1 -12
  498. package/lib/typescript/module/app-shell/panel-motion.d.ts.map +1 -1
  499. package/lib/typescript/module/app-shell/panel-transitions.d.ts +4 -0
  500. package/lib/typescript/module/app-shell/panel-transitions.d.ts.map +1 -0
  501. package/lib/typescript/module/app-shell/shell-layout-css.d.ts.map +1 -1
  502. package/lib/typescript/module/app-shell/types.d.ts +4 -0
  503. package/lib/typescript/module/app-shell/types.d.ts.map +1 -1
  504. package/lib/typescript/module/app-shell/use-panel-exit-completion.d.ts +14 -0
  505. package/lib/typescript/module/app-shell/use-panel-exit-completion.d.ts.map +1 -0
  506. package/lib/typescript/module/app-shell/use-panel-reorder.d.ts +2 -2
  507. package/lib/typescript/module/app-shell/use-panel-reorder.d.ts.map +1 -1
  508. package/lib/typescript/module/app-shell/use-panel-resize.d.ts +4 -2
  509. package/lib/typescript/module/app-shell/use-panel-resize.d.ts.map +1 -1
  510. package/lib/typescript/module/app-shell/use-panel-reveal.d.ts +2 -2
  511. package/lib/typescript/module/app-shell/use-panel-reveal.d.ts.map +1 -1
  512. package/lib/typescript/module/bottom-bar/BottomBarBase.d.ts +1 -1
  513. package/lib/typescript/module/bottom-bar/BottomBarBase.d.ts.map +1 -1
  514. package/lib/typescript/module/bottom-bar/types.d.ts +10 -2
  515. package/lib/typescript/module/bottom-bar/types.d.ts.map +1 -1
  516. package/lib/typescript/module/bottom-sheet/BottomSheetBase.d.ts.map +1 -1
  517. package/lib/typescript/module/bottom-sheet/types.d.ts +2 -0
  518. package/lib/typescript/module/bottom-sheet/types.d.ts.map +1 -1
  519. package/lib/typescript/module/button/GlyphAttention.d.ts +11 -0
  520. package/lib/typescript/module/button/GlyphAttention.d.ts.map +1 -0
  521. package/lib/typescript/module/button/GlyphButton.d.ts.map +1 -1
  522. package/lib/typescript/module/button/types.d.ts +11 -0
  523. package/lib/typescript/module/button/types.d.ts.map +1 -1
  524. package/lib/typescript/module/chat-composer/CompactComposer.d.ts +2 -0
  525. package/lib/typescript/module/chat-composer/CompactComposer.d.ts.map +1 -0
  526. package/lib/typescript/module/chat-composer/CompactComposer.web.d.ts +2 -0
  527. package/lib/typescript/module/chat-composer/CompactComposer.web.d.ts.map +1 -0
  528. package/lib/typescript/module/chat-composer/compact-text.d.ts +3 -0
  529. package/lib/typescript/module/chat-composer/compact-text.d.ts.map +1 -0
  530. package/lib/typescript/module/chat-composer/compact-types.d.ts +45 -0
  531. package/lib/typescript/module/chat-composer/compact-types.d.ts.map +1 -0
  532. package/lib/typescript/module/chat-composer/create-compact-composer.d.ts +13 -0
  533. package/lib/typescript/module/chat-composer/create-compact-composer.d.ts.map +1 -0
  534. package/lib/typescript/module/chat-composer/index.d.ts +3 -0
  535. package/lib/typescript/module/chat-composer/index.d.ts.map +1 -1
  536. package/lib/typescript/module/chat-composer/index.web.d.ts +3 -0
  537. package/lib/typescript/module/chat-composer/index.web.d.ts.map +1 -1
  538. package/lib/typescript/module/chat-composer/messages.d.ts +8 -0
  539. package/lib/typescript/module/chat-composer/messages.d.ts.map +1 -1
  540. package/lib/typescript/module/dialog/DialogBottomSheet.d.ts +2 -2
  541. package/lib/typescript/module/dialog/DialogBottomSheet.d.ts.map +1 -1
  542. package/lib/typescript/module/dialog/types.d.ts +2 -0
  543. package/lib/typescript/module/dialog/types.d.ts.map +1 -1
  544. package/lib/typescript/module/engagement-bar/EngagementAction.d.ts.map +1 -1
  545. package/lib/typescript/module/engagement-bar/EngagementBar.d.ts +3 -3
  546. package/lib/typescript/module/engagement-bar/EngagementBar.d.ts.map +1 -1
  547. package/lib/typescript/module/engagement-bar/EngagementPop.d.ts +2 -1
  548. package/lib/typescript/module/engagement-bar/EngagementPop.d.ts.map +1 -1
  549. package/lib/typescript/module/engagement-bar/context.d.ts +1 -0
  550. package/lib/typescript/module/engagement-bar/context.d.ts.map +1 -1
  551. package/lib/typescript/module/engagement-bar/paint.d.ts +4 -2
  552. package/lib/typescript/module/engagement-bar/paint.d.ts.map +1 -1
  553. package/lib/typescript/module/engagement-bar/types.d.ts +10 -1
  554. package/lib/typescript/module/engagement-bar/types.d.ts.map +1 -1
  555. package/lib/typescript/module/hooks/use-border-box-size.d.ts +13 -0
  556. package/lib/typescript/module/hooks/use-border-box-size.d.ts.map +1 -0
  557. package/lib/typescript/module/icons/index.d.ts +1 -0
  558. package/lib/typescript/module/icons/index.d.ts.map +1 -1
  559. package/lib/typescript/module/icons/social/BookmarkFillIcon.d.ts +8 -0
  560. package/lib/typescript/module/icons/social/BookmarkFillIcon.d.ts.map +1 -0
  561. package/lib/typescript/module/icons/social/BookmarkIcon.d.ts +8 -0
  562. package/lib/typescript/module/icons/social/BookmarkIcon.d.ts.map +1 -0
  563. package/lib/typescript/module/icons/social/GifAttachmentIcon.d.ts +8 -0
  564. package/lib/typescript/module/icons/social/GifAttachmentIcon.d.ts.map +1 -0
  565. package/lib/typescript/module/icons/social/LikeFillIcon.d.ts +8 -0
  566. package/lib/typescript/module/icons/social/LikeFillIcon.d.ts.map +1 -0
  567. package/lib/typescript/module/icons/social/LikeIcon.d.ts +8 -0
  568. package/lib/typescript/module/icons/social/LikeIcon.d.ts.map +1 -0
  569. package/lib/typescript/module/icons/social/MediaAttachmentIcon.d.ts +8 -0
  570. package/lib/typescript/module/icons/social/MediaAttachmentIcon.d.ts.map +1 -0
  571. package/lib/typescript/module/icons/social/ReplyIcon.d.ts +8 -0
  572. package/lib/typescript/module/icons/social/ReplyIcon.d.ts.map +1 -0
  573. package/lib/typescript/module/icons/social/RepostIcon.d.ts +8 -0
  574. package/lib/typescript/module/icons/social/RepostIcon.d.ts.map +1 -0
  575. package/lib/typescript/module/icons/social/ShareIcon.d.ts +8 -0
  576. package/lib/typescript/module/icons/social/ShareIcon.d.ts.map +1 -0
  577. package/lib/typescript/module/icons/social/index.d.ts +10 -0
  578. package/lib/typescript/module/icons/social/index.d.ts.map +1 -0
  579. package/lib/typescript/module/index.d.ts +2 -2
  580. package/lib/typescript/module/index.d.ts.map +1 -1
  581. package/lib/typescript/module/index.web.d.ts +2 -2
  582. package/lib/typescript/module/index.web.d.ts.map +1 -1
  583. package/lib/typescript/module/layout/ScrollBar.web.d.ts.map +1 -1
  584. package/lib/typescript/module/layout/bottom-edge.d.ts +2 -0
  585. package/lib/typescript/module/layout/bottom-edge.d.ts.map +1 -1
  586. package/lib/typescript/module/layout/scroll-metrics.d.ts +2 -0
  587. package/lib/typescript/module/layout/scroll-metrics.d.ts.map +1 -1
  588. package/lib/typescript/module/layout/types.d.ts +2 -2
  589. package/lib/typescript/module/layout/types.d.ts.map +1 -1
  590. package/lib/typescript/module/list/VirtualList.d.ts.map +1 -1
  591. package/lib/typescript/module/list/VirtualList.web.d.ts.map +1 -1
  592. package/lib/typescript/module/list/flash-list-module.d.ts +1 -1
  593. package/lib/typescript/module/list/flash-list-module.d.ts.map +1 -1
  594. package/lib/typescript/module/locale/translations/ar.d.ts.map +1 -1
  595. package/lib/typescript/module/locale/translations/bn.d.ts.map +1 -1
  596. package/lib/typescript/module/locale/translations/ca.d.ts.map +1 -1
  597. package/lib/typescript/module/locale/translations/de.d.ts.map +1 -1
  598. package/lib/typescript/module/locale/translations/es.d.ts.map +1 -1
  599. package/lib/typescript/module/locale/translations/fr.d.ts.map +1 -1
  600. package/lib/typescript/module/locale/translations/hi.d.ts.map +1 -1
  601. package/lib/typescript/module/locale/translations/id.d.ts.map +1 -1
  602. package/lib/typescript/module/locale/translations/it.d.ts.map +1 -1
  603. package/lib/typescript/module/locale/translations/ja.d.ts.map +1 -1
  604. package/lib/typescript/module/locale/translations/pt.d.ts.map +1 -1
  605. package/lib/typescript/module/locale/translations/ru.d.ts.map +1 -1
  606. package/lib/typescript/module/locale/translations/tr.d.ts.map +1 -1
  607. package/lib/typescript/module/locale/translations/types.d.ts +2 -1
  608. package/lib/typescript/module/locale/translations/types.d.ts.map +1 -1
  609. package/lib/typescript/module/locale/translations/zh.d.ts.map +1 -1
  610. package/lib/typescript/module/page-header/EdgeScrim.d.ts +3 -1
  611. package/lib/typescript/module/page-header/EdgeScrim.d.ts.map +1 -1
  612. package/lib/typescript/module/page-header/PageHeader.d.ts +1 -1
  613. package/lib/typescript/module/page-header/PageHeader.d.ts.map +1 -1
  614. package/lib/typescript/module/page-header/types.d.ts +2 -0
  615. package/lib/typescript/module/page-header/types.d.ts.map +1 -1
  616. package/lib/typescript/module/screen/ScreenBase.d.ts.map +1 -1
  617. package/lib/typescript/module/screen/ScreenScrollViewBase.d.ts.map +1 -1
  618. package/lib/typescript/module/screen/context.d.ts +3 -0
  619. package/lib/typescript/module/screen/context.d.ts.map +1 -1
  620. package/lib/typescript/module/screen/use-intrinsic-content-height.d.ts +3 -0
  621. package/lib/typescript/module/screen/use-intrinsic-content-height.d.ts.map +1 -0
  622. package/lib/typescript/module/screen/use-screen-viewport.d.ts.map +1 -1
  623. package/lib/typescript/module/scroll/constants.d.ts +2 -0
  624. package/lib/typescript/module/scroll/constants.d.ts.map +1 -1
  625. package/lib/typescript/module/scroll/owner-handoff.d.ts +3 -1
  626. package/lib/typescript/module/scroll/owner-handoff.d.ts.map +1 -1
  627. package/lib/typescript/module/scroll/use-scroll-restoration.web.d.ts.map +1 -1
  628. package/lib/typescript/module/sidebar/Sidebar.d.ts.map +1 -1
  629. package/lib/typescript/module/sidebar/arrangement.d.ts +32 -0
  630. package/lib/typescript/module/sidebar/arrangement.d.ts.map +1 -0
  631. package/lib/typescript/module/sidebar/index.d.ts +1 -0
  632. package/lib/typescript/module/sidebar/index.d.ts.map +1 -1
  633. package/lib/typescript/module/sidebar/types.d.ts +13 -1
  634. package/lib/typescript/module/sidebar/types.d.ts.map +1 -1
  635. package/lib/typescript/module/tab-bar/TabBarBase.d.ts.map +1 -1
  636. package/lib/typescript/module/tab-bar/shared.d.ts +2 -0
  637. package/lib/typescript/module/tab-bar/shared.d.ts.map +1 -1
  638. package/lib/typescript/module/tab-bar/types.d.ts +2 -0
  639. package/lib/typescript/module/tab-bar/types.d.ts.map +1 -1
  640. package/lib/typescript/module/tab-pager/TabPagerBottomBar.d.ts +1 -1
  641. package/lib/typescript/module/tab-pager/TabPagerBottomBar.d.ts.map +1 -1
  642. package/lib/typescript/module/tab-pager/types.d.ts +4 -1
  643. package/lib/typescript/module/tab-pager/types.d.ts.map +1 -1
  644. package/package.json +154 -1
  645. package/src/__tests__/support/public-part-classifications.json +22 -1
  646. package/src/__tests__/support/yoga-host-tree.ts +67 -4
  647. package/src/app-shell/AppShell.tsx +7 -3
  648. package/src/app-shell/AppShellEngine.tsx +6 -2
  649. package/src/app-shell/AppShellPanelLayout.tsx +466 -189
  650. package/src/app-shell/RetainedPanelLayout.tsx +7 -1
  651. package/src/app-shell/panel-layout-css.ts +41 -27
  652. package/src/app-shell/panel-layout-types.ts +11 -2
  653. package/src/app-shell/panel-layout.ts +49 -256
  654. package/src/app-shell/panel-motion.ts +34 -52
  655. package/src/app-shell/panel-transitions.ts +39 -0
  656. package/src/app-shell/shell-layout-css.ts +6 -2
  657. package/src/app-shell/types.ts +4 -0
  658. package/src/app-shell/use-panel-exit-completion.ts +95 -0
  659. package/src/app-shell/use-panel-reorder.ts +2 -2
  660. package/src/app-shell/use-panel-resize.ts +37 -10
  661. package/src/app-shell/use-panel-reveal.ts +4 -9
  662. package/src/bottom-bar/BottomBarBase.tsx +230 -46
  663. package/src/bottom-bar/types.ts +10 -2
  664. package/src/bottom-sheet/BottomSheetBase.tsx +6 -2
  665. package/src/bottom-sheet/types.ts +2 -0
  666. package/src/button/GlyphAttention.tsx +100 -0
  667. package/src/button/GlyphButton.tsx +21 -6
  668. package/src/button/types.ts +11 -0
  669. package/src/chat-composer/CompactComposer.tsx +7 -0
  670. package/src/chat-composer/CompactComposer.web.tsx +7 -0
  671. package/src/chat-composer/compact-text.ts +4 -0
  672. package/src/chat-composer/compact-types.ts +47 -0
  673. package/src/chat-composer/create-compact-composer.tsx +213 -0
  674. package/src/chat-composer/index.ts +8 -0
  675. package/src/chat-composer/index.web.ts +8 -0
  676. package/src/chat-composer/messages.ts +16 -0
  677. package/src/dialog/DialogBottomSheet.tsx +13 -2
  678. package/src/dialog/types.ts +2 -0
  679. package/src/engagement-bar/EngagementAction.tsx +5 -4
  680. package/src/engagement-bar/EngagementBar.tsx +30 -5
  681. package/src/engagement-bar/EngagementPop.tsx +11 -3
  682. package/src/engagement-bar/context.ts +1 -0
  683. package/src/engagement-bar/paint.ts +60 -13
  684. package/src/engagement-bar/types.ts +10 -1
  685. package/src/hooks/use-border-box-size.ts +38 -0
  686. package/src/icons/index.ts +2 -1
  687. package/src/icons/social/BookmarkFillIcon.tsx +6 -0
  688. package/src/icons/social/BookmarkIcon.tsx +6 -0
  689. package/src/icons/social/GifAttachmentIcon.tsx +6 -0
  690. package/src/icons/social/LikeFillIcon.tsx +7 -0
  691. package/src/icons/social/LikeIcon.tsx +8 -0
  692. package/src/icons/social/MediaAttachmentIcon.tsx +6 -0
  693. package/src/icons/social/ReplyIcon.tsx +8 -0
  694. package/src/icons/social/RepostIcon.tsx +6 -0
  695. package/src/icons/social/ShareIcon.tsx +6 -0
  696. package/src/icons/social/index.ts +9 -0
  697. package/src/index.ts +5 -0
  698. package/src/index.web.ts +5 -0
  699. package/src/layout/ScrollBar.web.tsx +74 -40
  700. package/src/layout/bottom-edge.tsx +17 -0
  701. package/src/layout/scroll-metrics.tsx +2 -0
  702. package/src/layout/types.ts +2 -2
  703. package/src/list/VirtualList.tsx +18 -0
  704. package/src/list/VirtualList.web.tsx +69 -22
  705. package/src/list/flash-list-module.ts +2 -0
  706. package/src/locale/translations/ar.ts +9 -0
  707. package/src/locale/translations/bn.ts +9 -0
  708. package/src/locale/translations/ca.ts +10 -0
  709. package/src/locale/translations/de.ts +10 -0
  710. package/src/locale/translations/es.ts +10 -0
  711. package/src/locale/translations/fr.ts +10 -0
  712. package/src/locale/translations/hi.ts +9 -0
  713. package/src/locale/translations/id.ts +10 -0
  714. package/src/locale/translations/it.ts +10 -0
  715. package/src/locale/translations/ja.ts +10 -0
  716. package/src/locale/translations/pt.ts +10 -0
  717. package/src/locale/translations/ru.ts +10 -0
  718. package/src/locale/translations/tr.ts +10 -0
  719. package/src/locale/translations/types.ts +5 -1
  720. package/src/locale/translations/zh.ts +9 -0
  721. package/src/page-header/EdgeScrim.tsx +29 -9
  722. package/src/page-header/PageHeader.tsx +10 -6
  723. package/src/page-header/types.ts +2 -0
  724. package/src/screen/ScreenBase.tsx +13 -6
  725. package/src/screen/ScreenScrollViewBase.tsx +24 -2
  726. package/src/screen/context.ts +3 -0
  727. package/src/screen/use-intrinsic-content-height.ts +56 -0
  728. package/src/screen/use-screen-viewport.ts +60 -11
  729. package/src/scroll/constants.ts +3 -0
  730. package/src/scroll/owner-handoff.ts +45 -11
  731. package/src/scroll/use-scroll-restoration.web.ts +4 -10
  732. package/src/sidebar/Sidebar.tsx +146 -121
  733. package/src/sidebar/arrangement.ts +47 -0
  734. package/src/sidebar/index.ts +6 -0
  735. package/src/sidebar/types.ts +13 -1
  736. package/src/tab-bar/TabBarBase.tsx +193 -27
  737. package/src/tab-bar/shared.ts +2 -0
  738. package/src/tab-bar/types.ts +2 -0
  739. package/src/tab-pager/TabPagerBottomBar.tsx +23 -3
  740. package/src/tab-pager/types.ts +4 -1
@@ -0,0 +1,56 @@
1
+ import { useCallback, useLayoutEffect, useRef } from 'react';
2
+ import { useScreenContext, useScreenViewport } from './context';
3
+
4
+ /** Existing content-layout callbacks publish a metric; this hook never observes or sizes layout. */
5
+ export function useIntrinsicContentHeight() {
6
+ const viewport = useScreenViewport();
7
+ const screen = useScreenContext();
8
+ const source = useRef({});
9
+ const active = viewport?.active !== false;
10
+ const publish = viewport?.metrics.intrinsicContentHeight
11
+ ? viewport.setIntrinsicContentHeight
12
+ : undefined;
13
+ const contentNode = useRef<HTMLElement | null>(null);
14
+ const measure = useCallback(
15
+ (height: number, node?: HTMLElement | null) => {
16
+ if (!active || !publish) return;
17
+ if (node) contentNode.current = node;
18
+ const root = viewport?.contentRef?.current;
19
+ if (node) {
20
+ // The content's own box includes list headers, footers and padding.
21
+ // Its offset includes preceding content; only ancestor bottom padding
22
+ // remains. Never substitute scrollHeight, whose minimum is the viewport.
23
+ if (
24
+ !(root instanceof HTMLElement) ||
25
+ !root.contains(node) ||
26
+ !node.getClientRects().length
27
+ ) {
28
+ publish(source.current, -1);
29
+ return;
30
+ }
31
+ const style = getComputedStyle(node);
32
+ if (Number.parseFloat(style.flexGrow) > 0 || Number.parseFloat(style.minHeight) > 0) {
33
+ publish(source.current, -1);
34
+ return;
35
+ }
36
+ height += node.getBoundingClientRect().top - root.getBoundingClientRect().top;
37
+ let parent = node.parentElement;
38
+ while (parent) {
39
+ height += Number.parseFloat(getComputedStyle(parent).paddingBottom) || 0;
40
+ if (parent === root) break;
41
+ parent = parent.parentElement;
42
+ }
43
+ }
44
+ publish(source.current, Number.isFinite(height) && height >= 0 ? height : -1);
45
+ },
46
+ [active, publish, viewport?.contentRef, screen?.topInset, screen?.bottomInset],
47
+ );
48
+ useLayoutEffect(() => {
49
+ if (!active || !publish) return;
50
+ publish(source.current, -1);
51
+ const node = contentNode.current;
52
+ if (node) measure(node.offsetHeight, node);
53
+ return () => publish(source.current, null);
54
+ }, [active, publish, measure]);
55
+ return publish ? measure : undefined;
56
+ }
@@ -1,4 +1,11 @@
1
- import { useEffect, useLayoutEffect, useMemo, useRef, type MutableRefObject } from 'react';
1
+ import {
2
+ useCallback,
3
+ useEffect,
4
+ useLayoutEffect,
5
+ useMemo,
6
+ useRef,
7
+ type MutableRefObject,
8
+ } from 'react';
2
9
  import { Platform } from 'react-native';
3
10
  import { useSharedValue } from 'react-native-reanimated';
4
11
  import { animateMotion } from '../motion/recipes';
@@ -6,10 +13,15 @@ import type { useScrollRestoration as UseScrollRestoration } from '../scroll/use
6
13
  import type { ScrollRestorationTarget } from '../scroll/types';
7
14
  import type { ScreenContextValue } from './context';
8
15
  import { useOptionalScrollRestorationContext } from '../scroll/context';
9
- import { recordScrollOwnerHandoff } from '../scroll/owner-handoff';
16
+ import { readScrollOwnerHandoff, recordScrollOwnerHandoff } from '../scroll/owner-handoff';
10
17
  import type { ScreenViewportValue, ScreenHostValue } from './context';
11
18
  import { useRegisterScreenScroller } from './reselect';
12
19
  import { usePrefersReducedMotion } from '../hooks/use-prefers-reduced-motion';
20
+ import type { ScrollMetrics } from '../layout/scroll-metrics';
21
+
22
+ // Retained route Screens can share one panel metric. An outgoing cleanup must
23
+ // not clear the next Screen's measurement.
24
+ const intrinsicOwners = new WeakMap<ScrollMetrics, object>();
13
25
 
14
26
  const useNoContentId = () => null;
15
27
 
@@ -32,7 +44,7 @@ export function useScreenViewportBinding(
32
44
  const contentRef = useRef<unknown>(null);
33
45
  const contentHeight = useSharedValue(-1);
34
46
  const viewportHeight = useSharedValue(0);
35
- const metrics = useMemo(
47
+ const metrics = useMemo<ScrollMetrics>(
36
48
  () =>
37
49
  enabled && host?.metrics
38
50
  ? host.metrics
@@ -43,6 +55,37 @@ export function useScreenViewportBinding(
43
55
  const restoring = useRef(false);
44
56
  const active = useRef(screen.active);
45
57
  active.current = screen.active;
58
+ const intrinsicScope = useMemo(
59
+ () => ({ sources: new Map<object, number>() }),
60
+ [contentId, metrics],
61
+ );
62
+ const currentIntrinsicScope = useRef(intrinsicScope);
63
+ currentIntrinsicScope.current = intrinsicScope;
64
+ const setIntrinsicContentHeight = useCallback(
65
+ (source: object, height: number | null) => {
66
+ const metric = metrics.intrinsicContentHeight;
67
+ if (!metric || currentIntrinsicScope.current !== intrinsicScope) return;
68
+ if (height === null) intrinsicScope.sources.delete(source);
69
+ else if (enabled && active.current) intrinsicScope.sources.set(source, height);
70
+ else return;
71
+ if (height !== null) intrinsicOwners.set(metrics, intrinsicScope);
72
+ if (intrinsicOwners.get(metrics) !== intrinsicScope) return;
73
+ const values = [...intrinsicScope.sources.values()];
74
+ metric.value =
75
+ values.length && values.every((value) => value >= 0) ? Math.max(...values) : -1;
76
+ },
77
+ [enabled, intrinsicScope, metrics],
78
+ );
79
+ useLayoutEffect(() => {
80
+ if (!enabled || !screen.active) return;
81
+ return () => {
82
+ intrinsicScope.sources.clear();
83
+ if (intrinsicOwners.get(metrics) === intrinsicScope) {
84
+ intrinsicOwners.delete(metrics);
85
+ if (metrics.intrinsicContentHeight) metrics.intrinsicContentHeight.value = -1;
86
+ }
87
+ };
88
+ }, [enabled, screen.active, intrinsicScope, metrics]);
46
89
  const reducedMotion = usePrefersReducedMotion();
47
90
  const owner = useRef<{
48
91
  documentFlow: boolean;
@@ -56,6 +99,8 @@ export function useScreenViewportBinding(
56
99
  useLayoutEffect(() => {
57
100
  if (!enabled || !web || typeof window === 'undefined') return;
58
101
  const previous = owner.current;
102
+ const element = scrollRef.current as HTMLElement | null;
103
+ const target = documentFlow ? window : element;
59
104
  let releaseHandoff: (() => void) | undefined;
60
105
  if (
61
106
  previous &&
@@ -64,9 +109,10 @@ export function useScreenViewportBinding(
64
109
  previous.active &&
65
110
  screen.active
66
111
  ) {
67
- const element = scrollRef.current as HTMLElement | null;
68
- const target = documentFlow ? window : element;
69
- if (target) releaseHandoff = recordScrollOwnerHandoff(target, previous.offset);
112
+ if (target)
113
+ releaseHandoff = recordScrollOwnerHandoff(target, previous.offset, (offset) => {
114
+ if (owner.current?.documentFlow === documentFlow) owner.current.offset = offset;
115
+ });
70
116
  if (documentFlow) window.scrollTo({ top: previous.offset, behavior: 'instant' });
71
117
  else if (element) element.scrollTop = previous.offset;
72
118
  }
@@ -74,9 +120,9 @@ export function useScreenViewportBinding(
74
120
  contentId,
75
121
  documentFlow,
76
122
  active: screen.active,
77
- offset: documentFlow
78
- ? window.scrollY
79
- : ((scrollRef.current as HTMLElement | null)?.scrollTop ?? 0),
123
+ offset:
124
+ (target ? readScrollOwnerHandoff(target) : undefined) ??
125
+ (documentFlow ? window.scrollY : (element?.scrollTop ?? 0)),
80
126
  };
81
127
  // A newly mounted router sidecar can focus on a later commit. Retain the
82
128
  // transfer for this active owner lifetime instead of expiring it during
@@ -95,7 +141,8 @@ export function useScreenViewportBinding(
95
141
  ? (document.scrollingElement ?? document.documentElement)
96
142
  : element!;
97
143
  const y = documentFlow ? window.scrollY : node.scrollTop;
98
- if (owner.current?.documentFlow === documentFlow) owner.current.offset = Math.max(0, y);
144
+ if (owner.current?.documentFlow === documentFlow)
145
+ owner.current.offset = readScrollOwnerHandoff(target) ?? Math.max(0, y);
99
146
  metrics.scrollY.value = Math.max(0, y);
100
147
  metrics.contentHeight.value = node.scrollHeight;
101
148
  metrics.viewportHeight.value = Math.max(0, node.clientHeight - (documentFlow ? reserved : 0));
@@ -127,6 +174,8 @@ export function useScreenViewportBinding(
127
174
  scrollRef: documentFlow ? null : scrollRef,
128
175
  metrics,
129
176
  active: screen.active,
177
+ contentRef,
178
+ setIntrinsicContentHeight,
130
179
  scrollTo(options) {
131
180
  if (!active.current) return;
132
181
  if (web) {
@@ -146,7 +195,7 @@ export function useScreenViewportBinding(
146
195
  }
147
196
  },
148
197
  }),
149
- [web, documentFlow, metrics, screen.active, scrollRef],
198
+ [web, documentFlow, metrics, screen.active, scrollRef, setIntrinsicContentHeight],
150
199
  );
151
200
  // The screen's own viewport answers a reselect, as the page: a list scrolling
152
201
  // inside it wins.
@@ -5,3 +5,6 @@ export const SCROLL_USER_TAKEOVER_EVENTS = [
5
5
  'pointerdown',
6
6
  'keydown',
7
7
  ] as const;
8
+
9
+ /** Fractional CSS pixels may round when the browser accepts a restored offset. */
10
+ export const SCROLL_RESTORE_TOLERANCE_PX = 2;
@@ -1,25 +1,46 @@
1
- import { SCROLL_USER_TAKEOVER_EVENTS } from './constants';
1
+ import { SCROLL_RESTORE_TOLERANCE_PX, SCROLL_USER_TAKEOVER_EVENTS } from './constants';
2
2
 
3
- /** An active Screen's owner transfer, consumed once when restoration focuses. */
4
- const offsets = new WeakMap<object, { offset: number; release(): void }>();
3
+ /** One restoration claim; keep its intent until the owner accepts it or the user takes over. */
4
+ const offsets = new WeakMap<
5
+ object,
6
+ {
7
+ offset: number;
8
+ consumed: boolean;
9
+ pending: boolean;
10
+ current(): number | undefined;
11
+ release(): void;
12
+ }
13
+ >();
5
14
 
6
- export function recordScrollOwnerHandoff(owner: object, offset: number) {
15
+ export function recordScrollOwnerHandoff(
16
+ owner: object,
17
+ offset: number,
18
+ onTakeOver?: (offset: number) => void,
19
+ ) {
7
20
  offsets.get(owner)?.release();
8
21
  const target = owner as Partial<EventTarget> & { scrollTop?: number };
9
22
  let userTookOver = false;
23
+ const current = () =>
24
+ typeof window !== 'undefined' && owner === window ? window.scrollY : target.scrollTop;
10
25
  const observe = () => {
11
- if (!userTookOver) return;
12
- const current =
13
- typeof window !== 'undefined' && owner === window ? window.scrollY : target.scrollTop;
14
- if (typeof current === 'number' && Number.isFinite(current))
15
- transfer.offset = Math.max(0, current);
26
+ const value = current();
27
+ if (value !== undefined && Math.abs(value - transfer.offset) <= SCROLL_RESTORE_TOLERANCE_PX)
28
+ transfer.pending = false;
29
+ if (userTookOver && typeof value === 'number' && Number.isFinite(value))
30
+ transfer.offset = Math.max(0, value);
31
+ if (transfer.consumed && !transfer.pending) transfer.release();
16
32
  };
17
33
  const takeOver = () => {
18
34
  userTookOver = true;
35
+ transfer.pending = false;
19
36
  observe();
37
+ onTakeOver?.(transfer.offset);
20
38
  };
21
39
  const transfer = {
22
40
  offset,
41
+ consumed: false,
42
+ pending: true,
43
+ current,
23
44
  release() {
24
45
  // A departed Screen must not delete a newer Screen's transfer on the
25
46
  // shared window owner. Release belongs to this transfer, not its node.
@@ -41,6 +62,19 @@ export function recordScrollOwnerHandoff(owner: object, offset: number) {
41
62
 
42
63
  export function takeScrollOwnerHandoff(owner: object): number | undefined {
43
64
  const transfer = offsets.get(owner);
44
- transfer?.release();
45
- return transfer?.offset;
65
+ if (!transfer || transfer.consumed) return undefined;
66
+ transfer.consumed = true;
67
+ readScrollOwnerHandoff(owner);
68
+ return transfer.offset;
69
+ }
70
+
71
+ /** Geometry can clamp a receiving owner before its virtual content is ready. */
72
+ export function readScrollOwnerHandoff(owner: object): number | undefined {
73
+ const transfer = offsets.get(owner);
74
+ if (!transfer) return undefined;
75
+ const current = transfer.current();
76
+ if (current !== undefined && Math.abs(current - transfer.offset) <= SCROLL_RESTORE_TOLERANCE_PX)
77
+ transfer.pending = false;
78
+ if (transfer.consumed && !transfer.pending) transfer.release();
79
+ return transfer.pending ? transfer.offset : undefined;
46
80
  }
@@ -41,7 +41,10 @@
41
41
  import { useCallback, useMemo, useRef, useState } from 'react';
42
42
 
43
43
  import { useScrollRestorationContext } from './context';
44
- import { SCROLL_USER_TAKEOVER_EVENTS } from './constants';
44
+ import {
45
+ SCROLL_RESTORE_TOLERANCE_PX as RESTORE_STICK_TOLERANCE_PX,
46
+ SCROLL_USER_TAKEOVER_EVENTS,
47
+ } from './constants';
45
48
  import { createScroller, resolveScrollTarget } from './scrollable.web';
46
49
  import { deriveScrollKey } from './store';
47
50
  import { takeScrollOwnerHandoff } from './owner-handoff';
@@ -61,15 +64,6 @@ import type {
61
64
  */
62
65
  const RESTORE_FRAME_CAP = 30;
63
66
 
64
- /**
65
- * Tolerance (in CSS pixels) for considering a restore "stuck". After writing
66
- * `element.scrollTop = target`, the browser may clamp it to the current
67
- * `scrollHeight - clientHeight`; if the resulting offset is within this many
68
- * pixels of the target we treat the restore as complete. Sub-pixel rounding and
69
- * fractional device-pixel ratios make an exact equality check unreliable.
70
- */
71
- const RESTORE_STICK_TOLERANCE_PX = 2;
72
-
73
67
  /**
74
68
  * This platform observes offsets by subscribing to the resolved DOM node's own
75
69
  * `scroll` event, so it needs nothing from the caller. The handler is still
@@ -1,3 +1,4 @@
1
+ import { resolveSidebarArrangement } from './arrangement';
1
2
  import { resolvePaintMode } from '../theme/paint';
2
3
  import {
3
4
  SurfaceLevelProvider,
@@ -200,6 +201,7 @@ const SidebarPanel: React.FC<SidebarProps> = ({
200
201
  primaryAction,
201
202
  primaryActionPlacement = 'bottom',
202
203
  contentAlignment = 'start',
204
+ arrangement,
203
205
  content,
204
206
  onScroll,
205
207
  footer,
@@ -884,6 +886,11 @@ const SidebarPanel: React.FC<SidebarProps> = ({
884
886
 
885
887
  // Keep the same children mounted while the header changes from a row to a
886
888
  // column. Numeric positions share the panel clock, including reversals.
889
+ const placed = resolveSidebarArrangement(contentAlignment, arrangement);
890
+ // The logo and its account menu move into the centred group only where the panel draws its own
891
+ // header row: a consumer's `header` replaces the row, and the mobile drawer keeps its own.
892
+ const identityGrouped =
893
+ !mobile && header == null && Boolean(logo || accountMenu) && placed.logo === 'group';
887
894
  const headerRow = mobile ? (
888
895
  <>
889
896
  <View
@@ -921,7 +928,7 @@ const SidebarPanel: React.FC<SidebarProps> = ({
921
928
  testID="sidebar-header"
922
929
  style={[{ width: '100%', position: 'relative' }, headerGeometry]}
923
930
  >
924
- {logo || accountMenu ? (
931
+ {!identityGrouped && (logo || accountMenu) ? (
925
932
  <Animated.View
926
933
  style={[
927
934
  { position: 'absolute', insetInlineStart: 0, minWidth: 0 },
@@ -947,7 +954,7 @@ const SidebarPanel: React.FC<SidebarProps> = ({
947
954
  {headerControl}
948
955
  </Animated.View>
949
956
  </Animated.View>
950
- {logo ? accountMenu : null}
957
+ {!identityGrouped && logo ? accountMenu : null}
951
958
  </>
952
959
  );
953
960
 
@@ -965,6 +972,134 @@ const SidebarPanel: React.FC<SidebarProps> = ({
965
972
  />
966
973
  ));
967
974
 
975
+ // Anything grouped is centred with the destinations in the room above the persistent footer;
976
+ // what is not stays pinned (the controls at the top, the footer at the bottom).
977
+ const { centred } = placed;
978
+ const actionPlacement =
979
+ arrangement?.primaryAction ?? (primaryActionPlacement === 'top' ? 'top' : placed.primaryAction);
980
+ const primaryActionNode = primaryAction ? (
981
+ <SidebarPrimaryAction
982
+ action={primaryAction}
983
+ collapsed={collapsed}
984
+ placement={actionPlacement === 'top' ? 'top' : undefined}
985
+ testID={testID ? `${testID}-primary-action` : undefined}
986
+ />
987
+ ) : null;
988
+ const identityNode = identityGrouped ? (
989
+ <Animated.View style={[{ width: '100%', gap: 12, paddingBottom: 12 }, scrollInsets]}>
990
+ {logo ? (
991
+ <SidebarLogoView logo={logo} collapsed={collapsed} testID="sidebar-logo" />
992
+ ) : (
993
+ accountMenu
994
+ )}
995
+ {logo ? accountMenu : null}
996
+ </Animated.View>
997
+ ) : null;
998
+ const headerNode = (
999
+ <Animated.View
1000
+ testID={`${testID ?? 'sidebar'}-fixed-header`}
1001
+ style={[
1002
+ {
1003
+ width: '100%',
1004
+ gap: 12,
1005
+ paddingTop: Math.max(expandedPadding, windowControlsRoom),
1006
+ paddingBottom: 12,
1007
+ },
1008
+ scrollInsets,
1009
+ ]}
1010
+ >
1011
+ {header != null ? (typeof header === 'function' ? header({ collapsed }) : header) : headerRow}
1012
+ {typeof toolbar === 'function' ? toolbar({ collapsed }) : toolbar}
1013
+ {actionPlacement === 'top' ? primaryActionNode : null}
1014
+ {inlineModes ? null : modeSwitcher}
1015
+ {showSearch && !flatMobile ? searchButton : null}
1016
+ </Animated.View>
1017
+ );
1018
+ const mainRegion = (
1019
+ <Animated.View
1020
+ testID={`${testID ?? 'sidebar'}-main-region`}
1021
+ style={[
1022
+ {
1023
+ width: '100%',
1024
+ flexGrow: centred ? 0 : 1,
1025
+ paddingBottom: 8,
1026
+ gap: hasSections ? 24 : 0,
1027
+ },
1028
+ scrollInsets,
1029
+ ]}
1030
+ >
1031
+ {shownItems.length > 0 || !hasTree ? (
1032
+ <Animated.View
1033
+ collapsable={false}
1034
+ role="navigation"
1035
+ style={[{ width: '100%', gap: 4 }, !hasTree && navInset]}
1036
+ >
1037
+ {nothingMatches && !hasTree ? (
1038
+ <Text
1039
+ variant="body-regular"
1040
+ style={{
1041
+ paddingLeft: 8,
1042
+ paddingRight: 8,
1043
+ paddingTop: 12,
1044
+ paddingBottom: 12,
1045
+ color: palette.textTertiary,
1046
+ }}
1047
+ >
1048
+ {noResultsLabel}
1049
+ </Text>
1050
+ ) : (
1051
+ shownItems.map(renderRow)
1052
+ )}
1053
+ </Animated.View>
1054
+ ) : null}
1055
+ {onboarding && !collapsed ? (
1056
+ <SidebarOnboardingCard
1057
+ {...onboarding}
1058
+ testID={onboarding.testID ?? `${testID ?? 'sidebar'}-onboarding`}
1059
+ />
1060
+ ) : null}
1061
+ {collapsed || shownSections.length === 0 ? null : onTreeItemDrop ? (
1062
+ <TreeDragProvider
1063
+ sections={sections}
1064
+ onDrop={onTreeItemDrop}
1065
+ movedLabel={messages.moved}
1066
+ scroll={treeScroll}
1067
+ >
1068
+ {treeView}
1069
+ </TreeDragProvider>
1070
+ ) : (
1071
+ treeView
1072
+ )}
1073
+ {content != null ? (
1074
+ <Animated.View
1075
+ testID={`${testID ?? 'sidebar'}-content`}
1076
+ pointerEvents={collapsed ? 'none' : 'auto'}
1077
+ aria-hidden={collapsed}
1078
+ accessibilityElementsHidden={collapsed}
1079
+ importantForAccessibility={collapsed ? 'no-hide-descendants' : 'auto'}
1080
+ {...(IS_WEB && collapsed ? { inert: true } : {})}
1081
+ ref={contentFade.ref}
1082
+ style={[{ overflow: 'hidden', flexShrink: 0 }, contentMorph, contentFade.style]}
1083
+ >
1084
+ <Animated.View
1085
+ onLayout={(event) => setContentHeight(event.nativeEvent.layout.height)}
1086
+ style={contentWidth}
1087
+ >
1088
+ {content}
1089
+ </Animated.View>
1090
+ </Animated.View>
1091
+ ) : null}
1092
+ {nothingMatches && hasTree ? (
1093
+ <Text
1094
+ variant="body-regular"
1095
+ style={{ paddingLeft: 8, paddingRight: 8, color: palette.textTertiary }}
1096
+ >
1097
+ {noResultsLabel}
1098
+ </Text>
1099
+ ) : null}
1100
+ </Animated.View>
1101
+ );
1102
+
968
1103
  const sidebar = (
969
1104
  <SidebarSizeProvider value={size}>
970
1105
  <SidebarGeometryProvider value={geometry}>
@@ -1025,37 +1160,7 @@ const SidebarPanel: React.FC<SidebarProps> = ({
1025
1160
  overflow: 'hidden',
1026
1161
  }}
1027
1162
  contentContainerStyle={{ flexGrow: 1 }}
1028
- stickyHeader={
1029
- <Animated.View
1030
- testID={`${testID ?? 'sidebar'}-fixed-header`}
1031
- style={[
1032
- {
1033
- width: '100%',
1034
- gap: 12,
1035
- paddingTop: Math.max(expandedPadding, windowControlsRoom),
1036
- paddingBottom: 12,
1037
- },
1038
- scrollInsets,
1039
- ]}
1040
- >
1041
- {header != null
1042
- ? typeof header === 'function'
1043
- ? header({ collapsed })
1044
- : header
1045
- : headerRow}
1046
- {typeof toolbar === 'function' ? toolbar({ collapsed }) : toolbar}
1047
- {primaryAction && primaryActionPlacement === 'top' ? (
1048
- <SidebarPrimaryAction
1049
- action={primaryAction}
1050
- collapsed={collapsed}
1051
- placement="top"
1052
- testID={testID ? `${testID}-primary-action` : undefined}
1053
- />
1054
- ) : null}
1055
- {inlineModes ? null : modeSwitcher}
1056
- {showSearch && !flatMobile ? searchButton : null}
1057
- </Animated.View>
1058
- }
1163
+ stickyHeader={headerNode}
1059
1164
  stickyFooter={
1060
1165
  <Animated.View
1061
1166
  testID={`${testID ?? 'sidebar'}-sticky-footer`}
@@ -1069,13 +1174,7 @@ const SidebarPanel: React.FC<SidebarProps> = ({
1069
1174
  scrollInsets,
1070
1175
  ]}
1071
1176
  >
1072
- {primaryAction && primaryActionPlacement === 'bottom' ? (
1073
- <SidebarPrimaryAction
1074
- action={primaryAction}
1075
- collapsed={collapsed}
1076
- testID={testID ? `${testID}-primary-action` : undefined}
1077
- />
1078
- ) : null}
1177
+ {actionPlacement === 'bottom' ? primaryActionNode : null}
1079
1178
  {showThemeToggle ? (
1080
1179
  <Animated.View
1081
1180
  testID="sidebar-theme-morph"
@@ -1160,89 +1259,15 @@ const SidebarPanel: React.FC<SidebarProps> = ({
1160
1259
  </Animated.View>
1161
1260
  }
1162
1261
  >
1163
- <Animated.View
1164
- testID={`${testID ?? 'sidebar'}-main-region`}
1165
- style={[
1166
- {
1167
- width: '100%',
1168
- flexGrow: 1,
1169
- paddingBottom: 8,
1170
- gap: hasSections ? 24 : 0,
1171
- justifyContent: contentAlignment === 'center' ? 'center' : undefined,
1172
- },
1173
- scrollInsets,
1174
- ]}
1175
- >
1176
- {shownItems.length > 0 || !hasTree ? (
1177
- <Animated.View
1178
- collapsable={false}
1179
- role="navigation"
1180
- style={[{ width: '100%', gap: 4 }, !hasTree && navInset]}
1181
- >
1182
- {nothingMatches && !hasTree ? (
1183
- <Text
1184
- variant="body-regular"
1185
- style={{
1186
- paddingLeft: 8,
1187
- paddingRight: 8,
1188
- paddingTop: 12,
1189
- paddingBottom: 12,
1190
- color: palette.textTertiary,
1191
- }}
1192
- >
1193
- {noResultsLabel}
1194
- </Text>
1195
- ) : (
1196
- shownItems.map(renderRow)
1197
- )}
1262
+ <View style={{ flexGrow: 1, justifyContent: centred ? 'center' : undefined }}>
1263
+ {identityNode}
1264
+ {mainRegion}
1265
+ {actionPlacement === 'group' ? (
1266
+ <Animated.View style={[{ width: '100%' }, scrollInsets]}>
1267
+ {primaryActionNode}
1198
1268
  </Animated.View>
1199
1269
  ) : null}
1200
- {onboarding && !collapsed ? (
1201
- <SidebarOnboardingCard
1202
- {...onboarding}
1203
- testID={onboarding.testID ?? `${testID ?? 'sidebar'}-onboarding`}
1204
- />
1205
- ) : null}
1206
- {collapsed || shownSections.length === 0 ? null : onTreeItemDrop ? (
1207
- <TreeDragProvider
1208
- sections={sections}
1209
- onDrop={onTreeItemDrop}
1210
- movedLabel={messages.moved}
1211
- scroll={treeScroll}
1212
- >
1213
- {treeView}
1214
- </TreeDragProvider>
1215
- ) : (
1216
- treeView
1217
- )}
1218
- {content != null ? (
1219
- <Animated.View
1220
- testID={`${testID ?? 'sidebar'}-content`}
1221
- pointerEvents={collapsed ? 'none' : 'auto'}
1222
- aria-hidden={collapsed}
1223
- accessibilityElementsHidden={collapsed}
1224
- importantForAccessibility={collapsed ? 'no-hide-descendants' : 'auto'}
1225
- {...(IS_WEB && collapsed ? { inert: true } : {})}
1226
- ref={contentFade.ref}
1227
- style={[{ overflow: 'hidden', flexShrink: 0 }, contentMorph, contentFade.style]}
1228
- >
1229
- <Animated.View
1230
- onLayout={(event) => setContentHeight(event.nativeEvent.layout.height)}
1231
- style={contentWidth}
1232
- >
1233
- {content}
1234
- </Animated.View>
1235
- </Animated.View>
1236
- ) : null}
1237
- {nothingMatches && hasTree ? (
1238
- <Text
1239
- variant="body-regular"
1240
- style={{ paddingLeft: 8, paddingRight: 8, color: palette.textTertiary }}
1241
- >
1242
- {noResultsLabel}
1243
- </Text>
1244
- ) : null}
1245
- </Animated.View>
1270
+ </View>
1246
1271
  </SidebarScrollArea>
1247
1272
  </AnimatedStyledView>
1248
1273
  </CollapseProvider>
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Where the parts of a sidebar sit in its column.
3
+ *
4
+ * Every sidebar has three regions: a pinned top (the controls: collapse, mode
5
+ * toggle), a pinned bottom (the `footer`: an account control), and the room
6
+ * between them. The destinations always live in that room. A part that is
7
+ * `group` joins them there, as one block centred in the room; a part that is
8
+ * pinned stays in its region.
9
+ */
10
+
11
+ /** Where the logo (or account) row sits. */
12
+ export type SidebarLogoPlacement = 'top' | 'group';
13
+ /** Where the persistent primary action sits. */
14
+ export type SidebarPrimaryActionPlacement = 'bottom' | 'group';
15
+
16
+ export interface SidebarArrangement {
17
+ /** `top` (default) pins the logo with the controls; `group` centres it with the destinations. */
18
+ logo?: SidebarLogoPlacement;
19
+ /** `bottom` (default) pins the action above the footer; `group` centres it with the destinations. */
20
+ primaryAction?: SidebarPrimaryActionPlacement;
21
+ }
22
+
23
+ export interface ResolvedSidebarArrangement {
24
+ logo: SidebarLogoPlacement;
25
+ primaryAction: SidebarPrimaryActionPlacement;
26
+ /** Anything is grouped, so the destinations are centred in the room too. */
27
+ centred: boolean;
28
+ }
29
+
30
+ /**
31
+ * The arrangement a sidebar draws: each part's own placement, else the one
32
+ * `contentAlignment` implies (`center` is the preset that groups every part),
33
+ * else its default. A part that is given always wins over the preset.
34
+ */
35
+ export function resolveSidebarArrangement(
36
+ contentAlignment: 'start' | 'center' | undefined,
37
+ arrangement: SidebarArrangement | undefined,
38
+ ): ResolvedSidebarArrangement {
39
+ const preset = contentAlignment === 'center';
40
+ const logo = arrangement?.logo ?? (preset ? 'group' : 'top');
41
+ const primaryAction = arrangement?.primaryAction ?? (preset ? 'group' : 'bottom');
42
+ return {
43
+ logo,
44
+ primaryAction,
45
+ centred: preset || logo === 'group' || primaryAction === 'group',
46
+ };
47
+ }