@omerdlw/base-framework 3.3.0 → 3.4.1

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 (805) hide show
  1. package/README.md +56 -72
  2. package/dist/ambient/index.js +10 -10
  3. package/dist/ambient/server/index.js +3 -3
  4. package/dist/ambient/server/index.js.map +1 -1
  5. package/dist/ambient/worker/index.js +7 -4
  6. package/dist/ambient/worker/index.js.map +1 -1
  7. package/dist/background/index.js +9 -9
  8. package/dist/chunk-2E6OASVV.js +17 -0
  9. package/dist/{chunk-K3LXE6D5.js.map → chunk-2E6OASVV.js.map} +1 -1
  10. package/dist/{chunk-ESD5EQ5H.js → chunk-3JLG24KI.js} +11 -22
  11. package/dist/chunk-3JLG24KI.js.map +1 -0
  12. package/dist/{chunk-CRKJAACG.js → chunk-4QQ3QVY7.js} +10 -10
  13. package/dist/{chunk-CRKJAACG.js.map → chunk-4QQ3QVY7.js.map} +1 -1
  14. package/dist/{chunk-7VU2OAJB.js → chunk-6LWCTP2Y.js} +21 -37
  15. package/dist/chunk-6LWCTP2Y.js.map +1 -0
  16. package/dist/{chunk-YZS2B6YE.js → chunk-7A47AXKI.js} +9 -11
  17. package/dist/chunk-7A47AXKI.js.map +1 -0
  18. package/dist/{chunk-LKYW4LH6.js → chunk-BLWJZHRL.js} +36 -43
  19. package/dist/chunk-BLWJZHRL.js.map +1 -0
  20. package/dist/{chunk-ZXRE2KZO.js → chunk-C3SEBNF5.js} +11 -15
  21. package/dist/chunk-C3SEBNF5.js.map +1 -0
  22. package/dist/{chunk-KOYTJW5E.js → chunk-DC4XZPDK.js} +7 -7
  23. package/dist/chunk-DC4XZPDK.js.map +1 -0
  24. package/dist/{chunk-HFR6YROB.js → chunk-DGVRHX3C.js} +1160 -1171
  25. package/dist/chunk-DGVRHX3C.js.map +1 -0
  26. package/dist/{chunk-VNSMNGWP.js → chunk-DMQKXBWO.js} +5 -5
  27. package/dist/{chunk-VNSMNGWP.js.map → chunk-DMQKXBWO.js.map} +1 -1
  28. package/dist/{chunk-67MOKJFZ.js → chunk-E2QQJZYY.js} +16 -16
  29. package/dist/chunk-E2QQJZYY.js.map +1 -0
  30. package/dist/{chunk-WZ5T2NXH.js → chunk-EBNZXYLT.js} +17 -15
  31. package/dist/chunk-EBNZXYLT.js.map +1 -0
  32. package/dist/{chunk-IH3STE7W.js → chunk-ED32WLAD.js} +1168 -1215
  33. package/dist/chunk-ED32WLAD.js.map +1 -0
  34. package/dist/{chunk-RGC2VFQO.js → chunk-FLYL76ZT.js} +6 -6
  35. package/dist/{chunk-RGC2VFQO.js.map → chunk-FLYL76ZT.js.map} +1 -1
  36. package/dist/{chunk-UQLTP3XB.js → chunk-GTJMM32W.js} +144 -144
  37. package/dist/chunk-GTJMM32W.js.map +1 -0
  38. package/dist/{chunk-NCXFWCXP.js → chunk-HPJWMBUS.js} +12054 -11915
  39. package/dist/chunk-HPJWMBUS.js.map +1 -0
  40. package/dist/{chunk-TAWTGCWJ.js → chunk-ICFPSAJZ.js} +7 -8
  41. package/dist/chunk-ICFPSAJZ.js.map +1 -0
  42. package/dist/{chunk-WQTMOUCA.js → chunk-JWUKAZ3A.js} +45 -67
  43. package/dist/chunk-JWUKAZ3A.js.map +1 -0
  44. package/dist/{chunk-QRXDXAQI.js → chunk-KN4KOTC7.js} +161 -165
  45. package/dist/chunk-KN4KOTC7.js.map +1 -0
  46. package/dist/{chunk-UE2KBW3D.js → chunk-KRHH3UQ6.js} +34 -37
  47. package/dist/chunk-KRHH3UQ6.js.map +1 -0
  48. package/dist/{chunk-R4K6VAOK.js → chunk-M36DFIJ6.js} +11 -18
  49. package/dist/chunk-M36DFIJ6.js.map +1 -0
  50. package/dist/{chunk-UDJ7ARCH.js → chunk-S2ZOLTTS.js} +3 -3
  51. package/dist/{chunk-UDJ7ARCH.js.map → chunk-S2ZOLTTS.js.map} +1 -1
  52. package/dist/{chunk-D222OCTV.js → chunk-S67HGKJ2.js} +49 -55
  53. package/dist/chunk-S67HGKJ2.js.map +1 -0
  54. package/dist/chunk-ST7QOM4O.js +29 -0
  55. package/dist/chunk-ST7QOM4O.js.map +1 -0
  56. package/dist/{chunk-RDYYP36I.js → chunk-TMKA5ZHO.js} +7 -6
  57. package/dist/chunk-TMKA5ZHO.js.map +1 -0
  58. package/dist/{chunk-XGAYTDSI.js → chunk-UWX7GCNX.js} +23 -26
  59. package/dist/chunk-UWX7GCNX.js.map +1 -0
  60. package/dist/{chunk-6IP6YFQX.js → chunk-VMR7ZKIF.js} +21 -31
  61. package/dist/chunk-VMR7ZKIF.js.map +1 -0
  62. package/dist/{chunk-BMFHS3GV.js → chunk-YHWA7FXX.js} +22 -12
  63. package/dist/chunk-YHWA7FXX.js.map +1 -0
  64. package/dist/{chunk-GKAJ4EM2.js → chunk-ZQI4ZCVU.js} +83 -83
  65. package/dist/chunk-ZQI4ZCVU.js.map +1 -0
  66. package/dist/context-menu/index.js +16 -15
  67. package/dist/controls/index.js +7 -6
  68. package/dist/core/error/boundary.d.ts.map +1 -1
  69. package/dist/core/error/constants.d.ts +9 -0
  70. package/dist/core/error/constants.d.ts.map +1 -1
  71. package/dist/core/error/index.d.ts +2 -3
  72. package/dist/core/error/index.d.ts.map +1 -1
  73. package/dist/core/error/listener.d.ts.map +1 -1
  74. package/dist/core/error/reporter.d.ts +7 -6
  75. package/dist/core/error/reporter.d.ts.map +1 -1
  76. package/dist/core/error/utils.d.ts.map +1 -1
  77. package/dist/core/kernel/constants.d.ts +1 -1
  78. package/dist/core/kernel/constants.d.ts.map +1 -1
  79. package/dist/core/kernel/{compose.d.ts → host/compose.d.ts} +0 -4
  80. package/dist/core/kernel/host/compose.d.ts.map +1 -0
  81. package/dist/core/kernel/{installed.d.ts → host/installed.d.ts} +1 -1
  82. package/dist/core/kernel/host/installed.d.ts.map +1 -0
  83. package/dist/core/kernel/{module.d.ts → host/module.d.ts} +2 -5
  84. package/dist/core/kernel/host/module.d.ts.map +1 -0
  85. package/dist/core/kernel/{adapters.d.ts → host/registration.d.ts} +2 -2
  86. package/dist/core/kernel/host/registration.d.ts.map +1 -0
  87. package/dist/core/kernel/index.d.ts +12 -12
  88. package/dist/core/kernel/index.d.ts.map +1 -1
  89. package/dist/core/kernel/{page-controller.d.ts → page.d.ts} +2 -2
  90. package/dist/core/kernel/page.d.ts.map +1 -0
  91. package/dist/core/kernel/{handlers.d.ts → registry/apply.d.ts} +2 -2
  92. package/dist/core/kernel/registry/apply.d.ts.map +1 -0
  93. package/dist/core/kernel/{hooks.d.ts → registry/hooks.d.ts} +1 -1
  94. package/dist/core/kernel/registry/hooks.d.ts.map +1 -0
  95. package/dist/core/kernel/{operations.d.ts → registry/operations.d.ts} +2 -2
  96. package/dist/core/kernel/registry/operations.d.ts.map +1 -0
  97. package/dist/core/kernel/{provider.d.ts → registry/provider.d.ts} +2 -2
  98. package/dist/core/kernel/registry/provider.d.ts.map +1 -0
  99. package/dist/core/kernel/{operations-records.d.ts → registry/records.d.ts} +2 -2
  100. package/dist/core/kernel/registry/records.d.ts.map +1 -0
  101. package/dist/core/kernel/registry/registration.d.ts +13 -0
  102. package/dist/core/kernel/registry/registration.d.ts.map +1 -0
  103. package/dist/core/kernel/{schema.d.ts → registry/schema.d.ts} +1 -1
  104. package/dist/core/kernel/registry/schema.d.ts.map +1 -0
  105. package/dist/core/kernel/{store-snapshots.d.ts → registry/snapshots.d.ts} +3 -3
  106. package/dist/core/kernel/registry/snapshots.d.ts.map +1 -0
  107. package/dist/core/kernel/{stabilize.d.ts → registry/stabilize.d.ts} +1 -1
  108. package/dist/core/kernel/registry/stabilize.d.ts.map +1 -0
  109. package/dist/core/kernel/{store.d.ts → registry/store.d.ts} +2 -2
  110. package/dist/core/kernel/registry/store.d.ts.map +1 -0
  111. package/dist/core/kernel/{store-subscriptions.d.ts → registry/subscriptions.d.ts} +2 -6
  112. package/dist/core/kernel/registry/subscriptions.d.ts.map +1 -0
  113. package/dist/core/kernel/{runtime.d.ts → registry/transaction.d.ts} +2 -2
  114. package/dist/core/kernel/registry/transaction.d.ts.map +1 -0
  115. package/dist/core/kernel/{types-modules.d.ts → types/modules.d.ts} +4 -4
  116. package/dist/core/kernel/types/modules.d.ts.map +1 -0
  117. package/dist/core/kernel/{types-page.d.ts → types/page.d.ts} +3 -3
  118. package/dist/core/kernel/types/page.d.ts.map +1 -0
  119. package/dist/core/kernel/{types.d.ts → types/registry.d.ts} +4 -4
  120. package/dist/core/kernel/types/registry.d.ts.map +1 -0
  121. package/dist/core/kernel/{types-store.d.ts → types/store.d.ts} +3 -3
  122. package/dist/core/kernel/types/store.d.ts.map +1 -0
  123. package/dist/core/kernel/utils.d.ts +1 -1
  124. package/dist/core/kernel/utils.d.ts.map +1 -1
  125. package/dist/core/navigation/{navigator-holds.d.ts → holds.d.ts} +2 -1
  126. package/dist/core/navigation/holds.d.ts.map +1 -0
  127. package/dist/core/navigation/navigator.d.ts.map +1 -1
  128. package/dist/core/navigation/{navigator-patience.d.ts → patience.d.ts} +1 -1
  129. package/dist/core/navigation/patience.d.ts.map +1 -0
  130. package/dist/core/navigation/{navigator-payload.d.ts → payload.d.ts} +2 -1
  131. package/dist/core/navigation/payload.d.ts.map +1 -0
  132. package/dist/core/navigation/{navigator-prefetch.d.ts → prefetch.d.ts} +2 -1
  133. package/dist/core/navigation/prefetch.d.ts.map +1 -0
  134. package/dist/core/navigation/settings.d.ts.map +1 -1
  135. package/dist/core/navigation/state.d.ts.map +1 -1
  136. package/dist/core/navigation/utils.d.ts +3 -0
  137. package/dist/core/navigation/utils.d.ts.map +1 -1
  138. package/dist/core/provider/index.d.ts +1 -1
  139. package/dist/core/provider/index.d.ts.map +1 -1
  140. package/dist/dock/index.js +15 -14
  141. package/dist/error/index.js +7 -7
  142. package/dist/events/index.js +24 -20
  143. package/dist/events/index.js.map +1 -1
  144. package/dist/foundation/events/index.d.ts.map +1 -1
  145. package/dist/foundation/recipes/recipe.d.ts.map +1 -1
  146. package/dist/foundation/result/index.d.ts.map +1 -1
  147. package/dist/foundation/utils/collections.d.ts +11 -0
  148. package/dist/foundation/utils/collections.d.ts.map +1 -0
  149. package/dist/foundation/utils/dom.d.ts.map +1 -1
  150. package/dist/foundation/utils/report.d.ts.map +1 -1
  151. package/dist/foundation/utils/scheduler.d.ts.map +1 -1
  152. package/dist/foundation/utils/store.d.ts.map +1 -1
  153. package/dist/foundation/utils/string.d.ts.map +1 -1
  154. package/dist/foundation/utils/tempo.d.ts.map +1 -1
  155. package/dist/foundation/utils/timing.d.ts.map +1 -1
  156. package/dist/foundation/utils/user-message.d.ts.map +1 -1
  157. package/dist/hooks/index.js +3 -3
  158. package/dist/index.js +25 -24
  159. package/dist/kernel/index.js +4 -4
  160. package/dist/loading/index.js +8 -8
  161. package/dist/media/index.js +5 -5
  162. package/dist/modal/index.js +155 -166
  163. package/dist/modal/index.js.map +1 -1
  164. package/dist/modules/ambient/{analyze.d.ts → analysis/analyze.d.ts} +3 -3
  165. package/dist/modules/ambient/analysis/analyze.d.ts.map +1 -0
  166. package/dist/modules/ambient/{analyze-bounds.d.ts → analysis/bounds.d.ts} +2 -2
  167. package/dist/modules/ambient/analysis/bounds.d.ts.map +1 -0
  168. package/dist/modules/ambient/{analyze-clusters.d.ts → analysis/clusters.d.ts} +3 -3
  169. package/dist/modules/ambient/analysis/clusters.d.ts.map +1 -0
  170. package/dist/modules/ambient/{analyze-ground.d.ts → analysis/ground.d.ts} +3 -3
  171. package/dist/modules/ambient/analysis/ground.d.ts.map +1 -0
  172. package/dist/modules/ambient/{analyze-measures.d.ts → analysis/measures.d.ts} +2 -2
  173. package/dist/modules/ambient/analysis/measures.d.ts.map +1 -0
  174. package/dist/modules/ambient/{oklab.d.ts → analysis/oklab.d.ts} +1 -3
  175. package/dist/modules/ambient/analysis/oklab.d.ts.map +1 -0
  176. package/dist/modules/ambient/analysis/quantize.d.ts.map +1 -0
  177. package/dist/modules/ambient/{analyze-swatches.d.ts → analysis/swatches.d.ts} +3 -3
  178. package/dist/modules/ambient/analysis/swatches.d.ts.map +1 -0
  179. package/dist/modules/ambient/hooks.d.ts +0 -1
  180. package/dist/modules/ambient/hooks.d.ts.map +1 -1
  181. package/dist/modules/ambient/index.d.ts +2 -2
  182. package/dist/modules/ambient/index.d.ts.map +1 -1
  183. package/dist/modules/ambient/module.d.ts +0 -3
  184. package/dist/modules/ambient/module.d.ts.map +1 -1
  185. package/dist/modules/ambient/pipeline.d.ts +6 -5
  186. package/dist/modules/ambient/pipeline.d.ts.map +1 -1
  187. package/dist/modules/ambient/server/index.d.ts +2 -2
  188. package/dist/modules/ambient/server/index.d.ts.map +1 -1
  189. package/dist/modules/ambient/settings.d.ts +0 -2
  190. package/dist/modules/ambient/settings.d.ts.map +1 -1
  191. package/dist/modules/ambient/worker/index.d.ts.map +1 -1
  192. package/dist/modules/background/constants.d.ts +3 -1
  193. package/dist/modules/background/constants.d.ts.map +1 -1
  194. package/dist/modules/background/context.d.ts +1 -1
  195. package/dist/modules/background/context.d.ts.map +1 -1
  196. package/dist/modules/background/hooks.d.ts +929 -0
  197. package/dist/modules/background/hooks.d.ts.map +1 -1
  198. package/dist/modules/background/index.d.ts +6 -6
  199. package/dist/modules/background/index.d.ts.map +1 -1
  200. package/dist/modules/background/module.d.ts +1 -1
  201. package/dist/modules/background/module.d.ts.map +1 -1
  202. package/dist/modules/background/{hooks/use-native-video-model.d.ts → native-video.d.ts} +4 -8
  203. package/dist/modules/background/native-video.d.ts.map +1 -0
  204. package/dist/modules/background/overlay.d.ts.map +1 -0
  205. package/dist/modules/background/playback.d.ts.map +1 -0
  206. package/dist/modules/background/{model/state.d.ts → state.d.ts} +11 -1
  207. package/dist/modules/background/state.d.ts.map +1 -0
  208. package/dist/modules/background/{model/visual.d.ts → visual.d.ts} +43 -6
  209. package/dist/modules/background/visual.d.ts.map +1 -0
  210. package/dist/modules/background/youtube/audio.d.ts.map +1 -0
  211. package/dist/modules/background/youtube/iframe.d.ts +92 -0
  212. package/dist/modules/background/youtube/iframe.d.ts.map +1 -0
  213. package/dist/modules/background/youtube/{lib/parse.d.ts → parse.d.ts} +1 -1
  214. package/dist/modules/background/youtube/parse.d.ts.map +1 -0
  215. package/dist/modules/background/youtube/{components/player.d.ts → player.d.ts} +1 -1
  216. package/dist/modules/background/youtube/player.d.ts.map +1 -0
  217. package/dist/modules/background/youtube/{lib/timing.d.ts → timing.d.ts} +0 -2
  218. package/dist/modules/background/youtube/timing.d.ts.map +1 -0
  219. package/dist/modules/background/youtube/use-iframe-player.d.ts +37 -0
  220. package/dist/modules/background/youtube/use-iframe-player.d.ts.map +1 -0
  221. package/dist/modules/background/youtube/{hooks/use-youtube-background-player-model.d.ts → use-player.d.ts} +2 -2
  222. package/dist/modules/background/youtube/use-player.d.ts.map +1 -0
  223. package/dist/modules/background/youtube/{hooks/use-youtube-video-sync.d.ts → use-video-sync.d.ts} +8 -4
  224. package/dist/modules/background/youtube/use-video-sync.d.ts.map +1 -0
  225. package/dist/modules/background/youtube/{lib/video-events.d.ts → video-events.d.ts} +8 -8
  226. package/dist/modules/background/youtube/video-events.d.ts.map +1 -0
  227. package/dist/modules/context-menu/dom.d.ts.map +1 -1
  228. package/dist/modules/context-menu/items.d.ts.map +1 -1
  229. package/dist/modules/context-menu/overlay.d.ts +3 -10
  230. package/dist/modules/context-menu/overlay.d.ts.map +1 -1
  231. package/dist/modules/context-menu/resolver.d.ts.map +1 -1
  232. package/dist/modules/controls/overlay.d.ts +0 -10
  233. package/dist/modules/controls/overlay.d.ts.map +1 -1
  234. package/dist/modules/dock/{lib → card}/banner.d.ts +3 -16
  235. package/dist/modules/dock/card/banner.d.ts.map +1 -0
  236. package/dist/modules/dock/{components/card-item.d.ts → card/card.d.ts} +5 -2
  237. package/dist/modules/dock/card/card.d.ts.map +1 -0
  238. package/dist/modules/dock/card/compact.d.ts +9 -0
  239. package/dist/modules/dock/card/compact.d.ts.map +1 -0
  240. package/dist/modules/dock/{components/item-content.d.ts → card/content.d.ts} +1 -1
  241. package/dist/modules/dock/card/content.d.ts.map +1 -0
  242. package/dist/modules/dock/card/header.d.ts +8 -0
  243. package/dist/modules/dock/card/header.d.ts.map +1 -0
  244. package/dist/modules/dock/{components → card}/icon.d.ts +1 -1
  245. package/dist/modules/dock/card/icon.d.ts.map +1 -0
  246. package/dist/modules/dock/{lib/card-item.d.ts → card/model.d.ts} +27 -2
  247. package/dist/modules/dock/card/model.d.ts.map +1 -0
  248. package/dist/modules/dock/{hooks/use-card-item-model.d.ts → card/use-card.d.ts} +6 -5
  249. package/dist/modules/dock/{hooks/use-card-item-model.d.ts.map → card/use-card.d.ts.map} +1 -1
  250. package/dist/modules/dock/commands/command-bar.d.ts.map +1 -0
  251. package/dist/modules/dock/{runtime/commands.d.ts → commands/registry.d.ts} +1 -1
  252. package/dist/modules/dock/commands/registry.d.ts.map +1 -0
  253. package/dist/modules/dock/constants.d.ts +4 -7
  254. package/dist/modules/dock/constants.d.ts.map +1 -1
  255. package/dist/modules/dock/context.d.ts +1 -1
  256. package/dist/modules/dock/context.d.ts.map +1 -1
  257. package/dist/modules/dock/hooks.d.ts +47 -0
  258. package/dist/modules/dock/hooks.d.ts.map +1 -0
  259. package/dist/modules/dock/{hud.d.ts → hud/hud.d.ts} +14 -7
  260. package/dist/modules/dock/hud/hud.d.ts.map +1 -0
  261. package/dist/modules/dock/{model/hud-definition.d.ts → hud/model.d.ts} +7 -1
  262. package/dist/modules/dock/hud/model.d.ts.map +1 -0
  263. package/dist/modules/dock/{components/hud-view.d.ts → hud/view.d.ts} +1 -1
  264. package/dist/modules/dock/hud/view.d.ts.map +1 -0
  265. package/dist/modules/dock/index.d.ts +22 -22
  266. package/dist/modules/dock/index.d.ts.map +1 -1
  267. package/dist/modules/dock/items/attention.d.ts +43 -0
  268. package/dist/modules/dock/items/attention.d.ts.map +1 -0
  269. package/dist/modules/dock/{runtime/model/items.d.ts → items/build.d.ts} +2 -2
  270. package/dist/modules/dock/items/build.d.ts.map +1 -0
  271. package/dist/modules/dock/{runtime → items}/display.d.ts +2 -5
  272. package/dist/modules/dock/items/display.d.ts.map +1 -0
  273. package/dist/modules/dock/items/operations.d.ts +22 -0
  274. package/dist/modules/dock/items/operations.d.ts.map +1 -0
  275. package/dist/modules/dock/{runtime → items}/pipeline.d.ts +1 -1
  276. package/dist/modules/dock/items/pipeline.d.ts.map +1 -0
  277. package/dist/modules/dock/{components/media-action.d.ts → media/controls.d.ts} +5 -2
  278. package/dist/modules/dock/media/controls.d.ts.map +1 -0
  279. package/dist/modules/dock/{lib/media.d.ts → media/model.d.ts} +1 -3
  280. package/dist/modules/dock/media/model.d.ts.map +1 -0
  281. package/dist/modules/dock/{components/media-scrubber.d.ts → media/scrubber.d.ts} +1 -1
  282. package/dist/modules/dock/media/scrubber.d.ts.map +1 -0
  283. package/dist/modules/dock/{hooks/use-media-controls-model.d.ts → media/use-controls.d.ts} +8 -8
  284. package/dist/modules/dock/media/use-controls.d.ts.map +1 -0
  285. package/dist/modules/dock/module.d.ts.map +1 -1
  286. package/dist/modules/dock/motion.d.ts +3 -4
  287. package/dist/modules/dock/motion.d.ts.map +1 -1
  288. package/dist/modules/dock/provider.d.ts.map +1 -1
  289. package/dist/modules/dock/routing/breadcrumbs-card.d.ts.map +1 -0
  290. package/dist/modules/dock/routing/{model/continuity.d.ts → continuity-state.d.ts} +2 -2
  291. package/dist/modules/dock/routing/continuity-state.d.ts.map +1 -0
  292. package/dist/modules/dock/routing/continuity.d.ts +8 -8
  293. package/dist/modules/dock/routing/continuity.d.ts.map +1 -1
  294. package/dist/modules/dock/routing/navigation.d.ts +0 -10
  295. package/dist/modules/dock/routing/navigation.d.ts.map +1 -1
  296. package/dist/modules/dock/routing/paths.d.ts.map +1 -0
  297. package/dist/modules/dock/routing/{model/policy.d.ts → policy.d.ts} +1 -1
  298. package/dist/modules/dock/routing/policy.d.ts.map +1 -0
  299. package/dist/modules/dock/routing/{hooks/use-route-prefetch.d.ts → prefetch.d.ts} +3 -3
  300. package/dist/modules/dock/routing/prefetch.d.ts.map +1 -0
  301. package/dist/modules/dock/routing/route-bridge.d.ts +8 -0
  302. package/dist/modules/dock/routing/route-bridge.d.ts.map +1 -0
  303. package/dist/modules/dock/routing/{model/topology.d.ts → topology.d.ts} +1 -1
  304. package/dist/modules/dock/routing/topology.d.ts.map +1 -0
  305. package/dist/modules/dock/{runtime/model → stack}/cards.d.ts +11 -5
  306. package/dist/modules/dock/stack/cards.d.ts.map +1 -0
  307. package/dist/modules/dock/stack/dock.d.ts.map +1 -0
  308. package/dist/modules/dock/stack/focus.d.ts +22 -0
  309. package/dist/modules/dock/stack/focus.d.ts.map +1 -0
  310. package/dist/modules/dock/{model → stack}/layout.d.ts +10 -4
  311. package/dist/modules/dock/stack/layout.d.ts.map +1 -0
  312. package/dist/modules/dock/{runtime/dock.d.ts → stack/use-dock-model.d.ts} +4 -1
  313. package/dist/modules/dock/stack/use-dock-model.d.ts.map +1 -0
  314. package/dist/modules/dock/{runtime/hooks → stack}/use-dock.d.ts +9 -9
  315. package/dist/modules/dock/stack/use-dock.d.ts.map +1 -0
  316. package/dist/modules/dock/stack/use-height.d.ts +12 -0
  317. package/dist/modules/dock/stack/use-height.d.ts.map +1 -0
  318. package/dist/modules/dock/{components/status-actions.d.ts → status/actions.d.ts} +1 -1
  319. package/dist/modules/dock/status/actions.d.ts.map +1 -0
  320. package/dist/modules/dock/status/events.d.ts +4 -4
  321. package/dist/modules/dock/status/events.d.ts.map +1 -1
  322. package/dist/modules/dock/status/hooks.d.ts.map +1 -1
  323. package/dist/modules/dock/status/model.d.ts +34 -4
  324. package/dist/modules/dock/status/model.d.ts.map +1 -1
  325. package/dist/modules/dock/surface/{model/builder.d.ts → builder.d.ts} +13 -7
  326. package/dist/modules/dock/surface/builder.d.ts.map +1 -0
  327. package/dist/modules/dock/{components/surface/item-content.d.ts → surface/content.d.ts} +2 -2
  328. package/dist/modules/dock/surface/content.d.ts.map +1 -0
  329. package/dist/modules/dock/surface/context.d.ts +12 -3
  330. package/dist/modules/dock/surface/context.d.ts.map +1 -1
  331. package/dist/modules/dock/surface/controls.d.ts +26 -0
  332. package/dist/modules/dock/surface/controls.d.ts.map +1 -0
  333. package/dist/modules/dock/surface/definition.d.ts.map +1 -1
  334. package/dist/modules/dock/{components/surface → surface}/extensions-bar.d.ts +1 -1
  335. package/dist/modules/dock/surface/extensions-bar.d.ts.map +1 -0
  336. package/dist/modules/dock/{components/surface/action.d.ts → surface/extensions.d.ts} +4 -2
  337. package/dist/modules/dock/surface/extensions.d.ts.map +1 -0
  338. package/dist/modules/dock/{components/surface → surface}/header-button.d.ts +3 -3
  339. package/dist/modules/dock/surface/header-button.d.ts.map +1 -0
  340. package/dist/modules/dock/surface/helpers.d.ts +13 -1
  341. package/dist/modules/dock/surface/helpers.d.ts.map +1 -1
  342. package/dist/modules/dock/surface/{model/normalize.d.ts → normalize.d.ts} +1 -1
  343. package/dist/modules/dock/surface/normalize.d.ts.map +1 -0
  344. package/dist/modules/dock/surface/runtime/choreography.d.ts +28 -2
  345. package/dist/modules/dock/surface/runtime/choreography.d.ts.map +1 -1
  346. package/dist/modules/dock/surface/runtime/flows.d.ts +1 -1
  347. package/dist/modules/dock/surface/runtime/flows.d.ts.map +1 -1
  348. package/dist/modules/dock/surface/{machine.d.ts → runtime/machine.d.ts} +1 -1
  349. package/dist/modules/dock/surface/runtime/machine.d.ts.map +1 -0
  350. package/dist/modules/dock/surface/runtime/open.d.ts +1 -2
  351. package/dist/modules/dock/surface/runtime/open.d.ts.map +1 -1
  352. package/dist/modules/dock/surface/{model → runtime}/records.d.ts +1 -1
  353. package/dist/modules/dock/surface/runtime/records.d.ts.map +1 -0
  354. package/dist/modules/dock/surface/{stack.d.ts → runtime/stack.d.ts} +10 -10
  355. package/dist/modules/dock/surface/runtime/stack.d.ts.map +1 -0
  356. package/dist/modules/dock/surface/runtime/steps.d.ts +1 -1
  357. package/dist/modules/dock/surface/runtime/steps.d.ts.map +1 -1
  358. package/dist/modules/dock/surface/{model/transition-state.d.ts → runtime/transition.d.ts} +1 -1
  359. package/dist/modules/dock/surface/runtime/transition.d.ts.map +1 -0
  360. package/dist/modules/dock/surface/runtime/url.d.ts.map +1 -0
  361. package/dist/modules/dock/surface/{hooks/use-surface-shell-model.d.ts → shell.d.ts} +9 -3
  362. package/dist/modules/dock/surface/shell.d.ts.map +1 -0
  363. package/dist/modules/dock/surface/{hooks/use-surface-flow.d.ts → use-flow.d.ts} +2 -2
  364. package/dist/modules/dock/surface/use-flow.d.ts.map +1 -0
  365. package/dist/modules/dock/surface/view-model.d.ts.map +1 -1
  366. package/dist/modules/dock/{lib/styles.d.ts → theme.d.ts} +8 -4
  367. package/dist/modules/dock/theme.d.ts.map +1 -0
  368. package/dist/modules/dock/types/card.d.ts +22 -2
  369. package/dist/modules/dock/types/card.d.ts.map +1 -1
  370. package/dist/modules/dock/types/index.d.ts +1 -0
  371. package/dist/modules/dock/types/index.d.ts.map +1 -1
  372. package/dist/modules/dock/types/surface.d.ts +2 -2
  373. package/dist/modules/dock/types/surface.d.ts.map +1 -1
  374. package/dist/modules/dock/types/theme.d.ts +10 -1
  375. package/dist/modules/dock/types/theme.d.ts.map +1 -1
  376. package/dist/modules/dock/{lib/helpers.d.ts → utils.d.ts} +10 -3
  377. package/dist/modules/dock/utils.d.ts.map +1 -0
  378. package/dist/modules/index.js +23 -22
  379. package/dist/modules/loading/hooks.d.ts +2 -1
  380. package/dist/modules/loading/hooks.d.ts.map +1 -1
  381. package/dist/modules/loading/state.d.ts.map +1 -1
  382. package/dist/modules/media/hooks.d.ts.map +1 -1
  383. package/dist/modules/media/playback.d.ts.map +1 -1
  384. package/dist/modules/modal/constants.d.ts +3 -1
  385. package/dist/modules/modal/constants.d.ts.map +1 -1
  386. package/dist/modules/modal/{components/modal-container.d.ts → container.d.ts} +2 -2
  387. package/dist/modules/modal/container.d.ts.map +1 -0
  388. package/dist/modules/modal/context.d.ts +5 -1
  389. package/dist/modules/modal/context.d.ts.map +1 -1
  390. package/dist/modules/modal/dom.d.ts.map +1 -0
  391. package/dist/modules/modal/hooks.d.ts +3 -2
  392. package/dist/modules/modal/hooks.d.ts.map +1 -1
  393. package/dist/modules/modal/index.d.ts +7 -7
  394. package/dist/modules/modal/index.d.ts.map +1 -1
  395. package/dist/modules/modal/{model/layout.d.ts → layout.d.ts} +1 -1
  396. package/dist/modules/modal/layout.d.ts.map +1 -0
  397. package/dist/modules/modal/module.d.ts +1 -1
  398. package/dist/modules/modal/module.d.ts.map +1 -1
  399. package/dist/modules/modal/overlay.d.ts.map +1 -0
  400. package/dist/modules/modal/state.d.ts +52 -0
  401. package/dist/modules/modal/state.d.ts.map +1 -0
  402. package/dist/modules/navigation/hooks.d.ts.map +1 -1
  403. package/dist/modules/notification/hooks.d.ts.map +1 -1
  404. package/dist/modules/notification/overlay.d.ts +0 -1
  405. package/dist/modules/notification/overlay.d.ts.map +1 -1
  406. package/dist/navigation/index.js +33 -41
  407. package/dist/navigation/index.js.map +1 -1
  408. package/dist/notification/index.js +8 -7
  409. package/dist/overlay-YMLS3SAQ.js +14 -0
  410. package/dist/{overlay-7QLGWHCH.js.map → overlay-YMLS3SAQ.js.map} +1 -1
  411. package/dist/provider/index.js +12 -11
  412. package/dist/react/hooks/index.d.ts +3 -1
  413. package/dist/react/hooks/index.d.ts.map +1 -1
  414. package/dist/react/hooks/use-client-value.d.ts +15 -0
  415. package/dist/react/hooks/use-client-value.d.ts.map +1 -0
  416. package/dist/react/hooks/use-controllable-state.d.ts +8 -1
  417. package/dist/react/hooks/use-controllable-state.d.ts.map +1 -1
  418. package/dist/react/hooks/use-fullscreen-state.d.ts +0 -2
  419. package/dist/react/hooks/use-fullscreen-state.d.ts.map +1 -1
  420. package/dist/react/hooks/use-global-event.d.ts +7 -1
  421. package/dist/react/hooks/use-global-event.d.ts.map +1 -1
  422. package/dist/react/hooks/use-hotkey.d.ts +9 -1
  423. package/dist/react/hooks/use-hotkey.d.ts.map +1 -1
  424. package/dist/react/hooks/use-scroll-lock.d.ts.map +1 -1
  425. package/dist/react/hooks/use-store.d.ts +3 -0
  426. package/dist/react/hooks/use-store.d.ts.map +1 -1
  427. package/dist/react/theme/index.d.ts.map +1 -1
  428. package/dist/react/ui/components/avatar.d.ts +4 -0
  429. package/dist/react/ui/components/avatar.d.ts.map +1 -1
  430. package/dist/react/ui/components/carousel.d.ts +22 -1
  431. package/dist/react/ui/components/carousel.d.ts.map +1 -1
  432. package/dist/react/ui/components/image.d.ts.map +1 -1
  433. package/dist/react/ui/components/indicator.d.ts +18 -8
  434. package/dist/react/ui/components/indicator.d.ts.map +1 -1
  435. package/dist/react/ui/components/segmented.d.ts.map +1 -1
  436. package/dist/react/ui/components/{select-parts.d.ts → select/options.d.ts} +2 -2
  437. package/dist/react/ui/components/{select-parts.d.ts.map → select/options.d.ts.map} +1 -1
  438. package/dist/react/ui/components/{select.d.ts → select/select.d.ts} +1 -1
  439. package/dist/react/ui/components/select/select.d.ts.map +1 -0
  440. package/dist/react/ui/components/{tooltip-group.d.ts → tooltip/group.d.ts} +3 -2
  441. package/dist/react/ui/components/tooltip/group.d.ts.map +1 -0
  442. package/dist/react/ui/components/{tooltip-placement.d.ts → tooltip/placement.d.ts} +2 -3
  443. package/dist/react/ui/components/tooltip/placement.d.ts.map +1 -0
  444. package/dist/react/ui/components/{tooltip-slot.d.ts → tooltip/slot.d.ts} +1 -1
  445. package/dist/react/ui/components/tooltip/slot.d.ts.map +1 -0
  446. package/dist/react/ui/components/{tooltip.d.ts → tooltip/tooltip.d.ts} +2 -2
  447. package/dist/react/ui/components/tooltip/tooltip.d.ts.map +1 -0
  448. package/dist/react/ui/index.d.ts +5 -4
  449. package/dist/react/ui/index.d.ts.map +1 -1
  450. package/dist/react/ui/provider.d.ts.map +1 -1
  451. package/dist/react/ui/types.d.ts +131 -3
  452. package/dist/react/ui/types.d.ts.map +1 -1
  453. package/dist/recipes/index.js +5 -6
  454. package/dist/recipes/index.js.map +1 -1
  455. package/dist/result/index.js +12 -15
  456. package/dist/result/index.js.map +1 -1
  457. package/dist/theme/index.js +2 -2
  458. package/dist/ui/index.js +849 -858
  459. package/dist/ui/index.js.map +1 -1
  460. package/dist/utils/index.js +31 -34
  461. package/dist/utils/index.js.map +1 -1
  462. package/docs/README.md +1 -1
  463. package/docs/architecture-and-rules.md +35 -24
  464. package/docs/modules/README.md +15 -15
  465. package/docs/modules/ambient.md +23 -23
  466. package/docs/modules/background.md +23 -18
  467. package/docs/modules/dock.md +34 -20
  468. package/docs/modules/error-boundary.md +1 -2
  469. package/docs/modules/kernel.md +28 -30
  470. package/docs/modules/modal.md +16 -15
  471. package/docs/modules/navigation.md +14 -14
  472. package/docs/testing.md +1 -1
  473. package/package.json +1 -2
  474. package/dist/chunk-67MOKJFZ.js.map +0 -1
  475. package/dist/chunk-6IP6YFQX.js.map +0 -1
  476. package/dist/chunk-7VU2OAJB.js.map +0 -1
  477. package/dist/chunk-BMFHS3GV.js.map +0 -1
  478. package/dist/chunk-D222OCTV.js.map +0 -1
  479. package/dist/chunk-ESD5EQ5H.js.map +0 -1
  480. package/dist/chunk-GKAJ4EM2.js.map +0 -1
  481. package/dist/chunk-HFR6YROB.js.map +0 -1
  482. package/dist/chunk-IH3STE7W.js.map +0 -1
  483. package/dist/chunk-K3LXE6D5.js +0 -17
  484. package/dist/chunk-KOYTJW5E.js.map +0 -1
  485. package/dist/chunk-LKYW4LH6.js.map +0 -1
  486. package/dist/chunk-NCXFWCXP.js.map +0 -1
  487. package/dist/chunk-QRXDXAQI.js.map +0 -1
  488. package/dist/chunk-R4K6VAOK.js.map +0 -1
  489. package/dist/chunk-RDYYP36I.js.map +0 -1
  490. package/dist/chunk-TAWTGCWJ.js.map +0 -1
  491. package/dist/chunk-UE2KBW3D.js.map +0 -1
  492. package/dist/chunk-UQLTP3XB.js.map +0 -1
  493. package/dist/chunk-WQTMOUCA.js.map +0 -1
  494. package/dist/chunk-WZ5T2NXH.js.map +0 -1
  495. package/dist/chunk-XGAYTDSI.js.map +0 -1
  496. package/dist/chunk-YZS2B6YE.js.map +0 -1
  497. package/dist/chunk-ZXRE2KZO.js.map +0 -1
  498. package/dist/core/error/theme.d.ts +0 -10
  499. package/dist/core/error/theme.d.ts.map +0 -1
  500. package/dist/core/kernel/adapters.d.ts.map +0 -1
  501. package/dist/core/kernel/compose.d.ts.map +0 -1
  502. package/dist/core/kernel/handlers.d.ts.map +0 -1
  503. package/dist/core/kernel/hooks.d.ts.map +0 -1
  504. package/dist/core/kernel/installed.d.ts.map +0 -1
  505. package/dist/core/kernel/module.d.ts.map +0 -1
  506. package/dist/core/kernel/operations-records.d.ts.map +0 -1
  507. package/dist/core/kernel/operations-resolve.d.ts +0 -5
  508. package/dist/core/kernel/operations-resolve.d.ts.map +0 -1
  509. package/dist/core/kernel/operations.d.ts.map +0 -1
  510. package/dist/core/kernel/page-controller.d.ts.map +0 -1
  511. package/dist/core/kernel/provider.d.ts.map +0 -1
  512. package/dist/core/kernel/runtime.d.ts.map +0 -1
  513. package/dist/core/kernel/schema.d.ts.map +0 -1
  514. package/dist/core/kernel/stabilize.d.ts.map +0 -1
  515. package/dist/core/kernel/store-batch.d.ts +0 -17
  516. package/dist/core/kernel/store-batch.d.ts.map +0 -1
  517. package/dist/core/kernel/store-entries.d.ts +0 -6
  518. package/dist/core/kernel/store-entries.d.ts.map +0 -1
  519. package/dist/core/kernel/store-handles.d.ts +0 -4
  520. package/dist/core/kernel/store-handles.d.ts.map +0 -1
  521. package/dist/core/kernel/store-registration.d.ts +0 -14
  522. package/dist/core/kernel/store-registration.d.ts.map +0 -1
  523. package/dist/core/kernel/store-snapshots.d.ts.map +0 -1
  524. package/dist/core/kernel/store-subscriptions.d.ts.map +0 -1
  525. package/dist/core/kernel/store.d.ts.map +0 -1
  526. package/dist/core/kernel/types-modules.d.ts.map +0 -1
  527. package/dist/core/kernel/types-page.d.ts.map +0 -1
  528. package/dist/core/kernel/types-store.d.ts.map +0 -1
  529. package/dist/core/kernel/types.d.ts.map +0 -1
  530. package/dist/core/navigation/navigator-defaults.d.ts +0 -4
  531. package/dist/core/navigation/navigator-defaults.d.ts.map +0 -1
  532. package/dist/core/navigation/navigator-holds.d.ts.map +0 -1
  533. package/dist/core/navigation/navigator-patience.d.ts.map +0 -1
  534. package/dist/core/navigation/navigator-payload.d.ts.map +0 -1
  535. package/dist/core/navigation/navigator-prefetch.d.ts.map +0 -1
  536. package/dist/modules/ambient/analyze-bounds.d.ts.map +0 -1
  537. package/dist/modules/ambient/analyze-clusters.d.ts.map +0 -1
  538. package/dist/modules/ambient/analyze-ground.d.ts.map +0 -1
  539. package/dist/modules/ambient/analyze-measures.d.ts.map +0 -1
  540. package/dist/modules/ambient/analyze-swatches.d.ts.map +0 -1
  541. package/dist/modules/ambient/analyze.d.ts.map +0 -1
  542. package/dist/modules/ambient/oklab.d.ts.map +0 -1
  543. package/dist/modules/ambient/quantize.d.ts.map +0 -1
  544. package/dist/modules/background/components/background-gradients.d.ts +0 -8
  545. package/dist/modules/background/components/background-gradients.d.ts.map +0 -1
  546. package/dist/modules/background/components/edge-gradient.d.ts +0 -9
  547. package/dist/modules/background/components/edge-gradient.d.ts.map +0 -1
  548. package/dist/modules/background/components/native-video.d.ts +0 -4
  549. package/dist/modules/background/components/native-video.d.ts.map +0 -1
  550. package/dist/modules/background/components/noise-overlay.d.ts +0 -11
  551. package/dist/modules/background/components/noise-overlay.d.ts.map +0 -1
  552. package/dist/modules/background/components/overlay.d.ts.map +0 -1
  553. package/dist/modules/background/components/solid-overlay.d.ts +0 -10
  554. package/dist/modules/background/components/solid-overlay.d.ts.map +0 -1
  555. package/dist/modules/background/hooks/use-background-media-source.d.ts +0 -4
  556. package/dist/modules/background/hooks/use-background-media-source.d.ts.map +0 -1
  557. package/dist/modules/background/hooks/use-background-motion-model.d.ts +0 -15
  558. package/dist/modules/background/hooks/use-background-motion-model.d.ts.map +0 -1
  559. package/dist/modules/background/hooks/use-background-overlay-model.d.ts +0 -929
  560. package/dist/modules/background/hooks/use-background-overlay-model.d.ts.map +0 -1
  561. package/dist/modules/background/hooks/use-native-video-model.d.ts.map +0 -1
  562. package/dist/modules/background/lib/theme.d.ts +0 -4
  563. package/dist/modules/background/lib/theme.d.ts.map +0 -1
  564. package/dist/modules/background/model/override.d.ts +0 -14
  565. package/dist/modules/background/model/override.d.ts.map +0 -1
  566. package/dist/modules/background/model/playback.d.ts.map +0 -1
  567. package/dist/modules/background/model/state.d.ts.map +0 -1
  568. package/dist/modules/background/model/video-frame.d.ts +0 -31
  569. package/dist/modules/background/model/video-frame.d.ts.map +0 -1
  570. package/dist/modules/background/model/visual.d.ts.map +0 -1
  571. package/dist/modules/background/youtube/components/player.d.ts.map +0 -1
  572. package/dist/modules/background/youtube/hooks/use-youtube-background-player-model.d.ts.map +0 -1
  573. package/dist/modules/background/youtube/hooks/use-youtube-iframe-player.d.ts +0 -20
  574. package/dist/modules/background/youtube/hooks/use-youtube-iframe-player.d.ts.map +0 -1
  575. package/dist/modules/background/youtube/hooks/use-youtube-stream-sources.d.ts +0 -8
  576. package/dist/modules/background/youtube/hooks/use-youtube-stream-sources.d.ts.map +0 -1
  577. package/dist/modules/background/youtube/hooks/use-youtube-video-sync.d.ts.map +0 -1
  578. package/dist/modules/background/youtube/lib/audio.d.ts.map +0 -1
  579. package/dist/modules/background/youtube/lib/iframe-engine.d.ts +0 -29
  580. package/dist/modules/background/youtube/lib/iframe-engine.d.ts.map +0 -1
  581. package/dist/modules/background/youtube/lib/iframe-proxy.d.ts +0 -47
  582. package/dist/modules/background/youtube/lib/iframe-proxy.d.ts.map +0 -1
  583. package/dist/modules/background/youtube/lib/iframe.d.ts +0 -47
  584. package/dist/modules/background/youtube/lib/iframe.d.ts.map +0 -1
  585. package/dist/modules/background/youtube/lib/parse.d.ts.map +0 -1
  586. package/dist/modules/background/youtube/lib/timing.d.ts.map +0 -1
  587. package/dist/modules/background/youtube/lib/video-events.d.ts.map +0 -1
  588. package/dist/modules/dock/components/badge.d.ts +0 -5
  589. package/dist/modules/dock/components/badge.d.ts.map +0 -1
  590. package/dist/modules/dock/components/breadcrumbs-card.d.ts.map +0 -1
  591. package/dist/modules/dock/components/card-banner.d.ts +0 -4
  592. package/dist/modules/dock/components/card-banner.d.ts.map +0 -1
  593. package/dist/modules/dock/components/card-header.d.ts +0 -4
  594. package/dist/modules/dock/components/card-header.d.ts.map +0 -1
  595. package/dist/modules/dock/components/card-item.d.ts.map +0 -1
  596. package/dist/modules/dock/components/command-bar.d.ts.map +0 -1
  597. package/dist/modules/dock/components/description.d.ts +0 -4
  598. package/dist/modules/dock/components/description.d.ts.map +0 -1
  599. package/dist/modules/dock/components/dock.d.ts.map +0 -1
  600. package/dist/modules/dock/components/hud-view.d.ts.map +0 -1
  601. package/dist/modules/dock/components/icon.d.ts.map +0 -1
  602. package/dist/modules/dock/components/item-content.d.ts.map +0 -1
  603. package/dist/modules/dock/components/media-action.d.ts.map +0 -1
  604. package/dist/modules/dock/components/media-controls.d.ts +0 -4
  605. package/dist/modules/dock/components/media-controls.d.ts.map +0 -1
  606. package/dist/modules/dock/components/media-scrubber.d.ts.map +0 -1
  607. package/dist/modules/dock/components/status-actions.d.ts.map +0 -1
  608. package/dist/modules/dock/components/surface/action.d.ts.map +0 -1
  609. package/dist/modules/dock/components/surface/controls.d.ts +0 -12
  610. package/dist/modules/dock/components/surface/controls.d.ts.map +0 -1
  611. package/dist/modules/dock/components/surface/extensions-bar.d.ts.map +0 -1
  612. package/dist/modules/dock/components/surface/header-button.d.ts.map +0 -1
  613. package/dist/modules/dock/components/surface/item-content.d.ts.map +0 -1
  614. package/dist/modules/dock/components/surface/shell.d.ts +0 -3
  615. package/dist/modules/dock/components/surface/shell.d.ts.map +0 -1
  616. package/dist/modules/dock/components/title.d.ts +0 -4
  617. package/dist/modules/dock/components/title.d.ts.map +0 -1
  618. package/dist/modules/dock/hooks/use-action-slot.d.ts +0 -6
  619. package/dist/modules/dock/hooks/use-action-slot.d.ts.map +0 -1
  620. package/dist/modules/dock/hooks/use-badge.d.ts +0 -4
  621. package/dist/modules/dock/hooks/use-badge.d.ts.map +0 -1
  622. package/dist/modules/dock/hooks/use-card-banner-model.d.ts +0 -18
  623. package/dist/modules/dock/hooks/use-card-banner-model.d.ts.map +0 -1
  624. package/dist/modules/dock/hooks/use-card-header-model.d.ts +0 -7
  625. package/dist/modules/dock/hooks/use-card-header-model.d.ts.map +0 -1
  626. package/dist/modules/dock/hooks/use-command-bar-model.d.ts +0 -12
  627. package/dist/modules/dock/hooks/use-command-bar-model.d.ts.map +0 -1
  628. package/dist/modules/dock/hooks/use-dock-banner.d.ts +0 -11
  629. package/dist/modules/dock/hooks/use-dock-banner.d.ts.map +0 -1
  630. package/dist/modules/dock/hooks/use-dock-config.d.ts +0 -19
  631. package/dist/modules/dock/hooks/use-dock-config.d.ts.map +0 -1
  632. package/dist/modules/dock/hooks/use-dock-dimensions.d.ts +0 -7
  633. package/dist/modules/dock/hooks/use-dock-dimensions.d.ts.map +0 -1
  634. package/dist/modules/dock/hooks/use-dock-focus-trap.d.ts +0 -7
  635. package/dist/modules/dock/hooks/use-dock-focus-trap.d.ts.map +0 -1
  636. package/dist/modules/dock/hooks/use-dock-height-controller.d.ts +0 -6
  637. package/dist/modules/dock/hooks/use-dock-height-controller.d.ts.map +0 -1
  638. package/dist/modules/dock/hooks/use-dock-keyboard.d.ts +0 -11
  639. package/dist/modules/dock/hooks/use-dock-keyboard.d.ts.map +0 -1
  640. package/dist/modules/dock/hooks/use-dock-registration.d.ts +0 -8
  641. package/dist/modules/dock/hooks/use-dock-registration.d.ts.map +0 -1
  642. package/dist/modules/dock/hooks/use-dock-route-reset.d.ts +0 -2
  643. package/dist/modules/dock/hooks/use-dock-route-reset.d.ts.map +0 -1
  644. package/dist/modules/dock/hooks/use-dock-theme.d.ts +0 -6
  645. package/dist/modules/dock/hooks/use-dock-theme.d.ts.map +0 -1
  646. package/dist/modules/dock/hooks/use-dock-viewport.d.ts +0 -6
  647. package/dist/modules/dock/hooks/use-dock-viewport.d.ts.map +0 -1
  648. package/dist/modules/dock/hooks/use-element-height.d.ts +0 -3
  649. package/dist/modules/dock/hooks/use-element-height.d.ts.map +0 -1
  650. package/dist/modules/dock/hooks/use-hud-registry.d.ts +0 -16
  651. package/dist/modules/dock/hooks/use-hud-registry.d.ts.map +0 -1
  652. package/dist/modules/dock/hooks/use-hud-view-model.d.ts +0 -9
  653. package/dist/modules/dock/hooks/use-hud-view-model.d.ts.map +0 -1
  654. package/dist/modules/dock/hooks/use-media-controls-model.d.ts.map +0 -1
  655. package/dist/modules/dock/hooks/use-media-scrubber-model.d.ts +0 -27
  656. package/dist/modules/dock/hooks/use-media-scrubber-model.d.ts.map +0 -1
  657. package/dist/modules/dock/hooks/use-standard-item-content-model.d.ts +0 -12
  658. package/dist/modules/dock/hooks/use-standard-item-content-model.d.ts.map +0 -1
  659. package/dist/modules/dock/hooks/use-surface-return.d.ts +0 -8
  660. package/dist/modules/dock/hooks/use-surface-return.d.ts.map +0 -1
  661. package/dist/modules/dock/hud.d.ts.map +0 -1
  662. package/dist/modules/dock/lib/banner.d.ts.map +0 -1
  663. package/dist/modules/dock/lib/card-item.d.ts.map +0 -1
  664. package/dist/modules/dock/lib/card.d.ts +0 -20
  665. package/dist/modules/dock/lib/card.d.ts.map +0 -1
  666. package/dist/modules/dock/lib/command-bar.d.ts +0 -8
  667. package/dist/modules/dock/lib/command-bar.d.ts.map +0 -1
  668. package/dist/modules/dock/lib/dom.d.ts +0 -7
  669. package/dist/modules/dock/lib/dom.d.ts.map +0 -1
  670. package/dist/modules/dock/lib/element-helpers.d.ts +0 -8
  671. package/dist/modules/dock/lib/element-helpers.d.ts.map +0 -1
  672. package/dist/modules/dock/lib/helpers.d.ts.map +0 -1
  673. package/dist/modules/dock/lib/media.d.ts.map +0 -1
  674. package/dist/modules/dock/lib/styles.d.ts.map +0 -1
  675. package/dist/modules/dock/model/hud-definition.d.ts.map +0 -1
  676. package/dist/modules/dock/model/hud.d.ts +0 -10
  677. package/dist/modules/dock/model/hud.d.ts.map +0 -1
  678. package/dist/modules/dock/model/layout.d.ts.map +0 -1
  679. package/dist/modules/dock/model/page-entry.d.ts +0 -11
  680. package/dist/modules/dock/model/page-entry.d.ts.map +0 -1
  681. package/dist/modules/dock/model/page-surface.d.ts +0 -4
  682. package/dist/modules/dock/model/page-surface.d.ts.map +0 -1
  683. package/dist/modules/dock/model/paths.d.ts.map +0 -1
  684. package/dist/modules/dock/model/state.d.ts +0 -28
  685. package/dist/modules/dock/model/state.d.ts.map +0 -1
  686. package/dist/modules/dock/model/surface-return.d.ts +0 -14
  687. package/dist/modules/dock/model/surface-return.d.ts.map +0 -1
  688. package/dist/modules/dock/routing/hooks/use-route-prefetch.d.ts.map +0 -1
  689. package/dist/modules/dock/routing/lib/restore.d.ts +0 -7
  690. package/dist/modules/dock/routing/lib/restore.d.ts.map +0 -1
  691. package/dist/modules/dock/routing/model/continuity.d.ts.map +0 -1
  692. package/dist/modules/dock/routing/model/policy.d.ts.map +0 -1
  693. package/dist/modules/dock/routing/model/topology.d.ts.map +0 -1
  694. package/dist/modules/dock/runtime/commands.d.ts.map +0 -1
  695. package/dist/modules/dock/runtime/display.d.ts.map +0 -1
  696. package/dist/modules/dock/runtime/dock.d.ts.map +0 -1
  697. package/dist/modules/dock/runtime/hooks/use-dock-expansion.d.ts +0 -10
  698. package/dist/modules/dock/runtime/hooks/use-dock-expansion.d.ts.map +0 -1
  699. package/dist/modules/dock/runtime/hooks/use-dock-layout.d.ts +0 -10
  700. package/dist/modules/dock/runtime/hooks/use-dock-layout.d.ts.map +0 -1
  701. package/dist/modules/dock/runtime/hooks/use-dock-operation-state.d.ts +0 -14
  702. package/dist/modules/dock/runtime/hooks/use-dock-operation-state.d.ts.map +0 -1
  703. package/dist/modules/dock/runtime/hooks/use-dock-route-bridge.d.ts +0 -7
  704. package/dist/modules/dock/runtime/hooks/use-dock-route-bridge.d.ts.map +0 -1
  705. package/dist/modules/dock/runtime/hooks/use-dock.d.ts.map +0 -1
  706. package/dist/modules/dock/runtime/model/attention.d.ts +0 -25
  707. package/dist/modules/dock/runtime/model/attention.d.ts.map +0 -1
  708. package/dist/modules/dock/runtime/model/cards.d.ts.map +0 -1
  709. package/dist/modules/dock/runtime/model/items.d.ts.map +0 -1
  710. package/dist/modules/dock/runtime/model/layout.d.ts +0 -10
  711. package/dist/modules/dock/runtime/model/layout.d.ts.map +0 -1
  712. package/dist/modules/dock/runtime/pipeline.d.ts.map +0 -1
  713. package/dist/modules/dock/runtime/provider-actions.d.ts +0 -38
  714. package/dist/modules/dock/runtime/provider-actions.d.ts.map +0 -1
  715. package/dist/modules/dock/status/action-options.d.ts +0 -35
  716. package/dist/modules/dock/status/action-options.d.ts.map +0 -1
  717. package/dist/modules/dock/surface/components/surface-extensions-provider.d.ts +0 -5
  718. package/dist/modules/dock/surface/components/surface-extensions-provider.d.ts.map +0 -1
  719. package/dist/modules/dock/surface/components/surface-flow-provider.d.ts +0 -7
  720. package/dist/modules/dock/surface/components/surface-flow-provider.d.ts.map +0 -1
  721. package/dist/modules/dock/surface/constants.d.ts +0 -5
  722. package/dist/modules/dock/surface/constants.d.ts.map +0 -1
  723. package/dist/modules/dock/surface/hooks/use-surface-controls-model.d.ts +0 -15
  724. package/dist/modules/dock/surface/hooks/use-surface-controls-model.d.ts.map +0 -1
  725. package/dist/modules/dock/surface/hooks/use-surface-extensions-bar-model.d.ts +0 -7
  726. package/dist/modules/dock/surface/hooks/use-surface-extensions-bar-model.d.ts.map +0 -1
  727. package/dist/modules/dock/surface/hooks/use-surface-extensions.d.ts +0 -14
  728. package/dist/modules/dock/surface/hooks/use-surface-extensions.d.ts.map +0 -1
  729. package/dist/modules/dock/surface/hooks/use-surface-flow.d.ts.map +0 -1
  730. package/dist/modules/dock/surface/hooks/use-surface-header-button-model.d.ts +0 -13
  731. package/dist/modules/dock/surface/hooks/use-surface-header-button-model.d.ts.map +0 -1
  732. package/dist/modules/dock/surface/hooks/use-surface-shell-model.d.ts.map +0 -1
  733. package/dist/modules/dock/surface/lib/drag.d.ts +0 -9
  734. package/dist/modules/dock/surface/lib/drag.d.ts.map +0 -1
  735. package/dist/modules/dock/surface/lib/target.d.ts +0 -8
  736. package/dist/modules/dock/surface/lib/target.d.ts.map +0 -1
  737. package/dist/modules/dock/surface/machine.d.ts.map +0 -1
  738. package/dist/modules/dock/surface/model/builder.d.ts.map +0 -1
  739. package/dist/modules/dock/surface/model/normalize.d.ts.map +0 -1
  740. package/dist/modules/dock/surface/model/open.d.ts +0 -26
  741. package/dist/modules/dock/surface/model/open.d.ts.map +0 -1
  742. package/dist/modules/dock/surface/model/records.d.ts.map +0 -1
  743. package/dist/modules/dock/surface/model/steps.d.ts +0 -9
  744. package/dist/modules/dock/surface/model/steps.d.ts.map +0 -1
  745. package/dist/modules/dock/surface/model/transition-state.d.ts.map +0 -1
  746. package/dist/modules/dock/surface/model/url.d.ts.map +0 -1
  747. package/dist/modules/dock/surface/runtime/context.d.ts +0 -29
  748. package/dist/modules/dock/surface/runtime/context.d.ts.map +0 -1
  749. package/dist/modules/dock/surface/runtime/release.d.ts +0 -9
  750. package/dist/modules/dock/surface/runtime/release.d.ts.map +0 -1
  751. package/dist/modules/dock/surface/stack.d.ts.map +0 -1
  752. package/dist/modules/modal/components/close-button.d.ts +0 -6
  753. package/dist/modules/modal/components/close-button.d.ts.map +0 -1
  754. package/dist/modules/modal/components/modal-container.d.ts.map +0 -1
  755. package/dist/modules/modal/components/modal-layer-switcher.d.ts +0 -9
  756. package/dist/modules/modal/components/modal-layer-switcher.d.ts.map +0 -1
  757. package/dist/modules/modal/components/modal-layer.d.ts +0 -17
  758. package/dist/modules/modal/components/modal-layer.d.ts.map +0 -1
  759. package/dist/modules/modal/components/overlay.d.ts.map +0 -1
  760. package/dist/modules/modal/components/resolve-header.d.ts +0 -10
  761. package/dist/modules/modal/components/resolve-header.d.ts.map +0 -1
  762. package/dist/modules/modal/components/slot-row.d.ts +0 -12
  763. package/dist/modules/modal/components/slot-row.d.ts.map +0 -1
  764. package/dist/modules/modal/hooks/use-mobile-viewport.d.ts +0 -3
  765. package/dist/modules/modal/hooks/use-mobile-viewport.d.ts.map +0 -1
  766. package/dist/modules/modal/hooks/use-modal-focus-trap.d.ts +0 -12
  767. package/dist/modules/modal/hooks/use-modal-focus-trap.d.ts.map +0 -1
  768. package/dist/modules/modal/hooks/use-modal-scroll-lock.d.ts +0 -3
  769. package/dist/modules/modal/hooks/use-modal-scroll-lock.d.ts.map +0 -1
  770. package/dist/modules/modal/lib/dom.d.ts.map +0 -1
  771. package/dist/modules/modal/lib/theme.d.ts +0 -4
  772. package/dist/modules/modal/lib/theme.d.ts.map +0 -1
  773. package/dist/modules/modal/model/entry.d.ts +0 -18
  774. package/dist/modules/modal/model/entry.d.ts.map +0 -1
  775. package/dist/modules/modal/model/header.d.ts +0 -16
  776. package/dist/modules/modal/model/header.d.ts.map +0 -1
  777. package/dist/modules/modal/model/identity.d.ts +0 -13
  778. package/dist/modules/modal/model/identity.d.ts.map +0 -1
  779. package/dist/modules/modal/model/layout.d.ts.map +0 -1
  780. package/dist/modules/modal/model/state.d.ts +0 -10
  781. package/dist/modules/modal/model/state.d.ts.map +0 -1
  782. package/dist/overlay-7QLGWHCH.js +0 -13
  783. package/dist/react/hooks/types.d.ts +0 -25
  784. package/dist/react/hooks/types.d.ts.map +0 -1
  785. package/dist/react/ui/components/select.d.ts.map +0 -1
  786. package/dist/react/ui/components/tooltip-group.d.ts.map +0 -1
  787. package/dist/react/ui/components/tooltip-placement.d.ts.map +0 -1
  788. package/dist/react/ui/components/tooltip-slot.d.ts.map +0 -1
  789. package/dist/react/ui/components/tooltip.d.ts.map +0 -1
  790. package/dist/react/ui/types-controls.d.ts +0 -133
  791. package/dist/react/ui/types-controls.d.ts.map +0 -1
  792. package/dist/react/ui/utils.d.ts +0 -65
  793. package/dist/react/ui/utils.d.ts.map +0 -1
  794. package/docs/proposals/navigation.md +0 -210
  795. /package/dist/modules/ambient/{quantize.d.ts → analysis/quantize.d.ts} +0 -0
  796. /package/dist/modules/background/{components/overlay.d.ts → overlay.d.ts} +0 -0
  797. /package/dist/modules/background/{model/playback.d.ts → playback.d.ts} +0 -0
  798. /package/dist/modules/background/youtube/{lib/audio.d.ts → audio.d.ts} +0 -0
  799. /package/dist/modules/dock/{components → commands}/command-bar.d.ts +0 -0
  800. /package/dist/modules/dock/{components → routing}/breadcrumbs-card.d.ts +0 -0
  801. /package/dist/modules/dock/{model → routing}/paths.d.ts +0 -0
  802. /package/dist/modules/dock/{components → stack}/dock.d.ts +0 -0
  803. /package/dist/modules/dock/surface/{model → runtime}/url.d.ts +0 -0
  804. /package/dist/modules/modal/{lib/dom.d.ts → dom.d.ts} +0 -0
  805. /package/dist/modules/modal/{components/overlay.d.ts → overlay.d.ts} +0 -0
