@miragon/pulse-widget-shell 0.24.2 → 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.
- package/README.md +134 -127
- package/dist/caller.d.ts +3 -0
- package/dist/caller.d.ts.map +1 -0
- package/dist/caller.js +18 -0
- package/dist/caller.js.map +1 -0
- package/dist/composed-server.d.ts +34 -66
- package/dist/composed-server.d.ts.map +1 -1
- package/dist/composed-server.js +130 -137
- package/dist/composed-server.js.map +1 -1
- package/dist/composition.d.ts +61 -111
- package/dist/composition.d.ts.map +1 -1
- package/dist/composition.js +120 -54
- package/dist/composition.js.map +1 -1
- package/dist/font-assets.d.ts +7 -28
- package/dist/font-assets.d.ts.map +1 -1
- package/dist/font-assets.js +11 -43
- package/dist/font-assets.js.map +1 -1
- package/dist/health.d.ts +9 -45
- package/dist/health.d.ts.map +1 -1
- package/dist/health.js +6 -24
- package/dist/health.js.map +1 -1
- package/dist/host-boot.d.ts +8 -38
- package/dist/host-boot.d.ts.map +1 -1
- package/dist/host-boot.js +10 -32
- package/dist/host-boot.js.map +1 -1
- package/dist/http-edge.d.ts +20 -76
- package/dist/http-edge.d.ts.map +1 -1
- package/dist/http-edge.js +17 -60
- package/dist/http-edge.js.map +1 -1
- package/dist/metrics.d.ts +6 -21
- package/dist/metrics.d.ts.map +1 -1
- package/dist/metrics.js +8 -36
- package/dist/metrics.js.map +1 -1
- package/dist/node-listener.d.ts +7 -39
- package/dist/node-listener.d.ts.map +1 -1
- package/dist/node-listener.js +6 -18
- package/dist/node-listener.js.map +1 -1
- package/dist/oauth-env.d.ts +15 -35
- package/dist/oauth-env.d.ts.map +1 -1
- package/dist/oauth-env.js +122 -62
- package/dist/oauth-env.js.map +1 -1
- package/dist/protocol/bpmn-names.d.ts +19 -0
- package/dist/protocol/bpmn-names.d.ts.map +1 -0
- package/dist/{bpmn-names.js → protocol/bpmn-names.js} +9 -38
- package/dist/protocol/bpmn-names.js.map +1 -0
- package/dist/protocol/served-fonts.d.ts +17 -0
- package/dist/protocol/served-fonts.d.ts.map +1 -0
- package/dist/protocol/served-fonts.js +30 -0
- package/dist/protocol/served-fonts.js.map +1 -0
- package/dist/protocol/tool-result.d.ts +24 -0
- package/dist/protocol/tool-result.d.ts.map +1 -0
- package/dist/protocol/tool-result.js +37 -0
- package/dist/protocol/tool-result.js.map +1 -0
- package/dist/protocol/translator.d.ts +14 -0
- package/dist/protocol/translator.d.ts.map +1 -0
- package/dist/protocol/translator.js +18 -0
- package/dist/protocol/translator.js.map +1 -0
- package/dist/protocol/view-name.d.ts +11 -0
- package/dist/protocol/view-name.d.ts.map +1 -0
- package/dist/protocol/view-name.js +23 -0
- package/dist/protocol/view-name.js.map +1 -0
- package/dist/request-context.d.ts +4 -33
- package/dist/request-context.d.ts.map +1 -1
- package/dist/request-context.js +11 -43
- package/dist/request-context.js.map +1 -1
- package/dist/server.d.ts +19 -39
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +28 -32
- package/dist/server.js.map +1 -1
- package/dist/testing/glossary.d.ts +4 -32
- package/dist/testing/glossary.d.ts.map +1 -1
- package/dist/testing/glossary.js +6 -30
- package/dist/testing/glossary.js.map +1 -1
- package/dist/testing/index.d.ts +1 -38
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +1 -38
- package/dist/testing/index.js.map +1 -1
- package/dist/tool-errors.d.ts +16 -0
- package/dist/tool-errors.d.ts.map +1 -0
- package/dist/tool-errors.js +23 -0
- package/dist/tool-errors.js.map +1 -0
- package/dist/tool-registrar.d.ts +29 -0
- package/dist/tool-registrar.d.ts.map +1 -0
- package/dist/tool-registrar.js +47 -0
- package/dist/tool-registrar.js.map +1 -0
- package/dist/tool-registration.d.ts +35 -0
- package/dist/tool-registration.d.ts.map +1 -0
- package/dist/tool-registration.js +80 -0
- package/dist/tool-registration.js.map +1 -0
- package/dist/tool-schema-trim.d.ts +1 -15
- package/dist/tool-schema-trim.d.ts.map +1 -1
- package/dist/tool-schema-trim.js +1 -16
- package/dist/tool-schema-trim.js.map +1 -1
- package/dist/toolsets.d.ts +10 -56
- package/dist/toolsets.d.ts.map +1 -1
- package/dist/toolsets.js +2 -10
- package/dist/toolsets.js.map +1 -1
- package/dist/ui/action-feedback.d.ts +4 -26
- package/dist/ui/action-feedback.d.ts.map +1 -1
- package/dist/ui/action-feedback.js +5 -19
- package/dist/ui/action-feedback.js.map +1 -1
- package/dist/ui/ask-ai-button.d.ts +6 -43
- package/dist/ui/ask-ai-button.d.ts.map +1 -1
- package/dist/ui/ask-ai-button.js +6 -18
- package/dist/ui/ask-ai-button.js.map +1 -1
- package/dist/ui/ask-ai-prompt.d.ts +6 -82
- package/dist/ui/ask-ai-prompt.d.ts.map +1 -1
- package/dist/ui/ask-ai-prompt.js +10 -77
- package/dist/ui/ask-ai-prompt.js.map +1 -1
- package/dist/ui/bpmn-tokens.d.ts +3 -48
- package/dist/ui/bpmn-tokens.d.ts.map +1 -1
- package/dist/ui/bpmn-tokens.js +3 -46
- package/dist/ui/bpmn-tokens.js.map +1 -1
- package/dist/ui/bpmn-zoom-controls.d.ts +4 -17
- package/dist/ui/bpmn-zoom-controls.d.ts.map +1 -1
- package/dist/ui/bpmn-zoom-controls.js +2 -16
- package/dist/ui/bpmn-zoom-controls.js.map +1 -1
- package/dist/ui/call-observer.d.ts +35 -0
- package/dist/ui/call-observer.d.ts.map +1 -0
- package/dist/ui/call-observer.js +86 -0
- package/dist/ui/call-observer.js.map +1 -0
- package/dist/ui/confirm-dialog.d.ts +4 -31
- package/dist/ui/confirm-dialog.d.ts.map +1 -1
- package/dist/ui/confirm-dialog.js +4 -27
- package/dist/ui/confirm-dialog.js.map +1 -1
- package/dist/ui/count-tone.d.ts +3 -17
- package/dist/ui/count-tone.d.ts.map +1 -1
- package/dist/ui/count-tone.js +2 -16
- package/dist/ui/count-tone.js.map +1 -1
- package/dist/ui/declare-served-fonts.d.ts +4 -10
- package/dist/ui/declare-served-fonts.d.ts.map +1 -1
- package/dist/ui/declare-served-fonts.js +6 -13
- package/dist/ui/declare-served-fonts.js.map +1 -1
- package/dist/ui/describe-error.d.ts +5 -47
- package/dist/ui/describe-error.d.ts.map +1 -1
- package/dist/ui/describe-error.js +8 -45
- package/dist/ui/describe-error.js.map +1 -1
- package/dist/ui/display-mode-toggle.d.ts +3 -16
- package/dist/ui/display-mode-toggle.d.ts.map +1 -1
- package/dist/ui/display-mode-toggle.js +6 -15
- package/dist/ui/display-mode-toggle.js.map +1 -1
- package/dist/ui/error-labels.d.ts +3 -19
- package/dist/ui/error-labels.d.ts.map +1 -1
- package/dist/ui/error-labels.js +0 -1
- package/dist/ui/error-labels.js.map +1 -1
- package/dist/ui/hand-off-button.d.ts +3 -18
- package/dist/ui/hand-off-button.d.ts.map +1 -1
- package/dist/ui/hand-off-button.js +3 -18
- package/dist/ui/hand-off-button.js.map +1 -1
- package/dist/ui/host-context.d.ts +13 -50
- package/dist/ui/host-context.d.ts.map +1 -1
- package/dist/ui/host-context.js +20 -51
- package/dist/ui/host-context.js.map +1 -1
- package/dist/ui/host-contexts.d.ts +19 -0
- package/dist/ui/host-contexts.d.ts.map +1 -0
- package/dist/ui/host-contexts.js +31 -0
- package/dist/ui/host-contexts.js.map +1 -0
- package/dist/ui/host-document.d.ts +3 -18
- package/dist/ui/host-document.d.ts.map +1 -1
- package/dist/ui/host-document.js +7 -25
- package/dist/ui/host-document.js.map +1 -1
- package/dist/ui/host-widgets.d.ts +21 -4
- package/dist/ui/host-widgets.d.ts.map +1 -1
- package/dist/ui/host-widgets.js +19 -11
- package/dist/ui/host-widgets.js.map +1 -1
- package/dist/ui/id-text.d.ts +1 -17
- package/dist/ui/id-text.d.ts.map +1 -1
- package/dist/ui/id-text.js +5 -26
- package/dist/ui/id-text.js.map +1 -1
- package/dist/ui/index.d.ts +24 -43
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +36 -51
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/inline-budget.d.ts +2 -16
- package/dist/ui/inline-budget.d.ts.map +1 -1
- package/dist/ui/inline-budget.js +1 -8
- package/dist/ui/inline-budget.js.map +1 -1
- package/dist/ui/inline-fit-registry.d.ts +4 -31
- package/dist/ui/inline-fit-registry.d.ts.map +1 -1
- package/dist/ui/inline-fit-registry.js +9 -27
- package/dist/ui/inline-fit-registry.js.map +1 -1
- package/dist/ui/inline-fit-solve.d.ts +5 -27
- package/dist/ui/inline-fit-solve.d.ts.map +1 -1
- package/dist/ui/inline-fit-solve.js +4 -23
- package/dist/ui/inline-fit-solve.js.map +1 -1
- package/dist/ui/inline-fit.d.ts +4 -53
- package/dist/ui/inline-fit.d.ts.map +1 -1
- package/dist/ui/inline-fit.js +16 -62
- package/dist/ui/inline-fit.js.map +1 -1
- package/dist/ui/kit-labels.d.ts +12 -51
- package/dist/ui/kit-labels.d.ts.map +1 -1
- package/dist/ui/kit-labels.js +18 -28
- package/dist/ui/kit-labels.js.map +1 -1
- package/dist/ui/list-table.d.ts +15 -69
- package/dist/ui/list-table.d.ts.map +1 -1
- package/dist/ui/list-table.js +11 -69
- package/dist/ui/list-table.js.map +1 -1
- package/dist/ui/locale-gate.d.ts +11 -0
- package/dist/ui/locale-gate.d.ts.map +1 -0
- package/dist/ui/locale-gate.js +53 -0
- package/dist/ui/locale-gate.js.map +1 -0
- package/dist/ui/mcp-use-host.d.ts +20 -0
- package/dist/ui/mcp-use-host.d.ts.map +1 -0
- package/dist/ui/mcp-use-host.js +162 -0
- package/dist/ui/mcp-use-host.js.map +1 -0
- package/dist/ui/open-in-cockpit-link.d.ts +2 -21
- package/dist/ui/open-in-cockpit-link.d.ts.map +1 -1
- package/dist/ui/open-in-cockpit-link.js +5 -20
- package/dist/ui/open-in-cockpit-link.js.map +1 -1
- package/dist/ui/paged-rows.d.ts +3 -14
- package/dist/ui/paged-rows.d.ts.map +1 -1
- package/dist/ui/paged-rows.js +4 -14
- package/dist/ui/paged-rows.js.map +1 -1
- package/dist/ui/query-fallback.d.ts +2 -16
- package/dist/ui/query-fallback.d.ts.map +1 -1
- package/dist/ui/query-fallback.js +2 -14
- package/dist/ui/query-fallback.js.map +1 -1
- package/dist/ui/shell-host.d.ts +13 -23
- package/dist/ui/shell-host.d.ts.map +1 -1
- package/dist/ui/shell-host.js +1 -46
- package/dist/ui/shell-host.js.map +1 -1
- package/dist/ui/test-view-host.d.ts +51 -0
- package/dist/ui/test-view-host.d.ts.map +1 -0
- package/dist/ui/test-view-host.js +72 -0
- package/dist/ui/test-view-host.js.map +1 -0
- package/dist/ui/tool-query.d.ts +41 -0
- package/dist/ui/tool-query.d.ts.map +1 -0
- package/dist/ui/tool-query.js +128 -0
- package/dist/ui/tool-query.js.map +1 -0
- package/dist/ui/use-apply-theme.d.ts +1 -8
- package/dist/ui/use-apply-theme.d.ts.map +1 -1
- package/dist/ui/use-apply-theme.js +1 -8
- package/dist/ui/use-apply-theme.js.map +1 -1
- package/dist/ui/use-bpmn-viewer.d.ts +39 -73
- package/dist/ui/use-bpmn-viewer.d.ts.map +1 -1
- package/dist/ui/use-bpmn-viewer.js +18 -66
- package/dist/ui/use-bpmn-viewer.js.map +1 -1
- package/dist/ui/use-detail-view.d.ts +4 -26
- package/dist/ui/use-detail-view.d.ts.map +1 -1
- package/dist/ui/use-detail-view.js +7 -28
- package/dist/ui/use-detail-view.js.map +1 -1
- package/dist/ui/use-paged-list-view.d.ts +5 -25
- package/dist/ui/use-paged-list-view.d.ts.map +1 -1
- package/dist/ui/use-paged-list-view.js +5 -14
- package/dist/ui/use-paged-list-view.js.map +1 -1
- package/dist/ui/use-paged-view-data.d.ts +11 -66
- package/dist/ui/use-paged-view-data.d.ts.map +1 -1
- package/dist/ui/use-paged-view-data.js +20 -53
- package/dist/ui/use-paged-view-data.js.map +1 -1
- package/dist/ui/view-call.d.ts +66 -0
- package/dist/ui/view-call.d.ts.map +1 -0
- package/dist/ui/view-call.js +63 -0
- package/dist/ui/view-call.js.map +1 -0
- package/dist/ui/view-data-state.d.ts +1 -31
- package/dist/ui/view-data-state.d.ts.map +1 -1
- package/dist/ui/view-data-state.js +3 -32
- package/dist/ui/view-data-state.js.map +1 -1
- package/dist/ui/view-error-boundary.d.ts +24 -0
- package/dist/ui/view-error-boundary.d.ts.map +1 -0
- package/dist/ui/view-error-boundary.js +33 -0
- package/dist/ui/view-error-boundary.js.map +1 -0
- package/dist/ui/view-frame.d.ts +15 -0
- package/dist/ui/view-frame.d.ts.map +1 -0
- package/dist/ui/view-frame.js +72 -0
- package/dist/ui/view-frame.js.map +1 -0
- package/dist/ui/view-host.d.ts +35 -0
- package/dist/ui/view-host.d.ts.map +1 -0
- package/dist/ui/view-host.js +18 -0
- package/dist/ui/view-host.js.map +1 -0
- package/dist/ui/view-meta.d.ts +6 -29
- package/dist/ui/view-meta.d.ts.map +1 -1
- package/dist/ui/view-meta.js +2 -13
- package/dist/ui/view-meta.js.map +1 -1
- package/dist/ui/view-refresh-state.d.ts +4 -18
- package/dist/ui/view-refresh-state.d.ts.map +1 -1
- package/dist/ui/view-refresh-state.js +1 -7
- package/dist/ui/view-refresh-state.js.map +1 -1
- package/dist/ui/view-root.d.ts +26 -0
- package/dist/ui/view-root.d.ts.map +1 -0
- package/dist/ui/view-root.js +48 -0
- package/dist/ui/view-root.js.map +1 -0
- package/dist/ui/views.d.ts +17 -0
- package/dist/ui/views.d.ts.map +1 -0
- package/dist/ui/views.js +11 -0
- package/dist/ui/views.js.map +1 -0
- package/dist/ui/widget-shell.d.ts +1 -13
- package/dist/ui/widget-shell.d.ts.map +1 -1
- package/dist/ui/widget-shell.js +5 -30
- package/dist/ui/widget-shell.js.map +1 -1
- package/dist/view-bundle.d.ts +15 -0
- package/dist/view-bundle.d.ts.map +1 -0
- package/dist/view-bundle.js +23 -0
- package/dist/view-bundle.js.map +1 -0
- package/dist/view-results.d.ts +12 -23
- package/dist/view-results.d.ts.map +1 -1
- package/dist/view-results.js +14 -11
- package/dist/view-results.js.map +1 -1
- package/dist/widget-tool-bindings.d.ts +19 -48
- package/dist/widget-tool-bindings.d.ts.map +1 -1
- package/dist/widget-tool-bindings.js +21 -49
- package/dist/widget-tool-bindings.js.map +1 -1
- package/package.json +24 -36
- package/dist/adapt-data-widget.d.ts +0 -7
- package/dist/adapt-data-widget.d.ts.map +0 -1
- package/dist/adapt-data-widget.js +0 -7
- package/dist/adapt-data-widget.js.map +0 -1
- package/dist/bpmn-names.d.ts +0 -42
- package/dist/bpmn-names.d.ts.map +0 -1
- package/dist/bpmn-names.js.map +0 -1
- package/dist/bpmn-names.test.d.ts +0 -2
- package/dist/bpmn-names.test.d.ts.map +0 -1
- package/dist/bpmn-names.test.js +0 -143
- package/dist/bpmn-names.test.js.map +0 -1
- package/dist/build-data-feed-result.test.d.ts +0 -2
- package/dist/build-data-feed-result.test.d.ts.map +0 -1
- package/dist/build-data-feed-result.test.js +0 -28
- package/dist/build-data-feed-result.test.js.map +0 -1
- package/dist/build-single-widget-view.test.d.ts +0 -2
- package/dist/build-single-widget-view.test.d.ts.map +0 -1
- package/dist/build-single-widget-view.test.js +0 -136
- package/dist/build-single-widget-view.test.js.map +0 -1
- package/dist/builder-texts.d.ts +0 -27
- package/dist/builder-texts.d.ts.map +0 -1
- package/dist/builder-texts.js +0 -32
- package/dist/builder-texts.js.map +0 -1
- package/dist/builder-texts.test.d.ts +0 -2
- package/dist/builder-texts.test.d.ts.map +0 -1
- package/dist/builder-texts.test.js +0 -54
- package/dist/builder-texts.test.js.map +0 -1
- package/dist/catalogue-sync.d.ts +0 -18
- package/dist/catalogue-sync.d.ts.map +0 -1
- package/dist/catalogue-sync.js +0 -31
- package/dist/catalogue-sync.js.map +0 -1
- package/dist/catalogue-sync.test.d.ts +0 -2
- package/dist/catalogue-sync.test.d.ts.map +0 -1
- package/dist/catalogue-sync.test.js +0 -22
- package/dist/catalogue-sync.test.js.map +0 -1
- package/dist/composed-server.edge.test.d.ts +0 -2
- package/dist/composed-server.edge.test.d.ts.map +0 -1
- package/dist/composed-server.edge.test.js +0 -184
- package/dist/composed-server.edge.test.js.map +0 -1
- package/dist/composed-server.fonts.test.d.ts +0 -2
- package/dist/composed-server.fonts.test.d.ts.map +0 -1
- package/dist/composed-server.fonts.test.js +0 -186
- package/dist/composed-server.fonts.test.js.map +0 -1
- package/dist/composed-server.test.d.ts +0 -2
- package/dist/composed-server.test.d.ts.map +0 -1
- package/dist/composed-server.test.js +0 -332
- package/dist/composed-server.test.js.map +0 -1
- package/dist/composition.test.d.ts +0 -2
- package/dist/composition.test.d.ts.map +0 -1
- package/dist/composition.test.js +0 -275
- package/dist/composition.test.js.map +0 -1
- package/dist/dashboard-store-postgres.d.ts +0 -43
- package/dist/dashboard-store-postgres.d.ts.map +0 -1
- package/dist/dashboard-store-postgres.js +0 -225
- package/dist/dashboard-store-postgres.js.map +0 -1
- package/dist/dashboard-store-postgres.test.d.ts +0 -2
- package/dist/dashboard-store-postgres.test.d.ts.map +0 -1
- package/dist/dashboard-store-postgres.test.js +0 -272
- package/dist/dashboard-store-postgres.test.js.map +0 -1
- package/dist/font-assets.test.d.ts +0 -2
- package/dist/font-assets.test.d.ts.map +0 -1
- package/dist/font-assets.test.js +0 -123
- package/dist/font-assets.test.js.map +0 -1
- package/dist/health.test.d.ts +0 -2
- package/dist/health.test.d.ts.map +0 -1
- package/dist/health.test.js +0 -140
- package/dist/health.test.js.map +0 -1
- package/dist/host-boot.test.d.ts +0 -2
- package/dist/host-boot.test.d.ts.map +0 -1
- package/dist/host-boot.test.js +0 -59
- package/dist/host-boot.test.js.map +0 -1
- package/dist/http-edge.test.d.ts +0 -2
- package/dist/http-edge.test.d.ts.map +0 -1
- package/dist/http-edge.test.js +0 -255
- package/dist/http-edge.test.js.map +0 -1
- package/dist/metrics.test.d.ts +0 -2
- package/dist/metrics.test.d.ts.map +0 -1
- package/dist/metrics.test.js +0 -154
- package/dist/metrics.test.js.map +0 -1
- package/dist/node-listener.test.d.ts +0 -2
- package/dist/node-listener.test.d.ts.map +0 -1
- package/dist/node-listener.test.js +0 -331
- package/dist/node-listener.test.js.map +0 -1
- package/dist/oauth-env.test.d.ts +0 -2
- package/dist/oauth-env.test.d.ts.map +0 -1
- package/dist/oauth-env.test.js +0 -76
- package/dist/oauth-env.test.js.map +0 -1
- package/dist/postgres.d.ts +0 -59
- package/dist/postgres.d.ts.map +0 -1
- package/dist/postgres.js +0 -80
- package/dist/postgres.js.map +0 -1
- package/dist/profile-advisory.d.ts +0 -19
- package/dist/profile-advisory.d.ts.map +0 -1
- package/dist/profile-advisory.js +0 -48
- package/dist/profile-advisory.js.map +0 -1
- package/dist/profile-advisory.test.d.ts +0 -2
- package/dist/profile-advisory.test.d.ts.map +0 -1
- package/dist/profile-advisory.test.js +0 -53
- package/dist/profile-advisory.test.js.map +0 -1
- package/dist/profile-constants.d.ts +0 -37
- package/dist/profile-constants.d.ts.map +0 -1
- package/dist/profile-constants.js +0 -37
- package/dist/profile-constants.js.map +0 -1
- package/dist/profile-migrations.d.ts +0 -71
- package/dist/profile-migrations.d.ts.map +0 -1
- package/dist/profile-migrations.js +0 -88
- package/dist/profile-migrations.js.map +0 -1
- package/dist/profile-migrations.test.d.ts +0 -2
- package/dist/profile-migrations.test.d.ts.map +0 -1
- package/dist/profile-migrations.test.js +0 -200
- package/dist/profile-migrations.test.js.map +0 -1
- package/dist/profile-record.d.ts +0 -60
- package/dist/profile-record.d.ts.map +0 -1
- package/dist/profile-record.js +0 -78
- package/dist/profile-record.js.map +0 -1
- package/dist/profile-slice.d.ts +0 -53
- package/dist/profile-slice.d.ts.map +0 -1
- package/dist/profile-slice.js +0 -73
- package/dist/profile-slice.js.map +0 -1
- package/dist/profile-slice.test.d.ts +0 -2
- package/dist/profile-slice.test.d.ts.map +0 -1
- package/dist/profile-slice.test.js +0 -73
- package/dist/profile-slice.test.js.map +0 -1
- package/dist/profile-store-env.d.ts +0 -34
- package/dist/profile-store-env.d.ts.map +0 -1
- package/dist/profile-store-env.js +0 -44
- package/dist/profile-store-env.js.map +0 -1
- package/dist/profile-store-env.test.d.ts +0 -2
- package/dist/profile-store-env.test.d.ts.map +0 -1
- package/dist/profile-store-env.test.js +0 -69
- package/dist/profile-store-env.test.js.map +0 -1
- package/dist/profile-store-postgres.d.ts +0 -33
- package/dist/profile-store-postgres.d.ts.map +0 -1
- package/dist/profile-store-postgres.js +0 -87
- package/dist/profile-store-postgres.js.map +0 -1
- package/dist/profile-store-raw.test.d.ts +0 -2
- package/dist/profile-store-raw.test.d.ts.map +0 -1
- package/dist/profile-store-raw.test.js +0 -185
- package/dist/profile-store-raw.test.js.map +0 -1
- package/dist/profile-store.d.ts +0 -85
- package/dist/profile-store.d.ts.map +0 -1
- package/dist/profile-store.js +0 -182
- package/dist/profile-store.js.map +0 -1
- package/dist/profile-store.test.d.ts +0 -2
- package/dist/profile-store.test.d.ts.map +0 -1
- package/dist/profile-store.test.js +0 -353
- package/dist/profile-store.test.js.map +0 -1
- package/dist/profile.d.ts +0 -75
- package/dist/profile.d.ts.map +0 -1
- package/dist/profile.js +0 -85
- package/dist/profile.js.map +0 -1
- package/dist/profile.test.d.ts +0 -2
- package/dist/profile.test.d.ts.map +0 -1
- package/dist/profile.test.js +0 -71
- package/dist/profile.test.js.map +0 -1
- package/dist/request-context.test.d.ts +0 -2
- package/dist/request-context.test.d.ts.map +0 -1
- package/dist/request-context.test.js +0 -107
- package/dist/request-context.test.js.map +0 -1
- package/dist/served-fonts.d.ts +0 -38
- package/dist/served-fonts.d.ts.map +0 -1
- package/dist/served-fonts.js +0 -51
- package/dist/served-fonts.js.map +0 -1
- package/dist/served-fonts.test.d.ts +0 -2
- package/dist/served-fonts.test.d.ts.map +0 -1
- package/dist/served-fonts.test.js +0 -30
- package/dist/served-fonts.test.js.map +0 -1
- package/dist/server-locale.d.ts +0 -58
- package/dist/server-locale.d.ts.map +0 -1
- package/dist/server-locale.js +0 -64
- package/dist/server-locale.js.map +0 -1
- package/dist/server-locale.test.d.ts +0 -2
- package/dist/server-locale.test.d.ts.map +0 -1
- package/dist/server-locale.test.js +0 -90
- package/dist/server-locale.test.js.map +0 -1
- package/dist/shell-catalogue.d.ts +0 -12
- package/dist/shell-catalogue.d.ts.map +0 -1
- package/dist/shell-catalogue.js +0 -142
- package/dist/shell-catalogue.js.map +0 -1
- package/dist/shell-settings-contract.d.ts +0 -34
- package/dist/shell-settings-contract.d.ts.map +0 -1
- package/dist/shell-settings-contract.js +0 -21
- package/dist/shell-settings-contract.js.map +0 -1
- package/dist/shell-settings.d.ts +0 -24
- package/dist/shell-settings.d.ts.map +0 -1
- package/dist/shell-settings.js +0 -148
- package/dist/shell-settings.js.map +0 -1
- package/dist/shell-settings.test.d.ts +0 -2
- package/dist/shell-settings.test.d.ts.map +0 -1
- package/dist/shell-settings.test.js +0 -115
- package/dist/shell-settings.test.js.map +0 -1
- package/dist/testing/catalog-text.d.ts +0 -53
- package/dist/testing/catalog-text.d.ts.map +0 -1
- package/dist/testing/catalog-text.js +0 -146
- package/dist/testing/catalog-text.js.map +0 -1
- package/dist/testing/catalog-text.test.d.ts +0 -2
- package/dist/testing/catalog-text.test.d.ts.map +0 -1
- package/dist/testing/catalog-text.test.js +0 -137
- package/dist/testing/catalog-text.test.js.map +0 -1
- package/dist/testing/colors.d.ts +0 -34
- package/dist/testing/colors.d.ts.map +0 -1
- package/dist/testing/colors.js +0 -124
- package/dist/testing/colors.js.map +0 -1
- package/dist/testing/colors.test.d.ts +0 -2
- package/dist/testing/colors.test.d.ts.map +0 -1
- package/dist/testing/colors.test.js +0 -166
- package/dist/testing/colors.test.js.map +0 -1
- package/dist/testing/contrast.d.ts +0 -77
- package/dist/testing/contrast.d.ts.map +0 -1
- package/dist/testing/contrast.js +0 -382
- package/dist/testing/contrast.js.map +0 -1
- package/dist/testing/contrast.test.d.ts +0 -2
- package/dist/testing/contrast.test.d.ts.map +0 -1
- package/dist/testing/contrast.test.js +0 -230
- package/dist/testing/contrast.test.js.map +0 -1
- package/dist/testing/display-texts.d.ts +0 -23
- package/dist/testing/display-texts.d.ts.map +0 -1
- package/dist/testing/display-texts.js +0 -88
- package/dist/testing/display-texts.js.map +0 -1
- package/dist/testing/display-texts.test.d.ts +0 -2
- package/dist/testing/display-texts.test.d.ts.map +0 -1
- package/dist/testing/display-texts.test.js +0 -169
- package/dist/testing/display-texts.test.js.map +0 -1
- package/dist/testing/glossary.test.d.ts +0 -2
- package/dist/testing/glossary.test.d.ts.map +0 -1
- package/dist/testing/glossary.test.js +0 -78
- package/dist/testing/glossary.test.js.map +0 -1
- package/dist/testing/glyphs.d.ts +0 -27
- package/dist/testing/glyphs.d.ts.map +0 -1
- package/dist/testing/glyphs.js +0 -130
- package/dist/testing/glyphs.js.map +0 -1
- package/dist/testing/glyphs.test.d.ts +0 -2
- package/dist/testing/glyphs.test.d.ts.map +0 -1
- package/dist/testing/glyphs.test.js +0 -146
- package/dist/testing/glyphs.test.js.map +0 -1
- package/dist/testing/icon-sizes.d.ts +0 -22
- package/dist/testing/icon-sizes.d.ts.map +0 -1
- package/dist/testing/icon-sizes.js +0 -39
- package/dist/testing/icon-sizes.js.map +0 -1
- package/dist/testing/icon-sizes.test.d.ts +0 -2
- package/dist/testing/icon-sizes.test.d.ts.map +0 -1
- package/dist/testing/icon-sizes.test.js +0 -36
- package/dist/testing/icon-sizes.test.js.map +0 -1
- package/dist/testing/source-scan.d.ts +0 -16
- package/dist/testing/source-scan.d.ts.map +0 -1
- package/dist/testing/source-scan.js +0 -57
- package/dist/testing/source-scan.js.map +0 -1
- package/dist/testing/tone-pairs.d.ts +0 -20
- package/dist/testing/tone-pairs.d.ts.map +0 -1
- package/dist/testing/tone-pairs.js +0 -154
- package/dist/testing/tone-pairs.js.map +0 -1
- package/dist/testing/type-scale.d.ts +0 -40
- package/dist/testing/type-scale.d.ts.map +0 -1
- package/dist/testing/type-scale.js +0 -55
- package/dist/testing/type-scale.js.map +0 -1
- package/dist/testing/type-scale.test.d.ts +0 -2
- package/dist/testing/type-scale.test.d.ts.map +0 -1
- package/dist/testing/type-scale.test.js +0 -61
- package/dist/testing/type-scale.test.js.map +0 -1
- package/dist/tool-schema-trim.test.d.ts +0 -2
- package/dist/tool-schema-trim.test.d.ts.map +0 -1
- package/dist/tool-schema-trim.test.js +0 -53
- package/dist/tool-schema-trim.test.js.map +0 -1
- package/dist/toolsets.test.d.ts +0 -2
- package/dist/toolsets.test.d.ts.map +0 -1
- package/dist/toolsets.test.js +0 -86
- package/dist/toolsets.test.js.map +0 -1
- package/dist/ui/action-feedback.test.d.ts +0 -2
- package/dist/ui/action-feedback.test.d.ts.map +0 -1
- package/dist/ui/action-feedback.test.js +0 -77
- package/dist/ui/action-feedback.test.js.map +0 -1
- package/dist/ui/app-shell-providers.d.ts +0 -18
- package/dist/ui/app-shell-providers.d.ts.map +0 -1
- package/dist/ui/app-shell-providers.js +0 -19
- package/dist/ui/app-shell-providers.js.map +0 -1
- package/dist/ui/app-shell-providers.test.d.ts +0 -2
- package/dist/ui/app-shell-providers.test.d.ts.map +0 -1
- package/dist/ui/app-shell-providers.test.js +0 -249
- package/dist/ui/app-shell-providers.test.js.map +0 -1
- package/dist/ui/ask-ai-button.test.d.ts +0 -2
- package/dist/ui/ask-ai-button.test.d.ts.map +0 -1
- package/dist/ui/ask-ai-button.test.js +0 -103
- package/dist/ui/ask-ai-button.test.js.map +0 -1
- package/dist/ui/ask-ai-prompt.test.d.ts +0 -2
- package/dist/ui/ask-ai-prompt.test.d.ts.map +0 -1
- package/dist/ui/ask-ai-prompt.test.js +0 -240
- package/dist/ui/ask-ai-prompt.test.js.map +0 -1
- package/dist/ui/bpmn-heatmap/heat-ramp.test.d.ts +0 -2
- package/dist/ui/bpmn-heatmap/heat-ramp.test.d.ts.map +0 -1
- package/dist/ui/bpmn-heatmap/heat-ramp.test.js +0 -174
- package/dist/ui/bpmn-heatmap/heat-ramp.test.js.map +0 -1
- package/dist/ui/bpmn-heatmap/heat-utils.d.ts +0 -119
- package/dist/ui/bpmn-heatmap/heat-utils.d.ts.map +0 -1
- package/dist/ui/bpmn-heatmap/heat-utils.js +0 -231
- package/dist/ui/bpmn-heatmap/heat-utils.js.map +0 -1
- package/dist/ui/bpmn-heatmap/heat-utils.test.d.ts +0 -2
- package/dist/ui/bpmn-heatmap/heat-utils.test.d.ts.map +0 -1
- package/dist/ui/bpmn-heatmap/heat-utils.test.js +0 -59
- package/dist/ui/bpmn-heatmap/heat-utils.test.js.map +0 -1
- package/dist/ui/bpmn-heatmap-labels.d.ts +0 -46
- package/dist/ui/bpmn-heatmap-labels.d.ts.map +0 -1
- package/dist/ui/bpmn-heatmap-labels.js +0 -16
- package/dist/ui/bpmn-heatmap-labels.js.map +0 -1
- package/dist/ui/bpmn-heatmap-widget.d.ts +0 -38
- package/dist/ui/bpmn-heatmap-widget.d.ts.map +0 -1
- package/dist/ui/bpmn-heatmap-widget.js +0 -65
- package/dist/ui/bpmn-heatmap-widget.js.map +0 -1
- package/dist/ui/bpmn-heatmap-widget.test.d.ts +0 -2
- package/dist/ui/bpmn-heatmap-widget.test.d.ts.map +0 -1
- package/dist/ui/bpmn-heatmap-widget.test.js +0 -173
- package/dist/ui/bpmn-heatmap-widget.test.js.map +0 -1
- package/dist/ui/bpmn-heatmap.d.ts +0 -61
- package/dist/ui/bpmn-heatmap.d.ts.map +0 -1
- package/dist/ui/bpmn-heatmap.js +0 -119
- package/dist/ui/bpmn-heatmap.js.map +0 -1
- package/dist/ui/bpmn-tokens.test.d.ts +0 -2
- package/dist/ui/bpmn-tokens.test.d.ts.map +0 -1
- package/dist/ui/bpmn-tokens.test.js +0 -98
- package/dist/ui/bpmn-tokens.test.js.map +0 -1
- package/dist/ui/brand-gates.test.d.ts +0 -2
- package/dist/ui/brand-gates.test.d.ts.map +0 -1
- package/dist/ui/brand-gates.test.js +0 -131
- package/dist/ui/brand-gates.test.js.map +0 -1
- package/dist/ui/brand-mark.d.ts +0 -37
- package/dist/ui/brand-mark.d.ts.map +0 -1
- package/dist/ui/brand-mark.js +0 -33
- package/dist/ui/brand-mark.js.map +0 -1
- package/dist/ui/brand-mark.test.d.ts +0 -2
- package/dist/ui/brand-mark.test.d.ts.map +0 -1
- package/dist/ui/brand-mark.test.js +0 -111
- package/dist/ui/brand-mark.test.js.map +0 -1
- package/dist/ui/confirm-dialog.test.d.ts +0 -2
- package/dist/ui/confirm-dialog.test.d.ts.map +0 -1
- package/dist/ui/confirm-dialog.test.js +0 -115
- package/dist/ui/confirm-dialog.test.js.map +0 -1
- package/dist/ui/count-tone.test.d.ts +0 -2
- package/dist/ui/count-tone.test.d.ts.map +0 -1
- package/dist/ui/count-tone.test.js +0 -27
- package/dist/ui/count-tone.test.js.map +0 -1
- package/dist/ui/create-use-t.d.ts +0 -15
- package/dist/ui/create-use-t.d.ts.map +0 -1
- package/dist/ui/create-use-t.js +0 -17
- package/dist/ui/create-use-t.js.map +0 -1
- package/dist/ui/declare-served-fonts.test.d.ts +0 -2
- package/dist/ui/declare-served-fonts.test.d.ts.map +0 -1
- package/dist/ui/declare-served-fonts.test.js +0 -44
- package/dist/ui/declare-served-fonts.test.js.map +0 -1
- package/dist/ui/describe-error.test.d.ts +0 -2
- package/dist/ui/describe-error.test.d.ts.map +0 -1
- package/dist/ui/describe-error.test.js +0 -274
- package/dist/ui/describe-error.test.js.map +0 -1
- package/dist/ui/format.d.ts +0 -81
- package/dist/ui/format.d.ts.map +0 -1
- package/dist/ui/format.js +0 -189
- package/dist/ui/format.js.map +0 -1
- package/dist/ui/format.test.d.ts +0 -2
- package/dist/ui/format.test.d.ts.map +0 -1
- package/dist/ui/format.test.js +0 -181
- package/dist/ui/format.test.js.map +0 -1
- package/dist/ui/generic-widgets.d.ts +0 -15
- package/dist/ui/generic-widgets.d.ts.map +0 -1
- package/dist/ui/generic-widgets.js +0 -122
- package/dist/ui/generic-widgets.js.map +0 -1
- package/dist/ui/generic-widgets.test.d.ts +0 -2
- package/dist/ui/generic-widgets.test.d.ts.map +0 -1
- package/dist/ui/generic-widgets.test.js +0 -139
- package/dist/ui/generic-widgets.test.js.map +0 -1
- package/dist/ui/hand-off-button.test.d.ts +0 -2
- package/dist/ui/hand-off-button.test.d.ts.map +0 -1
- package/dist/ui/hand-off-button.test.js +0 -78
- package/dist/ui/hand-off-button.test.js.map +0 -1
- package/dist/ui/host-context.test.d.ts +0 -2
- package/dist/ui/host-context.test.d.ts.map +0 -1
- package/dist/ui/host-context.test.js +0 -160
- package/dist/ui/host-context.test.js.map +0 -1
- package/dist/ui/host-document.test.d.ts +0 -2
- package/dist/ui/host-document.test.d.ts.map +0 -1
- package/dist/ui/host-document.test.js +0 -112
- package/dist/ui/host-document.test.js.map +0 -1
- package/dist/ui/humanize-key.d.ts +0 -11
- package/dist/ui/humanize-key.d.ts.map +0 -1
- package/dist/ui/humanize-key.js +0 -26
- package/dist/ui/humanize-key.js.map +0 -1
- package/dist/ui/humanize-key.test.d.ts +0 -2
- package/dist/ui/humanize-key.test.d.ts.map +0 -1
- package/dist/ui/humanize-key.test.js +0 -42
- package/dist/ui/humanize-key.test.js.map +0 -1
- package/dist/ui/icon.d.ts +0 -37
- package/dist/ui/icon.d.ts.map +0 -1
- package/dist/ui/icon.js +0 -32
- package/dist/ui/icon.js.map +0 -1
- package/dist/ui/id-breaks.d.ts +0 -17
- package/dist/ui/id-breaks.d.ts.map +0 -1
- package/dist/ui/id-breaks.js +0 -36
- package/dist/ui/id-breaks.js.map +0 -1
- package/dist/ui/id-breaks.test.d.ts +0 -2
- package/dist/ui/id-breaks.test.d.ts.map +0 -1
- package/dist/ui/id-breaks.test.js +0 -37
- package/dist/ui/id-breaks.test.js.map +0 -1
- package/dist/ui/id-text.test.d.ts +0 -2
- package/dist/ui/id-text.test.d.ts.map +0 -1
- package/dist/ui/id-text.test.js +0 -122
- package/dist/ui/id-text.test.js.map +0 -1
- package/dist/ui/index.test.d.ts +0 -2
- package/dist/ui/index.test.d.ts.map +0 -1
- package/dist/ui/index.test.js +0 -34
- package/dist/ui/index.test.js.map +0 -1
- package/dist/ui/inline-fit-solve.test.d.ts +0 -2
- package/dist/ui/inline-fit-solve.test.d.ts.map +0 -1
- package/dist/ui/inline-fit-solve.test.js +0 -108
- package/dist/ui/inline-fit-solve.test.js.map +0 -1
- package/dist/ui/inline-fit-time.test.d.ts +0 -2
- package/dist/ui/inline-fit-time.test.d.ts.map +0 -1
- package/dist/ui/inline-fit-time.test.js +0 -110
- package/dist/ui/inline-fit-time.test.js.map +0 -1
- package/dist/ui/inline-fit.test-support.d.ts +0 -26
- package/dist/ui/inline-fit.test-support.d.ts.map +0 -1
- package/dist/ui/inline-fit.test-support.js +0 -34
- package/dist/ui/inline-fit.test-support.js.map +0 -1
- package/dist/ui/inline-fit.test.d.ts +0 -2
- package/dist/ui/inline-fit.test.d.ts.map +0 -1
- package/dist/ui/inline-fit.test.js +0 -159
- package/dist/ui/inline-fit.test.js.map +0 -1
- package/dist/ui/kit-labels.test.d.ts +0 -2
- package/dist/ui/kit-labels.test.d.ts.map +0 -1
- package/dist/ui/kit-labels.test.js +0 -98
- package/dist/ui/kit-labels.test.js.map +0 -1
- package/dist/ui/kit-type-roles.test.d.ts +0 -2
- package/dist/ui/kit-type-roles.test.d.ts.map +0 -1
- package/dist/ui/kit-type-roles.test.js +0 -122
- package/dist/ui/kit-type-roles.test.js.map +0 -1
- package/dist/ui/komet-svg.d.ts +0 -15
- package/dist/ui/komet-svg.d.ts.map +0 -1
- package/dist/ui/komet-svg.js +0 -21
- package/dist/ui/komet-svg.js.map +0 -1
- package/dist/ui/list-table.test.d.ts +0 -2
- package/dist/ui/list-table.test.d.ts.map +0 -1
- package/dist/ui/list-table.test.js +0 -169
- package/dist/ui/list-table.test.js.map +0 -1
- package/dist/ui/localized-app-view.d.ts +0 -40
- package/dist/ui/localized-app-view.d.ts.map +0 -1
- package/dist/ui/localized-app-view.js +0 -71
- package/dist/ui/localized-app-view.js.map +0 -1
- package/dist/ui/log-text.d.ts +0 -24
- package/dist/ui/log-text.d.ts.map +0 -1
- package/dist/ui/log-text.js +0 -31
- package/dist/ui/log-text.js.map +0 -1
- package/dist/ui/menu-item.d.ts +0 -12
- package/dist/ui/menu-item.d.ts.map +0 -1
- package/dist/ui/menu-item.js +0 -13
- package/dist/ui/menu-item.js.map +0 -1
- package/dist/ui/named-id.d.ts +0 -23
- package/dist/ui/named-id.d.ts.map +0 -1
- package/dist/ui/named-id.js +0 -21
- package/dist/ui/named-id.js.map +0 -1
- package/dist/ui/named-id.test.d.ts +0 -2
- package/dist/ui/named-id.test.d.ts.map +0 -1
- package/dist/ui/named-id.test.js +0 -57
- package/dist/ui/named-id.test.js.map +0 -1
- package/dist/ui/native-select.d.ts +0 -17
- package/dist/ui/native-select.d.ts.map +0 -1
- package/dist/ui/native-select.js +0 -20
- package/dist/ui/native-select.js.map +0 -1
- package/dist/ui/navigation-focus.d.ts +0 -20
- package/dist/ui/navigation-focus.d.ts.map +0 -1
- package/dist/ui/navigation-focus.js +0 -25
- package/dist/ui/navigation-focus.js.map +0 -1
- package/dist/ui/navigation-focus.test.d.ts +0 -2
- package/dist/ui/navigation-focus.test.d.ts.map +0 -1
- package/dist/ui/navigation-focus.test.js +0 -28
- package/dist/ui/navigation-focus.test.js.map +0 -1
- package/dist/ui/paged-list-footer.test.d.ts +0 -2
- package/dist/ui/paged-list-footer.test.d.ts.map +0 -1
- package/dist/ui/paged-list-footer.test.js +0 -128
- package/dist/ui/paged-list-footer.test.js.map +0 -1
- package/dist/ui/parse-tool-result.test.d.ts +0 -2
- package/dist/ui/parse-tool-result.test.d.ts.map +0 -1
- package/dist/ui/parse-tool-result.test.js +0 -88
- package/dist/ui/parse-tool-result.test.js.map +0 -1
- package/dist/ui/profile-gate.d.ts +0 -37
- package/dist/ui/profile-gate.d.ts.map +0 -1
- package/dist/ui/profile-gate.js +0 -126
- package/dist/ui/profile-gate.js.map +0 -1
- package/dist/ui/profile-gate.test.d.ts +0 -2
- package/dist/ui/profile-gate.test.d.ts.map +0 -1
- package/dist/ui/profile-gate.test.js +0 -246
- package/dist/ui/profile-gate.test.js.map +0 -1
- package/dist/ui/query-fallback.test.d.ts +0 -2
- package/dist/ui/query-fallback.test.d.ts.map +0 -1
- package/dist/ui/query-fallback.test.js +0 -49
- package/dist/ui/query-fallback.test.js.map +0 -1
- package/dist/ui/row-card.d.ts +0 -13
- package/dist/ui/row-card.d.ts.map +0 -1
- package/dist/ui/row-card.js +0 -11
- package/dist/ui/row-card.js.map +0 -1
- package/dist/ui/section.d.ts +0 -18
- package/dist/ui/section.d.ts.map +0 -1
- package/dist/ui/section.js +0 -14
- package/dist/ui/section.js.map +0 -1
- package/dist/ui/segmented-control.d.ts +0 -25
- package/dist/ui/segmented-control.d.ts.map +0 -1
- package/dist/ui/segmented-control.js +0 -22
- package/dist/ui/segmented-control.js.map +0 -1
- package/dist/ui/settings-labels.d.ts +0 -33
- package/dist/ui/settings-labels.d.ts.map +0 -1
- package/dist/ui/settings-labels.js +0 -50
- package/dist/ui/settings-labels.js.map +0 -1
- package/dist/ui/settings-layout.d.ts +0 -29
- package/dist/ui/settings-layout.d.ts.map +0 -1
- package/dist/ui/settings-layout.js +0 -49
- package/dist/ui/settings-layout.js.map +0 -1
- package/dist/ui/settings-layout.test.d.ts +0 -2
- package/dist/ui/settings-layout.test.d.ts.map +0 -1
- package/dist/ui/settings-layout.test.js +0 -73
- package/dist/ui/settings-layout.test.js.map +0 -1
- package/dist/ui/settings.d.ts +0 -47
- package/dist/ui/settings.d.ts.map +0 -1
- package/dist/ui/settings.js +0 -48
- package/dist/ui/settings.js.map +0 -1
- package/dist/ui/settings.test.d.ts +0 -2
- package/dist/ui/settings.test.d.ts.map +0 -1
- package/dist/ui/settings.test.js +0 -38
- package/dist/ui/settings.test.js.map +0 -1
- package/dist/ui/shell-settings.d.ts +0 -31
- package/dist/ui/shell-settings.d.ts.map +0 -1
- package/dist/ui/shell-settings.js +0 -97
- package/dist/ui/shell-settings.js.map +0 -1
- package/dist/ui/shell-settings.test.d.ts +0 -2
- package/dist/ui/shell-settings.test.d.ts.map +0 -1
- package/dist/ui/shell-settings.test.js +0 -108
- package/dist/ui/shell-settings.test.js.map +0 -1
- package/dist/ui/shell-widgets.d.ts +0 -14
- package/dist/ui/shell-widgets.d.ts.map +0 -1
- package/dist/ui/shell-widgets.js +0 -18
- package/dist/ui/shell-widgets.js.map +0 -1
- package/dist/ui/table.d.ts +0 -61
- package/dist/ui/table.d.ts.map +0 -1
- package/dist/ui/table.js +0 -43
- package/dist/ui/table.js.map +0 -1
- package/dist/ui/tone-components.test.d.ts +0 -2
- package/dist/ui/tone-components.test.d.ts.map +0 -1
- package/dist/ui/tone-components.test.js +0 -145
- package/dist/ui/tone-components.test.js.map +0 -1
- package/dist/ui/tone-contrast.test.d.ts +0 -2
- package/dist/ui/tone-contrast.test.d.ts.map +0 -1
- package/dist/ui/tone-contrast.test.js +0 -66
- package/dist/ui/tone-contrast.test.js.map +0 -1
- package/dist/ui/toolkit-overlap.test.d.ts +0 -2
- package/dist/ui/toolkit-overlap.test.d.ts.map +0 -1
- package/dist/ui/toolkit-overlap.test.js +0 -86
- package/dist/ui/toolkit-overlap.test.js.map +0 -1
- package/dist/ui/use-apply-theme.test.d.ts +0 -2
- package/dist/ui/use-apply-theme.test.d.ts.map +0 -1
- package/dist/ui/use-apply-theme.test.js +0 -102
- package/dist/ui/use-apply-theme.test.js.map +0 -1
- package/dist/ui/use-bpmn-viewer.test.d.ts +0 -2
- package/dist/ui/use-bpmn-viewer.test.d.ts.map +0 -1
- package/dist/ui/use-bpmn-viewer.test.js +0 -239
- package/dist/ui/use-bpmn-viewer.test.js.map +0 -1
- package/dist/ui/use-detail-view.test.d.ts +0 -2
- package/dist/ui/use-detail-view.test.d.ts.map +0 -1
- package/dist/ui/use-detail-view.test.js +0 -178
- package/dist/ui/use-detail-view.test.js.map +0 -1
- package/dist/ui/use-paged-list-view.test.d.ts +0 -2
- package/dist/ui/use-paged-list-view.test.d.ts.map +0 -1
- package/dist/ui/use-paged-list-view.test.js +0 -136
- package/dist/ui/use-paged-list-view.test.js.map +0 -1
- package/dist/ui/use-paged-view-data.seeded.test.d.ts +0 -2
- package/dist/ui/use-paged-view-data.seeded.test.d.ts.map +0 -1
- package/dist/ui/use-paged-view-data.seeded.test.js +0 -144
- package/dist/ui/use-paged-view-data.seeded.test.js.map +0 -1
- package/dist/ui/use-paged-view-data.test.d.ts +0 -2
- package/dist/ui/use-paged-view-data.test.d.ts.map +0 -1
- package/dist/ui/use-paged-view-data.test.js +0 -330
- package/dist/ui/use-paged-view-data.test.js.map +0 -1
- package/dist/ui/use-reset-on-change.d.ts +0 -22
- package/dist/ui/use-reset-on-change.d.ts.map +0 -1
- package/dist/ui/use-reset-on-change.js +0 -29
- package/dist/ui/use-reset-on-change.js.map +0 -1
- package/dist/ui/use-reset-on-change.test.d.ts +0 -2
- package/dist/ui/use-reset-on-change.test.d.ts.map +0 -1
- package/dist/ui/use-reset-on-change.test.js +0 -61
- package/dist/ui/use-reset-on-change.test.js.map +0 -1
- package/dist/ui/use-view-data.seeded.test.d.ts +0 -2
- package/dist/ui/use-view-data.seeded.test.d.ts.map +0 -1
- package/dist/ui/use-view-data.seeded.test.js +0 -168
- package/dist/ui/use-view-data.seeded.test.js.map +0 -1
- package/dist/ui/view-data-state.test.d.ts +0 -2
- package/dist/ui/view-data-state.test.d.ts.map +0 -1
- package/dist/ui/view-data-state.test.js +0 -62
- package/dist/ui/view-data-state.test.js.map +0 -1
- package/dist/ui/view-meta.test.d.ts +0 -2
- package/dist/ui/view-meta.test.d.ts.map +0 -1
- package/dist/ui/view-meta.test.js +0 -92
- package/dist/ui/view-meta.test.js.map +0 -1
- package/dist/ui/widget-shell.test.d.ts +0 -2
- package/dist/ui/widget-shell.test.d.ts.map +0 -1
- package/dist/ui/widget-shell.test.js +0 -41
- package/dist/ui/widget-shell.test.js.map +0 -1
- package/dist/widget-meta-defaults.d.ts +0 -48
- package/dist/widget-meta-defaults.d.ts.map +0 -1
- package/dist/widget-meta-defaults.js +0 -80
- package/dist/widget-meta-defaults.js.map +0 -1
- package/dist/widget-meta-defaults.test.d.ts +0 -2
- package/dist/widget-meta-defaults.test.d.ts.map +0 -1
- package/dist/widget-meta-defaults.test.js +0 -196
- package/dist/widget-meta-defaults.test.js.map +0 -1
- package/dist/widget-tool-bindings.test.d.ts +0 -2
- package/dist/widget-tool-bindings.test.d.ts.map +0 -1
- package/dist/widget-tool-bindings.test.js +0 -83
- package/dist/widget-tool-bindings.test.js.map +0 -1
- package/dist/with-tool-errors.test.d.ts +0 -2
- package/dist/with-tool-errors.test.d.ts.map +0 -1
- package/dist/with-tool-errors.test.js +0 -38
- 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
|
-
|
|
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":"
|
|
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/
|
|
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":[],"mappings":";AAAA,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"hand-off-button.js","sourceRoot":"","sources":["../../src/ui/hand-off-button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAmB,MAAM,mBAAmB,CAAA;AAC9D,OAAO,EACL,cAAc,EACd,MAAM,EACN,GAAG,EACH,aAAa,EACb,UAAU,EACV,KAAK,EACL,SAAS,EACT,UAAU,EACV,WAAW,EACX,KAAK,EACL,UAAU,EACV,WAAW,EACX,KAAK,EACL,QAAQ,EACR,MAAM,GACP,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,WAAW,EAAqB,MAAM,oBAAoB,CAAA;AAEnE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,uGAAuG;AACvG,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,MAAM,EAAE,UAAU;IAClB,SAAS,EAAE,UAAU;IACrB,YAAY,EAAE,UAAU;IACxB,OAAO,EAAE,MAAM;IACf,WAAW,EAAE,aAAa;IAC1B,eAAe,EAAE,KAAK;IACtB,eAAe,EAAE,KAAK;IACtB,cAAc,EAAE,MAAM;IACtB,cAAc,EAAE,QAAQ;IACxB,WAAW,EAAE,WAAW;IACxB,eAAe,EAAE,GAAG;IACpB,kBAAkB,EAAE,KAAK;IACzB,iBAAiB,EAAE,SAAS;IAC5B,UAAU,EAAE,WAAW;IACvB,cAAc,EAAE,cAAc;CACe,CAAA;AAI/C,+EAA+E;AAC/E,MAAM,UAAU,aAAa,CAAC,EAC5B,MAAM,EACN,MAAM,EACN,OAAO,GAAG,QAAQ,EAClB,KAAK,GAMN;IACC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAA;IAC1B,OAAO,CACL,KAAC,WAAW,IACV,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,EAC9B,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EACxC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,GACZ,CACH,CAAA;AACH,CAAC"}
|
|
@@ -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
|
-
*
|
|
24
|
-
*
|
|
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,
|
|
1
|
+
{"version":3,"file":"host-context.d.ts","sourceRoot":"","sources":["../../src/ui/host-context.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,MAAM,CAAA;AAE7C,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,cAAc,GAAG,SAAS,CAEtE;AAED,oDAAoD;AACpD,wBAAgB,YAAY,CAC1B,SAAS,EAAE,cAAc,GAAG,SAAS,EACrC,aAAa,EAAE,OAAO,GACrB,cAAc,CAEhB;AAED,mDAAmD;AACnD,QAAA,MAAM,OAAO,uBAAwB,CAAA;AACrC,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAA;AAQ7C,6EAA6E;AAC7E,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAEtE;AAUD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAIvE;AAED,wDAAwD;AACxD,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAQ9E;AAgBD,eAAO,MAAM,kBAAkB,EAAE,SAAS,MAAM,EAAyC,CAAA;AAEzF,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAA;AAE7E,+FAA+F;AAC/F,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,kBAAkB,GAAG,SAAS,EACzC,WAAW,EAAE,OAAO,GACnB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,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"}
|
package/dist/ui/host-context.js
CHANGED
|
@@ -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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
return
|
|
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
|
-
/**
|
|
21
|
-
export function resolveLanguage(
|
|
22
|
-
return
|
|
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
|
|
35
|
-
*
|
|
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(
|
|
40
|
-
|
|
41
|
-
|
|
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":"
|
|
1
|
+
{"version":3,"file":"host-context.js","sourceRoot":"","sources":["../../src/ui/host-context.ts"],"names":[],"mappings":"AAEA,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,oDAAoD;AACpD,MAAM,UAAU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,KAAK,MAAM,CAAC,CAAA;IAC/C,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,CAAA;IACtC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,cAAc,EAAE,KAAK,CAAC,CAAA;IAC7C,MAAM,SAAS,GAAG,kBAAkB,CAAC,aAAa,EAAE,SAAS,KAAK,KAAK,CAAC,CAAA;IACxE,KAAK,MAAM,KAAK,IAAI,kBAAkB,EAAE,CAAC;QACvC,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,CAAA;QAC9B,IAAI,KAAK,KAAK,SAAS;YAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAA;;YACpD,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;IAC3C,CAAC;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,EAAkB,MAAM,OAAO,CAAA;AAC/C,OAAO,EAAE,0BAA0B,EAA2B,MAAM,0BAA0B,CAAA;AAC9F,OAAO,EACL,yBAAyB,EACzB,oBAAoB,EACpB,gBAAgB,GAEjB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,iBAAiB,EAAkB,MAAM,iBAAiB,CAAA;AACnE,OAAO,EAAE,gBAAgB,EAAiB,MAAM,gBAAgB,CAAA;AAChE,OAAO,EAAE,mBAAmB,EA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|
|
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;
|
|
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"}
|
package/dist/ui/host-document.js
CHANGED
|
@@ -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/
|
|
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
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
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,
|
|
1
|
+
{"version":3,"file":"host-document.js","sourceRoot":"","sources":["../../src/ui/host-document.tsx"],"names":[],"mappings":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,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAU,CAAC,CAAA;QACrF,KAAK,MAAM,EAAE,IAAI,QAAQ,EAAE,CAAC;YAC1B,EAAE,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAA;YACxB,EAAE,CAAC,KAAK,CAAC,SAAS,GAAG,MAAM,CAAA;QAC7B,CAAC;QACD,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE;gBACzB,EAAE,CAAC,KAAK,CAAC,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;gBAChC,EAAE,CAAC,KAAK,CAAC,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;YACrC,CAAC,CAAC,CAAA;QACJ,CAAC,CAAA;IACH,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAA;AACZ,CAAC"}
|
|
@@ -1,8 +1,25 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
|
|
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:
|
|
11
|
+
widgets: HostWidgets;
|
|
5
12
|
children: ReactNode;
|
|
6
13
|
}): import("react").JSX.Element;
|
|
7
|
-
|
|
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,
|
|
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"}
|
package/dist/ui/host-widgets.js
CHANGED
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { createContext, useContext } from "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
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,
|
|
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"}
|
package/dist/ui/id-text.d.ts
CHANGED
|
@@ -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";
|
package/dist/ui/id-text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id-text.d.ts","sourceRoot":"","sources":["../../src/ui/id-text.tsx"],"names":[],"mappings":"
|
|
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"}
|