@omerdlw/base-framework 1.0.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 (383) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +117 -0
  3. package/dist/atoms/button.d.ts +11 -0
  4. package/dist/atoms/button.d.ts.map +1 -0
  5. package/dist/atoms/icon.d.ts +15 -0
  6. package/dist/atoms/icon.d.ts.map +1 -0
  7. package/dist/atoms/index.d.ts +6 -0
  8. package/dist/atoms/index.d.ts.map +1 -0
  9. package/dist/atoms/index.js +169 -0
  10. package/dist/atoms/index.js.map +1 -0
  11. package/dist/atoms/spinner.d.ts +9 -0
  12. package/dist/atoms/spinner.d.ts.map +1 -0
  13. package/dist/atoms/tooltip.d.ts +18 -0
  14. package/dist/atoms/tooltip.d.ts.map +1 -0
  15. package/dist/error/boundary.d.ts +14 -0
  16. package/dist/error/boundary.d.ts.map +1 -0
  17. package/dist/error/constants.d.ts +18 -0
  18. package/dist/error/constants.d.ts.map +1 -0
  19. package/dist/error/index.d.ts +9 -0
  20. package/dist/error/index.d.ts.map +1 -0
  21. package/dist/error/index.js +688 -0
  22. package/dist/error/index.js.map +1 -0
  23. package/dist/error/listener.d.ts +2 -0
  24. package/dist/error/listener.d.ts.map +1 -0
  25. package/dist/error/reporter.d.ts +32 -0
  26. package/dist/error/reporter.d.ts.map +1 -0
  27. package/dist/error/theme.d.ts +3 -0
  28. package/dist/error/theme.d.ts.map +1 -0
  29. package/dist/error/types.d.ts +91 -0
  30. package/dist/error/types.d.ts.map +1 -0
  31. package/dist/error/utils.d.ts +21 -0
  32. package/dist/error/utils.d.ts.map +1 -0
  33. package/dist/events.d.ts +51 -0
  34. package/dist/events.d.ts.map +1 -0
  35. package/dist/events.js +88 -0
  36. package/dist/events.js.map +1 -0
  37. package/dist/hooks/index.d.ts +17 -0
  38. package/dist/hooks/index.d.ts.map +1 -0
  39. package/dist/hooks/index.js +804 -0
  40. package/dist/hooks/index.js.map +1 -0
  41. package/dist/hooks/types.d.ts +58 -0
  42. package/dist/hooks/types.d.ts.map +1 -0
  43. package/dist/hooks/use-async-action.d.ts +3 -0
  44. package/dist/hooks/use-async-action.d.ts.map +1 -0
  45. package/dist/hooks/use-click-outside.d.ts +3 -0
  46. package/dist/hooks/use-click-outside.d.ts.map +1 -0
  47. package/dist/hooks/use-controllable-state.d.ts +3 -0
  48. package/dist/hooks/use-controllable-state.d.ts.map +1 -0
  49. package/dist/hooks/use-debounce.d.ts +2 -0
  50. package/dist/hooks/use-debounce.d.ts.map +1 -0
  51. package/dist/hooks/use-fullscreen-state.d.ts +4 -0
  52. package/dist/hooks/use-fullscreen-state.d.ts.map +1 -0
  53. package/dist/hooks/use-global-event.d.ts +7 -0
  54. package/dist/hooks/use-global-event.d.ts.map +1 -0
  55. package/dist/hooks/use-hotkey.d.ts +4 -0
  56. package/dist/hooks/use-hotkey.d.ts.map +1 -0
  57. package/dist/hooks/use-intersection-observer.d.ts +4 -0
  58. package/dist/hooks/use-intersection-observer.d.ts.map +1 -0
  59. package/dist/hooks/use-isomorphic-layout-effect.d.ts +3 -0
  60. package/dist/hooks/use-isomorphic-layout-effect.d.ts.map +1 -0
  61. package/dist/hooks/use-media-query.d.ts +2 -0
  62. package/dist/hooks/use-media-query.d.ts.map +1 -0
  63. package/dist/hooks/use-mounted.d.ts +2 -0
  64. package/dist/hooks/use-mounted.d.ts.map +1 -0
  65. package/dist/hooks/use-required-context.d.ts +3 -0
  66. package/dist/hooks/use-required-context.d.ts.map +1 -0
  67. package/dist/hooks/use-server-action.d.ts +4 -0
  68. package/dist/hooks/use-server-action.d.ts.map +1 -0
  69. package/dist/hooks/use-storage-state.d.ts +5 -0
  70. package/dist/hooks/use-storage-state.d.ts.map +1 -0
  71. package/dist/hooks/use-store.d.ts +3 -0
  72. package/dist/hooks/use-store.d.ts.map +1 -0
  73. package/dist/index.d.ts +12 -0
  74. package/dist/index.d.ts.map +1 -0
  75. package/dist/index.js +20415 -0
  76. package/dist/index.js.map +1 -0
  77. package/dist/kernel/adapters.d.ts +5 -0
  78. package/dist/kernel/adapters.d.ts.map +1 -0
  79. package/dist/kernel/compose.d.ts +15 -0
  80. package/dist/kernel/compose.d.ts.map +1 -0
  81. package/dist/kernel/constants.d.ts +12 -0
  82. package/dist/kernel/constants.d.ts.map +1 -0
  83. package/dist/kernel/context-registry.d.ts +3 -0
  84. package/dist/kernel/context-registry.d.ts.map +1 -0
  85. package/dist/kernel/handlers.d.ts +3 -0
  86. package/dist/kernel/handlers.d.ts.map +1 -0
  87. package/dist/kernel/hooks.d.ts +7 -0
  88. package/dist/kernel/hooks.d.ts.map +1 -0
  89. package/dist/kernel/index.d.ts +14 -0
  90. package/dist/kernel/index.d.ts.map +1 -0
  91. package/dist/kernel/index.js +2109 -0
  92. package/dist/kernel/index.js.map +1 -0
  93. package/dist/kernel/installed.d.ts +21 -0
  94. package/dist/kernel/installed.d.ts.map +1 -0
  95. package/dist/kernel/module.d.ts +32 -0
  96. package/dist/kernel/module.d.ts.map +1 -0
  97. package/dist/kernel/operations.d.ts +21 -0
  98. package/dist/kernel/operations.d.ts.map +1 -0
  99. package/dist/kernel/page-controller.d.ts +8 -0
  100. package/dist/kernel/page-controller.d.ts.map +1 -0
  101. package/dist/kernel/provider.d.ts +18 -0
  102. package/dist/kernel/provider.d.ts.map +1 -0
  103. package/dist/kernel/runtime.d.ts +30 -0
  104. package/dist/kernel/runtime.d.ts.map +1 -0
  105. package/dist/kernel/schema.d.ts +13 -0
  106. package/dist/kernel/schema.d.ts.map +1 -0
  107. package/dist/kernel/store.d.ts +4 -0
  108. package/dist/kernel/store.d.ts.map +1 -0
  109. package/dist/kernel/types.d.ts +233 -0
  110. package/dist/kernel/types.d.ts.map +1 -0
  111. package/dist/kernel/utils.d.ts +20 -0
  112. package/dist/kernel/utils.d.ts.map +1 -0
  113. package/dist/modules/ambient/constants.d.ts +23 -0
  114. package/dist/modules/ambient/constants.d.ts.map +1 -0
  115. package/dist/modules/ambient/context.d.ts +10 -0
  116. package/dist/modules/ambient/context.d.ts.map +1 -0
  117. package/dist/modules/ambient/index.d.ts +6 -0
  118. package/dist/modules/ambient/index.d.ts.map +1 -0
  119. package/dist/modules/ambient/index.js +896 -0
  120. package/dist/modules/ambient/index.js.map +1 -0
  121. package/dist/modules/ambient/module.d.ts +12 -0
  122. package/dist/modules/ambient/module.d.ts.map +1 -0
  123. package/dist/modules/ambient/types.d.ts +84 -0
  124. package/dist/modules/ambient/types.d.ts.map +1 -0
  125. package/dist/modules/ambient/utils.d.ts +18 -0
  126. package/dist/modules/ambient/utils.d.ts.map +1 -0
  127. package/dist/modules/background/constants.d.ts +12 -0
  128. package/dist/modules/background/constants.d.ts.map +1 -0
  129. package/dist/modules/background/context.d.ts +13 -0
  130. package/dist/modules/background/context.d.ts.map +1 -0
  131. package/dist/modules/background/hooks.d.ts +119 -0
  132. package/dist/modules/background/hooks.d.ts.map +1 -0
  133. package/dist/modules/background/index.d.ts +7 -0
  134. package/dist/modules/background/index.d.ts.map +1 -0
  135. package/dist/modules/background/index.js +3195 -0
  136. package/dist/modules/background/index.js.map +1 -0
  137. package/dist/modules/background/module.d.ts +14 -0
  138. package/dist/modules/background/module.d.ts.map +1 -0
  139. package/dist/modules/background/motion.d.ts +13 -0
  140. package/dist/modules/background/motion.d.ts.map +1 -0
  141. package/dist/modules/background/overlay.d.ts +49 -0
  142. package/dist/modules/background/overlay.d.ts.map +1 -0
  143. package/dist/modules/background/types.d.ts +153 -0
  144. package/dist/modules/background/types.d.ts.map +1 -0
  145. package/dist/modules/background/utils.d.ts +56 -0
  146. package/dist/modules/background/utils.d.ts.map +1 -0
  147. package/dist/modules/background/youtube/iframe.d.ts +52 -0
  148. package/dist/modules/background/youtube/iframe.d.ts.map +1 -0
  149. package/dist/modules/background/youtube/parse.d.ts +17 -0
  150. package/dist/modules/background/youtube/parse.d.ts.map +1 -0
  151. package/dist/modules/context-menu/constants.d.ts +8 -0
  152. package/dist/modules/context-menu/constants.d.ts.map +1 -0
  153. package/dist/modules/context-menu/context.d.ts +16 -0
  154. package/dist/modules/context-menu/context.d.ts.map +1 -0
  155. package/dist/modules/context-menu/hooks.d.ts +31 -0
  156. package/dist/modules/context-menu/hooks.d.ts.map +1 -0
  157. package/dist/modules/context-menu/index.d.ts +6 -0
  158. package/dist/modules/context-menu/index.d.ts.map +1 -0
  159. package/dist/modules/context-menu/index.js +2008 -0
  160. package/dist/modules/context-menu/index.js.map +1 -0
  161. package/dist/modules/context-menu/module.d.ts +12 -0
  162. package/dist/modules/context-menu/module.d.ts.map +1 -0
  163. package/dist/modules/context-menu/motion.d.ts +9 -0
  164. package/dist/modules/context-menu/motion.d.ts.map +1 -0
  165. package/dist/modules/context-menu/overlay.d.ts +15 -0
  166. package/dist/modules/context-menu/overlay.d.ts.map +1 -0
  167. package/dist/modules/context-menu/resolver.d.ts +7 -0
  168. package/dist/modules/context-menu/resolver.d.ts.map +1 -0
  169. package/dist/modules/context-menu/state.d.ts +4 -0
  170. package/dist/modules/context-menu/state.d.ts.map +1 -0
  171. package/dist/modules/context-menu/types.d.ts +171 -0
  172. package/dist/modules/context-menu/types.d.ts.map +1 -0
  173. package/dist/modules/context-menu/utils.d.ts +16 -0
  174. package/dist/modules/context-menu/utils.d.ts.map +1 -0
  175. package/dist/modules/controls/constants.d.ts +7 -0
  176. package/dist/modules/controls/constants.d.ts.map +1 -0
  177. package/dist/modules/controls/hooks.d.ts +15 -0
  178. package/dist/modules/controls/hooks.d.ts.map +1 -0
  179. package/dist/modules/controls/index.d.ts +6 -0
  180. package/dist/modules/controls/index.d.ts.map +1 -0
  181. package/dist/modules/controls/index.js +1242 -0
  182. package/dist/modules/controls/index.js.map +1 -0
  183. package/dist/modules/controls/module.d.ts +12 -0
  184. package/dist/modules/controls/module.d.ts.map +1 -0
  185. package/dist/modules/controls/overlay.d.ts +2 -0
  186. package/dist/modules/controls/overlay.d.ts.map +1 -0
  187. package/dist/modules/controls/types.d.ts +86 -0
  188. package/dist/modules/controls/types.d.ts.map +1 -0
  189. package/dist/modules/controls/utils.d.ts +9 -0
  190. package/dist/modules/controls/utils.d.ts.map +1 -0
  191. package/dist/modules/dock/cards.d.ts +1035 -0
  192. package/dist/modules/dock/cards.d.ts.map +1 -0
  193. package/dist/modules/dock/constants.d.ts +157 -0
  194. package/dist/modules/dock/constants.d.ts.map +1 -0
  195. package/dist/modules/dock/context.d.ts +26 -0
  196. package/dist/modules/dock/context.d.ts.map +1 -0
  197. package/dist/modules/dock/hooks.d.ts +957 -0
  198. package/dist/modules/dock/hooks.d.ts.map +1 -0
  199. package/dist/modules/dock/hud.d.ts +43 -0
  200. package/dist/modules/dock/hud.d.ts.map +1 -0
  201. package/dist/modules/dock/index.d.ts +27 -0
  202. package/dist/modules/dock/index.d.ts.map +1 -0
  203. package/dist/modules/dock/index.js +12111 -0
  204. package/dist/modules/dock/index.js.map +1 -0
  205. package/dist/modules/dock/module.d.ts +71 -0
  206. package/dist/modules/dock/module.d.ts.map +1 -0
  207. package/dist/modules/dock/motion.d.ts +986 -0
  208. package/dist/modules/dock/motion.d.ts.map +1 -0
  209. package/dist/modules/dock/overlay.d.ts +79 -0
  210. package/dist/modules/dock/overlay.d.ts.map +1 -0
  211. package/dist/modules/dock/provider.d.ts +3 -0
  212. package/dist/modules/dock/provider.d.ts.map +1 -0
  213. package/dist/modules/dock/routing/breadcrumbs.d.ts +43 -0
  214. package/dist/modules/dock/routing/breadcrumbs.d.ts.map +1 -0
  215. package/dist/modules/dock/routing/continuity.d.ts +19 -0
  216. package/dist/modules/dock/routing/continuity.d.ts.map +1 -0
  217. package/dist/modules/dock/routing/guards.d.ts +21 -0
  218. package/dist/modules/dock/routing/guards.d.ts.map +1 -0
  219. package/dist/modules/dock/routing/navigation.d.ts +37 -0
  220. package/dist/modules/dock/routing/navigation.d.ts.map +1 -0
  221. package/dist/modules/dock/routing/transactions.d.ts +21 -0
  222. package/dist/modules/dock/routing/transactions.d.ts.map +1 -0
  223. package/dist/modules/dock/runtime/commands.d.ts +18 -0
  224. package/dist/modules/dock/runtime/commands.d.ts.map +1 -0
  225. package/dist/modules/dock/runtime/display.d.ts +36 -0
  226. package/dist/modules/dock/runtime/display.d.ts.map +1 -0
  227. package/dist/modules/dock/runtime/dock.d.ts +123 -0
  228. package/dist/modules/dock/runtime/dock.d.ts.map +1 -0
  229. package/dist/modules/dock/state.d.ts +22 -0
  230. package/dist/modules/dock/state.d.ts.map +1 -0
  231. package/dist/modules/dock/status/events.d.ts +37 -0
  232. package/dist/modules/dock/status/events.d.ts.map +1 -0
  233. package/dist/modules/dock/status/hooks.d.ts +6 -0
  234. package/dist/modules/dock/status/hooks.d.ts.map +1 -0
  235. package/dist/modules/dock/status/model.d.ts +65 -0
  236. package/dist/modules/dock/status/model.d.ts.map +1 -0
  237. package/dist/modules/dock/surface/context.d.ts +43 -0
  238. package/dist/modules/dock/surface/context.d.ts.map +1 -0
  239. package/dist/modules/dock/surface/definition.d.ts +38 -0
  240. package/dist/modules/dock/surface/definition.d.ts.map +1 -0
  241. package/dist/modules/dock/surface/hooks.d.ts +123 -0
  242. package/dist/modules/dock/surface/hooks.d.ts.map +1 -0
  243. package/dist/modules/dock/surface/machine.d.ts +75 -0
  244. package/dist/modules/dock/surface/machine.d.ts.map +1 -0
  245. package/dist/modules/dock/surface/stack.d.ts +38 -0
  246. package/dist/modules/dock/surface/stack.d.ts.map +1 -0
  247. package/dist/modules/dock/surface/view-model.d.ts +3 -0
  248. package/dist/modules/dock/surface/view-model.d.ts.map +1 -0
  249. package/dist/modules/dock/types.d.ts +1158 -0
  250. package/dist/modules/dock/types.d.ts.map +1 -0
  251. package/dist/modules/dock/utils.d.ts +93 -0
  252. package/dist/modules/dock/utils.d.ts.map +1 -0
  253. package/dist/modules/index.d.ts +12 -0
  254. package/dist/modules/index.d.ts.map +1 -0
  255. package/dist/modules/index.js +18020 -0
  256. package/dist/modules/index.js.map +1 -0
  257. package/dist/modules/loading/constants.d.ts +5 -0
  258. package/dist/modules/loading/constants.d.ts.map +1 -0
  259. package/dist/modules/loading/context.d.ts +13 -0
  260. package/dist/modules/loading/context.d.ts.map +1 -0
  261. package/dist/modules/loading/hooks.d.ts +6 -0
  262. package/dist/modules/loading/hooks.d.ts.map +1 -0
  263. package/dist/modules/loading/index.d.ts +7 -0
  264. package/dist/modules/loading/index.d.ts.map +1 -0
  265. package/dist/modules/loading/index.js +1256 -0
  266. package/dist/modules/loading/index.js.map +1 -0
  267. package/dist/modules/loading/module.d.ts +14 -0
  268. package/dist/modules/loading/module.d.ts.map +1 -0
  269. package/dist/modules/loading/overlay.d.ts +2 -0
  270. package/dist/modules/loading/overlay.d.ts.map +1 -0
  271. package/dist/modules/loading/types.d.ts +47 -0
  272. package/dist/modules/loading/types.d.ts.map +1 -0
  273. package/dist/modules/loading/utils.d.ts +4 -0
  274. package/dist/modules/loading/utils.d.ts.map +1 -0
  275. package/dist/modules/media/constants.d.ts +7 -0
  276. package/dist/modules/media/constants.d.ts.map +1 -0
  277. package/dist/modules/media/context.d.ts +6 -0
  278. package/dist/modules/media/context.d.ts.map +1 -0
  279. package/dist/modules/media/hooks.d.ts +3 -0
  280. package/dist/modules/media/hooks.d.ts.map +1 -0
  281. package/dist/modules/media/index.d.ts +8 -0
  282. package/dist/modules/media/index.d.ts.map +1 -0
  283. package/dist/modules/media/index.js +728 -0
  284. package/dist/modules/media/index.js.map +1 -0
  285. package/dist/modules/media/module.d.ts +11 -0
  286. package/dist/modules/media/module.d.ts.map +1 -0
  287. package/dist/modules/media/overlay.d.ts +9 -0
  288. package/dist/modules/media/overlay.d.ts.map +1 -0
  289. package/dist/modules/media/types.d.ts +77 -0
  290. package/dist/modules/media/types.d.ts.map +1 -0
  291. package/dist/modules/media/utils.d.ts +17 -0
  292. package/dist/modules/media/utils.d.ts.map +1 -0
  293. package/dist/modules/modal/constants.d.ts +20 -0
  294. package/dist/modules/modal/constants.d.ts.map +1 -0
  295. package/dist/modules/modal/context.d.ts +20 -0
  296. package/dist/modules/modal/context.d.ts.map +1 -0
  297. package/dist/modules/modal/hooks.d.ts +41 -0
  298. package/dist/modules/modal/hooks.d.ts.map +1 -0
  299. package/dist/modules/modal/index.d.ts +7 -0
  300. package/dist/modules/modal/index.d.ts.map +1 -0
  301. package/dist/modules/modal/index.js +2672 -0
  302. package/dist/modules/modal/index.js.map +1 -0
  303. package/dist/modules/modal/module.d.ts +12 -0
  304. package/dist/modules/modal/module.d.ts.map +1 -0
  305. package/dist/modules/modal/motion.d.ts +16 -0
  306. package/dist/modules/modal/motion.d.ts.map +1 -0
  307. package/dist/modules/modal/overlay.d.ts +4 -0
  308. package/dist/modules/modal/overlay.d.ts.map +1 -0
  309. package/dist/modules/modal/state.d.ts +4 -0
  310. package/dist/modules/modal/state.d.ts.map +1 -0
  311. package/dist/modules/modal/types.d.ts +109 -0
  312. package/dist/modules/modal/types.d.ts.map +1 -0
  313. package/dist/modules/modal/utils.d.ts +31 -0
  314. package/dist/modules/modal/utils.d.ts.map +1 -0
  315. package/dist/modules/notification/constants.d.ts +9 -0
  316. package/dist/modules/notification/constants.d.ts.map +1 -0
  317. package/dist/modules/notification/context.d.ts +7 -0
  318. package/dist/modules/notification/context.d.ts.map +1 -0
  319. package/dist/modules/notification/hooks.d.ts +10 -0
  320. package/dist/modules/notification/hooks.d.ts.map +1 -0
  321. package/dist/modules/notification/index.d.ts +7 -0
  322. package/dist/modules/notification/index.d.ts.map +1 -0
  323. package/dist/modules/notification/index.js +905 -0
  324. package/dist/modules/notification/index.js.map +1 -0
  325. package/dist/modules/notification/module.d.ts +11 -0
  326. package/dist/modules/notification/module.d.ts.map +1 -0
  327. package/dist/modules/notification/motion.d.ts +15 -0
  328. package/dist/modules/notification/motion.d.ts.map +1 -0
  329. package/dist/modules/notification/overlay.d.ts +3 -0
  330. package/dist/modules/notification/overlay.d.ts.map +1 -0
  331. package/dist/modules/notification/types.d.ts +57 -0
  332. package/dist/modules/notification/types.d.ts.map +1 -0
  333. package/dist/modules/notification/utils.d.ts +9 -0
  334. package/dist/modules/notification/utils.d.ts.map +1 -0
  335. package/dist/modules/theme.d.ts +3 -0
  336. package/dist/modules/theme.d.ts.map +1 -0
  337. package/dist/provider.d.ts +23 -0
  338. package/dist/provider.d.ts.map +1 -0
  339. package/dist/provider.js +1973 -0
  340. package/dist/provider.js.map +1 -0
  341. package/dist/result.d.ts +50 -0
  342. package/dist/result.d.ts.map +1 -0
  343. package/dist/result.js +163 -0
  344. package/dist/result.js.map +1 -0
  345. package/dist/theme.d.ts +25 -0
  346. package/dist/theme.d.ts.map +1 -0
  347. package/dist/theme.js +44 -0
  348. package/dist/theme.js.map +1 -0
  349. package/dist/tokens/index.d.ts +3 -0
  350. package/dist/tokens/index.d.ts.map +1 -0
  351. package/dist/tokens/index.js +325 -0
  352. package/dist/tokens/index.js.map +1 -0
  353. package/dist/tokens/motion.d.ts +315 -0
  354. package/dist/tokens/motion.d.ts.map +1 -0
  355. package/dist/tokens/tokens.d.ts +34 -0
  356. package/dist/tokens/tokens.d.ts.map +1 -0
  357. package/dist/utils/cn.d.ts +3 -0
  358. package/dist/utils/cn.d.ts.map +1 -0
  359. package/dist/utils/dom.d.ts +5 -0
  360. package/dist/utils/dom.d.ts.map +1 -0
  361. package/dist/utils/index.d.ts +16 -0
  362. package/dist/utils/index.d.ts.map +1 -0
  363. package/dist/utils/index.js +485 -0
  364. package/dist/utils/index.js.map +1 -0
  365. package/dist/utils/json.d.ts +3 -0
  366. package/dist/utils/json.d.ts.map +1 -0
  367. package/dist/utils/number.d.ts +4 -0
  368. package/dist/utils/number.d.ts.map +1 -0
  369. package/dist/utils/object.d.ts +7 -0
  370. package/dist/utils/object.d.ts.map +1 -0
  371. package/dist/utils/report.d.ts +5 -0
  372. package/dist/utils/report.d.ts.map +1 -0
  373. package/dist/utils/scheduler.d.ts +34 -0
  374. package/dist/utils/scheduler.d.ts.map +1 -0
  375. package/dist/utils/store.d.ts +11 -0
  376. package/dist/utils/store.d.ts.map +1 -0
  377. package/dist/utils/string.d.ts +8 -0
  378. package/dist/utils/string.d.ts.map +1 -0
  379. package/dist/utils/timing.d.ts +8 -0
  380. package/dist/utils/timing.d.ts.map +1 -0
  381. package/dist/utils/user-message.d.ts +20 -0
  382. package/dist/utils/user-message.d.ts.map +1 -0
  383. package/package.json +113 -0
