@octane-xplat/ui 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1534) hide show
  1. package/README.md +40 -5
  2. package/dist/native/AlertDialog.tsrx.js +183 -0
  3. package/dist/native/AppShell.tsrx.js +311 -0
  4. package/dist/native/AspectRatio.tsrx.js +77 -0
  5. package/dist/native/AvatarGroup.tsrx.js +4 -19
  6. package/dist/native/BaseTypeahead.tsrx.js +420 -0
  7. package/dist/native/Blockquote.tsrx.js +51 -0
  8. package/dist/native/BottomSheet.tsrx.js +289 -0
  9. package/dist/native/Breadcrumb.tsrx.js +60 -15
  10. package/dist/native/Button.tsrx.js +73 -10
  11. package/dist/native/ButtonGroup.tsrx.js +47 -0
  12. package/dist/native/Calendar.tsrx.js +465 -0
  13. package/dist/native/Card.tsrx.js +8 -2
  14. package/dist/native/Carousel.tsrx.js +317 -0
  15. package/dist/native/Center.tsrx.js +70 -0
  16. package/dist/native/ChatComposer.tsrx.js +249 -0
  17. package/dist/native/ChatComposerDrawer.tsrx.js +124 -0
  18. package/dist/native/ChatComposerInput.tsrx.js +354 -0
  19. package/dist/native/ChatDictationButton.tsrx.js +101 -0
  20. package/dist/native/ChatLayout.tsrx.js +176 -0
  21. package/dist/native/ChatLayoutScrollButton.tsrx.js +77 -0
  22. package/dist/native/ChatMessage.tsrx.js +136 -0
  23. package/dist/native/ChatMessageBubble.tsrx.js +81 -0
  24. package/dist/native/ChatMessageList.tsrx.js +144 -0
  25. package/dist/native/ChatMessageMetadata.tsrx.js +144 -0
  26. package/dist/native/ChatSendButton.tsrx.js +87 -0
  27. package/dist/native/ChatSystemMessage.tsrx.js +103 -0
  28. package/dist/native/ChatTokenizedText.tsrx.js +72 -0
  29. package/dist/native/ChatToolCalls.tsrx.js +450 -0
  30. package/dist/native/CheckIndicator.tsrx.js +74 -0
  31. package/dist/native/Checkbox.tsrx.js +49 -27
  32. package/dist/native/CheckboxGroup.tsrx.js +25 -11
  33. package/dist/native/CheckboxIndicator.tsrx.js +57 -0
  34. package/dist/native/Citation.tsrx.js +195 -0
  35. package/dist/native/ClickableCard.tsrx.js +70 -0
  36. package/dist/native/Code.tsrx.js +39 -0
  37. package/dist/native/CodeBlock.tsrx.js +423 -0
  38. package/dist/native/CommandPalette.tsrx.js +339 -100
  39. package/dist/native/ComplexSelector.tsrx.js +324 -0
  40. package/dist/native/ContextMenu.tsrx.js +67 -64
  41. package/dist/native/DateInput.tsrx.js +645 -0
  42. package/dist/native/DateRangeInput.tsrx.js +489 -0
  43. package/dist/native/DateTimeInput.tsrx.js +987 -0
  44. package/dist/native/Dialog.tsrx.js +377 -0
  45. package/dist/native/DropdownMenu.tsrx.js +56 -66
  46. package/dist/native/FormField.tsrx.js +249 -16
  47. package/dist/native/FormLayout.tsrx.js +129 -0
  48. package/dist/native/HStack.tsrx.js +29 -0
  49. package/dist/native/HoverCard.mobile.tsrx.js +52 -0
  50. package/dist/native/Icon.tsrx.js +3 -1
  51. package/dist/native/{ScrollBox.tsrx.js → IconButton.tsrx.js} +9 -5
  52. package/dist/native/Image.tsrx.js +2 -1
  53. package/dist/native/InputGroup.tsrx.js +188 -0
  54. package/dist/native/InputNumber.tsrx.js +20 -11
  55. package/dist/native/InputRating.tsrx.js +20 -11
  56. package/dist/native/Item.tsrx.js +178 -0
  57. package/dist/native/Kbd.tsrx.js +7 -2
  58. package/dist/native/Lightbox.tsrx.js +464 -0
  59. package/dist/native/List.tsrx.js +143 -0
  60. package/dist/native/ListItem.tsrx.js +121 -144
  61. package/dist/native/Markdown.tsrx.js +321 -93
  62. package/dist/native/MenuParts.tsrx.js +762 -0
  63. package/dist/native/MenuSurface.tsrx.js +81 -0
  64. package/dist/native/MetadataList.tsrx.js +170 -0
  65. package/dist/native/MetadataListItem.tsrx.js +115 -0
  66. package/dist/native/MobileNav.tsrx.js +183 -0
  67. package/dist/native/MoreMenu.tsrx.js +264 -0
  68. package/dist/native/NavIcon.tsrx.js +57 -0
  69. package/dist/native/NavMenu.tsrx.js +180 -0
  70. package/dist/native/NavigationMenu.tsrx.js +59 -19
  71. package/dist/native/Outline.tsrx.js +229 -0
  72. package/dist/native/OverflowList.tsrx.js +202 -0
  73. package/dist/native/Overlay.tsrx.js +7 -2
  74. package/dist/native/PinInput.tsrx.js +110 -56
  75. package/dist/native/Popover.tsrx.js +50 -15
  76. package/dist/native/PowerSearch.tsrx.js +502 -0
  77. package/dist/native/PowerSearchFilterEditor.tsrx.js +234 -0
  78. package/dist/native/PowerSearchToken.tsrx.js +90 -0
  79. package/dist/native/Pressable.tsrx.js +15 -9
  80. package/dist/native/ProgressBar.tsrx.js +243 -0
  81. package/dist/native/RadioGroup.tsrx.js +48 -28
  82. package/dist/native/RadioIndicator.tsrx.js +50 -0
  83. package/dist/native/Resizable.js +3 -0
  84. package/dist/native/ResizeHandle.tsrx.js +104 -0
  85. package/dist/native/RouteBoundary.tsrx.js +51 -0
  86. package/dist/native/{RouteHost.mobile.tsrx.js → RouteHost.tsrx.js} +19 -3
  87. package/dist/native/SafeArea.tsrx.js +2 -5
  88. package/dist/native/Screen.tsrx.js +1 -1
  89. package/dist/native/ScrollableArea.tsrx.js +265 -0
  90. package/dist/native/SearchInput.tsrx.js +30 -22
  91. package/dist/native/Section.tsrx.js +71 -0
  92. package/dist/native/SegmentedControl.tsrx.js +23 -10
  93. package/dist/native/Select.tsrx.js +395 -95
  94. package/dist/native/SelectableCard.tsrx.js +64 -0
  95. package/dist/native/SideNav.tsrx.js +1222 -0
  96. package/dist/native/Slider.tsrx.js +2 -2
  97. package/dist/native/Stack.tsrx.js +134 -28
  98. package/dist/native/StackItem.tsrx.js +121 -0
  99. package/dist/native/StatusDot.tsrx.js +95 -0
  100. package/dist/native/Switch.tsrx.js +19 -6
  101. package/dist/native/TabList.tsrx.js +501 -0
  102. package/dist/native/Tabs.tsrx.js +85 -79
  103. package/dist/native/TextArea.tsrx.js +34 -22
  104. package/dist/native/TextInput.tsrx.js +93 -31
  105. package/dist/native/Thumbnail.tsrx.js +302 -0
  106. package/dist/native/TimeInput.tsrx.js +487 -0
  107. package/dist/native/TimeWheelPanel.tsrx.js +213 -0
  108. package/dist/native/Timer.tsrx.js +65 -0
  109. package/dist/native/Timestamp.tsrx.js +74 -0
  110. package/dist/native/Toast.tsrx.js +134 -0
  111. package/dist/native/ToggleButton.tsrx.js +126 -0
  112. package/dist/native/Token.tsrx.js +195 -0
  113. package/dist/native/Tokenizer.tsrx.js +818 -0
  114. package/dist/native/Toolbar.tsrx.js +223 -0
  115. package/dist/native/Tooltip.tsrx.js +131 -0
  116. package/dist/native/TopNav.tsrx.js +1315 -0
  117. package/dist/native/Typeahead.tsrx.js +462 -0
  118. package/dist/native/TypeaheadItem.tsrx.js +92 -0
  119. package/dist/native/VStack.tsrx.js +29 -0
  120. package/dist/native/View.tsrx.js +15 -9
  121. package/dist/native/VirtualList.tsrx.js +72 -45
  122. package/dist/native/VisuallyHidden.tsrx.js +49 -0
  123. package/dist/native/WebView.tsrx.js +10 -9
  124. package/dist/native/aliases.tsrx.js +19 -28
  125. package/dist/native/android/BottomNavigationView.android.tsrx.js +13 -3
  126. package/dist/native/android/MaterialDialog.android.tsrx.js +1 -1
  127. package/dist/native/android/RecyclerView.android.tsrx.js +94 -12
  128. package/dist/native/android/openModal.android.js +1 -1
  129. package/dist/native/anim.tsrx.js +16 -52
  130. package/dist/native/animated-value.js +96 -0
  131. package/dist/native/app-shell-config.js +19 -0
  132. package/dist/native/bottom-sheet-context.js +8 -0
  133. package/dist/native/bottom-sheet-service.js +87 -0
  134. package/dist/native/busy-lane.js +23 -0
  135. package/dist/native/button-group-context.js +11 -0
  136. package/dist/native/calendar-core.js +216 -0
  137. package/dist/native/calendar-hooks.tsrx.js +62 -0
  138. package/dist/native/chat-context.js +28 -0
  139. package/dist/native/chat-group-items.js +36 -0
  140. package/dist/native/chat-tokenize.js +41 -0
  141. package/dist/native/chat-tokens.tsrx.js +60 -0
  142. package/dist/native/child-array.js +8 -11
  143. package/dist/native/clipboard-write.js +13 -0
  144. package/dist/native/code-tokenizer.js +802 -0
  145. package/dist/native/codeblock-shared.tsrx.js +63 -0
  146. package/dist/native/command-palette-accessibility.mobile.js +12 -0
  147. package/dist/native/command-palette-state.js +191 -0
  148. package/dist/native/date-composition.js +11 -0
  149. package/dist/native/date-field-action.js +16 -0
  150. package/dist/native/date-messages.js +27 -0
  151. package/dist/native/datetime.js +759 -0
  152. package/dist/native/dialog-context.js +8 -0
  153. package/dist/native/escape-props.js +24 -4
  154. package/dist/native/field-context.js +57 -0
  155. package/dist/native/form-layout-context.js +10 -0
  156. package/dist/native/icons.js +22 -0
  157. package/dist/native/index.shared.js +134 -27
  158. package/dist/native/indicators.js +40 -0
  159. package/dist/native/input-group-context.js +6 -0
  160. package/dist/native/ios/UIModal.ios.tsrx.js +1 -1
  161. package/dist/native/ios/UITableView.ios.tsrx.js +94 -12
  162. package/dist/native/ios/openModal.ios.js +1 -1
  163. package/dist/native/is-renderable.js +8 -0
  164. package/dist/native/{keyboard-inset.mobile.js → keyboard-inset.js} +2 -2
  165. package/dist/native/layer-dismissal.tsrx.js +50 -0
  166. package/dist/native/layer-keys.js +37 -0
  167. package/dist/native/layer-stack.js +61 -0
  168. package/dist/native/list-context.js +13 -0
  169. package/dist/native/list-viewability-core.js +100 -0
  170. package/dist/native/list-viewability-observer.android.js +78 -0
  171. package/dist/native/list-viewability-observer.ios.js +74 -0
  172. package/dist/native/list-viewability-runtime.js +81 -0
  173. package/dist/native/markdown-parse.js +342 -0
  174. package/dist/native/markdown-stream.js +264 -0
  175. package/dist/native/menu-context.js +11 -0
  176. package/dist/native/metadata-list-context.js +6 -0
  177. package/dist/native/{modal-presenter.mobile.js → modal-presenter.js} +1 -1
  178. package/dist/native/native/index.js +3 -3
  179. package/dist/native/native-color.mobile.tsrx.js +6 -0
  180. package/dist/native/nav-contexts.js +79 -0
  181. package/dist/native/nav-href.js +22 -0
  182. package/dist/native/octane-client-build.json +1 -1
  183. package/dist/native/outline-dom.tsrx.js +21 -0
  184. package/dist/native/outline-hooks.tsrx.js +14 -0
  185. package/dist/native/outline-utils.js +122 -0
  186. package/dist/native/outline-view-tree.js +63 -0
  187. package/dist/native/overflow-math.js +126 -0
  188. package/dist/native/{overlay-lifetime.mobile.js → overlay-lifetime.js} +1 -3
  189. package/dist/native/popover-position.js +51 -7
  190. package/dist/native/power-search-config.js +566 -0
  191. package/dist/native/power-search-strings.js +74 -0
  192. package/dist/native/query-cache.js +358 -0
  193. package/dist/native/query-storage.js +30 -0
  194. package/dist/native/ref-list.js +19 -0
  195. package/dist/native/relative-position.js +7 -0
  196. package/dist/native/resize-basis.js +28 -0
  197. package/dist/native/resize-math.js +85 -0
  198. package/dist/native/resize-persist.js +25 -0
  199. package/dist/native/resize-state.js +208 -0
  200. package/dist/native/{root-layout.mobile.js → root-layout.js} +1 -1
  201. package/dist/native/route-host.js +2 -0
  202. package/dist/native/route-table.js +115 -39
  203. package/dist/native/route.js +15 -6
  204. package/dist/native/safe-url.js +13 -0
  205. package/dist/native/scheme-colors.js +41 -0
  206. package/dist/native/select-options.js +31 -0
  207. package/dist/native/shared.js +133 -27
  208. package/dist/native/sheet-detents.js +27 -21
  209. package/dist/native/sheet-snap.js +23 -1
  210. package/dist/native/spacing.js +9 -0
  211. package/dist/native/stack-layout.js +72 -0
  212. package/dist/native/svg-glyph.js +12 -0
  213. package/dist/native/svg-source.js +29 -0
  214. package/dist/native/svg.mobile.js +2 -34
  215. package/dist/native/tap-to-blur.ios.js +13 -16
  216. package/dist/native/text-role.js +50 -0
  217. package/dist/native/text-slot.tsrx.js +34 -0
  218. package/dist/native/time-format.js +215 -0
  219. package/dist/native/timer-format.js +49 -0
  220. package/dist/native/toast-context.js +8 -0
  221. package/dist/native/toast-service.tsrx.js +280 -0
  222. package/dist/native/toast-store.js +68 -0
  223. package/dist/native/toast-viewport.tsrx.js +65 -0
  224. package/dist/native/toggle-button-group-context.js +9 -0
  225. package/dist/native/typeahead-source.js +71 -0
  226. package/dist/native/ui.js +133 -27
  227. package/dist/native/use-hover-card.mobile.tsrx.js +127 -0
  228. package/dist/native/use-imperative-alert-dialog.tsrx.js +45 -0
  229. package/dist/native/use-imperative-dialog.tsrx.js +44 -0
  230. package/dist/native/use-layer.mobile.tsrx.js +412 -0
  231. package/dist/native/use-lightbox.tsrx.js +83 -0
  232. package/dist/native/use-scrollable-area.tsrx.js +85 -0
  233. package/dist/native/useChatComposerTokens.tsrx.js +47 -0
  234. package/dist/native/useChatDictation.tsrx.js +9 -0
  235. package/dist/native/useChatNewMessages.tsrx.js +56 -0
  236. package/dist/native/useChatPasteAsToken.tsrx.js +25 -0
  237. package/dist/native/useChatStreamScroll.tsrx.js +136 -0
  238. package/dist/native/useMeasure.tsrx.js +2 -2
  239. package/dist/native/useResizable.tsrx.js +71 -0
  240. package/dist/native/useSelect.js +133 -0
  241. package/dist/native/useSpeechRecognition.tsrx.js +32 -0
  242. package/dist/native/useTriggerMenu.tsrx.js +352 -0
  243. package/dist/native/vendor/ui-svg/index.android.js +13 -14
  244. package/dist/web/AlertDialog.web.tsrx.js +45 -0
  245. package/dist/web/AppShell.web.tsrx.js +234 -0
  246. package/dist/web/AspectRatio.web.tsrx.js +92 -0
  247. package/dist/web/AvatarGroup.web.tsrx.js +15 -39
  248. package/dist/web/BaseTypeahead.web.tsrx.js +489 -0
  249. package/dist/web/Blockquote.web.tsrx.js +55 -0
  250. package/dist/web/BottomSheet.web.tsrx.js +350 -0
  251. package/dist/web/Breadcrumb.web.tsrx.js +74 -39
  252. package/dist/web/Button.web.tsrx.js +122 -23
  253. package/dist/web/ButtonGroup.web.tsrx.js +98 -0
  254. package/dist/web/Calendar.web.tsrx.js +568 -0
  255. package/dist/web/Card.web.tsrx.js +52 -17
  256. package/dist/web/Carousel.web.tsrx.js +189 -0
  257. package/dist/web/Center.web.tsrx.js +86 -0
  258. package/dist/web/ChatComposer.web.tsrx.js +193 -0
  259. package/dist/web/ChatComposerDrawer.web.tsrx.js +196 -0
  260. package/dist/web/ChatComposerInput.web.tsrx.js +686 -0
  261. package/dist/web/ChatDictationButton.web.tsrx.js +159 -0
  262. package/dist/web/ChatLayout.web.tsrx.js +154 -0
  263. package/dist/web/ChatLayoutScrollButton.web.tsrx.js +62 -0
  264. package/dist/web/ChatMessage.web.tsrx.js +124 -0
  265. package/dist/web/ChatMessageBubble.web.tsrx.js +66 -0
  266. package/dist/web/ChatMessageList.web.tsrx.js +155 -0
  267. package/dist/web/ChatMessageMetadata.web.tsrx.js +139 -0
  268. package/dist/web/ChatPastedTextToken.web.tsrx.js +33 -0
  269. package/dist/web/ChatSendButton.web.tsrx.js +64 -0
  270. package/dist/web/ChatSystemMessage.web.tsrx.js +28 -0
  271. package/dist/web/ChatTokenizedText.web.tsrx.js +42 -0
  272. package/dist/web/ChatToolCalls.web.tsrx.js +263 -0
  273. package/dist/web/CheckIndicator.web.tsrx.js +114 -0
  274. package/dist/web/Checkbox.web.tsrx.js +83 -44
  275. package/dist/web/CheckboxGroup.web.tsrx.js +40 -22
  276. package/dist/web/CheckboxIndicator.web.tsrx.js +62 -0
  277. package/dist/web/Citation.web.tsrx.js +57 -0
  278. package/dist/web/ClickableCard.web.tsrx.js +85 -0
  279. package/dist/web/Code.web.tsrx.js +43 -0
  280. package/dist/web/CodeBlock.web.tsrx.js +292 -0
  281. package/dist/web/CommandPalette.web.tsrx.js +447 -78
  282. package/dist/web/ComplexSelector.web.tsrx.js +173 -0
  283. package/dist/web/ContextMenu.web.tsrx.js +72 -101
  284. package/dist/web/DateInput.web.tsrx.js +419 -0
  285. package/dist/web/DateRangeInput.web.tsrx.js +270 -0
  286. package/dist/web/DateTimeInput.web.tsrx.js +695 -0
  287. package/dist/web/Dialog.web.tsrx.js +253 -0
  288. package/dist/web/DropdownMenu.web.tsrx.js +74 -113
  289. package/dist/web/FormField.web.tsrx.js +194 -59
  290. package/dist/web/FormLayout.web.tsrx.js +79 -0
  291. package/dist/web/HStack.tsrx.js +14 -0
  292. package/dist/web/HoverCard.web.tsrx.js +93 -0
  293. package/dist/web/IconButton.web.tsrx.js +12 -0
  294. package/dist/web/InputGroup.web.tsrx.js +136 -0
  295. package/dist/web/InputNumber.web.tsrx.js +26 -16
  296. package/dist/web/InputRating.web.tsrx.js +31 -15
  297. package/dist/web/Item.web.tsrx.js +139 -0
  298. package/dist/web/Lightbox.web.tsrx.js +225 -0
  299. package/dist/web/List.web.tsrx.js +129 -0
  300. package/dist/web/ListItem.web.tsrx.js +165 -120
  301. package/dist/web/Markdown.tsrx.js +169 -36
  302. package/dist/web/MenuParts.web.tsrx.js +605 -0
  303. package/dist/web/MenuSurface.web.tsrx.js +106 -0
  304. package/dist/web/MetadataList.web.tsrx.js +138 -0
  305. package/dist/web/MetadataListItem.web.tsrx.js +24 -0
  306. package/dist/web/MobileNav.web.tsrx.js +262 -0
  307. package/dist/web/MoreMenu.web.tsrx.js +193 -0
  308. package/dist/web/NavIcon.web.tsrx.js +62 -0
  309. package/dist/web/NavMenu.web.tsrx.js +246 -0
  310. package/dist/web/NavigationMenu.web.tsrx.js +84 -67
  311. package/dist/web/Outline.web.tsrx.js +279 -0
  312. package/dist/web/OverflowList.web.tsrx.js +228 -0
  313. package/dist/web/Overlay.web.tsrx.js +7 -6
  314. package/dist/web/PinInput.web.tsrx.js +73 -35
  315. package/dist/web/Popover.web.tsrx.js +55 -15
  316. package/dist/web/PowerSearch.web.tsrx.js +329 -0
  317. package/dist/web/PowerSearchFilterEditor.web.tsrx.js +157 -0
  318. package/dist/web/PowerSearchToken.web.tsrx.js +51 -0
  319. package/dist/web/Pressable.web.tsrx.js +85 -75
  320. package/dist/web/ProgressBar.web.tsrx.js +125 -0
  321. package/dist/web/RadioGroup.web.tsrx.js +50 -23
  322. package/dist/web/RadioIndicator.web.tsrx.js +65 -0
  323. package/dist/web/Resizable.js +3 -0
  324. package/dist/web/ResizeHandle.web.tsrx.js +207 -0
  325. package/dist/web/RouteBoundary.web.tsrx.js +48 -0
  326. package/dist/web/ScrollableArea.web.tsrx.js +539 -0
  327. package/dist/web/SearchInput.web.tsrx.js +70 -40
  328. package/dist/web/Section.web.tsrx.js +121 -0
  329. package/dist/web/SegmentedControl.web.tsrx.js +40 -22
  330. package/dist/web/Select.web.tsrx.js +418 -118
  331. package/dist/web/SelectableCard.web.tsrx.js +62 -0
  332. package/dist/web/SideNav.web.tsrx.js +1158 -0
  333. package/dist/web/Slider.web.tsrx.js +2 -2
  334. package/dist/web/Stack.web.tsrx.js +69 -40
  335. package/dist/web/StackItem.web.tsrx.js +74 -0
  336. package/dist/web/StatusDot.web.tsrx.js +30 -0
  337. package/dist/web/Switch.web.tsrx.js +33 -12
  338. package/dist/web/TabList.web.tsrx.js +692 -0
  339. package/dist/web/Tabs.web.tsrx.js +86 -91
  340. package/dist/web/TextArea.web.tsrx.js +64 -30
  341. package/dist/web/TextInput.web.tsrx.js +129 -52
  342. package/dist/web/Thumbnail.web.tsrx.js +105 -0
  343. package/dist/web/TimeInput.web.tsrx.js +377 -0
  344. package/dist/web/TimeWheelPanel.web.tsrx.js +114 -0
  345. package/dist/web/Timer.web.tsrx.js +81 -0
  346. package/dist/web/Timestamp.web.tsrx.js +205 -0
  347. package/dist/web/Toast.web.tsrx.js +107 -0
  348. package/dist/web/ToggleButton.web.tsrx.js +98 -0
  349. package/dist/web/Token.web.tsrx.js +132 -0
  350. package/dist/web/Tokenizer.web.tsrx.js +421 -0
  351. package/dist/web/Toolbar.web.tsrx.js +209 -0
  352. package/dist/web/Tooltip.web.tsrx.js +46 -57
  353. package/dist/web/TopNav.web.tsrx.js +1156 -0
  354. package/dist/web/Typeahead.web.tsrx.js +234 -0
  355. package/dist/web/TypeaheadItem.web.tsrx.js +78 -0
  356. package/dist/web/VStack.tsrx.js +14 -0
  357. package/dist/web/View.web.tsrx.js +15 -18
  358. package/dist/web/VirtualList.web.tsrx.js +31 -23
  359. package/dist/web/VisuallyHidden.web.tsrx.js +58 -0
  360. package/dist/web/WebView.web.tsrx.js +8 -9
  361. package/dist/web/aliases.web.tsrx.js +5 -15
  362. package/dist/web/anim.web.tsrx.js +14 -52
  363. package/dist/web/animated-value.js +96 -0
  364. package/dist/web/app-shell-config.js +19 -0
  365. package/dist/web/bottom-sheet-context.js +8 -0
  366. package/dist/web/bottom-sheet-service.web.js +70 -0
  367. package/dist/web/busy-lane.js +23 -0
  368. package/dist/web/button-group-context.js +11 -0
  369. package/dist/web/calendar-core.js +227 -0
  370. package/dist/web/calendar-hooks.tsrx.js +62 -0
  371. package/dist/web/chat-context.js +28 -0
  372. package/dist/web/chat-group-items.js +36 -0
  373. package/dist/web/chat-tokenize.js +41 -0
  374. package/dist/web/chat-tokens.web.tsrx.js +43 -0
  375. package/dist/web/chatComposerSelection.web.js +87 -0
  376. package/dist/web/child-array.js +8 -11
  377. package/dist/web/clipboard-write.web.js +13 -0
  378. package/dist/web/code-highlight.web.js +148 -0
  379. package/dist/web/code-tokenizer.js +764 -0
  380. package/dist/web/codeblock-shared.tsrx.js +77 -0
  381. package/dist/web/command-palette-state.js +191 -0
  382. package/dist/web/date-field-action.js +16 -0
  383. package/dist/web/date-keyboard.js +80 -0
  384. package/dist/web/date-messages.js +27 -0
  385. package/dist/web/datetime.js +770 -0
  386. package/dist/web/dialog-context.js +8 -0
  387. package/dist/web/field-context.js +57 -0
  388. package/dist/web/form-layout-context.js +10 -0
  389. package/dist/web/icons.js +22 -0
  390. package/dist/web/index.shared.web.js +132 -25
  391. package/dist/web/indicators.js +40 -0
  392. package/dist/web/input-group-context.js +6 -0
  393. package/dist/web/is-renderable.js +8 -0
  394. package/dist/web/layer-dismissal.tsrx.js +50 -0
  395. package/dist/web/layer-keys.web.js +25 -0
  396. package/dist/web/layer-position.web.js +41 -0
  397. package/dist/web/layer-stack.js +67 -0
  398. package/dist/web/list-context.js +13 -0
  399. package/dist/web/list-focus.web.tsrx.js +124 -0
  400. package/dist/web/markdown-parse.js +342 -0
  401. package/dist/web/markdown-stream.js +264 -0
  402. package/dist/web/menu-context.js +11 -0
  403. package/dist/web/metadata-list-context.js +6 -0
  404. package/dist/web/modal-focus.web.js +51 -16
  405. package/dist/web/nav-contexts.js +82 -0
  406. package/dist/web/nav-href.web.js +1 -0
  407. package/dist/web/octane-client-build.json +1 -1
  408. package/dist/web/outline-dom.web.tsrx.js +52 -0
  409. package/dist/web/outline-hooks.tsrx.js +17 -0
  410. package/dist/web/outline-utils.js +122 -0
  411. package/dist/web/overflow-math.js +126 -0
  412. package/dist/web/popover-position.js +32 -7
  413. package/dist/web/power-search-config.js +566 -0
  414. package/dist/web/power-search-strings.js +74 -0
  415. package/dist/web/query-cache.js +358 -0
  416. package/dist/web/query-storage.web.js +28 -0
  417. package/dist/web/ref-list.js +12 -0
  418. package/dist/web/resize-basis.web.js +30 -0
  419. package/dist/web/resize-math.js +85 -0
  420. package/dist/web/resize-persist.web.js +23 -0
  421. package/dist/web/resize-state.js +208 -0
  422. package/dist/web/route-table.js +115 -39
  423. package/dist/web/route.web.js +57 -13
  424. package/dist/web/safe-url.js +13 -0
  425. package/dist/web/select-options.js +31 -0
  426. package/dist/web/sheet-detents.web.js +22 -9
  427. package/dist/web/sheet-snap.js +23 -1
  428. package/dist/web/spacing.js +9 -0
  429. package/dist/web/stack-layout.js +89 -0
  430. package/dist/web/text-role.js +50 -0
  431. package/dist/web/theme/theme-scheme.js +1 -1
  432. package/dist/web/time-format.js +256 -0
  433. package/dist/web/timer-format.js +49 -0
  434. package/dist/web/toast-context.js +8 -0
  435. package/dist/web/toast-service.web.tsrx.js +38 -0
  436. package/dist/web/toast-store.js +79 -0
  437. package/dist/web/toast-viewport.web.tsrx.js +209 -0
  438. package/dist/web/toggle-button-group-context.js +9 -0
  439. package/dist/web/translate.web.js +1 -1
  440. package/dist/web/typeahead-source.js +71 -0
  441. package/dist/web/ui.js +131 -25
  442. package/dist/web/use-hover-card.web.tsrx.js +254 -0
  443. package/dist/web/use-imperative-alert-dialog.web.tsrx.js +35 -0
  444. package/dist/web/use-imperative-dialog.web.tsrx.js +34 -0
  445. package/dist/web/use-layer.web.tsrx.js +225 -0
  446. package/dist/web/use-lightbox.web.tsrx.js +52 -0
  447. package/dist/web/use-scrollable-area.web.tsrx.js +128 -0
  448. package/dist/web/useChatComposerTokens.web.tsrx.js +129 -0
  449. package/dist/web/useChatDictation.web.tsrx.js +310 -0
  450. package/dist/web/useChatNewMessages.web.tsrx.js +57 -0
  451. package/dist/web/useChatPasteAsToken.web.tsrx.js +23 -0
  452. package/dist/web/useChatStreamScroll.web.tsrx.js +208 -0
  453. package/dist/web/useMeasure.web.tsrx.js +2 -2
  454. package/dist/web/useMediaQuery.web.tsrx.js +22 -0
  455. package/dist/web/useResizable.web.tsrx.js +71 -0
  456. package/dist/web/useSelect.js +133 -0
  457. package/dist/web/useSpeechRecognition.web.tsrx.js +276 -0
  458. package/dist/web/useTriggerMenu.web.tsrx.js +347 -0
  459. package/dist/web/web/index.js +2 -2
  460. package/package.json +8 -17
  461. package/src/Accordion.macos.tsrx +1 -1
  462. package/src/Accordion.tsrx +1 -1
  463. package/src/Alert.macos.tsrx +1 -1
  464. package/src/Alert.tsrx +1 -1
  465. package/src/AlertDialog.macos.tsrx +59 -0
  466. package/src/AlertDialog.tsrx +68 -0
  467. package/src/AlertDialog.web.tsrx +63 -0
  468. package/src/AppShell.macos.tsrx +162 -0
  469. package/src/AppShell.tsrx +164 -0
  470. package/src/AppShell.web.tsrx +177 -0
  471. package/src/AspectRatio.macos.tsrx +43 -0
  472. package/src/AspectRatio.tsrx +56 -0
  473. package/src/AspectRatio.web.tsrx +39 -0
  474. package/src/Avatar.macos.tsrx +1 -1
  475. package/src/Avatar.tsrx +1 -1
  476. package/src/AvatarGroup.macos.tsrx +4 -4
  477. package/src/AvatarGroup.tsrx +4 -4
  478. package/src/AvatarGroup.web.tsrx +8 -4
  479. package/src/Badge.macos.tsrx +1 -1
  480. package/src/Banner.macos.tsrx +1 -1
  481. package/src/Banner.tsrx +1 -1
  482. package/src/BaseTypeahead.macos.tsrx +252 -0
  483. package/src/BaseTypeahead.tsrx +297 -0
  484. package/src/BaseTypeahead.web.tsrx +414 -0
  485. package/src/Blockquote.macos.tsrx +29 -0
  486. package/src/Blockquote.tsrx +25 -0
  487. package/src/Blockquote.web.tsrx +18 -0
  488. package/src/BottomSheet.macos.tsrx +124 -0
  489. package/src/BottomSheet.tsrx +347 -0
  490. package/src/BottomSheet.web.tsrx +220 -0
  491. package/src/Breadcrumb.macos.tsrx +8 -2
  492. package/src/Breadcrumb.tsrx +7 -1
  493. package/src/Breadcrumb.web.tsrx +8 -2
  494. package/src/Button.tsrx +57 -9
  495. package/src/Button.web.tsrx +81 -14
  496. package/src/ButtonGroup.macos.tsrx +15 -0
  497. package/src/ButtonGroup.tsrx +15 -0
  498. package/src/ButtonGroup.web.tsrx +45 -0
  499. package/src/Calendar.macos.tsrx +236 -0
  500. package/src/Calendar.tsrx +236 -0
  501. package/src/Calendar.web.tsrx +347 -0
  502. package/src/CameraView.macos.tsrx +1 -1
  503. package/src/Card.macos.tsrx +2 -2
  504. package/src/Card.tsrx +1 -1
  505. package/src/Card.web.tsrx +1 -1
  506. package/src/Carousel.macos.tsrx +33 -0
  507. package/src/Carousel.tsrx +223 -0
  508. package/src/Carousel.web.tsrx +230 -0
  509. package/src/Center.macos.tsrx +41 -0
  510. package/src/Center.tsrx +45 -0
  511. package/src/Center.web.tsrx +52 -0
  512. package/src/ChatComposer.tsrx +111 -0
  513. package/src/ChatComposer.web.tsrx +128 -0
  514. package/src/ChatComposerDrawer.tsrx +65 -0
  515. package/src/ChatComposerDrawer.web.tsrx +70 -0
  516. package/src/ChatComposerInput.tsrx +305 -0
  517. package/src/ChatComposerInput.web.tsrx +492 -0
  518. package/src/ChatDictationButton.tsrx +56 -0
  519. package/src/ChatDictationButton.web.tsrx +76 -0
  520. package/src/ChatLayout.tsrx +113 -0
  521. package/src/ChatLayout.web.tsrx +84 -0
  522. package/src/ChatLayoutScrollButton.tsrx +32 -0
  523. package/src/ChatLayoutScrollButton.web.tsrx +29 -0
  524. package/src/ChatMessage.tsrx +54 -0
  525. package/src/ChatMessage.web.tsrx +46 -0
  526. package/src/ChatMessageBubble.tsrx +56 -0
  527. package/src/ChatMessageBubble.web.tsrx +54 -0
  528. package/src/ChatMessageList.tsrx +90 -0
  529. package/src/ChatMessageList.web.tsrx +84 -0
  530. package/src/ChatMessageMetadata.tsrx +65 -0
  531. package/src/ChatMessageMetadata.web.tsrx +58 -0
  532. package/src/ChatPastedTextToken.web.tsrx +37 -0
  533. package/src/ChatSendButton.tsrx +47 -0
  534. package/src/ChatSendButton.web.tsrx +46 -0
  535. package/src/ChatSystemMessage.tsrx +41 -0
  536. package/src/ChatSystemMessage.web.tsrx +35 -0
  537. package/src/ChatTokenizedText.tsrx +37 -0
  538. package/src/ChatTokenizedText.web.tsrx +27 -0
  539. package/src/ChatToolCalls.tsrx +163 -0
  540. package/src/ChatToolCalls.web.tsrx +180 -0
  541. package/src/CheckIndicator.macos.tsrx +37 -0
  542. package/src/CheckIndicator.tsrx +39 -0
  543. package/src/CheckIndicator.web.tsrx +38 -0
  544. package/src/Checkbox.tsrx +16 -8
  545. package/src/Checkbox.web.tsrx +25 -12
  546. package/src/CheckboxGroup.macos.tsrx +11 -5
  547. package/src/CheckboxGroup.tsrx +12 -5
  548. package/src/CheckboxGroup.web.tsrx +14 -4
  549. package/src/CheckboxIndicator.macos.tsrx +32 -0
  550. package/src/CheckboxIndicator.tsrx +39 -0
  551. package/src/CheckboxIndicator.web.tsrx +36 -0
  552. package/src/Chip.macos.tsrx +1 -1
  553. package/src/Chip.tsrx +1 -1
  554. package/src/Citation.macos.tsrx +81 -0
  555. package/src/Citation.tsrx +99 -0
  556. package/src/Citation.web.tsrx +78 -0
  557. package/src/ClickableCard.macos.tsrx +7 -0
  558. package/src/ClickableCard.tsrx +12 -0
  559. package/src/ClickableCard.web.tsrx +14 -0
  560. package/src/Code.macos.tsrx +16 -0
  561. package/src/Code.tsrx +27 -0
  562. package/src/Code.web.tsrx +22 -0
  563. package/src/CodeBlock.macos.tsrx +133 -0
  564. package/src/CodeBlock.tsrx +208 -0
  565. package/src/CodeBlock.web.tsrx +220 -0
  566. package/src/Collapsible.macos.tsrx +1 -1
  567. package/src/Collapsible.tsrx +1 -1
  568. package/src/CommandPalette.macos.tsrx +103 -52
  569. package/src/CommandPalette.tsrx +60 -55
  570. package/src/CommandPalette.web.test.tsrx +88 -0
  571. package/src/CommandPalette.web.tsrx +84 -48
  572. package/src/ComplexSelector.macos.tsrx +106 -0
  573. package/src/ComplexSelector.tsrx +106 -0
  574. package/src/ComplexSelector.web.tsrx +80 -0
  575. package/src/ContextMenu.macos.tsrx +16 -27
  576. package/src/ContextMenu.tsrx +16 -27
  577. package/src/ContextMenu.web.tsrx +20 -35
  578. package/src/DateInput.macos.tsrx +207 -0
  579. package/src/DateInput.tsrx +286 -0
  580. package/src/DateInput.web.tsrx +429 -0
  581. package/src/DateRangeInput.macos.tsrx +167 -0
  582. package/src/DateRangeInput.tsrx +166 -0
  583. package/src/DateRangeInput.web.tsrx +179 -0
  584. package/src/DateTimeInput.macos.tsrx +328 -0
  585. package/src/DateTimeInput.tsrx +424 -0
  586. package/src/DateTimeInput.web.tsrx +639 -0
  587. package/src/Dialog.macos.tsrx +59 -0
  588. package/src/Dialog.tsrx +216 -0
  589. package/src/Dialog.web.tsrx +258 -0
  590. package/src/Drawer.macos.tsrx +1 -1
  591. package/src/DropdownMenu.macos.tsrx +20 -29
  592. package/src/DropdownMenu.tsrx +21 -30
  593. package/src/DropdownMenu.web.tsrx +22 -45
  594. package/src/Empty.macos.tsrx +1 -1
  595. package/src/Empty.tsrx +1 -1
  596. package/src/FieldGroup.macos.tsrx +1 -1
  597. package/src/FormField.macos.tsrx +64 -18
  598. package/src/FormField.tsrx +65 -17
  599. package/src/FormField.web.tsrx +70 -19
  600. package/src/FormLayout.macos.tsrx +35 -0
  601. package/src/FormLayout.tsrx +70 -0
  602. package/src/FormLayout.web.tsrx +38 -0
  603. package/src/HStack.macos.tsrx +13 -0
  604. package/src/HStack.tsrx +14 -0
  605. package/src/Heading.macos.tsrx +1 -1
  606. package/src/HoverCard.mobile.tsrx +36 -0
  607. package/src/HoverCard.tsrx +41 -0
  608. package/src/HoverCard.web.tsrx +99 -0
  609. package/src/Icon.macos.tsrx +10 -6
  610. package/src/Icon.tsrx +1 -1
  611. package/src/IconButton.macos.tsrx +11 -0
  612. package/src/IconButton.tsrx +7 -0
  613. package/src/IconButton.web.tsrx +5 -0
  614. package/src/Image.macos.tsrx +7 -3
  615. package/src/Image.tsrx +1 -1
  616. package/src/InputGroup.macos.tsrx +63 -0
  617. package/src/InputGroup.tsrx +68 -0
  618. package/src/InputGroup.web.tsrx +71 -0
  619. package/src/InputNumber.macos.tsrx +9 -6
  620. package/src/InputNumber.tsrx +10 -7
  621. package/src/InputNumber.web.tsrx +8 -5
  622. package/src/InputRating.macos.tsrx +11 -6
  623. package/src/InputRating.tsrx +12 -7
  624. package/src/InputRating.web.tsrx +18 -7
  625. package/src/Item.macos.tsrx +52 -0
  626. package/src/Item.tsrx +52 -0
  627. package/src/Item.web.tsrx +50 -0
  628. package/src/Kbd.macos.tsrx +1 -1
  629. package/src/Kbd.tsrx +2 -1
  630. package/src/KeyboardAvoiding.macos.tsrx +1 -1
  631. package/src/Lightbox.macos.tsrx +63 -0
  632. package/src/Lightbox.tsrx +277 -0
  633. package/src/Lightbox.web.tsrx +258 -0
  634. package/src/Link.macos.tsrx +1 -1
  635. package/src/Link.tsrx +1 -1
  636. package/src/List.macos.tsrx +51 -0
  637. package/src/List.tsrx +61 -0
  638. package/src/List.web.tsrx +59 -0
  639. package/src/ListItem.macos.tsrx +58 -41
  640. package/src/ListItem.tsrx +72 -40
  641. package/src/ListItem.web.tsrx +83 -42
  642. package/src/Markdown.tsrx +166 -50
  643. package/src/Markdown.web.test.tsrx +68 -0
  644. package/src/MenuParts.macos.tsrx +137 -0
  645. package/src/MenuParts.tsrx +137 -0
  646. package/src/MenuParts.web.tsrx +138 -0
  647. package/src/MenuSurface.macos.tsrx +18 -0
  648. package/src/MenuSurface.tsrx +18 -0
  649. package/src/MenuSurface.web.tsrx +53 -0
  650. package/src/MetadataList.macos.tsrx +80 -0
  651. package/src/MetadataList.tsrx +94 -0
  652. package/src/MetadataList.web.tsrx +93 -0
  653. package/src/MetadataListItem.macos.tsrx +55 -0
  654. package/src/MetadataListItem.tsrx +59 -0
  655. package/src/MetadataListItem.web.tsrx +49 -0
  656. package/src/Meter.macos.tsrx +1 -1
  657. package/src/Meter.tsrx +1 -1
  658. package/src/MobileNav.macos.tsrx +93 -0
  659. package/src/MobileNav.tsrx +97 -0
  660. package/src/MobileNav.web.tsrx +163 -0
  661. package/src/MoreMenu.macos.tsrx +35 -0
  662. package/src/MoreMenu.tsrx +35 -0
  663. package/src/MoreMenu.web.tsrx +39 -0
  664. package/src/NavIcon.macos.tsrx +17 -0
  665. package/src/NavIcon.tsrx +21 -0
  666. package/src/NavIcon.web.tsrx +18 -0
  667. package/src/NavLink.macos.tsrx +1 -1
  668. package/src/NavLink.tsrx +1 -1
  669. package/src/NavMenu.macos.tsrx +83 -0
  670. package/src/NavMenu.tsrx +83 -0
  671. package/src/NavMenu.web.tsrx +157 -0
  672. package/src/NavigationMenu.macos.tsrx +27 -18
  673. package/src/NavigationMenu.tsrx +28 -14
  674. package/src/NavigationMenu.web.tsrx +42 -21
  675. package/src/Outline.macos.tsrx +74 -0
  676. package/src/Outline.tsrx +169 -0
  677. package/src/Outline.web.tsrx +252 -0
  678. package/src/OverflowList.macos.tsrx +128 -0
  679. package/src/OverflowList.tsrx +128 -0
  680. package/src/OverflowList.web.tsrx +137 -0
  681. package/src/Overlay.macos.tsrx +2 -2
  682. package/src/Overlay.tsrx +7 -3
  683. package/src/Overlay.web.tsrx +1 -1
  684. package/src/Pagination.macos.tsrx +1 -1
  685. package/src/PinInput.macos.tsrx +7 -5
  686. package/src/PinInput.mobile.test.ts +9 -4
  687. package/src/PinInput.tsrx +16 -7
  688. package/src/PinInput.web.test.tsrx +2 -2
  689. package/src/PinInput.web.tsrx +15 -6
  690. package/src/Popover.macos.tsrx +38 -6
  691. package/src/Popover.tsrx +19 -12
  692. package/src/Popover.web.tsrx +22 -7
  693. package/src/PowerSearch.macos.tsrx +82 -0
  694. package/src/PowerSearch.tsrx +82 -0
  695. package/src/PowerSearch.web.tsrx +48 -0
  696. package/src/PowerSearchFilterEditor.macos.tsrx +66 -0
  697. package/src/PowerSearchFilterEditor.tsrx +66 -0
  698. package/src/PowerSearchFilterEditor.web.tsrx +41 -0
  699. package/src/PowerSearchToken.macos.tsrx +17 -0
  700. package/src/PowerSearchToken.tsrx +17 -0
  701. package/src/PowerSearchToken.web.tsrx +15 -0
  702. package/src/Pressable.macos.tsrx +5 -1
  703. package/src/Pressable.tsrx +6 -2
  704. package/src/Pressable.web.test.tsrx +26 -1
  705. package/src/Pressable.web.tsrx +6 -2
  706. package/src/ProgressBar.macos.tsrx +75 -0
  707. package/src/ProgressBar.tsrx +175 -0
  708. package/src/ProgressBar.web.tsrx +99 -0
  709. package/src/ProgressGroup.macos.tsrx +1 -1
  710. package/src/ProgressGroup.tsrx +1 -1
  711. package/src/RadioGroup.macos.tsrx +15 -7
  712. package/src/RadioGroup.tsrx +17 -10
  713. package/src/RadioGroup.web.tsrx +23 -10
  714. package/src/RadioIndicator.macos.tsrx +29 -0
  715. package/src/RadioIndicator.tsrx +36 -0
  716. package/src/RadioIndicator.web.tsrx +33 -0
  717. package/src/Resizable.ts +2 -0
  718. package/src/ResizeHandle.macos.tsrx +89 -0
  719. package/src/ResizeHandle.tsrx +90 -0
  720. package/src/ResizeHandle.web.tsrx +207 -0
  721. package/src/RouteBoundary.macos.tsrx +21 -0
  722. package/src/RouteBoundary.mobile.test.tsrx +89 -0
  723. package/src/RouteBoundary.tsrx +26 -0
  724. package/src/RouteBoundary.web.test.tsrx +76 -0
  725. package/src/RouteBoundary.web.tsrx +19 -0
  726. package/src/RouteHost.macos.tsrx +11 -2
  727. package/src/{RouteHost.mobile.tsrx → RouteHost.tsrx} +12 -1
  728. package/src/Row.macos.tsrx +1 -1
  729. package/src/Row.tsrx +6 -2
  730. package/src/Row.web.tsrx +5 -2
  731. package/src/SafeArea.macos.tsrx +1 -1
  732. package/src/SafeArea.tsrx +3 -4
  733. package/src/Screen.macos.tsrx +1 -1
  734. package/src/Screen.tsrx +1 -1
  735. package/src/ScrollableArea.macos.tsrx +20 -0
  736. package/src/ScrollableArea.tsrx +159 -0
  737. package/src/ScrollableArea.web.tsrx +183 -0
  738. package/src/SearchInput.tsrx +14 -8
  739. package/src/SearchInput.web.test.tsrx +165 -0
  740. package/src/SearchInput.web.tsrx +18 -6
  741. package/src/Section.macos.tsrx +48 -0
  742. package/src/Section.tsrx +56 -0
  743. package/src/Section.web.tsrx +67 -0
  744. package/src/SegmentedControl.tsrx +11 -5
  745. package/src/SegmentedControl.web.test.tsrx +1 -1
  746. package/src/SegmentedControl.web.tsrx +20 -8
  747. package/src/Select.macos.tsrx +48 -98
  748. package/src/Select.tsrx +49 -97
  749. package/src/Select.web.test.tsrx +146 -0
  750. package/src/Select.web.tsrx +161 -102
  751. package/src/SelectableCard.macos.tsrx +7 -0
  752. package/src/SelectableCard.tsrx +8 -0
  753. package/src/SelectableCard.web.tsrx +6 -0
  754. package/src/Separator.macos.tsrx +1 -1
  755. package/src/SideNav.macos.tsrx +362 -0
  756. package/src/SideNav.tsrx +367 -0
  757. package/src/SideNav.web.tsrx +419 -0
  758. package/src/Skeleton.macos.tsrx +1 -1
  759. package/src/Slider.tsrx +3 -3
  760. package/src/Slider.web.tsrx +1 -1
  761. package/src/Stack.tsrx +76 -17
  762. package/src/Stack.web.tsrx +26 -5
  763. package/src/StackItem.tsrx +57 -0
  764. package/src/StackItem.web.tsrx +41 -0
  765. package/src/StatusDot.macos.tsrx +65 -0
  766. package/src/StatusDot.tsrx +86 -0
  767. package/src/StatusDot.web.tsrx +32 -0
  768. package/src/Stepper.macos.tsrx +1 -1
  769. package/src/Switch.tsrx +11 -4
  770. package/src/Switch.web.tsrx +17 -4
  771. package/src/TabList.macos.tsrx +199 -0
  772. package/src/TabList.tsrx +199 -0
  773. package/src/TabList.web.tsrx +325 -0
  774. package/src/Table.macos.tsrx +1 -1
  775. package/src/Tabs.macos.tsrx +15 -14
  776. package/src/Tabs.tsrx +16 -18
  777. package/src/Tabs.web.tsrx +46 -23
  778. package/src/Text.macos.tsrx +1 -1
  779. package/src/Text.tsrx +1 -1
  780. package/src/TextArea.tsrx +14 -7
  781. package/src/TextArea.web.tsrx +16 -6
  782. package/src/TextInput.tsrx +45 -24
  783. package/src/TextInput.web.tsrx +49 -22
  784. package/src/Thumbnail.macos.tsrx +92 -0
  785. package/src/Thumbnail.tsrx +135 -0
  786. package/src/Thumbnail.web.tsrx +137 -0
  787. package/src/TimeInput.macos.tsrx +164 -0
  788. package/src/TimeInput.tsrx +238 -0
  789. package/src/TimeInput.web.tsrx +371 -0
  790. package/src/TimeWheelPanel.macos.tsrx +91 -0
  791. package/src/TimeWheelPanel.tsrx +91 -0
  792. package/src/TimeWheelPanel.web.tsrx +85 -0
  793. package/src/Timeline.macos.tsrx +1 -1
  794. package/src/Timeline.tsrx +1 -1
  795. package/src/Timer.macos.tsrx +62 -0
  796. package/src/Timer.tsrx +66 -0
  797. package/src/Timer.web.tsrx +66 -0
  798. package/src/Timestamp.macos.tsrx +115 -0
  799. package/src/Timestamp.tsrx +82 -0
  800. package/src/Timestamp.web.tsrx +163 -0
  801. package/src/Toast.macos.tsrx +72 -0
  802. package/src/Toast.tsrx +104 -0
  803. package/src/Toast.web.tsrx +133 -0
  804. package/src/ToggleButton.macos.tsrx +24 -0
  805. package/src/ToggleButton.tsrx +48 -0
  806. package/src/ToggleButton.web.tsrx +40 -0
  807. package/src/Token.macos.tsrx +109 -0
  808. package/src/Token.tsrx +89 -0
  809. package/src/Token.web.tsrx +145 -0
  810. package/src/Tokenizer.macos.tsrx +341 -0
  811. package/src/Tokenizer.tsrx +340 -0
  812. package/src/Tokenizer.web.tsrx +376 -0
  813. package/src/Toolbar.macos.tsrx +57 -0
  814. package/src/Toolbar.tsrx +57 -0
  815. package/src/Toolbar.web.tsrx +70 -0
  816. package/src/Tooltip.mobile.tsrx +1 -1
  817. package/src/Tooltip.tsrx +2 -2
  818. package/src/Tooltip.web.test.tsrx +30 -0
  819. package/src/Tooltip.web.tsrx +21 -23
  820. package/src/TopNav.macos.tsrx +366 -0
  821. package/src/TopNav.tsrx +372 -0
  822. package/src/TopNav.web.tsrx +425 -0
  823. package/src/Tree.macos.tsrx +1 -1
  824. package/src/Typeahead.macos.tsrx +155 -0
  825. package/src/Typeahead.tsrx +163 -0
  826. package/src/Typeahead.web.tsrx +202 -0
  827. package/src/TypeaheadItem.macos.tsrx +33 -0
  828. package/src/TypeaheadItem.tsrx +39 -0
  829. package/src/TypeaheadItem.web.tsrx +36 -0
  830. package/src/User.macos.tsrx +1 -1
  831. package/src/User.tsrx +1 -1
  832. package/src/VStack.macos.tsrx +13 -0
  833. package/src/VStack.tsrx +14 -0
  834. package/src/View.macos.tsrx +4 -2
  835. package/src/View.tsrx +6 -2
  836. package/src/View.web.tsrx +6 -3
  837. package/src/VirtualList.macos.tsrx +1 -1
  838. package/src/VirtualList.mobile.test.tsrx +69 -5
  839. package/src/VirtualList.tsrx +41 -7
  840. package/src/VirtualList.web.test.tsrx +113 -0
  841. package/src/VirtualList.web.tsrx +12 -1
  842. package/src/VisuallyHidden.macos.tsrx +23 -0
  843. package/src/VisuallyHidden.tsrx +28 -0
  844. package/src/VisuallyHidden.web.tsrx +32 -0
  845. package/src/WebView.macos.tsrx +42 -3
  846. package/src/WebView.tsrx +10 -9
  847. package/src/WebView.web.tsrx +4 -3
  848. package/src/aliases.macos.tsrx +9 -14
  849. package/src/aliases.tsrx +9 -14
  850. package/src/aliases.web.tsrx +8 -13
  851. package/src/android/BottomNavigationView.android.tsrx +4 -2
  852. package/src/android/DrawerLayout.android.tsrx +0 -7
  853. package/src/android/MaterialDialog.android.tsrx +1 -1
  854. package/src/android/RecyclerView.android.tsrx +91 -12
  855. package/src/android/index.ts +6 -1
  856. package/src/android/openModal.android.ts +1 -1
  857. package/src/anim.macos.tsrx +19 -16
  858. package/src/anim.tsrx +20 -62
  859. package/src/anim.web.tsrx +17 -52
  860. package/src/animated-value.ts +154 -0
  861. package/src/animation-host.macos.ts +47 -0
  862. package/src/app-shell-config.ts +25 -0
  863. package/src/bottom-sheet-context.ts +29 -0
  864. package/src/bottom-sheet-panel.macos.tsrx +21 -0
  865. package/src/bottom-sheet-service.macos.ts +72 -0
  866. package/src/{sheet-service.ts → bottom-sheet-service.ts} +37 -31
  867. package/src/bottom-sheet-service.web.ts +85 -0
  868. package/src/busy-lane.ts +39 -0
  869. package/src/button-group-context.ts +18 -0
  870. package/src/calendar-core.ts +457 -0
  871. package/src/calendar-hooks.tsrx +119 -0
  872. package/src/chat-context.ts +39 -0
  873. package/src/chat-group-items.ts +40 -0
  874. package/src/chat-tokenize.mobile.test.ts +29 -0
  875. package/src/chat-tokenize.ts +46 -0
  876. package/src/chat-tokens.tsrx +31 -0
  877. package/src/chat-tokens.web.test.tsrx +31 -0
  878. package/src/chat-tokens.web.tsrx +26 -0
  879. package/src/chatComposerSelection.web.ts +148 -0
  880. package/src/checkbox-accessibility.mobile.test.tsrx +32 -0
  881. package/src/child-array.ts +8 -18
  882. package/src/children.mobile.test.ts +228 -0
  883. package/src/children.web.test.tsrx +19 -0
  884. package/src/clipboard-write.macos.ts +9 -0
  885. package/src/clipboard-write.ts +14 -0
  886. package/src/clipboard-write.web.ts +10 -0
  887. package/src/code-highlight.web.ts +358 -0
  888. package/src/code-tokenizer.ts +582 -0
  889. package/src/codeblock-shared.tsrx +90 -0
  890. package/src/command-palette-accessibility.mobile.ts +18 -0
  891. package/src/command-palette-keys.macos.test.ts +92 -0
  892. package/src/command-palette-keys.macos.ts +75 -0
  893. package/src/command-palette-scroll.macos.test.ts +10 -0
  894. package/src/command-palette-scroll.macos.ts +4 -0
  895. package/src/command-palette-state.test.ts +244 -0
  896. package/src/command-palette-state.ts +281 -0
  897. package/src/content-display.mobile.test.ts +45 -0
  898. package/src/controls.macos.tsrx +54 -20
  899. package/src/data-driver.mobile.test.ts +34 -0
  900. package/src/date-composition.macos.ts +16 -0
  901. package/src/date-composition.mobile.test.ts +26 -0
  902. package/src/date-composition.ts +17 -0
  903. package/src/date-composition.web.ts +6 -0
  904. package/src/date-entry.web.test.tsx +809 -0
  905. package/src/date-field-action.ts +17 -0
  906. package/src/date-keyboard.test.ts +86 -0
  907. package/src/date-keyboard.ts +153 -0
  908. package/src/date-messages.ts +29 -0
  909. package/src/datetime.test.ts +141 -0
  910. package/src/datetime.ts +890 -0
  911. package/src/dialog-context.ts +18 -0
  912. package/src/escape-props.ts +32 -3
  913. package/src/field-context.ts +101 -0
  914. package/src/form-layout-context.ts +14 -0
  915. package/src/forms-layout.mobile.test.ts +234 -0
  916. package/src/forms-layout.web.test.tsrx +318 -0
  917. package/src/hosted-unsupported.macos.tsrx +2 -6
  918. package/src/icons.ts +131 -0
  919. package/src/index.macos.ts +350 -29
  920. package/src/index.shared.ts +744 -31
  921. package/src/index.shared.web.ts +744 -31
  922. package/src/indicators.ts +61 -0
  923. package/src/input-group-context.ts +21 -0
  924. package/src/ios/SideDrawer.ios.tsrx +0 -7
  925. package/src/ios/UIModal.ios.tsrx +1 -1
  926. package/src/ios/UITableView.ios.tsrx +87 -9
  927. package/src/ios/index.ts +6 -1
  928. package/src/ios/openModal.ios.ts +1 -1
  929. package/src/is-renderable.ts +5 -0
  930. package/src/keyboard-inset.mobile.test.ts +1 -1
  931. package/src/{keyboard-inset.mobile.ts → keyboard-inset.ts} +1 -1
  932. package/src/keyboard-inset.web.ts +4 -0
  933. package/src/layer-dismissal.mobile.test.tsrx +163 -0
  934. package/src/layer-dismissal.tsrx +57 -0
  935. package/src/layer-dismissal.web.test.tsrx +205 -0
  936. package/src/layer-keys.ts +55 -0
  937. package/src/layer-keys.web.ts +30 -0
  938. package/src/layer-position.web.ts +71 -0
  939. package/src/layer-stack.ts +117 -0
  940. package/src/layout-shells.macos.tsrx +1 -1
  941. package/src/layout.macos.tsrx +110 -20
  942. package/src/list-context.ts +19 -0
  943. package/src/list-focus.web.tsrx +116 -0
  944. package/src/list-viewability-core.ts +146 -0
  945. package/src/list-viewability-observer.android.ts +127 -0
  946. package/src/list-viewability-observer.ios.ts +110 -0
  947. package/src/list-viewability-runtime.ts +156 -0
  948. package/src/list-viewability.mobile.test.ts +192 -0
  949. package/src/macos-extras.macos.tsrx +1 -1
  950. package/src/markdown-parse.ts +424 -0
  951. package/src/markdown-stream.mobile.test.ts +27 -0
  952. package/src/markdown-stream.test.ts +278 -0
  953. package/src/markdown-stream.ts +440 -0
  954. package/src/measure-bounds.macos.ts +24 -0
  955. package/src/menu-context.ts +11 -0
  956. package/src/menu-family.mobile.test.tsrx +110 -0
  957. package/src/menu-family.web.test.tsrx +171 -0
  958. package/src/metadata-list-context.ts +14 -0
  959. package/src/modal-focus.web.test.tsrx +26 -2
  960. package/src/modal-focus.web.ts +89 -26
  961. package/src/native/index.ts +2 -2
  962. package/src/native-color.mobile.tsrx +5 -0
  963. package/src/native-color.ts +2 -0
  964. package/src/nav-contexts.ts +127 -0
  965. package/src/nav-family.web.test.tsrx +252 -0
  966. package/src/nav-href.macos.ts +21 -0
  967. package/src/nav-href.ts +30 -0
  968. package/src/nav-href.web.ts +16 -0
  969. package/src/outline-dom.macos.tsrx +26 -0
  970. package/src/outline-dom.tsrx +32 -0
  971. package/src/outline-dom.web.tsrx +63 -0
  972. package/src/outline-hooks.tsrx +21 -0
  973. package/src/outline-utils.ts +181 -0
  974. package/src/outline-view-tree.ts +101 -0
  975. package/src/overflow-math.ts +237 -0
  976. package/src/overlay-lifecycle.mobile.test.ts +38 -23
  977. package/src/{overlay-lifetime.mobile.ts → overlay-lifetime.ts} +16 -7
  978. package/src/pan.macos.tsrx +19 -0
  979. package/src/pan.mobile.test.tsrx +1 -1
  980. package/src/platform-list.mobile.test.tsrx +99 -0
  981. package/src/popover-position.test.ts +68 -0
  982. package/src/popover-position.ts +101 -6
  983. package/src/popover.mobile.test.ts +1 -1
  984. package/src/power-search-config.test.ts +50 -0
  985. package/src/power-search-config.ts +893 -0
  986. package/src/power-search-strings.ts +88 -0
  987. package/src/presentation.macos.tsrx +59 -0
  988. package/src/props.ts +5120 -214
  989. package/src/query-cache.mobile.test.ts +152 -0
  990. package/src/query-cache.test.ts +390 -0
  991. package/src/query-cache.ts +721 -0
  992. package/src/query-storage.macos.ts +9 -0
  993. package/src/query-storage.ts +33 -0
  994. package/src/query-storage.web.ts +31 -0
  995. package/src/ref-list.ts +35 -0
  996. package/src/ref-list.web.test.ts +32 -0
  997. package/src/refs.mobile.test.tsrx +105 -0
  998. package/src/refs.web.test.tsrx +82 -0
  999. package/src/relative-position.ts +4 -0
  1000. package/src/relative-position.windows.ts +19 -0
  1001. package/src/resize-basis.macos.ts +31 -0
  1002. package/src/resize-basis.ts +29 -0
  1003. package/src/resize-basis.web.ts +37 -0
  1004. package/src/resize-math.ts +121 -0
  1005. package/src/resize-persist.macos.ts +39 -0
  1006. package/src/resize-persist.ts +42 -0
  1007. package/src/resize-persist.web.ts +38 -0
  1008. package/src/resize-state.ts +338 -0
  1009. package/src/root-layout.web.ts +16 -0
  1010. package/src/route-android.test.ts +1 -1
  1011. package/src/route-history.web.test.ts +36 -0
  1012. package/src/route-host.ts +1 -0
  1013. package/src/route-navigation.web.test.ts +1 -1
  1014. package/src/route-scroll.web.test.ts +142 -0
  1015. package/src/route-table.test.ts +256 -2
  1016. package/src/route-table.ts +192 -53
  1017. package/src/route.macos.ts +8 -0
  1018. package/src/route.ts +12 -2
  1019. package/src/route.web.ts +122 -17
  1020. package/src/safe-url.test.ts +14 -0
  1021. package/src/safe-url.ts +28 -0
  1022. package/src/scheme-colors.ts +53 -0
  1023. package/src/select-options.test.ts +24 -0
  1024. package/src/select-options.ts +43 -0
  1025. package/src/sheet-detents.ts +55 -7
  1026. package/src/sheet-detents.web.ts +54 -9
  1027. package/src/sheet-snap.ts +45 -0
  1028. package/src/spacing.ts +6 -0
  1029. package/src/stack-layout.ts +183 -0
  1030. package/src/styled.tsrx +1 -1
  1031. package/src/surfaces.macos.tsrx +3 -11
  1032. package/src/svg-glyph.ts +19 -0
  1033. package/src/svg-image.macos.ts +33 -0
  1034. package/src/svg-source.ts +39 -0
  1035. package/src/svg.mobile.ts +1 -73
  1036. package/src/svg.ts +1 -0
  1037. package/src/svg.windows.ts +139 -0
  1038. package/src/tablist.web.test.tsrx +165 -0
  1039. package/src/tap-to-blur.ios.ts +32 -25
  1040. package/src/tap-to-blur.ts +4 -0
  1041. package/src/text-controls.macos.tsrx +31 -5
  1042. package/src/text-input.mobile.test.ts +12 -4
  1043. package/src/text-role.ts +69 -0
  1044. package/src/text-slot.tsrx +26 -0
  1045. package/src/text-slot.web.tsrx +4 -0
  1046. package/src/theme/chrome.css +2440 -0
  1047. package/src/theme/tokens.css +2816 -646
  1048. package/src/time-format.ts +435 -0
  1049. package/src/timer-format.ts +85 -0
  1050. package/src/toast-context.ts +18 -0
  1051. package/src/toast-service.macos.tsrx +43 -0
  1052. package/src/toast-service.tsrx +289 -0
  1053. package/src/toast-service.web.tsrx +55 -0
  1054. package/src/toast-store.test.ts +77 -0
  1055. package/src/toast-store.ts +113 -0
  1056. package/src/toast-viewport.macos.tsrx +78 -0
  1057. package/src/toast-viewport.tsrx +45 -0
  1058. package/src/toast-viewport.web.tsrx +240 -0
  1059. package/src/toggle-button-group-context.ts +21 -0
  1060. package/src/translate.web.ts +1 -1
  1061. package/src/typeahead-source.test.ts +34 -0
  1062. package/src/typeahead-source.ts +99 -0
  1063. package/src/unsupported.macos.tsrx +1 -1
  1064. package/src/use-hover-card.mobile.tsrx +126 -0
  1065. package/src/use-hover-card.tsrx +153 -0
  1066. package/src/use-hover-card.web.tsrx +282 -0
  1067. package/src/use-imperative-alert-dialog.macos.tsrx +34 -0
  1068. package/src/use-imperative-alert-dialog.tsrx +38 -0
  1069. package/src/use-imperative-alert-dialog.web.tsrx +37 -0
  1070. package/src/use-imperative-dialog.macos.tsrx +34 -0
  1071. package/src/use-imperative-dialog.tsrx +38 -0
  1072. package/src/use-imperative-dialog.web.tsrx +37 -0
  1073. package/src/use-layer-host.mobile.test.tsrx +91 -0
  1074. package/src/use-layer.mobile.test.tsrx +132 -0
  1075. package/src/use-layer.mobile.tsrx +228 -0
  1076. package/src/use-layer.tsrx +132 -0
  1077. package/src/use-layer.web.test.tsrx +77 -0
  1078. package/src/use-layer.web.tsrx +199 -0
  1079. package/src/use-lightbox.macos.tsrx +67 -0
  1080. package/src/use-lightbox.tsrx +68 -0
  1081. package/src/use-lightbox.web.tsrx +71 -0
  1082. package/src/use-scrollable-area.macos.tsrx +59 -0
  1083. package/src/use-scrollable-area.tsrx +110 -0
  1084. package/src/use-scrollable-area.web.tsrx +174 -0
  1085. package/src/useChatComposerTokens.tsrx +61 -0
  1086. package/src/useChatComposerTokens.web.tsrx +196 -0
  1087. package/src/useChatDictation.tsrx +10 -0
  1088. package/src/useChatDictation.web.tsrx +340 -0
  1089. package/src/useChatNewMessages.tsrx +62 -0
  1090. package/src/useChatNewMessages.web.tsrx +60 -0
  1091. package/src/useChatPasteAsToken.tsrx +36 -0
  1092. package/src/useChatPasteAsToken.web.tsrx +32 -0
  1093. package/src/useChatStreamScroll.tsrx +147 -0
  1094. package/src/useChatStreamScroll.web.tsrx +247 -0
  1095. package/src/useMeasure.macos.tsrx +37 -18
  1096. package/src/useMeasure.tsrx +2 -2
  1097. package/src/useMeasure.web.tsrx +2 -2
  1098. package/src/useMediaQuery.web.tsrx +28 -0
  1099. package/src/useResizable.macos.tsrx +95 -0
  1100. package/src/useResizable.tsrx +95 -0
  1101. package/src/useResizable.web.tsrx +94 -0
  1102. package/src/useSelect.tsx +210 -0
  1103. package/src/useSpeechRecognition.tsrx +33 -0
  1104. package/src/useSpeechRecognition.web.tsrx +293 -0
  1105. package/src/useTriggerMenu.tsrx +303 -0
  1106. package/src/useTriggerMenu.web.tsrx +406 -0
  1107. package/src/vendor/ui-svg/src/index.android.ts +35 -23
  1108. package/src/web/index.ts +6 -6
  1109. package/types/generated/.tsrx-typegen-manifest.json +300 -23
  1110. package/types/generated/AlertDialog.d.ts +6 -0
  1111. package/types/generated/AlertDialog.web.d.ts +7 -0
  1112. package/types/generated/AppShell.d.ts +7 -0
  1113. package/types/generated/AppShell.web.d.ts +7 -0
  1114. package/types/generated/AspectRatio.d.ts +9 -0
  1115. package/types/generated/AspectRatio.web.d.ts +5 -0
  1116. package/types/generated/AvatarGroup.web.d.ts +4 -2
  1117. package/types/generated/BaseTypeahead.d.ts +7 -0
  1118. package/types/generated/BaseTypeahead.web.d.ts +6 -0
  1119. package/types/generated/Blockquote.d.ts +5 -0
  1120. package/types/generated/Blockquote.web.d.ts +7 -0
  1121. package/types/generated/BottomSheet.d.ts +25 -0
  1122. package/types/generated/BottomSheet.web.d.ts +10 -0
  1123. package/types/generated/Breadcrumb.web.d.ts +0 -1
  1124. package/types/generated/Button.d.ts +8 -4
  1125. package/types/generated/Button.web.d.ts +8 -4
  1126. package/types/generated/ButtonGroup.d.ts +3 -0
  1127. package/types/generated/ButtonGroup.web.d.ts +2 -0
  1128. package/types/generated/Calendar.d.ts +5 -0
  1129. package/types/generated/Calendar.web.d.ts +6 -0
  1130. package/types/generated/Carousel.d.ts +7 -0
  1131. package/types/generated/Carousel.web.d.ts +9 -0
  1132. package/types/generated/Center.d.ts +5 -0
  1133. package/types/generated/Center.web.d.ts +5 -0
  1134. package/types/generated/ChatComposer.d.ts +7 -0
  1135. package/types/generated/ChatComposer.web.d.ts +6 -0
  1136. package/types/generated/ChatComposerDrawer.d.ts +7 -0
  1137. package/types/generated/ChatComposerDrawer.web.d.ts +6 -0
  1138. package/types/generated/ChatComposerInput.d.ts +11 -0
  1139. package/types/generated/ChatComposerInput.web.d.ts +10 -0
  1140. package/types/generated/ChatDictationButton.d.ts +7 -0
  1141. package/types/generated/ChatDictationButton.web.d.ts +7 -0
  1142. package/types/generated/ChatLayout.d.ts +8 -0
  1143. package/types/generated/ChatLayout.web.d.ts +9 -0
  1144. package/types/generated/ChatLayoutScrollButton.d.ts +7 -0
  1145. package/types/generated/ChatLayoutScrollButton.web.d.ts +5 -0
  1146. package/types/generated/ChatMessage.d.ts +8 -0
  1147. package/types/generated/ChatMessage.web.d.ts +6 -0
  1148. package/types/generated/ChatMessageBubble.d.ts +9 -0
  1149. package/types/generated/ChatMessageBubble.web.d.ts +7 -0
  1150. package/types/generated/ChatMessageList.d.ts +7 -0
  1151. package/types/generated/ChatMessageList.web.d.ts +7 -0
  1152. package/types/generated/ChatMessageMetadata.d.ts +6 -0
  1153. package/types/generated/ChatMessageMetadata.web.d.ts +6 -0
  1154. package/types/generated/ChatPastedTextToken.web.d.ts +7 -0
  1155. package/types/generated/ChatSendButton.d.ts +6 -0
  1156. package/types/generated/ChatSendButton.web.d.ts +7 -0
  1157. package/types/generated/ChatSystemMessage.d.ts +5 -0
  1158. package/types/generated/ChatSystemMessage.web.d.ts +5 -0
  1159. package/types/generated/ChatTokenizedText.d.ts +7 -0
  1160. package/types/generated/ChatTokenizedText.web.d.ts +6 -0
  1161. package/types/generated/ChatToolCalls.d.ts +5 -0
  1162. package/types/generated/ChatToolCalls.web.d.ts +5 -0
  1163. package/types/generated/CheckIndicator.d.ts +6 -0
  1164. package/types/generated/CheckIndicator.web.d.ts +5 -0
  1165. package/types/generated/Checkbox.d.ts +1 -1
  1166. package/types/generated/Checkbox.web.d.ts +1 -1
  1167. package/types/generated/CheckboxGroup.d.ts +1 -1
  1168. package/types/generated/CheckboxGroup.web.d.ts +1 -1
  1169. package/types/generated/CheckboxIndicator.d.ts +6 -0
  1170. package/types/generated/CheckboxIndicator.web.d.ts +5 -0
  1171. package/types/generated/Citation.d.ts +5 -0
  1172. package/types/generated/Citation.web.d.ts +8 -0
  1173. package/types/generated/ClickableCard.d.ts +3 -0
  1174. package/types/generated/ClickableCard.web.d.ts +3 -0
  1175. package/types/generated/Code.d.ts +8 -0
  1176. package/types/generated/Code.web.d.ts +6 -0
  1177. package/types/generated/CodeBlock.d.ts +8 -0
  1178. package/types/generated/CodeBlock.web.d.ts +8 -0
  1179. package/types/generated/CommandPalette.d.ts +3 -4
  1180. package/types/generated/CommandPalette.web.d.ts +3 -4
  1181. package/types/generated/ComplexSelector.d.ts +3 -0
  1182. package/types/generated/ComplexSelector.web.d.ts +3 -0
  1183. package/types/generated/DateInput.d.ts +8 -0
  1184. package/types/generated/DateInput.web.d.ts +7 -0
  1185. package/types/generated/DateRangeInput.d.ts +6 -0
  1186. package/types/generated/DateRangeInput.web.d.ts +5 -0
  1187. package/types/generated/DateTimeInput.d.ts +6 -0
  1188. package/types/generated/DateTimeInput.web.d.ts +7 -0
  1189. package/types/generated/Dialog.d.ts +11 -0
  1190. package/types/generated/Dialog.web.d.ts +11 -0
  1191. package/types/generated/FormField.d.ts +4 -3
  1192. package/types/generated/FormField.web.d.ts +4 -3
  1193. package/types/generated/FormLayout.d.ts +8 -0
  1194. package/types/generated/FormLayout.web.d.ts +7 -0
  1195. package/types/generated/HStack.d.ts +5 -0
  1196. package/types/generated/HoverCard.d.ts +8 -0
  1197. package/types/generated/HoverCard.mobile.d.ts +7 -0
  1198. package/types/generated/HoverCard.web.d.ts +8 -0
  1199. package/types/generated/IconButton.d.ts +3 -0
  1200. package/types/generated/IconButton.web.d.ts +3 -0
  1201. package/types/generated/InputGroup.d.ts +10 -0
  1202. package/types/generated/InputGroup.web.d.ts +10 -0
  1203. package/types/generated/InputRating.d.ts +1 -1
  1204. package/types/generated/InputRating.web.d.ts +1 -1
  1205. package/types/generated/Item.d.ts +3 -0
  1206. package/types/generated/Item.web.d.ts +3 -0
  1207. package/types/generated/Kbd.d.ts +0 -1
  1208. package/types/generated/Lightbox.d.ts +7 -0
  1209. package/types/generated/Lightbox.web.d.ts +5 -0
  1210. package/types/generated/List.d.ts +8 -0
  1211. package/types/generated/List.web.d.ts +6 -0
  1212. package/types/generated/ListItem.d.ts +8 -3
  1213. package/types/generated/ListItem.web.d.ts +8 -3
  1214. package/types/generated/Markdown.d.ts +8 -52
  1215. package/types/generated/MenuParts.d.ts +9 -0
  1216. package/types/generated/MenuParts.web.d.ts +9 -0
  1217. package/types/generated/MenuSurface.d.ts +4 -0
  1218. package/types/generated/MenuSurface.web.d.ts +3 -0
  1219. package/types/generated/MetadataList.d.ts +7 -0
  1220. package/types/generated/MetadataList.web.d.ts +10 -0
  1221. package/types/generated/MetadataListItem.d.ts +5 -0
  1222. package/types/generated/MetadataListItem.web.d.ts +5 -0
  1223. package/types/generated/Meter.d.ts +1 -1
  1224. package/types/generated/MobileNav.d.ts +15 -0
  1225. package/types/generated/MobileNav.web.d.ts +11 -0
  1226. package/types/generated/MoreMenu.d.ts +2 -0
  1227. package/types/generated/MoreMenu.web.d.ts +2 -0
  1228. package/types/generated/NavIcon.d.ts +6 -0
  1229. package/types/generated/NavIcon.web.d.ts +6 -0
  1230. package/types/generated/NavMenu.d.ts +11 -0
  1231. package/types/generated/NavMenu.web.d.ts +12 -0
  1232. package/types/generated/NavigationMenu.d.ts +3 -3
  1233. package/types/generated/NavigationMenu.web.d.ts +4 -4
  1234. package/types/generated/Outline.d.ts +7 -0
  1235. package/types/generated/Outline.web.d.ts +7 -0
  1236. package/types/generated/OverflowList.d.ts +6 -0
  1237. package/types/generated/OverflowList.web.d.ts +9 -0
  1238. package/types/generated/PowerSearch.d.ts +7 -0
  1239. package/types/generated/PowerSearch.web.d.ts +6 -0
  1240. package/types/generated/PowerSearchFilterEditor.d.ts +12 -0
  1241. package/types/generated/PowerSearchFilterEditor.web.d.ts +2 -0
  1242. package/types/generated/PowerSearchToken.d.ts +7 -0
  1243. package/types/generated/PowerSearchToken.web.d.ts +7 -0
  1244. package/types/generated/ProgressBar.d.ts +7 -0
  1245. package/types/generated/ProgressBar.web.d.ts +6 -0
  1246. package/types/generated/RadioGroup.d.ts +1 -1
  1247. package/types/generated/RadioGroup.web.d.ts +1 -1
  1248. package/types/generated/RadioIndicator.d.ts +5 -0
  1249. package/types/generated/RadioIndicator.web.d.ts +4 -0
  1250. package/types/generated/Resizable.d.ts +2 -0
  1251. package/types/generated/ResizeHandle.d.ts +7 -0
  1252. package/types/generated/ResizeHandle.web.d.ts +7 -0
  1253. package/types/generated/RouteBoundary.d.ts +13 -0
  1254. package/types/generated/RouteBoundary.web.d.ts +8 -0
  1255. package/types/generated/{RouteHost.mobile.d.ts → RouteHost.d.ts} +4 -0
  1256. package/types/generated/SafeArea.d.ts +1 -0
  1257. package/types/generated/ScrollableArea.d.ts +8 -0
  1258. package/types/generated/ScrollableArea.web.d.ts +8 -0
  1259. package/types/generated/Section.d.ts +5 -0
  1260. package/types/generated/Section.web.d.ts +9 -0
  1261. package/types/generated/SegmentedControl.d.ts +1 -1
  1262. package/types/generated/SegmentedControl.web.d.ts +1 -1
  1263. package/types/generated/Select.d.ts +3 -6
  1264. package/types/generated/Select.web.d.ts +3 -6
  1265. package/types/generated/SelectableCard.d.ts +3 -0
  1266. package/types/generated/SelectableCard.web.d.ts +3 -0
  1267. package/types/generated/SideNav.d.ts +19 -0
  1268. package/types/generated/SideNav.web.d.ts +22 -0
  1269. package/types/generated/Stack.d.ts +5 -1
  1270. package/types/generated/Stack.web.d.ts +3 -1
  1271. package/types/generated/StackItem.d.ts +5 -0
  1272. package/types/generated/StackItem.web.d.ts +6 -0
  1273. package/types/generated/StatusDot.d.ts +6 -0
  1274. package/types/generated/StatusDot.web.d.ts +7 -0
  1275. package/types/generated/Switch.d.ts +1 -1
  1276. package/types/generated/Switch.web.d.ts +1 -1
  1277. package/types/generated/TabList.d.ts +18 -0
  1278. package/types/generated/TabList.web.d.ts +15 -0
  1279. package/types/generated/TextArea.d.ts +1 -1
  1280. package/types/generated/TextArea.web.d.ts +1 -1
  1281. package/types/generated/TextInput.d.ts +2 -2
  1282. package/types/generated/Thumbnail.d.ts +6 -0
  1283. package/types/generated/Thumbnail.web.d.ts +8 -0
  1284. package/types/generated/TimeInput.d.ts +8 -0
  1285. package/types/generated/TimeInput.web.d.ts +6 -0
  1286. package/types/generated/TimeWheelPanel.d.ts +16 -0
  1287. package/types/generated/TimeWheelPanel.web.d.ts +16 -0
  1288. package/types/generated/Timer.d.ts +5 -0
  1289. package/types/generated/Timer.web.d.ts +6 -0
  1290. package/types/generated/Timestamp.d.ts +8 -0
  1291. package/types/generated/Timestamp.web.d.ts +7 -0
  1292. package/types/generated/Toast.d.ts +7 -0
  1293. package/types/generated/Toast.web.d.ts +9 -0
  1294. package/types/generated/ToggleButton.d.ts +3 -0
  1295. package/types/generated/ToggleButton.web.d.ts +3 -0
  1296. package/types/generated/Token.d.ts +4 -0
  1297. package/types/generated/Token.web.d.ts +7 -0
  1298. package/types/generated/Tokenizer.d.ts +6 -0
  1299. package/types/generated/Tokenizer.web.d.ts +5 -0
  1300. package/types/generated/Toolbar.d.ts +6 -0
  1301. package/types/generated/Toolbar.web.d.ts +5 -0
  1302. package/types/generated/Tooltip.web.d.ts +2 -2
  1303. package/types/generated/TopNav.d.ts +25 -0
  1304. package/types/generated/TopNav.web.d.ts +23 -0
  1305. package/types/generated/Typeahead.d.ts +6 -0
  1306. package/types/generated/Typeahead.web.d.ts +6 -0
  1307. package/types/generated/TypeaheadItem.d.ts +4 -0
  1308. package/types/generated/TypeaheadItem.web.d.ts +5 -0
  1309. package/types/generated/VStack.d.ts +5 -0
  1310. package/types/generated/View.web.d.ts +1 -1
  1311. package/types/generated/VisuallyHidden.d.ts +6 -0
  1312. package/types/generated/VisuallyHidden.web.d.ts +6 -0
  1313. package/types/generated/aliases.d.ts +2 -6
  1314. package/types/generated/aliases.web.d.ts +2 -6
  1315. package/types/generated/android/DrawerLayout.android.d.ts +0 -6
  1316. package/types/generated/android/RecyclerView.android.d.ts +8 -7
  1317. package/types/generated/android/index.d.ts +1 -1
  1318. package/types/generated/anim.d.ts +1 -8
  1319. package/types/generated/anim.web.d.ts +1 -1
  1320. package/types/generated/animated-value.d.ts +12 -0
  1321. package/types/generated/app-shell-config.d.ts +5 -0
  1322. package/types/generated/bottom-sheet-context.d.ts +24 -0
  1323. package/types/generated/bottom-sheet-service.d.ts +13 -0
  1324. package/types/generated/bottom-sheet-service.web.d.ts +7 -0
  1325. package/types/generated/busy-lane.d.ts +15 -0
  1326. package/types/generated/button-group-context.d.ts +12 -0
  1327. package/types/generated/calendar-core.d.ts +111 -0
  1328. package/types/generated/calendar-hooks.d.ts +37 -0
  1329. package/types/generated/chat-context.d.ts +17 -0
  1330. package/types/generated/chat-group-items.d.ts +8 -0
  1331. package/types/generated/chat-tokenize.d.ts +14 -0
  1332. package/types/generated/chat-tokens.d.ts +11 -0
  1333. package/types/generated/chat-tokens.web.d.ts +11 -0
  1334. package/types/generated/chatComposerSelection.web.d.ts +13 -0
  1335. package/types/generated/child-array.d.ts +3 -2
  1336. package/types/generated/clipboard-write.d.ts +2 -0
  1337. package/types/generated/clipboard-write.web.d.ts +3 -0
  1338. package/types/generated/code-highlight.web.d.ts +31 -0
  1339. package/types/generated/code-tokenizer.d.ts +50 -0
  1340. package/types/generated/codeblock-shared.d.ts +11 -0
  1341. package/types/generated/command-palette-accessibility.mobile.d.ts +2 -0
  1342. package/types/generated/command-palette-state.d.ts +27 -0
  1343. package/types/generated/date-composition.d.ts +5 -0
  1344. package/types/generated/date-composition.web.d.ts +4 -0
  1345. package/types/generated/date-field-action.d.ts +4 -0
  1346. package/types/generated/date-keyboard.d.ts +27 -0
  1347. package/types/generated/date-messages.d.ts +2 -0
  1348. package/types/generated/datetime.d.ts +114 -0
  1349. package/types/generated/dialog-context.d.ts +14 -0
  1350. package/types/generated/escape-props.d.ts +1 -0
  1351. package/types/generated/field-context.d.ts +38 -0
  1352. package/types/generated/form-layout-context.d.ts +11 -0
  1353. package/types/generated/index.shared.d.ts +171 -30
  1354. package/types/generated/index.shared.web.d.ts +171 -30
  1355. package/types/generated/indicators.d.ts +23 -0
  1356. package/types/generated/input-group-context.d.ts +16 -0
  1357. package/types/generated/ios/SideDrawer.ios.d.ts +0 -6
  1358. package/types/generated/ios/UITableView.ios.d.ts +4 -4
  1359. package/types/generated/ios/index.d.ts +1 -1
  1360. package/types/generated/is-renderable.d.ts +3 -0
  1361. package/types/generated/{keyboard-inset.mobile.d.ts → keyboard-inset.d.ts} +1 -1
  1362. package/types/generated/keyboard-inset.web.d.ts +2 -0
  1363. package/types/generated/layer-dismissal.d.ts +15 -0
  1364. package/types/generated/layer-keys.d.ts +1 -0
  1365. package/types/generated/layer-keys.web.d.ts +1 -0
  1366. package/types/generated/layer-position.web.d.ts +4 -0
  1367. package/types/generated/layer-stack.d.ts +26 -0
  1368. package/types/generated/list-context.d.ts +13 -0
  1369. package/types/generated/list-focus.web.d.ts +26 -0
  1370. package/types/generated/list-viewability-core.d.ts +13 -0
  1371. package/types/generated/list-viewability-observer.android.d.ts +8 -0
  1372. package/types/generated/list-viewability-observer.ios.d.ts +8 -0
  1373. package/types/generated/list-viewability-runtime.d.ts +37 -0
  1374. package/types/generated/markdown-parse.d.ts +28 -0
  1375. package/types/generated/markdown-stream.d.ts +61 -0
  1376. package/types/generated/menu-context.d.ts +6 -0
  1377. package/types/generated/metadata-list-context.d.ts +9 -0
  1378. package/types/generated/modal-focus.web.d.ts +2 -1
  1379. package/types/generated/native/index.d.ts +2 -2
  1380. package/types/generated/native-color.d.ts +2 -0
  1381. package/types/generated/native-color.mobile.d.ts +4 -0
  1382. package/types/generated/nav-contexts.d.ts +49 -0
  1383. package/types/generated/nav-href.d.ts +1 -0
  1384. package/types/generated/nav-href.web.d.ts +4 -0
  1385. package/types/generated/outline-dom.d.ts +8 -0
  1386. package/types/generated/outline-dom.web.d.ts +8 -0
  1387. package/types/generated/outline-hooks.d.ts +9 -0
  1388. package/types/generated/outline-utils.d.ts +36 -0
  1389. package/types/generated/outline-view-tree.d.ts +7 -0
  1390. package/types/generated/overflow-math.d.ts +31 -0
  1391. package/types/generated/overlay-lifetime.d.ts +19 -0
  1392. package/types/generated/popover-position.d.ts +17 -3
  1393. package/types/generated/power-search-config.d.ts +57 -0
  1394. package/types/generated/power-search-strings.d.ts +12 -0
  1395. package/types/generated/props.d.ts +4582 -196
  1396. package/types/generated/query-cache.d.ts +129 -0
  1397. package/types/generated/query-storage.d.ts +9 -0
  1398. package/types/generated/query-storage.web.d.ts +8 -0
  1399. package/types/generated/ref-list.d.ts +7 -0
  1400. package/types/generated/relative-position.d.ts +5 -0
  1401. package/types/generated/resize-basis.d.ts +5 -0
  1402. package/types/generated/resize-basis.web.d.ts +6 -0
  1403. package/types/generated/resize-math.d.ts +27 -0
  1404. package/types/generated/resize-persist.d.ts +7 -0
  1405. package/types/generated/resize-persist.web.d.ts +9 -0
  1406. package/types/generated/resize-state.d.ts +39 -0
  1407. package/types/generated/root-layout.web.d.ts +6 -0
  1408. package/types/generated/route-host.d.ts +1 -0
  1409. package/types/generated/route-table.d.ts +21 -9
  1410. package/types/generated/route.d.ts +3 -0
  1411. package/types/generated/route.web.d.ts +3 -0
  1412. package/types/generated/safe-url.d.ts +4 -0
  1413. package/types/generated/scheme-colors.d.ts +11 -0
  1414. package/types/generated/select-options.d.ts +10 -0
  1415. package/types/generated/sheet-detents.d.ts +13 -2
  1416. package/types/generated/sheet-detents.web.d.ts +12 -2
  1417. package/types/generated/sheet-snap.d.ts +8 -0
  1418. package/types/generated/spacing.d.ts +4 -0
  1419. package/types/generated/stack-layout.d.ts +40 -0
  1420. package/types/generated/styled.d.ts +3 -1
  1421. package/types/generated/svg-glyph.d.ts +6 -0
  1422. package/types/generated/svg-source.d.ts +8 -0
  1423. package/types/generated/svg.d.ts +1 -0
  1424. package/types/generated/svg.mobile.d.ts +1 -23
  1425. package/types/generated/tap-to-blur.d.ts +2 -0
  1426. package/types/generated/text-role.d.ts +8 -0
  1427. package/types/generated/text-slot.d.ts +6 -0
  1428. package/types/generated/text-slot.web.d.ts +6 -0
  1429. package/types/generated/time-format.d.ts +40 -0
  1430. package/types/generated/timer-format.d.ts +13 -0
  1431. package/types/generated/toast-context.d.ts +14 -0
  1432. package/types/generated/toast-service.d.ts +24 -0
  1433. package/types/generated/toast-service.web.d.ts +8 -0
  1434. package/types/generated/toast-store.d.ts +37 -0
  1435. package/types/generated/toast-viewport.d.ts +8 -0
  1436. package/types/generated/toast-viewport.web.d.ts +15 -0
  1437. package/types/generated/toggle-button-group-context.d.ts +13 -0
  1438. package/types/generated/translate.web.d.ts +1 -1
  1439. package/types/generated/typeahead-source.d.ts +20 -0
  1440. package/types/generated/use-hover-card.d.ts +8 -0
  1441. package/types/generated/use-hover-card.mobile.d.ts +9 -0
  1442. package/types/generated/use-hover-card.web.d.ts +10 -0
  1443. package/types/generated/use-imperative-alert-dialog.d.ts +6 -0
  1444. package/types/generated/use-imperative-alert-dialog.web.d.ts +6 -0
  1445. package/types/generated/use-imperative-dialog.d.ts +6 -0
  1446. package/types/generated/use-imperative-dialog.web.d.ts +6 -0
  1447. package/types/generated/use-layer.d.ts +8 -0
  1448. package/types/generated/use-layer.mobile.d.ts +7 -0
  1449. package/types/generated/use-layer.web.d.ts +9 -0
  1450. package/types/generated/use-lightbox.d.ts +3 -0
  1451. package/types/generated/use-lightbox.web.d.ts +5 -0
  1452. package/types/generated/use-scrollable-area.d.ts +10 -0
  1453. package/types/generated/use-scrollable-area.web.d.ts +9 -0
  1454. package/types/generated/useChatComposerTokens.d.ts +9 -0
  1455. package/types/generated/useChatComposerTokens.web.d.ts +10 -0
  1456. package/types/generated/useChatDictation.d.ts +6 -0
  1457. package/types/generated/useChatDictation.web.d.ts +6 -0
  1458. package/types/generated/useChatNewMessages.d.ts +6 -0
  1459. package/types/generated/useChatNewMessages.web.d.ts +6 -0
  1460. package/types/generated/useChatPasteAsToken.d.ts +7 -0
  1461. package/types/generated/useChatPasteAsToken.web.d.ts +4 -0
  1462. package/types/generated/useChatStreamScroll.d.ts +7 -0
  1463. package/types/generated/useChatStreamScroll.web.d.ts +6 -0
  1464. package/types/generated/useMediaQuery.web.d.ts +6 -0
  1465. package/types/generated/useResizable.d.ts +8 -0
  1466. package/types/generated/useResizable.web.d.ts +8 -0
  1467. package/types/generated/useSelect.d.ts +25 -0
  1468. package/types/generated/useSpeechRecognition.d.ts +6 -0
  1469. package/types/generated/useSpeechRecognition.web.d.ts +5 -0
  1470. package/types/generated/useTriggerMenu.d.ts +72 -0
  1471. package/types/generated/useTriggerMenu.web.d.ts +52 -0
  1472. package/types/generated/web/index.d.ts +2 -2
  1473. package/types/index.macos.d.ts +322 -28
  1474. package/dist/native/Hoverable.mobile.tsrx.js +0 -39
  1475. package/dist/native/InputTags.tsrx.js +0 -131
  1476. package/dist/native/Row.tsrx.js +0 -98
  1477. package/dist/native/ScrollView.tsrx.js +0 -233
  1478. package/dist/native/Sheet.tsrx.js +0 -109
  1479. package/dist/native/route-host.mobile.js +0 -2
  1480. package/dist/native/sheet-service.js +0 -92
  1481. package/dist/native/toast-anchor.tsrx.js +0 -185
  1482. package/dist/web/Hoverable.web.tsrx.js +0 -151
  1483. package/dist/web/InputTags.web.tsrx.js +0 -122
  1484. package/dist/web/Row.web.tsrx.js +0 -250
  1485. package/dist/web/ScrollBox.web.tsrx.js +0 -32
  1486. package/dist/web/ScrollView.web.tsrx.js +0 -388
  1487. package/dist/web/Sheet.web.tsrx.js +0 -94
  1488. package/dist/web/sheet-service.web.js +0 -58
  1489. package/dist/web/toast-anchor.web.tsrx.js +0 -142
  1490. package/src/Hoverable.mobile.tsrx +0 -21
  1491. package/src/Hoverable.tsrx +0 -113
  1492. package/src/Hoverable.web.tsrx +0 -98
  1493. package/src/InputTags.macos.tsrx +0 -49
  1494. package/src/InputTags.tsrx +0 -49
  1495. package/src/InputTags.web.tsrx +0 -49
  1496. package/src/ScrollBox.tsrx +0 -8
  1497. package/src/ScrollBox.web.tsrx +0 -7
  1498. package/src/ScrollView.macos.tsrx +0 -19
  1499. package/src/ScrollView.tsrx +0 -117
  1500. package/src/ScrollView.web.tsrx +0 -109
  1501. package/src/Sheet.macos.tsrx +0 -15
  1502. package/src/Sheet.tsrx +0 -101
  1503. package/src/Sheet.web.tsrx +0 -64
  1504. package/src/route-host.mobile.ts +0 -1
  1505. package/src/sheet-service.macos.ts +0 -64
  1506. package/src/sheet-service.web.ts +0 -72
  1507. package/src/toast-anchor.macos.tsrx +0 -3
  1508. package/src/toast-anchor.tsrx +0 -122
  1509. package/src/toast-anchor.web.tsrx +0 -92
  1510. package/src/toast.tsrx +0 -90
  1511. package/src/toast.web.tsrx +0 -50
  1512. package/types/generated/Hoverable.d.ts +0 -10
  1513. package/types/generated/Hoverable.mobile.d.ts +0 -8
  1514. package/types/generated/Hoverable.web.d.ts +0 -9
  1515. package/types/generated/InputTags.d.ts +0 -4
  1516. package/types/generated/InputTags.web.d.ts +0 -5
  1517. package/types/generated/ScrollBox.d.ts +0 -3
  1518. package/types/generated/ScrollBox.web.d.ts +0 -3
  1519. package/types/generated/ScrollView.d.ts +0 -7
  1520. package/types/generated/ScrollView.web.d.ts +0 -6
  1521. package/types/generated/Sheet.d.ts +0 -5
  1522. package/types/generated/Sheet.web.d.ts +0 -7
  1523. package/types/generated/overlay-lifetime.mobile.d.ts +0 -10
  1524. package/types/generated/route-host.mobile.d.ts +0 -1
  1525. package/types/generated/sheet-service.d.ts +0 -11
  1526. package/types/generated/sheet-service.web.d.ts +0 -6
  1527. package/types/generated/toast-anchor.d.ts +0 -4
  1528. package/types/generated/toast-anchor.web.d.ts +0 -4
  1529. package/types/generated/toast.d.ts +0 -3
  1530. package/types/generated/toast.web.d.ts +0 -3
  1531. /package/src/{modal-presenter.mobile.ts → modal-presenter.ts} +0 -0
  1532. /package/src/{root-layout.mobile.ts → root-layout.ts} +0 -0
  1533. /package/types/generated/{modal-presenter.mobile.d.ts → modal-presenter.d.ts} +0 -0
  1534. /package/types/generated/{root-layout.mobile.d.ts → root-layout.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  /** Shared route-dir manifest — the file-router half of the nav contract
2
- * (docs/navigation-notes.md). Apps glob their route dir per platform and
2
+ * (docs/notes/navigation-notes.md). Apps glob their route dir per platform and
3
3
  * pass the module map here; the suffix seam applies to directories the
4
4
  * same way it does to imports:
5
5
  *
@@ -20,6 +20,8 @@
20
20
  * Conventions (route dir = `dir`, default 'app'):
21
21
  * app/detail.tsrx → route 'detail'
22
22
  * app/demo/[id].tsrx → route 'demo/:id' ([param] → :param)
23
+ * app/demo/[[ref]].tsrx → 'demo/:ref?' ([[p]] = optional param)
24
+ * app/docs/[...r].tsrx → 'docs/*r' ([...p] = terminal catch-all)
23
25
  * app/foo/index.tsrx → 'foo' (index = the dir's own route)
24
26
  * app/settings.web.tsrx → 'settings' on web only — `prefer` decides
25
27
  * app/_layout.tsrx → layouts[''] — a shell, not a route
@@ -43,6 +45,56 @@ import type {
43
45
  const EXT = /\.(tsrx|tsx|ts|mts|cts|js|mjs|cjs|jsx)$/
44
46
  const SUFFIX = /\.(web|mobile|ios|android|macos|windows|linux)$/
45
47
  const PARAM = /^\[(.+)\]$/
48
+
49
+ /** One route-dir/spec path segment → normalized pattern segment:
50
+ * `[x]`→`:x` · `[[x]]`/`[x?]`→`:x?` (optional param) · `[...x]`→`*x`
51
+ * (terminal catch-all). Spec paths may write the normalized forms
52
+ * directly (`:x`, `:x?`, `*`, `*x`); a bare `*` captures into
53
+ * `params['*']`, a named `*x`/`[...x]` into `params.x`. */
54
+ function normSegment(s: string): string {
55
+ const b = PARAM.exec(s)
56
+ if (!b) {
57
+ return s
58
+ }
59
+
60
+ const inner = b[1]
61
+ if (inner.startsWith('[') && inner.endsWith(']')) {
62
+ const core = inner.slice(1, -1)
63
+ return core.startsWith('...') ? '*' + core.slice(3) : ':' + core + '?'
64
+ }
65
+
66
+ return inner.startsWith('...') ? '*' + inner.slice(3) : ':' + inner
67
+ }
68
+
69
+ /** Normalized pattern segment → param name: ':x'/':x?' → 'x',
70
+ * '*'/'*x' → '*'/'x', static segments → undefined. */
71
+ function segmentParam(s: string): string | undefined {
72
+ if (s.startsWith(':')) {
73
+ return s.endsWith('?') ? s.slice(1, -1) : s.slice(1)
74
+ }
75
+
76
+ if (s.startsWith('*')) {
77
+ return s.slice(1) || '*'
78
+ }
79
+
80
+ return undefined
81
+ }
82
+
83
+ function segmentParams(segments: readonly string[]): string[] {
84
+ return segments.flatMap((s) => segmentParam(s) ?? [])
85
+ }
86
+
87
+ /** A catch-all only matches at the end of a pattern — warn that a
88
+ * mid-path '*' is a literal segment, not a remainder capture. */
89
+ function warnOnStraySplat(segments: readonly string[], file: string): void {
90
+ const at = segments.findIndex((s) => s.startsWith('*'))
91
+ if (at !== -1 && at !== segments.length - 1) {
92
+ console.warn(
93
+ `[octane-xplat] route '${segments.join('/')}' (${file}) has a catch-all segment mid-path — '*' only captures at the end of a pattern and is a literal here`,
94
+ )
95
+ }
96
+ }
97
+
46
98
  /** Build-time loader modules — `docs.loader.ts` pairs with route `docs`
47
99
  * for `dataMode: 'baked'`. Never a route itself, never in a runtime glob. */
48
100
  const LOADER_FILE = /\.loader\.(ts|mts|cts|js|mjs|cjs|jsx)$/
@@ -91,7 +143,9 @@ function pick(mod: any, file: string): any {
91
143
  }
92
144
 
93
145
  const fns = Object.keys(mod ?? {}).filter(
94
- (k) => typeof mod[k] === 'function' && !['loader', 'beforeLoad', 'head'].includes(k),
146
+ (k) =>
147
+ typeof mod[k] === 'function' &&
148
+ !['loader', 'beforeLoad', 'head', 'ErrorBoundary'].includes(k),
95
149
  )
96
150
 
97
151
  if (fns.length === 1) {
@@ -175,20 +229,18 @@ export function deriveRouteManifest(
175
229
  segs.pop()
176
230
  }
177
231
 
178
- const segments = segs.map((s) => {
179
- const p = PARAM.exec(s)
180
- return p ? ':' + p[1] : s
181
- })
182
-
232
+ const segments = segs.map(normSegment)
183
233
  const name = segments.join('/') || 'index'
184
234
  const meta: RouteMeta = {
185
235
  name,
186
236
  segments,
187
- params: segments.filter((s) => s.startsWith(':')).map((s) => s.slice(1)),
237
+ params: segmentParams(segments),
188
238
  file: key,
189
239
  presentation,
190
240
  }
191
241
 
242
+ warnOnStraySplat(segments, key)
243
+
192
244
  const dataMode = files[key]?.dataMode
193
245
  if (dataMode === 'baked' || dataMode === 'live') {
194
246
  meta.dataMode = dataMode
@@ -211,6 +263,11 @@ export function deriveRouteManifest(
211
263
  meta.beforeLoad = beforeLoad
212
264
  }
213
265
 
266
+ const errorBoundary = files[key]?.ErrorBoundary
267
+ if (typeof errorBoundary === 'function') {
268
+ meta.errorBoundary = errorBoundary
269
+ }
270
+
214
271
  if (
215
272
  files[key]?.head &&
216
273
  (typeof files[key].head === 'object' || typeof files[key].head === 'function')
@@ -254,27 +311,27 @@ export function deriveRouteManifest(
254
311
  return manifest
255
312
  }
256
313
 
257
- /** Match-order comparator: static segments (2) outrank params (1), ties
258
- * break alphabetically so ordering is total and stable across merges. */
314
+ /** Match-order comparator: static (3) outranks a required param (2),
315
+ * which outranks an optional param (1), which outranks a catch-all (0).
316
+ * Ties break alphabetically so ordering is total and stable across
317
+ * merges. */
259
318
  function bySpecificity(a: RouteMeta, b: RouteMeta): number {
319
+ const weight = (s: string) =>
320
+ s.startsWith('*') ? 0 : s.startsWith(':') ? (s.endsWith('?') ? 1 : 2) : 3
321
+
260
322
  return (
261
- b.segments.reduce((n, s) => n + (s.startsWith(':') ? 1 : 2), 0) -
262
- a.segments.reduce((n, s) => n + (s.startsWith(':') ? 1 : 2), 0) ||
323
+ b.segments.reduce((n, s) => n + weight(s), 0) - a.segments.reduce((n, s) => n + weight(s), 0) ||
263
324
  a.name.localeCompare(b.name)
264
325
  )
265
326
  }
266
327
 
267
328
  /** Normalize a programmatic `path` into manifest segments using the
268
329
  * route-dir vocabulary: `'docs/[slug]'` and `'docs/:slug'` are the same
269
- * pattern, a trailing `index` drops, `''`/`'index'` name the root route. */
330
+ * pattern, `':slug?'`/`'[slug?]'`/`'[[slug]]'` mark an optional segment,
331
+ * a terminal `'*'`/`'[...rest]'` is a catch-all, a trailing `index`
332
+ * drops, `''`/`'index'` name the root route. */
270
333
  function specSegments(path: string): string[] {
271
- const segs = path
272
- .split('/')
273
- .filter(Boolean)
274
- .map((s) => {
275
- const p = PARAM.exec(s)
276
- return p ? ':' + p[1] : s
277
- })
334
+ const segs = path.split('/').filter(Boolean).map(normSegment)
278
335
 
279
336
  if (segs[segs.length - 1] === 'index') {
280
337
  segs.pop()
@@ -324,11 +381,13 @@ export function defineRoutes<const Specs extends readonly RouteSpec[]>(
324
381
  const meta: RouteMeta = {
325
382
  name,
326
383
  segments,
327
- params: segments.filter((s) => s.startsWith(':')).map((s) => s.slice(1)),
384
+ params: segmentParams(segments),
328
385
  file: spec.source ?? `programmatic:${spec.path}`,
329
386
  presentation: spec.presentation,
330
387
  }
331
388
 
389
+ warnOnStraySplat(segments, meta.file)
390
+
332
391
  if (spec.dataMode) {
333
392
  meta.dataMode = spec.dataMode
334
393
  }
@@ -348,6 +407,10 @@ export function defineRoutes<const Specs extends readonly RouteSpec[]>(
348
407
  meta.beforeLoad = spec.beforeLoad
349
408
  }
350
409
 
410
+ if (spec.errorBoundary) {
411
+ meta.errorBoundary = spec.errorBoundary
412
+ }
413
+
351
414
  if (spec.head) {
352
415
  meta.head = spec.head
353
416
  }
@@ -455,6 +518,7 @@ export function manifestToJson(manifest: RouteManifest): RouteManifestJson {
455
518
  loader: !!meta.loader,
456
519
  guard: !!meta.beforeLoad,
457
520
  head: !!meta.head,
521
+ errorBoundary: !!meta.errorBoundary,
458
522
  }
459
523
  }),
460
524
  }
@@ -462,55 +526,120 @@ export function manifestToJson(manifest: RouteManifest): RouteManifestJson {
462
526
 
463
527
  /** Match URL path segments against a manifest — returns the winning meta
464
528
  * plus extracted params, or null. First hit wins (routes are pre-sorted
465
- * by specificity). */
529
+ * by specificity). A `:param?` segment matches zero or one segment —
530
+ * the matcher consumes greedily and backtracks to the absent case so a
531
+ * later static can still align; a terminal `*` captures the remaining
532
+ * segments `/`-joined into `params['*']` (a named `*rest` into 'rest'). */
466
533
  export function matchRoute(
467
534
  routes: readonly RouteMeta[],
468
535
  segs: string[],
469
536
  ): { meta: RouteMeta; params: Record<string, unknown> } | null {
470
537
  for (const meta of routes) {
471
- if (meta.segments.length !== segs.length) {
472
- continue
538
+ const params = matchSegments(meta.segments, segs)
539
+ if (params) {
540
+ return { meta, params }
473
541
  }
542
+ }
474
543
 
475
- const params: Record<string, unknown> = {}
476
- let ok = true
477
- for (let i = 0; i < segs.length; i++) {
478
- const p = meta.segments[i]
479
- if (p.startsWith(':')) {
480
- params[p.slice(1)] = decodeRouteParam(decodeURIComponent(segs[i]))
481
- } else if (p !== segs[i]) {
482
- ok = false
483
- break
544
+ return null
545
+ }
546
+
547
+ /** Variable-length pattern match — optional segments try consuming a
548
+ * segment first and fall back to absent, so the more specific reading
549
+ * wins; a backtracking miss deletes the tentative param before the
550
+ * absent retry. */
551
+ function matchSegments(pattern: readonly string[], segs: string[]): Record<string, unknown> | null {
552
+ const params: Record<string, unknown> = {}
553
+
554
+ const walk = (pi: number, si: number): boolean => {
555
+ if (pi === pattern.length) {
556
+ return si === segs.length
557
+ }
558
+
559
+ const p = pattern[pi]
560
+ if (p.startsWith('*')) {
561
+ // Non-terminal '*' (warned about at manifest build) is a literal.
562
+ if (pi !== pattern.length - 1) {
563
+ return p === segs[si] && walk(pi + 1, si + 1)
484
564
  }
565
+
566
+ params[segmentParam(p)!] = segs
567
+ .slice(si)
568
+ .map((s) => decodeURIComponent(s))
569
+ .join('/')
570
+
571
+ return true
485
572
  }
486
573
 
487
- if (ok) {
488
- return { meta, params }
574
+ if (p.startsWith(':') && p.endsWith('?')) {
575
+ const name = p.slice(1, -1)
576
+ if (si < segs.length) {
577
+ params[name] = decodeRouteParam(decodeURIComponent(segs[si]))
578
+ if (walk(pi + 1, si + 1)) {
579
+ return true
580
+ }
581
+
582
+ delete params[name]
583
+ }
584
+
585
+ return walk(pi + 1, si)
586
+ }
587
+
588
+ if (si >= segs.length) {
589
+ return false
590
+ }
591
+
592
+ if (p.startsWith(':')) {
593
+ params[p.slice(1)] = decodeRouteParam(decodeURIComponent(segs[si]))
594
+ return walk(pi + 1, si + 1)
489
595
  }
596
+
597
+ return p === segs[si] && walk(pi + 1, si + 1)
490
598
  }
491
599
 
492
- return null
600
+ return walk(0, 0) ? params : null
493
601
  }
494
602
 
495
603
  /** Serialize a Route to a URL path (no origin): manifest routes substitute
496
- * `:param` segments from params (leftover params → query string);
604
+ * `:param` segments from params (leftover params → query string); a
605
+ * `:param?` segment with no value drops out of the path entirely, and a
606
+ * terminal `*`/`*rest` splices in its `/`-joined param value.
497
607
  * non-manifest names keep the legacy `/<stack>/<name>?params` shape. */
498
608
  export function buildRoutePath(routes: readonly RouteMeta[], r: Route): string {
499
609
  const meta = routes.find((m) => m.name === r.name)
500
610
  let segs: string[]
501
611
  let rest: Record<string, unknown> = r.params
502
612
  if (meta) {
503
- segs = meta.segments.map((s) => {
504
- if (!s.startsWith(':')) {
505
- return s
613
+ segs = meta.segments.flatMap((s, i) => {
614
+ // A mid-path '*' is a literal segment (manifest build warns).
615
+ const p = s.startsWith('*') && i !== meta.segments.length - 1 ? undefined : segmentParam(s)
616
+ if (p === undefined) {
617
+ return [s]
618
+ }
619
+
620
+ const v = r.params[p]
621
+ if (s.startsWith('*')) {
622
+ if (v === undefined || v === null || v === '') {
623
+ return []
624
+ }
625
+
626
+ const enc = encodeRouteParam(v, r.name, p)
627
+ // '/' in a splat value is a segment boundary; a JSON-encoded
628
+ // non-scalar stays one encoded segment instead.
629
+ return enc.startsWith(JSON_PARAM_PREFIX)
630
+ ? [encodeURIComponent(enc)]
631
+ : enc.split('/').map(encodeURIComponent)
632
+ }
633
+
634
+ if (s.endsWith('?') && (v === undefined || v === null || v === '')) {
635
+ return [] // optional segment absent — drop it from the path
506
636
  }
507
637
 
508
- const v = r.params[s.slice(1)]
509
638
  if (v === undefined) {
510
639
  console.warn(`[octane-xplat] route '${r.name}' pushed without path param ${s}`)
511
640
  }
512
641
 
513
- return encodeURIComponent(encodeRouteParam(v, r.name, s.slice(1)))
642
+ return [encodeURIComponent(encodeRouteParam(v, r.name, p))]
514
643
  })
515
644
 
516
645
  rest = Object.fromEntries(Object.entries(r.params).filter(([k]) => !meta.params.includes(k)))
@@ -526,7 +655,7 @@ export function buildRoutePath(routes: readonly RouteMeta[], r: Route): string {
526
655
  .join('&')
527
656
 
528
657
  const path = (r.stack === 'root' ? '' : '/' + r.stack) + '/' + segs.join('/')
529
- return (path.replace(/\/+$/, '') || '/') + (q ? '?' + q : '')
658
+ return (path.replace(/\/+$/, '') || '/') + (q ? '?' + q : '') + (r.hash ? '#' + r.hash : '')
530
659
  }
531
660
 
532
661
  const JSON_PARAM_PREFIX = 'json:'
@@ -611,13 +740,20 @@ export function linkPath(url: string): string {
611
740
  /** Match a URL path+query against the manifest into a Route — the shared
612
741
  * half of web's URL parse and native's deep-link handling. Whole-path
613
742
  * match wins ('/demo/x' → root 'demo/:id'); a non-matching first segment
614
- * is the stack prefix ('/demos/demo/x' → stack 'demos'). Unmatched names
615
- * fall through as literal routes for pre-manifest callers. */
743
+ * is the stack prefix ('/demos/demo/x' → stack 'demos'). Whole-path
744
+ * includes catch-alls: a root `*` claims every URL, including
745
+ * stack-prefixed ones — apps needing named-stack links scope their
746
+ * splats under a prefix. Unmatched names fall through as literal
747
+ * routes for pre-manifest callers. */
616
748
  export function matchUrl(routes: readonly RouteMeta[], url: string): Route | null {
617
- // Fragments aren't route params. Split only the first query delimiter;
618
- // a later '?' belongs to its value. Reject malformed percent encoding at
619
- // this external-input boundary instead of crashing the mounted app.
620
- url = url.split('#', 1)[0]
749
+ // The fragment isn't a route param — it rides the Route's `hash` field so
750
+ // web can restore scroll to the element it names. Split only the first
751
+ // query delimiter; a later '?' belongs to its value. Reject malformed
752
+ // percent encoding at this external-input boundary instead of crashing
753
+ // the mounted app.
754
+ const hashAt = url.indexOf('#')
755
+ const hash = hashAt === -1 ? undefined : url.slice(hashAt + 1)
756
+ url = hashAt === -1 ? url : url.slice(0, hashAt)
621
757
  const at = url.indexOf('?')
622
758
  const p = at === -1 ? url : url.slice(0, at)
623
759
  const qs = at === -1 ? undefined : url.slice(at + 1)
@@ -652,6 +788,7 @@ export function matchUrl(routes: readonly RouteMeta[], url: string): Route | nul
652
788
  name: m ? m.meta.name : fallbackName,
653
789
  params: { ...query, ...m?.params },
654
790
  presentation: m?.meta.presentation,
791
+ hash,
655
792
  })
656
793
 
657
794
  const root = matchRoute(routes, segs)
@@ -671,10 +808,12 @@ export function matchUrl(routes: readonly RouteMeta[], url: string): Route | nul
671
808
  return finish('root', null, segs[0])
672
809
  }
673
810
 
674
- /** Fire a route's `loader` export — prefetch, not a data layer: the
675
- * screen's own `query$` reads still own the data, this just warms the
676
- * cache before mount. Sync throws and async rejections warn rather
677
- * than break navigation. */
811
+ /** Fire a route's `loader` without committing navigation — the opt-in
812
+ * prefetch primitive, for warming a `query$` cache ahead of a push an
813
+ * app expects to make. This is NOT the navigation loader path: a push
814
+ * awaits the loader itself (`commitRoute`) and hands its result to the
815
+ * screen as `data`/`error`; the value fired here is discarded. Sync
816
+ * throws and async rejections warn rather than break navigation. */
678
817
  export function runLoader(routes: readonly RouteMeta[], r: Route): void {
679
818
  const loader = routes.find((m) => m.name === r.name)?.loader
680
819
  if (!loader) {
@@ -65,6 +65,12 @@ export function layoutsFor(name: string): any[] {
65
65
  return layoutChain(routeLayouts, name)
66
66
  }
67
67
 
68
+ /** The route's declared `ErrorBoundary` export, if any — outlets wrap the
69
+ * resolved screen in `RouteBoundary` with it. */
70
+ export function errorBoundaryFor(name: string): any {
71
+ return metaFor(name)?.errorBoundary
72
+ }
73
+
68
74
  function routeAt(stack: string): Route | null {
69
75
  const entries = stacks.get(stack)
70
76
  return entries?.[entries.length - 1] ?? null
@@ -242,3 +248,5 @@ export function addBackInterceptor(_handler: () => boolean): () => void {
242
248
  export function useRouteHead(_route: Route | null): RouteHead | undefined {
243
249
  return undefined
244
250
  }
251
+
252
+ export { layoutsFor as layoutsForRoute }
package/src/route.ts CHANGED
@@ -31,8 +31,8 @@ import {
31
31
  RouteRedirect,
32
32
  } from './route-table'
33
33
 
34
- import { RouteHost } from './route-host.mobile'
35
- import { modalPresenter } from './modal-presenter.mobile'
34
+ import { RouteHost } from './route-host'
35
+ import { modalPresenter } from './modal-presenter'
36
36
  import type { Route, RouteManifest, RouteMeta, ScreenTable } from './props'
37
37
 
38
38
  export type { Route } from './props'
@@ -97,6 +97,12 @@ export function screenFor(name: string): ScreenTable[string] | undefined {
97
97
  return screens[name]
98
98
  }
99
99
 
100
+ /** The route's declared `ErrorBoundary` export, if any — outlets wrap the
101
+ * resolved screen in `RouteBoundary` with it. */
102
+ export function errorBoundaryFor(name: string): any {
103
+ return metaFor(name)?.errorBoundary
104
+ }
105
+
100
106
  /** Wrap a screen in its directory `_layout` chain (outermost →
101
107
  * innermost) as a single root component — pushed Pages and modal roots
102
108
  * render this, matching web's outlet wrapping. */
@@ -486,6 +492,8 @@ function commitRoute(r: Route, request: NavigationRequest): void {
486
492
  screen: C,
487
493
  layouts: layoutsForRoute(r.name),
488
494
  params: props,
495
+ boundary: errorBoundaryFor(r.name),
496
+ route: r,
489
497
  })
490
498
 
491
499
  return page
@@ -549,6 +557,8 @@ function pushModal(frame: Frame, r: Route, C: any): void {
549
557
  screen: C,
550
558
  layouts: layoutsForRoute(r.name),
551
559
  params,
560
+ boundary: errorBoundaryFor(r.name),
561
+ route: r,
552
562
  })
553
563
 
554
564
  presenter.showModal(host, {
package/src/route.web.ts CHANGED
@@ -88,6 +88,12 @@ export function screenFor(name: string): ScreenTable[string] | undefined {
88
88
  return screens[name]
89
89
  }
90
90
 
91
+ /** The route's declared `ErrorBoundary` export, if any — outlets wrap the
92
+ * resolved screen in `RouteBoundary` with it. */
93
+ export function errorBoundaryFor(name: string): any {
94
+ return metaFor(name)?.errorBoundary
95
+ }
96
+
91
97
  /** Directory layouts wrapping a route, outermost → innermost — outlets
92
98
  * wrap their resolved element with these (`_layout.tsrx` files). */
93
99
  export function layoutsFor(name: string): any[] {
@@ -129,6 +135,11 @@ function restoreRouteState(): void {
129
135
  if (route) {
130
136
  hydrateRoute(route)
131
137
  }
138
+
139
+ // A parsed (never-committed) entry has no prepared scroll state —
140
+ // a boot hash lands here once the screen mounts.
141
+ scrollTick += 1
142
+ settleScroll(true)
132
143
  }
133
144
  }
134
145
 
@@ -145,8 +156,11 @@ function hydrateRoute(route: Route): void {
145
156
  return
146
157
  }
147
158
 
159
+ // The screen is already mounted — mark the in-flight load so it can
160
+ // render `pending` until `data`/`error` arrive.
161
+ route.loaderPending = true
148
162
  const finish = (result: Pick<Route, 'loaderData' | 'loaderError'>) => {
149
- const prepared = { ...route, ...result }
163
+ const prepared = { ...route, ...result, loaderPending: false }
150
164
  let changed = false
151
165
  if (current === route) {
152
166
  current = prepared
@@ -183,23 +197,91 @@ function hydrateRoute(route: Route): void {
183
197
 
184
198
  const ROUTE_HEAD_ATTR = 'data-octane-xplat-route-head'
185
199
 
186
- // Scroll positions keyed by URL — restored on popstate (native keeps
187
- // stack pages alive, so only the web leaf needs this). `lastKey` is the
188
- // outgoing URL: popstate fires after location already changed, so the
189
- // saved position must be written under the URL we just left.
200
+ // Scroll restoration — the web half of the scroll contract (native keeps
201
+ // stack pages alive, so only this leaf needs it). Positions are keyed by
202
+ // the history-entry id we stamp into history.state — two entries sharing
203
+ // a URL keep independent positions — with the URL (path+query+hash) as
204
+ // the fallback key for entries that predate registration.
205
+ //
206
+ // push → top of document, or the element the route's `hash` names
207
+ // pop/forward → the position saved for that entry (then hash, then top)
208
+ // modal push → overlay — the underlying position is left untouched
209
+ //
210
+ // `lastKey` tracks the outgoing entry: popstate fires after location
211
+ // already changed, so the position must be written under the entry we
212
+ // just left.
213
+ if (typeof history !== 'undefined' && 'scrollRestoration' in history) {
214
+ // The browser's own scroll restoration would race ours on traversal
215
+ // and reload — the contract above owns scroll instead.
216
+ history.scrollRestoration = 'manual'
217
+ }
218
+
190
219
  const scrollPositions = new Map<string, number>()
191
- let lastKey = location.pathname + location.search
192
- const scrollKey = () => location.pathname + location.search
220
+ const scrollKey = () =>
221
+ (history.state?.__octaneXplatEntry as string | undefined) ??
222
+ location.pathname + location.search + location.hash
223
+
224
+ let lastKey = scrollKey()
193
225
  const saveScroll = () => scrollPositions.set(lastKey, window.scrollY)
194
- const restoreScroll = () => {
195
- const y = scrollPositions.get(scrollKey())
196
- if (y !== undefined) {
197
- requestAnimationFrame(() => window.scrollTo(0, y))
226
+
227
+ function scrollToHash(hash: string): boolean {
228
+ const id = hash.slice(1)
229
+ if (!id) {
230
+ return false
198
231
  }
232
+
233
+ let decoded = id
234
+ try {
235
+ decoded = decodeURIComponent(id)
236
+ } catch {
237
+ // keep the raw fragment — malformed input just misses the lookup
238
+ }
239
+
240
+ const target = document.getElementById(decoded)
241
+ if (!target) {
242
+ return false
243
+ }
244
+
245
+ target.scrollIntoView()
246
+ return true
247
+ }
248
+
249
+ // Settles carry the navigation they're for: `scrollTick` advances on every
250
+ // commit/traversal, and a queued settle drops itself when a newer navigation
251
+ // superseded it — otherwise a settle scheduled just before a push could fire
252
+ // on the new entry and fight the push's own scroll. Key and hash are
253
+ // captured at schedule time for the same reason — popstate has already
254
+ // moved `location` when the handler runs, but a queued settle can outlive
255
+ // one more commit.
256
+ let scrollTick = 0
257
+
258
+ // Defer to rAF so the newly resolved screen has mounted before we measure
259
+ // or scroll it — a still-mounting hash target simply misses to top.
260
+ function settleScroll(restore: boolean): void {
261
+ const tick = scrollTick
262
+ const key = scrollKey()
263
+ const hash = location.hash
264
+ requestAnimationFrame(() => {
265
+ if (tick !== scrollTick) {
266
+ return
267
+ }
268
+
269
+ if (restore) {
270
+ const y = scrollPositions.get(key)
271
+ if (y !== undefined) {
272
+ window.scrollTo(0, y)
273
+ return
274
+ }
275
+ }
276
+
277
+ if (!scrollToHash(hash)) {
278
+ window.scrollTo(0, 0)
279
+ }
280
+ })
199
281
  }
200
282
 
201
283
  function parse(): Route | null {
202
- return matchUrl(routes, location.pathname + location.search)
284
+ return matchUrl(routes, location.pathname + location.search + location.hash)
203
285
  }
204
286
 
205
287
  function read(): Route | null {
@@ -328,9 +410,10 @@ function commitRoute(r: Route, request: NavigationRequest): void {
328
410
  return
329
411
  }
330
412
 
331
- saveScroll()
332
413
  read()
333
- // Include the entry we are leaving, even if it was the initial URL.
414
+ // Include the entry we are leaving, even if it was the initial URL —
415
+ // the replace also mints its entry id, so its scroll position saves
416
+ // under the same key a later popstate will look up.
334
417
  history.replaceState(
335
418
  {
336
419
  ...history.state,
@@ -340,6 +423,9 @@ function commitRoute(r: Route, request: NavigationRequest): void {
340
423
  '',
341
424
  )
342
425
 
426
+ lastKey = scrollKey()
427
+ saveScroll()
428
+
343
429
  historyDepth += 1
344
430
  if (route.presentation === 'modal') {
345
431
  modalRoute = route
@@ -358,6 +444,14 @@ function commitRoute(r: Route, request: NavigationRequest): void {
358
444
 
359
445
  applyHead(modalRoute ?? current ?? null)
360
446
  emit()
447
+ // A push starts at the top — or the hash target — of the new document.
448
+ // A modal overlays the current entry instead, so it leaves the
449
+ // underlying position untouched. The tick still advances so a stale
450
+ // settle doesn't fire on the modal entry.
451
+ scrollTick += 1
452
+ if (route.presentation !== 'modal') {
453
+ settleScroll(false)
454
+ }
361
455
  }
362
456
 
363
457
  function presentationFor(name: string): Route['presentation'] {
@@ -389,16 +483,27 @@ export function addBackInterceptor(_fn: () => boolean): () => void {
389
483
  return () => {}
390
484
  }
391
485
 
392
- window.addEventListener('popstate', () => {
486
+ // Singletoned like the native back-press wiring: under vite HMR this
487
+ // module's state resets but its popstate listener must not duplicate —
488
+ // the handler delegates through a slot so a reloaded module graph swaps
489
+ // in fresh closures instead of double-settling.
490
+ const host = window as any
491
+ host.__octaneXplatPopstate = () => {
393
492
  navigationRequests.invalidate('history')
394
493
  saveScroll()
395
494
  historyDepth = history.state?.__octaneXplatDepth ?? 0
396
495
  lastKey = scrollKey()
397
496
  restoreRouteState()
398
497
  applyHead(modalRoute ?? current ?? null)
399
- restoreScroll()
498
+ scrollTick += 1
499
+ settleScroll(true)
400
500
  emit()
401
- })
501
+ }
502
+
503
+ if (!host.__octaneXplatRouteWired) {
504
+ host.__octaneXplatRouteWired = true
505
+ window.addEventListener('popstate', () => host.__octaneXplatPopstate?.())
506
+ }
402
507
 
403
508
  /** Current route if it targets `stack`, else null. */
404
509
  export function routeFor(stack: string): Route | null {
@@ -0,0 +1,14 @@
1
+ import { describe, expect, it } from 'vitest'
2
+ import { sanitizeUrl } from './safe-url'
3
+
4
+ describe('sanitizeUrl', () => {
5
+ it('blocks script and HTML data schemes, including control-character obfuscation', () => {
6
+ expect(sanitizeUrl('javascript:alert(1)')).toBeNull()
7
+ expect(sanitizeUrl('java\nscript:alert(1)')).toBeNull()
8
+ expect(sanitizeUrl('data:text/html,<script>')).toBeNull()
9
+ })
10
+
11
+ it('keeps ordinary web URLs unchanged', () => {
12
+ expect(sanitizeUrl('https://example.com/path?q=1')).toBe('https://example.com/path?q=1')
13
+ })
14
+ })