@tai42/studio-sdk 16.0.0 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/code-block.js +1 -1
- package/dist/components/code-block.js.map +1 -1
- package/dist/components/confirm-dialog.js +1 -1
- package/dist/components/confirm-dialog.js.map +1 -1
- package/dist/components/copy-field.js +1 -1
- package/dist/components/copy-field.js.map +1 -1
- package/dist/components/date-range-picker.d.ts.map +1 -1
- package/dist/components/date-range-picker.js.map +1 -1
- package/dist/components/dialog.d.ts.map +1 -1
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/dirty-guard.d.ts.map +1 -1
- package/dist/components/dirty-guard.js +1 -1
- package/dist/components/dirty-guard.js.map +1 -1
- package/dist/components/explorer-body.d.ts +49 -0
- package/dist/components/explorer-body.d.ts.map +1 -0
- package/dist/components/explorer-body.js +67 -0
- package/dist/components/explorer-body.js.map +1 -0
- package/dist/components/explorer-page-size.d.ts +4 -0
- package/dist/components/explorer-page-size.d.ts.map +1 -0
- package/dist/components/explorer-page-size.js +36 -0
- package/dist/components/explorer-page-size.js.map +1 -0
- package/dist/components/explorer-tag-filter.d.ts +17 -0
- package/dist/components/explorer-tag-filter.d.ts.map +1 -0
- package/dist/components/explorer-tag-filter.js +29 -0
- package/dist/components/explorer-tag-filter.js.map +1 -0
- package/dist/components/explorer-tags.d.ts +22 -0
- package/dist/components/explorer-tags.d.ts.map +1 -0
- package/dist/components/explorer-tags.js +51 -0
- package/dist/components/explorer-tags.js.map +1 -0
- package/dist/components/explorer-view.d.ts +3 -17
- package/dist/components/explorer-view.d.ts.map +1 -1
- package/dist/components/explorer-view.js +53 -170
- package/dist/components/explorer-view.js.map +1 -1
- package/dist/components/extension-combo-builder.d.ts +1 -6
- package/dist/components/extension-combo-builder.d.ts.map +1 -1
- package/dist/components/extension-combo-builder.js +4 -79
- package/dist/components/extension-combo-builder.js.map +1 -1
- package/dist/components/extension-combo-parts.d.ts +44 -0
- package/dist/components/extension-combo-parts.d.ts.map +1 -0
- package/dist/components/extension-combo-parts.js +52 -0
- package/dist/components/extension-combo-parts.js.map +1 -0
- package/dist/components/field.d.ts +8 -0
- package/dist/components/field.d.ts.map +1 -1
- package/dist/components/field.js +0 -8
- package/dist/components/field.js.map +1 -1
- package/dist/components/fleet-report.d.ts +1 -1
- package/dist/components/fleet-report.d.ts.map +1 -1
- package/dist/components/fleet-report.js +51 -37
- package/dist/components/fleet-report.js.map +1 -1
- package/dist/components/folder-nav.d.ts.map +1 -1
- package/dist/components/folder-nav.js +1 -1
- package/dist/components/folder-nav.js.map +1 -1
- package/dist/components/form-dialog.d.ts.map +1 -1
- package/dist/components/form-dialog.js +1 -1
- package/dist/components/form-dialog.js.map +1 -1
- package/dist/components/icons/chrome-marks.d.ts +50 -0
- package/dist/components/icons/chrome-marks.d.ts.map +1 -0
- package/dist/components/icons/chrome-marks.js +51 -0
- package/dist/components/icons/chrome-marks.js.map +1 -0
- package/dist/components/icons/icon-frame.d.ts +29 -0
- package/dist/components/icons/icon-frame.d.ts.map +1 -0
- package/dist/components/icons/icon-frame.js +19 -0
- package/dist/components/icons/icon-frame.js.map +1 -0
- package/dist/components/icons/index.d.ts +40 -0
- package/dist/components/icons/index.d.ts.map +1 -0
- package/dist/components/icons/index.js +39 -0
- package/dist/components/icons/index.js.map +1 -0
- package/dist/components/icons/nav-map.d.ts +14 -0
- package/dist/components/icons/nav-map.d.ts.map +1 -0
- package/dist/components/icons/nav-map.js +28 -0
- package/dist/components/icons/nav-map.js.map +1 -0
- package/dist/components/icons/nav-marks.d.ts +44 -0
- package/dist/components/icons/nav-marks.d.ts.map +1 -0
- package/dist/components/icons/nav-marks.js +45 -0
- package/dist/components/icons/nav-marks.js.map +1 -0
- package/dist/components/icons/status-marks.d.ts +21 -0
- package/dist/components/icons/status-marks.d.ts.map +1 -0
- package/dist/components/icons/status-marks.js +22 -0
- package/dist/components/icons/status-marks.js.map +1 -0
- package/dist/components/icons/theme-marks.d.ts +9 -0
- package/dist/components/icons/theme-marks.d.ts.map +1 -0
- package/dist/components/icons/theme-marks.js +10 -0
- package/dist/components/icons/theme-marks.js.map +1 -0
- package/dist/components/inputs.js.map +1 -1
- package/dist/components/json-diff.d.ts.map +1 -1
- package/dist/components/json-diff.js +1 -3
- package/dist/components/json-diff.js.map +1 -1
- package/dist/components/json-tree-context.d.ts +13 -0
- package/dist/components/json-tree-context.d.ts.map +1 -0
- package/dist/components/json-tree-context.js +15 -0
- package/dist/components/json-tree-context.js.map +1 -0
- package/dist/components/json-tree-model.d.ts +56 -0
- package/dist/components/json-tree-model.d.ts.map +1 -0
- package/dist/components/json-tree-model.js +125 -0
- package/dist/components/json-tree-model.js.map +1 -0
- package/dist/components/json-tree-nodes.d.ts +35 -0
- package/dist/components/json-tree-nodes.d.ts.map +1 -0
- package/dist/components/json-tree-nodes.js +113 -0
- package/dist/components/json-tree-nodes.js.map +1 -0
- package/dist/components/json-tree.d.ts +20 -0
- package/dist/components/json-tree.d.ts.map +1 -1
- package/dist/components/json-tree.js +7 -315
- package/dist/components/json-tree.js.map +1 -1
- package/dist/components/json-value-format.d.ts +20 -0
- package/dist/components/json-value-format.d.ts.map +1 -0
- package/dist/components/json-value-format.js +63 -0
- package/dist/components/json-value-format.js.map +1 -0
- package/dist/components/markdown-blocks.d.ts +38 -0
- package/dist/components/markdown-blocks.d.ts.map +1 -0
- package/dist/components/markdown-blocks.js +168 -0
- package/dist/components/markdown-blocks.js.map +1 -0
- package/dist/components/markdown-inline.d.ts +24 -0
- package/dist/components/markdown-inline.d.ts.map +1 -0
- package/dist/components/markdown-inline.js +257 -0
- package/dist/components/markdown-inline.js.map +1 -0
- package/dist/components/markdown.d.ts +3 -52
- package/dist/components/markdown.d.ts.map +1 -1
- package/dist/components/markdown.js +4 -376
- package/dist/components/markdown.js.map +1 -1
- package/dist/components/observer-registry.d.ts +38 -0
- package/dist/components/observer-registry.d.ts.map +1 -0
- package/dist/components/observer-registry.js +131 -0
- package/dist/components/observer-registry.js.map +1 -0
- package/dist/components/overflow-measure.d.ts +38 -0
- package/dist/components/overflow-measure.d.ts.map +1 -0
- package/dist/components/overflow-measure.js +54 -0
- package/dist/components/overflow-measure.js.map +1 -0
- package/dist/components/page-fill.d.ts.map +1 -1
- package/dist/components/page-fill.js.map +1 -1
- package/dist/components/prose-regions.d.ts +81 -0
- package/dist/components/prose-regions.d.ts.map +1 -0
- package/dist/components/prose-regions.js +128 -0
- package/dist/components/prose-regions.js.map +1 -0
- package/dist/components/radio-group.d.ts.map +1 -1
- package/dist/components/radio-group.js.map +1 -1
- package/dist/components/scroll-region.d.ts +24 -0
- package/dist/components/scroll-region.d.ts.map +1 -1
- package/dist/components/scroll-region.js +3 -322
- package/dist/components/scroll-region.js.map +1 -1
- package/dist/components/tab-stop-parse.d.ts +53 -0
- package/dist/components/tab-stop-parse.d.ts.map +1 -0
- package/dist/components/tab-stop-parse.js +202 -0
- package/dist/components/tab-stop-parse.js.map +1 -0
- package/dist/components/table.d.ts +1 -1
- package/dist/components/table.d.ts.map +1 -1
- package/dist/components/tags.d.ts.map +1 -1
- package/dist/components/tags.js +1 -1
- package/dist/components/tags.js.map +1 -1
- package/dist/components/templated-text-field.d.ts +1 -1
- package/dist/components/templated-text-field.d.ts.map +1 -1
- package/dist/components/templated-text-field.js +10 -174
- package/dist/components/templated-text-field.js.map +1 -1
- package/dist/components/templated-text-kwargs-editor.d.ts +24 -0
- package/dist/components/templated-text-kwargs-editor.d.ts.map +1 -0
- package/dist/components/templated-text-kwargs-editor.js +48 -0
- package/dist/components/templated-text-kwargs-editor.js.map +1 -0
- package/dist/components/templated-text-kwargs.d.ts +37 -0
- package/dist/components/templated-text-kwargs.d.ts.map +1 -0
- package/dist/components/templated-text-kwargs.js +66 -0
- package/dist/components/templated-text-kwargs.js.map +1 -0
- package/dist/components/templated-text-source.d.ts +33 -0
- package/dist/components/templated-text-source.d.ts.map +1 -0
- package/dist/components/templated-text-source.js +53 -0
- package/dist/components/templated-text-source.js.map +1 -0
- package/dist/components/tool-picker-parts.d.ts +39 -0
- package/dist/components/tool-picker-parts.d.ts.map +1 -0
- package/dist/components/tool-picker-parts.js +87 -0
- package/dist/components/tool-picker-parts.js.map +1 -0
- package/dist/components/tool-picker.d.ts +1 -2
- package/dist/components/tool-picker.d.ts.map +1 -1
- package/dist/components/tool-picker.js +4 -66
- package/dist/components/tool-picker.js.map +1 -1
- package/dist/components/version-history-panel.d.ts.map +1 -1
- package/dist/components/version-history-panel.js +7 -34
- package/dist/components/version-history-panel.js.map +1 -1
- package/dist/components/version-history-rows.d.ts +48 -0
- package/dist/components/version-history-rows.d.ts.map +1 -0
- package/dist/components/version-history-rows.js +51 -0
- package/dist/components/version-history-rows.js.map +1 -0
- package/dist/components/view-toggle.d.ts.map +1 -1
- package/dist/components/view-toggle.js.map +1 -1
- package/dist/element-slot.d.ts +11 -0
- package/dist/element-slot.d.ts.map +1 -1
- package/dist/element-slot.js +0 -11
- package/dist/element-slot.js.map +1 -1
- package/dist/guards.d.ts +6 -0
- package/dist/guards.d.ts.map +1 -0
- package/dist/guards.js +8 -0
- package/dist/guards.js.map +1 -0
- package/dist/hooks/interactions-connection.d.ts +43 -0
- package/dist/hooks/interactions-connection.d.ts.map +1 -0
- package/dist/hooks/interactions-connection.js +171 -0
- package/dist/hooks/interactions-connection.js.map +1 -0
- package/dist/hooks/interactions-stream.d.ts +80 -0
- package/dist/hooks/interactions-stream.d.ts.map +1 -0
- package/dist/hooks/interactions-stream.js +233 -0
- package/dist/hooks/interactions-stream.js.map +1 -0
- package/dist/hooks/useApi.d.ts +2259 -2189
- package/dist/hooks/useApi.d.ts.map +1 -1
- package/dist/hooks/useApi.js +0 -11
- package/dist/hooks/useApi.js.map +1 -1
- package/dist/hooks/useAuth.d.ts +6 -0
- package/dist/hooks/useAuth.d.ts.map +1 -1
- package/dist/hooks/useAuth.js +0 -6
- package/dist/hooks/useAuth.js.map +1 -1
- package/dist/hooks/useCapabilities.d.ts +18 -2
- package/dist/hooks/useCapabilities.d.ts.map +1 -1
- package/dist/hooks/useCapabilities.js +1 -17
- package/dist/hooks/useCapabilities.js.map +1 -1
- package/dist/hooks/useSse.d.ts +34 -6
- package/dist/hooks/useSse.d.ts.map +1 -1
- package/dist/hooks/useSse.js +27 -471
- package/dist/hooks/useSse.js.map +1 -1
- package/dist/hooks/useSystemKinds.d.ts +1 -1
- package/dist/hooks/useSystemKinds.d.ts.map +1 -1
- package/dist/hooks/useSystemKinds.js +0 -18
- package/dist/hooks/useSystemKinds.js.map +1 -1
- package/dist/hooks/useTheme.d.ts +15 -0
- package/dist/hooks/useTheme.d.ts.map +1 -1
- package/dist/hooks/useTheme.js +0 -15
- package/dist/hooks/useTheme.js.map +1 -1
- package/dist/hooks/useToolDisplayNames.d.ts +0 -14
- package/dist/hooks/useToolDisplayNames.d.ts.map +1 -1
- package/dist/hooks/useToolDisplayNames.js +0 -14
- package/dist/hooks/useToolDisplayNames.js.map +1 -1
- package/dist/host.d.ts +3 -3
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +2 -9
- package/dist/host.js.map +1 -1
- package/dist/index.d.ts +103 -103
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +49 -62
- package/dist/index.js.map +1 -1
- package/dist/navigation/app-link.d.ts +25 -0
- package/dist/navigation/app-link.d.ts.map +1 -0
- package/dist/navigation/app-link.js +33 -0
- package/dist/navigation/app-link.js.map +1 -0
- package/dist/navigation/context.d.ts +3 -20
- package/dist/navigation/context.d.ts.map +1 -1
- package/dist/navigation/context.js +7 -267
- package/dist/navigation/context.js.map +1 -1
- package/dist/navigation/entry-state.d.ts +23 -0
- package/dist/navigation/entry-state.d.ts.map +1 -0
- package/dist/navigation/entry-state.js +39 -0
- package/dist/navigation/entry-state.js.map +1 -0
- package/dist/navigation/guard-registry.d.ts +30 -0
- package/dist/navigation/guard-registry.d.ts.map +1 -0
- package/dist/navigation/guard-registry.js +46 -0
- package/dist/navigation/guard-registry.js.map +1 -0
- package/dist/navigation/guarded-navigation.d.ts +24 -0
- package/dist/navigation/guarded-navigation.d.ts.map +1 -0
- package/dist/navigation/guarded-navigation.js +102 -0
- package/dist/navigation/guarded-navigation.js.map +1 -0
- package/dist/navigation/index.d.ts +5 -4
- package/dist/navigation/index.d.ts.map +1 -1
- package/dist/navigation/index.js +2 -1
- package/dist/navigation/index.js.map +1 -1
- package/dist/navigation/types.d.ts +8 -11
- package/dist/navigation/types.d.ts.map +1 -1
- package/dist/navigation/use-back-forward-guard.d.ts +12 -0
- package/dist/navigation/use-back-forward-guard.d.ts.map +1 -0
- package/dist/navigation/use-back-forward-guard.js +75 -0
- package/dist/navigation/use-back-forward-guard.js.map +1 -0
- package/dist/navigation/use-search-commit.d.ts.map +1 -1
- package/dist/navigation/use-search-commit.js.map +1 -1
- package/dist/plugin/host-state.d.ts.map +1 -1
- package/dist/plugin/host-state.js.map +1 -1
- package/dist/plugin/registry.d.ts +6 -15
- package/dist/plugin/registry.d.ts.map +1 -1
- package/dist/plugin/registry.js +83 -75
- package/dist/plugin/registry.js.map +1 -1
- package/dist/schema-editor/SchemaEditor.d.ts.map +1 -1
- package/dist/schema-editor/SchemaEditor.js.map +1 -1
- package/dist/schema-editor/index.d.ts +3 -3
- package/dist/schema-editor/index.d.ts.map +1 -1
- package/dist/schema-editor/index.js +1 -6
- package/dist/schema-editor/index.js.map +1 -1
- package/dist/schema-form/SecretRefField.d.ts +18 -3
- package/dist/schema-form/SecretRefField.d.ts.map +1 -1
- package/dist/schema-form/SecretRefField.js +21 -26
- package/dist/schema-form/SecretRefField.js.map +1 -1
- package/dist/schema-form/classify.d.ts +1 -113
- package/dist/schema-form/classify.d.ts.map +1 -1
- package/dist/schema-form/classify.js +174 -246
- package/dist/schema-form/classify.js.map +1 -1
- package/dist/schema-form/context.d.ts +6 -0
- package/dist/schema-form/context.d.ts.map +1 -1
- package/dist/schema-form/context.js +0 -6
- package/dist/schema-form/context.js.map +1 -1
- package/dist/schema-form/default-value.d.ts.map +1 -1
- package/dist/schema-form/default-value.js +42 -19
- package/dist/schema-form/default-value.js.map +1 -1
- package/dist/schema-form/enum-field.d.ts +1 -1
- package/dist/schema-form/enum-field.d.ts.map +1 -1
- package/dist/schema-form/field-group.d.ts +6 -0
- package/dist/schema-form/field-group.d.ts.map +1 -1
- package/dist/schema-form/field-group.js +0 -6
- package/dist/schema-form/field-group.js.map +1 -1
- package/dist/schema-form/field-model.d.ts +121 -0
- package/dist/schema-form/field-model.d.ts.map +1 -0
- package/dist/schema-form/field-model.js +2 -0
- package/dist/schema-form/field-model.js.map +1 -0
- package/dist/schema-form/field-node.d.ts.map +1 -1
- package/dist/schema-form/field-node.js +25 -14
- package/dist/schema-form/field-node.js.map +1 -1
- package/dist/schema-form/index.d.ts +8 -8
- package/dist/schema-form/index.d.ts.map +1 -1
- package/dist/schema-form/index.js +3 -34
- package/dist/schema-form/index.js.map +1 -1
- package/dist/schema-form/json-field.d.ts +19 -0
- package/dist/schema-form/json-field.d.ts.map +1 -1
- package/dist/schema-form/json-field.js +0 -19
- package/dist/schema-form/json-field.js.map +1 -1
- package/dist/schema-form/media-field.d.ts +1 -1
- package/dist/schema-form/media-field.d.ts.map +1 -1
- package/dist/schema-form/media-field.js +49 -30
- package/dist/schema-form/media-field.js.map +1 -1
- package/dist/schema-form/record-field.d.ts +12 -0
- package/dist/schema-form/record-field.d.ts.map +1 -1
- package/dist/schema-form/record-field.js +1 -13
- package/dist/schema-form/record-field.js.map +1 -1
- package/dist/schema-form/string-annotations.d.ts +20 -0
- package/dist/schema-form/string-annotations.d.ts.map +1 -0
- package/dist/schema-form/string-annotations.js +105 -0
- package/dist/schema-form/string-annotations.js.map +1 -0
- package/dist/schema-form/string-field.d.ts +1 -1
- package/dist/schema-form/string-field.d.ts.map +1 -1
- package/dist/schema-form/string-field.js +1 -1
- package/dist/schema-form/string-field.js.map +1 -1
- package/dist/schema-form/union-field.d.ts +1 -1
- package/dist/schema-form/union-field.d.ts.map +1 -1
- package/dist/schema-form/union-field.js.map +1 -1
- package/dist/schema-form/union.d.ts +8 -1
- package/dist/schema-form/union.d.ts.map +1 -1
- package/dist/schema-form/union.js +0 -7
- package/dist/schema-form/union.js.map +1 -1
- package/dist/schema-form/validate.d.ts.map +1 -1
- package/dist/schema-form/validate.js +126 -105
- package/dist/schema-form/validate.js.map +1 -1
- package/dist/state-binding/AdapterMapping.d.ts.map +1 -1
- package/dist/state-binding/AdapterMapping.js +0 -0
- package/dist/state-binding/AdapterMapping.js.map +1 -1
- package/dist/state-binding/BindingJqField.d.ts.map +1 -1
- package/dist/state-binding/BindingJqField.js +2 -2
- package/dist/state-binding/BindingJqField.js.map +1 -1
- package/dist/state-binding/InputInjectionRow.d.ts.map +1 -1
- package/dist/state-binding/InputInjectionRow.js +3 -3
- package/dist/state-binding/InputInjectionRow.js.map +1 -1
- package/dist/state-binding/StateAttachRow.d.ts.map +1 -1
- package/dist/state-binding/StateAttachRow.js +57 -41
- package/dist/state-binding/StateAttachRow.js.map +1 -1
- package/dist/state-binding/StateBindingSection.d.ts.map +1 -1
- package/dist/state-binding/StateBindingSection.js.map +1 -1
- package/dist/state-binding/SubjectScopeFields.d.ts.map +1 -1
- package/dist/state-binding/SubjectScopeFields.js.map +1 -1
- package/dist/state-binding/UpdateRow.d.ts.map +1 -1
- package/dist/state-binding/UpdateRow.js +2 -2
- package/dist/state-binding/UpdateRow.js.map +1 -1
- package/dist/state-binding/adapter-mapping-row.d.ts +17 -0
- package/dist/state-binding/adapter-mapping-row.d.ts.map +1 -0
- package/dist/state-binding/adapter-mapping-row.js +87 -0
- package/dist/state-binding/adapter-mapping-row.js.map +1 -0
- package/dist/state-binding/index.d.ts +21 -21
- package/dist/state-binding/index.d.ts.map +1 -1
- package/dist/state-binding/index.js +9 -15
- package/dist/state-binding/index.js.map +1 -1
- package/dist/state-binding/templated-text-catalog.d.ts.map +1 -1
- package/dist/state-binding/templated-text-catalog.js.map +1 -1
- package/dist/state-binding/types.d.ts +2 -2
- package/dist/state-binding/types.d.ts.map +1 -1
- package/dist/structured-output/StructuredOutput.d.ts.map +1 -1
- package/dist/structured-output/StructuredOutput.js +1 -3
- package/dist/structured-output/StructuredOutput.js.map +1 -1
- package/package.json +2 -2
- package/src/components/code-block.tsx +1 -1
- package/src/components/confirm-dialog.tsx +1 -1
- package/src/components/copy-field.tsx +1 -1
- package/src/components/date-range-picker.tsx +1 -1
- package/src/components/dialog.tsx +1 -1
- package/src/components/dirty-guard.tsx +3 -3
- package/src/components/explorer-body.tsx +239 -0
- package/src/components/explorer-page-size.ts +39 -0
- package/src/components/explorer-tag-filter.tsx +80 -0
- package/src/components/explorer-tags.ts +64 -0
- package/src/components/explorer-view.tsx +115 -367
- package/src/components/extension-combo-builder.tsx +35 -153
- package/src/components/extension-combo-parts.tsx +236 -0
- package/src/components/field.tsx +1 -1
- package/src/components/fleet-report.tsx +98 -55
- package/src/components/folder-nav.tsx +2 -2
- package/src/components/form-dialog.tsx +2 -2
- package/src/components/icons/chrome-marks.tsx +195 -0
- package/src/components/icons/icon-frame.tsx +50 -0
- package/src/components/icons/index.ts +84 -0
- package/src/components/icons/nav-map.ts +55 -0
- package/src/components/icons/nav-marks.tsx +205 -0
- package/src/components/icons/status-marks.tsx +46 -0
- package/src/components/icons/theme-marks.tsx +33 -0
- package/src/components/inputs.tsx +1 -1
- package/src/components/json-diff.tsx +1 -4
- package/src/components/json-tree-context.ts +26 -0
- package/src/components/json-tree-model.ts +139 -0
- package/src/components/json-tree-nodes.tsx +224 -0
- package/src/components/json-tree.tsx +15 -434
- package/src/components/json-value-format.ts +64 -0
- package/src/components/markdown-blocks.ts +198 -0
- package/src/components/markdown-inline.tsx +365 -0
- package/src/components/markdown.tsx +6 -472
- package/src/components/observer-registry.ts +139 -0
- package/src/components/overflow-measure.ts +69 -0
- package/src/components/page-fill.tsx +1 -1
- package/src/components/prose-regions.ts +153 -0
- package/src/components/radio-group.tsx +1 -1
- package/src/components/scroll-region.tsx +22 -361
- package/src/components/tab-stop-parse.ts +217 -0
- package/src/components/table.tsx +1 -1
- package/src/components/tags.tsx +2 -2
- package/src/components/templated-text-field.tsx +39 -332
- package/src/components/templated-text-kwargs-editor.tsx +147 -0
- package/src/components/templated-text-kwargs.ts +92 -0
- package/src/components/templated-text-source.tsx +226 -0
- package/src/components/tool-picker-parts.tsx +184 -0
- package/src/components/tool-picker.tsx +22 -114
- package/src/components/version-history-panel.tsx +39 -143
- package/src/components/version-history-rows.tsx +220 -0
- package/src/components/view-toggle.tsx +1 -1
- package/src/element-slot.ts +1 -1
- package/src/guards.ts +7 -0
- package/src/hooks/interactions-connection.ts +227 -0
- package/src/hooks/interactions-stream.ts +274 -0
- package/src/hooks/useApi.ts +1 -1
- package/src/hooks/useAuth.ts +1 -1
- package/src/hooks/useCapabilities.ts +3 -3
- package/src/hooks/useSse.ts +51 -478
- package/src/hooks/useSystemKinds.tsx +2 -2
- package/src/hooks/useTheme.ts +1 -1
- package/src/hooks/useToolDisplayNames.tsx +2 -2
- package/src/host.ts +7 -7
- package/src/index.ts +292 -292
- package/src/navigation/app-link.tsx +70 -0
- package/src/navigation/context.tsx +12 -331
- package/src/navigation/entry-state.ts +42 -0
- package/src/navigation/guard-registry.ts +65 -0
- package/src/navigation/guarded-navigation.ts +147 -0
- package/src/navigation/index.ts +14 -14
- package/src/navigation/types.ts +8 -11
- package/src/navigation/use-back-forward-guard.ts +90 -0
- package/src/navigation/use-search-commit.ts +1 -1
- package/src/plugin/host-state.ts +1 -1
- package/src/plugin/registry.ts +111 -90
- package/src/schema-editor/SchemaEditor.tsx +1 -1
- package/src/schema-editor/index.ts +3 -3
- package/src/schema-form/SecretRefField.tsx +122 -72
- package/src/schema-form/classify.ts +245 -396
- package/src/schema-form/context.ts +1 -1
- package/src/schema-form/default-value.ts +48 -17
- package/src/schema-form/enum-field.tsx +1 -1
- package/src/schema-form/field-group.tsx +1 -1
- package/src/schema-form/field-model.ts +133 -0
- package/src/schema-form/field-node.tsx +95 -39
- package/src/schema-form/index.ts +10 -10
- package/src/schema-form/json-field.tsx +1 -1
- package/src/schema-form/media-field.tsx +136 -67
- package/src/schema-form/record-field.tsx +2 -2
- package/src/schema-form/string-annotations.ts +111 -0
- package/src/schema-form/string-field.tsx +2 -2
- package/src/schema-form/union-field.tsx +3 -2
- package/src/schema-form/union.ts +1 -1
- package/src/schema-form/validate.ts +185 -104
- package/src/state-binding/AdapterMapping.tsx +0 -0
- package/src/state-binding/BindingJqField.tsx +3 -3
- package/src/state-binding/InputInjectionRow.tsx +4 -4
- package/src/state-binding/StateAttachRow.tsx +229 -154
- package/src/state-binding/StateBindingSection.tsx +1 -1
- package/src/state-binding/SubjectScopeFields.tsx +1 -1
- package/src/state-binding/UpdateRow.tsx +3 -3
- package/src/state-binding/adapter-mapping-row.tsx +232 -0
- package/src/state-binding/index.ts +43 -43
- package/src/state-binding/templated-text-catalog.ts +0 -1
- package/src/state-binding/types.ts +2 -2
- package/src/structured-output/StructuredOutput.tsx +1 -4
- package/dist/components/icons.d.ts +0 -160
- package/dist/components/icons.d.ts.map +0 -1
- package/dist/components/icons.js +0 -160
- package/dist/components/icons.js.map +0 -1
- package/src/components/icons.tsx +0 -586
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One row of the adapter mapping form: it picks ONE of three value sources for a
|
|
3
|
+
* declared input key — a picked field (from the run's output / input schema), a
|
|
4
|
+
* hardcoded literal, or a jq expression — and shows the row's own compiled jq on
|
|
5
|
+
* demand. {@link AdapterMapping} composes one editor per declared key.
|
|
6
|
+
*/
|
|
7
|
+
import { type ReactNode, useState } from 'react';
|
|
8
|
+
|
|
9
|
+
import { Badge } from '../components/badge';
|
|
10
|
+
import { Field } from '../components/field';
|
|
11
|
+
import { TextInput } from '../components/inputs';
|
|
12
|
+
import { Button, Skeleton } from '../components/primitives';
|
|
13
|
+
import { Select } from '../components/select';
|
|
14
|
+
import { type FieldRoot, type MappingRow, type MappingSource, rowValueJq } from './adapter';
|
|
15
|
+
import { BindingJqField, type TemplateJqSuggestion } from './BindingJqField';
|
|
16
|
+
import type { BindingSourceSchemas, SchemaFieldPath } from './types';
|
|
17
|
+
|
|
18
|
+
const ROOT_OPTIONS: readonly { value: FieldRoot; label: string }[] = [
|
|
19
|
+
{ value: 'output', label: 'Run output' },
|
|
20
|
+
{ value: 'input', label: 'Run input' },
|
|
21
|
+
];
|
|
22
|
+
|
|
23
|
+
const SOURCE_OPTIONS = [
|
|
24
|
+
{ value: 'field', label: 'Field' },
|
|
25
|
+
{ value: 'literal', label: 'Literal' },
|
|
26
|
+
{ value: 'jq', label: 'Jq' },
|
|
27
|
+
];
|
|
28
|
+
|
|
29
|
+
function fieldsFor(
|
|
30
|
+
root: FieldRoot,
|
|
31
|
+
sources: BindingSourceSchemas | undefined,
|
|
32
|
+
): readonly SchemaFieldPath[] {
|
|
33
|
+
if (root === 'output') return sources?.output ?? [];
|
|
34
|
+
return sources?.input ?? [];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** The value control for one row's picked-field source: a Select where a schema is known, else a path input. */
|
|
38
|
+
function FieldSourceControl({
|
|
39
|
+
root,
|
|
40
|
+
path,
|
|
41
|
+
onRootChange,
|
|
42
|
+
onPathChange,
|
|
43
|
+
fields,
|
|
44
|
+
loading = false,
|
|
45
|
+
error,
|
|
46
|
+
}: {
|
|
47
|
+
readonly root: FieldRoot;
|
|
48
|
+
readonly path: readonly string[];
|
|
49
|
+
readonly onRootChange: (root: FieldRoot) => void;
|
|
50
|
+
readonly onPathChange: (path: readonly string[]) => void;
|
|
51
|
+
readonly fields: readonly SchemaFieldPath[];
|
|
52
|
+
readonly loading?: boolean;
|
|
53
|
+
readonly error?: string;
|
|
54
|
+
}): ReactNode {
|
|
55
|
+
const pathInput = (
|
|
56
|
+
<TextInput
|
|
57
|
+
aria-label="Field path"
|
|
58
|
+
placeholder="path.into.value"
|
|
59
|
+
value={path.join('.')}
|
|
60
|
+
onChange={(event) => {
|
|
61
|
+
const text = event.target.value.trim();
|
|
62
|
+
onPathChange(text === '' ? [] : text.split('.'));
|
|
63
|
+
}}
|
|
64
|
+
/>
|
|
65
|
+
);
|
|
66
|
+
return (
|
|
67
|
+
<div style={{ display: 'flex', flexDirection: 'column', gap: 'var(--tai-space-1)' }}>
|
|
68
|
+
<div style={{ display: 'flex', gap: 'var(--tai-space-2)', flexWrap: 'wrap' }}>
|
|
69
|
+
<Field label="Field root" hideLabel>
|
|
70
|
+
<Select
|
|
71
|
+
value={root}
|
|
72
|
+
onValueChange={(next) => {
|
|
73
|
+
onRootChange(next as FieldRoot);
|
|
74
|
+
}}
|
|
75
|
+
options={ROOT_OPTIONS.map((option) => ({ value: option.value, label: option.label }))}
|
|
76
|
+
/>
|
|
77
|
+
</Field>
|
|
78
|
+
{loading ? (
|
|
79
|
+
<Skeleton height={32} width={220} />
|
|
80
|
+
) : fields.length > 0 ? (
|
|
81
|
+
<Field label="Field" hideLabel>
|
|
82
|
+
<Select
|
|
83
|
+
placeholder="Choose a field"
|
|
84
|
+
value={path.length === 0 ? '' : JSON.stringify(path)}
|
|
85
|
+
onValueChange={(next) => {
|
|
86
|
+
onPathChange(next === '' ? [] : (JSON.parse(next) as string[]));
|
|
87
|
+
}}
|
|
88
|
+
options={[
|
|
89
|
+
{ value: '', label: '(whole value)' },
|
|
90
|
+
...fields.map((field) => ({
|
|
91
|
+
value: JSON.stringify(field.path),
|
|
92
|
+
label: field.label,
|
|
93
|
+
})),
|
|
94
|
+
]}
|
|
95
|
+
/>
|
|
96
|
+
</Field>
|
|
97
|
+
) : (
|
|
98
|
+
pathInput
|
|
99
|
+
)}
|
|
100
|
+
</div>
|
|
101
|
+
{error !== undefined && !loading ? (
|
|
102
|
+
<span
|
|
103
|
+
role="status"
|
|
104
|
+
style={{ color: 'var(--tai-color-text-muted)', fontSize: 'var(--tai-text-sm)' }}
|
|
105
|
+
>
|
|
106
|
+
{error}
|
|
107
|
+
</span>
|
|
108
|
+
) : null}
|
|
109
|
+
</div>
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function MappingRowEditor({
|
|
114
|
+
row,
|
|
115
|
+
onChange,
|
|
116
|
+
sources,
|
|
117
|
+
suggestions,
|
|
118
|
+
}: {
|
|
119
|
+
readonly row: MappingRow;
|
|
120
|
+
readonly onChange: (row: MappingRow) => void;
|
|
121
|
+
readonly sources?: BindingSourceSchemas;
|
|
122
|
+
readonly suggestions?: readonly TemplateJqSuggestion[];
|
|
123
|
+
}): ReactNode {
|
|
124
|
+
const [showJq, setShowJq] = useState(false);
|
|
125
|
+
const source = row.source;
|
|
126
|
+
const preview = rowValueJq(source);
|
|
127
|
+
|
|
128
|
+
const setSource = (next: MappingSource): void => {
|
|
129
|
+
onChange({ ...row, source: next });
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
const changeKind = (kind: string): void => {
|
|
133
|
+
if (kind === 'field') setSource({ kind: 'field', root: 'output', path: [] });
|
|
134
|
+
else if (kind === 'literal') setSource({ kind: 'literal', json: '' });
|
|
135
|
+
else setSource({ kind: 'jq', expr: '' });
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
return (
|
|
139
|
+
<div
|
|
140
|
+
data-testid={`adapter-row-${row.target}`}
|
|
141
|
+
style={{
|
|
142
|
+
display: 'flex',
|
|
143
|
+
flexDirection: 'column',
|
|
144
|
+
gap: 'var(--tai-space-1)',
|
|
145
|
+
padding: 'var(--tai-space-2)',
|
|
146
|
+
border: '1px solid var(--tai-color-border)',
|
|
147
|
+
borderRadius: 'var(--tai-radius-md)',
|
|
148
|
+
}}
|
|
149
|
+
>
|
|
150
|
+
<div
|
|
151
|
+
style={{
|
|
152
|
+
display: 'flex',
|
|
153
|
+
alignItems: 'center',
|
|
154
|
+
gap: 'var(--tai-space-2)',
|
|
155
|
+
flexWrap: 'wrap',
|
|
156
|
+
}}
|
|
157
|
+
>
|
|
158
|
+
<Badge variant="neutral">{row.target}</Badge>
|
|
159
|
+
<Field label={`Source for ${row.target}`} hideLabel>
|
|
160
|
+
<Select
|
|
161
|
+
aria-label={`Source for ${row.target}`}
|
|
162
|
+
value={source.kind}
|
|
163
|
+
onValueChange={changeKind}
|
|
164
|
+
options={SOURCE_OPTIONS}
|
|
165
|
+
/>
|
|
166
|
+
</Field>
|
|
167
|
+
</div>
|
|
168
|
+
|
|
169
|
+
{source.kind === 'field' ? (
|
|
170
|
+
<FieldSourceControl
|
|
171
|
+
root={source.root}
|
|
172
|
+
path={source.path}
|
|
173
|
+
fields={fieldsFor(source.root, sources)}
|
|
174
|
+
loading={sources?.loading}
|
|
175
|
+
error={sources?.error}
|
|
176
|
+
onRootChange={(nextRoot) => {
|
|
177
|
+
setSource({ kind: 'field', root: nextRoot, path: [] });
|
|
178
|
+
}}
|
|
179
|
+
onPathChange={(nextPath) => {
|
|
180
|
+
setSource({ kind: 'field', root: source.root, path: nextPath });
|
|
181
|
+
}}
|
|
182
|
+
/>
|
|
183
|
+
) : source.kind === 'literal' ? (
|
|
184
|
+
<Field
|
|
185
|
+
label={`Literal for ${row.target}`}
|
|
186
|
+
hideLabel
|
|
187
|
+
error={preview.ok ? undefined : preview.error}
|
|
188
|
+
>
|
|
189
|
+
<TextInput
|
|
190
|
+
aria-label={`Literal for ${row.target}`}
|
|
191
|
+
placeholder='"a string", 42, true, or {"k":1}'
|
|
192
|
+
value={source.json}
|
|
193
|
+
onChange={(event) => {
|
|
194
|
+
setSource({ kind: 'literal', json: event.target.value });
|
|
195
|
+
}}
|
|
196
|
+
/>
|
|
197
|
+
</Field>
|
|
198
|
+
) : (
|
|
199
|
+
<BindingJqField
|
|
200
|
+
label={`Jq for ${row.target}`}
|
|
201
|
+
value={source.expr}
|
|
202
|
+
onChange={(next) => {
|
|
203
|
+
setSource({ kind: 'jq', expr: next });
|
|
204
|
+
}}
|
|
205
|
+
error={preview.ok ? undefined : preview.error}
|
|
206
|
+
suggestions={suggestions}
|
|
207
|
+
/>
|
|
208
|
+
)}
|
|
209
|
+
|
|
210
|
+
<div>
|
|
211
|
+
<Button
|
|
212
|
+
type="button"
|
|
213
|
+
variant="ghost"
|
|
214
|
+
aria-expanded={showJq}
|
|
215
|
+
onClick={() => {
|
|
216
|
+
setShowJq((open) => !open);
|
|
217
|
+
}}
|
|
218
|
+
>
|
|
219
|
+
{showJq ? 'Hide jq' : 'Show jq'}
|
|
220
|
+
</Button>
|
|
221
|
+
{showJq ? (
|
|
222
|
+
<pre
|
|
223
|
+
data-testid={`adapter-row-jq-${row.target}`}
|
|
224
|
+
style={{ margin: 0, fontFamily: 'var(--tai-font-mono)', whiteSpace: 'pre-wrap' }}
|
|
225
|
+
>
|
|
226
|
+
{preview.ok ? preview.jq : preview.error}
|
|
227
|
+
</pre>
|
|
228
|
+
) : null}
|
|
229
|
+
</div>
|
|
230
|
+
</div>
|
|
231
|
+
);
|
|
232
|
+
}
|
|
@@ -4,64 +4,64 @@
|
|
|
4
4
|
* (in the flow engine) the node State tab. Holds no edge to jq; paints from SDK
|
|
5
5
|
* tokens only.
|
|
6
6
|
*/
|
|
7
|
-
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export type { UpdateListProps } from './UpdateRow';
|
|
17
|
-
export { AdapterMapping } from './AdapterMapping';
|
|
18
|
-
export type { AdapterMappingProps } from './AdapterMapping';
|
|
19
|
-
export { SubjectScopeFields } from './SubjectScopeFields';
|
|
20
|
-
export type { SubjectScopeFieldsProps } from './SubjectScopeFields';
|
|
21
|
-
export { BindingJqField, appendTjq } from './BindingJqField';
|
|
22
|
-
export type { BindingJqFieldProps, TemplateJqSuggestion } from './BindingJqField';
|
|
23
|
-
export { BindingTemplatedJqField } from './BindingTemplatedJqField';
|
|
24
|
-
export type { BindingTemplatedJqFieldProps } from './BindingTemplatedJqField';
|
|
25
|
-
export { resolveTemplateJq, findByRef, resolveCallName } from './catalog';
|
|
26
|
-
export type { ResolvedTemplateJq } from './catalog';
|
|
27
|
-
export { templatedTextCatalog } from './templated-text-catalog';
|
|
28
|
-
export type { StoragePresenceQueryLike, TemplateNamesQueryLike } from './templated-text-catalog';
|
|
29
|
-
export {
|
|
30
|
-
templatesCatalogFromList,
|
|
31
|
-
statesCatalogFromList,
|
|
32
|
-
fieldPathsFromSchema,
|
|
33
|
-
} from './build-catalog';
|
|
7
|
+
export type {
|
|
8
|
+
AdapterCompileResult,
|
|
9
|
+
FieldRoot,
|
|
10
|
+
FieldSource,
|
|
11
|
+
JqSource,
|
|
12
|
+
LiteralSource,
|
|
13
|
+
MappingRow,
|
|
14
|
+
MappingSource,
|
|
15
|
+
} from './adapter';
|
|
34
16
|
export {
|
|
35
17
|
compileAdapter,
|
|
36
|
-
|
|
18
|
+
defaultRowsForInput,
|
|
19
|
+
encodeTemplateSegment,
|
|
37
20
|
fieldPathToJq,
|
|
21
|
+
generateTemplateCall,
|
|
38
22
|
jqKey,
|
|
39
|
-
defaultRowsForInput,
|
|
40
23
|
parseAdapter,
|
|
41
24
|
parseFieldPath,
|
|
42
|
-
generateTemplateCall,
|
|
43
25
|
parseTemplateCall,
|
|
44
|
-
|
|
45
|
-
} from './adapter';
|
|
46
|
-
export type {
|
|
47
|
-
MappingRow,
|
|
48
|
-
MappingSource,
|
|
49
|
-
FieldSource,
|
|
50
|
-
LiteralSource,
|
|
51
|
-
JqSource,
|
|
52
|
-
FieldRoot,
|
|
53
|
-
AdapterCompileResult,
|
|
26
|
+
rowValueJq,
|
|
54
27
|
} from './adapter';
|
|
28
|
+
export type { AdapterMappingProps } from './AdapterMapping';
|
|
29
|
+
export { AdapterMapping } from './AdapterMapping';
|
|
30
|
+
export type { BindingJqFieldProps, TemplateJqSuggestion } from './BindingJqField';
|
|
31
|
+
export { appendTjq, BindingJqField } from './BindingJqField';
|
|
32
|
+
export type { BindingTemplatedJqFieldProps } from './BindingTemplatedJqField';
|
|
33
|
+
export { BindingTemplatedJqField } from './BindingTemplatedJqField';
|
|
34
|
+
export {
|
|
35
|
+
fieldPathsFromSchema,
|
|
36
|
+
statesCatalogFromList,
|
|
37
|
+
templatesCatalogFromList,
|
|
38
|
+
} from './build-catalog';
|
|
39
|
+
export type { ResolvedTemplateJq } from './catalog';
|
|
40
|
+
export { findByRef, resolveCallName, resolveTemplateJq } from './catalog';
|
|
41
|
+
export type { InjectionListProps } from './InputInjectionRow';
|
|
42
|
+
export { InjectionList } from './InputInjectionRow';
|
|
43
|
+
export type { InheritedSubject, StateAttachRowProps } from './StateAttachRow';
|
|
44
|
+
export { StateAttachRow } from './StateAttachRow';
|
|
45
|
+
export type { StateBindingEditorProps } from './StateBindingEditor';
|
|
46
|
+
export { StateBindingEditor } from './StateBindingEditor';
|
|
47
|
+
export type { StateBindingSectionProps } from './StateBindingSection';
|
|
48
|
+
export { StateBindingSection } from './StateBindingSection';
|
|
49
|
+
export type { SubjectScopeFieldsProps } from './SubjectScopeFields';
|
|
50
|
+
export { SubjectScopeFields } from './SubjectScopeFields';
|
|
51
|
+
export type { StoragePresenceQueryLike, TemplateNamesQueryLike } from './templated-text-catalog';
|
|
52
|
+
export { templatedTextCatalog } from './templated-text-catalog';
|
|
55
53
|
export type {
|
|
54
|
+
BindingSourceSchemas,
|
|
56
55
|
BindingStateOption,
|
|
57
|
-
BindingTemplateOption,
|
|
58
56
|
BindingTemplateJqOption,
|
|
59
|
-
|
|
57
|
+
BindingTemplateOption,
|
|
60
58
|
SchemaFieldPath,
|
|
61
|
-
StateBinding,
|
|
62
59
|
StateAttach,
|
|
60
|
+
StateBinding,
|
|
63
61
|
StateInjection,
|
|
64
62
|
StateUpdate,
|
|
65
63
|
TemplatedText,
|
|
66
64
|
TemplatedTextCatalog,
|
|
67
65
|
} from './types';
|
|
66
|
+
export type { UpdateListProps } from './UpdateRow';
|
|
67
|
+
export { UpdateList } from './UpdateRow';
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* known — the fields a picker offers.
|
|
9
9
|
*/
|
|
10
10
|
import type {
|
|
11
|
-
StateBinding,
|
|
12
11
|
StateAttach,
|
|
12
|
+
StateBinding,
|
|
13
13
|
StateInjection,
|
|
14
14
|
StateUpdate,
|
|
15
15
|
TemplatedText,
|
|
@@ -17,7 +17,7 @@ import type {
|
|
|
17
17
|
|
|
18
18
|
import type { TemplatedTextTemplateOption } from '../components/templated-text-field';
|
|
19
19
|
|
|
20
|
-
export type {
|
|
20
|
+
export type { StateAttach, StateBinding, StateInjection, StateUpdate, TemplatedText };
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* The stored templates a {@link TemplatedText} field's id picker offers, with the
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { ReactNode } from 'react';
|
|
13
13
|
|
|
14
14
|
import { JsonTree } from '../components/json-tree';
|
|
15
|
+
import { isRecord } from '../guards';
|
|
15
16
|
import { resolveRef } from '../schema-form/resolve';
|
|
16
17
|
import type { JsonSchema } from '../schema-form/types';
|
|
17
18
|
|
|
@@ -25,10 +26,6 @@ export interface StructuredOutputProps {
|
|
|
25
26
|
/** The pane's name when the payload has no schema to name it by. */
|
|
26
27
|
const RAW_OUTPUT_LABEL = 'Structured output';
|
|
27
28
|
|
|
28
|
-
function isRecord(value: unknown): value is Record<string, unknown> {
|
|
29
|
-
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
29
|
function isObjectSchema(
|
|
33
30
|
schema: JsonSchema | undefined,
|
|
34
31
|
root: JsonSchema | undefined,
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The design system's icon set — the ONLY sanctioned source of iconography in
|
|
3
|
-
* Studio (Unicode glyphs as icons are banned).
|
|
4
|
-
*
|
|
5
|
-
* Every mark is hand-authored inline SVG on a 24-unit grid with ~2 units of
|
|
6
|
-
* optical padding, drawn stroke-only in `currentColor` at a uniform 1.6 stroke.
|
|
7
|
-
* Because the paint is `currentColor` an icon inherits the ink of whatever it
|
|
8
|
-
* sits in — a token color at FULL opacity, never a dimmed one; to mute an icon,
|
|
9
|
-
* mute the surrounding text color, never the icon's alpha.
|
|
10
|
-
*
|
|
11
|
-
* Sizing is owned by the `tai-icon` class (16 px square, no shrink), which every
|
|
12
|
-
* icon applies unconditionally. A caller-supplied `className` is APPENDED to it,
|
|
13
|
-
* the way every other design-system primitive treats the prop — an inline `<svg>`
|
|
14
|
-
* with a `viewBox` and no width/height has no intrinsic size, so a `className`
|
|
15
|
-
* that replaced `tai-icon` would not make the mark slightly wrong, it would blow
|
|
16
|
-
* it up to the replaced-element default.
|
|
17
|
-
*
|
|
18
|
-
* Icons are decorative by default (`aria-hidden="true"`): they accompany a text
|
|
19
|
-
* label or sit inside a control that carries its own accessible name. An icon
|
|
20
|
-
* that is the ONLY carrier of meaning is given a name by the caller —
|
|
21
|
-
* `<AlertTriangleIcon aria-label="Warning" />` — and NAMING IT IS ENOUGH: the
|
|
22
|
-
* frame derives the other two attributes from the name, so `aria-hidden` is
|
|
23
|
-
* dropped and `role="img"` supplied. A name and `aria-hidden` can therefore
|
|
24
|
-
* never ship together by omission. Both derived attributes are still
|
|
25
|
-
* overridable through the prop spread, and the older explicit three-prop form
|
|
26
|
-
* (`aria-hidden={false} role="img" aria-label="…"`) keeps working unchanged.
|
|
27
|
-
*
|
|
28
|
-
* {@link NAV_ICONS} is PUBLISHED SURFACE: the canonical route-token → icon
|
|
29
|
-
* mapping, exported so a navigation surface renders the agreed mark for a route
|
|
30
|
-
* instead of choosing one. Studio's own shell renders its nav as text and reads
|
|
31
|
-
* none of it; the map is exhaustive over {@link RouteToken} regardless, so a new
|
|
32
|
-
* route fails the build here until it has a mark.
|
|
33
|
-
*/
|
|
34
|
-
import type { ReactElement, SVGProps } from 'react';
|
|
35
|
-
import type { RouteToken } from '../navigation/types';
|
|
36
|
-
/**
|
|
37
|
-
* Props of every icon: the full SVG surface, so `style`, events and ARIA pass
|
|
38
|
-
* through. `className` is APPENDED to the `tai-icon` sizing class rather than
|
|
39
|
-
* replacing it — the same merge every other design-system primitive does.
|
|
40
|
-
*/
|
|
41
|
-
export type IconProps = SVGProps<SVGSVGElement>;
|
|
42
|
-
/** The shape every exported icon satisfies. */
|
|
43
|
-
export type IconComponent = (props: IconProps) => ReactElement;
|
|
44
|
-
/** Observability: a dial gauge — arc, base and needle. */
|
|
45
|
-
export declare const DashboardIcon: IconComponent;
|
|
46
|
-
/** Tools: an open-ended spanner over its handle. */
|
|
47
|
-
export declare const ToolsIcon: IconComponent;
|
|
48
|
-
/** Agents: a bot — antenna, panel head with eyes and mouth, side ports. */
|
|
49
|
-
export declare const AgentsIcon: IconComponent;
|
|
50
|
-
/** Presets: three sliders, each with its knob at a different stop. */
|
|
51
|
-
export declare const PresetsIcon: IconComponent;
|
|
52
|
-
/** Extensions: a jigsaw piece — knob above, socket to the right. */
|
|
53
|
-
export declare const ExtensionsIcon: IconComponent;
|
|
54
|
-
/** Templates: a stack of two sheets, the front one offset. */
|
|
55
|
-
export declare const TemplatesIcon: IconComponent;
|
|
56
|
-
/** Connectors: a two-pin power plug on its lead. */
|
|
57
|
-
export declare const ConnectorsIcon: IconComponent;
|
|
58
|
-
/** Hooks: a webhook fan-out — one source branching to two subscribers. */
|
|
59
|
-
export declare const HooksIcon: IconComponent;
|
|
60
|
-
/** Storage: a database cylinder with two shelves. */
|
|
61
|
-
export declare const StorageIcon: IconComponent;
|
|
62
|
-
/** States: a stacked-disk cylinder — one document store per subject. */
|
|
63
|
-
export declare const DatabaseIcon: IconComponent;
|
|
64
|
-
/** Scheduling: a calendar grid with its binding posts. */
|
|
65
|
-
export declare const SchedulingIcon: IconComponent;
|
|
66
|
-
/** Interactions: two overlapping speech bubbles — a conversation. */
|
|
67
|
-
export declare const InteractionsIcon: IconComponent;
|
|
68
|
-
/** Notifications: a bell with its clapper. */
|
|
69
|
-
export declare const NotificationsIcon: IconComponent;
|
|
70
|
-
/** Conversations: one speech bubble holding transcript lines. */
|
|
71
|
-
export declare const ConversationsIcon: IconComponent;
|
|
72
|
-
/** Marketplace: a shopping bag. */
|
|
73
|
-
export declare const MarketplaceIcon: IconComponent;
|
|
74
|
-
/** Manifest: a document with a folded corner and its entries. */
|
|
75
|
-
export declare const ManifestIcon: IconComponent;
|
|
76
|
-
/** Settings: an eight-tooth cog around its bore. */
|
|
77
|
-
export declare const SettingsIcon: IconComponent;
|
|
78
|
-
/** System: a processor die with its pins. */
|
|
79
|
-
export declare const SystemIcon: IconComponent;
|
|
80
|
-
/** A magnifier. */
|
|
81
|
-
export declare const SearchIcon: IconComponent;
|
|
82
|
-
/** Sign out: a door with an outbound arrow. */
|
|
83
|
-
export declare const SignOutIcon: IconComponent;
|
|
84
|
-
/** The three-bar menu / drawer toggle. */
|
|
85
|
-
export declare const MenuIcon: IconComponent;
|
|
86
|
-
/** Dismiss. */
|
|
87
|
-
export declare const CloseIcon: IconComponent;
|
|
88
|
-
/** A funnel. */
|
|
89
|
-
export declare const FilterIcon: IconComponent;
|
|
90
|
-
/** Back / previous. */
|
|
91
|
-
export declare const ArrowLeftIcon: IconComponent;
|
|
92
|
-
/** Move the item one place earlier in an ordered list. */
|
|
93
|
-
export declare const ArrowUpIcon: IconComponent;
|
|
94
|
-
/** Move the item one place later in an ordered list. */
|
|
95
|
-
export declare const ArrowDownIcon: IconComponent;
|
|
96
|
-
/** Expand / collapse affordance. */
|
|
97
|
-
export declare const ChevronDownIcon: IconComponent;
|
|
98
|
-
/** Disclosure / breadcrumb separator. */
|
|
99
|
-
export declare const ChevronRightIcon: IconComponent;
|
|
100
|
-
/** A bare tick, for selection and confirmation. */
|
|
101
|
-
export declare const CheckIcon: IconComponent;
|
|
102
|
-
/** A bare dash, for a partial selection — the tick's mixed-state counterpart. */
|
|
103
|
-
export declare const MinusIcon: IconComponent;
|
|
104
|
-
/** Add / insert: the dash crossed by an upright, for an append or attach affordance. */
|
|
105
|
-
export declare const PlusIcon: IconComponent;
|
|
106
|
-
/** Edit: a pencil laid across the surface it writes on. */
|
|
107
|
-
export declare const EditIcon: IconComponent;
|
|
108
|
-
/** Detach / unmount: a plug pulled from its socket, the two prongs above the gap. */
|
|
109
|
-
export declare const UnplugIcon: IconComponent;
|
|
110
|
-
/** Copy to clipboard: a sheet duplicated behind another. */
|
|
111
|
-
export declare const CopyIcon: IconComponent;
|
|
112
|
-
/** Opens in a new tab / leaves the app. */
|
|
113
|
-
export declare const ExternalLinkIcon: IconComponent;
|
|
114
|
-
/** Ascending sort: an up arrow beside narrow-to-wide rows. */
|
|
115
|
-
export declare const SortAscIcon: IconComponent;
|
|
116
|
-
/** Descending sort: a down arrow beside wide-to-narrow rows. */
|
|
117
|
-
export declare const SortDescIcon: IconComponent;
|
|
118
|
-
/** Light theme. */
|
|
119
|
-
export declare const SunIcon: IconComponent;
|
|
120
|
-
/** Dark theme. */
|
|
121
|
-
export declare const MoonIcon: IconComponent;
|
|
122
|
-
/** Follow the operating system. */
|
|
123
|
-
export declare const MonitorIcon: IconComponent;
|
|
124
|
-
/** Reveal a masked value. */
|
|
125
|
-
export declare const EyeIcon: IconComponent;
|
|
126
|
-
/** Mask a revealed value. */
|
|
127
|
-
export declare const EyeOffIcon: IconComponent;
|
|
128
|
-
/** Success. */
|
|
129
|
-
export declare const CheckCircleIcon: IconComponent;
|
|
130
|
-
/** Warning. */
|
|
131
|
-
export declare const AlertTriangleIcon: IconComponent;
|
|
132
|
-
/** Failure. */
|
|
133
|
-
export declare const XCircleIcon: IconComponent;
|
|
134
|
-
/**
|
|
135
|
-
* Pending / running / queued — a clock hand inside a dashed ring.
|
|
136
|
-
*
|
|
137
|
-
* The dash period has to TILE the circumference or the ring closes on a seam.
|
|
138
|
-
* At r = 9 the circumference is 2π·9 = 56.5487. A 3.2/3.2 array (period 6.4)
|
|
139
|
-
* fits 8.84 times, so the ring shut with a 2.15 gap instead of 3.2 — and with
|
|
140
|
-
* the inherited round linecap eating 1.6 at each end that seam rendered ~0.37 px
|
|
141
|
-
* wide at 16 px, reading as joined while every other gap read as a gap. Eight
|
|
142
|
-
* whole periods divide it exactly: 56.5487 / 8 = 7.0686, halved for the dash and
|
|
143
|
-
* the gap = 3.5343 each, giving 16 even segments and no seam.
|
|
144
|
-
*/
|
|
145
|
-
export declare const PendingIcon: IconComponent;
|
|
146
|
-
/** Folder: a tabbed folder, for the tool-organization tree and breadcrumbs. */
|
|
147
|
-
export declare const FolderIcon: IconComponent;
|
|
148
|
-
/** Grid: a 2x2 tile array — the card-view half of the list/card toggle. */
|
|
149
|
-
export declare const GridIcon: IconComponent;
|
|
150
|
-
/** Served endpoints: a broadcast node radiating to the tools it serves. */
|
|
151
|
-
export declare const ServedEndpointsIcon: IconComponent;
|
|
152
|
-
/** Plugin: a puzzle piece — the host's provenance mark for plugin-contributed nav. */
|
|
153
|
-
export declare const PluginIcon: IconComponent;
|
|
154
|
-
/**
|
|
155
|
-
* The canonical mark for every navigable route token. `login` is excluded: it is
|
|
156
|
-
* not a destination the navigation surfaces list. Keyed by the token type, so
|
|
157
|
-
* adding a route to {@link RouteToken} fails the build here until it gets a mark.
|
|
158
|
-
*/
|
|
159
|
-
export declare const NAV_ICONS: Readonly<Record<Exclude<RouteToken, 'login'>, IconComponent>>;
|
|
160
|
-
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/components/icons.tsx"],"names":[],"mappings":"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"}
|