@astryxdesign/core 0.7.11-canary.ed0adf3 → 0.7.12-canary.ccb4a6d

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 (573) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/dist/AppShell/AppShellMobileContext.d.ts.map +1 -1
  3. package/dist/AppShell/AppShellMobileContext.js +4 -3
  4. package/dist/AppShell/useAppShellMainId.d.ts.map +1 -1
  5. package/dist/AppShell/useAppShellMainId.js +3 -2
  6. package/dist/Avatar/AvatarSizeContext.d.ts.map +1 -1
  7. package/dist/Avatar/AvatarSizeContext.js +2 -2
  8. package/dist/Avatar/AvatarStatusLabelContext.d.ts +2 -2
  9. package/dist/Avatar/AvatarStatusLabelContext.d.ts.map +1 -1
  10. package/dist/Avatar/AvatarStatusLabelContext.js +3 -3
  11. package/dist/AvatarGroup/AvatarGroupContext.d.ts.map +1 -1
  12. package/dist/AvatarGroup/AvatarGroupContext.js +2 -2
  13. package/dist/BottomSheet/BottomSheet.d.ts.map +1 -1
  14. package/dist/BottomSheet/BottomSheet.js +2 -1
  15. package/dist/BottomSheet/BottomSheetHostContext.d.ts.map +1 -1
  16. package/dist/BottomSheet/BottomSheetHostContext.js +3 -2
  17. package/dist/BottomSheet/BottomSheetPanel.d.ts +7 -2
  18. package/dist/BottomSheet/BottomSheetPanel.d.ts.map +1 -1
  19. package/dist/BottomSheet/BottomSheetPanel.js +50 -4
  20. package/dist/BottomSheet/BottomSheetSwitcher.d.ts.map +1 -1
  21. package/dist/BottomSheet/BottomSheetSwitcher.js +5 -2
  22. package/dist/BottomSheet/BottomSheetSwitcherContext.d.ts.map +1 -1
  23. package/dist/BottomSheet/BottomSheetSwitcherContext.js +2 -2
  24. package/dist/BottomSheet/bottomSheetEscape.d.ts.map +1 -1
  25. package/dist/BottomSheet/bottomSheetEscape.js +2 -2
  26. package/dist/BottomSheet/bottomSheetStack.d.ts.map +1 -1
  27. package/dist/BottomSheet/bottomSheetStack.js +2 -13
  28. package/dist/BottomSheet/useSheetGestures.d.ts.map +1 -1
  29. package/dist/BottomSheet/useSheetGestures.js +25 -42
  30. package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  31. package/dist/Breadcrumbs/Breadcrumbs.js +2 -2
  32. package/dist/Button/Button.d.ts.map +1 -1
  33. package/dist/Button/Button.js +25 -23
  34. package/dist/Button/buttonHitArea.d.ts +4 -0
  35. package/dist/Button/buttonHitArea.d.ts.map +1 -0
  36. package/dist/Button/buttonHitArea.js +21 -0
  37. package/dist/ButtonGroup/ButtonGroup.d.ts.map +1 -1
  38. package/dist/ButtonGroup/ButtonGroup.js +14 -8
  39. package/dist/ButtonGroup/ButtonGroupContext.d.ts.map +1 -1
  40. package/dist/ButtonGroup/ButtonGroupContext.js +2 -2
  41. package/dist/Carousel/Carousel.d.ts.map +1 -1
  42. package/dist/Carousel/Carousel.js +24 -15
  43. package/dist/Chat/ChatContext.d.ts.map +1 -1
  44. package/dist/Chat/ChatContext.js +6 -5
  45. package/dist/Chat/useChatStreamScroll.d.ts.map +1 -1
  46. package/dist/Chat/useChatStreamScroll.js +7 -22
  47. package/dist/CheckboxInput/CheckboxInput.js +1 -1
  48. package/dist/CheckboxInput/CheckboxRowPressContext.d.ts.map +1 -1
  49. package/dist/CheckboxInput/CheckboxRowPressContext.js +1 -1
  50. package/dist/CheckboxList/CheckboxListContext.d.ts.map +1 -1
  51. package/dist/CheckboxList/CheckboxListContext.js +1 -1
  52. package/dist/Collapsible/CollapsibleGroupContext.d.ts.map +1 -1
  53. package/dist/Collapsible/CollapsibleGroupContext.js +3 -3
  54. package/dist/CommandPalette/CommandPaletteContext.d.ts.map +1 -1
  55. package/dist/CommandPalette/CommandPaletteContext.js +4 -3
  56. package/dist/CommandPalette/busyStartSettle.d.ts.map +1 -1
  57. package/dist/CommandPalette/busyStartSettle.js +2 -2
  58. package/dist/DateInput/TouchDateField.d.ts.map +1 -1
  59. package/dist/DateInput/TouchDateField.js +41 -4
  60. package/dist/Dialog/Dialog.d.ts.map +1 -1
  61. package/dist/Dialog/Dialog.js +2 -1
  62. package/dist/Dialog/DialogContext.d.ts.map +1 -1
  63. package/dist/Dialog/DialogContext.js +3 -2
  64. package/dist/Drawer/Drawer.d.ts.map +1 -1
  65. package/dist/Drawer/Drawer.js +2 -1
  66. package/dist/DropdownMenu/DropdownMenuContext.d.ts.map +1 -1
  67. package/dist/DropdownMenu/DropdownMenuContext.js +6 -5
  68. package/dist/DropdownMenu/lazyMenuBottomSheet.d.ts.map +1 -1
  69. package/dist/DropdownMenu/lazyMenuBottomSheet.js +4 -15
  70. package/dist/DropdownMenu/menuRegionStops.d.ts.map +1 -1
  71. package/dist/DropdownMenu/menuRegionStops.js +2 -37
  72. package/dist/Field/InputClearButton.d.ts.map +1 -1
  73. package/dist/Field/InputClearButton.js +80 -31
  74. package/dist/FormLayout/FormLayoutContext.d.ts.map +1 -1
  75. package/dist/FormLayout/FormLayoutContext.js +2 -2
  76. package/dist/Heading/Heading.d.ts.map +1 -1
  77. package/dist/Heading/Heading.js +19 -16
  78. package/dist/HoverCard/HoverCard.d.ts +1 -2
  79. package/dist/HoverCard/HoverCard.d.ts.map +1 -1
  80. package/dist/HoverCard/useHoverCard.d.ts +1 -2
  81. package/dist/HoverCard/useHoverCard.d.ts.map +1 -1
  82. package/dist/HoverCard/useHoverCard.js +5 -1
  83. package/dist/Icon/IconDefaultSizeContext.d.ts.map +1 -1
  84. package/dist/Icon/IconDefaultSizeContext.js +2 -2
  85. package/dist/InfoTip/InfoTip.js +1 -1
  86. package/dist/InputGroup/InputGroupContext.d.ts.map +1 -1
  87. package/dist/InputGroup/InputGroupContext.js +2 -2
  88. package/dist/InputGroup/InputGroupInternalContext.d.ts.map +1 -1
  89. package/dist/InputGroup/InputGroupInternalContext.js +2 -2
  90. package/dist/InteractiveRoleContext/InteractiveRoleContext.d.ts.map +1 -1
  91. package/dist/InteractiveRoleContext/InteractiveRoleContext.js +5 -3
  92. package/dist/Item/ItemDescriptionContext.d.ts.map +1 -1
  93. package/dist/Item/ItemDescriptionContext.js +3 -3
  94. package/dist/Item/ItemListRowContext.d.ts.map +1 -1
  95. package/dist/Item/ItemListRowContext.js +3 -3
  96. package/dist/Item/ItemMarkerColumnsContext.d.ts +1 -1
  97. package/dist/Item/ItemMarkerColumnsContext.d.ts.map +1 -1
  98. package/dist/Item/ItemMarkerColumnsContext.js +2 -2
  99. package/dist/Layer/LayerContext.d.ts.map +1 -1
  100. package/dist/Layer/LayerContext.js +3 -2
  101. package/dist/Layer/LayerDepthContext.d.ts.map +1 -1
  102. package/dist/Layer/LayerDepthContext.js +3 -2
  103. package/dist/Layer/LayerTouch.d.ts +3 -2
  104. package/dist/Layer/LayerTouch.d.ts.map +1 -1
  105. package/dist/Layer/LayerTouch.js +3 -2
  106. package/dist/Layer/anchorName.d.ts.map +1 -1
  107. package/dist/Layer/anchorName.js +5 -1
  108. package/dist/Layer/inputHold.d.ts.map +1 -1
  109. package/dist/Layer/inputHold.js +115 -13
  110. package/dist/Layer/layerScopedContext.d.ts +5 -2
  111. package/dist/Layer/layerScopedContext.d.ts.map +1 -1
  112. package/dist/Layer/layerScopedContext.js +27 -10
  113. package/dist/Layer/layerSlideRules.d.ts +28 -26
  114. package/dist/Layer/layerSlideRules.d.ts.map +1 -1
  115. package/dist/Layer/layerSlideRules.js +41 -40
  116. package/dist/Layer/modalOutlet.d.ts +16 -3
  117. package/dist/Layer/modalOutlet.d.ts.map +1 -1
  118. package/dist/Layer/modalOutlet.js +41 -17
  119. package/dist/Layer/outsidePress.d.ts +21 -3
  120. package/dist/Layer/outsidePress.d.ts.map +1 -1
  121. package/dist/Layer/outsidePress.js +119 -29
  122. package/dist/Layer/settledBox.d.ts +9 -8
  123. package/dist/Layer/settledBox.d.ts.map +1 -1
  124. package/dist/Layer/settledBox.js +169 -49
  125. package/dist/Layer/toastHost.d.ts.map +1 -1
  126. package/dist/Layer/toastHost.js +3 -2
  127. package/dist/Layer/useLayer.d.ts.map +1 -1
  128. package/dist/Layer/useLayer.js +216 -61
  129. package/dist/Layer/useLayerKeyboardClearance.d.ts +14 -2
  130. package/dist/Layer/useLayerKeyboardClearance.d.ts.map +1 -1
  131. package/dist/Layer/useLayerKeyboardClearance.js +83 -12
  132. package/dist/Layer/useTouchTrigger.d.ts +21 -1
  133. package/dist/Layer/useTouchTrigger.d.ts.map +1 -1
  134. package/dist/Layer/useTouchTrigger.js +61 -37
  135. package/dist/Layout/Layout.d.ts +1 -1
  136. package/dist/Layout/Layout.d.ts.map +1 -1
  137. package/dist/Layout/Layout.js +10 -6
  138. package/dist/Layout/LayoutAreaContext.d.ts.map +1 -1
  139. package/dist/Layout/LayoutAreaContext.js +3 -3
  140. package/dist/Layout/LayoutContent.d.ts +6 -6
  141. package/dist/Layout/LayoutContent.js +9 -9
  142. package/dist/Layout/LayoutDividerContext.d.ts.map +1 -1
  143. package/dist/Layout/LayoutDividerContext.js +2 -2
  144. package/dist/Layout/LayoutSlotsContext.d.ts.map +1 -1
  145. package/dist/Layout/LayoutSlotsContext.js +2 -2
  146. package/dist/Link/LinkContext.d.ts +16 -0
  147. package/dist/Link/LinkContext.d.ts.map +1 -1
  148. package/dist/Link/LinkContext.js +3 -3
  149. package/dist/List/List.d.ts +12 -1
  150. package/dist/List/List.d.ts.map +1 -1
  151. package/dist/List/List.js +29 -10
  152. package/dist/List/ListContext.d.ts +18 -3
  153. package/dist/List/ListContext.d.ts.map +1 -1
  154. package/dist/List/ListContext.js +9 -6
  155. package/dist/List/ListItem.d.ts +13 -4
  156. package/dist/List/ListItem.d.ts.map +1 -1
  157. package/dist/List/ListItem.js +38 -11
  158. package/dist/List/listLayoutUpdates.d.ts +34 -0
  159. package/dist/List/listLayoutUpdates.d.ts.map +1 -0
  160. package/dist/List/listLayoutUpdates.js +539 -0
  161. package/dist/Markdown/Markdown.d.ts.map +1 -1
  162. package/dist/Markdown/Markdown.js +57 -10
  163. package/dist/Markdown/blockDirection.d.ts +26 -0
  164. package/dist/Markdown/blockDirection.d.ts.map +1 -0
  165. package/dist/Markdown/blockDirection.js +68 -0
  166. package/dist/Markdown/plugins/HeadingLinksRenderer.d.ts +3 -1
  167. package/dist/Markdown/plugins/HeadingLinksRenderer.d.ts.map +1 -1
  168. package/dist/Markdown/plugins/HeadingLinksRenderer.js +3 -1
  169. package/dist/MetadataList/MetadataListContext.d.ts.map +1 -1
  170. package/dist/MetadataList/MetadataListContext.js +2 -2
  171. package/dist/NavMenu/NavMenuContext.d.ts.map +1 -1
  172. package/dist/NavMenu/NavMenuContext.js +5 -4
  173. package/dist/Popover/Popover.d.ts.map +1 -1
  174. package/dist/Popover/Popover.js +9 -9
  175. package/dist/Popover/usePopover.d.ts.map +1 -1
  176. package/dist/Popover/usePopover.js +11 -8
  177. package/dist/RadioList/RadioList.d.ts.map +1 -1
  178. package/dist/RadioList/RadioList.js +2 -2
  179. package/dist/RadioList/RadioListItem.js +1 -1
  180. package/dist/RadioList/RadioListReasonContext.d.ts.map +1 -1
  181. package/dist/RadioList/RadioListReasonContext.js +1 -1
  182. package/dist/SegmentedControl/SegmentedControlContext.d.ts.map +1 -1
  183. package/dist/SegmentedControl/SegmentedControlContext.js +2 -2
  184. package/dist/SegmentedControl/SegmentedControlItem.js +1 -1
  185. package/dist/SelectableCard/selectableCardInput.d.ts.map +1 -1
  186. package/dist/SelectableCard/selectableCardInput.js +2 -2
  187. package/dist/Selector/SelectorRowLayoutContext.d.ts.map +1 -1
  188. package/dist/Selector/SelectorRowLayoutContext.js +2 -2
  189. package/dist/SideNav/SideNavCollapseButton.d.ts +4 -3
  190. package/dist/SideNav/SideNavCollapseButton.d.ts.map +1 -1
  191. package/dist/SideNav/SideNavCollapseContext.d.ts.map +1 -1
  192. package/dist/SideNav/SideNavCollapseContext.js +4 -3
  193. package/dist/SideNav/SideNavFocusTargetsContext.d.ts.map +1 -1
  194. package/dist/SideNav/SideNavFocusTargetsContext.js +2 -2
  195. package/dist/SideNav/SideNavItem.d.ts.map +1 -1
  196. package/dist/SideNav/SideNavItem.js +3 -2
  197. package/dist/SideNav/SideNavRenderContext.d.ts.map +1 -1
  198. package/dist/SideNav/SideNavRenderContext.js +4 -3
  199. package/dist/SideNav/railMotion.d.ts +40 -0
  200. package/dist/SideNav/railMotion.d.ts.map +1 -1
  201. package/dist/SideNav/railMotion.js +2 -2
  202. package/dist/SizeContext/SizeContext.d.ts.map +1 -1
  203. package/dist/SizeContext/SizeContext.js +2 -2
  204. package/dist/SnapPaging/SnapPaging.d.ts.map +1 -1
  205. package/dist/SnapPaging/SnapPaging.js +162 -36
  206. package/dist/SnapPaging/snapPagingValue.d.ts +29 -3
  207. package/dist/SnapPaging/snapPagingValue.d.ts.map +1 -1
  208. package/dist/SnapPaging/snapPagingValue.js +38 -6
  209. package/dist/Spinner/SpinnerOwnerContext.d.ts.map +1 -1
  210. package/dist/Spinner/SpinnerOwnerContext.js +2 -2
  211. package/dist/Stepper/StepperContext.d.ts.map +1 -1
  212. package/dist/Stepper/StepperContext.js +3 -3
  213. package/dist/Switch/useSwitchTouch.d.ts.map +1 -1
  214. package/dist/Switch/useSwitchTouch.js +8 -3
  215. package/dist/TabList/TabListContext.d.ts.map +1 -1
  216. package/dist/TabList/TabListContext.js +2 -2
  217. package/dist/Table/BaseTable.d.ts +3 -2
  218. package/dist/Table/BaseTable.d.ts.map +1 -1
  219. package/dist/Table/BaseTable.js +73 -16
  220. package/dist/Table/Table.d.ts.map +1 -1
  221. package/dist/Table/Table.js +3 -2
  222. package/dist/Table/TableContext.d.ts.map +1 -1
  223. package/dist/Table/TableContext.js +2 -2
  224. package/dist/Table/index.d.ts +1 -1
  225. package/dist/Table/index.d.ts.map +1 -1
  226. package/dist/Table/plugins/filtering/useTableFiltering.d.ts.map +1 -1
  227. package/dist/Table/plugins/filtering/useTableFiltering.js +4 -3
  228. package/dist/Table/plugins/rowExpansion/useTableRowExpansion.d.ts.map +1 -1
  229. package/dist/Table/plugins/rowExpansion/useTableRowExpansion.js +5 -3
  230. package/dist/Table/plugins/rowIndex/useTableRowIndex.d.ts +16 -18
  231. package/dist/Table/plugins/rowIndex/useTableRowIndex.d.ts.map +1 -1
  232. package/dist/Table/plugins/rowIndex/useTableRowIndex.js +48 -39
  233. package/dist/Table/plugins/selection/useTableSelection.d.ts.map +1 -1
  234. package/dist/Table/plugins/selection/useTableSelection.js +4 -2
  235. package/dist/Table/plugins/stickyColumns/useTableStickyColumns.d.ts.map +1 -1
  236. package/dist/Table/plugins/stickyColumns/useTableStickyColumns.js +1 -0
  237. package/dist/Table/plugins/tree/useTableTreeData.d.ts.map +1 -1
  238. package/dist/Table/plugins/tree/useTableTreeData.js +3 -2
  239. package/dist/Table/tableRowContextUsage.d.ts +21 -0
  240. package/dist/Table/tableRowContextUsage.d.ts.map +1 -0
  241. package/dist/Table/tableRowContextUsage.js +88 -0
  242. package/dist/Table/types.d.ts +58 -5
  243. package/dist/Table/types.d.ts.map +1 -1
  244. package/dist/Table/useBaseTablePlugins.d.ts.map +1 -1
  245. package/dist/Table/useBaseTablePlugins.js +5 -2
  246. package/dist/Text/Text.d.ts.map +1 -1
  247. package/dist/Text/Text.js +18 -14
  248. package/dist/Text/TruncationTooltip.d.ts +45 -0
  249. package/dist/Text/TruncationTooltip.d.ts.map +1 -0
  250. package/dist/Text/TruncationTooltip.js +123 -0
  251. package/dist/Text/textClampContext.d.ts.map +1 -1
  252. package/dist/Text/textClampContext.js +1 -1
  253. package/dist/TimeInput/TimeInput.d.ts.map +1 -1
  254. package/dist/TimeInput/TimeInput.js +4 -0
  255. package/dist/ToggleButton/ToggleButtonGroup.d.ts.map +1 -1
  256. package/dist/ToggleButton/ToggleButtonGroup.js +2 -2
  257. package/dist/Token/TokenNamingContext.d.ts.map +1 -1
  258. package/dist/Token/TokenNamingContext.js +2 -2
  259. package/dist/Tokenizer/TokenizerClearAllMessageContext.d.ts.map +1 -1
  260. package/dist/Tokenizer/TokenizerClearAllMessageContext.js +2 -2
  261. package/dist/Tokenizer/TokenizerItemRemovableContext.d.ts +12 -0
  262. package/dist/Tokenizer/TokenizerItemRemovableContext.d.ts.map +1 -1
  263. package/dist/Tokenizer/TokenizerItemRemovableContext.js +2 -2
  264. package/dist/Toolbar/Toolbar.d.ts.map +1 -1
  265. package/dist/Toolbar/Toolbar.js +12 -6
  266. package/dist/Tooltip/tooltipPresentInterest.d.ts +29 -0
  267. package/dist/Tooltip/tooltipPresentInterest.d.ts.map +1 -0
  268. package/dist/Tooltip/tooltipPresentInterest.js +29 -0
  269. package/dist/Tooltip/useTooltip.d.ts.map +1 -1
  270. package/dist/Tooltip/useTooltip.js +30 -4
  271. package/dist/TopNav/TopNavContext.d.ts.map +1 -1
  272. package/dist/TopNav/TopNavContext.js +2 -2
  273. package/dist/TopNav/TopNavMobileContentContext.d.ts +1 -1
  274. package/dist/TopNav/TopNavMobileContentContext.d.ts.map +1 -1
  275. package/dist/TopNav/TopNavMobileContentContext.js +4 -3
  276. package/dist/TopNav/TopNavRenderContext.d.ts.map +1 -1
  277. package/dist/TopNav/TopNavRenderContext.js +4 -3
  278. package/dist/Typeahead/busyIndicatorLane.d.ts.map +1 -1
  279. package/dist/Typeahead/busyIndicatorLane.js +3 -2
  280. package/dist/Typeahead/committedChoicesKey.d.ts.map +1 -1
  281. package/dist/Typeahead/committedChoicesKey.js +3 -2
  282. package/dist/Typeahead/trailingKeyDown.d.ts.map +1 -1
  283. package/dist/Typeahead/trailingKeyDown.js +3 -2
  284. package/dist/astryx.css +18 -14
  285. package/dist/gestures/GestureArena.d.ts +2 -0
  286. package/dist/gestures/GestureArena.d.ts.map +1 -1
  287. package/dist/gestures/GestureArena.js +8 -1
  288. package/dist/gestures/GestureRecognizer.d.ts +6 -0
  289. package/dist/gestures/GestureRecognizer.d.ts.map +1 -1
  290. package/dist/gestures/GestureRecognizer.js +9 -0
  291. package/dist/gestures/PressTracker.d.ts.map +1 -1
  292. package/dist/gestures/PressTracker.js +9 -4
  293. package/dist/hooks/focusableSelector.d.ts +13 -1
  294. package/dist/hooks/focusableSelector.d.ts.map +1 -1
  295. package/dist/hooks/focusableSelector.js +22 -2
  296. package/dist/hooks/longPressDetector.d.ts.map +1 -1
  297. package/dist/hooks/longPressDetector.js +1 -25
  298. package/dist/hooks/pressGroupContext.d.ts.map +1 -1
  299. package/dist/hooks/pressGroupContext.js +1 -1
  300. package/dist/hooks/useActionGroupTracking.d.ts +18 -1
  301. package/dist/hooks/useActionGroupTracking.d.ts.map +1 -1
  302. package/dist/hooks/useActionGroupTracking.js +13 -2
  303. package/dist/hooks/useAnnounce.d.ts.map +1 -1
  304. package/dist/hooks/useAnnounce.js +3 -2
  305. package/dist/hooks/useFocusTrap.d.ts +11 -0
  306. package/dist/hooks/useFocusTrap.d.ts.map +1 -1
  307. package/dist/hooks/useFocusTrap.js +47 -2
  308. package/dist/hooks/useListFocus.d.ts +7 -0
  309. package/dist/hooks/useListFocus.d.ts.map +1 -1
  310. package/dist/hooks/useListFocus.js +20 -3
  311. package/dist/hooks/usePager.d.ts.map +1 -1
  312. package/dist/hooks/usePager.js +29 -4
  313. package/dist/hooks/useScrollOverflow.d.ts +22 -0
  314. package/dist/hooks/useScrollOverflow.d.ts.map +1 -1
  315. package/dist/hooks/useScrollOverflow.js +67 -11
  316. package/dist/i18n/InternationalizationContext.d.ts +19 -0
  317. package/dist/i18n/InternationalizationContext.d.ts.map +1 -1
  318. package/dist/i18n/InternationalizationContext.js +3 -3
  319. package/dist/i18n/englishFallback.d.ts.map +1 -1
  320. package/dist/i18n/englishFallback.js +5 -1
  321. package/dist/i18n/firstStrongDirection.d.ts +7 -0
  322. package/dist/i18n/firstStrongDirection.d.ts.map +1 -0
  323. package/dist/i18n/firstStrongDirection.js +65 -0
  324. package/dist/i18n/generated-locales/en.generated.d.ts.map +1 -1
  325. package/dist/i18n/generated-locales/en.generated.js +1 -0
  326. package/dist/i18n/generated-locales/pseudo.generated.d.ts.map +1 -1
  327. package/dist/i18n/generated-locales/pseudo.generated.js +1 -0
  328. package/dist/internal/scroll-anchoring.d.ts +16 -0
  329. package/dist/internal/scroll-anchoring.d.ts.map +1 -0
  330. package/dist/internal/scroll-anchoring.js +16 -0
  331. package/dist/internal/touch.d.ts +3 -1
  332. package/dist/internal/touch.d.ts.map +1 -1
  333. package/dist/internal/touch.js +4 -1
  334. package/dist/{utils → internal}/touchHitArea.stylex.d.ts +10 -6
  335. package/dist/internal/touchHitArea.stylex.d.ts.map +1 -0
  336. package/dist/{utils → internal}/touchHitArea.stylex.js +10 -6
  337. package/dist/motion/animatedLayout.d.ts +8 -0
  338. package/dist/motion/animatedLayout.d.ts.map +1 -1
  339. package/dist/motion/animatedLayout.js +51 -3
  340. package/dist/motion/animator.d.ts +19 -2
  341. package/dist/motion/animator.d.ts.map +1 -1
  342. package/dist/motion/animator.js +72 -7
  343. package/dist/privateAttributes/itemKey.stylex.d.ts +5 -0
  344. package/dist/privateAttributes/itemKey.stylex.d.ts.map +1 -0
  345. package/dist/privateAttributes/itemKey.stylex.js +25 -0
  346. package/dist/privateAttributes/leaving.stylex.d.ts +5 -0
  347. package/dist/privateAttributes/leaving.stylex.d.ts.map +1 -0
  348. package/dist/privateAttributes/leaving.stylex.js +23 -0
  349. package/dist/privateAttributes/press.stylex.d.ts.map +1 -1
  350. package/dist/privateAttributes/press.stylex.js +13 -3
  351. package/dist/privateAttributes/scrollAnchoring.stylex.d.ts +7 -0
  352. package/dist/privateAttributes/scrollAnchoring.stylex.d.ts.map +1 -0
  353. package/dist/privateAttributes/scrollAnchoring.stylex.js +50 -0
  354. package/dist/privateAttributes/travelling.stylex.d.ts +27 -0
  355. package/dist/privateAttributes/travelling.stylex.d.ts.map +1 -0
  356. package/dist/privateAttributes/travelling.stylex.js +51 -0
  357. package/dist/theme/Theme.d.ts.map +1 -1
  358. package/dist/theme/Theme.js +95 -49
  359. package/dist/theme/syntax/SyntaxTheme.d.ts.map +1 -1
  360. package/dist/theme/syntax/SyntaxTheme.js +3 -2
  361. package/dist/theme/useTheme.d.ts.map +1 -1
  362. package/dist/theme/useTheme.js +3 -2
  363. package/dist/utils/calendarSystem.d.ts.map +1 -1
  364. package/dist/utils/calendarSystem.js +4 -1
  365. package/dist/utils/flatTree.d.ts +13 -0
  366. package/dist/utils/flatTree.d.ts.map +1 -1
  367. package/dist/utils/flatTree.js +28 -4
  368. package/dist/utils/inputAge.d.ts +22 -0
  369. package/dist/utils/inputAge.d.ts.map +1 -0
  370. package/dist/utils/inputAge.js +54 -0
  371. package/dist/utils/inputStream.d.ts +8 -0
  372. package/dist/utils/inputStream.d.ts.map +1 -1
  373. package/dist/utils/inputStream.js +53 -3
  374. package/dist/utils/moduleLoader.d.ts +23 -0
  375. package/dist/utils/moduleLoader.d.ts.map +1 -0
  376. package/dist/utils/moduleLoader.js +31 -0
  377. package/dist/utils/pressFeedback.d.ts.map +1 -1
  378. package/dist/utils/pressFeedback.js +13 -8
  379. package/dist/utils/selectionLock.d.ts.map +1 -1
  380. package/dist/utils/selectionLock.js +7 -14
  381. package/dist/utils/sharedContext.d.ts +18 -0
  382. package/dist/utils/sharedContext.d.ts.map +1 -0
  383. package/dist/utils/sharedContext.js +33 -0
  384. package/dist/utils/sharedRealm.d.ts +24 -0
  385. package/dist/utils/sharedRealm.d.ts.map +1 -0
  386. package/dist/utils/sharedRealm.js +38 -0
  387. package/dist/utils/touchHitArea.d.ts +13 -3
  388. package/dist/utils/touchHitArea.d.ts.map +1 -1
  389. package/dist/utils/touchHitArea.js +10 -7
  390. package/locales/en.json +4 -0
  391. package/locales/pseudo.json +3 -0
  392. package/package.json +14 -4
  393. package/src/AppShell/AppShellMobileContext.tsx +8 -3
  394. package/src/AppShell/useAppShellMainId.ts +7 -2
  395. package/src/Avatar/AvatarSizeContext.ts +6 -2
  396. package/src/Avatar/AvatarStatusLabelContext.ts +8 -3
  397. package/src/AvatarGroup/AvatarGroupContext.ts +7 -4
  398. package/src/BottomSheet/BottomSheet.tsx +2 -1
  399. package/src/BottomSheet/BottomSheetHostContext.ts +7 -3
  400. package/src/BottomSheet/BottomSheetPanel.tsx +64 -7
  401. package/src/BottomSheet/BottomSheetSwitcher.tsx +5 -2
  402. package/src/BottomSheet/BottomSheetSwitcherContext.ts +7 -2
  403. package/src/BottomSheet/bottomSheetEscape.ts +6 -2
  404. package/src/BottomSheet/bottomSheetStack.ts +6 -14
  405. package/src/BottomSheet/useSheetGestures.ts +28 -48
  406. package/src/Breadcrumbs/Breadcrumbs.tsx +6 -5
  407. package/src/Button/Button.doc.mjs +3 -3
  408. package/src/Button/Button.tsx +22 -22
  409. package/src/Button/buttonHitArea.ts +29 -0
  410. package/src/ButtonGroup/ButtonGroup.doc.mjs +3 -3
  411. package/src/ButtonGroup/ButtonGroup.tsx +28 -17
  412. package/src/ButtonGroup/ButtonGroupContext.ts +7 -4
  413. package/src/Carousel/Carousel.tsx +33 -15
  414. package/src/Chat/ChatContext.tsx +23 -7
  415. package/src/Chat/useChatStreamScroll.ts +7 -26
  416. package/src/CheckboxInput/CheckboxInput.tsx +1 -1
  417. package/src/CheckboxInput/CheckboxRowPressContext.ts +5 -1
  418. package/src/CheckboxList/CheckboxListContext.tsx +5 -1
  419. package/src/Collapsible/CollapsibleGroupContext.tsx +11 -3
  420. package/src/CommandPalette/CommandPaletteContext.ts +8 -3
  421. package/src/CommandPalette/busyStartSettle.ts +6 -2
  422. package/src/DateInput/TouchDateField.tsx +62 -4
  423. package/src/Dialog/Dialog.tsx +2 -1
  424. package/src/Dialog/DialogContext.ts +7 -2
  425. package/src/Drawer/Drawer.tsx +2 -1
  426. package/src/DropdownMenu/DropdownMenuContext.tsx +18 -5
  427. package/src/DropdownMenu/lazyMenuBottomSheet.ts +6 -18
  428. package/src/DropdownMenu/menuRegionStops.ts +1 -49
  429. package/src/Field/Field.doc.mjs +0 -2
  430. package/src/Field/InputClearButton.tsx +91 -69
  431. package/src/FormLayout/FormLayoutContext.ts +3 -3
  432. package/src/Heading/Heading.tsx +34 -18
  433. package/src/HoverCard/HoverCard.doc.mjs +3 -3
  434. package/src/HoverCard/HoverCard.tsx +1 -2
  435. package/src/HoverCard/useHoverCard.tsx +6 -2
  436. package/src/Icon/IconDefaultSizeContext.ts +6 -2
  437. package/src/IconButton/IconButton.doc.mjs +2 -2
  438. package/src/InfoTip/InfoTip.tsx +1 -1
  439. package/src/InputGroup/InputGroupContext.ts +7 -4
  440. package/src/InputGroup/InputGroupInternalContext.ts +6 -2
  441. package/src/InteractiveRoleContext/InteractiveRoleContext.ts +8 -3
  442. package/src/Item/ItemDescriptionContext.tsx +7 -3
  443. package/src/Item/ItemListRowContext.tsx +7 -3
  444. package/src/Item/ItemMarkerColumnsContext.tsx +7 -2
  445. package/src/Layer/LayerContext.ts +7 -2
  446. package/src/Layer/LayerDepthContext.tsx +3 -2
  447. package/src/Layer/LayerTouch.ts +6 -2
  448. package/src/Layer/anchorName.ts +8 -4
  449. package/src/Layer/inputHold.ts +138 -21
  450. package/src/Layer/layerScopedContext.tsx +34 -7
  451. package/src/Layer/layerSlideRules.ts +43 -40
  452. package/src/Layer/modalOutlet.ts +67 -16
  453. package/src/Layer/outsidePress.ts +144 -28
  454. package/src/Layer/settledBox.ts +216 -54
  455. package/src/Layer/toastHost.tsx +6 -2
  456. package/src/Layer/useLayer.tsx +254 -70
  457. package/src/Layer/useLayerKeyboardClearance.ts +90 -12
  458. package/src/Layer/useTouchTrigger.ts +89 -40
  459. package/src/Layout/Layout.doc.mjs +17 -0
  460. package/src/Layout/Layout.tsx +13 -9
  461. package/src/Layout/LayoutAreaContext.ts +8 -9
  462. package/src/Layout/LayoutContent.doc.mjs +11 -0
  463. package/src/Layout/LayoutContent.tsx +9 -9
  464. package/src/Layout/LayoutDividerContext.ts +6 -2
  465. package/src/Layout/LayoutSlotsContext.ts +6 -3
  466. package/src/Link/LinkContext.ts +7 -3
  467. package/src/List/List.doc.mjs +5 -0
  468. package/src/List/List.tsx +53 -5
  469. package/src/List/ListContext.tsx +28 -6
  470. package/src/List/ListItem.doc.mjs +11 -0
  471. package/src/List/ListItem.tsx +53 -16
  472. package/src/List/listLayoutUpdates.ts +603 -0
  473. package/src/Markdown/Markdown.tsx +93 -5
  474. package/src/Markdown/blockDirection.ts +100 -0
  475. package/src/Markdown/plugins/HeadingLinksRenderer.tsx +4 -0
  476. package/src/MetadataList/MetadataListContext.tsx +6 -2
  477. package/src/NavMenu/NavMenuContext.tsx +14 -5
  478. package/src/Popover/Popover.tsx +23 -16
  479. package/src/Popover/usePopover.tsx +21 -7
  480. package/src/RadioList/RadioList.tsx +7 -4
  481. package/src/RadioList/RadioListItem.tsx +1 -1
  482. package/src/RadioList/RadioListReasonContext.ts +1 -1
  483. package/src/Section/Section.doc.mjs +22 -0
  484. package/src/SegmentedControl/SegmentedControlContext.ts +6 -2
  485. package/src/SegmentedControl/SegmentedControlItem.tsx +1 -1
  486. package/src/SelectableCard/selectableCardInput.ts +6 -2
  487. package/src/Selector/SelectorRowLayoutContext.ts +6 -2
  488. package/src/SideNav/SideNavCollapseButton.doc.mjs +5 -5
  489. package/src/SideNav/SideNavCollapseButton.tsx +4 -3
  490. package/src/SideNav/SideNavCollapseContext.ts +12 -7
  491. package/src/SideNav/SideNavFocusTargetsContext.ts +6 -2
  492. package/src/SideNav/SideNavItem.tsx +6 -2
  493. package/src/SideNav/SideNavRenderContext.ts +9 -8
  494. package/src/SideNav/railMotion.ts +6 -2
  495. package/src/SizeContext/SizeContext.ts +6 -2
  496. package/src/SnapPaging/SnapPaging.ts +164 -39
  497. package/src/SnapPaging/snapPagingValue.ts +59 -12
  498. package/src/Spinner/SpinnerOwnerContext.ts +6 -2
  499. package/src/Stepper/StepperContext.ts +12 -3
  500. package/src/Switch/useSwitchTouch.ts +7 -5
  501. package/src/TabList/TabListContext.ts +7 -2
  502. package/src/Table/BaseTable.tsx +143 -19
  503. package/src/Table/Table.tsx +4 -3
  504. package/src/Table/TableContext.ts +6 -2
  505. package/src/Table/index.ts +2 -0
  506. package/src/Table/plugins/filtering/useTableFiltering.tsx +11 -3
  507. package/src/Table/plugins/rowExpansion/useTableRowExpansion.tsx +10 -3
  508. package/src/Table/plugins/rowIndex/useTableRowIndex.tsx +38 -29
  509. package/src/Table/plugins/selection/useTableSelection.tsx +7 -2
  510. package/src/Table/plugins/stickyColumns/useTableStickyColumns.tsx +1 -0
  511. package/src/Table/plugins/tree/useTableTreeData.tsx +6 -2
  512. package/src/Table/tableRowContextUsage.ts +105 -0
  513. package/src/Table/types.ts +60 -2
  514. package/src/Table/useBaseTablePlugins.ts +5 -2
  515. package/src/Table/useTableRowIndex.doc.mjs +6 -7
  516. package/src/Text/Text.tsx +34 -18
  517. package/src/Text/TruncationTooltip.tsx +179 -0
  518. package/src/Text/textClampContext.ts +5 -1
  519. package/src/TimeInput/TimeInput.tsx +4 -0
  520. package/src/ToggleButton/ToggleButtonGroup.tsx +6 -2
  521. package/src/Token/TokenNamingContext.ts +6 -2
  522. package/src/Tokenizer/TokenizerClearAllMessageContext.ts +4 -4
  523. package/src/Tokenizer/TokenizerItemRemovableContext.ts +3 -3
  524. package/src/Toolbar/Toolbar.tsx +16 -9
  525. package/src/Tooltip/tooltipPresentInterest.ts +43 -0
  526. package/src/Tooltip/useTooltip.tsx +33 -0
  527. package/src/TopNav/TopNavContext.ts +6 -2
  528. package/src/TopNav/TopNavMobileContentContext.ts +8 -3
  529. package/src/TopNav/TopNavRenderContext.ts +8 -4
  530. package/src/Typeahead/busyIndicatorLane.tsx +7 -2
  531. package/src/Typeahead/committedChoicesKey.tsx +4 -3
  532. package/src/Typeahead/trailingKeyDown.tsx +7 -2
  533. package/src/gestures/GestureArena.ts +8 -1
  534. package/src/gestures/GestureRecognizer.ts +9 -0
  535. package/src/gestures/PressTracker.ts +13 -4
  536. package/src/hooks/focusableSelector.ts +29 -1
  537. package/src/hooks/longPressDetector.ts +1 -35
  538. package/src/hooks/pressGroupContext.ts +5 -1
  539. package/src/hooks/useActionGroupTracking.ts +29 -2
  540. package/src/hooks/useAnnounce.ts +8 -4
  541. package/src/hooks/useFocusTrap.ts +62 -2
  542. package/src/hooks/useListFocus.ts +34 -7
  543. package/src/hooks/usePager.ts +33 -4
  544. package/src/hooks/useScrollOverflow.ts +65 -7
  545. package/src/i18n/InternationalizationContext.ts +12 -8
  546. package/src/i18n/englishFallback.ts +7 -1
  547. package/src/i18n/firstStrongDirection.ts +69 -0
  548. package/src/i18n/generated-locales/en.generated.ts +1 -0
  549. package/src/i18n/generated-locales/pseudo.generated.ts +1 -0
  550. package/src/internal/scroll-anchoring.ts +16 -0
  551. package/src/internal/touch.ts +5 -1
  552. package/src/{utils → internal}/touchHitArea.stylex.ts +10 -6
  553. package/src/motion/animatedLayout.ts +44 -3
  554. package/src/motion/animator.ts +97 -9
  555. package/src/privateAttributes/itemKey.stylex.ts +25 -0
  556. package/src/privateAttributes/leaving.stylex.ts +23 -0
  557. package/src/privateAttributes/press.stylex.ts +19 -7
  558. package/src/privateAttributes/scrollAnchoring.stylex.ts +50 -0
  559. package/src/privateAttributes/travelling.stylex.ts +88 -0
  560. package/src/theme/Theme.tsx +124 -60
  561. package/src/theme/syntax/SyntaxTheme.tsx +7 -2
  562. package/src/theme/useTheme.ts +7 -8
  563. package/src/utils/calendarSystem.ts +7 -1
  564. package/src/utils/flatTree.ts +31 -4
  565. package/src/utils/inputAge.ts +66 -0
  566. package/src/utils/inputStream.ts +52 -3
  567. package/src/utils/moduleLoader.ts +47 -0
  568. package/src/utils/pressFeedback.ts +16 -7
  569. package/src/utils/selectionLock.ts +8 -18
  570. package/src/utils/sharedContext.ts +42 -0
  571. package/src/utils/sharedRealm.ts +42 -0
  572. package/src/utils/touchHitArea.ts +18 -7
  573. package/dist/utils/touchHitArea.stylex.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,75 @@
