@omerdlw/base-framework 3.0.1 → 3.2.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 (1132) hide show
  1. package/MIGRATION.md +75 -0
  2. package/README.md +33 -25
  3. package/dist/ambient/index.d.ts +1 -0
  4. package/dist/ambient/index.js +14 -0
  5. package/dist/ambient/server/index.d.ts +1 -0
  6. package/dist/ambient/server/index.js +238 -0
  7. package/dist/ambient/server/index.js.map +1 -0
  8. package/dist/ambient/worker/index.d.ts +1 -0
  9. package/dist/ambient/worker/index.js +143 -0
  10. package/dist/ambient/worker/index.js.map +1 -0
  11. package/dist/background/index.d.ts +1 -0
  12. package/dist/background/index.js +13 -0
  13. package/dist/chunk-2223J34C.js +850 -0
  14. package/dist/chunk-2223J34C.js.map +1 -0
  15. package/dist/chunk-2LGI33JP.js +832 -0
  16. package/dist/chunk-2LGI33JP.js.map +1 -0
  17. package/dist/chunk-37OBXNEO.js +116 -0
  18. package/dist/chunk-37OBXNEO.js.map +1 -0
  19. package/dist/chunk-4OQGXZIH.js +1435 -0
  20. package/dist/chunk-4OQGXZIH.js.map +1 -0
  21. package/dist/chunk-5H6FZW3N.js +535 -0
  22. package/dist/chunk-5H6FZW3N.js.map +1 -0
  23. package/dist/chunk-7RSRDKYE.js +22 -0
  24. package/dist/chunk-7RSRDKYE.js.map +1 -0
  25. package/dist/chunk-AYUEZPAN.js +15762 -0
  26. package/dist/chunk-AYUEZPAN.js.map +1 -0
  27. package/dist/chunk-BCFJSPTI.js +261 -0
  28. package/dist/chunk-BCFJSPTI.js.map +1 -0
  29. package/dist/chunk-BMFHS3GV.js +118 -0
  30. package/dist/chunk-BMFHS3GV.js.map +1 -0
  31. package/dist/chunk-CRKJAACG.js +81 -0
  32. package/dist/chunk-CRKJAACG.js.map +1 -0
  33. package/dist/chunk-CT4UILO2.js +537 -0
  34. package/dist/chunk-CT4UILO2.js.map +1 -0
  35. package/dist/chunk-ESD5EQ5H.js +178 -0
  36. package/dist/chunk-ESD5EQ5H.js.map +1 -0
  37. package/dist/chunk-GCHQ5OC4.js +460 -0
  38. package/dist/chunk-GCHQ5OC4.js.map +1 -0
  39. package/dist/chunk-GT4COZI7.js +110 -0
  40. package/dist/chunk-GT4COZI7.js.map +1 -0
  41. package/dist/chunk-H6HRU3XN.js +567 -0
  42. package/dist/chunk-H6HRU3XN.js.map +1 -0
  43. package/dist/chunk-J3VTDBC6.js +14 -0
  44. package/dist/chunk-J3VTDBC6.js.map +1 -0
  45. package/dist/chunk-LTO77WSO.js +140 -0
  46. package/dist/chunk-LTO77WSO.js.map +1 -0
  47. package/dist/chunk-MCYHKFZL.js +17 -0
  48. package/dist/chunk-MCYHKFZL.js.map +1 -0
  49. package/dist/chunk-NHOJWICA.js +2367 -0
  50. package/dist/chunk-NHOJWICA.js.map +1 -0
  51. package/dist/chunk-QMFV53PP.js +1766 -0
  52. package/dist/chunk-QMFV53PP.js.map +1 -0
  53. package/dist/chunk-RDYYP36I.js +27 -0
  54. package/dist/chunk-RDYYP36I.js.map +1 -0
  55. package/dist/chunk-RF2YGILF.js +656 -0
  56. package/dist/chunk-RF2YGILF.js.map +1 -0
  57. package/dist/chunk-RTCJ35UC.js +825 -0
  58. package/dist/chunk-RTCJ35UC.js.map +1 -0
  59. package/dist/chunk-TUUGWQY5.js +3488 -0
  60. package/dist/chunk-TUUGWQY5.js.map +1 -0
  61. package/dist/chunk-WXEOP6Z4.js +577 -0
  62. package/dist/chunk-WXEOP6Z4.js.map +1 -0
  63. package/dist/chunk-WYVA6AN5.js +590 -0
  64. package/dist/chunk-WYVA6AN5.js.map +1 -0
  65. package/dist/chunk-Y2Q74PJP.js +537 -0
  66. package/dist/chunk-Y2Q74PJP.js.map +1 -0
  67. package/dist/chunk-ZFTQY7OF.js +139 -0
  68. package/dist/chunk-ZFTQY7OF.js.map +1 -0
  69. package/dist/chunk-ZSNP26VU.js +493 -0
  70. package/dist/chunk-ZSNP26VU.js.map +1 -0
  71. package/dist/context-menu/index.d.ts +1 -0
  72. package/dist/context-menu/index.js +19 -0
  73. package/dist/controls/index.d.ts +1 -0
  74. package/dist/controls/index.js +10 -0
  75. package/dist/core/error/boundary.d.ts +27 -0
  76. package/dist/core/error/boundary.d.ts.map +1 -0
  77. package/dist/core/error/constants.d.ts +33 -0
  78. package/dist/core/error/constants.d.ts.map +1 -0
  79. package/dist/core/error/index.d.ts +9 -0
  80. package/dist/core/error/index.d.ts.map +1 -0
  81. package/dist/core/error/listener.d.ts +6 -0
  82. package/dist/core/error/listener.d.ts.map +1 -0
  83. package/dist/core/error/reporter.d.ts +49 -0
  84. package/dist/core/error/reporter.d.ts.map +1 -0
  85. package/dist/core/error/theme.d.ts +10 -0
  86. package/dist/core/error/theme.d.ts.map +1 -0
  87. package/dist/core/error/types.d.ts +128 -0
  88. package/dist/core/error/types.d.ts.map +1 -0
  89. package/dist/core/error/utils.d.ts +55 -0
  90. package/dist/core/error/utils.d.ts.map +1 -0
  91. package/dist/core/kernel/adapters.d.ts +9 -0
  92. package/dist/core/kernel/adapters.d.ts.map +1 -0
  93. package/dist/core/kernel/compose.d.ts +21 -0
  94. package/dist/core/kernel/compose.d.ts.map +1 -0
  95. package/dist/core/kernel/constants.d.ts +42 -0
  96. package/dist/core/kernel/constants.d.ts.map +1 -0
  97. package/dist/core/kernel/handlers.d.ts +7 -0
  98. package/dist/core/kernel/handlers.d.ts.map +1 -0
  99. package/dist/core/kernel/hooks.d.ts +13 -0
  100. package/dist/core/kernel/hooks.d.ts.map +1 -0
  101. package/dist/core/kernel/index.d.ts +15 -0
  102. package/dist/core/kernel/index.d.ts.map +1 -0
  103. package/dist/core/kernel/installed.d.ts +28 -0
  104. package/dist/core/kernel/installed.d.ts.map +1 -0
  105. package/dist/core/kernel/module.d.ts +57 -0
  106. package/dist/core/kernel/module.d.ts.map +1 -0
  107. package/dist/core/kernel/operations-records.d.ts +25 -0
  108. package/dist/core/kernel/operations-records.d.ts.map +1 -0
  109. package/dist/core/kernel/operations-resolve.d.ts +5 -0
  110. package/dist/core/kernel/operations-resolve.d.ts.map +1 -0
  111. package/dist/core/kernel/operations.d.ts +23 -0
  112. package/dist/core/kernel/operations.d.ts.map +1 -0
  113. package/dist/core/kernel/page-controller.d.ts +20 -0
  114. package/dist/core/kernel/page-controller.d.ts.map +1 -0
  115. package/dist/core/kernel/provider.d.ts +29 -0
  116. package/dist/core/kernel/provider.d.ts.map +1 -0
  117. package/dist/core/kernel/runtime.d.ts.map +1 -0
  118. package/dist/core/kernel/schema.d.ts +13 -0
  119. package/dist/core/kernel/schema.d.ts.map +1 -0
  120. package/dist/core/kernel/stabilize.d.ts +13 -0
  121. package/dist/core/kernel/stabilize.d.ts.map +1 -0
  122. package/dist/core/kernel/store-batch.d.ts +17 -0
  123. package/dist/core/kernel/store-batch.d.ts.map +1 -0
  124. package/dist/core/kernel/store-entries.d.ts +6 -0
  125. package/dist/core/kernel/store-entries.d.ts.map +1 -0
  126. package/dist/core/kernel/store-handles.d.ts +4 -0
  127. package/dist/core/kernel/store-handles.d.ts.map +1 -0
  128. package/dist/core/kernel/store-registration.d.ts +14 -0
  129. package/dist/core/kernel/store-registration.d.ts.map +1 -0
  130. package/dist/core/kernel/store-snapshots.d.ts +14 -0
  131. package/dist/core/kernel/store-snapshots.d.ts.map +1 -0
  132. package/dist/core/kernel/store-subscriptions.d.ts +16 -0
  133. package/dist/core/kernel/store-subscriptions.d.ts.map +1 -0
  134. package/dist/core/kernel/store.d.ts +8 -0
  135. package/dist/core/kernel/store.d.ts.map +1 -0
  136. package/dist/core/kernel/types-modules.d.ts +82 -0
  137. package/dist/core/kernel/types-modules.d.ts.map +1 -0
  138. package/dist/core/kernel/types-page.d.ts +67 -0
  139. package/dist/core/kernel/types-page.d.ts.map +1 -0
  140. package/dist/core/kernel/types-store.d.ts +71 -0
  141. package/dist/core/kernel/types-store.d.ts.map +1 -0
  142. package/dist/core/kernel/types.d.ts +169 -0
  143. package/dist/core/kernel/types.d.ts.map +1 -0
  144. package/dist/core/kernel/utils.d.ts +21 -0
  145. package/dist/core/kernel/utils.d.ts.map +1 -0
  146. package/dist/core/navigation/constants.d.ts +48 -0
  147. package/dist/core/navigation/constants.d.ts.map +1 -0
  148. package/dist/core/navigation/navigator-defaults.d.ts +4 -0
  149. package/dist/core/navigation/navigator-defaults.d.ts.map +1 -0
  150. package/dist/core/navigation/navigator-holds.d.ts +8 -0
  151. package/dist/core/navigation/navigator-holds.d.ts.map +1 -0
  152. package/dist/core/navigation/navigator-patience.d.ts +15 -0
  153. package/dist/core/navigation/navigator-patience.d.ts.map +1 -0
  154. package/dist/core/navigation/navigator-payload.d.ts +6 -0
  155. package/dist/core/navigation/navigator-payload.d.ts.map +1 -0
  156. package/dist/core/navigation/navigator-prefetch.d.ts +13 -0
  157. package/dist/core/navigation/navigator-prefetch.d.ts.map +1 -0
  158. package/dist/core/navigation/navigator.d.ts +7 -0
  159. package/dist/core/navigation/navigator.d.ts.map +1 -0
  160. package/dist/core/navigation/settings.d.ts +12 -0
  161. package/dist/core/navigation/settings.d.ts.map +1 -0
  162. package/dist/core/navigation/state.d.ts +26 -0
  163. package/dist/core/navigation/state.d.ts.map +1 -0
  164. package/dist/core/navigation/types.d.ts +194 -0
  165. package/dist/core/navigation/types.d.ts.map +1 -0
  166. package/dist/core/navigation/utils.d.ts +18 -0
  167. package/dist/core/navigation/utils.d.ts.map +1 -0
  168. package/dist/core/provider/index.d.ts +31 -0
  169. package/dist/core/provider/index.d.ts.map +1 -0
  170. package/dist/dock/index.d.ts +1 -0
  171. package/dist/dock/index.js +18 -0
  172. package/dist/error/index.d.ts +1 -9
  173. package/dist/error/index.js +8 -5
  174. package/dist/events/index.d.ts +1 -0
  175. package/dist/events/index.js +83 -0
  176. package/dist/events/index.js.map +1 -0
  177. package/dist/foundation/events/index.d.ts +67 -0
  178. package/dist/foundation/events/index.d.ts.map +1 -0
  179. package/dist/foundation/recipes/anatomy.d.ts +139 -0
  180. package/dist/foundation/recipes/anatomy.d.ts.map +1 -0
  181. package/dist/foundation/recipes/cn.d.ts +17 -0
  182. package/dist/foundation/recipes/cn.d.ts.map +1 -0
  183. package/dist/foundation/recipes/define.d.ts +134 -0
  184. package/dist/foundation/recipes/define.d.ts.map +1 -0
  185. package/dist/foundation/recipes/index.d.ts +11 -0
  186. package/dist/foundation/recipes/index.d.ts.map +1 -0
  187. package/dist/foundation/recipes/recipe.d.ts +97 -0
  188. package/dist/foundation/recipes/recipe.d.ts.map +1 -0
  189. package/dist/foundation/recipes/split.d.ts +10 -0
  190. package/dist/foundation/recipes/split.d.ts.map +1 -0
  191. package/dist/foundation/result/index.d.ts +98 -0
  192. package/dist/foundation/result/index.d.ts.map +1 -0
  193. package/dist/foundation/utils/dom.d.ts +19 -0
  194. package/dist/foundation/utils/dom.d.ts.map +1 -0
  195. package/dist/foundation/utils/index.d.ts +17 -0
  196. package/dist/foundation/utils/index.d.ts.map +1 -0
  197. package/dist/foundation/utils/number.d.ts +9 -0
  198. package/dist/foundation/utils/number.d.ts.map +1 -0
  199. package/dist/foundation/utils/object.d.ts +17 -0
  200. package/dist/foundation/utils/object.d.ts.map +1 -0
  201. package/dist/foundation/utils/report.d.ts +18 -0
  202. package/dist/foundation/utils/report.d.ts.map +1 -0
  203. package/dist/foundation/utils/scheduler.d.ts +52 -0
  204. package/dist/foundation/utils/scheduler.d.ts.map +1 -0
  205. package/dist/foundation/utils/store.d.ts +21 -0
  206. package/dist/foundation/utils/store.d.ts.map +1 -0
  207. package/dist/foundation/utils/string.d.ts +18 -0
  208. package/dist/foundation/utils/string.d.ts.map +1 -0
  209. package/dist/foundation/utils/tempo.d.ts +61 -0
  210. package/dist/foundation/utils/tempo.d.ts.map +1 -0
  211. package/dist/foundation/utils/timing.d.ts +13 -0
  212. package/dist/foundation/utils/timing.d.ts.map +1 -0
  213. package/dist/foundation/utils/transform.d.ts +17 -0
  214. package/dist/foundation/utils/transform.d.ts.map +1 -0
  215. package/dist/foundation/utils/user-message.d.ts +32 -0
  216. package/dist/foundation/utils/user-message.d.ts.map +1 -0
  217. package/dist/hooks/index.d.ts +1 -10
  218. package/dist/hooks/index.js +3 -1
  219. package/dist/index.d.ts +8 -10
  220. package/dist/index.d.ts.map +1 -1
  221. package/dist/index.js +25 -20
  222. package/dist/kernel/index.d.ts +1 -15
  223. package/dist/kernel/index.js +5 -2
  224. package/dist/loading/index.d.ts +1 -0
  225. package/dist/loading/index.js +12 -0
  226. package/dist/media/index.d.ts +1 -0
  227. package/dist/media/index.js +9 -0
  228. package/dist/modal/index.d.ts +1 -0
  229. package/dist/modal/index.js +310 -0
  230. package/dist/modal/index.js.map +1 -0
  231. package/dist/modules/ambient/analyze-bounds.d.ts +12 -0
  232. package/dist/modules/ambient/analyze-bounds.d.ts.map +1 -0
  233. package/dist/modules/ambient/analyze-clusters.d.ts +14 -0
  234. package/dist/modules/ambient/analyze-clusters.d.ts.map +1 -0
  235. package/dist/modules/ambient/analyze-measures.d.ts +22 -0
  236. package/dist/modules/ambient/analyze-measures.d.ts.map +1 -0
  237. package/dist/modules/ambient/analyze-swatches.d.ts +16 -0
  238. package/dist/modules/ambient/analyze-swatches.d.ts.map +1 -0
  239. package/dist/modules/ambient/analyze.d.ts +9 -49
  240. package/dist/modules/ambient/analyze.d.ts.map +1 -1
  241. package/dist/modules/ambient/constants.d.ts +4 -1
  242. package/dist/modules/ambient/constants.d.ts.map +1 -1
  243. package/dist/modules/ambient/context.d.ts +6 -0
  244. package/dist/modules/ambient/context.d.ts.map +1 -1
  245. package/dist/modules/ambient/dom.d.ts +23 -12
  246. package/dist/modules/ambient/dom.d.ts.map +1 -1
  247. package/dist/modules/ambient/extractor.d.ts +6 -4
  248. package/dist/modules/ambient/extractor.d.ts.map +1 -1
  249. package/dist/modules/ambient/hooks.d.ts +12 -0
  250. package/dist/modules/ambient/hooks.d.ts.map +1 -1
  251. package/dist/modules/ambient/index.d.ts +2 -2
  252. package/dist/modules/ambient/index.d.ts.map +1 -1
  253. package/dist/modules/ambient/module.d.ts +12 -1
  254. package/dist/modules/ambient/module.d.ts.map +1 -1
  255. package/dist/modules/ambient/oklab.d.ts +18 -13
  256. package/dist/modules/ambient/oklab.d.ts.map +1 -1
  257. package/dist/modules/ambient/pipeline.d.ts +0 -7
  258. package/dist/modules/ambient/pipeline.d.ts.map +1 -1
  259. package/dist/modules/ambient/quantize.d.ts +2 -9
  260. package/dist/modules/ambient/quantize.d.ts.map +1 -1
  261. package/dist/modules/ambient/server/address.d.ts +8 -3
  262. package/dist/modules/ambient/server/address.d.ts.map +1 -1
  263. package/dist/modules/ambient/server/index.d.ts +20 -23
  264. package/dist/modules/ambient/server/index.d.ts.map +1 -1
  265. package/dist/modules/ambient/settings.d.ts +23 -3
  266. package/dist/modules/ambient/settings.d.ts.map +1 -1
  267. package/dist/modules/ambient/types.d.ts +98 -36
  268. package/dist/modules/ambient/types.d.ts.map +1 -1
  269. package/dist/modules/ambient/worker/index.d.ts +16 -1
  270. package/dist/modules/ambient/worker/index.d.ts.map +1 -1
  271. package/dist/modules/background/components/background-gradients.d.ts +8 -0
  272. package/dist/modules/background/components/background-gradients.d.ts.map +1 -0
  273. package/dist/modules/background/components/edge-gradient.d.ts +9 -0
  274. package/dist/modules/background/components/edge-gradient.d.ts.map +1 -0
  275. package/dist/modules/background/components/native-video.d.ts +4 -0
  276. package/dist/modules/background/components/native-video.d.ts.map +1 -0
  277. package/dist/modules/background/components/noise-overlay.d.ts +11 -0
  278. package/dist/modules/background/components/noise-overlay.d.ts.map +1 -0
  279. package/dist/modules/background/components/overlay.d.ts +6 -0
  280. package/dist/modules/background/components/overlay.d.ts.map +1 -0
  281. package/dist/modules/background/components/solid-overlay.d.ts +10 -0
  282. package/dist/modules/background/components/solid-overlay.d.ts.map +1 -0
  283. package/dist/modules/background/constants.d.ts +14 -1
  284. package/dist/modules/background/constants.d.ts.map +1 -1
  285. package/dist/modules/background/context.d.ts +7 -0
  286. package/dist/modules/background/context.d.ts.map +1 -1
  287. package/dist/modules/background/hooks/use-background-media-source.d.ts +4 -0
  288. package/dist/modules/background/hooks/use-background-media-source.d.ts.map +1 -0
  289. package/dist/modules/background/hooks/use-background-motion-model.d.ts +15 -0
  290. package/dist/modules/background/hooks/use-background-motion-model.d.ts.map +1 -0
  291. package/dist/modules/background/hooks/use-background-overlay-model.d.ts +929 -0
  292. package/dist/modules/background/hooks/use-background-overlay-model.d.ts.map +1 -0
  293. package/dist/modules/background/hooks/use-native-video-model.d.ts +22 -0
  294. package/dist/modules/background/hooks/use-native-video-model.d.ts.map +1 -0
  295. package/dist/modules/background/hooks.d.ts +20 -1
  296. package/dist/modules/background/hooks.d.ts.map +1 -1
  297. package/dist/modules/background/index.d.ts +7 -7
  298. package/dist/modules/background/index.d.ts.map +1 -1
  299. package/dist/modules/background/lib/theme.d.ts +4 -0
  300. package/dist/modules/background/lib/theme.d.ts.map +1 -0
  301. package/dist/modules/background/model/override.d.ts +14 -0
  302. package/dist/modules/background/model/override.d.ts.map +1 -0
  303. package/dist/modules/background/model/playback.d.ts +25 -0
  304. package/dist/modules/background/model/playback.d.ts.map +1 -0
  305. package/dist/modules/background/model/state.d.ts +31 -0
  306. package/dist/modules/background/model/state.d.ts.map +1 -0
  307. package/dist/modules/background/model/video-frame.d.ts +31 -0
  308. package/dist/modules/background/model/video-frame.d.ts.map +1 -0
  309. package/dist/modules/background/model/visual.d.ts +932 -0
  310. package/dist/modules/background/model/visual.d.ts.map +1 -0
  311. package/dist/modules/background/module.d.ts +11 -0
  312. package/dist/modules/background/module.d.ts.map +1 -1
  313. package/dist/modules/background/motion.d.ts.map +1 -1
  314. package/dist/modules/background/types.d.ts +66 -10
  315. package/dist/modules/background/types.d.ts.map +1 -1
  316. package/dist/modules/background/youtube/components/player.d.ts +7 -0
  317. package/dist/modules/background/youtube/components/player.d.ts.map +1 -0
  318. package/dist/modules/background/youtube/hooks/use-youtube-background-player-model.d.ts +27 -0
  319. package/dist/modules/background/youtube/hooks/use-youtube-background-player-model.d.ts.map +1 -0
  320. package/dist/modules/background/youtube/hooks/use-youtube-iframe-player.d.ts +20 -0
  321. package/dist/modules/background/youtube/hooks/use-youtube-iframe-player.d.ts.map +1 -0
  322. package/dist/modules/background/youtube/hooks/use-youtube-stream-sources.d.ts +8 -0
  323. package/dist/modules/background/youtube/hooks/use-youtube-stream-sources.d.ts.map +1 -0
  324. package/dist/modules/background/youtube/hooks/use-youtube-video-sync.d.ts +16 -0
  325. package/dist/modules/background/youtube/hooks/use-youtube-video-sync.d.ts.map +1 -0
  326. package/dist/modules/background/youtube/lib/audio.d.ts +17 -0
  327. package/dist/modules/background/youtube/lib/audio.d.ts.map +1 -0
  328. package/dist/modules/background/youtube/lib/iframe-engine.d.ts +29 -0
  329. package/dist/modules/background/youtube/lib/iframe-engine.d.ts.map +1 -0
  330. package/dist/modules/background/youtube/lib/iframe-proxy.d.ts +47 -0
  331. package/dist/modules/background/youtube/lib/iframe-proxy.d.ts.map +1 -0
  332. package/dist/modules/background/youtube/lib/iframe.d.ts +47 -0
  333. package/dist/modules/background/youtube/lib/iframe.d.ts.map +1 -0
  334. package/dist/modules/background/youtube/lib/parse.d.ts +36 -0
  335. package/dist/modules/background/youtube/lib/parse.d.ts.map +1 -0
  336. package/dist/modules/background/youtube/lib/timing.d.ts +11 -0
  337. package/dist/modules/background/youtube/lib/timing.d.ts.map +1 -0
  338. package/dist/modules/background/youtube/lib/video-events.d.ts +53 -0
  339. package/dist/modules/background/youtube/lib/video-events.d.ts.map +1 -0
  340. package/dist/modules/context-menu/constants.d.ts +30 -1
  341. package/dist/modules/context-menu/constants.d.ts.map +1 -1
  342. package/dist/modules/context-menu/context.d.ts +10 -2
  343. package/dist/modules/context-menu/context.d.ts.map +1 -1
  344. package/dist/modules/context-menu/dom.d.ts +13 -0
  345. package/dist/modules/context-menu/dom.d.ts.map +1 -1
  346. package/dist/modules/context-menu/hooks.d.ts +32 -5
  347. package/dist/modules/context-menu/hooks.d.ts.map +1 -1
  348. package/dist/modules/context-menu/index.d.ts +1 -1
  349. package/dist/modules/context-menu/index.d.ts.map +1 -1
  350. package/dist/modules/context-menu/items.d.ts +25 -0
  351. package/dist/modules/context-menu/items.d.ts.map +1 -1
  352. package/dist/modules/context-menu/module.d.ts +6 -0
  353. package/dist/modules/context-menu/module.d.ts.map +1 -1
  354. package/dist/modules/context-menu/motion.d.ts.map +1 -1
  355. package/dist/modules/context-menu/overlay.d.ts +30 -8
  356. package/dist/modules/context-menu/overlay.d.ts.map +1 -1
  357. package/dist/modules/context-menu/resolver.d.ts +8 -0
  358. package/dist/modules/context-menu/resolver.d.ts.map +1 -1
  359. package/dist/modules/context-menu/state.d.ts +9 -0
  360. package/dist/modules/context-menu/state.d.ts.map +1 -1
  361. package/dist/modules/context-menu/types.d.ts +85 -9
  362. package/dist/modules/context-menu/types.d.ts.map +1 -1
  363. package/dist/modules/controls/constants.d.ts +18 -1
  364. package/dist/modules/controls/constants.d.ts.map +1 -1
  365. package/dist/modules/controls/entries.d.ts +23 -1
  366. package/dist/modules/controls/entries.d.ts.map +1 -1
  367. package/dist/modules/controls/hooks.d.ts +11 -1
  368. package/dist/modules/controls/hooks.d.ts.map +1 -1
  369. package/dist/modules/controls/layout.d.ts +17 -0
  370. package/dist/modules/controls/layout.d.ts.map +1 -1
  371. package/dist/modules/controls/module.d.ts +7 -1
  372. package/dist/modules/controls/module.d.ts.map +1 -1
  373. package/dist/modules/controls/overlay.d.ts +11 -1
  374. package/dist/modules/controls/overlay.d.ts.map +1 -1
  375. package/dist/modules/controls/types.d.ts +51 -2
  376. package/dist/modules/controls/types.d.ts.map +1 -1
  377. package/dist/modules/dock/components/badge.d.ts +5 -0
  378. package/dist/modules/dock/components/badge.d.ts.map +1 -0
  379. package/dist/modules/dock/components/breadcrumbs-card.d.ts +6 -0
  380. package/dist/modules/dock/components/breadcrumbs-card.d.ts.map +1 -0
  381. package/dist/modules/dock/components/card-banner.d.ts +4 -0
  382. package/dist/modules/dock/components/card-banner.d.ts.map +1 -0
  383. package/dist/modules/dock/components/card-header.d.ts +4 -0
  384. package/dist/modules/dock/components/card-header.d.ts.map +1 -0
  385. package/dist/modules/dock/components/card-item.d.ts +3 -0
  386. package/dist/modules/dock/components/card-item.d.ts.map +1 -0
  387. package/dist/modules/dock/components/command-bar.d.ts +7 -0
  388. package/dist/modules/dock/components/command-bar.d.ts.map +1 -0
  389. package/dist/modules/dock/components/description.d.ts +4 -0
  390. package/dist/modules/dock/components/description.d.ts.map +1 -0
  391. package/dist/modules/dock/components/dock.d.ts +4 -0
  392. package/dist/modules/dock/components/dock.d.ts.map +1 -0
  393. package/dist/modules/dock/components/hud-view.d.ts +7 -0
  394. package/dist/modules/dock/components/hud-view.d.ts.map +1 -0
  395. package/dist/modules/dock/components/icon.d.ts +6 -0
  396. package/dist/modules/dock/components/icon.d.ts.map +1 -0
  397. package/dist/modules/dock/components/item-content.d.ts +4 -0
  398. package/dist/modules/dock/components/item-content.d.ts.map +1 -0
  399. package/dist/modules/dock/components/media-action.d.ts +4 -0
  400. package/dist/modules/dock/components/media-action.d.ts.map +1 -0
  401. package/dist/modules/dock/components/media-controls.d.ts +4 -0
  402. package/dist/modules/dock/components/media-controls.d.ts.map +1 -0
  403. package/dist/modules/dock/components/media-scrubber.d.ts +5 -0
  404. package/dist/modules/dock/components/media-scrubber.d.ts.map +1 -0
  405. package/dist/modules/dock/components/status-actions.d.ts +10 -0
  406. package/dist/modules/dock/components/status-actions.d.ts.map +1 -0
  407. package/dist/modules/dock/components/surface/action.d.ts +17 -0
  408. package/dist/modules/dock/components/surface/action.d.ts.map +1 -0
  409. package/dist/modules/dock/components/surface/controls.d.ts +12 -0
  410. package/dist/modules/dock/components/surface/controls.d.ts.map +1 -0
  411. package/dist/modules/dock/components/surface/extensions-bar.d.ts +5 -0
  412. package/dist/modules/dock/components/surface/extensions-bar.d.ts.map +1 -0
  413. package/dist/modules/dock/components/surface/header-button.d.ts +14 -0
  414. package/dist/modules/dock/components/surface/header-button.d.ts.map +1 -0
  415. package/dist/modules/dock/components/surface/item-content.d.ts +6 -0
  416. package/dist/modules/dock/components/surface/item-content.d.ts.map +1 -0
  417. package/dist/modules/dock/components/surface/shell.d.ts +3 -0
  418. package/dist/modules/dock/components/surface/shell.d.ts.map +1 -0
  419. package/dist/modules/dock/components/title.d.ts +4 -0
  420. package/dist/modules/dock/components/title.d.ts.map +1 -0
  421. package/dist/modules/dock/constants.d.ts +11 -2
  422. package/dist/modules/dock/constants.d.ts.map +1 -1
  423. package/dist/modules/dock/context.d.ts +8 -2
  424. package/dist/modules/dock/context.d.ts.map +1 -1
  425. package/dist/modules/dock/hooks/use-action-slot.d.ts +6 -0
  426. package/dist/modules/dock/hooks/use-action-slot.d.ts.map +1 -0
  427. package/dist/modules/dock/hooks/use-badge.d.ts +4 -0
  428. package/dist/modules/dock/hooks/use-badge.d.ts.map +1 -0
  429. package/dist/modules/dock/hooks/use-card-banner-model.d.ts +18 -0
  430. package/dist/modules/dock/hooks/use-card-banner-model.d.ts.map +1 -0
  431. package/dist/modules/dock/hooks/use-card-header-model.d.ts +7 -0
  432. package/dist/modules/dock/hooks/use-card-header-model.d.ts.map +1 -0
  433. package/dist/modules/dock/hooks/use-card-item-model.d.ts +1612 -0
  434. package/dist/modules/dock/hooks/use-card-item-model.d.ts.map +1 -0
  435. package/dist/modules/dock/hooks/use-command-bar-model.d.ts +12 -0
  436. package/dist/modules/dock/hooks/use-command-bar-model.d.ts.map +1 -0
  437. package/dist/modules/dock/hooks/use-dock-banner.d.ts +11 -0
  438. package/dist/modules/dock/hooks/use-dock-banner.d.ts.map +1 -0
  439. package/dist/modules/dock/hooks/use-dock-config.d.ts +19 -0
  440. package/dist/modules/dock/hooks/use-dock-config.d.ts.map +1 -0
  441. package/dist/modules/dock/hooks/use-dock-dimensions.d.ts +7 -0
  442. package/dist/modules/dock/hooks/use-dock-dimensions.d.ts.map +1 -0
  443. package/dist/modules/dock/hooks/use-dock-focus-trap.d.ts +7 -0
  444. package/dist/modules/dock/hooks/use-dock-focus-trap.d.ts.map +1 -0
  445. package/dist/modules/dock/hooks/use-dock-height-controller.d.ts +6 -0
  446. package/dist/modules/dock/hooks/use-dock-height-controller.d.ts.map +1 -0
  447. package/dist/modules/dock/hooks/use-dock-keyboard.d.ts +11 -0
  448. package/dist/modules/dock/hooks/use-dock-keyboard.d.ts.map +1 -0
  449. package/dist/modules/dock/hooks/use-dock-registration.d.ts +8 -0
  450. package/dist/modules/dock/hooks/use-dock-registration.d.ts.map +1 -0
  451. package/dist/modules/dock/hooks/use-dock-route-reset.d.ts +2 -0
  452. package/dist/modules/dock/hooks/use-dock-route-reset.d.ts.map +1 -0
  453. package/dist/modules/dock/hooks/use-dock-theme.d.ts +6 -0
  454. package/dist/modules/dock/hooks/use-dock-theme.d.ts.map +1 -0
  455. package/dist/modules/dock/hooks/use-dock-viewport.d.ts +6 -0
  456. package/dist/modules/dock/hooks/use-dock-viewport.d.ts.map +1 -0
  457. package/dist/modules/dock/hooks/use-element-height.d.ts +3 -0
  458. package/dist/modules/dock/hooks/use-element-height.d.ts.map +1 -0
  459. package/dist/modules/dock/hooks/use-hud-registry.d.ts +16 -0
  460. package/dist/modules/dock/hooks/use-hud-registry.d.ts.map +1 -0
  461. package/dist/modules/dock/hooks/use-hud-view-model.d.ts +9 -0
  462. package/dist/modules/dock/hooks/use-hud-view-model.d.ts.map +1 -0
  463. package/dist/modules/dock/hooks/use-media-controls-model.d.ts +27 -0
  464. package/dist/modules/dock/hooks/use-media-controls-model.d.ts.map +1 -0
  465. package/dist/modules/dock/hooks/use-media-scrubber-model.d.ts +27 -0
  466. package/dist/modules/dock/hooks/use-media-scrubber-model.d.ts.map +1 -0
  467. package/dist/modules/dock/hooks/use-standard-item-content-model.d.ts +12 -0
  468. package/dist/modules/dock/hooks/use-standard-item-content-model.d.ts.map +1 -0
  469. package/dist/modules/dock/hooks/use-surface-return.d.ts +8 -0
  470. package/dist/modules/dock/hooks/use-surface-return.d.ts.map +1 -0
  471. package/dist/modules/dock/hud.d.ts +8 -34
  472. package/dist/modules/dock/hud.d.ts.map +1 -1
  473. package/dist/modules/dock/index.d.ts +18 -12
  474. package/dist/modules/dock/index.d.ts.map +1 -1
  475. package/dist/modules/dock/lib/banner.d.ts +43 -0
  476. package/dist/modules/dock/lib/banner.d.ts.map +1 -0
  477. package/dist/modules/dock/lib/card-item.d.ts +46 -0
  478. package/dist/modules/dock/lib/card-item.d.ts.map +1 -0
  479. package/dist/modules/dock/lib/card.d.ts +20 -0
  480. package/dist/modules/dock/lib/card.d.ts.map +1 -0
  481. package/dist/modules/dock/lib/command-bar.d.ts +8 -0
  482. package/dist/modules/dock/lib/command-bar.d.ts.map +1 -0
  483. package/dist/modules/dock/lib/dom.d.ts +7 -0
  484. package/dist/modules/dock/lib/dom.d.ts.map +1 -0
  485. package/dist/modules/dock/lib/element-helpers.d.ts +8 -0
  486. package/dist/modules/dock/lib/element-helpers.d.ts.map +1 -0
  487. package/dist/modules/dock/lib/helpers.d.ts +19 -0
  488. package/dist/modules/dock/lib/helpers.d.ts.map +1 -0
  489. package/dist/modules/dock/lib/media.d.ts +35 -0
  490. package/dist/modules/dock/lib/media.d.ts.map +1 -0
  491. package/dist/modules/dock/lib/styles.d.ts +902 -0
  492. package/dist/modules/dock/lib/styles.d.ts.map +1 -0
  493. package/dist/modules/dock/model/hud-definition.d.ts +13 -0
  494. package/dist/modules/dock/model/hud-definition.d.ts.map +1 -0
  495. package/dist/modules/dock/model/hud.d.ts +10 -0
  496. package/dist/modules/dock/model/hud.d.ts.map +1 -0
  497. package/dist/modules/dock/model/layout.d.ts +28 -0
  498. package/dist/modules/dock/model/layout.d.ts.map +1 -0
  499. package/dist/modules/dock/model/page-entry.d.ts +11 -0
  500. package/dist/modules/dock/model/page-entry.d.ts.map +1 -0
  501. package/dist/modules/dock/model/page-surface.d.ts +4 -0
  502. package/dist/modules/dock/model/page-surface.d.ts.map +1 -0
  503. package/dist/modules/dock/model/paths.d.ts +15 -0
  504. package/dist/modules/dock/model/paths.d.ts.map +1 -0
  505. package/dist/modules/dock/model/state.d.ts +28 -0
  506. package/dist/modules/dock/model/state.d.ts.map +1 -0
  507. package/dist/modules/dock/model/surface-return.d.ts +14 -0
  508. package/dist/modules/dock/model/surface-return.d.ts.map +1 -0
  509. package/dist/modules/dock/module.d.ts +5 -7
  510. package/dist/modules/dock/module.d.ts.map +1 -1
  511. package/dist/modules/dock/motion.d.ts +716 -11
  512. package/dist/modules/dock/motion.d.ts.map +1 -1
  513. package/dist/modules/dock/provider.d.ts +2 -1
  514. package/dist/modules/dock/provider.d.ts.map +1 -1
  515. package/dist/modules/dock/routing/breadcrumbs.d.ts +6 -2
  516. package/dist/modules/dock/routing/breadcrumbs.d.ts.map +1 -1
  517. package/dist/modules/dock/routing/continuity.d.ts +46 -14
  518. package/dist/modules/dock/routing/continuity.d.ts.map +1 -1
  519. package/dist/modules/dock/routing/guards.d.ts +10 -1
  520. package/dist/modules/dock/routing/guards.d.ts.map +1 -1
  521. package/dist/modules/dock/routing/hooks/use-route-prefetch.d.ts +12 -0
  522. package/dist/modules/dock/routing/hooks/use-route-prefetch.d.ts.map +1 -0
  523. package/dist/modules/dock/routing/lib/restore.d.ts +7 -0
  524. package/dist/modules/dock/routing/lib/restore.d.ts.map +1 -0
  525. package/dist/modules/dock/routing/model/continuity.d.ts +21 -0
  526. package/dist/modules/dock/routing/model/continuity.d.ts.map +1 -0
  527. package/dist/modules/dock/routing/model/policy.d.ts +7 -0
  528. package/dist/modules/dock/routing/model/policy.d.ts.map +1 -0
  529. package/dist/modules/dock/routing/model/topology.d.ts +5 -0
  530. package/dist/modules/dock/routing/model/topology.d.ts.map +1 -0
  531. package/dist/modules/dock/routing/navigation.d.ts +10 -23
  532. package/dist/modules/dock/routing/navigation.d.ts.map +1 -1
  533. package/dist/modules/dock/runtime/commands.d.ts +10 -1
  534. package/dist/modules/dock/runtime/commands.d.ts.map +1 -1
  535. package/dist/modules/dock/runtime/display.d.ts +9 -48
  536. package/dist/modules/dock/runtime/display.d.ts.map +1 -1
  537. package/dist/modules/dock/runtime/dock.d.ts +11 -70
  538. package/dist/modules/dock/runtime/dock.d.ts.map +1 -1
  539. package/dist/modules/dock/runtime/hooks/use-dock-expansion.d.ts +10 -0
  540. package/dist/modules/dock/runtime/hooks/use-dock-expansion.d.ts.map +1 -0
  541. package/dist/modules/dock/runtime/hooks/use-dock-layout.d.ts +10 -0
  542. package/dist/modules/dock/runtime/hooks/use-dock-layout.d.ts.map +1 -0
  543. package/dist/modules/dock/runtime/hooks/use-dock-operation-state.d.ts +14 -0
  544. package/dist/modules/dock/runtime/hooks/use-dock-operation-state.d.ts.map +1 -0
  545. package/dist/modules/dock/runtime/hooks/use-dock-route-bridge.d.ts +7 -0
  546. package/dist/modules/dock/runtime/hooks/use-dock-route-bridge.d.ts.map +1 -0
  547. package/dist/modules/dock/runtime/hooks/use-dock.d.ts +30 -0
  548. package/dist/modules/dock/runtime/hooks/use-dock.d.ts.map +1 -0
  549. package/dist/modules/dock/runtime/model/attention.d.ts +25 -0
  550. package/dist/modules/dock/runtime/model/attention.d.ts.map +1 -0
  551. package/dist/modules/dock/runtime/model/cards.d.ts +64 -0
  552. package/dist/modules/dock/runtime/model/cards.d.ts.map +1 -0
  553. package/dist/modules/dock/runtime/model/items.d.ts +31 -0
  554. package/dist/modules/dock/runtime/model/items.d.ts.map +1 -0
  555. package/dist/modules/dock/runtime/model/layout.d.ts +10 -0
  556. package/dist/modules/dock/runtime/model/layout.d.ts.map +1 -0
  557. package/dist/modules/dock/runtime/pipeline.d.ts +1 -1
  558. package/dist/modules/dock/runtime/pipeline.d.ts.map +1 -1
  559. package/dist/modules/dock/runtime/provider-actions.d.ts +38 -0
  560. package/dist/modules/dock/runtime/provider-actions.d.ts.map +1 -0
  561. package/dist/modules/dock/status/action-options.d.ts +35 -0
  562. package/dist/modules/dock/status/action-options.d.ts.map +1 -0
  563. package/dist/modules/dock/status/events.d.ts +2 -2
  564. package/dist/modules/dock/status/events.d.ts.map +1 -1
  565. package/dist/modules/dock/status/hooks.d.ts +1 -1
  566. package/dist/modules/dock/status/hooks.d.ts.map +1 -1
  567. package/dist/modules/dock/status/model.d.ts +12 -32
  568. package/dist/modules/dock/status/model.d.ts.map +1 -1
  569. package/dist/modules/dock/status/state.d.ts +12 -0
  570. package/dist/modules/dock/status/state.d.ts.map +1 -0
  571. package/dist/modules/dock/surface/components/surface-extensions-provider.d.ts +5 -0
  572. package/dist/modules/dock/surface/components/surface-extensions-provider.d.ts.map +1 -0
  573. package/dist/modules/dock/surface/components/surface-flow-provider.d.ts +7 -0
  574. package/dist/modules/dock/surface/components/surface-flow-provider.d.ts.map +1 -0
  575. package/dist/modules/dock/surface/constants.d.ts +5 -0
  576. package/dist/modules/dock/surface/constants.d.ts.map +1 -0
  577. package/dist/modules/dock/surface/context.d.ts +14 -1
  578. package/dist/modules/dock/surface/context.d.ts.map +1 -1
  579. package/dist/modules/dock/surface/definition.d.ts +28 -2
  580. package/dist/modules/dock/surface/definition.d.ts.map +1 -1
  581. package/dist/modules/dock/surface/helpers.d.ts +2 -1
  582. package/dist/modules/dock/surface/helpers.d.ts.map +1 -1
  583. package/dist/modules/dock/surface/hooks/use-surface-controls-model.d.ts +15 -0
  584. package/dist/modules/dock/surface/hooks/use-surface-controls-model.d.ts.map +1 -0
  585. package/dist/modules/dock/surface/hooks/use-surface-extensions-bar-model.d.ts +7 -0
  586. package/dist/modules/dock/surface/hooks/use-surface-extensions-bar-model.d.ts.map +1 -0
  587. package/dist/modules/dock/surface/hooks/use-surface-extensions.d.ts +14 -0
  588. package/dist/modules/dock/surface/hooks/use-surface-extensions.d.ts.map +1 -0
  589. package/dist/modules/dock/surface/hooks/use-surface-flow.d.ts +20 -0
  590. package/dist/modules/dock/surface/hooks/use-surface-flow.d.ts.map +1 -0
  591. package/dist/modules/dock/surface/hooks/use-surface-header-button-model.d.ts +13 -0
  592. package/dist/modules/dock/surface/hooks/use-surface-header-button-model.d.ts.map +1 -0
  593. package/dist/modules/dock/surface/hooks/use-surface-shell-model.d.ts +28 -0
  594. package/dist/modules/dock/surface/hooks/use-surface-shell-model.d.ts.map +1 -0
  595. package/dist/modules/dock/surface/lib/drag.d.ts +9 -0
  596. package/dist/modules/dock/surface/lib/drag.d.ts.map +1 -0
  597. package/dist/modules/dock/surface/lib/target.d.ts +8 -0
  598. package/dist/modules/dock/surface/lib/target.d.ts.map +1 -0
  599. package/dist/modules/dock/surface/machine.d.ts +17 -62
  600. package/dist/modules/dock/surface/machine.d.ts.map +1 -1
  601. package/dist/modules/dock/surface/model/builder.d.ts +39 -0
  602. package/dist/modules/dock/surface/model/builder.d.ts.map +1 -0
  603. package/dist/modules/dock/surface/model/normalize.d.ts +13 -0
  604. package/dist/modules/dock/surface/model/normalize.d.ts.map +1 -0
  605. package/dist/modules/dock/surface/model/open.d.ts +26 -0
  606. package/dist/modules/dock/surface/model/open.d.ts.map +1 -0
  607. package/dist/modules/dock/surface/model/records.d.ts +45 -0
  608. package/dist/modules/dock/surface/model/records.d.ts.map +1 -0
  609. package/dist/modules/dock/surface/model/steps.d.ts +9 -0
  610. package/dist/modules/dock/surface/model/steps.d.ts.map +1 -0
  611. package/dist/modules/dock/surface/model/transition-state.d.ts +23 -0
  612. package/dist/modules/dock/surface/model/transition-state.d.ts.map +1 -0
  613. package/dist/modules/dock/surface/model/url.d.ts +14 -0
  614. package/dist/modules/dock/surface/model/url.d.ts.map +1 -0
  615. package/dist/modules/dock/surface/runtime/choreography.d.ts +22 -0
  616. package/dist/modules/dock/surface/runtime/choreography.d.ts.map +1 -0
  617. package/dist/modules/dock/surface/runtime/context.d.ts +29 -0
  618. package/dist/modules/dock/surface/runtime/context.d.ts.map +1 -0
  619. package/dist/modules/dock/surface/runtime/flows.d.ts +21 -0
  620. package/dist/modules/dock/surface/runtime/flows.d.ts.map +1 -0
  621. package/dist/modules/dock/surface/runtime/open.d.ts +6 -0
  622. package/dist/modules/dock/surface/runtime/open.d.ts.map +1 -0
  623. package/dist/modules/dock/surface/runtime/release.d.ts +9 -0
  624. package/dist/modules/dock/surface/runtime/release.d.ts.map +1 -0
  625. package/dist/modules/dock/surface/runtime/steps.d.ts +10 -0
  626. package/dist/modules/dock/surface/runtime/steps.d.ts.map +1 -0
  627. package/dist/modules/dock/surface/stack.d.ts +20 -11
  628. package/dist/modules/dock/surface/stack.d.ts.map +1 -1
  629. package/dist/modules/dock/surface/view-model.d.ts +5 -1
  630. package/dist/modules/dock/surface/view-model.d.ts.map +1 -1
  631. package/dist/modules/dock/types/card.d.ts +297 -0
  632. package/dist/modules/dock/types/card.d.ts.map +1 -0
  633. package/dist/modules/dock/types/hud.d.ts +142 -0
  634. package/dist/modules/dock/types/hud.d.ts.map +1 -0
  635. package/dist/modules/dock/types/index.d.ts +8 -0
  636. package/dist/modules/dock/types/index.d.ts.map +1 -0
  637. package/dist/modules/dock/types/media.d.ts +66 -0
  638. package/dist/modules/dock/types/media.d.ts.map +1 -0
  639. package/dist/modules/dock/types/routing.d.ts +336 -0
  640. package/dist/modules/dock/types/routing.d.ts.map +1 -0
  641. package/dist/modules/dock/types/surface-flow.d.ts +231 -0
  642. package/dist/modules/dock/types/surface-flow.d.ts.map +1 -0
  643. package/dist/modules/dock/types/surface.d.ts +194 -0
  644. package/dist/modules/dock/types/surface.d.ts.map +1 -0
  645. package/dist/modules/dock/types/theme.d.ts +201 -0
  646. package/dist/modules/dock/types/theme.d.ts.map +1 -0
  647. package/dist/modules/index.d.ts +4 -0
  648. package/dist/modules/index.d.ts.map +1 -1
  649. package/dist/modules/index.js +23 -18
  650. package/dist/modules/loading/constants.d.ts +18 -1
  651. package/dist/modules/loading/constants.d.ts.map +1 -1
  652. package/dist/modules/loading/context.d.ts +11 -1
  653. package/dist/modules/loading/context.d.ts.map +1 -1
  654. package/dist/modules/loading/hooks.d.ts +24 -1
  655. package/dist/modules/loading/hooks.d.ts.map +1 -1
  656. package/dist/modules/loading/index.d.ts +1 -1
  657. package/dist/modules/loading/index.d.ts.map +1 -1
  658. package/dist/modules/loading/module.d.ts +6 -0
  659. package/dist/modules/loading/module.d.ts.map +1 -1
  660. package/dist/modules/loading/overlay.d.ts +3 -0
  661. package/dist/modules/loading/overlay.d.ts.map +1 -1
  662. package/dist/modules/loading/state.d.ts +13 -0
  663. package/dist/modules/loading/state.d.ts.map +1 -1
  664. package/dist/modules/loading/types.d.ts +42 -2
  665. package/dist/modules/loading/types.d.ts.map +1 -1
  666. package/dist/modules/media/constants.d.ts +19 -0
  667. package/dist/modules/media/constants.d.ts.map +1 -1
  668. package/dist/modules/media/context.d.ts +11 -1
  669. package/dist/modules/media/context.d.ts.map +1 -1
  670. package/dist/modules/media/hooks.d.ts +17 -0
  671. package/dist/modules/media/hooks.d.ts.map +1 -1
  672. package/dist/modules/media/index.d.ts +1 -1
  673. package/dist/modules/media/index.d.ts.map +1 -1
  674. package/dist/modules/media/module.d.ts +4 -0
  675. package/dist/modules/media/module.d.ts.map +1 -1
  676. package/dist/modules/media/overlay.d.ts +7 -0
  677. package/dist/modules/media/overlay.d.ts.map +1 -1
  678. package/dist/modules/media/playback.d.ts +13 -0
  679. package/dist/modules/media/playback.d.ts.map +1 -1
  680. package/dist/modules/media/session.d.ts +20 -0
  681. package/dist/modules/media/session.d.ts.map +1 -1
  682. package/dist/modules/media/types.d.ts +49 -2
  683. package/dist/modules/media/types.d.ts.map +1 -1
  684. package/dist/modules/modal/components/close-button.d.ts +6 -0
  685. package/dist/modules/modal/components/close-button.d.ts.map +1 -0
  686. package/dist/modules/modal/components/modal-container.d.ts +7 -0
  687. package/dist/modules/modal/components/modal-container.d.ts.map +1 -0
  688. package/dist/modules/modal/components/modal-layer-switcher.d.ts +9 -0
  689. package/dist/modules/modal/components/modal-layer-switcher.d.ts.map +1 -0
  690. package/dist/modules/modal/components/modal-layer.d.ts +17 -0
  691. package/dist/modules/modal/components/modal-layer.d.ts.map +1 -0
  692. package/dist/modules/modal/components/overlay.d.ts +6 -0
  693. package/dist/modules/modal/components/overlay.d.ts.map +1 -0
  694. package/dist/modules/modal/components/resolve-header.d.ts +10 -0
  695. package/dist/modules/modal/components/resolve-header.d.ts.map +1 -0
  696. package/dist/modules/modal/components/slot-row.d.ts +12 -0
  697. package/dist/modules/modal/components/slot-row.d.ts.map +1 -0
  698. package/dist/modules/modal/constants.d.ts +16 -1
  699. package/dist/modules/modal/constants.d.ts.map +1 -1
  700. package/dist/modules/modal/context.d.ts +7 -1
  701. package/dist/modules/modal/context.d.ts.map +1 -1
  702. package/dist/modules/modal/hooks/use-mobile-viewport.d.ts +3 -0
  703. package/dist/modules/modal/hooks/use-mobile-viewport.d.ts.map +1 -0
  704. package/dist/modules/modal/hooks/use-modal-focus-trap.d.ts +12 -0
  705. package/dist/modules/modal/hooks/use-modal-focus-trap.d.ts.map +1 -0
  706. package/dist/modules/modal/hooks/use-modal-scroll-lock.d.ts +3 -0
  707. package/dist/modules/modal/hooks/use-modal-scroll-lock.d.ts.map +1 -0
  708. package/dist/modules/modal/hooks.d.ts +30 -4
  709. package/dist/modules/modal/hooks.d.ts.map +1 -1
  710. package/dist/modules/modal/index.d.ts +8 -7
  711. package/dist/modules/modal/index.d.ts.map +1 -1
  712. package/dist/modules/modal/lib/dom.d.ts +13 -0
  713. package/dist/modules/modal/lib/dom.d.ts.map +1 -0
  714. package/dist/modules/modal/lib/theme.d.ts +4 -0
  715. package/dist/modules/modal/lib/theme.d.ts.map +1 -0
  716. package/dist/modules/modal/model/entry.d.ts +18 -0
  717. package/dist/modules/modal/model/entry.d.ts.map +1 -0
  718. package/dist/modules/modal/model/header.d.ts +16 -0
  719. package/dist/modules/modal/model/header.d.ts.map +1 -0
  720. package/dist/modules/modal/model/identity.d.ts +13 -0
  721. package/dist/modules/modal/model/identity.d.ts.map +1 -0
  722. package/dist/modules/modal/model/layout.d.ts +37 -0
  723. package/dist/modules/modal/model/layout.d.ts.map +1 -0
  724. package/dist/modules/modal/model/state.d.ts +10 -0
  725. package/dist/modules/modal/model/state.d.ts.map +1 -0
  726. package/dist/modules/modal/module.d.ts +7 -0
  727. package/dist/modules/modal/module.d.ts.map +1 -1
  728. package/dist/modules/modal/motion.d.ts.map +1 -1
  729. package/dist/modules/modal/types.d.ts +73 -10
  730. package/dist/modules/modal/types.d.ts.map +1 -1
  731. package/dist/modules/navigation/context.d.ts +16 -5
  732. package/dist/modules/navigation/context.d.ts.map +1 -1
  733. package/dist/modules/navigation/hooks.d.ts +22 -13
  734. package/dist/modules/navigation/hooks.d.ts.map +1 -1
  735. package/dist/modules/navigation/index.d.ts +5 -5
  736. package/dist/modules/navigation/index.d.ts.map +1 -1
  737. package/dist/modules/navigation/listeners.d.ts +6 -8
  738. package/dist/modules/navigation/listeners.d.ts.map +1 -1
  739. package/dist/modules/navigation/module.d.ts +5 -2
  740. package/dist/modules/navigation/module.d.ts.map +1 -1
  741. package/dist/modules/notification/constants.d.ts +22 -2
  742. package/dist/modules/notification/constants.d.ts.map +1 -1
  743. package/dist/modules/notification/context.d.ts +12 -2
  744. package/dist/modules/notification/context.d.ts.map +1 -1
  745. package/dist/modules/notification/hooks.d.ts +32 -1
  746. package/dist/modules/notification/hooks.d.ts.map +1 -1
  747. package/dist/modules/notification/module.d.ts +3 -0
  748. package/dist/modules/notification/module.d.ts.map +1 -1
  749. package/dist/modules/notification/motion.d.ts.map +1 -1
  750. package/dist/modules/notification/overlay.d.ts.map +1 -1
  751. package/dist/modules/notification/state.d.ts +28 -0
  752. package/dist/modules/notification/state.d.ts.map +1 -1
  753. package/dist/modules/notification/types.d.ts +48 -5
  754. package/dist/modules/notification/types.d.ts.map +1 -1
  755. package/dist/navigation/index.d.ts +1 -0
  756. package/dist/navigation/index.js +189 -0
  757. package/dist/navigation/index.js.map +1 -0
  758. package/dist/notification/index.d.ts +1 -0
  759. package/dist/notification/index.js +11 -0
  760. package/dist/overlay-QHSJBV3O.js +13 -0
  761. package/dist/overlay-QHSJBV3O.js.map +1 -0
  762. package/dist/provider/index.d.ts +1 -0
  763. package/dist/provider/index.js +14 -0
  764. package/dist/react/context/index.d.ts +4 -0
  765. package/dist/react/context/index.d.ts.map +1 -0
  766. package/dist/react/hooks/index.d.ts +10 -0
  767. package/dist/react/hooks/index.d.ts.map +1 -0
  768. package/dist/react/hooks/types.d.ts +25 -0
  769. package/dist/react/hooks/types.d.ts.map +1 -0
  770. package/dist/react/hooks/use-click-outside.d.ts +6 -0
  771. package/dist/react/hooks/use-click-outside.d.ts.map +1 -0
  772. package/dist/react/hooks/use-controllable-state.d.ts +7 -0
  773. package/dist/react/hooks/use-controllable-state.d.ts.map +1 -0
  774. package/dist/react/hooks/use-fullscreen-state.d.ts +7 -0
  775. package/dist/react/hooks/use-fullscreen-state.d.ts.map +1 -0
  776. package/dist/react/hooks/use-global-event.d.ts +9 -0
  777. package/dist/react/hooks/use-global-event.d.ts.map +1 -0
  778. package/dist/react/hooks/use-hotkey.d.ts +10 -0
  779. package/dist/react/hooks/use-hotkey.d.ts.map +1 -0
  780. package/dist/react/hooks/use-required-context.d.ts +6 -0
  781. package/dist/react/hooks/use-required-context.d.ts.map +1 -0
  782. package/dist/react/hooks/use-scroll-lock.d.ts +9 -0
  783. package/dist/react/hooks/use-scroll-lock.d.ts.map +1 -0
  784. package/dist/react/hooks/use-store.d.ts +3 -0
  785. package/dist/react/hooks/use-store.d.ts.map +1 -0
  786. package/dist/react/theme/index.d.ts +82 -0
  787. package/dist/react/theme/index.d.ts.map +1 -0
  788. package/dist/react/ui/components/avatar.d.ts +6 -0
  789. package/dist/react/ui/components/avatar.d.ts.map +1 -0
  790. package/dist/react/ui/components/button.d.ts +6 -0
  791. package/dist/react/ui/components/button.d.ts.map +1 -0
  792. package/dist/react/ui/components/carousel.d.ts +6 -0
  793. package/dist/react/ui/components/carousel.d.ts.map +1 -0
  794. package/dist/react/ui/components/checkbox.d.ts +10 -0
  795. package/dist/react/ui/components/checkbox.d.ts.map +1 -0
  796. package/dist/react/ui/components/icon.d.ts +6 -0
  797. package/dist/react/ui/components/icon.d.ts.map +1 -0
  798. package/dist/react/ui/components/image.d.ts +6 -0
  799. package/dist/react/ui/components/image.d.ts.map +1 -0
  800. package/dist/react/ui/components/indicator.d.ts +45 -0
  801. package/dist/react/ui/components/indicator.d.ts.map +1 -0
  802. package/dist/react/ui/components/input.d.ts +10 -0
  803. package/dist/react/ui/components/input.d.ts.map +1 -0
  804. package/dist/react/ui/components/loader.d.ts +10 -0
  805. package/dist/react/ui/components/loader.d.ts.map +1 -0
  806. package/dist/react/ui/components/segmented.d.ts +6 -0
  807. package/dist/react/ui/components/segmented.d.ts.map +1 -0
  808. package/dist/react/ui/components/select-parts.d.ts +22 -0
  809. package/dist/react/ui/components/select-parts.d.ts.map +1 -0
  810. package/dist/react/ui/components/select.d.ts +6 -0
  811. package/dist/react/ui/components/select.d.ts.map +1 -0
  812. package/dist/react/ui/components/skeleton.d.ts +10 -0
  813. package/dist/react/ui/components/skeleton.d.ts.map +1 -0
  814. package/dist/react/ui/components/switch.d.ts +6 -0
  815. package/dist/react/ui/components/switch.d.ts.map +1 -0
  816. package/dist/react/ui/components/tooltip.d.ts +11 -0
  817. package/dist/react/ui/components/tooltip.d.ts.map +1 -0
  818. package/dist/react/ui/index.d.ts +19 -0
  819. package/dist/react/ui/index.d.ts.map +1 -0
  820. package/dist/react/ui/provider.d.ts +22 -0
  821. package/dist/react/ui/provider.d.ts.map +1 -0
  822. package/dist/react/ui/types-controls.d.ts +133 -0
  823. package/dist/react/ui/types-controls.d.ts.map +1 -0
  824. package/dist/react/ui/types.d.ts +192 -0
  825. package/dist/react/ui/types.d.ts.map +1 -0
  826. package/dist/react/ui/utils.d.ts +65 -0
  827. package/dist/react/ui/utils.d.ts.map +1 -0
  828. package/dist/recipes/index.d.ts +1 -0
  829. package/dist/recipes/index.js +233 -0
  830. package/dist/recipes/index.js.map +1 -0
  831. package/dist/result/index.d.ts +1 -0
  832. package/dist/result/index.js +98 -0
  833. package/dist/result/index.js.map +1 -0
  834. package/dist/theme/index.d.ts +1 -0
  835. package/dist/theme/index.js +6 -0
  836. package/dist/ui/index.d.ts +1 -0
  837. package/dist/ui/index.js +2268 -0
  838. package/dist/ui/index.js.map +1 -0
  839. package/dist/utils/index.d.ts +1 -15
  840. package/dist/utils/index.js +194 -71
  841. package/dist/utils/index.js.map +1 -1
  842. package/docs/README.md +58 -57
  843. package/docs/architecture-and-rules.md +133 -58
  844. package/docs/core-engine.md +36 -52
  845. package/docs/custom-modules.md +43 -32
  846. package/docs/design.md +185 -0
  847. package/docs/getting-started.md +49 -57
  848. package/docs/modules/README.md +50 -61
  849. package/docs/modules/ambient.md +95 -87
  850. package/docs/modules/background.md +39 -36
  851. package/docs/modules/context-menu.md +19 -18
  852. package/docs/modules/controls.md +13 -13
  853. package/docs/modules/dock.md +74 -93
  854. package/docs/modules/error-boundary.md +2 -2
  855. package/docs/modules/kernel.md +38 -26
  856. package/docs/modules/loading.md +14 -14
  857. package/docs/modules/media.md +13 -13
  858. package/docs/modules/modal.md +14 -14
  859. package/docs/modules/navigation.md +87 -84
  860. package/docs/modules/notification.md +13 -13
  861. package/docs/modules/result.md +22 -22
  862. package/docs/proposals/navigation.md +32 -31
  863. package/docs/testing.md +34 -28
  864. package/docs/theming.md +67 -44
  865. package/package.json +106 -88
  866. package/templates/AGENTS.md +35 -25
  867. package/dist/atoms/button.d.ts +0 -11
  868. package/dist/atoms/button.d.ts.map +0 -1
  869. package/dist/atoms/icon.d.ts +0 -15
  870. package/dist/atoms/icon.d.ts.map +0 -1
  871. package/dist/atoms/index.d.ts +0 -5
  872. package/dist/atoms/index.d.ts.map +0 -1
  873. package/dist/atoms/index.js +0 -4
  874. package/dist/atoms/spinner.d.ts +0 -9
  875. package/dist/atoms/spinner.d.ts.map +0 -1
  876. package/dist/atoms/tooltip.d.ts +0 -18
  877. package/dist/atoms/tooltip.d.ts.map +0 -1
  878. package/dist/chunk-3BUP64Q6.js +0 -105
  879. package/dist/chunk-3BUP64Q6.js.map +0 -1
  880. package/dist/chunk-4GMQKD6F.js +0 -353
  881. package/dist/chunk-4GMQKD6F.js.map +0 -1
  882. package/dist/chunk-66EYJBIP.js +0 -300
  883. package/dist/chunk-66EYJBIP.js.map +0 -1
  884. package/dist/chunk-7HQMXTNP.js +0 -419
  885. package/dist/chunk-7HQMXTNP.js.map +0 -1
  886. package/dist/chunk-7TAVYJ3A.js +0 -371
  887. package/dist/chunk-7TAVYJ3A.js.map +0 -1
  888. package/dist/chunk-AQ4BNXA2.js +0 -349
  889. package/dist/chunk-AQ4BNXA2.js.map +0 -1
  890. package/dist/chunk-CGHZSSFR.js +0 -2166
  891. package/dist/chunk-CGHZSSFR.js.map +0 -1
  892. package/dist/chunk-DGCQWQLZ.js +0 -61
  893. package/dist/chunk-DGCQWQLZ.js.map +0 -1
  894. package/dist/chunk-FIMPHODX.js +0 -67
  895. package/dist/chunk-FIMPHODX.js.map +0 -1
  896. package/dist/chunk-GF7TUX5I.js +0 -1889
  897. package/dist/chunk-GF7TUX5I.js.map +0 -1
  898. package/dist/chunk-HHWRTQKQ.js +0 -610
  899. package/dist/chunk-HHWRTQKQ.js.map +0 -1
  900. package/dist/chunk-HLL5EHXC.js +0 -485
  901. package/dist/chunk-HLL5EHXC.js.map +0 -1
  902. package/dist/chunk-I5GK7VOV.js +0 -28
  903. package/dist/chunk-I5GK7VOV.js.map +0 -1
  904. package/dist/chunk-JELG4JLT.js +0 -454
  905. package/dist/chunk-JELG4JLT.js.map +0 -1
  906. package/dist/chunk-K676GL7Z.js +0 -51
  907. package/dist/chunk-K676GL7Z.js.map +0 -1
  908. package/dist/chunk-QI3ALLIB.js +0 -38
  909. package/dist/chunk-QI3ALLIB.js.map +0 -1
  910. package/dist/chunk-R2YGFJDJ.js +0 -408
  911. package/dist/chunk-R2YGFJDJ.js.map +0 -1
  912. package/dist/chunk-RFZQWLC5.js +0 -27
  913. package/dist/chunk-RFZQWLC5.js.map +0 -1
  914. package/dist/chunk-RIOKLMYM.js +0 -145
  915. package/dist/chunk-RIOKLMYM.js.map +0 -1
  916. package/dist/chunk-RRAZKP3J.js +0 -888
  917. package/dist/chunk-RRAZKP3J.js.map +0 -1
  918. package/dist/chunk-SYAVGTOX.js +0 -521
  919. package/dist/chunk-SYAVGTOX.js.map +0 -1
  920. package/dist/chunk-TG6NMHXI.js +0 -1218
  921. package/dist/chunk-TG6NMHXI.js.map +0 -1
  922. package/dist/chunk-TV3WEF5G.js +0 -784
  923. package/dist/chunk-TV3WEF5G.js.map +0 -1
  924. package/dist/chunk-WVRMABDN.js +0 -9727
  925. package/dist/chunk-WVRMABDN.js.map +0 -1
  926. package/dist/error/boundary.d.ts +0 -14
  927. package/dist/error/boundary.d.ts.map +0 -1
  928. package/dist/error/constants.d.ts +0 -18
  929. package/dist/error/constants.d.ts.map +0 -1
  930. package/dist/error/index.d.ts.map +0 -1
  931. package/dist/error/listener.d.ts +0 -2
  932. package/dist/error/listener.d.ts.map +0 -1
  933. package/dist/error/reporter.d.ts +0 -32
  934. package/dist/error/reporter.d.ts.map +0 -1
  935. package/dist/error/theme.d.ts +0 -3
  936. package/dist/error/theme.d.ts.map +0 -1
  937. package/dist/error/types.d.ts +0 -91
  938. package/dist/error/types.d.ts.map +0 -1
  939. package/dist/error/utils.d.ts +0 -21
  940. package/dist/error/utils.d.ts.map +0 -1
  941. package/dist/events.d.ts +0 -51
  942. package/dist/events.d.ts.map +0 -1
  943. package/dist/events.js +0 -82
  944. package/dist/events.js.map +0 -1
  945. package/dist/hooks/index.d.ts.map +0 -1
  946. package/dist/hooks/types.d.ts +0 -16
  947. package/dist/hooks/types.d.ts.map +0 -1
  948. package/dist/hooks/use-click-outside.d.ts +0 -3
  949. package/dist/hooks/use-click-outside.d.ts.map +0 -1
  950. package/dist/hooks/use-controllable-state.d.ts +0 -3
  951. package/dist/hooks/use-controllable-state.d.ts.map +0 -1
  952. package/dist/hooks/use-fullscreen-state.d.ts +0 -4
  953. package/dist/hooks/use-fullscreen-state.d.ts.map +0 -1
  954. package/dist/hooks/use-global-event.d.ts +0 -5
  955. package/dist/hooks/use-global-event.d.ts.map +0 -1
  956. package/dist/hooks/use-hotkey.d.ts +0 -4
  957. package/dist/hooks/use-hotkey.d.ts.map +0 -1
  958. package/dist/hooks/use-isomorphic-layout-effect.d.ts +0 -3
  959. package/dist/hooks/use-isomorphic-layout-effect.d.ts.map +0 -1
  960. package/dist/hooks/use-required-context.d.ts +0 -3
  961. package/dist/hooks/use-required-context.d.ts.map +0 -1
  962. package/dist/hooks/use-store.d.ts +0 -3
  963. package/dist/hooks/use-store.d.ts.map +0 -1
  964. package/dist/kernel/adapters.d.ts +0 -5
  965. package/dist/kernel/adapters.d.ts.map +0 -1
  966. package/dist/kernel/compose.d.ts +0 -15
  967. package/dist/kernel/compose.d.ts.map +0 -1
  968. package/dist/kernel/constants.d.ts +0 -12
  969. package/dist/kernel/constants.d.ts.map +0 -1
  970. package/dist/kernel/context-registry.d.ts +0 -3
  971. package/dist/kernel/context-registry.d.ts.map +0 -1
  972. package/dist/kernel/handlers.d.ts +0 -3
  973. package/dist/kernel/handlers.d.ts.map +0 -1
  974. package/dist/kernel/hooks.d.ts +0 -7
  975. package/dist/kernel/hooks.d.ts.map +0 -1
  976. package/dist/kernel/index.d.ts.map +0 -1
  977. package/dist/kernel/installed.d.ts +0 -21
  978. package/dist/kernel/installed.d.ts.map +0 -1
  979. package/dist/kernel/module.d.ts +0 -32
  980. package/dist/kernel/module.d.ts.map +0 -1
  981. package/dist/kernel/operations.d.ts +0 -21
  982. package/dist/kernel/operations.d.ts.map +0 -1
  983. package/dist/kernel/page-controller.d.ts +0 -8
  984. package/dist/kernel/page-controller.d.ts.map +0 -1
  985. package/dist/kernel/provider.d.ts +0 -18
  986. package/dist/kernel/provider.d.ts.map +0 -1
  987. package/dist/kernel/runtime.d.ts.map +0 -1
  988. package/dist/kernel/schema.d.ts +0 -11
  989. package/dist/kernel/schema.d.ts.map +0 -1
  990. package/dist/kernel/store.d.ts +0 -4
  991. package/dist/kernel/store.d.ts.map +0 -1
  992. package/dist/kernel/types.d.ts +0 -233
  993. package/dist/kernel/types.d.ts.map +0 -1
  994. package/dist/kernel/utils.d.ts +0 -18
  995. package/dist/kernel/utils.d.ts.map +0 -1
  996. package/dist/modules/ambient/index.js +0 -10
  997. package/dist/modules/ambient/server/index.js +0 -221
  998. package/dist/modules/ambient/server/index.js.map +0 -1
  999. package/dist/modules/ambient/worker/index.js +0 -114
  1000. package/dist/modules/ambient/worker/index.js.map +0 -1
  1001. package/dist/modules/background/index.js +0 -9
  1002. package/dist/modules/background/overlay.d.ts +0 -135
  1003. package/dist/modules/background/overlay.d.ts.map +0 -1
  1004. package/dist/modules/background/playback.d.ts +0 -10
  1005. package/dist/modules/background/playback.d.ts.map +0 -1
  1006. package/dist/modules/background/state.d.ts +0 -9
  1007. package/dist/modules/background/state.d.ts.map +0 -1
  1008. package/dist/modules/background/visual.d.ts +0 -48
  1009. package/dist/modules/background/visual.d.ts.map +0 -1
  1010. package/dist/modules/background/youtube/iframe.d.ts +0 -52
  1011. package/dist/modules/background/youtube/iframe.d.ts.map +0 -1
  1012. package/dist/modules/background/youtube/parse.d.ts +0 -17
  1013. package/dist/modules/background/youtube/parse.d.ts.map +0 -1
  1014. package/dist/modules/background/youtube/player.d.ts +0 -28
  1015. package/dist/modules/background/youtube/player.d.ts.map +0 -1
  1016. package/dist/modules/context-menu/index.js +0 -14
  1017. package/dist/modules/controls/index.js +0 -7
  1018. package/dist/modules/dock/cards.d.ts +0 -1722
  1019. package/dist/modules/dock/cards.d.ts.map +0 -1
  1020. package/dist/modules/dock/dom.d.ts +0 -24
  1021. package/dist/modules/dock/dom.d.ts.map +0 -1
  1022. package/dist/modules/dock/helpers.d.ts +0 -25
  1023. package/dist/modules/dock/helpers.d.ts.map +0 -1
  1024. package/dist/modules/dock/hooks.d.ts +0 -42
  1025. package/dist/modules/dock/hooks.d.ts.map +0 -1
  1026. package/dist/modules/dock/index.js +0 -13
  1027. package/dist/modules/dock/layout.d.ts +0 -26
  1028. package/dist/modules/dock/layout.d.ts.map +0 -1
  1029. package/dist/modules/dock/overlay.d.ts +0 -79
  1030. package/dist/modules/dock/overlay.d.ts.map +0 -1
  1031. package/dist/modules/dock/paths.d.ts +0 -10
  1032. package/dist/modules/dock/paths.d.ts.map +0 -1
  1033. package/dist/modules/dock/state.d.ts +0 -22
  1034. package/dist/modules/dock/state.d.ts.map +0 -1
  1035. package/dist/modules/dock/styles.d.ts +0 -900
  1036. package/dist/modules/dock/styles.d.ts.map +0 -1
  1037. package/dist/modules/dock/surface/hooks.d.ts +0 -110
  1038. package/dist/modules/dock/surface/hooks.d.ts.map +0 -1
  1039. package/dist/modules/dock/types.d.ts +0 -1362
  1040. package/dist/modules/dock/types.d.ts.map +0 -1
  1041. package/dist/modules/loading/index.js +0 -8
  1042. package/dist/modules/media/index.js +0 -6
  1043. package/dist/modules/modal/dom.d.ts +0 -4
  1044. package/dist/modules/modal/dom.d.ts.map +0 -1
  1045. package/dist/modules/modal/header.d.ts +0 -7
  1046. package/dist/modules/modal/header.d.ts.map +0 -1
  1047. package/dist/modules/modal/identity.d.ts +0 -7
  1048. package/dist/modules/modal/identity.d.ts.map +0 -1
  1049. package/dist/modules/modal/index.js +0 -11
  1050. package/dist/modules/modal/layout.d.ts +0 -13
  1051. package/dist/modules/modal/layout.d.ts.map +0 -1
  1052. package/dist/modules/modal/overlay.d.ts +0 -4
  1053. package/dist/modules/modal/overlay.d.ts.map +0 -1
  1054. package/dist/modules/modal/state.d.ts +0 -4
  1055. package/dist/modules/modal/state.d.ts.map +0 -1
  1056. package/dist/modules/navigation/constants.d.ts +0 -37
  1057. package/dist/modules/navigation/constants.d.ts.map +0 -1
  1058. package/dist/modules/navigation/index.js +0 -81
  1059. package/dist/modules/navigation/index.js.map +0 -1
  1060. package/dist/modules/navigation/navigator.d.ts +0 -8
  1061. package/dist/modules/navigation/navigator.d.ts.map +0 -1
  1062. package/dist/modules/navigation/settings.d.ts +0 -10
  1063. package/dist/modules/navigation/settings.d.ts.map +0 -1
  1064. package/dist/modules/navigation/state.d.ts +0 -20
  1065. package/dist/modules/navigation/state.d.ts.map +0 -1
  1066. package/dist/modules/navigation/types.d.ts +0 -168
  1067. package/dist/modules/navigation/types.d.ts.map +0 -1
  1068. package/dist/modules/navigation/utils.d.ts +0 -11
  1069. package/dist/modules/navigation/utils.d.ts.map +0 -1
  1070. package/dist/modules/notification/index.js +0 -7
  1071. package/dist/overlay-TZ6L52A5.js +0 -9
  1072. package/dist/overlay-TZ6L52A5.js.map +0 -1
  1073. package/dist/provider.d.ts +0 -23
  1074. package/dist/provider.d.ts.map +0 -1
  1075. package/dist/provider.js +0 -9
  1076. package/dist/provider.js.map +0 -1
  1077. package/dist/result.d.ts +0 -50
  1078. package/dist/result.d.ts.map +0 -1
  1079. package/dist/result.js +0 -102
  1080. package/dist/result.js.map +0 -1
  1081. package/dist/theme.d.ts +0 -63
  1082. package/dist/theme.d.ts.map +0 -1
  1083. package/dist/theme.js +0 -6
  1084. package/dist/theme.js.map +0 -1
  1085. package/dist/tokens/index.d.ts +0 -4
  1086. package/dist/tokens/index.d.ts.map +0 -1
  1087. package/dist/tokens/index.js +0 -296
  1088. package/dist/tokens/index.js.map +0 -1
  1089. package/dist/tokens/motion-config.d.ts +0 -44
  1090. package/dist/tokens/motion-config.d.ts.map +0 -1
  1091. package/dist/tokens/motion.d.ts +0 -164
  1092. package/dist/tokens/motion.d.ts.map +0 -1
  1093. package/dist/tokens/tokens.d.ts +0 -34
  1094. package/dist/tokens/tokens.d.ts.map +0 -1
  1095. package/dist/utils/cn.d.ts +0 -3
  1096. package/dist/utils/cn.d.ts.map +0 -1
  1097. package/dist/utils/dom.d.ts +0 -5
  1098. package/dist/utils/dom.d.ts.map +0 -1
  1099. package/dist/utils/index.d.ts.map +0 -1
  1100. package/dist/utils/number.d.ts +0 -3
  1101. package/dist/utils/number.d.ts.map +0 -1
  1102. package/dist/utils/object.d.ts +0 -5
  1103. package/dist/utils/object.d.ts.map +0 -1
  1104. package/dist/utils/report.d.ts +0 -5
  1105. package/dist/utils/report.d.ts.map +0 -1
  1106. package/dist/utils/scheduler.d.ts +0 -34
  1107. package/dist/utils/scheduler.d.ts.map +0 -1
  1108. package/dist/utils/store.d.ts +0 -11
  1109. package/dist/utils/store.d.ts.map +0 -1
  1110. package/dist/utils/string.d.ts +0 -5
  1111. package/dist/utils/string.d.ts.map +0 -1
  1112. package/dist/utils/timing.d.ts +0 -7
  1113. package/dist/utils/timing.d.ts.map +0 -1
  1114. package/dist/utils/user-message.d.ts +0 -20
  1115. package/dist/utils/user-message.d.ts.map +0 -1
  1116. package/templates/motion/background.ts +0 -17
  1117. package/templates/motion/context-menu.ts +0 -63
  1118. package/templates/motion/dock.ts +0 -395
  1119. package/templates/motion/modal.ts +0 -79
  1120. package/templates/motion/notification.ts +0 -27
  1121. package/templates/motion/tokens.ts +0 -47
  1122. /package/dist/{atoms → ambient}/index.js.map +0 -0
  1123. /package/dist/{modules/ambient → background}/index.js.map +0 -0
  1124. /package/dist/{modules/background → context-menu}/index.js.map +0 -0
  1125. /package/dist/{modules/context-menu → controls}/index.js.map +0 -0
  1126. /package/dist/{kernel → core/kernel}/runtime.d.ts +0 -0
  1127. /package/dist/{modules/controls → dock}/index.js.map +0 -0
  1128. /package/dist/{modules/dock → loading}/index.js.map +0 -0
  1129. /package/dist/{modules/loading → media}/index.js.map +0 -0
  1130. /package/dist/{modules/media → notification}/index.js.map +0 -0
  1131. /package/dist/{modules/modal → provider}/index.js.map +0 -0
  1132. /package/dist/{modules/notification → theme}/index.js.map +0 -0