@@ -1,13 +0,0 @@
1
- import { type DefineModalOptions, type ModalComponent, type ModalInput } from "../types";
2
- /**
3
- * Resolves the type name and component of a modal input (string, component or definition).
4
- */
5
- export declare function getModalIdentity(input: ModalInput | DefineModalOptions): {
6
- component: ModalComponent | null;
7
- type: string;
8
- };
9
- /**
10
- * Human-readable label for a modal type, such as "user-settings" to "User Settings".
11
- */
12
- export declare function getModalLabel(modalType?: string | null): string;
13
- //# sourceMappingURL=identity.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../../../src/modules/modal/model/identity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,UAAU,EAChB,MAAM,UAAU,CAAC;AAElB;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,GAAG,kBAAkB,GAAG;IACxE,SAAS,EAAE,cAAc,GAAG,IAAI,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;CACd,CAaA;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAQ/D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/modules/modal/model/layout.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC7B,MAAM,UAAU,CAAC;AAElB;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAI/D;AAED;;GAEG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,aAAa,GAAG,IAAI,GAAG,SAAS,GACzC,OAAO,CAIT;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,aAAa,GAAG,IAAI,GAAG,SAAS,GACzC,OAAO,CAIT;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,aAAa,GAAG,aAAa,CAOvE;AACD;;GAEG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,aAAa,EACvB,QAAQ,EAAE,OAAO,GAChB,WAAW,CAQb;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CAU7C;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,aAAa,EACvB,kBAAkB,EAAE,uBAAuB,GAAG,IAAI,GAAG,SAAS,EAC9D,gBAAgB,EAAE,OAAO,GACxB,aAAa,CAMf;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,aAAa,GAAG,uBAAuB,GAAG,SAAS,GACzD;IACD,QAAQ,EAAE,aAAa,CAAC;IACxB,kBAAkB,EAAE,uBAAuB,GAAG,IAAI,CAAC;CACpD,CAeA"}
@@ -1,10 +0,0 @@
1
- import { type ModalEntry, type ModalState } from "../types";
2
- /**
3
- * Derives the modal state (top modal fields, open flag) from a stack of entries.
4
- */
5
- export declare function createModalState(modalStack?: ModalEntry[]): ModalState;
6
- /**
7
- * Modal state with nothing open.
8
- */
9
- export declare const INITIAL_MODAL_STATE: ModalState;
10
- //# sourceMappingURL=state.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/modules/modal/model/state.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE5D;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,GAAE,UAAU,EAAO,GAAG,UAAU,CAe1E;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,YAAuB,CAAC"}
@@ -1,13 +0,0 @@
1
- export { Modal } from './chunk-UQLTP3XB.js';
2
- import './chunk-QRXDXAQI.js';
3
- import './chunk-IH3STE7W.js';
4
- import './chunk-WQTMOUCA.js';
5
- import './chunk-UDJ7ARCH.js';
6
- import './chunk-7VU2OAJB.js';
7
- import './chunk-TAWTGCWJ.js';
8
- import './chunk-ESD5EQ5H.js';
9
- import './chunk-D222OCTV.js';
10
- import './chunk-J3VTDBC6.js';
11
- import './chunk-BMFHS3GV.js';
12
- //# sourceMappingURL=overlay-7QLGWHCH.js.map
13
- //# sourceMappingURL=overlay-7QLGWHCH.js.map
@@ -1,25 +0,0 @@
1
- /**
2
- * Options for `useGlobalEvent`: debounce or throttle the handler.
3
- */
4
- export interface UseGlobalEventOptions {
5
- debounceMs?: number;
6
- throttleMs?: number;
7
- }
8
- /**
9
- * Options for `useControllableState`: a default, an optional controlled value and a change callback.
10
- */
11
- export interface UseControllableStateOptions<T> {
12
- defaultValue: T;
13
- onChange?: (nextValue: T) => void;
14
- value?: T;
15
- }
16
- /**
17
- * Options for `useHotkey`: whether it is active, whether it fires in form fields, and event handling.
18
- */
19
- export interface UseHotkeyOptions {
20
- enabled?: boolean;
21
- enableOnFormTags?: boolean;
22
- preventDefault?: boolean;
23
- stopPropagation?: boolean;
24
- }
25
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B,CAAC,CAAC;IAC5C,YAAY,EAAE,CAAC,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,KAAK,IAAI,CAAC;IAClC,KAAK,CAAC,EAAE,CAAC,CAAC;CACX;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../src/react/ui/components/select.tsx"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAwB,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAuB1E;;GAEG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,EAChD,SAAS,EACT,SAAS,EACT,UAAe,EACf,gBAAoB,EACpB,YAAY,EACZ,QAAQ,EACR,KAAK,EACL,aAAa,EACb,IAAI,EACJ,MAAU,EACV,QAAQ,EACR,OAAO,EACP,WAAW,EACX,SAAqB,EACrB,KAAK,EAAE,SAAS,EAChB,GAAG,KAAK,EACT,EAAE,WAAW,CAAC,CAAC,CAAC,+BA0PhB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tooltip-group.d.ts","sourceRoot":"","sources":["../../../../src/react/ui/components/tooltip-group.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAC;AAG5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAK7D,MAAM,MAAM,QAAQ,GAAG,cAAc,GAAG,cAAc,CAAC;AAEvD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CAChC;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;IACvC,+EAA+E;IAC/E,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,GAAG,IAAI,CAAC;CACjD;AAED,UAAU,iBAAiB;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,YAAY,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAQD,eAAO,MAAM,mBAAmB,4CAO/B,CAAC;AAQF,uEAAuE;AACvE,wBAAgB,WAAW,CACzB,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,SAAS,CAAC,YAAY,CAAC,QAO9B;AAED,wBAAgB,WAAW,CACzB,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,SAAS,CAAC,YAAY,CAAC,EAC7B,WAAW,EAAE,MAAM,QAapB;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,aAAgC,EAChC,iBAAyC,GAC1C,EAAE,oBAAoB,+BAKtB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tooltip-placement.d.ts","sourceRoot":"","sources":["../../../../src/react/ui/components/tooltip-placement.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAC9D,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEtD,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,YAAY,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3C,4EAA4E;IAC5E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,WAAW,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,YAAY,CAAC;IACtB,QAAQ,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CAC7C;AAED,MAAM,WAAW,SAAS;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,WAAW,CAAC;IAClB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AA8CD,wBAAgB,YAAY,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,CAkD7D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tooltip-slot.d.ts","sourceRoot":"","sources":["../../../../src/react/ui/components/tooltip-slot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,GAAG,EACT,MAAM,OAAO,CAAC;AAEf,MAAM,WAAW,YAAY;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAClD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACnD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACnD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC3D,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC5D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC3D,GAAG,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;CACxB;AAuBD,UAAU,SAAU,SAAQ,YAAY;IACtC,QAAQ,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;IACrC,UAAU,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,EAAE,SAAS,mFAqBrE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../src/react/ui/components/tooltip.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAarD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAuClD;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,EACtB,KAAgB,EAChB,QAAQ,EACR,SAAS,EACT,UAAU,EACV,gBAAoB,EACpB,YAAY,EACZ,WAAW,EACX,OAAO,EACP,YAAY,EACZ,IAAI,EACJ,QAAgB,EAChB,UAAc,EACd,IAAI,EACJ,UAAU,GACX,EAAE,YAAY,+BA+Rd"}
@@ -1,133 +0,0 @@
1
- import type { ButtonHTMLAttributes, HTMLAttributes, InputHTMLAttributes, ReactNode, Ref, TextareaHTMLAttributes } from "react";
2
- import type { PartClassNames, PartProps, PartsProps } from "../../foundation/recipes/define";
3
- import type { DataAttributes } from "./types";
4
- /**
5
- * Variant props of the checkbox box.
6
- */
7
- export type CheckboxVariants = PartProps<"checkbox", "box">;
8
- /**
9
- * Props of `CheckboxIndicator`.
10
- */
11
- export interface CheckboxIndicatorProps extends Omit<CheckboxVariants, "checked"> {
12
- checked: boolean;
13
- className?: string;
14
- icon?: string;
15
- pending?: boolean;
16
- }
17
- /**
18
- * Props of `Checkbox`.
19
- */
20
- export interface CheckboxProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onChange">, Omit<CheckboxIndicatorProps, "className"> {
21
- children?: ReactNode;
22
- classNames?: PartClassNames<"checkbox">;
23
- onCheckedChange?: (checked: boolean) => void;
24
- ref?: Ref<HTMLButtonElement>;
25
- }
26
- /**
27
- * Variant props of the input field.
28
- */
29
- export type InputVariants = PartProps<"input", "field">;
30
- /**
31
- * Props of `Input`.
32
- */
33
- export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size">, InputVariants {
34
- ref?: Ref<HTMLInputElement>;
35
- }
36
- /**
37
- * Props of `Textarea`.
38
- */
39
- export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, InputVariants {
40
- maxHeight?: number;
41
- minHeight?: number;
42
- ref?: Ref<HTMLTextAreaElement>;
43
- }
44
- /**
45
- * One option of a `SegmentedControl`.
46
- */
47
- export interface SegmentedItem<K extends string> {
48
- count?: number;
49
- icon?: string;
50
- key: K;
51
- label: ReactNode;
52
- disabled?: boolean;
53
- }
54
- /**
55
- * Variant props of the segmented control.
56
- */
57
- export type SegmentedControlVariants = Omit<PartsProps<"segmented", "root" | "segment" | "pill">, "active">;
58
- /**
59
- * Props of `SegmentedControl`.
60
- */
61
- export interface SegmentedControlProps<K extends string> extends SegmentedControlVariants {
62
- ariaLabel?: string;
63
- className?: string;
64
- classNames?: PartClassNames<"segmented">;
65
- items: readonly SegmentedItem<K>[];
66
- onChange: (key: K) => void;
67
- value: K;
68
- iconSize?: number;
69
- }
70
- /**
71
- * One option of a `Select`.
72
- */
73
- export interface SelectOption<T extends string = string> {
74
- description?: ReactNode;
75
- disabled?: boolean;
76
- icon?: string;
77
- label: ReactNode;
78
- value: T;
79
- }
80
- /**
81
- * Per-part class names of the select.
82
- */
83
- export type SelectClassNames = PartClassNames<"select"> & {
84
- content?: string;
85
- };
86
- /**
87
- * Variant props of the select.
88
- */
89
- export type SelectVariants = PartsProps<"select", "trigger" | "menu" | "option">;
90
- /**
91
- * Props of `Select`.
92
- */
93
- export interface SelectProps<T extends string = string> extends SelectVariants {
94
- ariaLabel?: string;
95
- className?: string;
96
- classNames?: SelectClassNames;
97
- collisionPadding?: number;
98
- defaultValue?: T;
99
- disabled?: boolean;
100
- empty?: ReactNode;
101
- floatingProps?: HTMLAttributes<HTMLDivElement> & DataAttributes;
102
- name?: string;
103
- offset?: number;
104
- onChange?: (value: T, option: SelectOption<T>) => void;
105
- options: readonly SelectOption<T>[];
106
- placeholder?: ReactNode;
107
- placement?: "inline" | "popover";
108
- value?: T;
109
- }
110
- /**
111
- * The measured position of a select's trigger, used to place its menu.
112
- */
113
- export interface Anchor {
114
- edge: number;
115
- left: number;
116
- maxHeight: number;
117
- up: boolean;
118
- width: number;
119
- }
120
- /**
121
- * Variant props of the switch.
122
- */
123
- export type SwitchVariants = PartsProps<"switch", "track" | "thumb">;
124
- /**
125
- * Props of `Switch`.
126
- */
127
- export interface SwitchProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onChange">, SwitchVariants {
128
- checked?: boolean;
129
- classNames?: PartClassNames<"switch">;
130
- onCheckedChange?: (checked: boolean) => void;
131
- ref?: Ref<HTMLButtonElement>;
132
- }
133
- //# sourceMappingURL=types-controls.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types-controls.d.ts","sourceRoot":"","sources":["../../../src/react/ui/types-controls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,cAAc,EACd,mBAAmB,EACnB,SAAS,EACT,GAAG,EACH,sBAAsB,EACvB,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EACT,UAAU,EACX,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAClD,gBAAgB,EAChB,SAAS,CACV;IACC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,aACf,SACE,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,EACzD,IAAI,CAAC,sBAAsB,EAAE,WAAW,CAAC;IAC3C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IACxC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,EAAE,aAAa;IAC1E,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,aACf,SAAQ,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,aAAa;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,GAAG,CAAC,mBAAmB,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,MAAM;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,CAAC,CAAC;IACP,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC,EACpD,QAAQ,CACT,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,qBAAqB,CACpC,CAAC,SAAS,MAAM,CAChB,SAAQ,wBAAwB;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;IACzC,KAAK,EAAE,SAAS,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;IACnC,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC;IAC3B,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IACrD,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,CAAC,CAAC;CACV;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,CACrC,QAAQ,EACR,SAAS,GAAG,MAAM,GAAG,QAAQ,CAC9B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,cAAc;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,CAAC,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,aAAa,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,cAAc,CAAC;IAChE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IACvD,OAAO,EAAE,SAAS,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;IACpC,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IACjC,KAAK,CAAC,EAAE,CAAC,CAAC;CACX;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,WACf,SACE,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,EACzD,cAAc;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;IACtC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;CAC9B"}
@@ -1,65 +0,0 @@
1
- import { type RefObject } from "react";
2
- import type { PillBox, ScrollState } from "./types";
3
- /**
4
- * Up to two uppercase initials for a name, or "?" when there is none.
5
- */
6
- export declare function initialsOf(name?: string): string;
7
- export declare const EDGE_TOLERANCE = 4;
8
- export declare const DRAG_THRESHOLD = 5;
9
- export declare const SCROLL_STEP = 0.8;
10
- /**
11
- * Default selector for the element inside a carousel slide that the clip follows.
12
- */
13
- export declare const FRAME_SELECTOR = "[data-carousel-frame]";
14
- /**
15
- * Whether a horizontal track can scroll further left and right.
16
- */
17
- export declare function readScroll(track: HTMLElement): ScrollState;
18
- /**
19
- * The scrollLeft a carousel should glide to for one step in a direction, snapping to slide edges.
20
- */
21
- export declare function glideTarget(track: HTMLElement, direction: -1 | 1): number;
22
- /**
23
- * A CSS clip-path that rounds the corners of a carousel frame inside its track, or null when not needed.
24
- */
25
- export declare function rackClip(track: HTMLElement, selector?: string): string | null;
26
- /**
27
- * Lets a mouse drag scroll the referenced horizontal track, suppressing the click that ends a drag.
28
- */
29
- export declare function useDragScroll(ref: RefObject<HTMLElement | null>): void;
30
- export declare function watchDistance(frame: HTMLElement): () => void;
31
- export declare const INSTANT: {
32
- readonly duration: 0;
33
- };
34
- export declare const HIGHLIGHT_STYLE: {
35
- readonly inset: 0;
36
- readonly pointerEvents: "none";
37
- readonly position: "absolute";
38
- };
39
- export declare const PILL_STYLE: {
40
- readonly left: 0;
41
- readonly pointerEvents: "none";
42
- readonly position: "absolute";
43
- };
44
- export declare const PILL_BOX_STYLE: {
45
- readonly top: 0;
46
- readonly left: 0;
47
- readonly pointerEvents: "none";
48
- readonly position: "absolute";
49
- };
50
- /**
51
- * Measures the element matching `selector` inside a list so a pill can slide to it.
52
- * Remeasures when `key` changes.
53
- */
54
- export declare function useSlidingPill<T extends HTMLElement>(selector: string, key: unknown, { wrapping }?: {
55
- wrapping?: boolean;
56
- }): {
57
- box: PillBox | null;
58
- ref: RefObject<T | null>;
59
- };
60
- export declare const noSubscribe: () => () => void;
61
- export declare const readHost: () => HTMLElement;
62
- export declare const noHost: () => null;
63
- export declare const canAnchor: () => boolean;
64
- export declare const cannotAnchor: () => boolean;
65
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/react/ui/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEpD;;GAEG;AACH,wBAAgB,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAKhD;AAED,eAAO,MAAM,cAAc,IAAI,CAAC;AAEhC,eAAO,MAAM,cAAc,IAAI,CAAC;AAEhC,eAAO,MAAM,WAAW,MAAM,CAAC;AAK/B;;GAEG;AACH,eAAO,MAAM,cAAc,0BAA0B,CAAC;AAEtD;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,WAAW,GAAG,WAAW,CAM1D;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,CA8BzE;AAqCD;;GAEG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,WAAW,EAClB,QAAQ,SAAiB,GACxB,MAAM,GAAG,IAAI,CAaf;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,IAAI,CA+CtE;AAMD,wBAAgB,aAAa,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,IAAI,CAc5D;AAED,eAAO,MAAM,OAAO;;CAA2B,CAAC;AAEhD,eAAO,MAAM,eAAe;;;;CAIlB,CAAC;AAEX,eAAO,MAAM,UAAU;;;;CAIb,CAAC;AAEX,eAAO,MAAM,cAAc;;;;;CAAqC,CAAC;AAmBjE;;;GAGG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,WAAW,EAClD,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,OAAO,EACZ,EAAE,QAAgB,EAAE,GAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAO;;;EAuBlD;AAED,eAAO,MAAM,WAAW,kBAAiB,CAAC;AAE1C,eAAO,MAAM,QAAQ,mBAAsB,CAAC;AAE5C,eAAO,MAAM,MAAM,YAAa,CAAC;AAEjC,eAAO,MAAM,SAAS,eAGc,CAAC;AAErC,eAAO,MAAM,YAAY,eAAc,CAAC"}
@@ -1,210 +0,0 @@
1
- # Proposal: a navigation layer (`modules/navigation`)
2
-
3
- > Status: **approved and implemented** (see [modules/navigation.md](../modules/navigation.md)).
4
- > Changes from the draft: there is no `getArrival(pathname)`; read `useArrival()` and keep what you need in `useState(() => …)`. A module-level getter would need a global navigator, which the module avoids. `useNavigationHold` takes no deps array (it always calls the latest hold). `navigate` also takes `onCommit`, which the dock uses for its own commit-time work.
5
-
6
- ## 1. Why
7
-
8
- Guffin, the first app on the framework, wrote its own navigation layer
9
- (`src/motion/handoff.tsx`, ~250 lines) because the framework has the pieces
10
- only inside the dock:
11
-
12
- | Guffin needed | What it wrote | What the framework has |
13
- | :------------------------------------------------------------------------- | :------------------------------------------------------------------------------------ | :---------------------------------------------------------------------------- |
14
- | Prefetch any link on intent (180 ms hover, pointerdown, focus), warm 4 min | `watchIntent`, `warm`, a `Map` of warmed paths, `foresee` listeners | `useRoutePrefetch`, dock cards only, 90 ms, no shared cache |
15
- | A "trip": what the departing page hands the destination (palette, grade) | a module-level `trip`, `beginHandoff`, `handoffTo(pathname)`, `useDeparture` | nothing |
16
- | An exit animation before the route changes | a dock **guard** whose `when` resolves `false` after `wait` (a guard used as a delay) | guards can only block |
17
- | Give up when the route never commits, and undo the exit | `depart()` with two patience timers keyed off `DOCK_EVENTS.NAVIGATE_START` | the dock's transaction times out, but nobody outside the dock can react to it |
18
- | The same exit on the browser back button | a capture-phase `popstate` holder (`holdSteps`) that swallows and replays the event | nothing |
19
-
20
- Every app with page transitions will need the same five things. They belong in
21
- the framework, behind one state machine that the dock also uses.
22
-
23
- ## 2. Decision: a new module, read by the dock as a peer
24
-
25
- Two options were on the table:
26
-
27
- - **A. Lift the transaction machine into the kernel.** The kernel would own a
28
- router binding, DOM listeners (`popstate`, `pointerover`) and timers. That
29
- grows the microkernel with app-runtime concerns it has avoided so far, and
30
- every app would pay for it.
31
- - **B. A new `modules/navigation`.** ✅ Recommended.
32
-
33
- Why B:
34
-
35
- 1. It is installable and removable like every other module; `defaultModules`
36
- gets it, a subset install can leave it out.
37
- 2. The machine itself is a **pure factory** (`createNavigator`, no React, no
38
- Next imports), so it is unit-testable with a fake router and fake timers.
39
- 3. The dock lists `navigation` in `uses` and reads it with
40
- `useModule("navigation")`. **When the module is missing, the dock creates a
41
- private navigator from the same factory**, bound to its own router and
42
- without global listeners. So the dock keeps its pending state and timeouts
43
- in a subset install, and there is still only one implementation of the
44
- machine. This is the `definePeer` contract (the peer may be absent, the
45
- reader still works), with a working stand-in instead of an inert one.
46
- 4. Features that only want to read trips use `useOptionalNavigation()`, a
47
- `definePeer("navigation", inert)` whose inert runtime never has a trip.
48
-
49
- The dock's `routing/transactions.ts` reducer moves into
50
- `src/core/navigation/state.ts` (in 3.2 the navigator machine moved from
51
- `modules/navigation/` to `src/core/navigation/`). `useDockNavigation()` keeps its return shape
52
- (`activeTransaction`, `lastTransaction`, `cancelDock`, `navigate`, …), so
53
- `runtime/dock.tsx` does not change. `DOCK_TRANSACTION_*` and the transaction
54
- reducer types are removed (`DockTransaction` is now `NavigationTrip`);
55
- `DOCK_EVENTS.NAVIGATE_*` keep firing.
56
-
57
- ## 3. The model
58
-
59
- ```
60
- navigate(href, { payload }) popstate (back/forward)
61
- │ │
62
- ▼ ▼
63
- ┌──────────────── trip (one active at a time) ────────────────┐
64
- │ phase "leaving" ─ holds run (exit animations), capped │
65
- │ │ payload collected from providers │
66
- │ ▼ │
67
- │ phase "routing" ─ router.push / replayed popstate │
68
- │ │ patience timer (timeoutMs) │
69
- │ ▼ │
70
- │ settled: completed | cancelled | failed | timed-out │
71
- └──────────────────────────────────────────────────────────────┘
72
- │ trip.signal aborts on cancel / time-out
73
- ▼
74
- destination reads it: useArrival() within arrivalTtlMs
75
- ```
76
-
77
- - **Trip** = today's `DockTransaction` plus `href`, `phase`, `payload` and an
78
- `AbortSignal`. Same ids, same status strings, so the dock maps it 1:1.
79
- - A new trip **supersedes** the active one (cancelled, reason `superseded`), as
80
- today.
81
- - **Arrival**: the provider watches `usePathname()` (and, after a same-path
82
- push, `window.location` on the next frame, as the dock does now). A
83
- location change while the trip is `routing` completes it; while it is
84
- `leaving` it cancels it.
85
-
86
- ## 4. API sketch
87
-
88
- ### Engine (pure, `createNavigator(options)`)
89
-
90
- ```ts
91
- const navigator = createNavigator({ router, timeoutMs, maxHoldMs, now });
92
-
93
- navigator.navigate(href, { source?, replace?, scroll?, payload?, force?, guard? })
94
- // → Promise<{ ok: boolean; trip: NavigationTrip; blocked?: { message?: string } }>
95
- navigator.hold((trip) => Promise<void> | void, { history?: true }) // → unregister
96
- navigator.provide(key, valueOrGetter) // → unregister
97
- navigator.prefetch(href, { immediate?, kind? }) // shared warm cache
98
- navigator.onIntent((path, href) => void) // → unsubscribe
99
- navigator.arrive(locationKey) // called by the provider
100
- navigator.cancel(reason?)
101
- navigator.arrival(pathname) // the fresh trip that ended here, or null
102
- navigator.store // ExternalStore<{ active, last }>
103
- ```
104
-
105
- `guard` is the dock's hook to run its existing guard registry and
106
- confirmation surface inside the trip; app-wide blockers are out of scope (§7).
107
-
108
- ### React (`@omerdlw/base-framework/navigation`)
109
-
110
- | Export | Replaces in Guffin |
111
- | :-------------------------------------------- | :--------------------------------------------------------------- |
112
- | `navigationModule` | — |
113
- | `useNavigation()` / `useOptionalNavigation()` | `useRouter` + `depart` |
114
- | `useNavigationHold(fn, deps, options?)` | the guard-as-delay + `depart` + `onReturn` + `holdSteps` |
115
- | `useNavigationPayload(key, value)` | `useHeldPalette`, the `--grade` read in `beginHandoff` |
116
- | `useDeparture()` | `useDeparture(pathname)` |
117
- | `useArrival()` / `getArrival(pathname)` | `handoffTo(pathname)` (`getArrival` for `useState` initialisers) |
118
- | `useNavigationIntent(fn)` | `foresee` |
119
- | `configureNavigation(settings)` | the constants `DWELL`, `WARM_FOR`, `FRESH`, `isFilmPage` |
120
- | `NAVIGATION_EVENTS` | listening to `DOCK_EVENTS.NAVIGATE_START` |
121
-
122
- The payload is typed by augmentation, so the framework does not depend on
123
- ambient:
124
-
125
- ```ts
126
- declare module "@omerdlw/base-framework/navigation" {
127
- interface NavigationPayload {
128
- palette?: AmbientPalette | null;
129
- grade?: string | null;
130
- }
131
- }
132
- ```
133
-
134
- ### Settings (`configureNavigation`, same pattern as `configureAmbient`)
135
-
136
- | Setting | Default | Meaning |
137
- | :--------------- | :------- | :------------------------------------------------------------------------- |
138
- | `intent` | `true` | Document-level intent prefetch for `a[href]`; `false` turns it off. |
139
- | `intent.delayMs` | `180` | Mouse dwell before prefetching. `pointerdown` and `focusin` are immediate. |
140
- | `intent.match` | internal | `(href) => boolean`, which links to warm (Guffin: film pages). |
141
- | `prefetchKind` | `"full"` | Passed to `router.prefetch`. |
142
- | `prefetchTtlMs` | `240000` | How long a warmed path is not prefetched again. |
143
- | `arrivalTtlMs` | `20000` | How long a trip stays readable by `useArrival`. |
144
- | `maxHoldMs` | `5000` | Cap on holds; past it the trip commits anyway. |
145
- | `timeoutMs` | `15000` | Patience after commit (today's `DOCK_TRANSACTION_TIMEOUT_MS`). |
146
-
147
- Links opt out with `data-prefetch="false"`.
148
-
149
- ## 5. Guffin after the move (illustrative, Guffin is not edited here)
150
-
151
- ```tsx
152
- // stage.tsx: the exit, for dock clicks and the back button alike
153
- useNavigationHold(
154
- (trip) => {
155
- setLeaving(true);
156
- trip.signal.addEventListener("abort", () => setLeaving(false));
157
- return delay(wait * 1000);
158
- },
159
- [wait],
160
- { enabled: !reduced },
161
- );
162
- useNavigationPayload("grade", () => readGrade()); // getter, read at departure
163
-
164
- // movie-page-chrome.tsx
165
- useNavigationPayload("palette", lit);
166
- const [inherited] = useState(() => getArrival(pathname)?.payload.palette);
167
-
168
- // loading.tsx
169
- const arrival = useArrival();
170
- return arrival ? <Dark palette={arrival.payload.palette ?? null} /> : children;
171
- ```
172
-
173
- ## 6. Next.js App Router notes
174
-
175
- - Everything is a client module (`"use client"` entry, like the other
176
- modules). The package is `sideEffects: false`, so listeners are installed in
177
- the provider's effects, never at import.
178
- - Back/forward: a capture-phase `popstate` listener on `window` runs before
179
- Next's own listener. With holds registered it swallows the event
180
- (`stopImmediatePropagation`), keeps `event.state`, and after the holds
181
- replays `new PopStateEvent("popstate", { state })` so Next restores the
182
- route itself. A second step back to the origin during the hold cancels the
183
- trip. Without holds the event is left alone and only recorded as a trip.
184
- - No `useSearchParams` in the provider (it would force a client-side bailout
185
- on static routes); search/hash arrivals use the location check the dock
186
- already does.
187
- - `router.prefetch(href, { kind })` is called defensively; a throw drops the
188
- path from the warm cache.
189
-
190
- ## 7. Out of scope for this change
191
-
192
- - App-wide blockers (`navigation.block`): the dock's guards stay where they
193
- are and run through the `guard` option.
194
- - A `<NavigationLink>` that routes plain link clicks through `navigate()`.
195
- `next/link` clicks still prefetch on intent and are recorded on arrival, but
196
- get no exit hold. Follow-up if wanted.
197
- - Scroll restoration and the dock's continuity store.
198
-
199
- ## 8. Plan
200
-
201
- 1. `src/modules/navigation/` with the canonical files (`index`, `types`,
202
- `constants`, `utils`, `state`, `context.tsx`, `hooks.ts`, `module.tsx`), a
203
- `tsup` entry and a `package.json` export.
204
- 2. Dock: `routing/navigation.ts` and `routing/transactions.ts` move onto the
205
- navigator; `cards.tsx` prefetch goes through it; `uses` gains
206
- `navigation`. `runtime/dock.tsx`, `display.ts` untouched.
207
- 3. Tests: `tests/modules/navigation.test.ts` (engine with fake timers,
208
- provider + popstate with happy-dom), existing dock tests unchanged, a dist
209
- smoke check that the module and its context are one object.
210
- 4. Docs: `docs/modules/navigation.md`, index row, dock page cross-links.
File without changes
File without changes