@miragon/pulse-widget-shell 0.24.1 → 0.25.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 (917) hide show
  1. package/README.md +134 -127
  2. package/dist/caller.d.ts +3 -0
  3. package/dist/caller.d.ts.map +1 -0
  4. package/dist/caller.js +18 -0
  5. package/dist/caller.js.map +1 -0
  6. package/dist/composed-server.d.ts +34 -66
  7. package/dist/composed-server.d.ts.map +1 -1
  8. package/dist/composed-server.js +130 -137
  9. package/dist/composed-server.js.map +1 -1
  10. package/dist/composition.d.ts +61 -111
  11. package/dist/composition.d.ts.map +1 -1
  12. package/dist/composition.js +120 -54
  13. package/dist/composition.js.map +1 -1
  14. package/dist/font-assets.d.ts +7 -28
  15. package/dist/font-assets.d.ts.map +1 -1
  16. package/dist/font-assets.js +11 -43
  17. package/dist/font-assets.js.map +1 -1
  18. package/dist/health.d.ts +9 -45
  19. package/dist/health.d.ts.map +1 -1
  20. package/dist/health.js +6 -24
  21. package/dist/health.js.map +1 -1
  22. package/dist/host-boot.d.ts +8 -38
  23. package/dist/host-boot.d.ts.map +1 -1
  24. package/dist/host-boot.js +10 -32
  25. package/dist/host-boot.js.map +1 -1
  26. package/dist/http-edge.d.ts +20 -76
  27. package/dist/http-edge.d.ts.map +1 -1
  28. package/dist/http-edge.js +17 -60
  29. package/dist/http-edge.js.map +1 -1
  30. package/dist/metrics.d.ts +6 -21
  31. package/dist/metrics.d.ts.map +1 -1
  32. package/dist/metrics.js +8 -36
  33. package/dist/metrics.js.map +1 -1
  34. package/dist/node-listener.d.ts +7 -39
  35. package/dist/node-listener.d.ts.map +1 -1
  36. package/dist/node-listener.js +6 -18
  37. package/dist/node-listener.js.map +1 -1
  38. package/dist/oauth-env.d.ts +15 -35
  39. package/dist/oauth-env.d.ts.map +1 -1
  40. package/dist/oauth-env.js +122 -62
  41. package/dist/oauth-env.js.map +1 -1
  42. package/dist/protocol/bpmn-names.d.ts +19 -0
  43. package/dist/protocol/bpmn-names.d.ts.map +1 -0
  44. package/dist/{bpmn-names.js → protocol/bpmn-names.js} +9 -38
  45. package/dist/protocol/bpmn-names.js.map +1 -0
  46. package/dist/protocol/served-fonts.d.ts +17 -0
  47. package/dist/protocol/served-fonts.d.ts.map +1 -0
  48. package/dist/protocol/served-fonts.js +30 -0
  49. package/dist/protocol/served-fonts.js.map +1 -0
  50. package/dist/protocol/tool-result.d.ts +24 -0
  51. package/dist/protocol/tool-result.d.ts.map +1 -0
  52. package/dist/protocol/tool-result.js +37 -0
  53. package/dist/protocol/tool-result.js.map +1 -0
  54. package/dist/protocol/translator.d.ts +14 -0
  55. package/dist/protocol/translator.d.ts.map +1 -0
  56. package/dist/protocol/translator.js +18 -0
  57. package/dist/protocol/translator.js.map +1 -0
  58. package/dist/protocol/view-name.d.ts +11 -0
  59. package/dist/protocol/view-name.d.ts.map +1 -0
  60. package/dist/protocol/view-name.js +23 -0
  61. package/dist/protocol/view-name.js.map +1 -0
  62. package/dist/request-context.d.ts +4 -33
  63. package/dist/request-context.d.ts.map +1 -1
  64. package/dist/request-context.js +11 -43
  65. package/dist/request-context.js.map +1 -1
  66. package/dist/server.d.ts +19 -39
  67. package/dist/server.d.ts.map +1 -1
  68. package/dist/server.js +28 -32
  69. package/dist/server.js.map +1 -1
  70. package/dist/testing/glossary.d.ts +4 -32
  71. package/dist/testing/glossary.d.ts.map +1 -1
  72. package/dist/testing/glossary.js +6 -30
  73. package/dist/testing/glossary.js.map +1 -1
  74. package/dist/testing/index.d.ts +1 -38
  75. package/dist/testing/index.d.ts.map +1 -1
  76. package/dist/testing/index.js +1 -38
  77. package/dist/testing/index.js.map +1 -1
  78. package/dist/tool-errors.d.ts +16 -0
  79. package/dist/tool-errors.d.ts.map +1 -0
  80. package/dist/tool-errors.js +23 -0
  81. package/dist/tool-errors.js.map +1 -0
  82. package/dist/tool-registrar.d.ts +29 -0
  83. package/dist/tool-registrar.d.ts.map +1 -0
  84. package/dist/tool-registrar.js +47 -0
  85. package/dist/tool-registrar.js.map +1 -0
  86. package/dist/tool-registration.d.ts +35 -0
  87. package/dist/tool-registration.d.ts.map +1 -0
  88. package/dist/tool-registration.js +80 -0
  89. package/dist/tool-registration.js.map +1 -0
  90. package/dist/tool-schema-trim.d.ts +1 -15
  91. package/dist/tool-schema-trim.d.ts.map +1 -1
  92. package/dist/tool-schema-trim.js +1 -16
  93. package/dist/tool-schema-trim.js.map +1 -1
  94. package/dist/toolsets.d.ts +10 -56
  95. package/dist/toolsets.d.ts.map +1 -1
  96. package/dist/toolsets.js +2 -10
  97. package/dist/toolsets.js.map +1 -1
  98. package/dist/ui/action-feedback.d.ts +4 -26
  99. package/dist/ui/action-feedback.d.ts.map +1 -1
  100. package/dist/ui/action-feedback.js +5 -19
  101. package/dist/ui/action-feedback.js.map +1 -1
  102. package/dist/ui/ask-ai-button.d.ts +6 -43
  103. package/dist/ui/ask-ai-button.d.ts.map +1 -1
  104. package/dist/ui/ask-ai-button.js +6 -18
  105. package/dist/ui/ask-ai-button.js.map +1 -1
  106. package/dist/ui/ask-ai-prompt.d.ts +6 -82
  107. package/dist/ui/ask-ai-prompt.d.ts.map +1 -1
  108. package/dist/ui/ask-ai-prompt.js +10 -77
  109. package/dist/ui/ask-ai-prompt.js.map +1 -1
  110. package/dist/ui/bpmn-tokens.d.ts +3 -48
  111. package/dist/ui/bpmn-tokens.d.ts.map +1 -1
  112. package/dist/ui/bpmn-tokens.js +3 -46
  113. package/dist/ui/bpmn-tokens.js.map +1 -1
  114. package/dist/ui/bpmn-zoom-controls.d.ts +4 -17
  115. package/dist/ui/bpmn-zoom-controls.d.ts.map +1 -1
  116. package/dist/ui/bpmn-zoom-controls.js +2 -16
  117. package/dist/ui/bpmn-zoom-controls.js.map +1 -1
  118. package/dist/ui/call-observer.d.ts +35 -0
  119. package/dist/ui/call-observer.d.ts.map +1 -0
  120. package/dist/ui/call-observer.js +86 -0
  121. package/dist/ui/call-observer.js.map +1 -0
  122. package/dist/ui/confirm-dialog.d.ts +4 -31
  123. package/dist/ui/confirm-dialog.d.ts.map +1 -1
  124. package/dist/ui/confirm-dialog.js +4 -27
  125. package/dist/ui/confirm-dialog.js.map +1 -1
  126. package/dist/ui/count-tone.d.ts +3 -17
  127. package/dist/ui/count-tone.d.ts.map +1 -1
  128. package/dist/ui/count-tone.js +2 -16
  129. package/dist/ui/count-tone.js.map +1 -1
  130. package/dist/ui/declare-served-fonts.d.ts +4 -10
  131. package/dist/ui/declare-served-fonts.d.ts.map +1 -1
  132. package/dist/ui/declare-served-fonts.js +6 -13
  133. package/dist/ui/declare-served-fonts.js.map +1 -1
  134. package/dist/ui/describe-error.d.ts +5 -47
  135. package/dist/ui/describe-error.d.ts.map +1 -1
  136. package/dist/ui/describe-error.js +8 -45
  137. package/dist/ui/describe-error.js.map +1 -1
  138. package/dist/ui/display-mode-toggle.d.ts +3 -16
  139. package/dist/ui/display-mode-toggle.d.ts.map +1 -1
  140. package/dist/ui/display-mode-toggle.js +6 -15
  141. package/dist/ui/display-mode-toggle.js.map +1 -1
  142. package/dist/ui/error-labels.d.ts +3 -19
  143. package/dist/ui/error-labels.d.ts.map +1 -1
  144. package/dist/ui/error-labels.js +0 -1
  145. package/dist/ui/error-labels.js.map +1 -1
  146. package/dist/ui/hand-off-button.d.ts +3 -18
  147. package/dist/ui/hand-off-button.d.ts.map +1 -1
  148. package/dist/ui/hand-off-button.js +3 -18
  149. package/dist/ui/hand-off-button.js.map +1 -1
  150. package/dist/ui/host-context.d.ts +13 -50
  151. package/dist/ui/host-context.d.ts.map +1 -1
  152. package/dist/ui/host-context.js +20 -51
  153. package/dist/ui/host-context.js.map +1 -1
  154. package/dist/ui/host-contexts.d.ts +19 -0
  155. package/dist/ui/host-contexts.d.ts.map +1 -0
  156. package/dist/ui/host-contexts.js +31 -0
  157. package/dist/ui/host-contexts.js.map +1 -0
  158. package/dist/ui/host-document.d.ts +3 -18
  159. package/dist/ui/host-document.d.ts.map +1 -1
  160. package/dist/ui/host-document.js +7 -25
  161. package/dist/ui/host-document.js.map +1 -1
  162. package/dist/ui/host-widgets.d.ts +21 -4
  163. package/dist/ui/host-widgets.d.ts.map +1 -1
  164. package/dist/ui/host-widgets.js +19 -11
  165. package/dist/ui/host-widgets.js.map +1 -1
  166. package/dist/ui/id-text.d.ts +1 -17
  167. package/dist/ui/id-text.d.ts.map +1 -1
  168. package/dist/ui/id-text.js +5 -26
  169. package/dist/ui/id-text.js.map +1 -1
  170. package/dist/ui/index.d.ts +24 -43
  171. package/dist/ui/index.d.ts.map +1 -1
  172. package/dist/ui/index.js +36 -51
  173. package/dist/ui/index.js.map +1 -1
  174. package/dist/ui/inline-budget.d.ts +2 -16
  175. package/dist/ui/inline-budget.d.ts.map +1 -1
  176. package/dist/ui/inline-budget.js +1 -8
  177. package/dist/ui/inline-budget.js.map +1 -1
  178. package/dist/ui/inline-fit-registry.d.ts +4 -31
  179. package/dist/ui/inline-fit-registry.d.ts.map +1 -1
  180. package/dist/ui/inline-fit-registry.js +9 -27
  181. package/dist/ui/inline-fit-registry.js.map +1 -1
  182. package/dist/ui/inline-fit-solve.d.ts +5 -27
  183. package/dist/ui/inline-fit-solve.d.ts.map +1 -1
  184. package/dist/ui/inline-fit-solve.js +4 -23
  185. package/dist/ui/inline-fit-solve.js.map +1 -1
  186. package/dist/ui/inline-fit.d.ts +4 -53
  187. package/dist/ui/inline-fit.d.ts.map +1 -1
  188. package/dist/ui/inline-fit.js +16 -62
  189. package/dist/ui/inline-fit.js.map +1 -1
  190. package/dist/ui/kit-labels.d.ts +12 -51
  191. package/dist/ui/kit-labels.d.ts.map +1 -1
  192. package/dist/ui/kit-labels.js +18 -28
  193. package/dist/ui/kit-labels.js.map +1 -1
  194. package/dist/ui/list-table.d.ts +15 -69
  195. package/dist/ui/list-table.d.ts.map +1 -1
  196. package/dist/ui/list-table.js +11 -69
  197. package/dist/ui/list-table.js.map +1 -1
  198. package/dist/ui/locale-gate.d.ts +11 -0
  199. package/dist/ui/locale-gate.d.ts.map +1 -0
  200. package/dist/ui/locale-gate.js +53 -0
  201. package/dist/ui/locale-gate.js.map +1 -0
  202. package/dist/ui/mcp-use-host.d.ts +20 -0
  203. package/dist/ui/mcp-use-host.d.ts.map +1 -0
  204. package/dist/ui/mcp-use-host.js +162 -0
  205. package/dist/ui/mcp-use-host.js.map +1 -0
  206. package/dist/ui/open-in-cockpit-link.d.ts +2 -21
  207. package/dist/ui/open-in-cockpit-link.d.ts.map +1 -1
  208. package/dist/ui/open-in-cockpit-link.js +5 -20
  209. package/dist/ui/open-in-cockpit-link.js.map +1 -1
  210. package/dist/ui/paged-rows.d.ts +3 -14
  211. package/dist/ui/paged-rows.d.ts.map +1 -1
  212. package/dist/ui/paged-rows.js +4 -14
  213. package/dist/ui/paged-rows.js.map +1 -1
  214. package/dist/ui/query-fallback.d.ts +2 -16
  215. package/dist/ui/query-fallback.d.ts.map +1 -1
  216. package/dist/ui/query-fallback.js +2 -14
  217. package/dist/ui/query-fallback.js.map +1 -1
  218. package/dist/ui/shell-host.d.ts +13 -23
  219. package/dist/ui/shell-host.d.ts.map +1 -1
  220. package/dist/ui/shell-host.js +1 -46
  221. package/dist/ui/shell-host.js.map +1 -1
  222. package/dist/ui/test-view-host.d.ts +51 -0
  223. package/dist/ui/test-view-host.d.ts.map +1 -0
  224. package/dist/ui/test-view-host.js +72 -0
  225. package/dist/ui/test-view-host.js.map +1 -0
  226. package/dist/ui/tool-query.d.ts +41 -0
  227. package/dist/ui/tool-query.d.ts.map +1 -0
  228. package/dist/ui/tool-query.js +128 -0
  229. package/dist/ui/tool-query.js.map +1 -0
  230. package/dist/ui/use-apply-theme.d.ts +1 -8
  231. package/dist/ui/use-apply-theme.d.ts.map +1 -1
  232. package/dist/ui/use-apply-theme.js +1 -8
  233. package/dist/ui/use-apply-theme.js.map +1 -1
  234. package/dist/ui/use-bpmn-viewer.d.ts +39 -73
  235. package/dist/ui/use-bpmn-viewer.d.ts.map +1 -1
  236. package/dist/ui/use-bpmn-viewer.js +18 -66
  237. package/dist/ui/use-bpmn-viewer.js.map +1 -1
  238. package/dist/ui/use-detail-view.d.ts +4 -26
  239. package/dist/ui/use-detail-view.d.ts.map +1 -1
  240. package/dist/ui/use-detail-view.js +7 -28
  241. package/dist/ui/use-detail-view.js.map +1 -1
  242. package/dist/ui/use-paged-list-view.d.ts +5 -25
  243. package/dist/ui/use-paged-list-view.d.ts.map +1 -1
  244. package/dist/ui/use-paged-list-view.js +5 -14
  245. package/dist/ui/use-paged-list-view.js.map +1 -1
  246. package/dist/ui/use-paged-view-data.d.ts +11 -66
  247. package/dist/ui/use-paged-view-data.d.ts.map +1 -1
  248. package/dist/ui/use-paged-view-data.js +20 -53
  249. package/dist/ui/use-paged-view-data.js.map +1 -1
  250. package/dist/ui/view-call.d.ts +66 -0
  251. package/dist/ui/view-call.d.ts.map +1 -0
  252. package/dist/ui/view-call.js +63 -0
  253. package/dist/ui/view-call.js.map +1 -0
  254. package/dist/ui/view-data-state.d.ts +1 -31
  255. package/dist/ui/view-data-state.d.ts.map +1 -1
  256. package/dist/ui/view-data-state.js +3 -32
  257. package/dist/ui/view-data-state.js.map +1 -1
  258. package/dist/ui/view-error-boundary.d.ts +24 -0
  259. package/dist/ui/view-error-boundary.d.ts.map +1 -0
  260. package/dist/ui/view-error-boundary.js +33 -0
  261. package/dist/ui/view-error-boundary.js.map +1 -0
  262. package/dist/ui/view-frame.d.ts +15 -0
  263. package/dist/ui/view-frame.d.ts.map +1 -0
  264. package/dist/ui/view-frame.js +72 -0
  265. package/dist/ui/view-frame.js.map +1 -0
  266. package/dist/ui/view-host.d.ts +35 -0
  267. package/dist/ui/view-host.d.ts.map +1 -0
  268. package/dist/ui/view-host.js +18 -0
  269. package/dist/ui/view-host.js.map +1 -0
  270. package/dist/ui/view-meta.d.ts +6 -29
  271. package/dist/ui/view-meta.d.ts.map +1 -1
  272. package/dist/ui/view-meta.js +2 -13
  273. package/dist/ui/view-meta.js.map +1 -1
  274. package/dist/ui/view-refresh-state.d.ts +4 -18
  275. package/dist/ui/view-refresh-state.d.ts.map +1 -1
  276. package/dist/ui/view-refresh-state.js +1 -7
  277. package/dist/ui/view-refresh-state.js.map +1 -1
  278. package/dist/ui/view-root.d.ts +26 -0
  279. package/dist/ui/view-root.d.ts.map +1 -0
  280. package/dist/ui/view-root.js +48 -0
  281. package/dist/ui/view-root.js.map +1 -0
  282. package/dist/ui/views.d.ts +17 -0
  283. package/dist/ui/views.d.ts.map +1 -0
  284. package/dist/ui/views.js +11 -0
  285. package/dist/ui/views.js.map +1 -0
  286. package/dist/ui/widget-shell.d.ts +1 -13
  287. package/dist/ui/widget-shell.d.ts.map +1 -1
  288. package/dist/ui/widget-shell.js +5 -30
  289. package/dist/ui/widget-shell.js.map +1 -1
  290. package/dist/view-bundle.d.ts +15 -0
  291. package/dist/view-bundle.d.ts.map +1 -0
  292. package/dist/view-bundle.js +23 -0
  293. package/dist/view-bundle.js.map +1 -0
  294. package/dist/view-results.d.ts +12 -23
  295. package/dist/view-results.d.ts.map +1 -1
  296. package/dist/view-results.js +14 -11
  297. package/dist/view-results.js.map +1 -1
  298. package/dist/widget-tool-bindings.d.ts +19 -48
  299. package/dist/widget-tool-bindings.d.ts.map +1 -1
  300. package/dist/widget-tool-bindings.js +21 -49
  301. package/dist/widget-tool-bindings.js.map +1 -1
  302. package/package.json +24 -36
  303. package/dist/adapt-data-widget.d.ts +0 -7
  304. package/dist/adapt-data-widget.d.ts.map +0 -1
  305. package/dist/adapt-data-widget.js +0 -7
  306. package/dist/adapt-data-widget.js.map +0 -1
  307. package/dist/bpmn-names.d.ts +0 -42
  308. package/dist/bpmn-names.d.ts.map +0 -1
  309. package/dist/bpmn-names.js.map +0 -1
  310. package/dist/bpmn-names.test.d.ts +0 -2
  311. package/dist/bpmn-names.test.d.ts.map +0 -1
  312. package/dist/bpmn-names.test.js +0 -143
  313. package/dist/bpmn-names.test.js.map +0 -1
  314. package/dist/build-data-feed-result.test.d.ts +0 -2
  315. package/dist/build-data-feed-result.test.d.ts.map +0 -1
  316. package/dist/build-data-feed-result.test.js +0 -28
  317. package/dist/build-data-feed-result.test.js.map +0 -1
  318. package/dist/build-single-widget-view.test.d.ts +0 -2
  319. package/dist/build-single-widget-view.test.d.ts.map +0 -1
  320. package/dist/build-single-widget-view.test.js +0 -136
  321. package/dist/build-single-widget-view.test.js.map +0 -1
  322. package/dist/builder-texts.d.ts +0 -27
  323. package/dist/builder-texts.d.ts.map +0 -1
  324. package/dist/builder-texts.js +0 -32
  325. package/dist/builder-texts.js.map +0 -1
  326. package/dist/builder-texts.test.d.ts +0 -2
  327. package/dist/builder-texts.test.d.ts.map +0 -1
  328. package/dist/builder-texts.test.js +0 -54
  329. package/dist/builder-texts.test.js.map +0 -1
  330. package/dist/catalogue-sync.d.ts +0 -18
  331. package/dist/catalogue-sync.d.ts.map +0 -1
  332. package/dist/catalogue-sync.js +0 -31
  333. package/dist/catalogue-sync.js.map +0 -1
  334. package/dist/catalogue-sync.test.d.ts +0 -2
  335. package/dist/catalogue-sync.test.d.ts.map +0 -1
  336. package/dist/catalogue-sync.test.js +0 -22
  337. package/dist/catalogue-sync.test.js.map +0 -1
  338. package/dist/composed-server.edge.test.d.ts +0 -2
  339. package/dist/composed-server.edge.test.d.ts.map +0 -1
  340. package/dist/composed-server.edge.test.js +0 -184
  341. package/dist/composed-server.edge.test.js.map +0 -1
  342. package/dist/composed-server.fonts.test.d.ts +0 -2
  343. package/dist/composed-server.fonts.test.d.ts.map +0 -1
  344. package/dist/composed-server.fonts.test.js +0 -186
  345. package/dist/composed-server.fonts.test.js.map +0 -1
  346. package/dist/composed-server.test.d.ts +0 -2
  347. package/dist/composed-server.test.d.ts.map +0 -1
  348. package/dist/composed-server.test.js +0 -332
  349. package/dist/composed-server.test.js.map +0 -1
  350. package/dist/composition.test.d.ts +0 -2
  351. package/dist/composition.test.d.ts.map +0 -1
  352. package/dist/composition.test.js +0 -275
  353. package/dist/composition.test.js.map +0 -1
  354. package/dist/dashboard-store-postgres.d.ts +0 -43
  355. package/dist/dashboard-store-postgres.d.ts.map +0 -1
  356. package/dist/dashboard-store-postgres.js +0 -225
  357. package/dist/dashboard-store-postgres.js.map +0 -1
  358. package/dist/dashboard-store-postgres.test.d.ts +0 -2
  359. package/dist/dashboard-store-postgres.test.d.ts.map +0 -1
  360. package/dist/dashboard-store-postgres.test.js +0 -272
  361. package/dist/dashboard-store-postgres.test.js.map +0 -1
  362. package/dist/font-assets.test.d.ts +0 -2
  363. package/dist/font-assets.test.d.ts.map +0 -1
  364. package/dist/font-assets.test.js +0 -123
  365. package/dist/font-assets.test.js.map +0 -1
  366. package/dist/health.test.d.ts +0 -2
  367. package/dist/health.test.d.ts.map +0 -1
  368. package/dist/health.test.js +0 -140
  369. package/dist/health.test.js.map +0 -1
  370. package/dist/host-boot.test.d.ts +0 -2
  371. package/dist/host-boot.test.d.ts.map +0 -1
  372. package/dist/host-boot.test.js +0 -59
  373. package/dist/host-boot.test.js.map +0 -1
  374. package/dist/http-edge.test.d.ts +0 -2
  375. package/dist/http-edge.test.d.ts.map +0 -1
  376. package/dist/http-edge.test.js +0 -255
  377. package/dist/http-edge.test.js.map +0 -1
  378. package/dist/metrics.test.d.ts +0 -2
  379. package/dist/metrics.test.d.ts.map +0 -1
  380. package/dist/metrics.test.js +0 -154
  381. package/dist/metrics.test.js.map +0 -1
  382. package/dist/node-listener.test.d.ts +0 -2
  383. package/dist/node-listener.test.d.ts.map +0 -1
  384. package/dist/node-listener.test.js +0 -331
  385. package/dist/node-listener.test.js.map +0 -1
  386. package/dist/oauth-env.test.d.ts +0 -2
  387. package/dist/oauth-env.test.d.ts.map +0 -1
  388. package/dist/oauth-env.test.js +0 -76
  389. package/dist/oauth-env.test.js.map +0 -1
  390. package/dist/postgres.d.ts +0 -59
  391. package/dist/postgres.d.ts.map +0 -1
  392. package/dist/postgres.js +0 -80
  393. package/dist/postgres.js.map +0 -1
  394. package/dist/profile-advisory.d.ts +0 -19
  395. package/dist/profile-advisory.d.ts.map +0 -1
  396. package/dist/profile-advisory.js +0 -48
  397. package/dist/profile-advisory.js.map +0 -1
  398. package/dist/profile-advisory.test.d.ts +0 -2
  399. package/dist/profile-advisory.test.d.ts.map +0 -1
  400. package/dist/profile-advisory.test.js +0 -53
  401. package/dist/profile-advisory.test.js.map +0 -1
  402. package/dist/profile-constants.d.ts +0 -37
  403. package/dist/profile-constants.d.ts.map +0 -1
  404. package/dist/profile-constants.js +0 -37
  405. package/dist/profile-constants.js.map +0 -1
  406. package/dist/profile-migrations.d.ts +0 -71
  407. package/dist/profile-migrations.d.ts.map +0 -1
  408. package/dist/profile-migrations.js +0 -88
  409. package/dist/profile-migrations.js.map +0 -1
  410. package/dist/profile-migrations.test.d.ts +0 -2
  411. package/dist/profile-migrations.test.d.ts.map +0 -1
  412. package/dist/profile-migrations.test.js +0 -200
  413. package/dist/profile-migrations.test.js.map +0 -1
  414. package/dist/profile-record.d.ts +0 -60
  415. package/dist/profile-record.d.ts.map +0 -1
  416. package/dist/profile-record.js +0 -78
  417. package/dist/profile-record.js.map +0 -1
  418. package/dist/profile-slice.d.ts +0 -53
  419. package/dist/profile-slice.d.ts.map +0 -1
  420. package/dist/profile-slice.js +0 -73
  421. package/dist/profile-slice.js.map +0 -1
  422. package/dist/profile-slice.test.d.ts +0 -2
  423. package/dist/profile-slice.test.d.ts.map +0 -1
  424. package/dist/profile-slice.test.js +0 -73
  425. package/dist/profile-slice.test.js.map +0 -1
  426. package/dist/profile-store-env.d.ts +0 -34
  427. package/dist/profile-store-env.d.ts.map +0 -1
  428. package/dist/profile-store-env.js +0 -44
  429. package/dist/profile-store-env.js.map +0 -1
  430. package/dist/profile-store-env.test.d.ts +0 -2
  431. package/dist/profile-store-env.test.d.ts.map +0 -1
  432. package/dist/profile-store-env.test.js +0 -69
  433. package/dist/profile-store-env.test.js.map +0 -1
  434. package/dist/profile-store-postgres.d.ts +0 -33
  435. package/dist/profile-store-postgres.d.ts.map +0 -1
  436. package/dist/profile-store-postgres.js +0 -87
  437. package/dist/profile-store-postgres.js.map +0 -1
  438. package/dist/profile-store-raw.test.d.ts +0 -2
  439. package/dist/profile-store-raw.test.d.ts.map +0 -1
  440. package/dist/profile-store-raw.test.js +0 -185
  441. package/dist/profile-store-raw.test.js.map +0 -1
  442. package/dist/profile-store.d.ts +0 -85
  443. package/dist/profile-store.d.ts.map +0 -1
  444. package/dist/profile-store.js +0 -182
  445. package/dist/profile-store.js.map +0 -1
  446. package/dist/profile-store.test.d.ts +0 -2
  447. package/dist/profile-store.test.d.ts.map +0 -1
  448. package/dist/profile-store.test.js +0 -353
  449. package/dist/profile-store.test.js.map +0 -1
  450. package/dist/profile.d.ts +0 -75
  451. package/dist/profile.d.ts.map +0 -1
  452. package/dist/profile.js +0 -85
  453. package/dist/profile.js.map +0 -1
  454. package/dist/profile.test.d.ts +0 -2
  455. package/dist/profile.test.d.ts.map +0 -1
  456. package/dist/profile.test.js +0 -71
  457. package/dist/profile.test.js.map +0 -1
  458. package/dist/request-context.test.d.ts +0 -2
  459. package/dist/request-context.test.d.ts.map +0 -1
  460. package/dist/request-context.test.js +0 -107
  461. package/dist/request-context.test.js.map +0 -1
  462. package/dist/served-fonts.d.ts +0 -38
  463. package/dist/served-fonts.d.ts.map +0 -1
  464. package/dist/served-fonts.js +0 -51
  465. package/dist/served-fonts.js.map +0 -1
  466. package/dist/served-fonts.test.d.ts +0 -2
  467. package/dist/served-fonts.test.d.ts.map +0 -1
  468. package/dist/served-fonts.test.js +0 -30
  469. package/dist/served-fonts.test.js.map +0 -1
  470. package/dist/server-locale.d.ts +0 -58
  471. package/dist/server-locale.d.ts.map +0 -1
  472. package/dist/server-locale.js +0 -64
  473. package/dist/server-locale.js.map +0 -1
  474. package/dist/server-locale.test.d.ts +0 -2
  475. package/dist/server-locale.test.d.ts.map +0 -1
  476. package/dist/server-locale.test.js +0 -90
  477. package/dist/server-locale.test.js.map +0 -1
  478. package/dist/shell-catalogue.d.ts +0 -12
  479. package/dist/shell-catalogue.d.ts.map +0 -1
  480. package/dist/shell-catalogue.js +0 -142
  481. package/dist/shell-catalogue.js.map +0 -1
  482. package/dist/shell-settings-contract.d.ts +0 -34
  483. package/dist/shell-settings-contract.d.ts.map +0 -1
  484. package/dist/shell-settings-contract.js +0 -21
  485. package/dist/shell-settings-contract.js.map +0 -1
  486. package/dist/shell-settings.d.ts +0 -24
  487. package/dist/shell-settings.d.ts.map +0 -1
  488. package/dist/shell-settings.js +0 -148
  489. package/dist/shell-settings.js.map +0 -1
  490. package/dist/shell-settings.test.d.ts +0 -2
  491. package/dist/shell-settings.test.d.ts.map +0 -1
  492. package/dist/shell-settings.test.js +0 -115
  493. package/dist/shell-settings.test.js.map +0 -1
  494. package/dist/testing/catalog-text.d.ts +0 -53
  495. package/dist/testing/catalog-text.d.ts.map +0 -1
  496. package/dist/testing/catalog-text.js +0 -146
  497. package/dist/testing/catalog-text.js.map +0 -1
  498. package/dist/testing/catalog-text.test.d.ts +0 -2
  499. package/dist/testing/catalog-text.test.d.ts.map +0 -1
  500. package/dist/testing/catalog-text.test.js +0 -137
  501. package/dist/testing/catalog-text.test.js.map +0 -1
  502. package/dist/testing/colors.d.ts +0 -34
  503. package/dist/testing/colors.d.ts.map +0 -1
  504. package/dist/testing/colors.js +0 -124
  505. package/dist/testing/colors.js.map +0 -1
  506. package/dist/testing/colors.test.d.ts +0 -2
  507. package/dist/testing/colors.test.d.ts.map +0 -1
  508. package/dist/testing/colors.test.js +0 -166
  509. package/dist/testing/colors.test.js.map +0 -1
  510. package/dist/testing/contrast.d.ts +0 -77
  511. package/dist/testing/contrast.d.ts.map +0 -1
  512. package/dist/testing/contrast.js +0 -382
  513. package/dist/testing/contrast.js.map +0 -1
  514. package/dist/testing/contrast.test.d.ts +0 -2
  515. package/dist/testing/contrast.test.d.ts.map +0 -1
  516. package/dist/testing/contrast.test.js +0 -230
  517. package/dist/testing/contrast.test.js.map +0 -1
  518. package/dist/testing/display-texts.d.ts +0 -23
  519. package/dist/testing/display-texts.d.ts.map +0 -1
  520. package/dist/testing/display-texts.js +0 -88
  521. package/dist/testing/display-texts.js.map +0 -1
  522. package/dist/testing/display-texts.test.d.ts +0 -2
  523. package/dist/testing/display-texts.test.d.ts.map +0 -1
  524. package/dist/testing/display-texts.test.js +0 -169
  525. package/dist/testing/display-texts.test.js.map +0 -1
  526. package/dist/testing/glossary.test.d.ts +0 -2
  527. package/dist/testing/glossary.test.d.ts.map +0 -1
  528. package/dist/testing/glossary.test.js +0 -78
  529. package/dist/testing/glossary.test.js.map +0 -1
  530. package/dist/testing/glyphs.d.ts +0 -27
  531. package/dist/testing/glyphs.d.ts.map +0 -1
  532. package/dist/testing/glyphs.js +0 -130
  533. package/dist/testing/glyphs.js.map +0 -1
  534. package/dist/testing/glyphs.test.d.ts +0 -2
  535. package/dist/testing/glyphs.test.d.ts.map +0 -1
  536. package/dist/testing/glyphs.test.js +0 -146
  537. package/dist/testing/glyphs.test.js.map +0 -1
  538. package/dist/testing/icon-sizes.d.ts +0 -22
  539. package/dist/testing/icon-sizes.d.ts.map +0 -1
  540. package/dist/testing/icon-sizes.js +0 -39
  541. package/dist/testing/icon-sizes.js.map +0 -1
  542. package/dist/testing/icon-sizes.test.d.ts +0 -2
  543. package/dist/testing/icon-sizes.test.d.ts.map +0 -1
  544. package/dist/testing/icon-sizes.test.js +0 -36
  545. package/dist/testing/icon-sizes.test.js.map +0 -1
  546. package/dist/testing/source-scan.d.ts +0 -16
  547. package/dist/testing/source-scan.d.ts.map +0 -1
  548. package/dist/testing/source-scan.js +0 -57
  549. package/dist/testing/source-scan.js.map +0 -1
  550. package/dist/testing/tone-pairs.d.ts +0 -20
  551. package/dist/testing/tone-pairs.d.ts.map +0 -1
  552. package/dist/testing/tone-pairs.js +0 -154
  553. package/dist/testing/tone-pairs.js.map +0 -1
  554. package/dist/testing/type-scale.d.ts +0 -40
  555. package/dist/testing/type-scale.d.ts.map +0 -1
  556. package/dist/testing/type-scale.js +0 -55
  557. package/dist/testing/type-scale.js.map +0 -1
  558. package/dist/testing/type-scale.test.d.ts +0 -2
  559. package/dist/testing/type-scale.test.d.ts.map +0 -1
  560. package/dist/testing/type-scale.test.js +0 -61
  561. package/dist/testing/type-scale.test.js.map +0 -1
  562. package/dist/tool-schema-trim.test.d.ts +0 -2
  563. package/dist/tool-schema-trim.test.d.ts.map +0 -1
  564. package/dist/tool-schema-trim.test.js +0 -53
  565. package/dist/tool-schema-trim.test.js.map +0 -1
  566. package/dist/toolsets.test.d.ts +0 -2
  567. package/dist/toolsets.test.d.ts.map +0 -1
  568. package/dist/toolsets.test.js +0 -86
  569. package/dist/toolsets.test.js.map +0 -1
  570. package/dist/ui/action-feedback.test.d.ts +0 -2
  571. package/dist/ui/action-feedback.test.d.ts.map +0 -1
  572. package/dist/ui/action-feedback.test.js +0 -77
  573. package/dist/ui/action-feedback.test.js.map +0 -1
  574. package/dist/ui/app-shell-providers.d.ts +0 -18
  575. package/dist/ui/app-shell-providers.d.ts.map +0 -1
  576. package/dist/ui/app-shell-providers.js +0 -19
  577. package/dist/ui/app-shell-providers.js.map +0 -1
  578. package/dist/ui/app-shell-providers.test.d.ts +0 -2
  579. package/dist/ui/app-shell-providers.test.d.ts.map +0 -1
  580. package/dist/ui/app-shell-providers.test.js +0 -249
  581. package/dist/ui/app-shell-providers.test.js.map +0 -1
  582. package/dist/ui/ask-ai-button.test.d.ts +0 -2
  583. package/dist/ui/ask-ai-button.test.d.ts.map +0 -1
  584. package/dist/ui/ask-ai-button.test.js +0 -103
  585. package/dist/ui/ask-ai-button.test.js.map +0 -1
  586. package/dist/ui/ask-ai-prompt.test.d.ts +0 -2
  587. package/dist/ui/ask-ai-prompt.test.d.ts.map +0 -1
  588. package/dist/ui/ask-ai-prompt.test.js +0 -240
  589. package/dist/ui/ask-ai-prompt.test.js.map +0 -1
  590. package/dist/ui/bpmn-heatmap/heat-ramp.test.d.ts +0 -2
  591. package/dist/ui/bpmn-heatmap/heat-ramp.test.d.ts.map +0 -1
  592. package/dist/ui/bpmn-heatmap/heat-ramp.test.js +0 -174
  593. package/dist/ui/bpmn-heatmap/heat-ramp.test.js.map +0 -1
  594. package/dist/ui/bpmn-heatmap/heat-utils.d.ts +0 -119
  595. package/dist/ui/bpmn-heatmap/heat-utils.d.ts.map +0 -1
  596. package/dist/ui/bpmn-heatmap/heat-utils.js +0 -231
  597. package/dist/ui/bpmn-heatmap/heat-utils.js.map +0 -1
  598. package/dist/ui/bpmn-heatmap/heat-utils.test.d.ts +0 -2
  599. package/dist/ui/bpmn-heatmap/heat-utils.test.d.ts.map +0 -1
  600. package/dist/ui/bpmn-heatmap/heat-utils.test.js +0 -59
  601. package/dist/ui/bpmn-heatmap/heat-utils.test.js.map +0 -1
  602. package/dist/ui/bpmn-heatmap-labels.d.ts +0 -46
  603. package/dist/ui/bpmn-heatmap-labels.d.ts.map +0 -1
  604. package/dist/ui/bpmn-heatmap-labels.js +0 -16
  605. package/dist/ui/bpmn-heatmap-labels.js.map +0 -1
  606. package/dist/ui/bpmn-heatmap-widget.d.ts +0 -38
  607. package/dist/ui/bpmn-heatmap-widget.d.ts.map +0 -1
  608. package/dist/ui/bpmn-heatmap-widget.js +0 -65
  609. package/dist/ui/bpmn-heatmap-widget.js.map +0 -1
  610. package/dist/ui/bpmn-heatmap-widget.test.d.ts +0 -2
  611. package/dist/ui/bpmn-heatmap-widget.test.d.ts.map +0 -1
  612. package/dist/ui/bpmn-heatmap-widget.test.js +0 -173
  613. package/dist/ui/bpmn-heatmap-widget.test.js.map +0 -1
  614. package/dist/ui/bpmn-heatmap.d.ts +0 -61
  615. package/dist/ui/bpmn-heatmap.d.ts.map +0 -1
  616. package/dist/ui/bpmn-heatmap.js +0 -119
  617. package/dist/ui/bpmn-heatmap.js.map +0 -1
  618. package/dist/ui/bpmn-tokens.test.d.ts +0 -2
  619. package/dist/ui/bpmn-tokens.test.d.ts.map +0 -1
  620. package/dist/ui/bpmn-tokens.test.js +0 -98
  621. package/dist/ui/bpmn-tokens.test.js.map +0 -1
  622. package/dist/ui/brand-gates.test.d.ts +0 -2
  623. package/dist/ui/brand-gates.test.d.ts.map +0 -1
  624. package/dist/ui/brand-gates.test.js +0 -131
  625. package/dist/ui/brand-gates.test.js.map +0 -1
  626. package/dist/ui/brand-mark.d.ts +0 -37
  627. package/dist/ui/brand-mark.d.ts.map +0 -1
  628. package/dist/ui/brand-mark.js +0 -33
  629. package/dist/ui/brand-mark.js.map +0 -1
  630. package/dist/ui/brand-mark.test.d.ts +0 -2
  631. package/dist/ui/brand-mark.test.d.ts.map +0 -1
  632. package/dist/ui/brand-mark.test.js +0 -111
  633. package/dist/ui/brand-mark.test.js.map +0 -1
  634. package/dist/ui/confirm-dialog.test.d.ts +0 -2
  635. package/dist/ui/confirm-dialog.test.d.ts.map +0 -1
  636. package/dist/ui/confirm-dialog.test.js +0 -115
  637. package/dist/ui/confirm-dialog.test.js.map +0 -1
  638. package/dist/ui/count-tone.test.d.ts +0 -2
  639. package/dist/ui/count-tone.test.d.ts.map +0 -1
  640. package/dist/ui/count-tone.test.js +0 -27
  641. package/dist/ui/count-tone.test.js.map +0 -1
  642. package/dist/ui/create-use-t.d.ts +0 -15
  643. package/dist/ui/create-use-t.d.ts.map +0 -1
  644. package/dist/ui/create-use-t.js +0 -17
  645. package/dist/ui/create-use-t.js.map +0 -1
  646. package/dist/ui/declare-served-fonts.test.d.ts +0 -2
  647. package/dist/ui/declare-served-fonts.test.d.ts.map +0 -1
  648. package/dist/ui/declare-served-fonts.test.js +0 -44
  649. package/dist/ui/declare-served-fonts.test.js.map +0 -1
  650. package/dist/ui/describe-error.test.d.ts +0 -2
  651. package/dist/ui/describe-error.test.d.ts.map +0 -1
  652. package/dist/ui/describe-error.test.js +0 -274
  653. package/dist/ui/describe-error.test.js.map +0 -1
  654. package/dist/ui/format.d.ts +0 -81
  655. package/dist/ui/format.d.ts.map +0 -1
  656. package/dist/ui/format.js +0 -189
  657. package/dist/ui/format.js.map +0 -1
  658. package/dist/ui/format.test.d.ts +0 -2
  659. package/dist/ui/format.test.d.ts.map +0 -1
  660. package/dist/ui/format.test.js +0 -181
  661. package/dist/ui/format.test.js.map +0 -1
  662. package/dist/ui/generic-widgets.d.ts +0 -15
  663. package/dist/ui/generic-widgets.d.ts.map +0 -1
  664. package/dist/ui/generic-widgets.js +0 -122
  665. package/dist/ui/generic-widgets.js.map +0 -1
  666. package/dist/ui/generic-widgets.test.d.ts +0 -2
  667. package/dist/ui/generic-widgets.test.d.ts.map +0 -1
  668. package/dist/ui/generic-widgets.test.js +0 -139
  669. package/dist/ui/generic-widgets.test.js.map +0 -1
  670. package/dist/ui/hand-off-button.test.d.ts +0 -2
  671. package/dist/ui/hand-off-button.test.d.ts.map +0 -1
  672. package/dist/ui/hand-off-button.test.js +0 -78
  673. package/dist/ui/hand-off-button.test.js.map +0 -1
  674. package/dist/ui/host-context.test.d.ts +0 -2
  675. package/dist/ui/host-context.test.d.ts.map +0 -1
  676. package/dist/ui/host-context.test.js +0 -160
  677. package/dist/ui/host-context.test.js.map +0 -1
  678. package/dist/ui/host-document.test.d.ts +0 -2
  679. package/dist/ui/host-document.test.d.ts.map +0 -1
  680. package/dist/ui/host-document.test.js +0 -112
  681. package/dist/ui/host-document.test.js.map +0 -1
  682. package/dist/ui/humanize-key.d.ts +0 -11
  683. package/dist/ui/humanize-key.d.ts.map +0 -1
  684. package/dist/ui/humanize-key.js +0 -26
  685. package/dist/ui/humanize-key.js.map +0 -1
  686. package/dist/ui/humanize-key.test.d.ts +0 -2
  687. package/dist/ui/humanize-key.test.d.ts.map +0 -1
  688. package/dist/ui/humanize-key.test.js +0 -42
  689. package/dist/ui/humanize-key.test.js.map +0 -1
  690. package/dist/ui/icon.d.ts +0 -37
  691. package/dist/ui/icon.d.ts.map +0 -1
  692. package/dist/ui/icon.js +0 -32
  693. package/dist/ui/icon.js.map +0 -1
  694. package/dist/ui/id-breaks.d.ts +0 -17
  695. package/dist/ui/id-breaks.d.ts.map +0 -1
  696. package/dist/ui/id-breaks.js +0 -36
  697. package/dist/ui/id-breaks.js.map +0 -1
  698. package/dist/ui/id-breaks.test.d.ts +0 -2
  699. package/dist/ui/id-breaks.test.d.ts.map +0 -1
  700. package/dist/ui/id-breaks.test.js +0 -37
  701. package/dist/ui/id-breaks.test.js.map +0 -1
  702. package/dist/ui/id-text.test.d.ts +0 -2
  703. package/dist/ui/id-text.test.d.ts.map +0 -1
  704. package/dist/ui/id-text.test.js +0 -122
  705. package/dist/ui/id-text.test.js.map +0 -1
  706. package/dist/ui/index.test.d.ts +0 -2
  707. package/dist/ui/index.test.d.ts.map +0 -1
  708. package/dist/ui/index.test.js +0 -34
  709. package/dist/ui/index.test.js.map +0 -1
  710. package/dist/ui/inline-fit-solve.test.d.ts +0 -2
  711. package/dist/ui/inline-fit-solve.test.d.ts.map +0 -1
  712. package/dist/ui/inline-fit-solve.test.js +0 -108
  713. package/dist/ui/inline-fit-solve.test.js.map +0 -1
  714. package/dist/ui/inline-fit-time.test.d.ts +0 -2
  715. package/dist/ui/inline-fit-time.test.d.ts.map +0 -1
  716. package/dist/ui/inline-fit-time.test.js +0 -110
  717. package/dist/ui/inline-fit-time.test.js.map +0 -1
  718. package/dist/ui/inline-fit.test-support.d.ts +0 -26
  719. package/dist/ui/inline-fit.test-support.d.ts.map +0 -1
  720. package/dist/ui/inline-fit.test-support.js +0 -34
  721. package/dist/ui/inline-fit.test-support.js.map +0 -1
  722. package/dist/ui/inline-fit.test.d.ts +0 -2
  723. package/dist/ui/inline-fit.test.d.ts.map +0 -1
  724. package/dist/ui/inline-fit.test.js +0 -159
  725. package/dist/ui/inline-fit.test.js.map +0 -1
  726. package/dist/ui/kit-labels.test.d.ts +0 -2
  727. package/dist/ui/kit-labels.test.d.ts.map +0 -1
  728. package/dist/ui/kit-labels.test.js +0 -98
  729. package/dist/ui/kit-labels.test.js.map +0 -1
  730. package/dist/ui/kit-type-roles.test.d.ts +0 -2
  731. package/dist/ui/kit-type-roles.test.d.ts.map +0 -1
  732. package/dist/ui/kit-type-roles.test.js +0 -122
  733. package/dist/ui/kit-type-roles.test.js.map +0 -1
  734. package/dist/ui/komet-svg.d.ts +0 -15
  735. package/dist/ui/komet-svg.d.ts.map +0 -1
  736. package/dist/ui/komet-svg.js +0 -21
  737. package/dist/ui/komet-svg.js.map +0 -1
  738. package/dist/ui/list-table.test.d.ts +0 -2
  739. package/dist/ui/list-table.test.d.ts.map +0 -1
  740. package/dist/ui/list-table.test.js +0 -169
  741. package/dist/ui/list-table.test.js.map +0 -1
  742. package/dist/ui/localized-app-view.d.ts +0 -40
  743. package/dist/ui/localized-app-view.d.ts.map +0 -1
  744. package/dist/ui/localized-app-view.js +0 -71
  745. package/dist/ui/localized-app-view.js.map +0 -1
  746. package/dist/ui/log-text.d.ts +0 -24
  747. package/dist/ui/log-text.d.ts.map +0 -1
  748. package/dist/ui/log-text.js +0 -31
  749. package/dist/ui/log-text.js.map +0 -1
  750. package/dist/ui/menu-item.d.ts +0 -12
  751. package/dist/ui/menu-item.d.ts.map +0 -1
  752. package/dist/ui/menu-item.js +0 -13
  753. package/dist/ui/menu-item.js.map +0 -1
  754. package/dist/ui/named-id.d.ts +0 -23
  755. package/dist/ui/named-id.d.ts.map +0 -1
  756. package/dist/ui/named-id.js +0 -21
  757. package/dist/ui/named-id.js.map +0 -1
  758. package/dist/ui/named-id.test.d.ts +0 -2
  759. package/dist/ui/named-id.test.d.ts.map +0 -1
  760. package/dist/ui/named-id.test.js +0 -57
  761. package/dist/ui/named-id.test.js.map +0 -1
  762. package/dist/ui/native-select.d.ts +0 -17
  763. package/dist/ui/native-select.d.ts.map +0 -1
  764. package/dist/ui/native-select.js +0 -20
  765. package/dist/ui/native-select.js.map +0 -1
  766. package/dist/ui/navigation-focus.d.ts +0 -20
  767. package/dist/ui/navigation-focus.d.ts.map +0 -1
  768. package/dist/ui/navigation-focus.js +0 -25
  769. package/dist/ui/navigation-focus.js.map +0 -1
  770. package/dist/ui/navigation-focus.test.d.ts +0 -2
  771. package/dist/ui/navigation-focus.test.d.ts.map +0 -1
  772. package/dist/ui/navigation-focus.test.js +0 -28
  773. package/dist/ui/navigation-focus.test.js.map +0 -1
  774. package/dist/ui/paged-list-footer.test.d.ts +0 -2
  775. package/dist/ui/paged-list-footer.test.d.ts.map +0 -1
  776. package/dist/ui/paged-list-footer.test.js +0 -128
  777. package/dist/ui/paged-list-footer.test.js.map +0 -1
  778. package/dist/ui/parse-tool-result.test.d.ts +0 -2
  779. package/dist/ui/parse-tool-result.test.d.ts.map +0 -1
  780. package/dist/ui/parse-tool-result.test.js +0 -88
  781. package/dist/ui/parse-tool-result.test.js.map +0 -1
  782. package/dist/ui/profile-gate.d.ts +0 -37
  783. package/dist/ui/profile-gate.d.ts.map +0 -1
  784. package/dist/ui/profile-gate.js +0 -126
  785. package/dist/ui/profile-gate.js.map +0 -1
  786. package/dist/ui/profile-gate.test.d.ts +0 -2
  787. package/dist/ui/profile-gate.test.d.ts.map +0 -1
  788. package/dist/ui/profile-gate.test.js +0 -246
  789. package/dist/ui/profile-gate.test.js.map +0 -1
  790. package/dist/ui/query-fallback.test.d.ts +0 -2
  791. package/dist/ui/query-fallback.test.d.ts.map +0 -1
  792. package/dist/ui/query-fallback.test.js +0 -49
  793. package/dist/ui/query-fallback.test.js.map +0 -1
  794. package/dist/ui/row-card.d.ts +0 -13
  795. package/dist/ui/row-card.d.ts.map +0 -1
  796. package/dist/ui/row-card.js +0 -11
  797. package/dist/ui/row-card.js.map +0 -1
  798. package/dist/ui/section.d.ts +0 -18
  799. package/dist/ui/section.d.ts.map +0 -1
  800. package/dist/ui/section.js +0 -14
  801. package/dist/ui/section.js.map +0 -1
  802. package/dist/ui/segmented-control.d.ts +0 -25
  803. package/dist/ui/segmented-control.d.ts.map +0 -1
  804. package/dist/ui/segmented-control.js +0 -22
  805. package/dist/ui/segmented-control.js.map +0 -1
  806. package/dist/ui/settings-labels.d.ts +0 -33
  807. package/dist/ui/settings-labels.d.ts.map +0 -1
  808. package/dist/ui/settings-labels.js +0 -50
  809. package/dist/ui/settings-labels.js.map +0 -1
  810. package/dist/ui/settings-layout.d.ts +0 -29
  811. package/dist/ui/settings-layout.d.ts.map +0 -1
  812. package/dist/ui/settings-layout.js +0 -49
  813. package/dist/ui/settings-layout.js.map +0 -1
  814. package/dist/ui/settings-layout.test.d.ts +0 -2
  815. package/dist/ui/settings-layout.test.d.ts.map +0 -1
  816. package/dist/ui/settings-layout.test.js +0 -73
  817. package/dist/ui/settings-layout.test.js.map +0 -1
  818. package/dist/ui/settings.d.ts +0 -47
  819. package/dist/ui/settings.d.ts.map +0 -1
  820. package/dist/ui/settings.js +0 -48
  821. package/dist/ui/settings.js.map +0 -1
  822. package/dist/ui/settings.test.d.ts +0 -2
  823. package/dist/ui/settings.test.d.ts.map +0 -1
  824. package/dist/ui/settings.test.js +0 -38
  825. package/dist/ui/settings.test.js.map +0 -1
  826. package/dist/ui/shell-settings.d.ts +0 -31
  827. package/dist/ui/shell-settings.d.ts.map +0 -1
  828. package/dist/ui/shell-settings.js +0 -97
  829. package/dist/ui/shell-settings.js.map +0 -1
  830. package/dist/ui/shell-settings.test.d.ts +0 -2
  831. package/dist/ui/shell-settings.test.d.ts.map +0 -1
  832. package/dist/ui/shell-settings.test.js +0 -108
  833. package/dist/ui/shell-settings.test.js.map +0 -1
  834. package/dist/ui/shell-widgets.d.ts +0 -14
  835. package/dist/ui/shell-widgets.d.ts.map +0 -1
  836. package/dist/ui/shell-widgets.js +0 -18
  837. package/dist/ui/shell-widgets.js.map +0 -1
  838. package/dist/ui/table.d.ts +0 -61
  839. package/dist/ui/table.d.ts.map +0 -1
  840. package/dist/ui/table.js +0 -43
  841. package/dist/ui/table.js.map +0 -1
  842. package/dist/ui/tone-components.test.d.ts +0 -2
  843. package/dist/ui/tone-components.test.d.ts.map +0 -1
  844. package/dist/ui/tone-components.test.js +0 -145
  845. package/dist/ui/tone-components.test.js.map +0 -1
  846. package/dist/ui/tone-contrast.test.d.ts +0 -2
  847. package/dist/ui/tone-contrast.test.d.ts.map +0 -1
  848. package/dist/ui/tone-contrast.test.js +0 -66
  849. package/dist/ui/tone-contrast.test.js.map +0 -1
  850. package/dist/ui/toolkit-overlap.test.d.ts +0 -2
  851. package/dist/ui/toolkit-overlap.test.d.ts.map +0 -1
  852. package/dist/ui/toolkit-overlap.test.js +0 -86
  853. package/dist/ui/toolkit-overlap.test.js.map +0 -1
  854. package/dist/ui/use-apply-theme.test.d.ts +0 -2
  855. package/dist/ui/use-apply-theme.test.d.ts.map +0 -1
  856. package/dist/ui/use-apply-theme.test.js +0 -102
  857. package/dist/ui/use-apply-theme.test.js.map +0 -1
  858. package/dist/ui/use-bpmn-viewer.test.d.ts +0 -2
  859. package/dist/ui/use-bpmn-viewer.test.d.ts.map +0 -1
  860. package/dist/ui/use-bpmn-viewer.test.js +0 -239
  861. package/dist/ui/use-bpmn-viewer.test.js.map +0 -1
  862. package/dist/ui/use-detail-view.test.d.ts +0 -2
  863. package/dist/ui/use-detail-view.test.d.ts.map +0 -1
  864. package/dist/ui/use-detail-view.test.js +0 -178
  865. package/dist/ui/use-detail-view.test.js.map +0 -1
  866. package/dist/ui/use-paged-list-view.test.d.ts +0 -2
  867. package/dist/ui/use-paged-list-view.test.d.ts.map +0 -1
  868. package/dist/ui/use-paged-list-view.test.js +0 -136
  869. package/dist/ui/use-paged-list-view.test.js.map +0 -1
  870. package/dist/ui/use-paged-view-data.seeded.test.d.ts +0 -2
  871. package/dist/ui/use-paged-view-data.seeded.test.d.ts.map +0 -1
  872. package/dist/ui/use-paged-view-data.seeded.test.js +0 -144
  873. package/dist/ui/use-paged-view-data.seeded.test.js.map +0 -1
  874. package/dist/ui/use-paged-view-data.test.d.ts +0 -2
  875. package/dist/ui/use-paged-view-data.test.d.ts.map +0 -1
  876. package/dist/ui/use-paged-view-data.test.js +0 -330
  877. package/dist/ui/use-paged-view-data.test.js.map +0 -1
  878. package/dist/ui/use-reset-on-change.d.ts +0 -22
  879. package/dist/ui/use-reset-on-change.d.ts.map +0 -1
  880. package/dist/ui/use-reset-on-change.js +0 -29
  881. package/dist/ui/use-reset-on-change.js.map +0 -1
  882. package/dist/ui/use-reset-on-change.test.d.ts +0 -2
  883. package/dist/ui/use-reset-on-change.test.d.ts.map +0 -1
  884. package/dist/ui/use-reset-on-change.test.js +0 -61
  885. package/dist/ui/use-reset-on-change.test.js.map +0 -1
  886. package/dist/ui/use-view-data.seeded.test.d.ts +0 -2
  887. package/dist/ui/use-view-data.seeded.test.d.ts.map +0 -1
  888. package/dist/ui/use-view-data.seeded.test.js +0 -168
  889. package/dist/ui/use-view-data.seeded.test.js.map +0 -1
  890. package/dist/ui/view-data-state.test.d.ts +0 -2
  891. package/dist/ui/view-data-state.test.d.ts.map +0 -1
  892. package/dist/ui/view-data-state.test.js +0 -62
  893. package/dist/ui/view-data-state.test.js.map +0 -1
  894. package/dist/ui/view-meta.test.d.ts +0 -2
  895. package/dist/ui/view-meta.test.d.ts.map +0 -1
  896. package/dist/ui/view-meta.test.js +0 -92
  897. package/dist/ui/view-meta.test.js.map +0 -1
  898. package/dist/ui/widget-shell.test.d.ts +0 -2
  899. package/dist/ui/widget-shell.test.d.ts.map +0 -1
  900. package/dist/ui/widget-shell.test.js +0 -41
  901. package/dist/ui/widget-shell.test.js.map +0 -1
  902. package/dist/widget-meta-defaults.d.ts +0 -48
  903. package/dist/widget-meta-defaults.d.ts.map +0 -1
  904. package/dist/widget-meta-defaults.js +0 -80
  905. package/dist/widget-meta-defaults.js.map +0 -1
  906. package/dist/widget-meta-defaults.test.d.ts +0 -2
  907. package/dist/widget-meta-defaults.test.d.ts.map +0 -1
  908. package/dist/widget-meta-defaults.test.js +0 -196
  909. package/dist/widget-meta-defaults.test.js.map +0 -1
  910. package/dist/widget-tool-bindings.test.d.ts +0 -2
  911. package/dist/widget-tool-bindings.test.d.ts.map +0 -1
  912. package/dist/widget-tool-bindings.test.js +0 -83
  913. package/dist/widget-tool-bindings.test.js.map +0 -1
  914. package/dist/with-tool-errors.test.d.ts +0 -2
  915. package/dist/with-tool-errors.test.d.ts.map +0 -1
  916. package/dist/with-tool-errors.test.js +0 -38
  917. package/dist/with-tool-errors.test.js.map +0 -1