@@ -1,1362 +0,0 @@
1
- import type { NavigationTrip } from "../navigation/types";
2
- import { createScheduler, type ExternalStore } from "../../utils";
3
- import { type ComponentType, type ReactNode, type SyntheticEvent, type CSSProperties, type ReactElement } from "react";
4
- import { type SpringOptions, type TargetAndTransition, type Transition, type Variants } from "motion/react";
5
- import { type RegistryMetadata } from "../../kernel";
6
- import { type ResolvedTheme } from "../../theme";
7
- export type DockComponent = ComponentType<any>;
8
- export type DockComponentProps = Record<string, unknown>;
9
- export type DockIconSource = ReactNode;
10
- export type DockEventHandler = {
11
- bivarianceHack(event?: SyntheticEvent): void;
12
- }["bivarianceHack"];
13
- export type DockSlotContent = ReactNode | DockComponent;
14
- export type SurfaceResult = unknown;
15
- export type DockBannerSource = string | {
16
- bannerOpacity?: number | null;
17
- bannerPosition?: string | null;
18
- bannerRepeat?: string | null;
19
- bannerSize?: string | null;
20
- bannerUrl?: string | null;
21
- opacity?: number | null;
22
- position?: string | null;
23
- repeat?: string | null;
24
- size?: string | null;
25
- url?: string | null;
26
- } | null;
27
- export interface DockIconOverlayConfig {
28
- icon: DockIconSource;
29
- title?: string;
30
- onClick?: DockEventHandler;
31
- }
32
- export interface DockBadgeState {
33
- color?: string;
34
- value?: string | number | null;
35
- visible: boolean;
36
- }
37
- export interface DockActionDescriptor {
38
- badge?: string | number | null;
39
- className?: string | null;
40
- disabled?: boolean;
41
- icon?: DockIconSource;
42
- key?: string;
43
- label?: string | null;
44
- onClick?: DockEventHandler | null;
45
- order?: number;
46
- tone?: string | null;
47
- tooltip?: string | null;
48
- visible?: boolean;
49
- }
50
- export type DockActionOverrides = Partial<DockActionDescriptor> | DockEventHandler;
51
- export interface DockActionDefinition {
52
- bind: (overrides?: DockActionOverrides) => DockActionDescriptor;
53
- config: DockActionDescriptor;
54
- create: (overrides?: DockActionOverrides) => DockActionDescriptor;
55
- id: string;
56
- key: string;
57
- use: (overrides?: DockActionOverrides) => void;
58
- }
59
- export type DockStyleSectionName = "card" | "icon" | "title" | "description";
60
- export type DockVisualStyleSection = Omit<CSSProperties, "scale"> & {
61
- className?: string;
62
- scale?: number;
63
- size?: number;
64
- };
65
- export type DockVisualStyleSections = Partial<Record<DockStyleSectionName, DockVisualStyleSection>>;
66
- export interface DockVisualStyleInput extends DockVisualStyleSections {
67
- active?: DockVisualStyleSections;
68
- background?: CSSProperties["background"];
69
- borderColor?: CSSProperties["borderColor"];
70
- hover?: DockVisualStyleSections;
71
- inactive?: DockVisualStyleSections;
72
- scale?: number;
73
- }
74
- export interface DockVisualStyle extends Record<DockStyleSectionName, DockVisualStyleSection> {
75
- scale?: number;
76
- }
77
- export interface BreadcrumbItem {
78
- icon?: DockIconSource;
79
- id?: string;
80
- isCurrent?: boolean;
81
- isEllipsis?: boolean;
82
- level?: number;
83
- path: string;
84
- title: string;
85
- }
86
- export interface BreadcrumbOverride {
87
- icon?: DockIconSource;
88
- title?: string | null;
89
- }
90
- export interface BreadcrumbConfig {
91
- root?: Partial<BreadcrumbItem>;
92
- resolvePath?: (context: {
93
- overrides: Record<string, BreadcrumbOverride>;
94
- pathname: string;
95
- root: BreadcrumbItem;
96
- segments: string[];
97
- }) => BreadcrumbItem[] | null;
98
- resolveSegment?: (context: BreadcrumbItem & {
99
- index: number;
100
- segment: string;
101
- segments: string[];
102
- }) => Partial<BreadcrumbItem> | null;
103
- }
104
- export interface BreadcrumbContextValue {
105
- actions: {
106
- registerOverride: (path: string, overrideConfig: BreadcrumbOverride) => void;
107
- unregisterOverride: (path: string) => void;
108
- };
109
- config: BreadcrumbConfig;
110
- overrides: Record<string, BreadcrumbOverride>;
111
- }
112
- export interface DockContinuityRememberOptions {
113
- focusKey?: string | null;
114
- scrollY?: number;
115
- snapshot?: unknown;
116
- updatedAt?: number;
117
- }
118
- export interface DockReturnHandoffInput {
119
- data?: unknown;
120
- flowId?: string | null;
121
- status?: string | null;
122
- timestamp?: number;
123
- }
124
- export interface PrefetchingRouter {
125
- prefetch(href: string, options?: {
126
- onInvalidate?: () => void;
127
- }): void;
128
- }
129
- export interface RoutePrefetchState {
130
- isPrefetched: boolean;
131
- timeoutId: ReturnType<typeof setTimeout> | null;
132
- }
133
- export interface SurfaceUrlState {
134
- previousValue: string | null;
135
- value: string;
136
- }
137
- export interface DockSurfaceHistoryState {
138
- flow?: {
139
- id: string;
140
- snapshot: unknown;
141
- };
142
- value: string;
143
- }
144
- export interface DockHudAction {
145
- label: string;
146
- onClick: () => void;
147
- tone?: "primary" | "destructive" | "secondary";
148
- variant?: "primary" | "destructive" | "muted";
149
- }
150
- export interface DockHudDescriptor {
151
- actions?: DockHudAction[];
152
- autoDismissMs?: number | null;
153
- component?: DockComponent | null;
154
- content?: ReactNode;
155
- description?: string;
156
- dismissOnEscape?: boolean;
157
- dismissOnNavigate?: boolean;
158
- element?: ReactNode;
159
- icon?: DockIconSource;
160
- id: string;
161
- isActive?: boolean;
162
- node?: ReactNode;
163
- onCancel?: (() => void) | null;
164
- onDismiss?: (() => void) | null;
165
- priority?: number;
166
- props?: DockComponentProps;
167
- renderMode?: string;
168
- title?: string;
169
- }
170
- export type DockHudOverrides = Partial<DockHudDescriptor>;
171
- export interface DockHudHandle {
172
- dismiss: (clearHudFn: (id?: string) => void) => void;
173
- id: string;
174
- update: (nextProps?: DockComponentProps) => void;
175
- }
176
- export interface DockHudTrigger {
177
- clear: (id?: string) => void;
178
- hide: (targetId?: string) => void;
179
- show: (props?: DockComponentProps, overrides?: DockHudOverrides) => DockHudHandle | null;
180
- }
181
- export interface GeneralHudHandle {
182
- clearHud: (id?: string) => void;
183
- setHud: (descriptor: DockHudDescriptor) => void;
184
- }
185
- export type UseHudReturn = DockHudTrigger | GeneralHudHandle;
186
- export interface DockHudDefinition {
187
- config: Omit<DockHudDescriptor, "props"> & {
188
- defaultProps?: DockComponentProps;
189
- };
190
- create: (props?: DockComponentProps, overrides?: DockHudOverrides) => DockHudDescriptor;
191
- hide: (clearHudFn: (id?: string) => void, targetId?: string) => void;
192
- id: string;
193
- show: (setHudFn: (descriptor: DockHudDescriptor) => void, props?: DockComponentProps, overrides?: DockHudOverrides) => DockHudHandle;
194
- use: (props?: DockComponentProps, overrides?: DockHudOverrides) => void;
195
- useTrigger: () => DockHudTrigger;
196
- }
197
- export interface SelectionModeState {
198
- count: number;
199
- hasSelection: boolean;
200
- isActive: boolean;
201
- isAllSelected: boolean;
202
- selectedIds: (string | number)[];
203
- }
204
- export type DockOperationHud = DockHudDescriptor | DockComponent | ReactNode;
205
- export interface DockOperationInput {
206
- cancellable?: boolean;
207
- description?: string | null;
208
- hud?: DockOperationHud;
209
- icon?: DockIconSource;
210
- id?: string | number;
211
- label?: string;
212
- metadata?: Record<string, unknown> | null;
213
- onCancel?: ((result?: unknown) => unknown) | null;
214
- priority?: number;
215
- progress?: number | null;
216
- startedAt?: number;
217
- }
218
- export interface DockOperation {
219
- cancellable: boolean;
220
- description: string | null;
221
- endedAt?: number;
222
- hud: DockOperationHud;
223
- icon: DockIconSource;
224
- id: string;
225
- label: string;
226
- metadata: Record<string, unknown>;
227
- onCancel: ((result?: unknown) => unknown) | null;
228
- priority: number;
229
- progress: number | null;
230
- result?: unknown;
231
- startedAt: number;
232
- status: string;
233
- }
234
- export interface DockOperationState {
235
- entries: DockOperation[];
236
- }
237
- export interface DockOperationAction {
238
- endedAt?: number;
239
- id?: string | number | null;
240
- maxEntries?: number;
241
- operation?: DockOperation | null;
242
- patch?: Partial<DockOperationInput>;
243
- result?: unknown;
244
- type: string;
245
- }
246
- export interface DockOperationActions {
247
- cancel: (id: string | number, result?: unknown) => boolean;
248
- clear: (id?: string | number | null) => void;
249
- complete: (id: string | number, result?: unknown) => boolean;
250
- start: (input?: DockOperationInput) => DockOperation | null;
251
- update: (id: string | number, patch?: Partial<DockOperationInput>) => boolean;
252
- }
253
- export interface DockContinuityActions {
254
- clear: () => void;
255
- consumeReturn: (pathname: string, handoffId?: string | null) => DockReturnHandoff | null;
256
- deliverReturn: (pathname: string, input?: DockReturnHandoffInput) => DockReturnHandoff | null;
257
- get: (pathname: string) => DockContinuityEntry | null;
258
- getReturns: (pathname: string) => DockReturnHandoff[];
259
- remember: (pathname: string, options?: DockContinuityRememberOptions) => DockContinuityEntry | null;
260
- remove: (pathname: string) => void;
261
- restore: (pathname: string, options?: {
262
- focusKey?: string | null;
263
- restoreScroll?: boolean;
264
- }) => DockContinuityEntry | null;
265
- }
266
- export interface DockAttention {
267
- kind: string;
268
- priority: number;
269
- source?: unknown;
270
- }
271
- export interface DockRoutePolicy {
272
- canNavigate: boolean;
273
- clearTransientState: boolean;
274
- dismissSurfaces: boolean;
275
- prefetch: boolean;
276
- }
277
- export type DockRoutePolicyOverrides = Partial<Pick<DockRoutePolicy, "clearTransientState" | "dismissSurfaces" | "prefetch">>;
278
- /** A dock navigation is a trip of the navigation module. */
279
- export type DockTransaction = NavigationTrip;
280
- export interface DockContinuityEntry {
281
- focusKey: string | null;
282
- path: string;
283
- scrollY: number;
284
- snapshot: Record<string, unknown>;
285
- updatedAt: number;
286
- }
287
- export interface DockReturnHandoff {
288
- data: unknown;
289
- flowId: string | null;
290
- id: string;
291
- path: string;
292
- status: string | null;
293
- timestamp: number;
294
- }
295
- export interface DockContinuityState {
296
- entries: DockContinuityEntry[];
297
- returnHandoffs: DockReturnHandoff[];
298
- }
299
- export interface DockContinuityAction {
300
- entry?: DockContinuityEntry;
301
- handoff?: DockReturnHandoff;
302
- handoffId?: string;
303
- maxEntries?: number;
304
- path?: string;
305
- type: string;
306
- }
307
- export interface DockTopologyNode {
308
- depth: number;
309
- id: string;
310
- parentId: string | null;
311
- path: string;
312
- }
313
- export interface DockTopology {
314
- activeNode: DockTopologyNode | null;
315
- activePath: string;
316
- ancestors: DockTopologyNode[];
317
- nodes: DockTopologyNode[];
318
- }
319
- export interface SurfaceHeaderConfig {
320
- description?: string;
321
- icon?: DockIconSource;
322
- title?: string;
323
- }
324
- export type SurfaceId = number;
325
- export type SurfaceExtensionAlign = "left" | "center" | "right";
326
- export interface SurfaceExtension {
327
- align?: SurfaceExtensionAlign | "start" | "end";
328
- className?: string;
329
- component?: DockComponent | null;
330
- content?: ReactNode;
331
- id?: string;
332
- key?: string;
333
- order?: number;
334
- props?: DockComponentProps;
335
- unstyled?: boolean;
336
- }
337
- export type SurfaceExtensionInput = SurfaceExtension | ReactElement;
338
- export interface NormalizedSurfaceExtension {
339
- align: SurfaceExtensionAlign;
340
- className: string;
341
- component: DockComponent | null;
342
- content: ReactNode;
343
- id: string;
344
- order: number;
345
- props: DockComponentProps;
346
- unstyled: boolean;
347
- }
348
- export interface SurfaceStep {
349
- action?: DockSlotContent;
350
- closeLabel?: string | null;
351
- component?: DockComponent | null;
352
- loader?: () => Promise<{
353
- default: DockComponent;
354
- }>;
355
- content?: ReactNode;
356
- description?: string | null;
357
- descriptionMaxLines?: number;
358
- element?: ReactNode;
359
- extensions?: SurfaceExtensionInput | SurfaceExtensionInput[];
360
- header?: SurfaceHeaderConfig;
361
- headerAction?: DockSlotContent;
362
- icon?: DockIconSource;
363
- id?: string | null;
364
- node?: ReactNode;
365
- props?: DockComponentProps;
366
- showAction?: boolean | null;
367
- title?: string | null;
368
- trailing?: DockSlotContent;
369
- }
370
- export interface SurfaceReturnHandshake {
371
- focusKey: string | null;
372
- pathname: string;
373
- restoreScroll: boolean;
374
- returnOnCancel: boolean;
375
- }
376
- export type SurfaceReturnHandshakeInput = string | Partial<SurfaceReturnHandshake> | null | undefined;
377
- export interface SurfaceFlowCreateContext {
378
- flowId: string;
379
- input: unknown;
380
- snapshot: unknown;
381
- }
382
- export interface SurfaceFlowDefinitionInput {
383
- createSurface: (context: SurfaceFlowCreateContext) => SurfaceInput;
384
- id: string;
385
- initialSnapshot?: unknown;
386
- restoreFromUrl?: boolean;
387
- returnHandshake?: SurfaceReturnHandshakeInput;
388
- returnTo?: string;
389
- singleton?: boolean;
390
- }
391
- export interface SurfaceFlowDefinition {
392
- createSurface: (context: SurfaceFlowCreateContext) => SurfaceInput;
393
- id: string;
394
- initialSnapshot: Record<string, unknown> | null;
395
- restoreFromUrl: boolean;
396
- returnHandshake: SurfaceReturnHandshake | null;
397
- singleton: boolean;
398
- }
399
- export interface SurfaceFlowSession {
400
- flowId: string;
401
- input: unknown;
402
- returnHandshake: SurfaceReturnHandshake | null;
403
- snapshot: unknown;
404
- status: string;
405
- surfaceId?: SurfaceId;
406
- }
407
- export type SurfaceFlowState = Omit<SurfaceFlowSession, "input" | "surfaceId">;
408
- export interface SurfaceFlowHandle {
409
- cancel: (data?: unknown) => boolean;
410
- complete: (data?: unknown) => boolean;
411
- flowId: string;
412
- isOpen: boolean;
413
- snapshot: unknown;
414
- status: string;
415
- update: (snapshot: unknown) => boolean;
416
- }
417
- export interface SurfaceDescriptor {
418
- action?: DockSlotContent;
419
- allowSwipeDismiss?: boolean;
420
- badge?: ReactNode;
421
- closeLabel?: string | null;
422
- component?: DockComponent | null;
423
- loader?: () => Promise<{
424
- default: DockComponent;
425
- }>;
426
- content?: ReactNode;
427
- currentStepIndex?: number;
428
- description?: string | null;
429
- descriptionMaxLines?: number;
430
- dismissible?: boolean;
431
- element?: ReactNode;
432
- extensions?: SurfaceExtensionInput | SurfaceExtensionInput[];
433
- header?: SurfaceHeaderConfig;
434
- headerAction?: DockSlotContent;
435
- icon?: DockIconSource;
436
- id?: string | null;
437
- node?: ReactNode;
438
- onClose?: ((result?: SurfaceResult) => void) | null;
439
- props?: DockComponentProps;
440
- showAction?: boolean | null;
441
- skipActionDismiss?: boolean;
442
- steps?: SurfaceStep[] | null;
443
- syncWithUrl?: boolean | string;
444
- title?: string | null;
445
- trailing?: DockSlotContent;
446
- urlKey?: string | null;
447
- width?: number | string | null;
448
- }
449
- export type SurfaceEntry = SurfaceDescriptor;
450
- export type SurfaceEntryFactory = ((config?: DockComponentProps) => SurfaceDescriptor | null) & {
451
- id?: string | null;
452
- isSurfaceFactory?: boolean;
453
- };
454
- export type SurfaceInput = SurfaceDescriptor | SurfaceEntryFactory | DockComponent | ReactNode;
455
- export interface OpenSurfaceOptions extends Partial<SurfaceDescriptor> {
456
- flowSession?: SurfaceFlowSession | null;
457
- preserveUrl?: boolean;
458
- }
459
- export interface NormalizedSurfaceDefinition {
460
- action: DockSlotContent | null;
461
- allowSwipeDismiss: boolean;
462
- badge: ReactNode;
463
- closeLabel: string | null;
464
- component: DockComponent | null;
465
- content: ReactNode;
466
- currentStepIndex: number;
467
- description: string | null;
468
- descriptionMaxLines: number;
469
- dismissible: boolean;
470
- extensions: NormalizedSurfaceExtension[];
471
- headerAction: DockSlotContent | null;
472
- icon: DockIconSource;
473
- onClose: ((result?: SurfaceResult) => void) | null;
474
- props: DockComponentProps;
475
- renderMode: string;
476
- showAction: boolean | null;
477
- skipActionDismiss: boolean;
478
- steps: SurfaceStep[] | null;
479
- syncWithUrl: boolean | string;
480
- title: string | null;
481
- trailing: DockSlotContent | null;
482
- urlKey: string | null;
483
- width: number | string | null;
484
- }
485
- export type SurfacePayloadKey = "action" | "closeLabel" | "component" | "content" | "description" | "headerAction" | "icon" | "onClose" | "props" | "showAction" | "steps" | "title" | "trailing";
486
- export type SurfacePayload = Pick<NormalizedSurfaceDefinition, SurfacePayloadKey>;
487
- export interface SurfaceStackEntry extends Omit<NormalizedSurfaceDefinition, SurfacePayloadKey> {
488
- flow?: SurfaceFlowState | null;
489
- id: SurfaceId;
490
- payloadId: string;
491
- }
492
- export type ResolvedSurfaceEntry = Partial<SurfacePayload> & SurfaceStackEntry;
493
- export type RenderableSurfaceEntry = Partial<NormalizedSurfaceDefinition> & {
494
- flow?: SurfaceFlowState | null;
495
- id?: SurfaceId | null;
496
- payloadId?: string;
497
- };
498
- export interface ActiveSurfaceStep extends RenderableSurfaceEntry {
499
- canGoBack?: boolean;
500
- isFirstStep?: boolean;
501
- isLastStep?: boolean;
502
- stepIndex?: number;
503
- totalSteps?: number;
504
- }
505
- export interface SurfaceState {
506
- activeSurfaceEntry: ResolvedSurfaceEntry | null;
507
- activeSurfaceId: SurfaceId | null;
508
- isSurfaceOpen: boolean;
509
- surfacePhase: string;
510
- surfaceStack: ResolvedSurfaceEntry[];
511
- }
512
- export interface SurfaceTransitionState {
513
- closingSurfaceIds: readonly SurfaceId[];
514
- phase: string;
515
- surfaceIds: readonly SurfaceId[];
516
- surfaceLifecycle: string;
517
- }
518
- export interface SurfaceTransitionEvent {
519
- skipActionDismiss?: boolean;
520
- surfaceId?: SurfaceId | null;
521
- type: string;
522
- value?: unknown;
523
- }
524
- export interface SurfaceTransitionEffect {
525
- delayMs?: number;
526
- event?: SurfaceTransitionEvent;
527
- label?: string;
528
- surfaceId?: SurfaceId;
529
- surfaceIds?: readonly SurfaceId[];
530
- type: string;
531
- }
532
- export interface SurfaceTransitionResult {
533
- effects: readonly SurfaceTransitionEffect[];
534
- state: SurfaceTransitionState;
535
- }
536
- export interface SurfaceLifecycleState {
537
- surfaceIds: SurfaceId[];
538
- surfaceLifecycle: string;
539
- }
540
- export interface DockItemRouteFields {
541
- activeChild?: DockItem | null;
542
- children?: DockItem[] | null;
543
- hasActiveChild?: boolean;
544
- id?: string | null;
545
- isParent?: boolean;
546
- name?: string | null;
547
- onClick?: DockEventHandler | null;
548
- path?: string | null;
549
- priority?: number | null;
550
- targetPath?: string | null;
551
- type?: string;
552
- dockPolicy?: DockRoutePolicyOverrides;
553
- keepWhenDescendant?: boolean | ((activePath: string, item: DockItem) => boolean);
554
- prefetchDisabled?: boolean;
555
- stackOrder?: number;
556
- statusType?: string;
557
- }
558
- export interface DockItemPresentationFields {
559
- action?: DockSlotContent;
560
- actions?: DockSlotContent;
561
- badge?: ReactNode;
562
- banner?: DockBannerSource;
563
- bannerOpacity?: number | null;
564
- bannerPosition?: string | null;
565
- bannerRepeat?: string | null;
566
- bannerSize?: string | null;
567
- bannerUrl?: string | null;
568
- className?: string;
569
- component?: DockComponent | null;
570
- content?: ReactNode;
571
- description?: string | null;
572
- headerAction?: DockSlotContent;
573
- icon?: DockIconSource;
574
- iconOverlay?: DockIconOverlayConfig | null;
575
- props?: DockComponentProps;
576
- style?: DockVisualStyleInput | null;
577
- title?: string | null;
578
- width?: number | string | null;
579
- }
580
- export interface DockItemSurfaceFields {
581
- allowSwipeDismiss?: boolean;
582
- backLabel?: string | null;
583
- canGoBack?: boolean;
584
- closeAllSurfaces?: (() => void) | null;
585
- closeLabel?: string | null;
586
- closeSurface?: ((result?: SurfaceResult) => void) | null;
587
- currentStepIndex?: number;
588
- dismissible?: boolean;
589
- extensions?: NormalizedSurfaceExtension[];
590
- goToStep?: ((index: number) => void) | null;
591
- isFirstStep?: boolean;
592
- isLastStep?: boolean;
593
- isSurface?: boolean;
594
- onAnimationComplete?: () => void;
595
- onBack?: (() => void) | null;
596
- onClose?: ((result?: SurfaceResult) => void) | null;
597
- popStep?: (() => void) | null;
598
- pushStep?: ((step: SurfaceStep) => void) | null;
599
- /** The page's action, under a surface: shown while the card faces the page. */
600
- restingAction?: DockSlotContent | null;
601
- restingWidth?: number | string | null;
602
- stepIndex?: number;
603
- steps?: SurfaceStep[] | null;
604
- surface?: SurfaceInput | null;
605
- surfaceBackLabel?: string | null;
606
- surfaceCloseLabel?: string | null;
607
- surfaceComponent?: DockComponent | null;
608
- surfaceContent?: ReactNode;
609
- surfaceDescription?: string | null;
610
- surfaceDescriptionMaxLines?: number;
611
- surfaceExtensions?: NormalizedSurfaceExtension[];
612
- surfaceHeaderAction?: DockSlotContent;
613
- surfaceIcon?: DockIconSource;
614
- surfaceId?: SurfaceId | null;
615
- surfacePhase?: string;
616
- surfaceProps?: DockComponentProps;
617
- surfaceStackEntries?: DockItemSurfaceFields[];
618
- surfaceTitle?: string | null;
619
- surfaceTrailing?: DockSlotContent;
620
- totalSteps?: number;
621
- width?: number | string | null;
622
- }
623
- export interface DockItemRuntimeFields {
624
- disabled?: boolean;
625
- isAnchoredToBottom?: boolean;
626
- isDataSource?: boolean;
627
- isExpanded?: boolean;
628
- isHud?: boolean;
629
- isInactive?: boolean;
630
- isLoading?: boolean;
631
- isMasked?: boolean;
632
- isNotFound?: boolean;
633
- isOverlay?: boolean;
634
- /** The previous card, held on top until the new path registers its own. */
635
- isRoutePending?: boolean;
636
- isSelected?: boolean;
637
- isStatus?: boolean;
638
- mediaAction?: boolean;
639
- }
640
- export interface DockItem extends DockItemRouteFields, DockItemPresentationFields, DockItemSurfaceFields, DockItemRuntimeFields {
641
- }
642
- export interface DockGuardConfirmation {
643
- from: string;
644
- href: string;
645
- message?: string;
646
- routePolicy: DockRoutePolicy;
647
- }
648
- export interface DockGuardDefinition {
649
- message?: string;
650
- onBlock?: (info: {
651
- from: string;
652
- guardId: number;
653
- message: string;
654
- to: string;
655
- }) => void;
656
- when: boolean | ((to: string, from: string) => boolean | Promise<boolean>);
657
- }
658
- export interface UseDockGuardOptions {
659
- message?: string;
660
- when?: boolean | ((to?: string, from?: string) => boolean | Promise<boolean>);
661
- onBlock?: (info: {
662
- from: string;
663
- guardId: number;
664
- message: string;
665
- to: string;
666
- }) => void;
667
- }
668
- export interface GuardCheckResult {
669
- blocked: boolean;
670
- guardId?: number;
671
- message?: string;
672
- reason?: "blocked" | "error";
673
- }
674
- export interface DockGuard {
675
- message?: string;
676
- onBlock?: (info: {
677
- to: string;
678
- from: string;
679
- guardId: number;
680
- message: string;
681
- }) => void;
682
- when: boolean | ((to: string, from: string) => boolean | Promise<boolean>);
683
- }
684
- export interface DockState {
685
- activeItem: DockItem | null;
686
- activeOperation: DockOperation | null;
687
- activeSurfaceEntry: ResolvedSurfaceEntry | null;
688
- activeSurfaceId: number | null;
689
- contextActions: DockActionDescriptor[];
690
- dockContinuity: DockContinuityEntry[];
691
- dockHeight: number;
692
- dockReturnHandoffs: DockReturnHandoff[];
693
- expanded: boolean;
694
- hud: DockHudDescriptor | null;
695
- hudEntries: DockHudDescriptor[];
696
- isHudActive: boolean;
697
- isSurfaceOpen: boolean;
698
- locationKey: string;
699
- operations: DockOperation[];
700
- pathname: string;
701
- searchQuery: string;
702
- selectionMode: DockHudDescriptor | null;
703
- surfaceLifecycle: string;
704
- surfacePhase: string;
705
- surfaceStack: ResolvedSurfaceEntry[];
706
- }
707
- export interface DockNavigateOptions {
708
- force?: boolean;
709
- item?: DockItem | null;
710
- source?: string;
711
- }
712
- export interface DockRouteActions {
713
- clearDockGuards: () => void;
714
- clearPreparedRouteReset: () => void;
715
- continuity: DockContinuityActions;
716
- navigate: (href: string, options?: DockNavigateOptions) => Promise<boolean>;
717
- prepareRouteReset: (policy: DockRoutePolicy | null) => void;
718
- registerGuard: (guard: DockGuardDefinition) => () => void;
719
- }
720
- export interface DockInternalActions {
721
- setIsHovered: (hovered: boolean) => void;
722
- cancelActiveTransaction: (reason?: string) => void;
723
- cancelDock: (reason?: string) => void;
724
- clearBreadcrumbOverride: (path: string) => void;
725
- completeDock: (path: string) => void;
726
- openGuardConfirmation: (config: DockGuardConfirmation) => void;
727
- registerBreadcrumbOverride: (path: string, config: BreadcrumbOverride) => void;
728
- }
729
- export interface DockSurfaceActions {
730
- cancelSurfaceFlow: (flowId: string, result?: SurfaceResult) => boolean;
731
- closeAllSurfaces: (result?: SurfaceResult) => void;
732
- closeSurface: (result?: SurfaceResult, surfaceId?: SurfaceId | null) => void;
733
- completeSurfaceFlow: (flowId: string, result?: SurfaceResult) => boolean;
734
- getSurfaceFlow?: ((flowId: string) => SurfaceFlowHandle | null) | null;
735
- goBackSurface: () => void;
736
- goToStep: (index: number, surfaceId?: SurfaceId | null) => void;
737
- openSurface: (definition: SurfaceInput, config?: OpenSurfaceOptions) => Promise<SurfaceResult>;
738
- openSurfaceFlow: (definition: SurfaceFlowDefinitionInput, input?: unknown) => Promise<SurfaceResult>;
739
- popStep: (surfaceId?: SurfaceId | null) => void;
740
- pushStep: (step: SurfaceStep, surfaceId?: SurfaceId | null) => void;
741
- restoreSurfaceFlow: (definition: SurfaceFlowDefinitionInput) => Promise<SurfaceResult>;
742
- updateSurfaceFlow: (flowId: string, snapshot: unknown) => boolean;
743
- }
744
- export interface DockUiActions {
745
- clearHud: (id?: string) => void;
746
- operations: DockOperationActions;
747
- registerContextAction: (action: Partial<DockActionDescriptor>) => void;
748
- setContextActions: (actions: DockActionDescriptor[]) => void;
749
- setExpanded: (expanded: boolean) => void;
750
- setHud: (descriptor: DockHudDescriptor) => void;
751
- setDockHeight: (height: number) => void;
752
- setSearchQuery: (query: string) => void;
753
- unregisterContextAction: (key: string) => void;
754
- }
755
- export interface DockActions extends DockRouteActions, DockSurfaceActions, DockUiActions {
756
- }
757
- export interface DockDimensions {
758
- baseHeight: number;
759
- cardWidth: number;
760
- hudHeight: number;
761
- dockHeight: number;
762
- stackWidth: number;
763
- }
764
- export interface DockProviderProps {
765
- breadcrumbConfig?: BreadcrumbConfig | null;
766
- children?: ReactNode;
767
- mediaAction?: ComponentType | null;
768
- notFoundAction?: ComponentType | null;
769
- scheduler?: DockScheduler | null;
770
- }
771
- export interface DockContextValue {
772
- actions: DockActions;
773
- runtimeActions: {
774
- mediaAction: ComponentType | null;
775
- notFoundAction: ComponentType | null;
776
- };
777
- runtimeScheduler: DockScheduler;
778
- store: ExternalStore<DockState>;
779
- view: DockViewBridge;
780
- guards: DockGuardRegistry;
781
- }
782
- export interface DockRouteSnapshot {
783
- activeItem: DockItem | null;
784
- locationKey: string;
785
- pathname: string;
786
- }
787
- export interface DockViewBridge {
788
- publishRoute: (snapshot: DockRouteSnapshot) => void;
789
- setNavigator: (navigate: DockActions["navigate"] | null) => void;
790
- }
791
- export type DockSurfaceSlot = Record<string, unknown> | DockComponent | ((props: Record<string, unknown>) => unknown);
792
- export interface DockPageGuard {
793
- message?: string;
794
- onBlock?: (info: {
795
- from: string;
796
- guardId: number;
797
- message: string;
798
- to: string;
799
- }) => void;
800
- when: boolean;
801
- }
802
- export type DockBannerInput = string | {
803
- bannerOpacity?: number | null;
804
- bannerPosition?: string | null;
805
- bannerRepeat?: string | null;
806
- bannerSize?: string | null;
807
- bannerUrl?: string | null;
808
- opacity?: number | null;
809
- position?: string | null;
810
- repeat?: string | null;
811
- size?: string | null;
812
- url?: string | null;
813
- };
814
- export type DockPageCardFields = Omit<DockItemPresentationFields, "actions"> & Pick<DockItemRouteFields, "dockPolicy" | "keepWhenDescendant" | "name" | "path" | "prefetchDisabled" | "stackOrder" | "targetPath"> & Pick<DockItemRuntimeFields, "isLoading" | "isOverlay"> & Pick<DockItemSurfaceFields, "dismissible">;
815
- export interface DockPageConfig extends DockPageCardFields {
816
- actions?: Partial<DockActionDescriptor>[];
817
- breadcrumbs?: unknown[];
818
- guard?: DockPageGuard;
819
- registry?: RegistryMetadata;
820
- surfaces?: Record<string, DockSurfaceSlot>;
821
- }
822
- export type DockPageApi = DockActions & {
823
- set: (dock: DockPageConfig) => void;
824
- surface: (surface: DockSurfaceSlot | string, props?: Record<string, unknown>) => unknown;
825
- };
826
- export interface DockStatusTheme {
827
- card?: {
828
- className?: string;
829
- };
830
- icon?: {
831
- className?: string;
832
- };
833
- title?: {
834
- className?: string;
835
- };
836
- description?: {
837
- className?: string;
838
- opacity?: number;
839
- };
840
- }
841
- export interface DockStatusDescriptor {
842
- action?: DockSlotContent;
843
- actions?: DockSlotContent;
844
- description: string;
845
- flow?: string | null;
846
- hideScroll?: boolean;
847
- icon?: DockIconSource;
848
- isOverlay: boolean;
849
- path?: string;
850
- priority?: number | null;
851
- style?: DockStatusTheme;
852
- title: string;
853
- type: string;
854
- }
855
- export interface LastKnownAccount {
856
- avatarUrl?: string | null;
857
- displayName?: string | null;
858
- email?: string | null;
859
- id?: string | null;
860
- username?: string | null;
861
- }
862
- export interface ScheduleStatusClearOptions {
863
- clearWhen?: string[];
864
- duration?: number;
865
- }
866
- export interface QueuedApiError {
867
- message?: string;
868
- retry?: () => void;
869
- status?: number;
870
- }
871
- export interface PersistedOverlayStatus {
872
- description?: string;
873
- expiresAt?: number;
874
- flow?: string | null;
875
- icon?: string | null;
876
- priority?: number | null;
877
- title?: string;
878
- type?: string;
879
- }
880
- export interface DockScene {
881
- companion: "notification" | "breadcrumbs" | null;
882
- expanded: boolean;
883
- isCompanionVisible: boolean;
884
- topKind: "surface" | "status-overlay" | "status" | "hud" | "route";
885
- }
886
- export interface DefineHudOptions {
887
- autoDismissMs?: number | null;
888
- component?: DockComponent | null;
889
- defaultProps?: DockComponentProps;
890
- description?: string;
891
- dismissOnEscape?: boolean;
892
- dismissOnNavigate?: boolean;
893
- icon?: DockIconSource;
894
- id?: string;
895
- priority?: number;
896
- title?: string;
897
- [key: string]: unknown;
898
- }
899
- export interface DefineBreadcrumbOptions {
900
- icon?: DockIconSource | ((props: DockComponentProps) => DockIconSource);
901
- path?: string | null;
902
- title?: string | null | ((props: DockComponentProps) => string | null);
903
- [key: string]: unknown;
904
- }
905
- export interface DefineStepSurfaceOptions {
906
- currentStepIndex?: number;
907
- defaultProps?: DockComponentProps;
908
- id?: string;
909
- steps?: SurfaceStep[] | ((props?: DockComponentProps) => SurfaceStep[]);
910
- title?: string | null | ((props?: DockComponentProps) => string | null);
911
- width?: number | string | null;
912
- [key: string]: unknown;
913
- }
914
- export interface DefineDockActionOptions {
915
- badge?: string | number | null;
916
- className?: string | null;
917
- disabled?: boolean;
918
- icon?: DockIconSource;
919
- key?: string;
920
- onClick?: DockEventHandler | null;
921
- order?: number;
922
- tone?: string | null;
923
- tooltip?: string | null;
924
- visible?: boolean;
925
- [key: string]: unknown;
926
- }
927
- export interface DockCardBannerProps {
928
- banner?: DockBannerSource;
929
- bannerUrl?: string | null;
930
- bannerPosition?: string | null;
931
- bannerSize?: string | null;
932
- bannerRepeat?: string | null;
933
- bannerOpacity?: number | null;
934
- isActive?: boolean;
935
- isSurfaceActive?: boolean;
936
- isHudActive?: boolean;
937
- isStatusActive?: boolean;
938
- style?: CSSProperties;
939
- className?: string;
940
- }
941
- export interface DockDescriptionProps {
942
- text?: string | number | null;
943
- style?: DockVisualStyleSection;
944
- maxLines?: number;
945
- animated?: boolean;
946
- }
947
- export interface DockTitleProps {
948
- text?: string | number | null;
949
- style?: DockVisualStyleSection;
950
- animated?: boolean;
951
- }
952
- export interface DockCardHeaderProps {
953
- item?: DockItem;
954
- link?: DockItem;
955
- activeItem?: DockItem | null;
956
- itemStyle: DockVisualStyle;
957
- badge?: DockBadgeState;
958
- showVideoIcon?: boolean;
959
- isPlaying?: boolean;
960
- effectiveIconOverlay?: DockIconOverlayConfig | null;
961
- isIconInteractive?: boolean;
962
- handleIconClick?: DockEventHandler;
963
- description?: string | null;
964
- isTop?: boolean;
965
- contextCommands?: DockActionDescriptor[];
966
- }
967
- export interface DockIconProps {
968
- icon: DockIconSource;
969
- iconOverlay?: DockIconOverlayConfig | null;
970
- style?: DockVisualStyleSection;
971
- onClick?: DockEventHandler | null;
972
- ariaLabel?: string;
973
- animated?: boolean;
974
- }
975
- export interface DockIconOverlayProps {
976
- overlay?: DockIconOverlayConfig | null;
977
- }
978
- export interface DockCardItemProps {
979
- ref?: React.Ref<HTMLDivElement>;
980
- activeItem?: DockItem | null;
981
- onContentHeightChange?: ((height: number) => void) | null;
982
- isStackHovered?: boolean;
983
- onMouseEnter?: () => void;
984
- onMouseLeave?: () => void;
985
- expanded?: boolean;
986
- hasExtensions?: boolean;
987
- position: number;
988
- onClick?: DockEventHandler;
989
- isTop?: boolean;
990
- item?: DockItem;
991
- link?: DockItem;
992
- isActive?: boolean;
993
- statusStyle?: DockVisualStyleInput | null;
994
- isStatusActive?: boolean;
995
- isHudActive?: boolean;
996
- isSurfaceActive?: boolean;
997
- hud?: DockHudDescriptor | null;
998
- clearHud?: ((id?: string) => void) | null;
999
- contextCommands?: DockActionDescriptor[];
1000
- }
1001
- export interface StandardItemContentProps {
1002
- item?: DockItem;
1003
- link?: DockItem;
1004
- activeItem?: DockItem | null;
1005
- isTop?: boolean;
1006
- itemStyle: DockVisualStyle;
1007
- badge?: DockBadgeState;
1008
- isActive?: boolean;
1009
- footerNode?: ReactNode;
1010
- /** The action is leaving in place as a surface opens from this card. */
1011
- isActionDismissed?: boolean;
1012
- isHudActive?: boolean;
1013
- hud?: DockHudDescriptor | null;
1014
- clearHud?: ((id?: string) => void) | null;
1015
- contextCommands?: DockActionDescriptor[];
1016
- pathname: string;
1017
- }
1018
- export interface DockItemCardPropsOptions {
1019
- cardScale?: number;
1020
- cardStyle?: DockVisualStyleSection;
1021
- expanded?: boolean;
1022
- hasExtensions?: boolean;
1023
- isAnchoredToBottom?: boolean;
1024
- position: number;
1025
- stacking: DockDeckStacking;
1026
- theme: DockTheme;
1027
- visibleCount?: number;
1028
- }
1029
- export interface ContainerHeightOptions {
1030
- cardContentHeight?: number | string | null;
1031
- isHud?: boolean;
1032
- }
1033
- export interface UseDockHeightControllerOptions {
1034
- contentKey?: unknown;
1035
- isHud?: boolean;
1036
- setDockHeight: (height: number) => void;
1037
- surfacePhase?: string;
1038
- }
1039
- export interface ErrorActionsProps {
1040
- className?: string;
1041
- onRefresh?: () => void;
1042
- onRetry?: () => void;
1043
- refreshLabel?: string;
1044
- refreshText?: string;
1045
- retryLabel?: string;
1046
- retryText?: string;
1047
- }
1048
- export interface GuardActionsProps {
1049
- cancelLabel?: string;
1050
- cancelText?: string;
1051
- className?: string;
1052
- confirmLabel?: string;
1053
- confirmText?: string;
1054
- onCancel?: () => void;
1055
- onConfirm?: () => void;
1056
- }
1057
- export interface SurfaceFlowContextValue extends Partial<Pick<DockSurfaceActions, "cancelSurfaceFlow" | "completeSurfaceFlow" | "openSurfaceFlow" | "restoreSurfaceFlow" | "updateSurfaceFlow">> {
1058
- surfaceState?: Pick<SurfaceState, "surfaceStack"> | null;
1059
- }
1060
- type PropsResolver<T> = T | ((props: DockComponentProps) => T);
1061
- export interface SurfaceBuilderDefinition extends Omit<SurfaceDescriptor, "description" | "icon" | "props" | "title"> {
1062
- defaultProps?: DockComponentProps;
1063
- description?: PropsResolver<string | null>;
1064
- icon?: PropsResolver<DockIconSource>;
1065
- title?: PropsResolver<string | null>;
1066
- loader?: () => Promise<{
1067
- default: DockComponent;
1068
- }>;
1069
- }
1070
- export interface SurfaceBuilderFactory {
1071
- (props?: DockComponentProps, overrides?: Partial<SurfaceDescriptor>): SurfaceDescriptor;
1072
- component: DockComponent | null;
1073
- id: string | null;
1074
- isSurfaceFactory: true;
1075
- open: (openSurfaceFn: (entry: SurfaceDescriptor) => Promise<SurfaceResult>, props?: DockComponentProps, overrides?: Partial<SurfaceDescriptor>) => Promise<SurfaceResult> | undefined;
1076
- }
1077
- export interface BoundSurfaceFactory extends SurfaceBuilderFactory {
1078
- config: SurfaceBuilderDefinition | DefineStepSurfaceOptions;
1079
- use: () => SurfaceHandle;
1080
- }
1081
- export type SurfaceFactoryLike = ((props?: DockComponentProps, overrides?: Partial<SurfaceDescriptor>) => SurfaceDescriptor) & {
1082
- component?: DockComponent | null;
1083
- id?: string | null;
1084
- };
1085
- export type UseSurfaceInput = string | SurfaceFactoryLike | SurfaceDescriptor;
1086
- export type SurfaceOpenFn = (props?: DockComponentProps, overrides?: Partial<SurfaceDescriptor>) => Promise<SurfaceResult>;
1087
- export interface SurfaceHandleControls {
1088
- close: (result?: SurfaceResult) => void;
1089
- closeAll: (result?: SurfaceResult) => void;
1090
- isOpen: boolean;
1091
- surfaceStack: ResolvedSurfaceEntry[];
1092
- }
1093
- export type SurfaceHandle = [SurfaceOpenFn, SurfaceHandleControls] & SurfaceHandleControls & {
1094
- open: SurfaceOpenFn;
1095
- };
1096
- export interface GeneralSurfaceHandle {
1097
- closeAllSurfaces: DockSurfaceActions["closeAllSurfaces"];
1098
- closeSurface: DockSurfaceActions["closeSurface"];
1099
- openSurface: DockSurfaceActions["openSurface"];
1100
- surfaceStack: ResolvedSurfaceEntry[];
1101
- }
1102
- export interface SurfaceViewModelOptions extends Partial<Pick<DockSurfaceActions, "closeAllSurfaces" | "closeSurface" | "getSurfaceFlow" | "goBackSurface" | "goToStep" | "popStep" | "pushStep">> {
1103
- surfaceStack?: ResolvedSurfaceEntry[];
1104
- surfacePhase?: string;
1105
- }
1106
- export interface DockSurfaceShellProps {
1107
- ref?: React.Ref<HTMLElement>;
1108
- title?: string;
1109
- onClose?: (() => void) | null;
1110
- onBack?: (() => void) | null;
1111
- allowSwipeDismiss?: boolean;
1112
- closeLabel?: string;
1113
- backLabel?: string;
1114
- showControls?: boolean;
1115
- className?: string;
1116
- contentClassName?: string;
1117
- children?: ReactNode;
1118
- onAnimationComplete?: (() => void) | null;
1119
- isActive?: boolean;
1120
- surfaceId?: SurfaceId | null;
1121
- surfacePhase?: string;
1122
- surfaceWidth?: number | string | null;
1123
- }
1124
- export interface SurfaceFlowReturnInput {
1125
- restoreReturnScroll?: boolean;
1126
- returnFocusKey?: string | null;
1127
- returnHandshake?: Partial<SurfaceReturnHandshake> | null;
1128
- returnOnCancel?: boolean;
1129
- returnTo?: string;
1130
- }
1131
- export interface DockGuardRegistry {
1132
- check(to: string, from: string): Promise<GuardCheckResult>;
1133
- clear(): void;
1134
- count(): number;
1135
- register(guard: DockGuard): () => void;
1136
- }
1137
- export type DockScheduler = ReturnType<typeof createScheduler>;
1138
- export type DockScheduledTaskId = ReturnType<DockScheduler["schedule"]>;
1139
- export type StatusState = DockStatusDescriptor | null;
1140
- export type DockThemeSlot = "stack" | "backdrop" | "card" | "cardContent" | "cardSurface" | "cardShelf" | "cardStandard" | "cardHud" | "cardBody" | "cardFooter" | "cardAction" | "bannerRoot" | "bannerSharpImage" | "bannerScrim" | "header" | "headerRow" | "headerIcon" | "headerIconEmpty" | "headerBody" | "headerText" | "headerTitleRow" | "headerTitle" | "title" | "titleWrap" | "description" | "descriptionText" | "icon" | "iconMotion" | "iconImage" | "iconGlyph" | "iconGlyphInner" | "iconButton" | "iconBadge" | "iconOverlay" | "iconOverlayImage" | "iconOverlayGlyph" | "commandBar" | "commandTooltip" | "command" | "commandBadge" | "statusCard" | "statusIcon" | "statusTitle" | "statusDescription" | "surfaceHost" | "surfaceHostInner" | "surfaceShell" | "surfaceBody" | "controls" | "controlAction" | "controlBack" | "controlClose" | "controlButton" | "controlBackIcon" | "controlHeaderButton" | "controlRadiusSingle" | "controlRadiusFirst" | "controlRadiusLast" | "controlRadiusMiddle" | "extensions" | "extensionsLeft" | "extensionsCenterLayer" | "extensionsCenter" | "extensionsRight" | "extensionPill" | "extensionBare" | "scrubber" | "scrubberTrack" | "scrubberProgress" | "scrubberTooltip" | "media" | "mediaGroup" | "mediaSpeed" | "mediaSkip" | "mediaToggle" | "mediaMute" | "mediaVolume" | "mediaVolumeTrack" | "mediaVolumeRail" | "mediaVolumeFill" | "mediaVolumeThumb" | "breadcrumbs" | "breadcrumbsNav" | "breadcrumbsEllipsis" | "breadcrumbsItem" | "breadcrumbsCurrent" | "breadcrumbsLink" | "breadcrumbsSeparator" | "loading" | "loadingIcon" | "loadingText" | "loadingTitle" | "loadingDescription" | "action" | "actionActive" | "actionFill" | "actionLabel" | "actionMuted" | "actionRow" | "actionStack" | "actionSurface";
1141
- export type DockTheme = ResolvedTheme<DockThemeSlot>;
1142
- /** A card leaving the deck: where it rests now, by layout. */
1143
- export interface DockCardExitInput {
1144
- /** Its resting offset in the deck, in px. */
1145
- y: number;
1146
- /** Its resting scale, when known. */
1147
- scale: number | null;
1148
- /** Its place in the deck; the front card is 0. */
1149
- position: number;
1150
- }
1151
- /** How long each phase of a surface opening or closing holds, in seconds. */
1152
- export interface DockSurfaceTimings {
1153
- /** The inline action leaving before the body grows. */
1154
- dismissAction: number;
1155
- /** The beat before a surface opens without an action, or before one closes. */
1156
- anticipation: number;
1157
- /** The surface body growing in. */
1158
- expandBody: number;
1159
- /** The surface body leaving and the deck settling. */
1160
- collapseBody: number;
1161
- /** The card header coming back once the body is gone; 0 skips the phase. */
1162
- restoreHeader: number;
1163
- }
1164
- /** The phases a surface passes through; `idle` and `open` are the two rests. */
1165
- export type DockSurfacePhaseKey = keyof DockSurfaceTimings | "idle" | "open";
1166
- /** How the dock plays one phase of a surface opening or closing. */
1167
- export interface DockSurfacePhaseMotion {
1168
- /**
1169
- * The deck's size and shadow. `null` follows the deck's resting transition
1170
- * (`stack`, or `expand` while the deck is expanded). A function receives how
1171
- * far the deck resizes, in px.
1172
- */
1173
- deck: Transition | ((distancePx: number) => Transition) | null;
1174
- /** The deck's lift and scale. `null` follows `deck`. */
1175
- transform: Transition | null;
1176
- /** The deck's scale; below 1 compresses it. */
1177
- scale: number;
1178
- /** The surface body coming into view. */
1179
- body: Transition;
1180
- /** The card header while it plays this phase. */
1181
- header: Transition;
1182
- /** The card header returning in this phase. `null` keeps the `headerRestore` variants' own. */
1183
- headerReturn: Transition | null;
1184
- }
1185
- /** Where the cards of the deck rest, in px, scale and opacity. */
1186
- export interface DockDeckStacking {
1187
- /** Cards stacked behind the front one: per level of depth. */
1188
- collapsed: {
1189
- offsetY: number;
1190
- scale: number;
1191
- /** Opacity lost per level, down to `opacityMin`. */
1192
- opacityStep: number;
1193
- opacityMin: number;
1194
- };
1195
- /** Cards in the expanded deck: per level of depth. */
1196
- expanded: {
1197
- offsetY: number;
1198
- };
1199
- /** The card that peeks out as the extension shelf. */
1200
- shelf: {
1201
- offsetY: number;
1202
- scale: number;
1203
- };
1204
- /**
1205
- * How many cards stay in view: normally, while an extension shelf takes the
1206
- * second place, and while a status holds the deck.
1207
- */
1208
- visible: {
1209
- stack: number;
1210
- extensions: number;
1211
- status: number;
1212
- };
1213
- }
1214
- /**
1215
- * Everything the dock animates, written by the app in its dock theme.
1216
- * Values are at tempo 1; the app's tempo stretches all of them.
1217
- */
1218
- export interface DockMotion {
1219
- /** Transitions the dock gives its parts' own `transition`. */
1220
- transitions: {
1221
- /** The deck resizing and settling at rest. */
1222
- stack: Transition;
1223
- /** The deck, backdrop and breadcrumbs while expanded or holding a surface. */
1224
- expand: Transition;
1225
- /** A surface body leaving. */
1226
- surfaceExit: Transition;
1227
- /** Parts sliding to a new place when their neighbours change: the surface close control and the breadcrumbs. */
1228
- layout: Transition;
1229
- /** A card settling in the collapsed deck. */
1230
- card: Transition;
1231
- /** A card moving in the expanded deck. */
1232
- cardExpanded: Transition;
1233
- /** A card behind the front one lifting while the deck is hovered. */
1234
- cardPeek: Transition;
1235
- /** Banners and short text crossfades. */
1236
- fade: Transition;
1237
- /** Titles, descriptions and card content. */
1238
- text: Transition;
1239
- /** The card header changing. */
1240
- headerSwap: Transition;
1241
- /** The inline action leaving as a surface opens. */
1242
- actionDismiss: Transition;
1243
- icon: Transition;
1244
- badge: Transition;
1245
- hud: Transition;
1246
- /** Buttons and cards being pressed. */
1247
- press: Transition;
1248
- scrubberTooltip: Transition;
1249
- /** How the scrubber's hover tooltip follows the pointer. */
1250
- scrubberFollow: SpringOptions;
1251
- /** The media volume fill and thumb, played as CSS transitions. */
1252
- mediaVolume: Transition;
1253
- };
1254
- /** Variant sets, each `hidden` → `visible` → `exit` unless noted. */
1255
- variants: {
1256
- fade: Variants;
1257
- textCrossfade: Variants;
1258
- /** Card descriptions, shown at the given opacity. */
1259
- description: (opacity: number) => Variants;
1260
- headerSwap: Variants;
1261
- /** The card header returning after a surface. */
1262
- headerRestore: Variants;
1263
- extensionShelf: Variants;
1264
- actionDismiss: Variants;
1265
- /** Command bar entries; `visible` receives the entry index. */
1266
- commandBar: Variants;
1267
- icon: Variants;
1268
- badge: Variants;
1269
- hud: Variants;
1270
- scrubberTooltip: Variants;
1271
- breadcrumbs: Variants;
1272
- backdrop: Variants;
1273
- surfaceBody: Variants;
1274
- /** Surface controls; each state receives the controls' resting y. */
1275
- controlsContainer: Variants;
1276
- controlsAction: Variants;
1277
- controlsBack: Variants;
1278
- controlsClose: Variants;
1279
- /** `idle`, `hover` and `tap` for every dock button. */
1280
- press: Variants;
1281
- mediaVolumeThumb: {
1282
- idle: TargetAndTransition;
1283
- dragging: TargetAndTransition;
1284
- };
1285
- /** A card's content while it is behind the front card, and in front. */
1286
- cardContent: {
1287
- hidden: TargetAndTransition;
1288
- visible: TargetAndTransition;
1289
- };
1290
- };
1291
- /**
1292
- * What the deck, the header and the body play in each phase of a surface
1293
- * opening or closing. The phases and their order belong to the dock; how
1294
- * each one looks, and how long it holds (`timings`), is yours.
1295
- */
1296
- phases: Record<DockSurfacePhaseKey, DockSurfacePhaseMotion>;
1297
- deck: {
1298
- /** The deck's shadow at rest and while holding a surface. */
1299
- elevation: {
1300
- rest: string;
1301
- elevated: string;
1302
- };
1303
- /**
1304
- * How far up (px) and how much larger (×) a card behind the front one
1305
- * moves while the deck is hovered.
1306
- */
1307
- peek: (position: number) => {
1308
- lift: number;
1309
- scale: number;
1310
- };
1311
- /** Where a removed card goes. */
1312
- exit: (card: DockCardExitInput) => TargetAndTransition;
1313
- /** A pressed card's scale, relative to its resting scale. */
1314
- tapScale: number;
1315
- /** Where the cards rest. */
1316
- stacking: DockDeckStacking;
1317
- /** How far the deck rises (px, negative is up) while the breadcrumbs show. */
1318
- breadcrumbOffset: number;
1319
- /** The deck's opacity while a page is fullscreen. */
1320
- fullscreenOpacity: number;
1321
- /** The deck's `transform-origin`. */
1322
- origin: string;
1323
- /** The distance (px) a surface resize is timed for while its real distance is unknown. */
1324
- resizeFallback: number;
1325
- };
1326
- /** Resting opacities, before a page gives its own. */
1327
- opacity: {
1328
- /** The card banner image. */
1329
- banner: number;
1330
- /** A card's description. */
1331
- description: number;
1332
- };
1333
- /** How a surface follows a swipe down before it is dismissed. */
1334
- drag: {
1335
- elastic: {
1336
- top: number;
1337
- bottom: number;
1338
- };
1339
- /** Swipe distance (px) mapped onto the opacity and scale ranges. */
1340
- range: readonly [number, number];
1341
- opacity: readonly [number, number];
1342
- scale: readonly [number, number];
1343
- /** A swipe dismisses the surface past this distance (px) or this speed (px/s). */
1344
- dismiss: {
1345
- offset: number;
1346
- velocity: number;
1347
- };
1348
- };
1349
- /** Class for loading skeletons (a CSS animation). */
1350
- skeleton: string;
1351
- /** Seconds; the app's tempo stretches them with everything else. */
1352
- timings: DockSurfaceTimings & {
1353
- /** Card delays in the expanded deck: per step, and at most. */
1354
- expandStagger: number;
1355
- expandStaggerCap: number;
1356
- /** Card delays while the deck is hovered: per step, and at most. */
1357
- peekStagger: number;
1358
- peekStaggerCap: number;
1359
- };
1360
- }
1361
- export {};
1362
- //# sourceMappingURL=types.d.ts.map