@astryxdesign/core 0.7.11 → 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 (533) hide show
  1. package/dist/AppShell/AppShellMobileContext.d.ts.map +1 -1
  2. package/dist/AppShell/AppShellMobileContext.js +4 -3
  3. package/dist/AppShell/useAppShellMainId.d.ts.map +1 -1
  4. package/dist/AppShell/useAppShellMainId.js +3 -2
  5. package/dist/Avatar/AvatarSizeContext.d.ts.map +1 -1
  6. package/dist/Avatar/AvatarSizeContext.js +2 -2
  7. package/dist/Avatar/AvatarStatusLabelContext.d.ts +2 -2
  8. package/dist/Avatar/AvatarStatusLabelContext.d.ts.map +1 -1
  9. package/dist/Avatar/AvatarStatusLabelContext.js +3 -3
  10. package/dist/AvatarGroup/AvatarGroupContext.d.ts.map +1 -1
  11. package/dist/AvatarGroup/AvatarGroupContext.js +2 -2
  12. package/dist/BottomSheet/BottomSheetHostContext.d.ts.map +1 -1
  13. package/dist/BottomSheet/BottomSheetHostContext.js +3 -2
  14. package/dist/BottomSheet/BottomSheetPanel.d.ts.map +1 -1
  15. package/dist/BottomSheet/BottomSheetPanel.js +48 -4
  16. package/dist/BottomSheet/BottomSheetSwitcherContext.d.ts.map +1 -1
  17. package/dist/BottomSheet/BottomSheetSwitcherContext.js +2 -2
  18. package/dist/BottomSheet/bottomSheetEscape.d.ts.map +1 -1
  19. package/dist/BottomSheet/bottomSheetEscape.js +2 -2
  20. package/dist/BottomSheet/bottomSheetStack.d.ts.map +1 -1
  21. package/dist/BottomSheet/bottomSheetStack.js +2 -13
  22. package/dist/BottomSheet/useSheetGestures.d.ts.map +1 -1
  23. package/dist/BottomSheet/useSheetGestures.js +25 -42
  24. package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  25. package/dist/Breadcrumbs/Breadcrumbs.js +2 -2
  26. package/dist/Button/Button.d.ts.map +1 -1
  27. package/dist/Button/Button.js +12 -21
  28. package/dist/Button/buttonHitArea.d.ts.map +1 -1
  29. package/dist/Button/buttonHitArea.js +3 -3
  30. package/dist/ButtonGroup/ButtonGroup.d.ts.map +1 -1
  31. package/dist/ButtonGroup/ButtonGroup.js +13 -7
  32. package/dist/ButtonGroup/ButtonGroupContext.d.ts.map +1 -1
  33. package/dist/ButtonGroup/ButtonGroupContext.js +2 -2
  34. package/dist/Carousel/Carousel.d.ts.map +1 -1
  35. package/dist/Carousel/Carousel.js +24 -15
  36. package/dist/Chat/ChatContext.d.ts.map +1 -1
  37. package/dist/Chat/ChatContext.js +6 -5
  38. package/dist/Chat/useChatStreamScroll.d.ts.map +1 -1
  39. package/dist/Chat/useChatStreamScroll.js +7 -22
  40. package/dist/CheckboxInput/CheckboxRowPressContext.d.ts.map +1 -1
  41. package/dist/CheckboxInput/CheckboxRowPressContext.js +1 -1
  42. package/dist/CheckboxList/CheckboxListContext.d.ts.map +1 -1
  43. package/dist/CheckboxList/CheckboxListContext.js +1 -1
  44. package/dist/Collapsible/CollapsibleGroupContext.d.ts.map +1 -1
  45. package/dist/Collapsible/CollapsibleGroupContext.js +3 -3
  46. package/dist/CommandPalette/CommandPaletteContext.d.ts.map +1 -1
  47. package/dist/CommandPalette/CommandPaletteContext.js +4 -3
  48. package/dist/CommandPalette/busyStartSettle.d.ts.map +1 -1
  49. package/dist/CommandPalette/busyStartSettle.js +2 -2
  50. package/dist/DateInput/TouchDateField.d.ts.map +1 -1
  51. package/dist/DateInput/TouchDateField.js +41 -4
  52. package/dist/Dialog/DialogContext.d.ts.map +1 -1
  53. package/dist/Dialog/DialogContext.js +3 -2
  54. package/dist/DropdownMenu/DropdownMenuContext.d.ts.map +1 -1
  55. package/dist/DropdownMenu/DropdownMenuContext.js +6 -5
  56. package/dist/DropdownMenu/lazyMenuBottomSheet.d.ts.map +1 -1
  57. package/dist/DropdownMenu/lazyMenuBottomSheet.js +4 -15
  58. package/dist/DropdownMenu/menuRegionStops.d.ts.map +1 -1
  59. package/dist/DropdownMenu/menuRegionStops.js +2 -37
  60. package/dist/FormLayout/FormLayoutContext.d.ts.map +1 -1
  61. package/dist/FormLayout/FormLayoutContext.js +2 -2
  62. package/dist/Heading/Heading.d.ts.map +1 -1
  63. package/dist/Heading/Heading.js +19 -16
  64. package/dist/HoverCard/HoverCard.d.ts +1 -2
  65. package/dist/HoverCard/HoverCard.d.ts.map +1 -1
  66. package/dist/HoverCard/useHoverCard.d.ts +1 -2
  67. package/dist/HoverCard/useHoverCard.d.ts.map +1 -1
  68. package/dist/HoverCard/useHoverCard.js +5 -1
  69. package/dist/Icon/IconDefaultSizeContext.d.ts.map +1 -1
  70. package/dist/Icon/IconDefaultSizeContext.js +2 -2
  71. package/dist/InputGroup/InputGroupContext.d.ts.map +1 -1
  72. package/dist/InputGroup/InputGroupContext.js +2 -2
  73. package/dist/InputGroup/InputGroupInternalContext.d.ts.map +1 -1
  74. package/dist/InputGroup/InputGroupInternalContext.js +2 -2
  75. package/dist/InteractiveRoleContext/InteractiveRoleContext.d.ts.map +1 -1
  76. package/dist/InteractiveRoleContext/InteractiveRoleContext.js +5 -3
  77. package/dist/Item/ItemDescriptionContext.d.ts.map +1 -1
  78. package/dist/Item/ItemDescriptionContext.js +3 -3
  79. package/dist/Item/ItemListRowContext.d.ts.map +1 -1
  80. package/dist/Item/ItemListRowContext.js +3 -3
  81. package/dist/Item/ItemMarkerColumnsContext.d.ts +1 -1
  82. package/dist/Item/ItemMarkerColumnsContext.d.ts.map +1 -1
  83. package/dist/Item/ItemMarkerColumnsContext.js +2 -2
  84. package/dist/Layer/LayerContext.d.ts.map +1 -1
  85. package/dist/Layer/LayerContext.js +3 -2
  86. package/dist/Layer/LayerDepthContext.d.ts.map +1 -1
  87. package/dist/Layer/LayerDepthContext.js +3 -2
  88. package/dist/Layer/LayerTouch.d.ts +3 -2
  89. package/dist/Layer/LayerTouch.d.ts.map +1 -1
  90. package/dist/Layer/LayerTouch.js +3 -2
  91. package/dist/Layer/anchorName.d.ts.map +1 -1
  92. package/dist/Layer/anchorName.js +5 -1
  93. package/dist/Layer/inputHold.d.ts.map +1 -1
  94. package/dist/Layer/inputHold.js +115 -13
  95. package/dist/Layer/layerScopedContext.d.ts +5 -2
  96. package/dist/Layer/layerScopedContext.d.ts.map +1 -1
  97. package/dist/Layer/layerScopedContext.js +27 -10
  98. package/dist/Layer/layerSlideRules.d.ts +28 -26
  99. package/dist/Layer/layerSlideRules.d.ts.map +1 -1
  100. package/dist/Layer/layerSlideRules.js +41 -40
  101. package/dist/Layer/outsidePress.d.ts +21 -3
  102. package/dist/Layer/outsidePress.d.ts.map +1 -1
  103. package/dist/Layer/outsidePress.js +119 -29
  104. package/dist/Layer/settledBox.d.ts +9 -8
  105. package/dist/Layer/settledBox.d.ts.map +1 -1
  106. package/dist/Layer/settledBox.js +169 -49
  107. package/dist/Layer/toastHost.d.ts.map +1 -1
  108. package/dist/Layer/toastHost.js +3 -2
  109. package/dist/Layer/useLayer.d.ts.map +1 -1
  110. package/dist/Layer/useLayer.js +172 -60
  111. package/dist/Layer/useLayerKeyboardClearance.d.ts +14 -2
  112. package/dist/Layer/useLayerKeyboardClearance.d.ts.map +1 -1
  113. package/dist/Layer/useLayerKeyboardClearance.js +83 -12
  114. package/dist/Layer/useTouchTrigger.d.ts +21 -1
  115. package/dist/Layer/useTouchTrigger.d.ts.map +1 -1
  116. package/dist/Layer/useTouchTrigger.js +61 -37
  117. package/dist/Layout/Layout.d.ts +1 -1
  118. package/dist/Layout/Layout.d.ts.map +1 -1
  119. package/dist/Layout/Layout.js +10 -6
  120. package/dist/Layout/LayoutAreaContext.d.ts.map +1 -1
  121. package/dist/Layout/LayoutAreaContext.js +3 -3
  122. package/dist/Layout/LayoutContent.d.ts +6 -6
  123. package/dist/Layout/LayoutContent.js +9 -9
  124. package/dist/Layout/LayoutDividerContext.d.ts.map +1 -1
  125. package/dist/Layout/LayoutDividerContext.js +2 -2
  126. package/dist/Layout/LayoutSlotsContext.d.ts.map +1 -1
  127. package/dist/Layout/LayoutSlotsContext.js +2 -2
  128. package/dist/Link/LinkContext.d.ts +16 -0
  129. package/dist/Link/LinkContext.d.ts.map +1 -1
  130. package/dist/Link/LinkContext.js +3 -3
  131. package/dist/List/List.d.ts +12 -1
  132. package/dist/List/List.d.ts.map +1 -1
  133. package/dist/List/List.js +29 -10
  134. package/dist/List/ListContext.d.ts +18 -3
  135. package/dist/List/ListContext.d.ts.map +1 -1
  136. package/dist/List/ListContext.js +9 -6
  137. package/dist/List/ListItem.d.ts +13 -4
  138. package/dist/List/ListItem.d.ts.map +1 -1
  139. package/dist/List/ListItem.js +37 -10
  140. package/dist/List/listLayoutUpdates.d.ts +34 -0
  141. package/dist/List/listLayoutUpdates.d.ts.map +1 -0
  142. package/dist/List/listLayoutUpdates.js +539 -0
  143. package/dist/Markdown/Markdown.d.ts.map +1 -1
  144. package/dist/Markdown/Markdown.js +57 -10
  145. package/dist/Markdown/blockDirection.d.ts +26 -0
  146. package/dist/Markdown/blockDirection.d.ts.map +1 -0
  147. package/dist/Markdown/blockDirection.js +68 -0
  148. package/dist/Markdown/plugins/HeadingLinksRenderer.d.ts +3 -1
  149. package/dist/Markdown/plugins/HeadingLinksRenderer.d.ts.map +1 -1
  150. package/dist/Markdown/plugins/HeadingLinksRenderer.js +3 -1
  151. package/dist/MetadataList/MetadataListContext.d.ts.map +1 -1
  152. package/dist/MetadataList/MetadataListContext.js +2 -2
  153. package/dist/NavMenu/NavMenuContext.d.ts.map +1 -1
  154. package/dist/NavMenu/NavMenuContext.js +5 -4
  155. package/dist/Popover/Popover.d.ts.map +1 -1
  156. package/dist/Popover/Popover.js +9 -9
  157. package/dist/Popover/usePopover.d.ts.map +1 -1
  158. package/dist/Popover/usePopover.js +11 -8
  159. package/dist/RadioList/RadioList.d.ts.map +1 -1
  160. package/dist/RadioList/RadioList.js +2 -2
  161. package/dist/RadioList/RadioListReasonContext.d.ts.map +1 -1
  162. package/dist/RadioList/RadioListReasonContext.js +1 -1
  163. package/dist/SegmentedControl/SegmentedControlContext.d.ts.map +1 -1
  164. package/dist/SegmentedControl/SegmentedControlContext.js +2 -2
  165. package/dist/SelectableCard/selectableCardInput.d.ts.map +1 -1
  166. package/dist/SelectableCard/selectableCardInput.js +2 -2
  167. package/dist/Selector/SelectorRowLayoutContext.d.ts.map +1 -1
  168. package/dist/Selector/SelectorRowLayoutContext.js +2 -2
  169. package/dist/SideNav/SideNavCollapseButton.d.ts +4 -3
  170. package/dist/SideNav/SideNavCollapseButton.d.ts.map +1 -1
  171. package/dist/SideNav/SideNavCollapseContext.d.ts.map +1 -1
  172. package/dist/SideNav/SideNavCollapseContext.js +4 -3
  173. package/dist/SideNav/SideNavFocusTargetsContext.d.ts.map +1 -1
  174. package/dist/SideNav/SideNavFocusTargetsContext.js +2 -2
  175. package/dist/SideNav/SideNavItem.d.ts.map +1 -1
  176. package/dist/SideNav/SideNavItem.js +3 -2
  177. package/dist/SideNav/SideNavRenderContext.d.ts.map +1 -1
  178. package/dist/SideNav/SideNavRenderContext.js +4 -3
  179. package/dist/SideNav/railMotion.d.ts +40 -0
  180. package/dist/SideNav/railMotion.d.ts.map +1 -1
  181. package/dist/SideNav/railMotion.js +2 -2
  182. package/dist/SizeContext/SizeContext.d.ts.map +1 -1
  183. package/dist/SizeContext/SizeContext.js +2 -2
  184. package/dist/SnapPaging/SnapPaging.d.ts.map +1 -1
  185. package/dist/SnapPaging/SnapPaging.js +162 -36
  186. package/dist/SnapPaging/snapPagingValue.d.ts +29 -3
  187. package/dist/SnapPaging/snapPagingValue.d.ts.map +1 -1
  188. package/dist/SnapPaging/snapPagingValue.js +38 -6
  189. package/dist/Spinner/SpinnerOwnerContext.d.ts.map +1 -1
  190. package/dist/Spinner/SpinnerOwnerContext.js +2 -2
  191. package/dist/Stepper/StepperContext.d.ts.map +1 -1
  192. package/dist/Stepper/StepperContext.js +3 -3
  193. package/dist/Switch/useSwitchTouch.d.ts.map +1 -1
  194. package/dist/Switch/useSwitchTouch.js +8 -3
  195. package/dist/TabList/TabListContext.d.ts.map +1 -1
  196. package/dist/TabList/TabListContext.js +2 -2
  197. package/dist/Table/BaseTable.d.ts +3 -2
  198. package/dist/Table/BaseTable.d.ts.map +1 -1
  199. package/dist/Table/BaseTable.js +73 -16
  200. package/dist/Table/Table.d.ts.map +1 -1
  201. package/dist/Table/Table.js +3 -2
  202. package/dist/Table/TableContext.d.ts.map +1 -1
  203. package/dist/Table/TableContext.js +2 -2
  204. package/dist/Table/index.d.ts +1 -1
  205. package/dist/Table/index.d.ts.map +1 -1
  206. package/dist/Table/plugins/filtering/useTableFiltering.d.ts.map +1 -1
  207. package/dist/Table/plugins/filtering/useTableFiltering.js +4 -3
  208. package/dist/Table/plugins/rowExpansion/useTableRowExpansion.d.ts.map +1 -1
  209. package/dist/Table/plugins/rowExpansion/useTableRowExpansion.js +5 -3
  210. package/dist/Table/plugins/rowIndex/useTableRowIndex.d.ts +16 -18
  211. package/dist/Table/plugins/rowIndex/useTableRowIndex.d.ts.map +1 -1
  212. package/dist/Table/plugins/rowIndex/useTableRowIndex.js +48 -39
  213. package/dist/Table/plugins/selection/useTableSelection.d.ts.map +1 -1
  214. package/dist/Table/plugins/selection/useTableSelection.js +4 -2
  215. package/dist/Table/plugins/stickyColumns/useTableStickyColumns.d.ts.map +1 -1
  216. package/dist/Table/plugins/stickyColumns/useTableStickyColumns.js +1 -0
  217. package/dist/Table/plugins/tree/useTableTreeData.d.ts.map +1 -1
  218. package/dist/Table/plugins/tree/useTableTreeData.js +3 -2
  219. package/dist/Table/tableRowContextUsage.d.ts +21 -0
  220. package/dist/Table/tableRowContextUsage.d.ts.map +1 -0
  221. package/dist/Table/tableRowContextUsage.js +88 -0
  222. package/dist/Table/types.d.ts +58 -5
  223. package/dist/Table/types.d.ts.map +1 -1
  224. package/dist/Table/useBaseTablePlugins.d.ts.map +1 -1
  225. package/dist/Table/useBaseTablePlugins.js +5 -2
  226. package/dist/Text/Text.d.ts.map +1 -1
  227. package/dist/Text/Text.js +18 -14
  228. package/dist/Text/TruncationTooltip.d.ts +45 -0
  229. package/dist/Text/TruncationTooltip.d.ts.map +1 -0
  230. package/dist/Text/TruncationTooltip.js +123 -0
  231. package/dist/Text/textClampContext.d.ts.map +1 -1
  232. package/dist/Text/textClampContext.js +1 -1
  233. package/dist/TimeInput/TimeInput.d.ts.map +1 -1
  234. package/dist/TimeInput/TimeInput.js +4 -0
  235. package/dist/ToggleButton/ToggleButtonGroup.d.ts.map +1 -1
  236. package/dist/ToggleButton/ToggleButtonGroup.js +2 -2
  237. package/dist/Token/TokenNamingContext.d.ts.map +1 -1
  238. package/dist/Token/TokenNamingContext.js +2 -2
  239. package/dist/Tokenizer/TokenizerClearAllMessageContext.d.ts.map +1 -1
  240. package/dist/Tokenizer/TokenizerClearAllMessageContext.js +2 -2
  241. package/dist/Tokenizer/TokenizerItemRemovableContext.d.ts +12 -0
  242. package/dist/Tokenizer/TokenizerItemRemovableContext.d.ts.map +1 -1
  243. package/dist/Tokenizer/TokenizerItemRemovableContext.js +2 -2
  244. package/dist/Toolbar/Toolbar.d.ts.map +1 -1
  245. package/dist/Toolbar/Toolbar.js +12 -6
  246. package/dist/Tooltip/tooltipPresentInterest.d.ts +29 -0
  247. package/dist/Tooltip/tooltipPresentInterest.d.ts.map +1 -0
  248. package/dist/Tooltip/tooltipPresentInterest.js +29 -0
  249. package/dist/Tooltip/useTooltip.d.ts.map +1 -1
  250. package/dist/Tooltip/useTooltip.js +30 -4
  251. package/dist/TopNav/TopNavContext.d.ts.map +1 -1
  252. package/dist/TopNav/TopNavContext.js +2 -2
  253. package/dist/TopNav/TopNavMobileContentContext.d.ts +1 -1
  254. package/dist/TopNav/TopNavMobileContentContext.d.ts.map +1 -1
  255. package/dist/TopNav/TopNavMobileContentContext.js +4 -3
  256. package/dist/TopNav/TopNavRenderContext.d.ts.map +1 -1
  257. package/dist/TopNav/TopNavRenderContext.js +4 -3
  258. package/dist/Typeahead/busyIndicatorLane.d.ts.map +1 -1
  259. package/dist/Typeahead/busyIndicatorLane.js +3 -2
  260. package/dist/Typeahead/committedChoicesKey.d.ts.map +1 -1
  261. package/dist/Typeahead/committedChoicesKey.js +3 -2
  262. package/dist/Typeahead/trailingKeyDown.d.ts.map +1 -1
  263. package/dist/Typeahead/trailingKeyDown.js +3 -2
  264. package/dist/astryx.css +18 -8
  265. package/dist/gestures/GestureArena.d.ts +2 -0
  266. package/dist/gestures/GestureArena.d.ts.map +1 -1
  267. package/dist/gestures/GestureArena.js +8 -1
  268. package/dist/gestures/GestureRecognizer.d.ts +6 -0
  269. package/dist/gestures/GestureRecognizer.d.ts.map +1 -1
  270. package/dist/gestures/GestureRecognizer.js +9 -0
  271. package/dist/gestures/PressTracker.d.ts.map +1 -1
  272. package/dist/gestures/PressTracker.js +9 -4
  273. package/dist/hooks/focusableSelector.d.ts +13 -1
  274. package/dist/hooks/focusableSelector.d.ts.map +1 -1
  275. package/dist/hooks/focusableSelector.js +22 -2
  276. package/dist/hooks/longPressDetector.d.ts.map +1 -1
  277. package/dist/hooks/longPressDetector.js +1 -25
  278. package/dist/hooks/pressGroupContext.d.ts.map +1 -1
  279. package/dist/hooks/pressGroupContext.js +1 -1
  280. package/dist/hooks/useActionGroupTracking.d.ts +18 -1
  281. package/dist/hooks/useActionGroupTracking.d.ts.map +1 -1
  282. package/dist/hooks/useActionGroupTracking.js +13 -2
  283. package/dist/hooks/useAnnounce.d.ts.map +1 -1
  284. package/dist/hooks/useAnnounce.js +3 -2
  285. package/dist/hooks/useFocusTrap.d.ts +11 -0
  286. package/dist/hooks/useFocusTrap.d.ts.map +1 -1
  287. package/dist/hooks/useFocusTrap.js +47 -2
  288. package/dist/hooks/useListFocus.d.ts +7 -0
  289. package/dist/hooks/useListFocus.d.ts.map +1 -1
  290. package/dist/hooks/useListFocus.js +20 -3
  291. package/dist/hooks/usePager.d.ts.map +1 -1
  292. package/dist/hooks/usePager.js +26 -3
  293. package/dist/hooks/useScrollOverflow.d.ts +22 -0
  294. package/dist/hooks/useScrollOverflow.d.ts.map +1 -1
  295. package/dist/hooks/useScrollOverflow.js +67 -11
  296. package/dist/i18n/InternationalizationContext.d.ts +19 -0
  297. package/dist/i18n/InternationalizationContext.d.ts.map +1 -1
  298. package/dist/i18n/InternationalizationContext.js +3 -3
  299. package/dist/i18n/englishFallback.d.ts.map +1 -1
  300. package/dist/i18n/englishFallback.js +5 -1
  301. package/dist/i18n/firstStrongDirection.d.ts +7 -0
  302. package/dist/i18n/firstStrongDirection.d.ts.map +1 -0
  303. package/dist/i18n/firstStrongDirection.js +65 -0
  304. package/dist/i18n/generated-locales/en.generated.d.ts.map +1 -1
  305. package/dist/i18n/generated-locales/en.generated.js +1 -0
  306. package/dist/i18n/generated-locales/pseudo.generated.d.ts.map +1 -1
  307. package/dist/i18n/generated-locales/pseudo.generated.js +1 -0
  308. package/dist/internal/scroll-anchoring.d.ts +16 -0
  309. package/dist/internal/scroll-anchoring.d.ts.map +1 -0
  310. package/dist/internal/scroll-anchoring.js +16 -0
  311. package/dist/internal/touch.d.ts +2 -0
  312. package/dist/internal/touch.d.ts.map +1 -1
  313. package/dist/internal/touch.js +4 -1
  314. package/dist/motion/animatedLayout.d.ts +8 -0
  315. package/dist/motion/animatedLayout.d.ts.map +1 -1
  316. package/dist/motion/animatedLayout.js +51 -3
  317. package/dist/motion/animator.d.ts +19 -2
  318. package/dist/motion/animator.d.ts.map +1 -1
  319. package/dist/motion/animator.js +72 -7
  320. package/dist/privateAttributes/itemKey.stylex.d.ts +5 -0
  321. package/dist/privateAttributes/itemKey.stylex.d.ts.map +1 -0
  322. package/dist/privateAttributes/itemKey.stylex.js +25 -0
  323. package/dist/privateAttributes/leaving.stylex.d.ts +5 -0
  324. package/dist/privateAttributes/leaving.stylex.d.ts.map +1 -0
  325. package/dist/privateAttributes/leaving.stylex.js +23 -0
  326. package/dist/privateAttributes/press.stylex.d.ts.map +1 -1
  327. package/dist/privateAttributes/press.stylex.js +13 -3
  328. package/dist/privateAttributes/scrollAnchoring.stylex.d.ts +7 -0
  329. package/dist/privateAttributes/scrollAnchoring.stylex.d.ts.map +1 -0
  330. package/dist/privateAttributes/scrollAnchoring.stylex.js +50 -0
  331. package/dist/privateAttributes/travelling.stylex.d.ts +27 -0
  332. package/dist/privateAttributes/travelling.stylex.d.ts.map +1 -0
  333. package/dist/privateAttributes/travelling.stylex.js +51 -0
  334. package/dist/theme/Theme.d.ts.map +1 -1
  335. package/dist/theme/Theme.js +95 -49
  336. package/dist/theme/syntax/SyntaxTheme.d.ts.map +1 -1
  337. package/dist/theme/syntax/SyntaxTheme.js +3 -2
  338. package/dist/theme/useTheme.d.ts.map +1 -1
  339. package/dist/theme/useTheme.js +3 -2
  340. package/dist/utils/calendarSystem.d.ts.map +1 -1
  341. package/dist/utils/calendarSystem.js +4 -1
  342. package/dist/utils/flatTree.d.ts +13 -0
  343. package/dist/utils/flatTree.d.ts.map +1 -1
  344. package/dist/utils/flatTree.js +28 -4
  345. package/dist/utils/inputAge.d.ts +22 -0
  346. package/dist/utils/inputAge.d.ts.map +1 -0
  347. package/dist/utils/inputAge.js +54 -0
  348. package/dist/utils/inputStream.d.ts +8 -0
  349. package/dist/utils/inputStream.d.ts.map +1 -1
  350. package/dist/utils/inputStream.js +53 -3
  351. package/dist/utils/moduleLoader.d.ts +23 -0
  352. package/dist/utils/moduleLoader.d.ts.map +1 -0
  353. package/dist/utils/moduleLoader.js +31 -0
  354. package/dist/utils/pressFeedback.d.ts.map +1 -1
  355. package/dist/utils/pressFeedback.js +13 -8
  356. package/dist/utils/selectionLock.d.ts.map +1 -1
  357. package/dist/utils/selectionLock.js +7 -14
  358. package/dist/utils/sharedContext.d.ts +18 -0
  359. package/dist/utils/sharedContext.d.ts.map +1 -0
  360. package/dist/utils/sharedContext.js +33 -0
  361. package/dist/utils/sharedRealm.d.ts +24 -0
  362. package/dist/utils/sharedRealm.d.ts.map +1 -0
  363. package/dist/utils/sharedRealm.js +38 -0
  364. package/locales/en.json +4 -0
  365. package/locales/pseudo.json +3 -0
  366. package/package.json +10 -5
  367. package/src/AppShell/AppShellMobileContext.tsx +8 -3
  368. package/src/AppShell/useAppShellMainId.ts +7 -2
  369. package/src/Avatar/AvatarSizeContext.ts +6 -2
  370. package/src/Avatar/AvatarStatusLabelContext.ts +8 -3
  371. package/src/AvatarGroup/AvatarGroupContext.ts +7 -4
  372. package/src/BottomSheet/BottomSheetHostContext.ts +7 -3
  373. package/src/BottomSheet/BottomSheetPanel.tsx +56 -7
  374. package/src/BottomSheet/BottomSheetSwitcherContext.ts +7 -2
  375. package/src/BottomSheet/bottomSheetEscape.ts +6 -2
  376. package/src/BottomSheet/bottomSheetStack.ts +6 -14
  377. package/src/BottomSheet/useSheetGestures.ts +28 -48
  378. package/src/Breadcrumbs/Breadcrumbs.tsx +6 -5
  379. package/src/Button/Button.doc.mjs +3 -3
  380. package/src/Button/Button.tsx +10 -22
  381. package/src/Button/buttonHitArea.ts +7 -4
  382. package/src/ButtonGroup/ButtonGroup.doc.mjs +3 -3
  383. package/src/ButtonGroup/ButtonGroup.tsx +27 -16
  384. package/src/ButtonGroup/ButtonGroupContext.ts +7 -4
  385. package/src/Carousel/Carousel.tsx +33 -15
  386. package/src/Chat/ChatContext.tsx +23 -7
  387. package/src/Chat/useChatStreamScroll.ts +7 -26
  388. package/src/CheckboxInput/CheckboxRowPressContext.ts +5 -1
  389. package/src/CheckboxList/CheckboxListContext.tsx +5 -1
  390. package/src/Collapsible/CollapsibleGroupContext.tsx +11 -3
  391. package/src/CommandPalette/CommandPaletteContext.ts +8 -3
  392. package/src/CommandPalette/busyStartSettle.ts +6 -2
  393. package/src/DateInput/TouchDateField.tsx +62 -4
  394. package/src/Dialog/DialogContext.ts +7 -2
  395. package/src/DropdownMenu/DropdownMenuContext.tsx +18 -5
  396. package/src/DropdownMenu/lazyMenuBottomSheet.ts +6 -18
  397. package/src/DropdownMenu/menuRegionStops.ts +1 -49
  398. package/src/FormLayout/FormLayoutContext.ts +3 -3
  399. package/src/Heading/Heading.tsx +34 -18
  400. package/src/HoverCard/HoverCard.doc.mjs +3 -3
  401. package/src/HoverCard/HoverCard.tsx +1 -2
  402. package/src/HoverCard/useHoverCard.tsx +6 -2
  403. package/src/Icon/IconDefaultSizeContext.ts +6 -2
  404. package/src/IconButton/IconButton.doc.mjs +2 -2
  405. package/src/InputGroup/InputGroupContext.ts +7 -4
  406. package/src/InputGroup/InputGroupInternalContext.ts +6 -2
  407. package/src/InteractiveRoleContext/InteractiveRoleContext.ts +8 -3
  408. package/src/Item/ItemDescriptionContext.tsx +7 -3
  409. package/src/Item/ItemListRowContext.tsx +7 -3
  410. package/src/Item/ItemMarkerColumnsContext.tsx +7 -2
  411. package/src/Layer/LayerContext.ts +7 -2
  412. package/src/Layer/LayerDepthContext.tsx +3 -2
  413. package/src/Layer/LayerTouch.ts +6 -2
  414. package/src/Layer/anchorName.ts +8 -4
  415. package/src/Layer/inputHold.ts +138 -21
  416. package/src/Layer/layerScopedContext.tsx +34 -7
  417. package/src/Layer/layerSlideRules.ts +43 -40
  418. package/src/Layer/outsidePress.ts +144 -28
  419. package/src/Layer/settledBox.ts +216 -54
  420. package/src/Layer/toastHost.tsx +6 -2
  421. package/src/Layer/useLayer.tsx +200 -69
  422. package/src/Layer/useLayerKeyboardClearance.ts +90 -12
  423. package/src/Layer/useTouchTrigger.ts +89 -40
  424. package/src/Layout/Layout.doc.mjs +17 -0
  425. package/src/Layout/Layout.tsx +13 -9
  426. package/src/Layout/LayoutAreaContext.ts +8 -9
  427. package/src/Layout/LayoutContent.doc.mjs +11 -0
  428. package/src/Layout/LayoutContent.tsx +9 -9
  429. package/src/Layout/LayoutDividerContext.ts +6 -2
  430. package/src/Layout/LayoutSlotsContext.ts +6 -3
  431. package/src/Link/LinkContext.ts +7 -3
  432. package/src/List/List.doc.mjs +5 -0
  433. package/src/List/List.tsx +53 -5
  434. package/src/List/ListContext.tsx +28 -6
  435. package/src/List/ListItem.doc.mjs +11 -0
  436. package/src/List/ListItem.tsx +51 -14
  437. package/src/List/listLayoutUpdates.ts +603 -0
  438. package/src/Markdown/Markdown.tsx +93 -5
  439. package/src/Markdown/blockDirection.ts +100 -0
  440. package/src/Markdown/plugins/HeadingLinksRenderer.tsx +4 -0
  441. package/src/MetadataList/MetadataListContext.tsx +6 -2
  442. package/src/NavMenu/NavMenuContext.tsx +14 -5
  443. package/src/Popover/Popover.tsx +23 -16
  444. package/src/Popover/usePopover.tsx +21 -7
  445. package/src/RadioList/RadioList.tsx +7 -4
  446. package/src/RadioList/RadioListReasonContext.ts +1 -1
  447. package/src/Section/Section.doc.mjs +22 -0
  448. package/src/SegmentedControl/SegmentedControlContext.ts +6 -2
  449. package/src/SelectableCard/selectableCardInput.ts +6 -2
  450. package/src/Selector/SelectorRowLayoutContext.ts +6 -2
  451. package/src/SideNav/SideNavCollapseButton.doc.mjs +5 -5
  452. package/src/SideNav/SideNavCollapseButton.tsx +4 -3
  453. package/src/SideNav/SideNavCollapseContext.ts +12 -7
  454. package/src/SideNav/SideNavFocusTargetsContext.ts +6 -2
  455. package/src/SideNav/SideNavItem.tsx +6 -2
  456. package/src/SideNav/SideNavRenderContext.ts +9 -8
  457. package/src/SideNav/railMotion.ts +6 -2
  458. package/src/SizeContext/SizeContext.ts +6 -2
  459. package/src/SnapPaging/SnapPaging.ts +164 -39
  460. package/src/SnapPaging/snapPagingValue.ts +59 -12
  461. package/src/Spinner/SpinnerOwnerContext.ts +6 -2
  462. package/src/Stepper/StepperContext.ts +12 -3
  463. package/src/Switch/useSwitchTouch.ts +7 -5
  464. package/src/TabList/TabListContext.ts +7 -2
  465. package/src/Table/BaseTable.tsx +143 -19
  466. package/src/Table/Table.tsx +4 -3
  467. package/src/Table/TableContext.ts +6 -2
  468. package/src/Table/index.ts +2 -0
  469. package/src/Table/plugins/filtering/useTableFiltering.tsx +11 -3
  470. package/src/Table/plugins/rowExpansion/useTableRowExpansion.tsx +10 -3
  471. package/src/Table/plugins/rowIndex/useTableRowIndex.tsx +38 -29
  472. package/src/Table/plugins/selection/useTableSelection.tsx +7 -2
  473. package/src/Table/plugins/stickyColumns/useTableStickyColumns.tsx +1 -0
  474. package/src/Table/plugins/tree/useTableTreeData.tsx +6 -2
  475. package/src/Table/tableRowContextUsage.ts +105 -0
  476. package/src/Table/types.ts +60 -2
  477. package/src/Table/useBaseTablePlugins.ts +5 -2
  478. package/src/Table/useTableRowIndex.doc.mjs +6 -7
  479. package/src/Text/Text.tsx +34 -18
  480. package/src/Text/TruncationTooltip.tsx +179 -0
  481. package/src/Text/textClampContext.ts +5 -1
  482. package/src/TimeInput/TimeInput.tsx +4 -0
  483. package/src/ToggleButton/ToggleButtonGroup.tsx +6 -2
  484. package/src/Token/TokenNamingContext.ts +6 -2
  485. package/src/Tokenizer/TokenizerClearAllMessageContext.ts +4 -4
  486. package/src/Tokenizer/TokenizerItemRemovableContext.ts +3 -3
  487. package/src/Toolbar/Toolbar.tsx +16 -9
  488. package/src/Tooltip/tooltipPresentInterest.ts +43 -0
  489. package/src/Tooltip/useTooltip.tsx +33 -0
  490. package/src/TopNav/TopNavContext.ts +6 -2
  491. package/src/TopNav/TopNavMobileContentContext.ts +8 -3
  492. package/src/TopNav/TopNavRenderContext.ts +8 -4
  493. package/src/Typeahead/busyIndicatorLane.tsx +7 -2
  494. package/src/Typeahead/committedChoicesKey.tsx +4 -3
  495. package/src/Typeahead/trailingKeyDown.tsx +7 -2
  496. package/src/gestures/GestureArena.ts +8 -1
  497. package/src/gestures/GestureRecognizer.ts +9 -0
  498. package/src/gestures/PressTracker.ts +13 -4
  499. package/src/hooks/focusableSelector.ts +29 -1
  500. package/src/hooks/longPressDetector.ts +1 -35
  501. package/src/hooks/pressGroupContext.ts +5 -1
  502. package/src/hooks/useActionGroupTracking.ts +29 -2
  503. package/src/hooks/useAnnounce.ts +8 -4
  504. package/src/hooks/useFocusTrap.ts +62 -2
  505. package/src/hooks/useListFocus.ts +34 -7
  506. package/src/hooks/usePager.ts +30 -3
  507. package/src/hooks/useScrollOverflow.ts +65 -7
  508. package/src/i18n/InternationalizationContext.ts +12 -8
  509. package/src/i18n/englishFallback.ts +7 -1
  510. package/src/i18n/firstStrongDirection.ts +69 -0
  511. package/src/i18n/generated-locales/en.generated.ts +1 -0
  512. package/src/i18n/generated-locales/pseudo.generated.ts +1 -0
  513. package/src/internal/scroll-anchoring.ts +16 -0
  514. package/src/internal/touch.ts +4 -0
  515. package/src/motion/animatedLayout.ts +44 -3
  516. package/src/motion/animator.ts +97 -9
  517. package/src/privateAttributes/itemKey.stylex.ts +25 -0
  518. package/src/privateAttributes/leaving.stylex.ts +23 -0
  519. package/src/privateAttributes/press.stylex.ts +19 -7
  520. package/src/privateAttributes/scrollAnchoring.stylex.ts +50 -0
  521. package/src/privateAttributes/travelling.stylex.ts +88 -0
  522. package/src/theme/Theme.tsx +124 -60
  523. package/src/theme/syntax/SyntaxTheme.tsx +7 -2
  524. package/src/theme/useTheme.ts +7 -8
  525. package/src/utils/calendarSystem.ts +7 -1
  526. package/src/utils/flatTree.ts +31 -4
  527. package/src/utils/inputAge.ts +66 -0
  528. package/src/utils/inputStream.ts +52 -3
  529. package/src/utils/moduleLoader.ts +47 -0
  530. package/src/utils/pressFeedback.ts +16 -7
  531. package/src/utils/selectionLock.ts +8 -18
  532. package/src/utils/sharedContext.ts +42 -0
  533. package/src/utils/sharedRealm.ts +42 -0