1
1
  # @xds/core
2
2
 
3
+ # 0.7.11
4
+
5
+ #### New Features
6
+
7
+ - Under a finger (a coarse primary pointer, on any touch device), Popover grows out of its trigger, wide before tall, with its edge held on the trigger, and shrinks back into the trigger when it closes. The growth plays the theme's `--duration-medium-min` (in the Storybook theme, the step nearest iOS's 206 ms growth) with its entrance easing, and the shrink plays its exit duration and easing, on the compositor. A close during the growth, or an open during the shrink, turns back from where the popover is. With reduced motion it cross-fades in and out, opacity only, in 200 ms or less. A fine primary pointer (a mouse) keeps its entrance. A tap that lands while it grows is ignored, and a pan started then scrolls nothing. The shrink plays on the layer runtime's exit copy, of which Popover is the first user. The growth starts in the next animation frame, before that frame paints, so the opening tap does no extra layout. (#8187)
8
+ - `DropdownMenuSubMenu` accepts `delay` and `hideDelay`, in milliseconds, the same options `Tooltip`, `HoverCard` and `TopNavMenu` have. `delay` is how long a hovering pointer waits before the flyout opens (default 150), and `hideDelay` is how long the flyout stays after the pointer leaves (default 200). The defaults match today's timing, so nothing changes unless you pass them. Keyboard focus and touch never wait. (#10298)
9
+ - `Timestamp` takes a `timezoneID` prop naming the IANA zone its absolute formats render in, such as `'UTC'` or `'America/Los_Angeles'`. An explicit zone renders identically on the server and the client, so a server-rendered absolute time no longer depends on the server's zone and hydrates without a mismatch. Omit it (or pass `'local'`) to keep the viewer's own zone, relative formats' visible text ignores it (configured `tooltipEntries` rows still follow it), and an unknown identifier warns once in development and falls back to the viewer's zone. (#9789)
10
+
11
+ #### Fixes
12
+
13
+ - Animated layout glides now use the theme's `--duration-medium` instead of `--duration-medium-min`: 300 ms instead of 225 ms in the Neutral theme, and 410 ms instead of 310 ms with no theme. Their move curve, Reduce Motion behavior, and support for `linear()` and `steps()` easing stay unchanged. (#10261)
14
+ - Under Reduce Motion, a cross-fade's move and its call's settle wait while a sampler pauses its fade, so the element never moves, and an exit's element never goes, while the paused fade still shows. (#10378)
15
+ - `Avatar` initials and the default person icon paint in primary text on the neutral tint, a pair at 4.5:1 or more in light and dark mode; secondary text fell below 4.5:1 in dark mode. Initials read darker in light mode and lighter in dark mode. (#10205)
16
+ - Banner: `role="alert"` now sits on the title and description only, not on the whole banner, so an urgent alert holds only its message (`component:Banner` FR8; WCAG 2.2 4.1.3 Status Messages). The dismiss and expand controls, their tooltips, a caller's action, and the supporting content are outside the alert. ARIA attributes passed with `role="alert"`, such as `aria-label`, move with it. Other roles still land on the banner frame. Use `role="alert"` only for an urgent message, and announce every other message with `useAnnounce`. No visual change: the banner renders the same pixels as before. (#6779)
17
+ - BottomSheet: a touch release takes the iOS sheet's measured values, and a release moving back toward where the drag began cancels. A release faster than about 1,000 px/s is a flick: it goes at least to the next detent in its direction, so a short fast flick at the lowest detent closes the sheet instead of springing back. From a higher detent, a flick that would carry past the next detent goes on, so a hard flick closes the sheet and a softer one stops at the next detent. A slow or medium touch throw now travels less than before, and a slow touch drag closes the sheet only past halfway to closed. A mouse or pen drag is unchanged. (#10234)
18
+ - A labelled `Button` has its accessible name again in VoiceOver on macOS 14 (Safari 17 and WKWebView). The label sat inside a `display: contents` wrapper, which that WebKit drops names through, so it read an unnamed "button". The wrapper is now a flex box that takes the Button's own layout, and the Button looks the same. (#10256)
19
+ - Under a finger, a `Button` or `IconButton` is easier to hit. Its touch target grows toward 44 px through an invisible band, as far as its neighbors leave room, and its box doesn't change. A disabled button, or a busy one that can't be interrupted, gets no band, and a button in a `ButtonGroup` uses the group's band. Input clear buttons now use the same band in place of their fixed 24 px overlay, and in Safari a tap on that band clears the field. Nothing changes under a mouse. Swizzling a ListItem, CheckboxInput, RadioListItem, InfoTip or SegmentedControl no longer leaves an import of the touch band's styles that can't resolve. (#10216)
20
+ - `Calendar` and `DateRangeInput` no longer cause a hydration mismatch when the server and the browser are on different dates, for example a UTC server and a visitor already in tomorrow. Today is read only after hydration: a server-rendered Calendar shows no today marker until then, and a Calendar with no `focusDate` or value keeps its month grid's space empty until the browser's month is known. A DateRangeInput shows the year in its range text until then. (#10226)
21
+ - Shift and one mouse wheel notch now scroll a `Carousel` row by the notch, once. Before, Firefox also scrolled the row on its own, so each notch moved it twice: React's wheel listener is passive, so Carousel could not stop the browser's scroll. A wheel with a horizontal delta, such as a trackpad swipe, and a row with nothing to scroll keep the browser's own scroll. (#10246)
22
+ - A theme's `borderRadius` and `padding` on the `chat-composer` target now also set the composer's `--_chat-composer-radius` and `--_chat-composer-padding`, so the composer body, its status strip, and the concentric send and attach button radius follow the theme. With `density="compact"`, the body keeps its compact padding, and its radius still follows. Before, the derived-variable registry filed these two mappings under `chat`, a key no element renders, so `defineTheme({components: {'chat-composer': {base: {borderRadius: '16px', padding: '8px'}}}})` emitted only `border-radius` and `padding` on the composer root, and everything that reads the two variables kept the default geometry. (#10249)
23
+ - `CodeBlock`'s copy button now says when copying fails. A rejected clipboard write used to look like nothing happened. Now the button shows a cross in place of the copy icon for 2 seconds, as a copy shows its check mark (a theme that maps the `code-block-copy` icon slot keeps its own rest glyph during the failure), and is named, tooltipped and announced as "Failed to copy value to clipboard." (a new localized key, `@astryx.codeBlock.copyFailed`). A new `onCopyError(error)` prop receives the rejection once per failed copy; the error itself is never shown. (#10272)
24
+ - The Core modules that read `process.env.NODE_ENV` for development warnings now declare it themselves, so those files type-check in a project that does not install `@types/node`, such as a swizzled `Breadcrumbs`, `Stepper` or `TabList`. Bundlers still replace the value at build time, so production builds drop the warnings as before. No API changes. (#10252)
25
+ - A block-edge reveal or conceal, as in Collapsible, TreeList and Table's row expansion with an `animatedLayout` handle, now slides the revealed element's children on the same frames as the content beside it, under a still clip on the element's box. An element that paints its own box, such as Table's `panelVariant="muted"` panel, keeps the moving clip. On iOS Safari a moving clip ran on its own clock and parted from that content for a few frames; now the two stay together. The glide's timing and curve are unchanged. Collapsible's region now wraps its children in one inner element; selectors like `region > *` or `:first-child` on the region's children need updating. (#10296)
26
+ - `Kbd`: a key badge grows with a larger text size instead of holding its fixed height, so a bigger glyph stays inside its badge. At the default text size nothing changes. The docs now list `ref`, say how a screen reader names the shortcut, and say that Kbd only shows keys and does not listen for them. (#10267)
27
+ - In a List with `hasDividers`, a hovered or pressed row keeps both of its dividers visible through its tint, with a mouse and under a finger. The divider above the row used to merge into the tint, and under a finger both dividers did. The dividers keep `--color-border`; nothing hides. (#10280)
28
+ - Overlay, AppShell and MobileNav work in a DOM with no `matchMedia`, such as an app's jsdom test. Before, Overlay threw on its first render, AppShell as it mounted (with React 19.2 or later), and MobileNav as it closed. Where `matchMedia` exists, nothing changes. (#10327)
29
+ - Carousel paging: on a busy page, a finger held on a settling row now stops it, as on an idle page. Before, when the page received the touch and its lift together, a short hold read as a tap and the row ran on to its target. (#10330)
30
+ - Carousel paging: a row that resizes while it settles back onto the page it left now hands back to native scrolling, instead of staying held by the paging. (#10419)
31
+ - `presentation="adaptive"` no longer crashes in environments without `matchMedia` (jsdom tests). (#10275)
32
+ - A Selector's list, opened over its trigger near the bottom of the screen while a software keyboard is up, now slides up and ends above the keyboard with its options in view. Before, it shrank to a sliver or opened under the keyboard. Without a keyboard it opens where it did. (#10169)
33
+ - A searchable `Selector`'s closed trigger now names the selected option after its label, so a screen reader announces the selection (for example "Team, Banana, button, collapsed"). (#10170)
34
+ - BottomSheet: in iOS Safari, focus moving from a Tall sheet's field to a plain button inside a web component now rides the content down from the blur, as focus moving to any other control that brings up no keyboard does. A frame, or a custom element that can hold a field the page cannot see, still keeps the content in place. (#10388)
35
+ - `StatusDot`'s `success`, `warning` and `error` dots paint their status icon role (`--color-icon-<status>`) instead of the strong status fill, so the dot keeps 3:1 or more against the page and card surfaces; the warning dot used to read near 1.8:1 on a muted card. Success and error dots change colour too: they take their status icon colour, which is darker in light mode in the default theme. An `icon` inside a status dot now paints in the surface colour. (#10204)
36
+ - On a touch screen with a mouse, after a finger opens a menu, a dialog, a drawer, a mobile nav or a popover, a click with a mouse that has not moved since reaches what is under it while the layer enters. Before, that click landed on the entrance's input hold and did nothing. A finger's or a pen's tap during the entrance is still ignored. A mouse that has sent no pointer event since the page loaded still meets the hold. (#10303)
37
+ - BottomSheet: in iOS Safari, which publishes no keyboard slide, when the on-screen keyboard closes, a Tall sheet's content rides down with it on UIKit's keyboard spring, instead of jumping back to its earlier scroll once the keyboard is gone. A field that takes focus again before the keyboard is down rides back up, and focus moving to a select, whose picker takes the keyboard's place, starts no ride. In Chrome on Android, a busy page that reads the keyboard's hide late no longer moves the content back up before it settles. (#9776)
38
+ - A toast shown over a `Dialog` no longer blinks out for a frame or more when the Dialog closes outside a click, for example when it closes once an awaited save finishes. The toast stays on screen while the Dialog closes. A close from a click, the Escape key or the backdrop already kept it. (#10251)
39
+ - DateInput: under a finger, a bottom-sheet wheel's turn onto a tapped row, a key's row or a value set from outside now plays the shared settle spring from rest, instead of a fixed 300 ms ease-in-ease-out. The wheel's main interaction is a gesture, so all its motion springs; a flick's coast and a slow release's snap stay as they are. (#9924)
40
+
41
+ #### Performance
42
+
43
+ - Closing a Popover, menu or other anchored layer no longer lays out the page an extra time. The layer runtime reads a closing layer's animations only when the layer's closed state declares a discrete `display` transition or a keyframe animation. It reads that style while the layer is still closed. Such a layer, as TopNavMegaMenu's panel is, still keeps its trigger's anchor name until its fade ends. An animation a script starts is not tracked. (#10368)
44
+
45
+ #### Documentation
46
+
47
+ - FormLayout says to wrap it in a native `<form>`, and that `<form>` has no Astryx replacement. (#10349)
48
+ - `LayerProvider`: editors and generated docs now show its description and example; they were attached to an internal constant. The docs no longer say that a nested provider is ignored: a nested provider keeps the outer toast configuration and mounts no second toast viewport, and one that declares `inset` applies its declared edges to the anchored layers in its subtree. (#10283)
49
+ - Layout's `height` prop says that `fill` needs a container with a set height, such as AppShell's content area. (#10348)
50
+
51
+ #### Other Changes
52
+
53
+ - Internal: a source comment in `Carousel` now says that the wheel listener reads no style or layout unless a flick holds the row. Apps see no change. (#10281)
54
+ - Internal: the input hold's constant for the mouse's opening is named for the half side it holds, and its comment goes. Apps see no change. (#10317)
55
+ - Internal: Core's keyboard module reads the press slop that press feedback uses for its tap route, instead of its own copy of the same 10 px, and three source comments that restated names are gone. Apps see no change. (#10389)
56
+ - Internal: Core's keyboard module keeps a field above the on-screen keyboard where its nearest scroller can bring it up: a field in scrolling content is scrolled into view by its nearest scroller, the document included, a field in a container fixed at the viewport's bottom moves that container up by the part of it the keyboard still covers, unless the container sets its own `translate`, the app is moving it itself, or it is taller than the room above the keyboard, where its scroller reveals the field instead, or with none it moves only as far as the field needs, and focus moves and first taps into those fields arrive without the browser's reveal. A field in a fixed container the app positions itself (a dialog or a sheet that fills the viewport, a bar floating above the bottom edge, or a bar with its own `translate`) is revealed by a scroller around it there, and with none keeps the browser's own reveal. Core's fields adopt it next; apps import nothing new. (#9776)
57
+ - Internal: the layer runtime gains one exit copy for touch presentations that animate a popover out: a static, inert copy of the closing popover, shown only in the top layer where the popover was drawn, for the close to play on. Core's other inert copies now join no form, carry no anchor name and keep their color scheme, as their documentation says. (#8186)
58
+ - Internal: `Dialog`, `Drawer` and `BottomSheet` hand the toast viewport back to the page through a callback ref when they close or unmount, in place of a layout cleanup. A toast still stays on screen while the modal closes. Apps see no change. (#10351)
59
+ - Internal: source comments in Popover's touch presentation and the transient copy now match what the code does: a touch that starts before the input hold can close the popover, and `measure` reads before the frame writes. Apps see no change. (#10300)
60
+
61
+ #### Contributors
62
+
63
+ Thanks to everyone who contributed to this release:
64
+
65
+ - @cixzhang
66
+ - @josephfarina
67
+ - @nbozidarevic
68
+ - @utsavo-afk
69
+ - @vjeux
70
+
71
+ ---
72
+
3
73
  # 0.7.10
4
74
 
5
75
  #### New Features
@@ -1 +1 @@
1
- {"version":3,"file":"AppShellMobileContext.d.ts","sourceRoot":"","sources":["../../src/AppShell/AppShellMobileContext.tsx"],"names":[],"mappings":"AAiBA,MAAM,WAAW,0BAA0B;IACzC,0DAA0D;IAC1D,QAAQ,EAAE,OAAO,CAAC;IAClB,sDAAsD;IACtD,eAAe,EAAE,OAAO,CAAC;IACzB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+CAA+C;IAC/C,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,iCAAiC;IACjC,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,kCAAkC;IAClC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,2CAA2C;IAC3C,kBAAkB,EAAE,OAAO,CAAC;IAC5B,6EAA6E;IAC7E,aAAa,EAAE,OAAO,CAAC;CACxB;AAYD,eAAO,MAAM,qBAAqB,qDACuB,CAAC;AAG1D;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,0BAA0B,CAE9D"}
1
+ {"version":3,"file":"AppShellMobileContext.d.ts","sourceRoot":"","sources":["../../src/AppShell/AppShellMobileContext.tsx"],"names":[],"mappings":"AAkBA,MAAM,WAAW,0BAA0B;IACzC,0DAA0D;IAC1D,QAAQ,EAAE,OAAO,CAAC;IAClB,sDAAsD;IACtD,eAAe,EAAE,OAAO,CAAC;IACzB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+CAA+C;IAC/C,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,iCAAiC;IACjC,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,kCAAkC;IAClC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,2CAA2C;IAC3C,kBAAkB,EAAE,OAAO,CAAC;IAC5B,6EAA6E;IAC7E,aAAa,EAAE,OAAO,CAAC;CACxB;AAYD,eAAO,MAAM,qBAAqB,qDAK/B,CAAC;AAGJ;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,0BAA0B,CAE9D"}
@@ -4,7 +4,7 @@
4
4
 
5
5
  /**
6
6
  * @file AppShellMobileContext.tsx
7
- * @input Uses React createContext, use
7
+ * @input Uses createSharedContext, use
8
8
  * @output Exports AppShellMobileContext, useAppShellMobile
9
9
  * @position Internal context for mobile nav state; consumed by MobileNavToggle, TopNav (future)
10
10
  *
@@ -12,7 +12,8 @@
12
12
  * Used by MobileNavToggle to open/close the drawer and by TopNav (future)
13
13
  * to adapt rendering based on mobile context.
14
14
  */
15
- import { createContext, use } from 'react';
15
+ import { use } from 'react';
16
+ import { createSharedContext } from "../utils/sharedContext.js";
16
17
  const defaultValue = {
17
18
  isMobile: false,
18
19
  isMobileNavOpen: false,
@@ -22,7 +23,7 @@ const defaultValue = {
22
23
  isMobileNavEnabled: false,
23
24
  hasAutoToggle: true
24
25
  };
25
- export const AppShellMobileContext = /*#__PURE__*/createContext(defaultValue);
26
+ export const AppShellMobileContext = createSharedContext('AppShellMobileContext', 1, defaultValue);
26
27
  AppShellMobileContext.displayName = 'AppShellMobileContext';
27
28
 
28
29
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"useAppShellMainId.d.ts","sourceRoot":"","sources":["../../src/AppShell/useAppShellMainId.ts"],"names":[],"mappings":"AAgBA,6EAA6E;AAC7E,eAAO,MAAM,eAAe,0BAA0B,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,kCAAuB,CAAC;AAmB3D;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CA0B1C"}
1
+ {"version":3,"file":"useAppShellMainId.d.ts","sourceRoot":"","sources":["../../src/AppShell/useAppShellMainId.ts"],"names":[],"mappings":"AAiBA,6EAA6E;AAC7E,eAAO,MAAM,eAAe,0BAA0B,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,kCAIlC,CAAC;AAmBF;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CA0B1C"}
@@ -10,8 +10,9 @@
10
10
  * generated id for every other shell; AppShellNestingContext
11
11
  * @position Private to AppShell; keeps main-region ids unique on a page
12
12
  */
13
- import { createContext, use, useId, useState, useSyncExternalStore } from 'react';
13
+ import { use, useId, useState, useSyncExternalStore } from 'react';
14
14
  import { useIsomorphicLayoutEffect } from "../hooks/useIsomorphicLayoutEffect.js";
15
+ import { createSharedContext } from "../utils/sharedContext.js";
15
16
 
16
17
  /** The id of the first mounted shell's main region. Consumers link to it. */
17
18
  export const MAIN_CONTENT_ID = 'astryx-app-shell-main';
@@ -20,7 +21,7 @@ export const MAIN_CONTENT_ID = 'astryx-app-shell-main';
20
21
  * True inside an AppShell. A shell nested in another shell's content never
21
22
  * takes the fixed id: the page's own shell keeps it.
22
23
  */
23
- export const AppShellNestingContext = /*#__PURE__*/createContext(false);
24
+ export const AppShellNestingContext = createSharedContext('AppShellNestingContext', 1, false);
24
25
  AppShellNestingContext.displayName = 'AppShellNestingContext';
25
26
  const claims = [];
26
27
  const listeners = new Set();
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarSizeContext.d.ts","sourceRoot":"","sources":["../../src/Avatar/AvatarSizeContext.ts"],"names":[],"mappings":"AAgBA;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,iCAA4B,CAAC"}
1
+ {"version":3,"file":"AvatarSizeContext.d.ts","sourceRoot":"","sources":["../../src/Avatar/AvatarSizeContext.ts"],"names":[],"mappings":"AAgBA;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,iCAI7B,CAAC"}
@@ -11,7 +11,7 @@
11
11
  * SYNC: When modified, update:
12
12
  * - /packages/core/src/Avatar/Avatar.doc.mjs
13
13
  */
14
- import { createLayerScopedContext as createContext } from "../Layer/layerScopedContext.js";
14
+ import { createLayerScopedContext } from "../Layer/layerScopedContext.js";
15
15
 
16
16
  /**
17
17
  * Context that provides the resolved numeric avatar size (in pixels)
@@ -19,5 +19,5 @@ import { createLayerScopedContext as createContext } from "../Layer/layerScopedC
19
19
  *
20
20
  * Default value of 36 matches the default 'md' avatar size.
21
21
  */
22
- export const AvatarSizeContext = createContext(36);
22
+ export const AvatarSizeContext = createLayerScopedContext('AvatarSizeContext', 1, 36);
23
23
  AvatarSizeContext.displayName = 'AvatarSizeContext';
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * @file AvatarStatusLabelContext.ts
3
- * @input Uses React createContext, RefObject
3
+ * @input Uses createSharedContext, RefObject
4
4
  * @output Exports AvatarStatusLabelContext, AvatarStatusLabelTarget
5
5
  * @position Internal context; provided by Avatar, consumed by AvatarStatusDot
6
6
  *
7
7
  * SYNC: When modified, update:
8
8
  * - /packages/core/src/Avatar/Avatar.doc.mjs
9
9
  */
10
- import { type RefObject } from 'react';
10
+ import type { RefObject } from 'react';
11
11
  /**
12
12
  * The box a status element writes its label into.
13
13
  *
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarStatusLabelContext.d.ts","sourceRoot":"","sources":["../../src/Avatar/AvatarStatusLabelContext.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AAEH,OAAO,EAAgB,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAEpD;;;;;;;;GAQG;AACH,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;CAC7B;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,wBAAwB,oEAC2B,CAAC"}
1
+ {"version":3,"file":"AvatarStatusLabelContext.d.ts","sourceRoot":"","sources":["../../src/Avatar/AvatarStatusLabelContext.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAGrC;;;;;;;;GAQG;AACH,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;CAC7B;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,wBAAwB,oEAKlC,CAAC"}
@@ -4,14 +4,14 @@
4
4
 
5
5
  /**
6
6
  * @file AvatarStatusLabelContext.ts
7
- * @input Uses React createContext, RefObject
7
+ * @input Uses createSharedContext, RefObject
8
8
  * @output Exports AvatarStatusLabelContext, AvatarStatusLabelTarget
9
9
  * @position Internal context; provided by Avatar, consumed by AvatarStatusDot
10
10
  *
11
11
  * SYNC: When modified, update:
12
12
  * - /packages/core/src/Avatar/Avatar.doc.mjs
13
13
  */
14
- import { createContext } from 'react';
14
+ import { createSharedContext } from "../utils/sharedContext.js";
15
15
 
16
16
  /**
17
17
  * The box a status element writes its label into.
@@ -37,5 +37,5 @@ import { createContext } from 'react';
37
37
  * phase, so reporting a label costs no render and no state. `null` outside an
38
38
  * Avatar, where a standalone dot names itself and has nobody to report to.
39
39
  */
40
- export const AvatarStatusLabelContext = /*#__PURE__*/createContext(null);
40
+ export const AvatarStatusLabelContext = createSharedContext('AvatarStatusLabelContext', 1, null);
41
41
  AvatarStatusLabelContext.displayName = 'AvatarStatusLabelContext';
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarGroupContext.d.ts","sourceRoot":"","sources":["../../src/AvatarGroup/AvatarGroupContext.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,WAAW,CAAC;AAEvD,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,WAAW,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,kBAAkB,yDAE9B,CAAC;AAGF,wBAAgB,cAAc,IAAI,uBAAuB,GAAG,IAAI,CAE/D"}
1
+ {"version":3,"file":"AvatarGroupContext.d.ts","sourceRoot":"","sources":["../../src/AvatarGroup/AvatarGroupContext.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,WAAW,CAAC;AAEvD,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,WAAW,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,kBAAkB,yDAK5B,CAAC;AAGJ,wBAAgB,cAAc,IAAI,uBAAuB,GAAG,IAAI,CAE/D"}
@@ -8,8 +8,8 @@
8
8
  * @position Shared context; consumed by children for group-aware styling
9
9
  */
10
10
  import { use } from 'react';
11
- import { createLayerScopedContext as createContext } from "../Layer/layerScopedContext.js";
12
- export const AvatarGroupContext = createContext(null);
11
+ import { createLayerScopedContext } from "../Layer/layerScopedContext.js";
12
+ export const AvatarGroupContext = createLayerScopedContext('AvatarGroupContext', 1, null);
13
13
  AvatarGroupContext.displayName = 'AvatarGroupContext';
14
14
  export function useAvatarGroup() {
15
15
  return use(AvatarGroupContext);
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../src/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAuBH,OAAO,EAOL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AA4DhD,YAAY,EAAC,iBAAiB,EAAE,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAChF,OAAO,KAAK,EAAC,iBAAiB,EAAE,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAkNhF,UAAU,sBAAuB,SAAQ,SAAS,CAAC,cAAc,CAAC;IAChE,qDAAqD;IACrD,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAEhC,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;IAEd,0EAA0E;IAC1E,QAAQ,EAAE,SAAS,CAAC;IAEpB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB,wGAAwG;IACxG,MAAM,CAAC,EAAE,iBAAiB,GAAG,MAAM,GAAG,MAAM,CAAC;IAE7C;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAEjD;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,UAAU,0BAA2B,SAAQ,sBAAsB;IACjE,MAAM,EAAE,OAAO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CAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;IAEd,0EAA0E;IAC1E,QAAQ,EAAE,SAAS,CAAC;IAEpB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB,wGAAwG;IACxG,MAAM,CAAC,EAAE,iBAAiB,GAAG,MAAM,GAAG,MAAM,CAAC;IAE7C;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAEjD;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,UAAU,0BAA2B,SAAQ,sBAAsB;IACjE,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB;AAED,UAAU,wBAAyB,SAAQ,sBAAsB;IAC/D;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB;AAED,MAAM,MAAM,gBAAgB,GAC1B,0BAA0B,GAAG,wBAAwB,CAAC;AAo9BxD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BA6BlD;yBA7Be,WAAW"}
@@ -529,7 +529,7 @@ function StandaloneBottomSheet({
529
529
  // top one closes. A Dialog opened from a sheet stays above every sheet. A
530
530
  // closing sheet stops supplying when it starts to close. Passive: it runs
531
531
  // after the layout effects that present.
532
- useModalOutlet(dialogRef, isOpen && hasScrim, stackView.isTop, 'bottom-sheet');
532
+ const outletRef = useModalOutlet(dialogRef, isOpen && hasScrim, stackView.isTop, 'bottom-sheet');
533
533
  // Closes a batch of same-commit opens; see sealBottomSheetBatch.
534
534
  useEffect(() => {
535
535
  sealBottomSheetBatch();
@@ -750,6 +750,7 @@ function StandaloneBottomSheet({
750
750
  onScrimOpacity: handleScrimOpacity,
751
751
  onScrimFadeDuration: handleScrimFadeDuration,
752
752
  onElementChange: handlePanelElementChange,
753
+ handleRef: outletRef,
753
754
  onMotionStart: handleMotionStart,
754
755
  onMotionComplete: handleMotionComplete,
755
756
  children: /*#__PURE__*/_jsx(ModalAnnounceProvider, {
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheetHostContext.d.ts","sourceRoot":"","sources":["../../src/BottomSheet/BottomSheetHostContext.ts"],"names":[],"mappings":"AAyBA,MAAM,WAAW,2BAA2B;IAC1C,0EAA0E;IAC1E,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,sBAAsB,6DACsB,CAAC;AAG1D,eAAO,MAAM,sBAAsB,EAAE,2BAEpC,CAAC;AACF,eAAO,MAAM,wBAAwB,EAAE,2BAEtC,CAAC"}
1
+ {"version":3,"file":"BottomSheetHostContext.d.ts","sourceRoot":"","sources":["../../src/BottomSheet/BottomSheetHostContext.ts"],"names":[],"mappings":"AAyBA,MAAM,WAAW,2BAA2B;IAC1C,0EAA0E;IAC1E,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,sBAAsB,6DAKhC,CAAC;AAGJ,eAAO,MAAM,sBAAsB,EAAE,2BAEpC,CAAC;AACF,eAAO,MAAM,wBAAwB,EAAE,2BAEtC,CAAC"}
@@ -14,14 +14,15 @@
14
14
  * - /packages/core/src/BottomSheet/BottomSheetSwitcher.tsx
15
15
  * - /packages/core/src/BottomSheet/BottomSheetStacking.test.tsx
16
16
  */
17
+ import { createSharedContext } from "../utils/sharedContext.js";
17
18
 
18
19
  // A sheet rendered in another sheet's content is presented only while its
19
20
  // host is open. Without this, a host that closes from code would leave the
20
21
  // inner dialog open in the top layer with no box: an invisible modal that
21
22
  // blocks the page. The host never writes the inner sheet's state. At the
22
23
  // root the context is null, which reads as open.
23
- import { createContext } from 'react';
24
- export const BottomSheetHostContext = /*#__PURE__*/createContext(null);
24
+
25
+ export const BottomSheetHostContext = createSharedContext('BottomSheetHostContext', 1, null);
25
26
  BottomSheetHostContext.displayName = 'BottomSheetHostContext';
26
27
  export const OPEN_BOTTOM_SHEET_HOST = {
27
28
  isOpen: true
@@ -14,7 +14,7 @@
14
14
  * - /packages/core/src/BottomSheet/useSheetGestures.ts
15
15
  * - /packages/core/src/Layout/container.stylex.ts (bottom-sheet padding chain)
16
16
  */
17
- import { type ReactNode } from 'react';
17
+ import { type ReactNode, type Ref } from 'react';
18
18
  import type { BaseProps } from '../BaseProps.js';
19
19
  import type { SpacingStep } from '../utils/types.js';
20
20
  import { type BottomSheetSnapPoint } from './snapOffsets.js';
@@ -83,11 +83,16 @@ interface BottomSheetPanelProps extends BaseProps<HTMLDivElement> {
83
83
  */
84
84
  onScrimFadeDuration?: (panel: HTMLElement, ms: number | null) => void;
85
85
  onElementChange?: (element: HTMLDivElement | null) => void;
86
+ /**
87
+ * A ref for the grab handle's element. The handle stays mounted with the
88
+ * panel and carries no other ref.
89
+ */
90
+ handleRef?: Ref<HTMLDivElement>;
86
91
  onMotionStart?: (motion: BottomSheetPanelMotion) => void;
87
92
  onMotionComplete?: (motion: BottomSheetPanelMotion) => void;
88
93
  }
89
94
  /** Internal visual and gesture surface shared by every BottomSheet host. */
90
- export declare function BottomSheetPanel({ ref, state, isOpenRequested, height, label, children, padding, snapPoints, className, style, tabIndex, xstyle, isEntrySettled, onEntrySettled, onTransitionEnd, isSwipeDismissAllowed, isPageScrollLocked, onDismiss, onScrimOpacity, onScrimFadeDuration, onElementChange, onMotionStart, onMotionComplete, ...props }: BottomSheetPanelProps): import("react").JSX.Element;
95
+ export declare function BottomSheetPanel({ ref, state, isOpenRequested, height, label, children, padding, snapPoints, className, style, tabIndex, xstyle, isEntrySettled, onEntrySettled, onTransitionEnd, isSwipeDismissAllowed, isPageScrollLocked, onDismiss, onScrimOpacity, onScrimFadeDuration, onElementChange, handleRef, onMotionStart, onMotionComplete, ...props }: BottomSheetPanelProps): import("react").JSX.Element;
91
96
  export declare namespace BottomSheetPanel {
92
97
  var displayName: string;
93
98
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheetPanel.d.ts","sourceRoot":"","sources":["../../src/BottomSheet/BottomSheetPanel.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAgC5C,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,eAAe,CAAC;AAYvB,QAAA,MAAM,cAAc;;;;CAIV,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,cAAc,CAAC;AAC5D,YAAY,EAAC,oBAAoB,EAAC,CAAC;AAkInC,eAAO,MAAM,2BAA2B,2DACkB,CAAC;AA+N3D,MAAM,MAAM,sBAAsB,GAChC,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEjD,MAAM,MAAM,qBAAqB,GAC7B;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAC,GAChB;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAC,GACjC;IACE,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC;IAC1C,eAAe,EAAE,MAAM,CAAC;CACzB,GACD;IAAC,IAAI,EAAE,SAAS,CAAA;CAAC,CAAC;AAEtB,UAAU,qBAAsB,SAAQ,SAAS,CAAC,cAAc,CAAC;IAC/D,+CAA+C;IAC/C,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,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Ac,EACd,eAAe,EACf,qBAA4B,EAC5B,kBAA0B,EAC1B,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,GAAG,KAAK,EACT,EAAE,qBAAqB,+BAyhBvB;yBAnjBe,gBAAgB"}
@@ -114,8 +114,50 @@ function clearingScrimFade(panel) {
114
114
  function layoutViewportHeight() {
115
115
  return typeof window === 'undefined' ? 0 : window.innerHeight;
116
116
  }
117
- function subscribeToResize(onChange) {
118
- return subscribeInput(window, 'resize', onChange);
117
+
118
+ // The layout viewport's height, as the `resize` listener last read it. While
119
+ // the listener runs, a render reads this value, never `innerHeight`. After a
120
+ // commit's DOM writes, a read of `innerHeight` forces a style recalculation
121
+ // and a layout. Open sheets share one listener. With no sheet open, the value
122
+ // is null, because nothing keeps it current.
123
+ let viewportHeight = null;
124
+ const viewportHeightListeners = new Set();
125
+ let stopViewportResize = null;
126
+ function handleViewportResize() {
127
+ viewportHeight = layoutViewportHeight();
128
+ for (const listener of viewportHeightListeners) {
129
+ listener();
130
+ }
131
+ }
132
+ function subscribeToViewportHeight(onChange) {
133
+ viewportHeightListeners.add(onChange);
134
+ if (stopViewportResize == null) {
135
+ stopViewportResize = subscribeInput(window, 'resize', handleViewportResize);
136
+ // A resize between the first render and this listener has no event left
137
+ // to deliver. So read the height now, and let React compare it with the
138
+ // height it rendered.
139
+ viewportHeight = layoutViewportHeight();
140
+ onChange();
141
+ }
142
+ return () => {
143
+ viewportHeightListeners.delete(onChange);
144
+ if (viewportHeightListeners.size === 0) {
145
+ stopViewportResize?.();
146
+ stopViewportResize = null;
147
+ viewportHeight = null;
148
+ }
149
+ };
150
+ }
151
+ function readViewportHeight() {
152
+ // Without a listener, nothing keeps a stored height current.
153
+ if (stopViewportResize == null) {
154
+ return layoutViewportHeight();
155
+ }
156
+ viewportHeight ??= layoutViewportHeight();
157
+ return viewportHeight;
158
+ }
159
+ function readNoViewportHeight() {
160
+ return 0;
119
161
  }
120
162
  function subscribeToNothing() {
121
163
  return () => {};
@@ -388,6 +430,7 @@ export function BottomSheetPanel({
388
430
  onScrimOpacity,
389
431
  onScrimFadeDuration,
390
432
  onElementChange,
433
+ handleRef,
391
434
  onMotionStart,
392
435
  onMotionComplete,
393
436
  ...props
@@ -462,8 +505,10 @@ export function BottomSheetPanel({
462
505
  // sizes, which nothing extends by the reserve; the stretch stops at it.
463
506
  const hasTouchPointer = useMediaQuery('(any-pointer: coarse)');
464
507
  const tracksViewport = isPresented && hasTouchPointer && !isSizedByCaller;
465
- const viewportHeight = useSyncExternalStore(tracksViewport ? subscribeToResize : subscribeToNothing, () => tracksViewport ? layoutViewportHeight() : 0, () => 0);
466
- const reserve = viewportHeight > 0 ? sheetReserve(viewportHeight) : MIN_RESERVE;
508
+ // Each argument is a module function, so React keeps one snapshot function
509
+ // across renders and does not re-read it in the commit.
510
+ const trackedViewportHeight = useSyncExternalStore(tracksViewport ? subscribeToViewportHeight : subscribeToNothing, tracksViewport ? readViewportHeight : readNoViewportHeight, readNoViewportHeight);
511
+ const reserve = trackedViewportHeight > 0 ? sheetReserve(trackedViewportHeight) : MIN_RESERVE;
467
512
  const {
468
513
  contentProps,
469
514
  handleProps,
@@ -788,6 +833,7 @@ export function BottomSheetPanel({
788
833
  ...style
789
834
  }),
790
835
  children: [/*#__PURE__*/_jsx("div", {
836
+ ref: handleRef,
791
837
  ...{
792
838
  className: "x10l6tqk x13vifvy x1o0tod xtijo5x x1vjfegm x78zum5 x6s0dn4 xl56j7k xvpftlf xafqdz2 x1so62im x1j4r261 x1jm3nie x16khyan x1cpjm7i x1oke5ut x34npju xmwhqxd x1hw15nc"
793
839
  },
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheetSwitcher.d.ts","sourceRoot":"","sources":["../../src/BottomSheet/BottomSheetSwitcher.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAoBH,OAAO,EAUL,KAAK,SAAS,EACd,KAAK,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iB,CAAC;IAC5E;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAEnC,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAE9D;;;;;OAKG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,iEAAiE;IACjE,mBAAmB,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAEtD;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,0DAA0D;IAC1D,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,WAAW,EAAE,eAAe,EAC5B,mBAAmB,EACnB,QAAe,EACf,QAAQ,EACR,GAAG,EACH,QAAQ,EACR,OAAO,EACP,SAAS,EACT,SAAS,EACT,KAAK,EACL,MAAM,EACN,GAAG,eAAe,EACnB,EAAE,wBAAwB,+BAkxB1B;yBA/xBe,mBAAmB"}
@@ -52,7 +52,7 @@ import { dispatchLayerEscapeKeyDown } from "../Layer/layerStack.js";
52
52
  import { useLayerDismissal } from "../Layer/useLayerDismissal.js";
53
53
  import { composeEventHandlers } from "../utils/index.js";
54
54
  import { mergeRefs } from "../utils/mergeRefs.js";
55
- import { useModalOutlet } from "../Layer/modalOutlet.js";
55
+ import { useModalOutletWithoutRef } from "../Layer/modalOutlet.js";
56
56
  import { BottomSheetHostContext } from "./BottomSheetHostContext.js";
57
57
  import { BOTTOM_SHEET_STACK_DEFAULT_VIEW, cancelScrimWrite, closeDialogKeepingFocus, focusSheetPanel, getBottomSheetBeneath, isClosingTogether, notifyBottomSheetHostChanged, presentStepModally, presentWithClearScrim, registerBottomSheet, reportClosedTogether, sealBottomSheetBatch, setBottomSheetOpen, writeScrimOpacity } from "./bottomSheetStack.js";
58
58
  import { BottomSheetSwitcherContext } from "./BottomSheetSwitcherContext.js";
@@ -372,7 +372,10 @@ export function BottomSheetSwitcher({
372
372
  // `hostSheet` across a handoff, and the fading retained dialog is never the
373
373
  // outlet. A closing flow stops supplying at once. Passive: it runs after the
374
374
  // layout effects that present the step dialogs.
375
- useModalOutlet(hostDialogRef, isModal && isFlowOpen, stackView.isTop || !stackView.isStacked, 'bottom-sheet', hostSheet);
375
+ // The flow has no element for the outlet's ref. Its wrapper's ref is the
376
+ // sheet stack's tree-order anchor, which the stack reads in the closing
377
+ // commit, and the element of its host step changes on a handoff.
378
+ useModalOutletWithoutRef(hostDialogRef, isModal && isFlowOpen, stackView.isTop || !stackView.isStacked, 'bottom-sheet', hostSheet);
376
379
 
377
380
  // Focus return is native per dialog: each showModal() records the focused
378
381
  // element and close() focuses it again. That serves a one-sheet flow, but
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheetSwitcherContext.d.ts","sourceRoot":"","sources":["../../src/BottomSheet/BottomSheetSwitcherContext.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EACV,aAAa,IAAI,kBAAkB,EACnC,UAAU,IAAI,eAAe,EAC7B,cAAc,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAE7D,MAAM,MAAM,wBAAwB,GAChC,UAAU,GACV,QAAQ,GACR,SAAS,GACT,UAAU,GACV,QAAQ,GACR,SAAS,GACT,QAAQ,CAAC;AAEb,MAAM,WAAW,kCAAkC;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;CACvD;AAED;;;;GAIG;AACH,MAA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AE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACtE;;;OAGG;IACH,SAAS,EAAE,oBAAoB,CAAC;IAChC,yEAAyE;IACzE,WAAW,EAAE,8BAA8B,CAAC;IAC5C,cAAc,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IACnE,aAAa,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IACnE,eAAe,EAAE,CAAC,KAAK,EAAE,kBAAkB,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CACzE;AAED,eAAO,MAAM,0BAA0B,iEAKpC,CAAC"}
@@ -13,7 +13,7 @@
13
13
  * host-dialog selection, and the switcher's dialog-level props and handlers
14
14
  * down to those sheet hosts.
15
15
  */
16
- import { createContext } from 'react';
16
+ import { createSharedContext } from "../utils/sharedContext.js";
17
17
 
18
18
  /**
19
19
  * The switcher's own dialog surface, applied by every sheet host. `ref` is not
@@ -21,5 +21,5 @@ import { createContext } from 'react';
21
21
  * the single-instance attributes (`id`, `data-testid`) render there only.
22
22
  */
23
23
 
24
- export const BottomSheetSwitcherContext = /*#__PURE__*/createContext(null);
24
+ export const BottomSheetSwitcherContext = createSharedContext('BottomSheetSwitcherContext', 1, null);
25
25
  BottomSheetSwitcherContext.displayName = 'BottomSheetSwitcherContext';
@@ -1 +1 @@
1
- {"version":3,"file":"bottomSheetEscape.d.ts","sourceRoot":"","sources":["../../src/BottomSheet/bottomSheetEscape.ts"],"names":[],"mappings":"AAkBA,kFAAkF;AAClF,eAAO,MAAM,wBAAwB,kCAAsB,CAAC"}
1
+ {"version":3,"file":"bottomSheetEscape.d.ts","sourceRoot":"","sources":["../../src/BottomSheet/bottomSheetEscape.ts"],"names":[],"mappings":"AAkBA,kFAAkF;AAClF,eAAO,MAAM,wBAAwB,kCAIpC,CAAC"}
@@ -13,8 +13,8 @@
13
13
  * standalone BottomSheet reads the default (true), so its `purpose` rule
14
14
  * is unchanged.
15
15
  */
16
- import { createContext } from 'react';
16
+ import { createSharedContext } from "../utils/sharedContext.js";
17
17
 
18
18
  /** Whether Escape may dismiss the sheet; `purpose="required"` still blocks it. */
19
- export const BottomSheetEscapeContext = /*#__PURE__*/createContext(true);
19
+ export const BottomSheetEscapeContext = createSharedContext('BottomSheetEscapeContext', 1, true);
20
20
  BottomSheetEscapeContext.displayName = 'BottomSheetEscapeContext';
@@ -1 +1 @@
1
- {"version":3,"file":"bottomSheetStack.d.ts","sourceRoot":"","sources":["../../src/BottomSheet/bottomSheetStack.ts"],"names":[],"mappings":"AAuDA,MAAM,WAAW,oBAAoB;IACnC,2DAA2D;IAC3D,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,mDAAmD;IACnD,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,gEAAgE;IAChE,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,oEAAoE;IACpE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,uEAAuE;IACvE,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;IACjC;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAC;IACnC;;;;OAIG;IACH,QAAQ,CAAC,cAAc,EAAE,yBAAyB,GAAG,IAAI,CAAC;IAC1D,6EAA6E;IAC7E,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,6EAA6E;IAC7E,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,MAAM,yBAAyB,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE1E,2EAA2E;AAC3E,MAAM,MAAM,wBAAwB,GAClC,UAAU,GAAG,U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M,IAAI,CAAA;CAAC,GAAG,IAAI,CAcxD;AA4BD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,WAAW,GAAG,IAAI,EACzB,MAAM,EAAE,sBAAsB,EAC9B,OAAO,EAAE,OAAO,GACf,IAAI,CAiDN;AAED,iFAAiF;AACjF,wBAAgB,2BAA2B,CACzC,GAAG,GAAE,QAAmB,EACxB,OAAO,GAAE,OAAc,GACtB,aAAa,CAAC;IACf,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,oBAAoB,CAAC;CAC5B,CAAC,CAMD;AAED,sEAAsE;AACtE,wBAAgB,6BAA6B,IAAI,IAAI,CA+BpD;AAED,+FAA+F;AAC/F,eAAO,MAAM,kCAAkC;;;;sBAI3B,MAAM;IAExB,8DAA8D;iCACjC,QAAQ;CACtC,CAAC"}
@@ -51,6 +51,7 @@
51
51
  // version keeps its own stack. Each document is its own stack.
52
52
  import { notifyTopLayerEntry } from "../Layer/modalOutlet.js";
53
53
  import { focusForLastInput, returnFocusForLastInput } from "../utils/focusReturn.js";
54
+ import { realmValue } from "../utils/sharedRealm.js";
54
55
 
55
56
  /** The motions a host's panel reports to the registry during a replace. */
56
57
 
@@ -125,19 +126,7 @@ function createStackState() {
125
126
  deferredTopLayer: new WeakMap()
126
127
  };
127
128
  }
128
- function acquireStackState() {
129
- const holder = globalThis;
130
- const shared = holder[STACK_STATE_KEY];
131
- if (shared != null) {
132
- // The key names the version, so a state found under it is this
133
- // protocol's; the shape check is the guard against a key collision.
134
- return shared.shape === STACK_STATE_SHAPE ? shared : createStackState();
135
- }
136
- const created = createStackState();
137
- holder[STACK_STATE_KEY] = created;
138
- return created;
139
- }
140
- const state = acquireStackState();
129
+ const state = realmValue(STACK_STATE_KEY, createStackState, shared => shared?.shape === STACK_STATE_SHAPE);
141
130
  function takeRank() {
142
131
  state.isBatchDirty = true;
143
132
  scheduleSeal();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