@@ -1,16 +1,7 @@
1
+ import { type LucideIcon } from "@miragon/pulse-ui";
1
2
  import { type AskAiVariant } from "./ask-ai-button.js";
2
3
  import type { AskAiPrompt } from "./ask-ai-prompt.js";
3
- import type { LucideIcon } from "./icon.js";
4
- /**
5
- * The product's ONE hand-off vocabulary: what a hand-off asks the chat to
6
- * do, one entry per function, each with the Lucide icon of that function.
7
- * Its label ("Ursache im Chat klären" / "Find cause in chat") is the kit's
8
- * `handOff` entry, so the same function reads and looks the same in every
9
- * module, and no icon stands for two functions (CI U4: never a sparkle,
10
- * never a generic "AI" symbol). A connector widget renders hand-offs only
11
- * through {@link HandOffButton} (an ESLint gate bans `AskAiButton` there); a
12
- * new function goes here, with its label in both languages.
13
- */
4
+ /** One icon per function, no icon for two (CI U4: never a sparkle); labels are the kit's `handOff`. */
14
5
  export declare const HAND_OFF_ACTIONS: {
15
6
  readonly assess: LucideIcon;
16
7
  readonly findCause: LucideIcon;
@@ -29,13 +20,7 @@ export declare const HAND_OFF_ACTIONS: {
29
20
  readonly compareEngines: LucideIcon;
30
21
  };
31
22
  export type HandOffAction = keyof typeof HAND_OFF_ACTIONS;
32
- /**
33
- * A chat hand-off: the kit's {@link AskAiButton} (a secondary outline, so the
34
- * deterministic next step stays the view's primary action) with the icon and
35
- * verb of `action`. `icon` variant rows keep the label as the accessible name
36
- * and tooltip; `title` overrides both when a row needs its subject in them
37
- * ("Compare “order” across its engines in chat").
38
- */
23
+ /** `title` overrides name and tooltip when a row needs its subject in them. */
39
24
  export declare function HandOffButton({ action, prompt, variant, title, }: {
40
25
  action: HandOffAction;
41
26
  prompt: AskAiPrompt | null;
@@ -1 +1 @@
1
- {"version":3,"file":"hand-off-button.d.ts","sourceRoot":"","sources":["../../src/ui/hand-off-button.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAe,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAG3C;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;CAgBkB,CAAA;AAE/C,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,gBAAgB,CAAA;AAEzD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,MAAM,EACN,OAAkB,EAClB,KAAK,GACN,EAAE;IACD,MAAM,EAAE,aAAa,CAAA;IACrB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAA;IAC1B,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,+BAWA"}
1
+ {"version":3,"file":"hand-off-button.d.ts","sourceRoot":"","sources":["../../src/ui/hand-off-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAkB9D,OAAO,EAAe,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAGrD,uGAAuG;AACvG,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;CAgBkB,CAAA;AAE/C,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,gBAAgB,CAAA;AAEzD,+EAA+E;AAC/E,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,MAAM,EACN,OAAkB,EAClB,KAAK,GACN,EAAE;IACD,MAAM,EAAE,aAAa,CAAA;IACrB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAA;IAC1B,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,+BAWA"}
@@ -1,18 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useLocale } from "@miragon/mcp-toolkit-ui";
2
+ import { useLocale } from "@miragon/pulse-ui";
3
3
  import { ArrowLeftRight, Braces, Bug, ClipboardList, FileSearch, Gauge, Hourglass, ListChecks, ListOrdered, Route, ScanSearch, Stethoscope, Timer, Workflow, Wrench, } from "lucide-react";
4
4
  import { AskAiButton } from "./ask-ai-button.js";
5
5
  import { kitLabels } from "./kit-labels.js";
6
- /**
7
- * The product's ONE hand-off vocabulary: what a hand-off asks the chat to
8
- * do, one entry per function, each with the Lucide icon of that function.
9
- * Its label ("Ursache im Chat klären" / "Find cause in chat") is the kit's
10
- * `handOff` entry, so the same function reads and looks the same in every
11
- * module, and no icon stands for two functions (CI U4: never a sparkle,
12
- * never a generic "AI" symbol). A connector widget renders hand-offs only
13
- * through {@link HandOffButton} (an ESLint gate bans `AskAiButton` there); a
14
- * new function goes here, with its label in both languages.
15
- */
6
+ /** One icon per function, no icon for two (CI U4: never a sparkle); labels are the kit's `handOff`. */
16
7
  export const HAND_OFF_ACTIONS = {
17
8
  assess: ListChecks,
18
9
  findCause: ScanSearch,
@@ -30,13 +21,7 @@ export const HAND_OFF_ACTIONS = {
30
21
  prioritize: ListOrdered,
31
22
  compareEngines: ArrowLeftRight,
32
23
  };
33
- /**
34
- * A chat hand-off: the kit's {@link AskAiButton} (a secondary outline, so the
35
- * deterministic next step stays the view's primary action) with the icon and
36
- * verb of `action`. `icon` variant rows keep the label as the accessible name
37
- * and tooltip; `title` overrides both when a row needs its subject in them
38
- * ("Compare “order” across its engines in chat").
39
- */
24
+ /** `title` overrides name and tooltip when a row needs its subject in them. */
40
25
  export function HandOffButton({ action, prompt, variant = "subtle", title, }) {
41
26
  const locale = useLocale();
42
27
  return (_jsx(AskAiButton, { icon: HAND_OFF_ACTIONS[action], label: kitLabels(locale).handOff[action], prompt: prompt, variant: variant, title: title }));
@@ -1 +1 @@
1
- {"version":3,"file":"hand-off-button.js","sourceRoot":"","sources":["../../src/ui/hand-off-button.tsx"],"names":[],"mapp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C"}
@@ -1,66 +1,29 @@
1
- import { type Locale } from "../profile-constants.js";
2
- /**
3
- * The shell's host-context resolution, pure: which theme and which locale a
4
- * view renders in, given what the host reported (SEP-1865 `hostContext`), the
5
- * OS and — for the language only — the user's explicit profile choice:
6
- *
7
- * theme: host context > OS preference (no in-app theme switch)
8
- * language: explicit profile choice > host context > English
9
- *
10
- * `system` (the profile's language default) is NOT an explicit choice — it
11
- * defers to the host. The DOM side lives in `applyDocumentTheme` (below) and
12
- * the hooks that feed it (`useApplyTheme`, `ProfileGate`).
13
- */
14
1
  export type EffectiveTheme = "light" | "dark";
15
- /** A host-reported theme, or `undefined` when the host reported none (or garbage). */
16
2
  export declare function hostThemeOf(value: unknown): EffectiveTheme | undefined;
17
- /**
18
- * The host's theme, else the OS `prefers-color-scheme`. Widgets follow the
19
- * host; there is no in-app theme switch (#322 owner decision).
20
- */
3
+ /** No in-app theme switch (#322 owner decision). */
21
4
  export declare function resolveTheme(hostTheme: EffectiveTheme | undefined, osPrefersDark: boolean): EffectiveTheme;
5
+ /** The languages the widgets ship catalogs for. */
6
+ declare const LOCALES: readonly ["en", "de"];
7
+ export type Locale = (typeof LOCALES)[number];
8
+ /** The host locale's primary language when the UI ships it, else English. */
9
+ export declare function resolveLanguage(hostLocale: string | undefined): Locale;
22
10
  /**
23
- * A BCP 47 tag's language when this build ships a catalog for it
24
- * (`de-AT` → `de`, `EN` → `en`), else `undefined` (`fr-FR`, garbage).
25
- */
26
- export declare function supportedLanguage(tag: string | undefined): Locale | undefined;
27
- /** Explicit profile language > the host's locale (if supported) > English. */
28
- export declare function resolveLanguage(profileLanguage: string | undefined, hostLocale: string | undefined): Locale;
29
- /**
30
- * The tag the shared formatters render dates in: the host's full tag when it
31
- * speaks the effective language (`de-AT` keeps Austrian conventions, `en-GB`
32
- * day-first dates), else the bare language — a German profile in an `en-US`
33
- * host formats German, not American.
34
- */
35
- export declare function formattingLocale(language: Locale, hostLocale: string | undefined): string;
36
- /**
37
- * The host's IANA time zone when the runtime knows it, else `undefined` (the
38
- * browser's own) — an unknown zone would make every formatter throw.
11
+ * The host's canonical tag when the UI ships its language (the bare language for a malformed
12
+ * tag), else English.
39
13
  */
14
+ export declare function formattingLocale(hostLocale: string | undefined): string;
15
+ /** An unknown zone would make every formatter throw. */
40
16
  export declare function validTimeZone(timeZone: string | undefined): string | undefined;
41
- /** Every shell token a host variable can drive — cleared when the mapping does not apply. */
42
17
  export declare const HOST_MAPPED_TOKENS: readonly string[];
43
18
  export type HostStyleVariables = Readonly<Record<string, string | undefined>>;
44
- /**
45
- * The neutral-role overrides the host's style variables imply — empty unless
46
- * the view renders in the HOST's theme: the host's palette describes its own
47
- * light or dark canvas, so a view on the OS theme (the host reported none)
48
- * keeps the Miragon neutrals.
49
- */
19
+ /** Empty unless the view renders in the HOST's theme: its palette describes its own canvas. */
50
20
  export declare function hostTokenOverrides(variables: HostStyleVariables | undefined, followsHost: boolean): Record<string, string>;
51
21
  export interface DocumentThemeInput {
52
22
  theme: EffectiveTheme;
53
- /** What the host reported; `undefined` outside a host or before it answered. */
54
23
  hostTheme: EffectiveTheme | undefined;
55
24
  hostVariables?: HostStyleVariables;
56
25
  }
57
- /**
58
- * Apply ONE effective theme consistently to the document root: the `.dark`
59
- * class and `data-theme` (the toolkit theme's dark scope keys on both; SEP-1865
60
- * hosts and ext-apps read `data-theme`) and `color-scheme` (native controls,
61
- * scrollbars). The canvas stays transparent — the host's. The host's neutral
62
- * palette lands on the neutral roles while the view renders in the host's
63
- * theme; without a host theme every mapped role is cleared again.
64
- */
26
+ /** pulse-ui's dark scope keys on `.dark` and `data-theme`; SEP-1865 hosts read `data-theme`. */
65
27
  export declare function applyDocumentTheme(root: HTMLElement, { theme, hostTheme, hostVariables }: DocumentThemeInput): void;
28
+ export {};
66
29
  //# sourceMappingURL=host-context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"host-context.d.ts","sourceRoot":"","sources":["../../src/ui/host-context.ts"],"names":[],"mappings":"AAAA,OAA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,CASxB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,cAAc,CAAA;IACrB,SAAS,EAAE,cAAc,GAAG,SAAS,CAAA;IACrC,aAAa,CAAC,EAAE,kBAAkB,CAAA;CACnC;AAED,gGAAgG;AAChG,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,WAAW,EACjB,EAAE,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,EAAE,kBAAkB,GACtD,IAAI,CAUN"}
@@ -1,27 +1,21 @@
1
- import { explicitLocale } from "../profile-constants.js";
2
- /** A host-reported theme, or `undefined` when the host reported none (or garbage). */
3
1
  export function hostThemeOf(value) {
4
2
  return value === "light" || value === "dark" ? value : undefined;
5
3
  }
6
- /**
7
- * The host's theme, else the OS `prefers-color-scheme`. Widgets follow the
8
- * host; there is no in-app theme switch (#322 owner decision).
9
- */
4
+ /** No in-app theme switch (#322 owner decision). */
10
5
  export function resolveTheme(hostTheme, osPrefersDark) {
11
6
  return hostTheme ?? (osPrefersDark ? "dark" : "light");
12
7
  }
13
- /**
14
- * A BCP 47 tag's language when this build ships a catalog for it
15
- * (`de-AT` → `de`, `EN` → `en`), else `undefined` (`fr-FR`, garbage).
16
- */
17
- export function supportedLanguage(tag) {
18
- return explicitLocale(tag?.split(/[-_]/)[0]?.toLowerCase());
8
+ /** The languages the widgets ship catalogs for. */
9
+ const LOCALES = ["en", "de"];
10
+ /** The tag's primary language when the UI ships it (`de`, `de-DE`, `DE-ch`, `de_AT`). */
11
+ function shippedLanguage(tag) {
12
+ const primary = tag?.split(/[-_]/)[0]?.toLowerCase();
13
+ return LOCALES.find((locale) => locale === primary);
19
14
  }
20
- /** Explicit profile language > the host's locale (if supported) > English. */
21
- export function resolveLanguage(profileLanguage, hostLocale) {
22
- return explicitLocale(profileLanguage) ?? supportedLanguage(hostLocale) ?? "en";
15
+ /** The host locale's primary language when the UI ships it, else English. */
16
+ export function resolveLanguage(hostLocale) {
17
+ return shippedLanguage(hostLocale) ?? "en";
23
18
  }
24
- /** The canonical form of a BCP 47 tag, or `undefined` when it is not one. */
25
19
  function canonicalTag(tag) {
26
20
  try {
27
21
  return Intl.getCanonicalLocales(tag)[0];
@@ -31,20 +25,16 @@ function canonicalTag(tag) {
31
25
  }
32
26
  }
33
27
  /**
34
- * The tag the shared formatters render dates in: the host's full tag when it
35
- * speaks the effective language (`de-AT` keeps Austrian conventions, `en-GB`
36
- * day-first dates), else the bare language — a German profile in an `en-US`
37
- * host formats German, not American.
28
+ * The host's canonical tag when the UI ships its language (the bare language for a malformed
29
+ * tag), else English.
38
30
  */
39
- export function formattingLocale(language, hostLocale) {
40
- if (!hostLocale || supportedLanguage(hostLocale) !== language)
41
- return language;
31
+ export function formattingLocale(hostLocale) {
32
+ const language = shippedLanguage(hostLocale);
33
+ if (!hostLocale || !language)
34
+ return "en";
42
35
  return canonicalTag(hostLocale) ?? language;
43
36
  }
44
- /**
45
- * The host's IANA time zone when the runtime knows it, else `undefined` (the
46
- * browser's own) — an unknown zone would make every formatter throw.
47
- */
37
+ /** An unknown zone would make every formatter throw. */
48
38
  export function validTimeZone(timeZone) {
49
39
  if (!timeZone)
50
40
  return undefined;
@@ -56,15 +46,7 @@ export function validTimeZone(timeZone) {
56
46
  return undefined;
57
47
  }
58
48
  }
59
- /**
60
- * SEP-1865 host style variables → the NEUTRAL roles they stand for: the
61
- * canvas and its surfaces, the text on them and the decorative divider. The
62
- * host never sets a brand, interaction or status role — `--primary`, `--link`,
63
- * `--focus`, `--ring`, `--input` (the 3:1 control edge), `--accent` (the
64
- * selection tint) and every `--<tone>`/`-soft`/`-ink` stay the Miragon
65
- * theme's, so a host palette can neither recolour the brand nor drop a focus
66
- * ring or a field edge below its contrast floor.
67
- */
49
+ /** Neutral roles only, so a host palette can neither recolour the brand nor break contrast floors. */
68
50
  const HOST_TOKEN_MAP = {
69
51
  "--color-background-primary": ["--background", "--card", "--popover"],
70
52
  "--color-background-secondary": ["--muted", "--secondary"],
@@ -77,14 +59,8 @@ const HOST_TOKEN_MAP = {
77
59
  "--color-text-secondary": ["--muted-foreground"],
78
60
  "--color-border-primary": ["--border"],
79
61
  };
80
- /** Every shell token a host variable can drive — cleared when the mapping does not apply. */
81
62
  export const HOST_MAPPED_TOKENS = Object.values(HOST_TOKEN_MAP).flat();
82
- /**
83
- * The neutral-role overrides the host's style variables imply — empty unless
84
- * the view renders in the HOST's theme: the host's palette describes its own
85
- * light or dark canvas, so a view on the OS theme (the host reported none)
86
- * keeps the Miragon neutrals.
87
- */
63
+ /** Empty unless the view renders in the HOST's theme: its palette describes its own canvas. */
88
64
  export function hostTokenOverrides(variables, followsHost) {
89
65
  const overrides = {};
90
66
  if (!variables || !followsHost)
@@ -98,14 +74,7 @@ export function hostTokenOverrides(variables, followsHost) {
98
74
  }
99
75
  return overrides;
100
76
  }
101
- /**
102
- * Apply ONE effective theme consistently to the document root: the `.dark`
103
- * class and `data-theme` (the toolkit theme's dark scope keys on both; SEP-1865
104
- * hosts and ext-apps read `data-theme`) and `color-scheme` (native controls,
105
- * scrollbars). The canvas stays transparent — the host's. The host's neutral
106
- * palette lands on the neutral roles while the view renders in the host's
107
- * theme; without a host theme every mapped role is cleared again.
108
- */
77
+ /** pulse-ui's dark scope keys on `.dark` and `data-theme`; SEP-1865 hosts read `data-theme`. */
109
78
  export function applyDocumentTheme(root, { theme, hostTheme, hostVariables }) {
110
79
  root.classList.toggle("dark", theme === "dark");
111
80
  root.setAttribute("data-theme", theme);
@@ -1 +1 @@
1
- {"version":3,"file":"host-context.js","sourceRoot":"","sources":["../../src/ui/host-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAe,MAAM,yBAAyB,CAAA;AAiBrE,sFAAsF;AACtF,MAAM,UAAU,WAAW,CAAC,KAAc;IACxC,OAAO,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAA;AAClE,CAAC;AAED;;;GAGG;AACH,MAAM,UA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AACH,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { type ReactNode } from "react";
2
+ import { type ShellHost } from "./shell-host.js";
3
+ import { type ViewHost } from "./view-host.js";
4
+ export type RequestDisplayMode = (mode: "inline" | "fullscreen") => void;
5
+ /**
6
+ * The host-agnostic contexts every widget reads, all derived from ONE `ShellHost`: the display
7
+ * mode, the fullscreen switch, the inline budget (#396) and the view host. The mcp-use adapter
8
+ * (`McpUseViewHost`) and `TestViewHost` both mount it, so a widget test sees the production
9
+ * derivation: inline, the BPMN canvas is capped and "show more" asks for fullscreen where the
10
+ * host offers it.
11
+ */
12
+ export declare function HostContexts({ shell, host, requestDisplayMode, children, }: {
13
+ shell: ShellHost;
14
+ host: ViewHost;
15
+ /** Stable across renders (a `useCallback`), so the derived contexts stay stable too. */
16
+ requestDisplayMode: RequestDisplayMode;
17
+ children: ReactNode;
18
+ }): import("react").JSX.Element;
19
+ //# sourceMappingURL=host-contexts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host-contexts.d.ts","sourceRoot":"","sources":["../../src/ui/host-contexts.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAQ/C,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACnE,OAAO,EAAoB,KAAK,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAGhE,MAAM,MAAM,kBAAkB,GAAG,CAAC,IAAI,EAAE,QAAQ,GAAG,YAAY,KAAK,IAAI,CAAA;AAExE;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,IAAI,EACJ,kBAAkB,EAClB,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,SAAS,CAAA;IAChB,IAAI,EAAE,QAAQ,CAAA;IACd,wFAAwF;IACxF,kBAAkB,EAAE,kBAAkB,CAAA;IACtC,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAgCA"}
@@ -0,0 +1,31 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useMemo } from "react";
3
+ import { DisplayModeControlProvider } from "./display-mode-toggle.js";
4
+ import { INLINE_DIAGRAM_MAX_HEIGHT, InlineBudgetProvider, NO_INLINE_BUDGET, } from "./inline-budget.js";
5
+ import { ShellHostProvider } from "./shell-host.js";
6
+ import { ViewHostProvider } from "./view-host.js";
7
+ import { DisplayModeProvider } from "./widget-shell.js";
8
+ /**
9
+ * The host-agnostic contexts every widget reads, all derived from ONE `ShellHost`: the display
10
+ * mode, the fullscreen switch, the inline budget (#396) and the view host. The mcp-use adapter
11
+ * (`McpUseViewHost`) and `TestViewHost` both mount it, so a widget test sees the production
12
+ * derivation: inline, the BPMN canvas is capped and "show more" asks for fullscreen where the
13
+ * host offers it.
14
+ */
15
+ export function HostContexts({ shell, host, requestDisplayMode, children, }) {
16
+ const { displayMode } = shell;
17
+ const offersFullscreen = shell.availableDisplayModes.includes("fullscreen");
18
+ const control = useMemo(() => ({
19
+ displayMode,
20
+ canFullscreen: displayMode === "fullscreen" || offersFullscreen,
21
+ request: requestDisplayMode,
22
+ }), [displayMode, offersFullscreen, requestDisplayMode]);
23
+ const budget = useMemo(() => displayMode === "inline"
24
+ ? {
25
+ diagramMaxHeight: INLINE_DIAGRAM_MAX_HEIGHT,
26
+ expand: offersFullscreen ? () => requestDisplayMode("fullscreen") : null,
27
+ }
28
+ : NO_INLINE_BUDGET, [displayMode, offersFullscreen, requestDisplayMode]);
29
+ return (_jsx(ShellHostProvider, { host: shell, children: _jsx(DisplayModeProvider, { mode: displayMode, children: _jsx(DisplayModeControlProvider, { control: control, children: _jsx(InlineBudgetProvider, { budget: budget, children: _jsx(ViewHostProvider, { host: host, children: children }) }) }) }) }));
30
+ }
31
+ //# sourceMappingURL=host-contexts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host-contexts.js","sourceRoot":"","sources":["../../src/ui/host-contexts.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO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BAA0B,IAAC,OAAO,EAAE,OAAO,YAC1C,KAAC,oBAAoB,IAAC,MAAM,EAAE,MAAM,YAClC,KAAC,gBAAgB,IAAC,IAAI,EAAE,IAAI,YAAG,QAAQ,GAAoB,GACtC,GACI,GACT,GACJ,CACrB,CAAA;AACH,CAAC"}
@@ -1,23 +1,8 @@
1
1
  import { type ReactNode } from "react";
2
2
  /**
3
- * The document layer under every view (replaces mcp-use's `ThemeProvider`,
4
- * whose theme channel wrote only `data-theme` from the host/OS and reset
5
- * `color-scheme` — the shell's `useApplyTheme` owns the theme now, from ONE
6
- * resolution):
7
- * - Geist and Geist Mono are declared once from the server that served the
8
- * view (`declareServedFonts`, `font-display: swap`);
9
- * - the host's SEP-1865 style variables land on `<html>` and its font CSS is
10
- * injected once; right after, the toolkit's `adoptHostFontVariables` moves
11
- * the host's `--font-sans`/`--font-mono` into the fallback slot of the
12
- * theme's font roles (`--host-font-*`), so the stack stays Geist first,
13
- * then the host's font (what renders while Geist loads, or when the host
14
- * blocks the server's origin), then the system;
15
- * - inline views size to their content (auto-resize reports it), their lists
16
- * show as many rows as fit the host's height budget (`containerDimensions`
17
- * → `maxHeight`, else {@link UNSTATED_BUDGET}; the measured fit,
18
- * `InlineFitBox`), and a view that still does not fit a stated budget
19
- * scrolls inside it instead of being clipped;
20
- * - fullscreen/PiP fill the viewport (`html`/`body`/`#root` at 100%).
3
+ * Replaces mcp-use's `ThemeProvider`, which reset `color-scheme`. Host fonts go
4
+ * into the fallback slot (`adoptHostFontVariables`), so Geist stays first. A
5
+ * view that overflows a stated budget scrolls inside it instead of clipping.
21
6
  */
22
7
  export declare function HostDocument({ children }: {
23
8
  children: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"host-document.d.ts","sourceRoot":"","sources":["../../src/ui/host-document.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAmB3E;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAmCjE"}
1
+ {"version":3,"file":"host-document.d.ts","sourceRoot":"","sources":["../../src/ui/host-document.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAiB3E;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAmCjE"}
@@ -1,11 +1,10 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useLayoutEffect } from "react";
3
- import { adoptHostFontVariables } from "@miragon/mcp-toolkit-ui";
3
+ import { adoptHostFontVariables } from "@miragon/pulse-ui";
4
4
  import { declareServedFonts } from "./declare-served-fonts.js";
5
5
  import { InlineFitBox, UNSTATED_BUDGET } from "./inline-fit.js";
6
6
  import { useShellHost } from "./shell-host.js";
7
7
  const HOST_FONTS_ID = "__mcp-host-fonts";
8
- /** Fullscreen/PiP: the view owns the viewport — fill it, scroll inside. */
9
8
  const FILL_STYLE = {
10
9
  position: "relative",
11
10
  height: "100%",
@@ -13,33 +12,17 @@ const FILL_STYLE = {
13
12
  display: "flex",
14
13
  flexDirection: "column",
15
14
  };
16
- /** Inline without a host budget: no box of its own — content decides the height. */
17
15
  const INLINE_STYLE = { display: "contents" };
18
16
  /**
19
- * The document layer under every view (replaces mcp-use's `ThemeProvider`,
20
- * whose theme channel wrote only `data-theme` from the host/OS and reset
21
- * `color-scheme` — the shell's `useApplyTheme` owns the theme now, from ONE
22
- * resolution):
23
- * - Geist and Geist Mono are declared once from the server that served the
24
- * view (`declareServedFonts`, `font-display: swap`);
25
- * - the host's SEP-1865 style variables land on `<html>` and its font CSS is
26
- * injected once; right after, the toolkit's `adoptHostFontVariables` moves
27
- * the host's `--font-sans`/`--font-mono` into the fallback slot of the
28
- * theme's font roles (`--host-font-*`), so the stack stays Geist first,
29
- * then the host's font (what renders while Geist loads, or when the host
30
- * blocks the server's origin), then the system;
31
- * - inline views size to their content (auto-resize reports it), their lists
32
- * show as many rows as fit the host's height budget (`containerDimensions`
33
- * → `maxHeight`, else {@link UNSTATED_BUDGET}; the measured fit,
34
- * `InlineFitBox`), and a view that still does not fit a stated budget
35
- * scrolls inside it instead of being clipped;
36
- * - fullscreen/PiP fill the viewport (`html`/`body`/`#root` at 100%).
17
+ * Replaces mcp-use's `ThemeProvider`, which reset `color-scheme`. Host fonts go
18
+ * into the fallback slot (`adoptHostFontVariables`), so Geist stays first. A
19
+ * view that overflows a stated budget scrolls inside it instead of clipping.
37
20
  */
38
21
  export function HostDocument({ children }) {
39
- const { styleVariables, fontCss, displayMode, maxHeight } = useShellHost();
22
+ const { styleVariables, fontCss, displayMode, maxHeight, publicBase } = useShellHost();
40
23
  useLayoutEffect(() => {
41
- declareServedFonts();
42
- }, []);
24
+ declareServedFonts(document, publicBase ?? "");
25
+ }, [publicBase]);
43
26
  useLayoutEffect(() => {
44
27
  if (!styleVariables)
45
28
  return;
@@ -67,7 +50,6 @@ export function HostDocument({ children }) {
67
50
  style = { maxHeight, overflowY: "auto" };
68
51
  return (_jsx(InlineFitBox, { active: !fill, budget: maxHeight ?? UNSTATED_BUDGET, style: style, children: children }));
69
52
  }
70
- /** `html`/`body`/`#root` at 100% while the view fills the host; restored on exit. */
71
53
  function useFillDocument(fill) {
72
54
  useLayoutEffect(() => {
73
55
  if (!fill)
@@ -1 +1 @@
1
- {"version":3,"file":"host-document.js","sourceRoot":"","sources":["../../src/ui/host-document.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAsC,MAAM,OAAO,CAAA;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAC/D,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WidgetComponent } from "@miragon/mcp-toolkit-ui/app";
1
+ import { type ComponentType, type ReactNode } from "react";
2
+ /**
3
+ * Another module's widget, rendered by a raw id without a module-to-module import: it takes its
4
+ * scope as props and fetches its own data. Only cross-module surfaces use it, today analytics'
5
+ * `analytics:engine-landscape` in the engine module's fleet view and `analytics:process-heatmap`
6
+ * (with `analytics:process-heatmap-legend`) in its process flow.
7
+ */
8
+ export type HostWidget = ComponentType<Record<string, unknown>>;
9
+ export type HostWidgets = Readonly<Record<string, HostWidget>>;
3
10
  export declare function HostWidgetsProvider({ widgets, children, }: {
4
- widgets: Record<string, WidgetComponent>;
11
+ widgets: HostWidgets;
5
12
  children: ReactNode;
6
13
  }): import("react").JSX.Element;
7
- export declare function useHostWidgets(): Record<string, WidgetComponent>;
14
+ /** `undefined` when the module is not in this bundle: the caller renders nothing. */
15
+ export declare function useHostWidget(id: string): HostWidget | undefined;
16
+ /**
17
+ * Renders the host widget `id` with `props`, or nothing when the module is not in this bundle.
18
+ * A slot, so no component is picked during render (react-hooks/static-components). The widget is
19
+ * another module's code, so its crash stays inside the slot's own error boundary.
20
+ */
21
+ export declare function HostWidgetSlot({ id, props, }: {
22
+ id: string;
23
+ props?: Record<string, unknown>;
24
+ }): import("react").JSX.Element | null;
8
25
  //# sourceMappingURL=host-widgets.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"host-widgets.d.ts","sourceRoot":"","sources":["../../src/ui/host-widgets.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAYlE,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,QAAQ,GACT,EAAE;IACD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;IACxC,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAEA;AAED,wBAAgB,cAAc,IAAI,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAEhE"}
1
+ {"version":3,"file":"host-widgets.d.ts","sourceRoot":"","sources":["../../src/ui/host-widgets.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4C,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAGpG;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;AAC/D,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAA;AAM9D,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,QAAQ,GACT,EAAE;IACD,OAAO,EAAE,WAAW,CAAA;IACpB,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAEA;AAMD,qFAAqF;AACrF,wBAAgB,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAGhE;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAC7B,EAAE,EACF,KAAU,GACX,EAAE;IACD,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAChC,sCAGA"}
@@ -1,18 +1,26 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { createContext, useContext } from "react";
3
- /**
4
- * The host bundle's full widget registry, provided at the app root so
5
- * composed views (the cockpit's settings tab) can render OTHER modules'
6
- * section widgets by raw id without a module-to-module import — the UI half
7
- * of the tier-2 cross-module pattern. Default is empty: a layout cell whose
8
- * id resolves nowhere is dropped by the consumer, so a host that provides no
9
- * registry degrades to "own widgets only" instead of erroring.
10
- */
11
- const HostWidgetsContext = createContext({});
2
+ import { createContext, createElement, useContext } from "react";
3
+ import { ViewErrorBoundary } from "./view-error-boundary.js";
4
+ const NO_WIDGETS = {};
5
+ const HostWidgetsContext = createContext(NO_WIDGETS);
12
6
  export function HostWidgetsProvider({ widgets, children, }) {
13
7
  return _jsx(HostWidgetsContext.Provider, { value: widgets, children: children });
14
8
  }
15
- export function useHostWidgets() {
9
+ function useHostWidgets() {
16
10
  return useContext(HostWidgetsContext);
17
11
  }
12
+ /** `undefined` when the module is not in this bundle: the caller renders nothing. */
13
+ export function useHostWidget(id) {
14
+ const widgets = useHostWidgets();
15
+ return Object.hasOwn(widgets, id) ? widgets[id] : undefined;
16
+ }
17
+ /**
18
+ * Renders the host widget `id` with `props`, or nothing when the module is not in this bundle.
19
+ * A slot, so no component is picked during render (react-hooks/static-components). The widget is
20
+ * another module's code, so its crash stays inside the slot's own error boundary.
21
+ */
22
+ export function HostWidgetSlot({ id, props = {}, }) {
23
+ const widget = useHostWidget(id);
24
+ return widget ? _jsx(ViewErrorBoundary, { children: createElement(widget, props) }) : null;
25
+ }
18
26
  //# sourceMappingURL=host-widgets.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"host-widgets.js","sourceRoot":"","sources":["../../src/ui/host-widgets.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAA;AAGjE;;;;;;;GAOG;AACH,MAAM,kBAAkB,GAAG,aAAa,CAAkC,EAAE,CAAC,CAAA;AAE7E,MAAM,UAAU,mBAAmB,CAAC,EAClC,OAAO,EACP,QAAQ,GAIT;IACC,OAAO,KAAC,kBAAkB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO,YAAG,QAAQ,GAA+B,CAAA;AAC9F,CAAC;AAED,MAAM,UAAU,cAAc;IAC5B,OAAO,UAAU,CAAC,kBAAkB,CAAC,CAAA;AACvC,CAAC"}
1
+ {"version":3,"file":"host-widgets.js","sourceRoot":"","sources":["../../src/ui/host-widgets.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAsC,MAAM,OAAO,CAAA;AACpG,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAW5D,MAAM,UAAU,GAAgB,EAAE,CAAA;AAElC,MAAM,kBAAkB,GAAG,aAAa,CAAc,UAAU,CAAC,CAAA;AAEjE,MAAM,UAAU,mBAAmB,CAAC,EAClC,OAAO,EACP,QAAQ,GAIT;IACC,OAAO,KAAC,kBAAkB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO,YAAG,QAAQ,GAA+B,CAAA;AAC9F,CAAC;AAED,SAAS,cAAc;IACrB,OAAO,UAAU,CAAC,kBAAkB,CAAC,CAAA;AACvC,CAAC;AAED,qFAAqF;AACrF,MAAM,UAAU,aAAa,CAAC,EAAU;IACtC,MAAM,OAAO,GAAG,cAAc,EAAE,CAAA;IAChC,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;AAC7D,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,EAC7B,EAAE,EACF,KAAK,GAAG,EAAE,GAIX;IACC,MAAM,MAAM,GAAG,aAAa,CAAC,EAAE,CAAC,CAAA;IAChC,OAAO,MAAM,CAAC,CAAC,CAAC,KAAC,iBAAiB,cAAE,aAAa,CAAC,MAAM,EAAE,KAAK,CAAC,GAAqB,CAAC,CAAC,CAAC,IAAI,CAAA;AAC9F,CAAC"}
@@ -1,26 +1,10 @@
1
- /** Ids up to this length show whole; a longer one (a UUID) shows its first 8 characters. */
2
- export declare const ID_FULL_LENGTH = 12;
3
- /** The id as a row shows it: whole up to {@link ID_FULL_LENGTH}, else its head and "…". */
4
1
  export declare function shortId(value: string): string;
5
- /**
6
- * Put `text` on the clipboard: the Clipboard API where the frame may use it
7
- * (a host grants `clipboard-write`), else the selection copy. Resolves to
8
- * whether it worked — a view says so either way, never silently.
9
- */
2
+ /** Resolves to whether it worked, so a view never fails silently. */
10
3
  export declare function copyText(text: string): Promise<boolean>;
11
- /**
12
- * A technical id (instance, job, incident …) the way a row shows it: Geist
13
- * Mono, shortened when long ("5f0ce78e…", the whole id in `title` and for
14
- * screen readers), with a copy button. The copy confirms with a toast ("ID
15
- * kopiert") and the icon turning into a check. A frame without clipboard
16
- * access says so in a toast instead of failing silently, and shows the whole
17
- * id selected in a read-only field, ready to copy by hand.
18
- */
19
4
  export declare function IdText({ value, className }: {
20
5
  value: string;
21
6
  className?: string;
22
7
  }): import("react").JSX.Element;
23
- /** A table cell holding one {@link IdText} — the id column of a list. */
24
8
  export declare function IdCell({ value, align, className, }: {
25
9
  value: string;
26
10
  align?: "left" | "right";
@@ -1 +1 @@
1
- {"version":3,"file":"id-text.d.ts","sourceRoot":"","sources":["../../src/ui/id-text.tsx"],"names":[],"mappings":"AAOA,4FAA4F;AAC5F,eAAO,MAAM,cAAc,KAAK,CAAA;AAGhC,2FAA2F;AAC3F,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE7C;AAqBD;;;;GAIG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAU7D;AA0CD;;;;;;;GAOG;AACH,wBAAgB,MAAM,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,+BAuDjF;AAED,yEAAyE;AACzE,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,KAAK,EACL,SAAS,GACV,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,+BAMA"}
1
+ {"version":3,"file":"id-text.d.ts","sourceRoot":"","sources":["../../src/ui/id-text.tsx"],"names":[],"mappings":"AAQA,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE7C;AAqBD,qEAAqE;AACrE,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAU7D;AAqCD,wBAAgB,MAAM,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,+BAuDjF;AAED,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,KAAK,EACL,SAAS,GACV,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,+BAMA"}