@@ -34,7 +34,7 @@
34
34
  * <Theme theme={ocean}><App /></Theme>
35
35
  * ```
36
36
  */
37
- import React, { use, useId, useInsertionEffect, useMemo } from 'react';
37
+ import React, { use, useId, useInsertionEffect, useMemo, useState } from 'react';
38
38
  import { useIsomorphicLayoutEffect } from "../hooks/useIsomorphicLayoutEffect.js";
39
39
  import * as stylex from '@stylexjs/stylex';
40
40
  import "./tokens.stylex.js";
@@ -46,6 +46,7 @@ import { ThemeContext } from "./useTheme.js";
46
46
  import { warnOnce } from "../utils/devWarning.js";
47
47
  import { REDUCED_MOTION_PROPERTY, resolveMotionKnobs } from "./themeMotion.js";
48
48
  import { reducedMotionMarkProps, setRootReducedMotionMark } from "../privateAttributes/reducedMotion.stylex.js";
49
+ import { createSharedContext } from "../utils/sharedContext.js";
49
50
 
50
51
  /**
51
52
  * Theme provider props
@@ -92,16 +93,59 @@ const wrapperStyles = {
92
93
  * @internal Not exported from the theme barrel; useToast imports it from
93
94
  * './theme/Theme' directly.
94
95
  */
95
- export const ThemeNestingContext = /*#__PURE__*/React.createContext(false);
96
+ export const ThemeNestingContext = createSharedContext('ThemeNestingContext', 1, false);
96
97
  ThemeNestingContext.displayName = 'ThemeNestingContext';
97
98
 
98
99
  // =============================================================================
99
100
  // Style injection for unbuilt themes
100
101
  // =============================================================================
101
102
 
102
- /** Track which themes have already been injected */
103
- const injectedThemes = new Set();
103
+ /**
104
+ * The CSS is shared by the whole document. Remove it only when the last
105
+ * `Theme` that uses it unmounts.
106
+ */
107
+
108
+ const injectedThemes = new Map();
104
109
  const THEME_LAYER_ORDER = '@layer reset, astryx-base, astryx-theme;';
110
+ function writeThemeStyles(theme, id) {
111
+ const {
112
+ prose,
113
+ component
114
+ } = generateThemeCSS(theme);
115
+ const styles = [];
116
+
117
+ // Prose defaults go into @layer reset — lowest priority, scoped to
118
+ // the theme region. Any class-based style (StyleX, .xds-*) wins.
119
+ if (prose) {
120
+ const proseStyle = document.createElement('style');
121
+ proseStyle.setAttribute(dataAttr('theme-prose'), theme.name);
122
+ proseStyle.setAttribute(dataAttr('id'), id);
123
+ proseStyle.textContent = `${THEME_LAYER_ORDER}\n@layer reset {\n${prose}\n}`;
124
+ document.head.appendChild(proseStyle);
125
+ styles.push(proseStyle);
126
+ }
127
+
128
+ // Component overrides go into @layer astryx-theme — above StyleX layers
129
+ // so themes can intentionally restyle components.
130
+ if (component) {
131
+ const compStyle = document.createElement('style');
132
+ compStyle.setAttribute(dataAttr('theme'), theme.name);
133
+ compStyle.setAttribute(dataAttr('id'), id);
134
+ compStyle.textContent = `${THEME_LAYER_ORDER}\n@layer astryx-theme {\n${component}\n}`;
135
+ document.head.appendChild(compStyle);
136
+ styles.push(compStyle);
137
+ }
138
+ return styles;
139
+ }
140
+
141
+ /** Replace an entry's CSS with `theme`'s. */
142
+ function rewriteThemeStyles(entry, theme, id) {
143
+ for (const style of entry.styles) {
144
+ style.remove();
145
+ }
146
+ entry.theme = theme;
147
+ entry.styles = writeThemeStyles(theme, id);
148
+ }
105
149
 
106
150
  /**
107
151
  * Hook to inject theme CSS into the document.
@@ -110,6 +154,7 @@ const THEME_LAYER_ORDER = '@layer reset, astryx-base, astryx-theme;';
110
154
  */
111
155
  function useThemeStyleInjection(theme) {
112
156
  const id = useId();
157
+ const [instance] = useState(() => ({}));
113
158
 
114
159
  // Syncs the document's stylesheets with the runtime theme CSS.
115
160
  useInsertionEffect(() => {
@@ -117,57 +162,58 @@ function useThemeStyleInjection(theme) {
117
162
  if (theme.__built) {
118
163
  return;
119
164
  }
120
-
121
- // Second and later `Theme`s using this theme do no work at all —
122
- // generation included. Its CSS is document-wide and identical for each.
123
165
  const themeKey = `astryx-theme-${theme.name}`;
124
- if (injectedThemes.has(themeKey)) {
125
- return;
126
- }
127
-
128
- // One-time perf hint per theme
129
- warnOnce(`theme-injection:${theme.name}`, 'Theme', `"${theme.name}" is using runtime style injection. ` + `For better performance, use the pre-built theme:\n\n` + ` import {${theme.name}Theme} from '@astryxdesign/theme-${theme.name}/built';\n` + ` import '@astryxdesign/theme-${theme.name}/theme.css';\n\n` + `For custom themes, run \`npx @astryxdesign/cli theme build <file>\` to generate ` + `the built artifacts.`);
130
- const {
131
- prose,
132
- component
133
- } = generateThemeCSS(theme);
134
- injectedThemes.add(themeKey);
135
- const cleanups = [() => injectedThemes.delete(themeKey)];
136
-
137
- // Prose defaults go into @layer reset — lowest priority, scoped to
138
- // the theme region. Any class-based style (StyleX, .xds-*) wins.
139
- if (prose) {
140
- const proseStyle = document.createElement('style');
141
- proseStyle.setAttribute(dataAttr('theme-prose'), theme.name);
142
- proseStyle.setAttribute(dataAttr('id'), id);
143
- proseStyle.textContent = `${THEME_LAYER_ORDER}\n@layer reset {\n${prose}\n}`;
144
- document.head.appendChild(proseStyle);
166
+ let entry = injectedThemes.get(themeKey);
167
+ if (entry == null) {
168
+ // One-time perf hint per theme
169
+ warnOnce(`theme-injection:${theme.name}`, 'Theme', `"${theme.name}" is using runtime style injection. ` + `For better performance, use the pre-built theme:\n\n` + ` import {${theme.name}Theme} from '@astryxdesign/theme-${theme.name}/built';\n` + ` import '@astryxdesign/theme-${theme.name}/theme.css';\n\n` + `For custom themes, run \`npx @astryxdesign/cli theme build <file>\` to generate ` + `the built artifacts.`);
170
+ entry = {
171
+ users: new Map(),
172
+ owner: instance,
173
+ formerOwner: null,
174
+ theme,
175
+ styles: writeThemeStyles(theme, id)
176
+ };
177
+ injectedThemes.set(themeKey, entry);
145
178
  }
146
-
147
- // Component overrides go into @layer astryx-theme — above StyleX layers
148
- // so themes can intentionally restyle components.
149
- if (component) {
150
- const compStyle = document.createElement('style');
151
- compStyle.setAttribute(dataAttr('theme'), theme.name);
152
- compStyle.setAttribute(dataAttr('id'), id);
153
- compStyle.textContent = `${THEME_LAYER_ORDER}\n@layer astryx-theme {\n${component}\n}`;
154
- document.head.appendChild(compStyle);
155
- }
156
- if (prose || component) {
157
- cleanups.push(() => {
158
- // Matched by the astryx id marker, which is always written above.
159
- const proseEl = document.querySelector(`style[${dataAttr('theme-prose')}="${theme.name}"][${dataAttr('id')}="${id}"]`);
160
- const compEl = document.querySelector(`style[${dataAttr('theme')}="${theme.name}"][${dataAttr('id')}="${id}"]`);
161
- proseEl?.remove();
162
- compEl?.remove();
163
- });
179
+ // A later `Theme` does no generation. The CSS of the first `Theme` that
180
+ // injected the name stays in the document.
181
+ entry.users.set(instance, {
182
+ theme,
183
+ id
184
+ });
185
+ if (entry.formerOwner === instance) {
186
+ // The owner's own theme changed: its new definition paints, as on main.
187
+ entry.owner = instance;
188
+ entry.formerOwner = null;
189
+ if (entry.theme !== theme) {
190
+ rewriteThemeStyles(entry, theme, id);
191
+ }
164
192
  }
193
+ const current = entry;
165
194
  return () => {
166
- for (const cleanup of cleanups) {
167
- cleanup();
195
+ current.users.delete(instance);
196
+ if (current.users.size === 0) {
197
+ for (const style of current.styles) {
198
+ style.remove();
199
+ }
200
+ injectedThemes.delete(themeKey);
201
+ return;
202
+ }
203
+ if (current.owner !== instance) {
204
+ return;
205
+ }
206
+ // The earliest-mounted `Theme` that remains takes over the CSS. If its
207
+ // theme differs, as after a redefinition under the same name, its CSS
208
+ // replaces the old one.
209
+ const [nextOwner, next] = [...current.users][0];
210
+ current.owner = nextOwner;
211
+ current.formerOwner = instance;
212
+ if (next.theme !== current.theme) {
213
+ rewriteThemeStyles(current, next.theme, next.id);
168
214
  }
169
215
  };
170
- }, [theme, id]);
216
+ }, [theme, id, instance]);
171
217
  }