@@ -0,0 +1,1158 @@
1
+ import { createScheduler, type ExternalStore } from "@/utils";
2
+ import { type ComponentType, type ReactNode, type SyntheticEvent, type CSSProperties, type ReactElement } from "react";
3
+ import { type RegistryMetadata } from "@/kernel";
4
+ import { type ResolvedTheme } from "../theme";
5
+ export type DockComponent = ComponentType<any>;
6
+ export type DockComponentProps = Record<string, unknown>;
7
+ export type DockIconSource = ReactNode;
8
+ export type DockEventHandler = {
9
+ bivarianceHack(event?: SyntheticEvent): void;
10
+ }["bivarianceHack"];
11
+ export type DockSlotContent = ReactNode | DockComponent;
12
+ export type SurfaceResult = unknown;
13
+ export type DockBannerSource = string | {
14
+ bannerOpacity?: number | null;
15
+ bannerPosition?: string | null;
16
+ bannerRepeat?: string | null;
17
+ bannerSize?: string | null;
18
+ bannerUrl?: string | null;
19
+ opacity?: number | null;
20
+ position?: string | null;
21
+ repeat?: string | null;
22
+ size?: string | null;
23
+ url?: string | null;
24
+ } | null;
25
+ export interface DockIconOverlayConfig {
26
+ icon: DockIconSource;
27
+ title?: string;
28
+ onClick?: DockEventHandler;
29
+ }
30
+ export interface DockBadgeState {
31
+ color?: string;
32
+ value?: string | number | null;
33
+ visible: boolean;
34
+ }
35
+ export interface DockActionDescriptor {
36
+ badge?: string | number | null;
37
+ className?: string | null;
38
+ disabled?: boolean;
39
+ icon?: DockIconSource;
40
+ key?: string;
41
+ label?: string | null;
42
+ onClick?: DockEventHandler | null;
43
+ order?: number;
44
+ tone?: string | null;
45
+ tooltip?: string | null;
46
+ visible?: boolean;
47
+ }
48
+ export type DockActionOverrides = Partial<DockActionDescriptor> | DockEventHandler;
49
+ export interface DockActionDefinition {
50
+ bind: (overrides?: DockActionOverrides) => DockActionDescriptor;
51
+ config: DockActionDescriptor;
52
+ create: (overrides?: DockActionOverrides) => DockActionDescriptor;
53
+ id: string;
54
+ key: string;
55
+ use: (overrides?: DockActionOverrides) => void;
56
+ }
57
+ export type DockStyleSectionName = "card" | "icon" | "title" | "description";
58
+ export type DockVisualStyleSection = Omit<CSSProperties, "scale"> & {
59
+ className?: string;
60
+ scale?: number;
61
+ size?: number;
62
+ };
63
+ export type DockVisualStyleSections = Partial<Record<DockStyleSectionName, DockVisualStyleSection>>;
64
+ export interface DockVisualStyleInput extends DockVisualStyleSections {
65
+ active?: DockVisualStyleSections;
66
+ background?: CSSProperties["background"];
67
+ borderColor?: CSSProperties["borderColor"];
68
+ hover?: DockVisualStyleSections;
69
+ inactive?: DockVisualStyleSections;
70
+ scale?: number;
71
+ }
72
+ export interface DockVisualStyle extends Record<DockStyleSectionName, DockVisualStyleSection> {
73
+ scale?: number;
74
+ }
75
+ export interface BreadcrumbItem {
76
+ icon?: DockIconSource;
77
+ id?: string;
78
+ isCurrent?: boolean;
79
+ isEllipsis?: boolean;
80
+ level?: number;
81
+ path: string;
82
+ title: string;
83
+ }
84
+ export interface BreadcrumbOverride {
85
+ icon?: DockIconSource;
86
+ title?: string | null;
87
+ }
88
+ export interface BreadcrumbConfig {
89
+ root?: Partial<BreadcrumbItem>;
90
+ resolvePath?: (context: {
91
+ overrides: Record<string, BreadcrumbOverride>;
92
+ pathname: string;
93
+ root: BreadcrumbItem;
94
+ segments: string[];
95
+ }) => BreadcrumbItem[] | null;
96
+ resolveSegment?: (context: BreadcrumbItem & {
97
+ index: number;
98
+ segment: string;
99
+ segments: string[];
100
+ }) => Partial<BreadcrumbItem> | null;
101
+ }
102
+ export interface BreadcrumbContextValue {
103
+ actions: {
104
+ registerOverride: (path: string, overrideConfig: BreadcrumbOverride) => void;
105
+ unregisterOverride: (path: string) => void;
106
+ };
107
+ config: BreadcrumbConfig;
108
+ overrides: Record<string, BreadcrumbOverride>;
109
+ }
110
+ export interface DockContinuityRememberOptions {
111
+ focusKey?: string | null;
112
+ scrollY?: number;
113
+ snapshot?: unknown;
114
+ updatedAt?: number;
115
+ }
116
+ export interface DockReturnHandoffInput {
117
+ data?: unknown;
118
+ flowId?: string | null;
119
+ status?: string | null;
120
+ timestamp?: number;
121
+ }
122
+ export interface PrefetchingRouter {
123
+ prefetch(href: string, options?: {
124
+ onInvalidate?: () => void;
125
+ }): void;
126
+ }
127
+ export interface RoutePrefetchState {
128
+ isPrefetched: boolean;
129
+ timeoutId: ReturnType<typeof setTimeout> | null;
130
+ }
131
+ export interface DockTransactionEvent {
132
+ transaction: DockTransaction;
133
+ type: string;
134
+ }
135
+ export interface SurfaceUrlState {
136
+ previousValue: string | null;
137
+ value: string;
138
+ }
139
+ export interface DockSurfaceHistoryState {
140
+ flow?: {
141
+ id: string;
142
+ snapshot: unknown;
143
+ };
144
+ value: string;
145
+ }
146
+ export interface DockHudAction {
147
+ label: string;
148
+ onClick: () => void;
149
+ tone?: "primary" | "destructive" | "secondary";
150
+ variant?: "primary" | "destructive" | "muted";
151
+ }
152
+ export interface DockHudDescriptor {
153
+ actions?: DockHudAction[];
154
+ autoDismissMs?: number | null;
155
+ component?: DockComponent | null;
156
+ content?: ReactNode;
157
+ description?: string;
158
+ dismissOnEscape?: boolean;
159
+ dismissOnNavigate?: boolean;
160
+ element?: ReactNode;
161
+ icon?: DockIconSource;
162
+ id: string;
163
+ isActive?: boolean;
164
+ node?: ReactNode;
165
+ onCancel?: (() => void) | null;
166
+ onDismiss?: (() => void) | null;
167
+ priority?: number;
168
+ props?: DockComponentProps;
169
+ renderMode?: string;
170
+ title?: string;
171
+ }
172
+ export type DockHudOverrides = Partial<DockHudDescriptor>;
173
+ export interface DockHudHandle {
174
+ dismiss: (clearHudFn: (id?: string) => void) => void;
175
+ id: string;
176
+ update: (nextProps?: DockComponentProps) => void;
177
+ }
178
+ export interface DockHudTrigger {
179
+ clear: (id?: string) => void;
180
+ hide: (targetId?: string) => void;
181
+ show: (props?: DockComponentProps, overrides?: DockHudOverrides) => DockHudHandle | null;
182
+ }
183
+ export interface GeneralHudHandle {
184
+ clearHud: (id?: string) => void;
185
+ setHud: (descriptor: DockHudDescriptor) => void;
186
+ }
187
+ export type UseHudReturn = DockHudTrigger | GeneralHudHandle;
188
+ export interface DockHudDefinition {
189
+ config: Omit<DockHudDescriptor, "props"> & {
190
+ defaultProps?: DockComponentProps;
191
+ };
192
+ create: (props?: DockComponentProps, overrides?: DockHudOverrides) => DockHudDescriptor;
193
+ hide: (clearHudFn: (id?: string) => void, targetId?: string) => void;
194
+ id: string;
195
+ show: (setHudFn: (descriptor: DockHudDescriptor) => void, props?: DockComponentProps, overrides?: DockHudOverrides) => DockHudHandle;
196
+ use: (props?: DockComponentProps, overrides?: DockHudOverrides) => void;
197
+ useTrigger: () => DockHudTrigger;
198
+ }
199
+ export interface SelectionModeState {
200
+ count: number;
201
+ hasSelection: boolean;
202
+ isActive: boolean;
203
+ isAllSelected: boolean;
204
+ selectedIds: (string | number)[];
205
+ }
206
+ export type DockOperationHud = DockHudDescriptor | DockComponent | ReactNode;
207
+ export interface DockOperationInput {
208
+ cancellable?: boolean;
209
+ description?: string | null;
210
+ hud?: DockOperationHud;
211
+ icon?: DockIconSource;
212
+ id?: string | number;
213
+ label?: string;
214
+ metadata?: Record<string, unknown> | null;
215
+ onCancel?: ((result?: unknown) => unknown) | null;
216
+ priority?: number;
217
+ progress?: number | null;
218
+ startedAt?: number;
219
+ }
220
+ export interface DockOperation {
221
+ cancellable: boolean;
222
+ description: string | null;
223
+ endedAt?: number;
224
+ hud: DockOperationHud;
225
+ icon: DockIconSource;
226
+ id: string;
227
+ label: string;
228
+ metadata: Record<string, unknown>;
229
+ onCancel: ((result?: unknown) => unknown) | null;
230
+ priority: number;
231
+ progress: number | null;
232
+ result?: unknown;
233
+ startedAt: number;
234
+ status: string;
235
+ }
236
+ export interface DockOperationState {
237
+ entries: DockOperation[];
238
+ }
239
+ export interface DockOperationAction {
240
+ endedAt?: number;
241
+ id?: string | number | null;
242
+ maxEntries?: number;
243
+ operation?: DockOperation | null;
244
+ patch?: Partial<DockOperationInput>;
245
+ result?: unknown;
246
+ type: string;
247
+ }
248
+ export interface DockOperationActions {
249
+ cancel: (id: string | number, result?: unknown) => boolean;
250
+ clear: (id?: string | number | null) => void;
251
+ complete: (id: string | number, result?: unknown) => boolean;
252
+ start: (input?: DockOperationInput) => DockOperation | null;
253
+ update: (id: string | number, patch?: Partial<DockOperationInput>) => boolean;
254
+ }
255
+ export interface DockContinuityActions {
256
+ clear: () => void;
257
+ consumeReturn: (pathname: string, handoffId?: string | null) => DockReturnHandoff | null;
258
+ deliverReturn: (pathname: string, input?: DockReturnHandoffInput) => DockReturnHandoff | null;
259
+ get: (pathname: string) => DockContinuityEntry | null;
260
+ getReturns: (pathname: string) => DockReturnHandoff[];
261
+ remember: (pathname: string, options?: DockContinuityRememberOptions) => DockContinuityEntry | null;
262
+ remove: (pathname: string) => void;
263
+ restore: (pathname: string, options?: {
264
+ focusKey?: string | null;
265
+ restoreScroll?: boolean;
266
+ }) => DockContinuityEntry | null;
267
+ }
268
+ export interface DockAttention {
269
+ kind: string;
270
+ priority: number;
271
+ source?: unknown;
272
+ }
273
+ export interface DockRoutePolicy {
274
+ canNavigate: boolean;
275
+ clearTransientState: boolean;
276
+ dismissSurfaces: boolean;
277
+ prefetch: boolean;
278
+ }
279
+ export type DockRoutePolicyOverrides = Partial<Pick<DockRoutePolicy, "clearTransientState" | "dismissSurfaces" | "prefetch">>;
280
+ export interface DockTransaction {
281
+ endedAt?: number;
282
+ error?: unknown;
283
+ from: string;
284
+ id: number;
285
+ reason?: string | null;
286
+ source: string;
287
+ startedAt: number;
288
+ status: string;
289
+ to: string;
290
+ }
291
+ export interface DockTransactionState {
292
+ active: DockTransaction | null;
293
+ last: DockTransaction | null;
294
+ }
295
+ export interface DockTransactionAction {
296
+ endedAt?: number;
297
+ error?: unknown;
298
+ id?: number;
299
+ reason?: string | null;
300
+ transaction?: DockTransaction;
301
+ type: string;
302
+ }
303
+ export interface DockContinuityEntry {
304
+ focusKey: string | null;
305
+ path: string;
306
+ scrollY: number;
307
+ snapshot: Record<string, unknown>;
308
+ updatedAt: number;
309
+ }
310
+ export interface DockReturnHandoff {
311
+ data: unknown;
312
+ flowId: string | null;
313
+ id: string;
314
+ path: string;
315
+ status: string | null;
316
+ timestamp: number;
317
+ }
318
+ export interface DockContinuityState {
319
+ entries: DockContinuityEntry[];
320
+ returnHandoffs: DockReturnHandoff[];
321
+ }
322
+ export interface DockContinuityAction {
323
+ entry?: DockContinuityEntry;
324
+ handoff?: DockReturnHandoff;
325
+ handoffId?: string;
326
+ maxEntries?: number;
327
+ path?: string;
328
+ type: string;
329
+ }
330
+ export interface DockTopologyNode {
331
+ depth: number;
332
+ id: string;
333
+ parentId: string | null;
334
+ path: string;
335
+ }
336
+ export interface DockTopology {
337
+ activeNode: DockTopologyNode | null;
338
+ activePath: string;
339
+ ancestors: DockTopologyNode[];
340
+ nodes: DockTopologyNode[];
341
+ }
342
+ export interface SurfaceHeaderConfig {
343
+ description?: string;
344
+ icon?: DockIconSource;
345
+ title?: string;
346
+ }
347
+ export type SurfaceId = number;
348
+ export type SurfaceExtensionAlign = "left" | "center" | "right";
349
+ export interface SurfaceExtension {
350
+ align?: SurfaceExtensionAlign | "start" | "end";
351
+ className?: string;
352
+ component?: DockComponent | null;
353
+ content?: ReactNode;
354
+ id?: string;
355
+ key?: string;
356
+ order?: number;
357
+ props?: DockComponentProps;
358
+ unstyled?: boolean;
359
+ }
360
+ export type SurfaceExtensionInput = SurfaceExtension | ReactElement;
361
+ export interface NormalizedSurfaceExtension {
362
+ align: SurfaceExtensionAlign;
363
+ className: string;
364
+ component: DockComponent | null;
365
+ content: ReactNode;
366
+ id: string;
367
+ order: number;
368
+ props: DockComponentProps;
369
+ unstyled: boolean;
370
+ }
371
+ export interface SurfaceStep {
372
+ action?: DockSlotContent;
373
+ closeLabel?: string | null;
374
+ component?: DockComponent | null;
375
+ loader?: () => Promise<{
376
+ default: DockComponent;
377
+ }>;
378
+ content?: ReactNode;
379
+ description?: string | null;
380
+ descriptionMaxLines?: number;
381
+ element?: ReactNode;
382
+ extensions?: SurfaceExtensionInput | SurfaceExtensionInput[];
383
+ header?: SurfaceHeaderConfig;
384
+ headerAction?: DockSlotContent;
385
+ icon?: DockIconSource;
386
+ id?: string | null;
387
+ node?: ReactNode;
388
+ props?: DockComponentProps;
389
+ showAction?: boolean | null;
390
+ title?: string | null;
391
+ trailing?: DockSlotContent;
392
+ }
393
+ export interface SurfaceReturnHandshake {
394
+ focusKey: string | null;
395
+ pathname: string;
396
+ restoreScroll: boolean;
397
+ returnOnCancel: boolean;
398
+ }
399
+ export type SurfaceReturnHandshakeInput = string | Partial<SurfaceReturnHandshake> | null | undefined;
400
+ export interface SurfaceFlowCreateContext {
401
+ flowId: string;
402
+ input: unknown;
403
+ snapshot: unknown;
404
+ }
405
+ export interface SurfaceFlowDefinitionInput {
406
+ createSurface: (context: SurfaceFlowCreateContext) => SurfaceInput;
407
+ id: string;
408
+ initialSnapshot?: unknown;
409
+ restoreFromUrl?: boolean;
410
+ returnHandshake?: SurfaceReturnHandshakeInput;
411
+ returnTo?: string;
412
+ singleton?: boolean;
413
+ }
414
+ export interface SurfaceFlowDefinition {
415
+ createSurface: (context: SurfaceFlowCreateContext) => SurfaceInput;
416
+ id: string;
417
+ initialSnapshot: Record<string, unknown> | null;
418
+ restoreFromUrl: boolean;
419
+ returnHandshake: SurfaceReturnHandshake | null;
420
+ singleton: boolean;
421
+ }
422
+ export interface SurfaceFlowSession {
423
+ flowId: string;
424
+ input: unknown;
425
+ returnHandshake: SurfaceReturnHandshake | null;
426
+ snapshot: unknown;
427
+ status: string;
428
+ surfaceId?: SurfaceId;
429
+ }
430
+ export type SurfaceFlowState = Omit<SurfaceFlowSession, "input" | "surfaceId">;
431
+ export interface SurfaceFlowHandle {
432
+ cancel: (data?: unknown) => boolean;
433
+ complete: (data?: unknown) => boolean;
434
+ flowId: string;
435
+ isOpen: boolean;
436
+ snapshot: unknown;
437
+ status: string;
438
+ update: (snapshot: unknown) => boolean;
439
+ }
440
+ export interface SurfaceDescriptor {
441
+ action?: DockSlotContent;
442
+ allowSwipeDismiss?: boolean;
443
+ badge?: ReactNode;
444
+ closeLabel?: string | null;
445
+ component?: DockComponent | null;
446
+ loader?: () => Promise<{
447
+ default: DockComponent;
448
+ }>;
449
+ content?: ReactNode;
450
+ currentStepIndex?: number;
451
+ description?: string | null;
452
+ descriptionMaxLines?: number;
453
+ dismissible?: boolean;
454
+ element?: ReactNode;
455
+ extensions?: SurfaceExtensionInput | SurfaceExtensionInput[];
456
+ header?: SurfaceHeaderConfig;
457
+ headerAction?: DockSlotContent;
458
+ icon?: DockIconSource;
459
+ id?: string | null;
460
+ node?: ReactNode;
461
+ onClose?: ((result?: SurfaceResult) => void) | null;
462
+ props?: DockComponentProps;
463
+ showAction?: boolean | null;
464
+ skipActionDismiss?: boolean;
465
+ steps?: SurfaceStep[] | null;
466
+ syncWithUrl?: boolean | string;
467
+ title?: string | null;
468
+ trailing?: DockSlotContent;
469
+ urlKey?: string | null;
470
+ width?: number | string | null;
471
+ }
472
+ export type SurfaceEntry = SurfaceDescriptor;
473
+ export type SurfaceEntryFactory = ((config?: DockComponentProps) => SurfaceDescriptor | null) & {
474
+ id?: string | null;
475
+ isSurfaceFactory?: boolean;
476
+ };
477
+ export type SurfaceInput = SurfaceDescriptor | SurfaceEntryFactory | DockComponent | ReactNode;
478
+ export interface OpenSurfaceOptions extends Partial<SurfaceDescriptor> {
479
+ flowSession?: SurfaceFlowSession | null;
480
+ preserveUrl?: boolean;
481
+ }
482
+ export interface NormalizedSurfaceDefinition {
483
+ action: DockSlotContent | null;
484
+ allowSwipeDismiss: boolean;
485
+ badge: ReactNode;
486
+ closeLabel: string | null;
487
+ component: DockComponent | null;
488
+ content: ReactNode;
489
+ currentStepIndex: number;
490
+ description: string | null;
491
+ descriptionMaxLines: number;
492
+ dismissible: boolean;
493
+ extensions: NormalizedSurfaceExtension[];
494
+ headerAction: DockSlotContent | null;
495
+ icon: DockIconSource;
496
+ onClose: ((result?: SurfaceResult) => void) | null;
497
+ props: DockComponentProps;
498
+ renderMode: string;
499
+ showAction: boolean | null;
500
+ skipActionDismiss: boolean;
501
+ steps: SurfaceStep[] | null;
502
+ syncWithUrl: boolean | string;
503
+ title: string | null;
504
+ trailing: DockSlotContent | null;
505
+ urlKey: string | null;
506
+ width: number | string | null;
507
+ }
508
+ export type SurfacePayloadKey = "action" | "closeLabel" | "component" | "content" | "description" | "headerAction" | "icon" | "onClose" | "props" | "showAction" | "steps" | "title" | "trailing";
509
+ export type SurfacePayload = Pick<NormalizedSurfaceDefinition, SurfacePayloadKey>;
510
+ export interface SurfaceStackEntry extends Omit<NormalizedSurfaceDefinition, SurfacePayloadKey> {
511
+ flow?: SurfaceFlowState | null;
512
+ id: SurfaceId;
513
+ payloadId: string;
514
+ }
515
+ export type ResolvedSurfaceEntry = Partial<SurfacePayload> & SurfaceStackEntry;
516
+ export type RenderableSurfaceEntry = Partial<NormalizedSurfaceDefinition> & {
517
+ flow?: SurfaceFlowState | null;
518
+ id?: SurfaceId | null;
519
+ payloadId?: string;
520
+ };
521
+ export interface ActiveSurfaceStep extends RenderableSurfaceEntry {
522
+ canGoBack?: boolean;
523
+ isFirstStep?: boolean;
524
+ isLastStep?: boolean;
525
+ stepIndex?: number;
526
+ totalSteps?: number;
527
+ }
528
+ export interface SurfaceState {
529
+ activeSurfaceEntry: ResolvedSurfaceEntry | null;
530
+ activeSurfaceId: SurfaceId | null;
531
+ isSurfaceOpen: boolean;
532
+ surfacePhase: string;
533
+ surfaceStack: ResolvedSurfaceEntry[];
534
+ }
535
+ export interface SurfaceTransitionState {
536
+ closingSurfaceIds: readonly SurfaceId[];
537
+ phase: string;
538
+ surfaceIds: readonly SurfaceId[];
539
+ surfaceLifecycle: string;
540
+ }
541
+ export interface SurfaceTransitionEvent {
542
+ skipActionDismiss?: boolean;
543
+ surfaceId?: SurfaceId | null;
544
+ type: string;
545
+ value?: unknown;
546
+ }
547
+ export interface SurfaceTransitionEffect {
548
+ delayMs?: number;
549
+ event?: SurfaceTransitionEvent;
550
+ label?: string;
551
+ surfaceId?: SurfaceId;
552
+ surfaceIds?: readonly SurfaceId[];
553
+ type: string;
554
+ }
555
+ export interface SurfaceTransitionResult {
556
+ effects: readonly SurfaceTransitionEffect[];
557
+ state: SurfaceTransitionState;
558
+ }
559
+ export interface SurfaceLifecycleState {
560
+ surfaceIds: SurfaceId[];
561
+ surfaceLifecycle: string;
562
+ }
563
+ export interface DockItemRouteFields {
564
+ activeChild?: DockItem | null;
565
+ children?: DockItem[] | null;
566
+ hasActiveChild?: boolean;
567
+ id?: string | null;
568
+ isParent?: boolean;
569
+ name?: string | null;
570
+ onClick?: DockEventHandler | null;
571
+ path?: string | null;
572
+ priority?: number | null;
573
+ targetPath?: string | null;
574
+ type?: string;
575
+ dockPolicy?: DockRoutePolicyOverrides;
576
+ keepWhenDescendant?: boolean | ((activePath: string, item: DockItem) => boolean);
577
+ prefetchDisabled?: boolean;
578
+ statusType?: string;
579
+ }
580
+ export interface DockItemPresentationFields {
581
+ action?: DockSlotContent;
582
+ actions?: DockSlotContent;
583
+ badge?: ReactNode;
584
+ banner?: DockBannerSource;
585
+ bannerOpacity?: number | null;
586
+ bannerPosition?: string | null;
587
+ bannerRepeat?: string | null;
588
+ bannerSize?: string | null;
589
+ bannerUrl?: string | null;
590
+ className?: string;
591
+ component?: DockComponent | null;
592
+ content?: ReactNode;
593
+ description?: string | null;
594
+ headerAction?: DockSlotContent;
595
+ icon?: DockIconSource;
596
+ iconOverlay?: DockIconOverlayConfig | null;
597
+ props?: DockComponentProps;
598
+ style?: DockVisualStyleInput | null;
599
+ title?: string | null;
600
+ width?: number | string | null;
601
+ }
602
+ export interface DockItemSurfaceFields {
603
+ allowSwipeDismiss?: boolean;
604
+ backLabel?: string | null;
605
+ canGoBack?: boolean;
606
+ closeAllSurfaces?: (() => void) | null;
607
+ closeLabel?: string | null;
608
+ closeSurface?: ((result?: SurfaceResult) => void) | null;
609
+ currentStepIndex?: number;
610
+ dismissible?: boolean;
611
+ extensions?: NormalizedSurfaceExtension[];
612
+ goToStep?: ((index: number) => void) | null;
613
+ isFirstStep?: boolean;
614
+ isLastStep?: boolean;
615
+ isSurface?: boolean;
616
+ onAnimationComplete?: () => void;
617
+ onBack?: (() => void) | null;
618
+ onClose?: ((result?: SurfaceResult) => void) | null;
619
+ popStep?: (() => void) | null;
620
+ pushStep?: ((step: SurfaceStep) => void) | null;
621
+ restingWidth?: number | string | null;
622
+ stepIndex?: number;
623
+ steps?: SurfaceStep[] | null;
624
+ surface?: SurfaceInput | null;
625
+ surfaceBackLabel?: string | null;
626
+ surfaceCloseLabel?: string | null;
627
+ surfaceComponent?: DockComponent | null;
628
+ surfaceContent?: ReactNode;
629
+ surfaceDescription?: string | null;
630
+ surfaceDescriptionMaxLines?: number;
631
+ surfaceExtensions?: NormalizedSurfaceExtension[];
632
+ surfaceHeaderAction?: DockSlotContent;
633
+ surfaceIcon?: DockIconSource;
634
+ surfaceId?: SurfaceId | null;
635
+ surfacePhase?: string;
636
+ surfaceProps?: DockComponentProps;
637
+ surfaceStackEntries?: DockItemSurfaceFields[];
638
+ surfaceTitle?: string | null;
639
+ surfaceTrailing?: DockSlotContent;
640
+ totalSteps?: number;
641
+ width?: number | string | null;
642
+ }
643
+ export interface DockItemRuntimeFields {
644
+ disabled?: boolean;
645
+ isAnchoredToBottom?: boolean;
646
+ isDataSource?: boolean;
647
+ isExpanded?: boolean;
648
+ isHud?: boolean;
649
+ isInactive?: boolean;
650
+ isLoading?: boolean;
651
+ isMasked?: boolean;
652
+ isNotFound?: boolean;
653
+ isOverlay?: boolean;
654
+ isSelected?: boolean;
655
+ isStatus?: boolean;
656
+ mediaAction?: boolean;
657
+ }
658
+ export interface DockItem extends DockItemRouteFields, DockItemPresentationFields, DockItemSurfaceFields, DockItemRuntimeFields {
659
+ }
660
+ export interface DockGuardConfirmation {
661
+ from: string;
662
+ href: string;
663
+ message?: string;
664
+ routePolicy: DockRoutePolicy;
665
+ }
666
+ export interface DockGuardDefinition {
667
+ message?: string;
668
+ onBlock?: (info: {
669
+ from: string;
670
+ guardId: number;
671
+ message: string;
672
+ to: string;
673
+ }) => void;
674
+ when: boolean | ((to: string, from: string) => boolean | Promise<boolean>);
675
+ }
676
+ export interface UseDockGuardOptions {
677
+ message?: string;
678
+ when?: boolean | ((to?: string, from?: string) => boolean | Promise<boolean>);
679
+ onBlock?: (info: {
680
+ from: string;
681
+ guardId: number;
682
+ message: string;
683
+ to: string;
684
+ }) => void;
685
+ }
686
+ export interface GuardCheckResult {
687
+ blocked: boolean;
688
+ guardId?: number;
689
+ message?: string;
690
+ reason?: "blocked" | "error";
691
+ }
692
+ export interface DockGuard {
693
+ message?: string;
694
+ onBlock?: (info: {
695
+ to: string;
696
+ from: string;
697
+ guardId: number;
698
+ message: string;
699
+ }) => void;
700
+ when: boolean | ((to: string, from: string) => boolean | Promise<boolean>);
701
+ }
702
+ export interface DockState {
703
+ activeItem: DockItem | null;
704
+ activeOperation: DockOperation | null;
705
+ activeSurfaceEntry: ResolvedSurfaceEntry | null;
706
+ activeSurfaceId: number | null;
707
+ contextActions: DockActionDescriptor[];
708
+ dockContinuity: DockContinuityEntry[];
709
+ dockHeight: number;
710
+ dockReturnHandoffs: DockReturnHandoff[];
711
+ expanded: boolean;
712
+ hud: DockHudDescriptor | null;
713
+ hudEntries: DockHudDescriptor[];
714
+ isHudActive: boolean;
715
+ isSurfaceOpen: boolean;
716
+ locationKey: string;
717
+ operations: DockOperation[];
718
+ pathname: string;
719
+ searchQuery: string;
720
+ selectionMode: DockHudDescriptor | null;
721
+ surfaceLifecycle: string;
722
+ surfacePhase: string;
723
+ surfaceStack: ResolvedSurfaceEntry[];
724
+ }
725
+ export interface DockNavigateOptions {
726
+ force?: boolean;
727
+ item?: DockItem | null;
728
+ source?: string;
729
+ }
730
+ export interface DockRouteActions {
731
+ clearDockGuards: () => void;
732
+ clearPreparedRouteReset: () => void;
733
+ continuity: DockContinuityActions;
734
+ navigate: (href: string, options?: DockNavigateOptions) => Promise<boolean>;
735
+ prepareRouteReset: (policy: DockRoutePolicy | null) => void;
736
+ registerGuard: (guard: DockGuardDefinition) => () => void;
737
+ }
738
+ export interface DockInternalActions {
739
+ setIsHovered: (hovered: boolean) => void;
740
+ cancelActiveTransaction: (reason?: string) => void;
741
+ cancelDock: (reason?: string) => void;
742
+ clearBreadcrumbOverride: (path: string) => void;
743
+ completeDock: (path: string) => void;
744
+ openGuardConfirmation: (config: DockGuardConfirmation) => void;
745
+ registerBreadcrumbOverride: (path: string, config: BreadcrumbOverride) => void;
746
+ }
747
+ export interface DockSurfaceActions {
748
+ cancelSurfaceFlow: (flowId: string, result?: SurfaceResult) => boolean;
749
+ closeAllSurfaces: (result?: SurfaceResult) => void;
750
+ closeSurface: (result?: SurfaceResult, surfaceId?: SurfaceId | null) => void;
751
+ completeSurfaceFlow: (flowId: string, result?: SurfaceResult) => boolean;
752
+ getSurfaceFlow?: ((flowId: string) => SurfaceFlowHandle | null) | null;
753
+ goBackSurface: () => void;
754
+ goToStep: (index: number, surfaceId?: SurfaceId | null) => void;
755
+ openSurface: (definition: SurfaceInput, config?: OpenSurfaceOptions) => Promise<SurfaceResult>;
756
+ openSurfaceFlow: (definition: SurfaceFlowDefinitionInput, input?: unknown) => Promise<SurfaceResult>;
757
+ popStep: (surfaceId?: SurfaceId | null) => void;
758
+ pushStep: (step: SurfaceStep, surfaceId?: SurfaceId | null) => void;
759
+ restoreSurfaceFlow: (definition: SurfaceFlowDefinitionInput) => Promise<SurfaceResult>;
760
+ updateSurfaceFlow: (flowId: string, snapshot: unknown) => boolean;
761
+ }
762
+ export interface DockUiActions {
763
+ clearHud: (id?: string) => void;
764
+ operations: DockOperationActions;
765
+ registerContextAction: (action: Partial<DockActionDescriptor>) => void;
766
+ setContextActions: (actions: DockActionDescriptor[]) => void;
767
+ setExpanded: (expanded: boolean) => void;
768
+ setHud: (descriptor: DockHudDescriptor) => void;
769
+ setDockHeight: (height: number) => void;
770
+ setSearchQuery: (query: string) => void;
771
+ unregisterContextAction: (key: string) => void;
772
+ }
773
+ export interface DockActions extends DockRouteActions, DockSurfaceActions, DockUiActions {
774
+ }
775
+ export interface DockDimensions {
776
+ baseHeight: number;
777
+ cardWidth: number;
778
+ hudHeight: number;
779
+ dockHeight: number;
780
+ stackWidth: number;
781
+ }
782
+ export interface DockProviderProps {
783
+ breadcrumbConfig?: BreadcrumbConfig | null;
784
+ children?: ReactNode;
785
+ mediaAction?: ComponentType | null;
786
+ notFoundAction?: ComponentType | null;
787
+ scheduler?: DockScheduler | null;
788
+ }
789
+ export interface DockContextValue {
790
+ actions: DockActions;
791
+ runtimeActions: {
792
+ mediaAction: ComponentType | null;
793
+ notFoundAction: ComponentType | null;
794
+ };
795
+ runtimeScheduler: DockScheduler;
796
+ store: ExternalStore<DockState>;
797
+ view: DockViewBridge;
798
+ guards: DockGuardRegistry;
799
+ }
800
+ export interface DockRouteSnapshot {
801
+ activeItem: DockItem | null;
802
+ locationKey: string;
803
+ pathname: string;
804
+ }
805
+ export interface DockViewBridge {
806
+ publishRoute: (snapshot: DockRouteSnapshot) => void;
807
+ setNavigator: (navigate: DockActions["navigate"] | null) => void;
808
+ }
809
+ export type DockSurfaceSlot = Record<string, unknown> | DockComponent | ((props: Record<string, unknown>) => unknown);
810
+ export interface DockPageGuard {
811
+ message?: string;
812
+ onBlock?: (info: {
813
+ from: string;
814
+ guardId: number;
815
+ message: string;
816
+ to: string;
817
+ }) => void;
818
+ when: boolean;
819
+ }
820
+ export type DockBannerInput = string | {
821
+ bannerOpacity?: number | null;
822
+ bannerPosition?: string | null;
823
+ bannerRepeat?: string | null;
824
+ bannerSize?: string | null;
825
+ bannerUrl?: string | null;
826
+ opacity?: number | null;
827
+ position?: string | null;
828
+ repeat?: string | null;
829
+ size?: string | null;
830
+ url?: string | null;
831
+ };
832
+ export type DockPageCardFields = Omit<DockItemPresentationFields, "actions"> & Pick<DockItemRouteFields, "dockPolicy" | "keepWhenDescendant" | "name" | "path" | "prefetchDisabled" | "targetPath"> & Pick<DockItemRuntimeFields, "isLoading" | "isOverlay"> & Pick<DockItemSurfaceFields, "dismissible">;
833
+ export interface DockPageConfig extends DockPageCardFields {
834
+ actions?: Partial<DockActionDescriptor>[];
835
+ breadcrumbs?: unknown[];
836
+ guard?: DockPageGuard;
837
+ registry?: RegistryMetadata;
838
+ surfaces?: Record<string, DockSurfaceSlot>;
839
+ }
840
+ export type DockPageApi = DockActions & {
841
+ set: (dock: DockPageConfig) => void;
842
+ surface: (surface: DockSurfaceSlot | string, props?: Record<string, unknown>) => unknown;
843
+ };
844
+ export interface DockStatusTheme {
845
+ card?: {
846
+ className?: string;
847
+ };
848
+ icon?: {
849
+ className?: string;
850
+ };
851
+ title?: {
852
+ className?: string;
853
+ };
854
+ description?: {
855
+ className?: string;
856
+ opacity?: number;
857
+ };
858
+ }
859
+ export interface DockStatusDescriptor {
860
+ action?: DockSlotContent;
861
+ actions?: DockSlotContent;
862
+ description: string;
863
+ flow?: string | null;
864
+ hideScroll?: boolean;
865
+ icon?: DockIconSource;
866
+ isOverlay: boolean;
867
+ path?: string;
868
+ priority?: number | null;
869
+ style?: DockStatusTheme;
870
+ title: string;
871
+ type: string;
872
+ }
873
+ export interface LastKnownAccount {
874
+ avatarUrl?: string | null;
875
+ displayName?: string | null;
876
+ email?: string | null;
877
+ id?: string | null;
878
+ username?: string | null;
879
+ }
880
+ export interface ScheduleStatusClearOptions {
881
+ clearWhen?: string[];
882
+ duration?: number;
883
+ }
884
+ export interface QueuedApiError {
885
+ message?: string;
886
+ retry?: () => void;
887
+ status?: number;
888
+ }
889
+ export interface PersistedOverlayStatus {
890
+ description?: string;
891
+ expiresAt?: number;
892
+ flow?: string | null;
893
+ icon?: string | null;
894
+ priority?: number | null;
895
+ title?: string;
896
+ type?: string;
897
+ }
898
+ export interface DockScene {
899
+ companion: "notification" | "breadcrumbs" | null;
900
+ expanded: boolean;
901
+ isCompanionVisible: boolean;
902
+ topKind: "surface" | "status-overlay" | "status" | "hud" | "route";
903
+ }
904
+ export interface DefineHudOptions {
905
+ autoDismissMs?: number | null;
906
+ component?: DockComponent | null;
907
+ defaultProps?: DockComponentProps;
908
+ description?: string;
909
+ dismissOnEscape?: boolean;
910
+ dismissOnNavigate?: boolean;
911
+ icon?: DockIconSource;
912
+ id?: string;
913
+ priority?: number;
914
+ title?: string;
915
+ [key: string]: unknown;
916
+ }
917
+ export interface DefineBreadcrumbOptions {
918
+ icon?: DockIconSource | ((props: DockComponentProps) => DockIconSource);
919
+ path?: string | null;
920
+ title?: string | null | ((props: DockComponentProps) => string | null);
921
+ [key: string]: unknown;
922
+ }
923
+ export interface DefineStepSurfaceOptions {
924
+ currentStepIndex?: number;
925
+ defaultProps?: DockComponentProps;
926
+ id?: string;
927
+ steps?: SurfaceStep[] | ((props?: DockComponentProps) => SurfaceStep[]);
928
+ title?: string | null | ((props?: DockComponentProps) => string | null);
929
+ width?: number | string | null;
930
+ [key: string]: unknown;
931
+ }
932
+ export interface DefineDockActionOptions {
933
+ badge?: string | number | null;
934
+ className?: string | null;
935
+ disabled?: boolean;
936
+ icon?: DockIconSource;
937
+ key?: string;
938
+ onClick?: DockEventHandler | null;
939
+ order?: number;
940
+ tone?: string | null;
941
+ tooltip?: string | null;
942
+ visible?: boolean;
943
+ [key: string]: unknown;
944
+ }
945
+ export interface DockCardBannerProps {
946
+ banner?: DockBannerSource;
947
+ bannerUrl?: string | null;
948
+ bannerPosition?: string | null;
949
+ bannerSize?: string | null;
950
+ bannerRepeat?: string | null;
951
+ bannerOpacity?: number | null;
952
+ isActive?: boolean;
953
+ isSurfaceActive?: boolean;
954
+ isHudActive?: boolean;
955
+ isStatusActive?: boolean;
956
+ style?: CSSProperties;
957
+ className?: string;
958
+ }
959
+ export interface DockDescriptionProps {
960
+ text?: string | number | null;
961
+ style?: DockVisualStyleSection;
962
+ maxLines?: number;
963
+ animated?: boolean;
964
+ }
965
+ export interface DockTitleProps {
966
+ text?: string | number | null;
967
+ style?: DockVisualStyleSection;
968
+ animated?: boolean;
969
+ }
970
+ export interface DockCardHeaderProps {
971
+ item?: DockItem;
972
+ link?: DockItem;
973
+ activeItem?: DockItem | null;
974
+ itemStyle: DockVisualStyle;
975
+ badge?: DockBadgeState;
976
+ showVideoIcon?: boolean;
977
+ isPlaying?: boolean;
978
+ effectiveIconOverlay?: DockIconOverlayConfig | null;
979
+ isIconInteractive?: boolean;
980
+ handleIconClick?: DockEventHandler;
981
+ description?: string | null;
982
+ isTop?: boolean;
983
+ contextCommands?: DockActionDescriptor[];
984
+ }
985
+ export interface DockIconProps {
986
+ icon: DockIconSource;
987
+ iconOverlay?: DockIconOverlayConfig | null;
988
+ style?: DockVisualStyleSection;
989
+ onClick?: DockEventHandler | null;
990
+ ariaLabel?: string;
991
+ animated?: boolean;
992
+ }
993
+ export interface DockIconOverlayProps {
994
+ overlay?: DockIconOverlayConfig | null;
995
+ }
996
+ export interface DockCardItemProps {
997
+ ref?: React.Ref<HTMLDivElement>;
998
+ activeItem?: DockItem | null;
999
+ onContentHeightChange?: ((height: number) => void) | null;
1000
+ isStackHovered?: boolean;
1001
+ onMouseEnter?: () => void;
1002
+ onMouseLeave?: () => void;
1003
+ expanded?: boolean;
1004
+ hasExtensions?: boolean;
1005
+ position: number;
1006
+ onClick?: DockEventHandler;
1007
+ isTop?: boolean;
1008
+ item?: DockItem;
1009
+ link?: DockItem;
1010
+ isActive?: boolean;
1011
+ statusStyle?: DockVisualStyleInput | null;
1012
+ isStatusActive?: boolean;
1013
+ isHudActive?: boolean;
1014
+ isSurfaceActive?: boolean;
1015
+ hud?: DockHudDescriptor | null;
1016
+ clearHud?: ((id?: string) => void) | null;
1017
+ contextCommands?: DockActionDescriptor[];
1018
+ }
1019
+ export interface StandardItemContentProps {
1020
+ item?: DockItem;
1021
+ link?: DockItem;
1022
+ activeItem?: DockItem | null;
1023
+ isTop?: boolean;
1024
+ itemStyle: DockVisualStyle;
1025
+ badge?: DockBadgeState;
1026
+ isActive?: boolean;
1027
+ footerNode?: ReactNode;
1028
+ isHudActive?: boolean;
1029
+ hud?: DockHudDescriptor | null;
1030
+ clearHud?: ((id?: string) => void) | null;
1031
+ contextCommands?: DockActionDescriptor[];
1032
+ pathname: string;
1033
+ }
1034
+ export interface DockItemCardPropsOptions {
1035
+ cardScale?: number;
1036
+ cardStyle?: DockVisualStyleSection;
1037
+ expanded?: boolean;
1038
+ hasExtensions?: boolean;
1039
+ isAnchoredToBottom?: boolean;
1040
+ position: number;
1041
+ theme: DockTheme;
1042
+ visibleCount?: number;
1043
+ }
1044
+ export interface ContainerHeightOptions {
1045
+ cardContentHeight?: number | string | null;
1046
+ isHud?: boolean;
1047
+ }
1048
+ export interface UseDockHeightControllerOptions {
1049
+ contentKey?: unknown;
1050
+ isHud?: boolean;
1051
+ setDockHeight: (height: number) => void;
1052
+ surfacePhase?: string;
1053
+ }
1054
+ export interface ErrorActionsProps {
1055
+ className?: string;
1056
+ onRefresh?: () => void;
1057
+ onRetry?: () => void;
1058
+ refreshLabel?: string;
1059
+ refreshText?: string;
1060
+ retryLabel?: string;
1061
+ retryText?: string;
1062
+ }
1063
+ export interface GuardActionsProps {
1064
+ cancelLabel?: string;
1065
+ cancelText?: string;
1066
+ className?: string;
1067
+ confirmLabel?: string;
1068
+ confirmText?: string;
1069
+ onCancel?: () => void;
1070
+ onConfirm?: () => void;
1071
+ }
1072
+ export interface SurfaceFlowContextValue extends Partial<Pick<DockSurfaceActions, "cancelSurfaceFlow" | "completeSurfaceFlow" | "openSurfaceFlow" | "restoreSurfaceFlow" | "updateSurfaceFlow">> {
1073
+ surfaceState?: Pick<SurfaceState, "surfaceStack"> | null;
1074
+ }
1075
+ type PropsResolver<T> = T | ((props: DockComponentProps) => T);
1076
+ export interface SurfaceBuilderDefinition extends Omit<SurfaceDescriptor, "description" | "icon" | "props" | "title"> {
1077
+ defaultProps?: DockComponentProps;
1078
+ description?: PropsResolver<string | null>;
1079
+ icon?: PropsResolver<DockIconSource>;
1080
+ title?: PropsResolver<string | null>;
1081
+ loader?: () => Promise<{
1082
+ default: DockComponent;
1083
+ }>;
1084
+ }
1085
+ export interface SurfaceBuilderFactory {
1086
+ (props?: DockComponentProps, overrides?: Partial<SurfaceDescriptor>): SurfaceDescriptor;
1087
+ component: DockComponent | null;
1088
+ id: string | null;
1089
+ isSurfaceFactory: true;
1090
+ open: (openSurfaceFn: (entry: SurfaceDescriptor) => Promise<SurfaceResult>, props?: DockComponentProps, overrides?: Partial<SurfaceDescriptor>) => Promise<SurfaceResult> | undefined;
1091
+ }
1092
+ export interface BoundSurfaceFactory extends SurfaceBuilderFactory {
1093
+ config: SurfaceBuilderDefinition | DefineStepSurfaceOptions;
1094
+ use: () => SurfaceHandle;
1095
+ }
1096
+ export type SurfaceFactoryLike = ((props?: DockComponentProps, overrides?: Partial<SurfaceDescriptor>) => SurfaceDescriptor) & {
1097
+ component?: DockComponent | null;
1098
+ id?: string | null;
1099
+ };
1100
+ export type UseSurfaceInput = string | SurfaceFactoryLike | SurfaceDescriptor;
1101
+ export type SurfaceOpenFn = (props?: DockComponentProps, overrides?: Partial<SurfaceDescriptor>) => Promise<SurfaceResult>;
1102
+ export interface SurfaceHandleControls {
1103
+ close: (result?: SurfaceResult) => void;
1104
+ closeAll: (result?: SurfaceResult) => void;
1105
+ isOpen: boolean;
1106
+ surfaceStack: ResolvedSurfaceEntry[];
1107
+ }
1108
+ export type SurfaceHandle = [SurfaceOpenFn, SurfaceHandleControls] & SurfaceHandleControls & {
1109
+ open: SurfaceOpenFn;
1110
+ };
1111
+ export interface GeneralSurfaceHandle {
1112
+ closeAllSurfaces: DockSurfaceActions["closeAllSurfaces"];
1113
+ closeSurface: DockSurfaceActions["closeSurface"];
1114
+ openSurface: DockSurfaceActions["openSurface"];
1115
+ surfaceStack: ResolvedSurfaceEntry[];
1116
+ }
1117
+ export interface SurfaceViewModelOptions extends Partial<Pick<DockSurfaceActions, "closeAllSurfaces" | "closeSurface" | "getSurfaceFlow" | "goBackSurface" | "goToStep" | "popStep" | "pushStep">> {
1118
+ surfaceStack?: ResolvedSurfaceEntry[];
1119
+ surfacePhase?: string;
1120
+ }
1121
+ export interface DockSurfaceShellProps {
1122
+ ref?: React.Ref<HTMLElement>;
1123
+ title?: string;
1124
+ onClose?: (() => void) | null;
1125
+ onBack?: (() => void) | null;
1126
+ allowSwipeDismiss?: boolean;
1127
+ closeLabel?: string;
1128
+ backLabel?: string;
1129
+ showControls?: boolean;
1130
+ className?: string;
1131
+ contentClassName?: string;
1132
+ children?: ReactNode;
1133
+ onAnimationComplete?: (() => void) | null;
1134
+ isActive?: boolean;
1135
+ surfaceId?: SurfaceId | null;
1136
+ surfacePhase?: string;
1137
+ surfaceWidth?: number | string | null;
1138
+ }
1139
+ export interface SurfaceFlowReturnInput {
1140
+ restoreReturnScroll?: boolean;
1141
+ returnFocusKey?: string | null;
1142
+ returnHandshake?: Partial<SurfaceReturnHandshake> | null;
1143
+ returnOnCancel?: boolean;
1144
+ returnTo?: string;
1145
+ }
1146
+ export interface DockGuardRegistry {
1147
+ check(to: string, from: string): Promise<GuardCheckResult>;
1148
+ clear(): void;
1149
+ count(): number;
1150
+ register(guard: DockGuard): () => void;
1151
+ }
1152
+ export type DockScheduler = ReturnType<typeof createScheduler>;
1153
+ export type DockScheduledTaskId = ReturnType<DockScheduler["schedule"]>;
1154
+ export type StatusState = DockStatusDescriptor | null;
1155
+ 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";
1156
+ export type DockTheme = ResolvedTheme<DockThemeSlot>;
1157
+ export {};
1158
+ //# sourceMappingURL=types.d.ts.map