172
218
 
173
219
  // =============================================================================
@@ -1 +1 @@
1
- {"version":3,"file":"SyntaxTheme.d.ts","sourceRoot":"","sources":["../../../src/theme/syntax/SyntaxTheme.tsx"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AAEH,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,EAIL,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACzB,MAAM,qBAAqB,CAAC;AAqB7B,MAAM,WAAW,oBAAoB;IACnC,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,iDAAiD;IACjD,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB;;;;;OAKG;IACH,KAAK,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,MAAM,CAAC;IAC7C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;CAC7C;AAsBD;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,IAAI,oBAAoB,GAAG,IAAI,CAoD5D;AAMD,UAAU,gBAAgB;IACxB,KAAK,EAAE,qBAAqB,CAAC;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,QAAQ,GACT,EAAE,gBAAgB,GAAG,KAAK,CAAC,YAAY,CAWvC;yBAde,WAAW"}
1
+ {"version":3,"file":"SyntaxTheme.d.ts","sourceRoot":"","sources":["../../../src/theme/syntax/SyntaxTheme.tsx"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AAEH,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAIL,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACzB,MAAM,qBAAqB,CAAC;AA0B7B,MAAM,WAAW,oBAAoB;IACnC,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,iDAAiD;IACjD,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB;;;;;OAKG;IACH,KAAK,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,MAAM,CAAC;IAC7C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;CAC7C;AAsBD;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,IAAI,oBAAoB,GAAG,IAAI,CAoD5D;AAMD,UAAU,gBAAgB;IACxB,KAAK,EAAE,qBAAqB,CAAC;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,QAAQ,GACT,EAAE,gBAAgB,GAAG,KAAK,CAAC,YAAY,CAWvC;yBAde,WAAW"}
@@ -10,11 +10,12 @@
10
10
  *
11
11
  * @see https://github.com/meta/astryx/issues/1148
12
12
  */
13
- import React, { createContext, use, useMemo } from 'react';
13
+ import React, { use, useMemo } from 'react';
14
14
  import { syntaxThemeStyle, resolveSyntaxTokenForMode, ALL_SYNTAX_KEYS } from "./defineSyntaxTheme.js";
15
15
  import { useMediaQuery } from "../../hooks/useMediaQuery.js";
16
16
  import { useTheme } from "../useTheme.js";
17
17
  import { formatColor, parseColor } from "../../utils/color.js";
18
+ import { createSharedContext } from "../../utils/sharedContext.js";
18
19
 
19
20
  // =============================================================================
20
21
  // Context
@@ -22,7 +23,7 @@ import { formatColor, parseColor } from "../../utils/color.js";
22
23
 
23
24
  /** @internal */
24
25
  import { jsx as _jsx } from "react/jsx-runtime";
25
- const SyntaxThemeContext = /*#__PURE__*/createContext(null);
26
+ const SyntaxThemeContext = createSharedContext('SyntaxThemeContext', 1, null);
26
27
  SyntaxThemeContext.displayName = 'SyntaxThemeContext';
27
28
 
28
29
  // =============================================================================
@@ -1 +1 @@
1
- {"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../src/theme/useTheme.ts"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAUhD;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,+BAA+B;IAC/B,KAAK,EAAE,YAAY,CAAC;IACpB,0CAA0C;IAC1C,IAAI,EAAE,SAAS,CAAC;CACjB;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,mDAAgD,CAAC;AAO1E;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,iBAAiB;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,kEAAkE;IAClE,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB;;;;;;;;;;;;;OAaG;IACH,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAChC;;;;;;;OAOG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AA+HD;;;;;;;GAOG;AACH,wBAAgB,YAAY,IAAI,MAAM,GAAG,IAAI,CAM5C;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,UAAO,GAAG,YAAY,GAAG,SAAS,CAS3E;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,QAAQ,IAAI,cAAc,CAsCzC"}
1
+ {"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../src/theme/useTheme.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAWhD;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,+BAA+B;IAC/B,KAAK,EAAE,YAAY,CAAC;IACpB,0CAA0C;IAC1C,IAAI,EAAE,SAAS,CAAC;CACjB;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,mDAIxB,CAAC;AAOF;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,iBAAiB;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,kEAAkE;IAClE,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB;;;;;;;;;;;;;OAaG;IACH,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAChC;;;;;;;OAOG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AA+HD;;;;;;;GAOG;AACH,wBAAgB,YAAY,IAAI,MAAM,GAAG,IAAI,CAM5C;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,UAAO,GAAG,YAAY,GAAG,SAAS,CAS3E;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,QAAQ,IAAI,cAAc,CAsCzC"}
@@ -22,11 +22,12 @@
22
22
  * SYNC: When modified, update:
23
23
  * - /packages/core/src/theme/index.ts
24
24
  */
25
- import { createContext, use, useCallback, useMemo, useSyncExternalStore } from 'react';
25
+ import { use, useCallback, useMemo, useSyncExternalStore } from 'react';
26
26
  import { resolveThemeTokens } from "./tokens.js";
27
27
  import { getRegisteredTheme } from "./themeRegistry.js";
28
28
  import { dataAttr } from "../naming.js";
29
29
  import { useMediaQuery } from "../hooks/useMediaQuery.js";
30
+ import { createSharedContext } from "../utils/sharedContext.js";
30
31
 
31
32
  // =============================================================================
32
33
  // Context
@@ -42,7 +43,7 @@ import { useMediaQuery } from "../hooks/useMediaQuery.js";
42
43
  * null when no provider is present.
43
44
  * @internal
44
45
  */
45
- export const ThemeContext = /*#__PURE__*/createContext(null);
46
+ export const ThemeContext = createSharedContext('ThemeContext', 1, null);
46
47
  ThemeContext.displayName = 'ThemeContext';
47
48
 
48
49
  // =============================================================================
@@ -1 +1 @@
1
- {"version":3,"file":"calendarSystem.d.ts","sourceRoot":"","sources":["../../src/utils/calendarSystem.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAgB3C;;;;GAIG;AACH,MAAM,MAAM,cAAc,GACtB,SAAS,GACT,SAAS,GACT,UAAU,GACV,KAAK,GACL,UAAU,GACV,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,OAAO,GACP,QAAQ,GACR,UAAU,GACV,SAAS,GACT,eAAe,GACf,cAAc,GACd,kBAAkB,CAAC;AAsBvB,eAAO,MAAM,gBAAgB,EAExB,aAAa,CAAC,cAAc,CAAC,CAAC;AAUnC;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,cAAc,GAAG,OAAO,CAErE;AAED,qEAAqE;AACrE,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,cAAc,GAAG,OAAO,CAEpE;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAEvE;AAgDD;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,cAAc,GAAG,OAAO,CAwB3E;AAkBD,2EAA2E;AAC3E,MAAM,WAAW,aAAa;IAC5B,QAAQ,CA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,QAAQ,EAAE,cAAc,EACxB,MAAM,EAAE,kBAAkB,GACzB,SAAS,GAAG,IAAI,CAelB;AAED,sEAAsE;AACtE,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,cAAc,EACxB,EAAE,EAAE,SAAS,GACZ,MAAM,CAIR;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAE,aAAa,EACnB,EAAE,EAAE,aAAa,GAChB,MAAM,CAWR;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,GACZ,aAAa,CAIf;AAED,sDAAsD;AACtD,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAE,MAAM,GACX,MAAM,CAOR;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,cAAc,EACxB,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,MAAM,GACb,MAAM,CAOR;AAyCD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACb,OAAO,CAgBT;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,EAAE,CAAC,EAAE;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;CAAC,GAClD,MAAM,CAuBR"}
@@ -189,7 +189,10 @@ export function calendarMonthFromYearMonth(calendar, {
189
189
  month
190
190
  }) {
191
191
  if (isGregorianAligned(calendar)) {
192
- return gregorianMonth(year - (GREGORIAN_YEAR_OFFSETS[calendar] ?? 0), month);
192
+ // A Gregorian year has 12 months. Past it, `getDaysInMonth` answers
193
+ // undefined, so constrain here as the Temporal branch below already does.
194
+ const monthOfYear = Math.min(month, calendarMonthsInCalendarYear(calendar, year));
195
+ return gregorianMonth(year - (GREGORIAN_YEAR_OFFSETS[calendar] ?? 0), monthOfYear);
193
196
  }
194
197
  // `with` replaces the year and month of any date in the calendar.
195
198
  return temporalMonth(inCalendar(calendar, {
@@ -7,4 +7,17 @@ export declare function parentAcrossShadow(node: Node): Node | null;
7
7
  export declare function containsAlongFlatTree(ancestor: Node, node: Node): boolean;
8
8
  /** The focused element of `doc`, inside open shadow roots too. */
9
9
  export declare function deepActiveElement(doc: Document | null | undefined): Element | null;
10
+ /**
11
+ * The host of a shadow root, open or closed and from any window, and null for
12
+ * any other node.
13
+ */
14
+ export declare function shadowHostOf(node: Node): Element | null;
15
+ /**
16
+ * The shadow roots from `node` out to its document, innermost first, each with
17
+ * its host. Empty when `node` is not a shadow root.
18
+ */
19
+ export declare function shadowRootsOutward(node: Node): {
20
+ readonly root: ShadowRoot;
21
+ readonly host: Element;
22
+ }[];
10
23
  //# sourceMappingURL=flatTree.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flatTree.d.ts","sourceRoot":"","sources":["../../src/utils/flatTree.ts"],"names":[],"mappings":"AAeA,uDAAuD;AACvD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAa1D;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,GAAG,OAAO,CAOzE;AAED,kEAAkE;AAClE,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS,GAC/B,OAAO,GAAG,IAAI,CAMhB"}
1
+ {"version":3,"file":"flatTree.d.ts","sourceRoot":"","sources":["../../src/utils/flatTree.ts"],"names":[],"mappings":"AAgBA,uDAAuD;AACvD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAa1D;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,GAAG,OAAO,CAOzE;AAED,kEAAkE;AAClE,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS,GAC/B,OAAO,GAAG,IAAI,CAMhB;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,GAAG,IAAI,CAEvD;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,IAAI,GACT;IAAC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CAAC,EAAE,CAUvD"}
@@ -4,11 +4,12 @@
4
4
  * @file flatTree.ts
5
5
  * @input A DOM node
6
6
  * @output Exports parentAcrossShadow, containsAlongFlatTree, which walks it,
7
- * and deepActiveElement
7
+ * deepActiveElement, shadowHostOf, a shadow root's host, and
8
+ * shadowRootsOutward
8
9
  * @position The flat-tree parent the browser scrolls and dispatches
9
- * through, shared by the gesture host's native-scroll probe, the
10
- * selection lock (which the press feedback controller uses without the
11
- * gesture system) and the Layer module's input hold
10
+ * through. The gesture host's native-scroll probe, the outside-press watch,
11
+ * the selection lock and the Layer module's input hold share it. The press
12
+ * feedback controller uses the selection lock without the gesture system
12
13
  */
13
14
 
14
15
  import { isShadowRoot } from "./nodeType.js";
@@ -47,4 +48,27 @@ export function deepActiveElement(doc) {
47
48
  active = active.shadowRoot.activeElement;
48
49
  }
49
50
  return active;
51
+ }
52
+
53
+ /**
54
+ * The host of a shadow root, open or closed and from any window, and null for
55
+ * any other node.
56
+ */
57
+ export function shadowHostOf(node) {
58
+ return isShadowRoot(node) ? node.host : null;
59
+ }
60
+
61
+ /**
62
+ * The shadow roots from `node` out to its document, innermost first, each with
63
+ * its host. Empty when `node` is not a shadow root.
64
+ */
65
+ export function shadowRootsOutward(node) {
66
+ const roots = [];
67
+ for (let at = node, host = shadowHostOf(at); host != null; at = host.getRootNode(), host = shadowHostOf(at)) {
68
+ roots.push({
69
+ root: at,
70
+ host
71
+ });
72
+ }
73
+ return roots;
50
74
  }
@@ -0,0 +1,22 @@
1
+ /** The part of a window's performance timeline an input's age reads. */
2
+ export type EventClock = Pick<Performance, 'now'>;
3
+ /**
4
+ * The clock of the window that stamped an input: an event's `view`, or the
5
+ * window of the node it landed on. A same-origin iframe's clock or a popup's
6
+ * starts later than the page's. With neither, the clock is this window's.
7
+ */
8
+ export declare function clockOf(source: unknown): EventClock | null;
9
+ /**
10
+ * An event's time on its window's clock. jsdom stamps events with
11
+ * `Date.now()`. Such a stamp keeps its age on that clock, so a frozen system
12
+ * time keeps a delay's length. A stamp nearer `Date.now()` than the window's
13
+ * clock is that kind of stamp.
14
+ */
15
+ export declare function timeOn(clock: EventClock | null, timeStamp: number | undefined): number | undefined;
16
+ /**
17
+ * How long ago the input stamped `time` happened, on the clock of the window
18
+ * that stamped it (`clockOf(source)`). A busy main thread runs a listener
19
+ * late. An input with no time, or a time ahead of now, counts as now.
20
+ */
21
+ export declare function msSinceInput(time: number, source?: unknown): number;
22
+ //# sourceMappingURL=inputAge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inputAge.d.ts","sourceRoot":"","sources":["../../src/utils/inputAge.ts"],"names":[],"mappings":"AAcA,wEAAwE;AACxE,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AAElD;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,GAAG,IAAI,CAQ1D;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CACpB,KAAK,EAAE,UAAU,GAAG,IAAI,EACxB,SAAS,EAAE,MAAM,GAAG,SAAS,GAC5B,MAAM,GAAG,SAAS,CAapB;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAInE"}
@@ -0,0 +1,54 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /**
4
+ * @file inputAge.ts
5
+ * @input An input's time stamp, and its event or the node it landed on
6
+ * @output clockOf, timeOn and msSinceInput: the clock of the window that
7
+ * stamped an input, its time on that clock, and how long ago it happened
8
+ * @position Internal utility. The content-touch delay (utils/pressFeedback.ts,
9
+ * gestures/PressTracker.ts) and the long-press hold
10
+ * (hooks/longPressDetector.ts) count from the touch with it.
11
+ */
12
+
13
+ import { isDocument, isNode } from "./nodeType.js";
14
+
15
+ /** The part of a window's performance timeline an input's age reads. */
16
+
17
+ /**
18
+ * The clock of the window that stamped an input: an event's `view`, or the
19
+ * window of the node it landed on. A same-origin iframe's clock or a popup's
20
+ * starts later than the page's. With neither, the clock is this window's.
21
+ */
22
+ export function clockOf(source) {
23
+ const view = isNode(source) ? (isDocument(source) ? source : source.ownerDocument)?.defaultView : source?.view;
24
+ return view?.performance ?? (typeof performance === 'undefined' ? null : performance);
25
+ }
26
+
27
+ /**
28
+ * An event's time on its window's clock. jsdom stamps events with
29
+ * `Date.now()`. Such a stamp keeps its age on that clock, so a frozen system
30
+ * time keeps a delay's length. A stamp nearer `Date.now()` than the window's
31
+ * clock is that kind of stamp.
32
+ */
33
+ export function timeOn(clock, timeStamp) {
34
+ // A stamp of 0 means the event carries no time, so a delay falls back to
35
+ // its full length on the page's timer.
36
+ if (timeStamp == null || !Number.isFinite(timeStamp) || timeStamp <= 0) {
37
+ return undefined;
38
+ }
39
+ if (clock != null && Math.abs(Date.now() - timeStamp) < Math.abs(clock.now() - timeStamp)) {
40
+ return clock.now() - (Date.now() - timeStamp);
41
+ }
42
+ return timeStamp;
43
+ }
44
+
45
+ /**
46
+ * How long ago the input stamped `time` happened, on the clock of the window
47
+ * that stamped it (`clockOf(source)`). A busy main thread runs a listener
48
+ * late. An input with no time, or a time ahead of now, counts as now.
49
+ */
50
+ export function msSinceInput(time, source) {
51
+ const clock = clockOf(source);
52
+ const at = timeOn(clock, time);
53
+ return clock == null || at == null ? 0 : Math.max(0, clock.now() - at);
54
+ }
@@ -33,6 +33,14 @@ export declare function getLastPointerType(view: Window): string | null;
33
33
  * since rests there. Reading it adds no listener.
34
34
  */
35
35
  export declare function getLastMousePoint(view: Window): MousePoint | null;
36
+ /**
37
+ * The finger and pen presses that are down in `view`, by pointer id, each at
38
+ * the point where the stream last heard it. The stream hears them only while
39
+ * subscribers listen to `pointerdown`, `pointerup` and `pointercancel` (and
40
+ * `pointermove` for a moving press), as press feedback and the gesture host
41
+ * do. Reading it adds no listener.
42
+ */
43
+ export declare function getDownPresses(view: Window): ReadonlyMap<number, MousePoint>;
36
44
  /**
37
45
  * Listen to `type` on `view`'s capture phase through its shared native
38
46
  * listener. Returns the unsubscribe; calling it again does nothing.
@@ -1 +1 @@
1
- {"version":3,"file":"inputStream.d.ts","sourceRoot":"","sources":["../../src/utils/inputStream.ts"],"names":[],"mappings":"AAiDA,0CAA0C;AAC1C,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,6EAA6E;AAC7E,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,gBAAgB,CAAC;AAQ9D,8CAA8C;AAC9C,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAE9D;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI,CAEjE;AAED;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AAC,GAAE,wBAA6B,GAC9D,MAAM,IAAI,CAiDZ"}
@@ -4,9 +4,10 @@
4
4
  * @file inputStream.ts
5
5
  * @input A window, and subscribers to its input events (the press feedback
6
6
  * controller, the gesture host)
7
- * @output subscribeInput, getLastPointerType and getLastMousePoint: the
8
- * type of the latest pointer event the stream delivered, and where the
9
- * latest mouse one was
7
+ * @output subscribeInput, getLastPointerType, getLastMousePoint and
8
+ * getDownPresses: the type of the latest pointer event the stream
9
+ * delivered, where the latest mouse one was, and where each finger and pen
10
+ * press that is down was last
10
11
  * @position The one entry for document-wide input listeners in core: one
11
12
  * native listener per event type on the window's capture phase, shared by
12
13
  * every subscriber
@@ -43,6 +44,10 @@ const lastPointerTypes = new WeakMap();
43
44
  /** Where the latest mouse pointer event each window's stream delivered was. */
44
45
  const lastMousePoints = new WeakMap();
45
46
 
47
+ /** Each window's finger and pen presses that are down, by pointer id. */
48
+ const downPresses = new WeakMap();
49
+ const NO_PRESSES = new Map();
50
+
46
51
  /** A point in the viewport, in CSS pixels. */
47
52
 
48
53
  /**
@@ -64,6 +69,17 @@ export function getLastMousePoint(view) {
64
69
  return lastMousePoints.get(view) ?? null;
65
70
  }
66
71
 
72
+ /**
73
+ * The finger and pen presses that are down in `view`, by pointer id, each at
74
+ * the point where the stream last heard it. The stream hears them only while
75
+ * subscribers listen to `pointerdown`, `pointerup` and `pointercancel` (and
76
+ * `pointermove` for a moving press), as press feedback and the gesture host
77
+ * do. Reading it adds no listener.
78
+ */
79
+ export function getDownPresses(view) {
80
+ return downPresses.get(view) ?? NO_PRESSES;
81
+ }
82
+
67
83
  /**
68
84
  * Listen to `type` on `view`'s capture phase through its shared native
69
85
  * listener. Returns the unsubscribe; calling it again does nothing.
@@ -114,6 +130,11 @@ export function subscribeInput(view, type, listener, {
114
130
  register(view, type, current);
115
131
  if (current.subscribers.length === 0) {
116
132
  streams.get(view)?.delete(type);
133
+ // Without a listener the stream cannot hear a press end, so the
134
+ // presses it recorded may already have ended.
135
+ if (type === 'pointerup' || type === 'pointercancel') {
136
+ downPresses.delete(view);
137
+ }
117
138
  }
118
139
  };
119
140
  }
@@ -163,6 +184,9 @@ function dispatch(view, channel, event) {
163
184
  y: clientY
164
185
  });
165
186
  }
187
+ if (pointerType === 'touch' || pointerType === 'pen') {
188
+ recordPress(view, event);
189
+ }
166
190
  // A subscriber may subscribe or unsubscribe while the event runs; the
167
191
  // event goes to those subscribed when it arrived.
168
192
  for (const subscriber of [...channel.subscribers]) {
@@ -178,6 +202,32 @@ function dispatch(view, channel, event) {
178
202
  }
179
203
  }
180
204
  }
205
+ function recordPress(view, event) {
206
+ const {
207
+ pointerId,
208
+ clientX,
209
+ clientY
210
+ } = event;
211
+ if (typeof pointerId !== 'number') {
212
+ return;
213
+ }
214
+ let presses = downPresses.get(view);
215
+ if (event.type === 'pointerup' || event.type === 'pointercancel') {
216
+ presses?.delete(pointerId);
217
+ return;
218
+ }
219
+ if (event.type !== 'pointerdown' && !(event.type === 'pointermove' && presses?.has(pointerId) === true) || typeof clientX !== 'number' || typeof clientY !== 'number') {
220
+ return;
221
+ }
222
+ if (presses == null) {
223
+ presses = new Map();
224
+ downPresses.set(view, presses);
225
+ }
226
+ presses.set(pointerId, {
227
+ x: clientX,
228
+ y: clientY
229
+ });
230
+ }
181
231
  function report(error) {
182
232
  if (typeof globalThis.reportError === 'function') {
183
233
  globalThis.reportError(error);
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @file moduleLoader.ts
3
+ * @input A function that imports a module on demand
4
+ * @output Exports `createModuleLoader`: one shared load of that module, and
5
+ * the module once it has loaded
6
+ * @position Internal utility. A component that loads a module before it is
7
+ * needed renders the loaded module directly, with no suspended render, so
8
+ * React does not hold back what it shows.
9
+ */
10
+ /** One module, loaded once on demand. Internal. */
11
+ export interface ModuleLoader<T> {
12
+ /**
13
+ * Loads the module, or returns the load already running or done. A failed
14
+ * load is not kept: the next call asks the module loader again (a loader
15
+ * that retries then loads it; a browser does not fetch a native module again
16
+ * once its import failed).
17
+ */
18
+ load(): Promise<T>;
19
+ /** The module once it has loaded, else null. */
20
+ loaded(): T | null;
21
+ }
22
+ export declare function createModuleLoader<T>(importModule: () => Promise<T>): ModuleLoader<T>;
23
+ //# sourceMappingURL=moduleLoader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moduleLoader.d.ts","sourceRoot":"","sources":["../../src/utils/moduleLoader.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH,mDAAmD;AACnD,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B;;;;;OAKG;IACH,IAAI,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC;IACnB,gDAAgD;IAChD,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,YAAY,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAC7B,YAAY,CAAC,CAAC,CAAC,CAmBjB"}
@@ -0,0 +1,31 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /**
4
+ * @file moduleLoader.ts
5
+ * @input A function that imports a module on demand
6
+ * @output Exports `createModuleLoader`: one shared load of that module, and
7
+ * the module once it has loaded
8
+ * @position Internal utility. A component that loads a module before it is
9
+ * needed renders the loaded module directly, with no suspended render, so
10
+ * React does not hold back what it shows.
11
+ */
12
+
13
+ /** One module, loaded once on demand. Internal. */
14
+
15
+ export function createModuleLoader(importModule) {
16
+ let module = null;
17
+ let pending = null;
18
+ return {
19
+ async load() {
20
+ pending ??= importModule().then(loadedModule => {
21
+ module = loadedModule;
22
+ return loadedModule;
23
+ }, error => {
24
+ pending = null;
25
+ throw error;
26
+ });
27
+ return pending;
28
+ },
29
+ loaded: () => module
30
+ };
31
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"pressFeedback.d.ts","sourceRoot":"","sources":["../../src/utils/pressFeedback.ts"],"names":[],"mappings":"AAyDA;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,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