@tai42/studio-sdk 16.0.1 → 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 +1 -1
- package/dist/components/explorer-body.d.ts.map +1 -1
- package/dist/components/explorer-body.js +1 -1
- package/dist/components/explorer-body.js.map +1 -1
- package/dist/components/explorer-view.d.ts +1 -1
- package/dist/components/explorer-view.d.ts.map +1 -1
- package/dist/components/explorer-view.js +5 -5
- package/dist/components/explorer-view.js.map +1 -1
- package/dist/components/extension-combo-builder.d.ts +1 -1
- package/dist/components/extension-combo-builder.d.ts.map +1 -1
- package/dist/components/extension-combo-builder.js +1 -38
- package/dist/components/extension-combo-builder.js.map +1 -1
- package/dist/components/extension-combo-parts.d.ts +1 -1
- package/dist/components/extension-combo-parts.d.ts.map +1 -1
- package/dist/components/extension-combo-parts.js +0 -5
- package/dist/components/extension-combo-parts.js.map +1 -1
- 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.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/index.d.ts +5 -5
- package/dist/components/icons/index.d.ts.map +1 -1
- package/dist/components/icons/index.js +37 -4
- package/dist/components/icons/index.js.map +1 -1
- package/dist/components/icons/nav-map.js +1 -1
- package/dist/components/icons/nav-map.js.map +1 -1
- package/dist/components/inputs.js.map +1 -1
- package/dist/components/json-diff.js +1 -1
- package/dist/components/json-diff.js.map +1 -1
- package/dist/components/json-tree-nodes.d.ts +5 -0
- package/dist/components/json-tree-nodes.d.ts.map +1 -1
- package/dist/components/json-tree-nodes.js +2 -7
- package/dist/components/json-tree-nodes.js.map +1 -1
- 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 +4 -24
- package/dist/components/json-tree.js.map +1 -1
- package/dist/components/markdown.js.map +1 -1
- package/dist/components/page-fill.d.ts.map +1 -1
- package/dist/components/page-fill.js.map +1 -1
- 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 -27
- package/dist/components/scroll-region.js.map +1 -1
- 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 +0 -26
- package/dist/components/templated-text-field.js.map +1 -1
- package/dist/components/templated-text-kwargs-editor.d.ts.map +1 -1
- package/dist/components/templated-text-kwargs-editor.js +2 -2
- package/dist/components/templated-text-kwargs-editor.js.map +1 -1
- package/dist/components/templated-text-source.d.ts +1 -1
- package/dist/components/templated-text-source.d.ts.map +1 -1
- package/dist/components/templated-text-source.js +2 -2
- package/dist/components/templated-text-source.js.map +1 -1
- package/dist/components/version-history-panel.d.ts.map +1 -1
- package/dist/components/version-history-panel.js.map +1 -1
- 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/hooks/interactions-connection.d.ts +1 -1
- package/dist/hooks/interactions-connection.d.ts.map +1 -1
- package/dist/hooks/interactions-connection.js.map +1 -1
- package/dist/hooks/useApi.d.ts +77 -7
- 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 +31 -0
- package/dist/hooks/useSse.d.ts.map +1 -1
- package/dist/hooks/useSse.js +2 -33
- 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.map +1 -1
- package/dist/navigation/app-link.js.map +1 -1
- package/dist/navigation/context.d.ts.map +1 -1
- package/dist/navigation/context.js.map +1 -1
- package/dist/navigation/index.d.ts +4 -4
- package/dist/navigation/index.d.ts.map +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/navigation/index.js.map +1 -1
- package/dist/navigation/use-back-forward-guard.d.ts +7 -0
- package/dist/navigation/use-back-forward-guard.d.ts.map +1 -1
- package/dist/navigation/use-back-forward-guard.js +0 -7
- package/dist/navigation/use-back-forward-guard.js.map +1 -1
- 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/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 +16 -0
- package/dist/schema-form/SecretRefField.d.ts.map +1 -1
- package/dist/schema-form/SecretRefField.js +0 -16
- package/dist/schema-form/SecretRefField.js.map +1 -1
- package/dist/schema-form/classify.d.ts +9 -0
- package/dist/schema-form/classify.d.ts.map +1 -1
- package/dist/schema-form/classify.js +0 -9
- 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/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-node.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/schema-form/media-field.js +2 -2
- 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-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.map +1 -1
- package/dist/schema-form/union-field.js.map +1 -1
- package/dist/schema-form/union.d.ts +7 -0
- 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 +1 -1
- 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 +5 -5
- 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 +1 -1
- package/dist/state-binding/adapter-mapping-row.d.ts.map +1 -1
- package/dist/state-binding/adapter-mapping-row.js +3 -3
- package/dist/state-binding/adapter-mapping-row.js.map +1 -1
- 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 -1
- 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 +3 -3
- package/src/components/explorer-view.tsx +9 -9
- package/src/components/extension-combo-builder.tsx +2 -3
- package/src/components/extension-combo-parts.tsx +1 -2
- package/src/components/field.tsx +1 -1
- package/src/components/fleet-report.tsx +3 -3
- package/src/components/folder-nav.tsx +2 -2
- package/src/components/form-dialog.tsx +2 -2
- package/src/components/icons/index.ts +38 -38
- package/src/components/icons/nav-map.ts +11 -11
- package/src/components/inputs.tsx +1 -1
- package/src/components/json-diff.tsx +1 -1
- package/src/components/json-tree-nodes.tsx +3 -3
- package/src/components/json-tree.tsx +7 -7
- package/src/components/markdown.tsx +2 -2
- package/src/components/page-fill.tsx +1 -1
- package/src/components/radio-group.tsx +1 -1
- package/src/components/scroll-region.tsx +11 -10
- package/src/components/table.tsx +1 -1
- package/src/components/tags.tsx +2 -2
- package/src/components/templated-text-field.tsx +3 -4
- package/src/components/templated-text-kwargs-editor.tsx +3 -3
- package/src/components/templated-text-source.tsx +3 -3
- package/src/components/version-history-panel.tsx +1 -1
- package/src/components/view-toggle.tsx +1 -1
- package/src/element-slot.ts +1 -1
- package/src/hooks/interactions-connection.ts +3 -3
- 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 +5 -5
- 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 +2 -2
- package/src/navigation/context.tsx +3 -3
- package/src/navigation/index.ts +14 -14
- package/src/navigation/use-back-forward-guard.ts +1 -1
- package/src/navigation/use-search-commit.ts +1 -1
- package/src/plugin/host-state.ts +1 -1
- package/src/schema-editor/SchemaEditor.tsx +1 -1
- package/src/schema-editor/index.ts +3 -3
- package/src/schema-form/SecretRefField.tsx +1 -1
- package/src/schema-form/classify.ts +2 -2
- package/src/schema-form/context.ts +1 -1
- package/src/schema-form/field-group.tsx +1 -1
- package/src/schema-form/field-node.tsx +1 -1
- package/src/schema-form/index.ts +10 -10
- package/src/schema-form/json-field.tsx +1 -1
- package/src/schema-form/media-field.tsx +3 -3
- package/src/schema-form/record-field.tsx +2 -2
- package/src/schema-form/string-field.tsx +2 -2
- package/src/schema-form/union-field.tsx +2 -2
- package/src/schema-form/union.ts +1 -1
- package/src/schema-form/validate.ts +2 -2
- 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 +7 -7
- 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 +4 -4
- 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 -1
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* intercepted for a client-side transition.
|
|
4
4
|
*/
|
|
5
5
|
import {
|
|
6
|
-
createElement,
|
|
7
|
-
useCallback,
|
|
8
6
|
type AriaAttributes,
|
|
7
|
+
createElement,
|
|
9
8
|
type CSSProperties,
|
|
10
9
|
type MouseEvent,
|
|
11
10
|
type ReactNode,
|
|
11
|
+
useCallback,
|
|
12
12
|
} from 'react';
|
|
13
13
|
|
|
14
14
|
import { useNavigation } from './context';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createContext,
|
|
3
3
|
createElement,
|
|
4
|
+
type ReactNode,
|
|
4
5
|
useCallback,
|
|
5
6
|
useContext,
|
|
6
7
|
useEffect,
|
|
7
8
|
useMemo,
|
|
8
9
|
useRef,
|
|
9
|
-
type ReactNode,
|
|
10
10
|
} from 'react';
|
|
11
11
|
|
|
12
|
-
import {
|
|
12
|
+
import { type GuardEntry, NavigationGuardRegistry } from './guard-registry';
|
|
13
13
|
import { buildGuardedNavigation, type CommittedEntry } from './guarded-navigation';
|
|
14
|
-
import { useBackForwardGuard } from './use-back-forward-guard';
|
|
15
14
|
import type { NavigationContextValue, NavigationGuardHandler } from './types';
|
|
15
|
+
import { useBackForwardGuard } from './use-back-forward-guard';
|
|
16
16
|
|
|
17
17
|
/** Shell-provided navigation; no default, so use outside {@link NavigationProvider} throws. */
|
|
18
18
|
const NavigationContext = createContext<NavigationContextValue | null>(null);
|
package/src/navigation/index.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
+
export type { AppLinkProps } from './app-link';
|
|
2
|
+
export { AppLink } from './app-link';
|
|
1
3
|
export {
|
|
2
4
|
NavigationProvider,
|
|
3
5
|
useAppNavigate,
|
|
4
|
-
useResolvePath,
|
|
5
|
-
usePluginNavigation,
|
|
6
|
-
usePluginEntryNavigation,
|
|
7
|
-
useNavigationGuard,
|
|
8
6
|
useNavigationGate,
|
|
7
|
+
useNavigationGuard,
|
|
8
|
+
usePluginEntryNavigation,
|
|
9
|
+
usePluginNavigation,
|
|
10
|
+
useResolvePath,
|
|
9
11
|
} from './context';
|
|
10
|
-
export { AppLink } from './app-link';
|
|
11
|
-
export type { AppLinkProps } from './app-link';
|
|
12
|
-
export { useSearchCommit } from './use-search-commit';
|
|
13
|
-
export type { SearchCommitParams } from './use-search-commit';
|
|
14
12
|
export type {
|
|
15
|
-
RouteToken,
|
|
16
|
-
RouteSearch,
|
|
17
|
-
RouteSearchByToken,
|
|
18
|
-
PageProps,
|
|
19
|
-
NavigationContextValue,
|
|
20
13
|
NavigateOptions,
|
|
14
|
+
NavigationContextValue,
|
|
15
|
+
NavigationGuardHandler,
|
|
16
|
+
PageProps,
|
|
21
17
|
PluginNavigateOptions,
|
|
22
18
|
PluginSearch,
|
|
23
|
-
|
|
19
|
+
RouteSearch,
|
|
20
|
+
RouteSearchByToken,
|
|
21
|
+
RouteToken,
|
|
24
22
|
} from './types';
|
|
23
|
+
export type { SearchCommitParams } from './use-search-commit';
|
|
24
|
+
export { useSearchCommit } from './use-search-commit';
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* and installs a `beforeunload` prompt. It attaches the listeners only while armed,
|
|
6
6
|
* mirroring the registry's armed state into React.
|
|
7
7
|
*/
|
|
8
|
-
import { useEffect, useState } from 'react';
|
|
9
8
|
import type { RefObject } from 'react';
|
|
9
|
+
import { useEffect, useState } from 'react';
|
|
10
10
|
|
|
11
11
|
import type { NavigationGuardRegistry } from './guard-registry';
|
|
12
12
|
import type { CommittedEntry } from './guarded-navigation';
|
package/src/plugin/host-state.ts
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { useSyncExternalStore } from 'react';
|
|
15
15
|
|
|
16
|
-
import type { PluginContributions } from './types';
|
|
17
16
|
import { getContributions } from './registry';
|
|
17
|
+
import type { PluginContributions } from './types';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Identity of a successfully-loaded plugin, for host chrome that must attribute a
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* SAFETY: the schema text is operator-authored and every derived value renders as
|
|
20
20
|
* React TEXT (through the DS controls / `JsonTree` / `SchemaForm`), never an HTML sink.
|
|
21
21
|
*/
|
|
22
|
-
import { Component, useMemo, useState
|
|
22
|
+
import { Component, type ReactNode, useMemo, useState } from 'react';
|
|
23
23
|
|
|
24
24
|
import { Field } from '../components/field';
|
|
25
25
|
import { Textarea } from '../components/inputs';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* surface: the `SchemaEditor` component, its change type, and the pure lint helper
|
|
4
4
|
* consumers reuse to pre-check a stored schema.
|
|
5
5
|
*/
|
|
6
|
-
export { SchemaEditor } from './SchemaEditor';
|
|
7
|
-
export type { SchemaEditorProps, SchemaEditorChange } from './SchemaEditor';
|
|
8
|
-
export { lintSchemaText } from './lint';
|
|
9
6
|
export type { SchemaLintResult } from './lint';
|
|
7
|
+
export { lintSchemaText } from './lint';
|
|
8
|
+
export type { SchemaEditorChange, SchemaEditorProps } from './SchemaEditor';
|
|
9
|
+
export { SchemaEditor } from './SchemaEditor';
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* explicitly true (the host passes it from whether the projection carries the env
|
|
15
15
|
* route). Absent, the field is paste-only.
|
|
16
16
|
*/
|
|
17
|
-
import { useEffect, useState } from 'react';
|
|
18
17
|
import type { ReactNode } from 'react';
|
|
18
|
+
import { useEffect, useState } from 'react';
|
|
19
19
|
|
|
20
20
|
import { Field } from '../components/field';
|
|
21
21
|
import { EyeIcon, EyeOffIcon } from '../components/icons';
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
* kind (a free-form JSON textarea) — a field is never silently dropped, and a
|
|
8
8
|
* shapeless one is edited as the JSON it is rather than dead-ending on a badge.
|
|
9
9
|
*/
|
|
10
|
+
import type { ClassifiedField, UnionVariant } from './field-model';
|
|
10
11
|
import {
|
|
12
|
+
type EnumOption,
|
|
11
13
|
isNullSchema,
|
|
12
14
|
resolveRef,
|
|
13
15
|
scalarLabel,
|
|
@@ -15,9 +17,7 @@ import {
|
|
|
15
17
|
unionMembers,
|
|
16
18
|
variantLabel,
|
|
17
19
|
variantTag,
|
|
18
|
-
type EnumOption,
|
|
19
20
|
} from './resolve';
|
|
20
|
-
import type { ClassifiedField, UnionVariant } from './field-model';
|
|
21
21
|
import { expressionAnnotation, mediaUpload } from './string-annotations';
|
|
22
22
|
import type { JsonSchema } from './types';
|
|
23
23
|
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* renderer, and the expression-field door. A field deep in the tree reads these
|
|
5
5
|
* here rather than every intermediate node drilling the prop.
|
|
6
6
|
*/
|
|
7
|
-
import { createContext } from 'react';
|
|
8
7
|
import type { ComponentType, ReactNode } from 'react';
|
|
8
|
+
import { createContext } from 'react';
|
|
9
9
|
|
|
10
10
|
import { DEFAULT_MAX_UPLOAD_BYTES } from './media';
|
|
11
11
|
import type { CompletionProvider } from './SchemaForm';
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* heading, an optional description, an optional error — the ERROR mark beside
|
|
5
5
|
* the message, never a hue on its own — and the nested group surface.
|
|
6
6
|
*/
|
|
7
|
-
import { useId } from 'react';
|
|
8
7
|
import type { ReactNode } from 'react';
|
|
8
|
+
import { useId } from 'react';
|
|
9
9
|
|
|
10
10
|
import { XCircleIcon } from '../components/icons';
|
|
11
11
|
import { groupClass, groupHeaderClass, stackClass } from './styles';
|
|
@@ -18,8 +18,8 @@ import { ObjectFields } from './object-fields';
|
|
|
18
18
|
import { RecordField } from './record-field';
|
|
19
19
|
import { scalarLabel } from './resolve';
|
|
20
20
|
import { StringField } from './string-field';
|
|
21
|
-
import { UnionField } from './union-field';
|
|
22
21
|
import type { JsonSchema, SchemaFormErrors } from './types';
|
|
22
|
+
import { UnionField } from './union-field';
|
|
23
23
|
|
|
24
24
|
interface FieldNodeProps {
|
|
25
25
|
readonly schema: JsonSchema;
|
package/src/schema-form/index.ts
CHANGED
|
@@ -29,20 +29,20 @@
|
|
|
29
29
|
* completion provider, the injected expression door — would be different objects
|
|
30
30
|
* from the ones the host provides.
|
|
31
31
|
*/
|
|
32
|
-
export {
|
|
33
|
-
export type { SchemaFormProps, CompletionProvider } from './SchemaForm';
|
|
34
|
-
export { RecordEntryRendererContext } from './context';
|
|
35
|
-
export type { RecordEntryRenderer, RecordEntryContext } from './context';
|
|
36
|
-
export { ExpressionFieldContext } from './context';
|
|
32
|
+
export type { RecordEntryContext, RecordEntryRenderer } from './context';
|
|
37
33
|
export type {
|
|
38
34
|
ExpressionFieldComponent,
|
|
39
35
|
ExpressionFieldProps,
|
|
40
|
-
ExpressionInputShape,
|
|
41
36
|
ExpressionInputKey,
|
|
37
|
+
ExpressionInputShape,
|
|
42
38
|
} from './context';
|
|
43
|
-
export {
|
|
44
|
-
export
|
|
39
|
+
export { RecordEntryRendererContext } from './context';
|
|
40
|
+
export { ExpressionFieldContext } from './context';
|
|
45
41
|
export { defaultValueForSchema } from './default-value';
|
|
46
|
-
export { validateAgainstSchema } from './validate';
|
|
47
42
|
export { resolveRef } from './resolve';
|
|
48
|
-
export type {
|
|
43
|
+
export type { CompletionProvider, SchemaFormProps } from './SchemaForm';
|
|
44
|
+
export { SchemaForm } from './SchemaForm';
|
|
45
|
+
export type { SecretRef, SecretRefFieldProps } from './SecretRefField';
|
|
46
|
+
export { SecretRefField } from './SecretRefField';
|
|
47
|
+
export type { Discriminator, JsonSchema, JsonSchemaType, SchemaFormErrors } from './types';
|
|
48
|
+
export { validateAgainstSchema } from './validate';
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
* `lastEmitted` guard `record-field` uses, so a parent echoing our own commit back
|
|
18
18
|
* does not clobber what is being typed.
|
|
19
19
|
*/
|
|
20
|
-
import { useRef, useState } from 'react';
|
|
21
20
|
import type { ReactNode } from 'react';
|
|
21
|
+
import { useRef, useState } from 'react';
|
|
22
22
|
|
|
23
23
|
import { Field } from '../components/field';
|
|
24
24
|
import { Textarea } from '../components/inputs';
|
|
@@ -9,12 +9,12 @@ import type { ReactNode } from 'react';
|
|
|
9
9
|
import { useContext, useId, useState } from 'react';
|
|
10
10
|
|
|
11
11
|
import { Badge } from '../components/badge';
|
|
12
|
+
import { Field, type FieldControlProps, useFieldControl } from '../components/field';
|
|
12
13
|
import { XCircleIcon } from '../components/icons';
|
|
13
|
-
import { Button } from '../components/primitives';
|
|
14
|
-
import { Field, useFieldControl, type FieldControlProps } from '../components/field';
|
|
15
14
|
import { TextInput } from '../components/inputs';
|
|
16
|
-
import
|
|
15
|
+
import { Button } from '../components/primitives';
|
|
17
16
|
import { MaxUploadBytesContext } from './context';
|
|
17
|
+
import type { MediaUpload } from './field-model';
|
|
18
18
|
import { decodedByteSize, effectiveMaxBytes, overCapMessage } from './media';
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* silently merged): the map cannot represent two entries under one key, so the
|
|
11
11
|
* later duplicate is withheld and flagged rather than overwriting the first.
|
|
12
12
|
*/
|
|
13
|
-
import { useContext, useRef, useState } from 'react';
|
|
14
13
|
import type { ReactNode } from 'react';
|
|
14
|
+
import { useContext, useRef, useState } from 'react';
|
|
15
15
|
|
|
16
|
-
import { CloseIcon } from '../components/icons';
|
|
17
16
|
import { Field } from '../components/field';
|
|
17
|
+
import { CloseIcon } from '../components/icons';
|
|
18
18
|
import { TextInput } from '../components/inputs';
|
|
19
19
|
import { Button } from '../components/primitives';
|
|
20
20
|
import { classifySchema } from './classify';
|
|
@@ -24,11 +24,11 @@ import { Suspense, useCallback, useContext, useMemo, useState } from 'react';
|
|
|
24
24
|
import { CompletionInput } from '../components/completion-input';
|
|
25
25
|
import { Field } from '../components/field';
|
|
26
26
|
import { AlertTriangleIcon } from '../components/icons';
|
|
27
|
-
import {
|
|
27
|
+
import { Textarea, TextInput } from '../components/inputs';
|
|
28
28
|
import { errorMessage } from '../errors';
|
|
29
|
-
import type { ExpressionAnnotation, MediaUpload } from './field-model';
|
|
30
29
|
import type { ExpressionFieldComponent, ExpressionInputShape } from './context';
|
|
31
30
|
import { CompletionProviderContext, ExpressionFieldContext } from './context';
|
|
31
|
+
import type { ExpressionAnnotation, MediaUpload } from './field-model';
|
|
32
32
|
import { MediaField } from './media-field';
|
|
33
33
|
import type { CompletionProvider } from './SchemaForm';
|
|
34
34
|
|
|
@@ -12,15 +12,15 @@ import type { ReactNode } from 'react';
|
|
|
12
12
|
import { Field } from '../components/field';
|
|
13
13
|
import { Select } from '../components/select';
|
|
14
14
|
import { classifySchema } from './classify';
|
|
15
|
-
import type { FieldModel, UnionVariant } from './field-model';
|
|
16
15
|
import { skeletonValueForSchema } from './default-value';
|
|
17
16
|
import { FieldGroup } from './field-group';
|
|
17
|
+
import type { FieldModel, UnionVariant } from './field-model';
|
|
18
18
|
import { FieldNode } from './field-node';
|
|
19
19
|
import { ObjectFields } from './object-fields';
|
|
20
20
|
import { resolveRef } from './resolve';
|
|
21
21
|
import { groupClass } from './styles';
|
|
22
|
-
import { activeVariantIndex } from './union';
|
|
23
22
|
import type { JsonSchema, SchemaFormErrors } from './types';
|
|
23
|
+
import { activeVariantIndex } from './union';
|
|
24
24
|
|
|
25
25
|
function isPlainObject(value: unknown): value is Record<string, unknown> {
|
|
26
26
|
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
package/src/schema-form/union.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* when Pydantic emitted no discriminator). Returns `-1` when no variant is
|
|
6
6
|
* active (an unset/`null` value, or nothing matches).
|
|
7
7
|
*/
|
|
8
|
-
import { resolveRef } from './resolve';
|
|
9
8
|
import type { UnionVariant } from './field-model';
|
|
9
|
+
import { resolveRef } from './resolve';
|
|
10
10
|
import type { JsonSchema } from './types';
|
|
11
11
|
|
|
12
12
|
function isPlainObject(value: unknown): value is Record<string, unknown> {
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* container constraint on a free-form `json` field. It never throws on a
|
|
6
6
|
* malformed value — a malformed value IS the error it reports.
|
|
7
7
|
*/
|
|
8
|
+
import { isRecord } from '../guards';
|
|
8
9
|
import { classifySchema } from './classify';
|
|
9
10
|
import type { FieldModel } from './field-model';
|
|
10
|
-
import { isRecord } from '../guards';
|
|
11
11
|
import { decodedByteSize, effectiveMaxBytes, overCapMessage } from './media';
|
|
12
12
|
import { scalarLabel } from './resolve';
|
|
13
|
-
import { activeVariantIndex } from './union';
|
|
14
13
|
import type { JsonSchema, SchemaFormErrors } from './types';
|
|
14
|
+
import { activeVariantIndex } from './union';
|
|
15
15
|
|
|
16
16
|
/** Options for {@link validateAgainstSchema}. */
|
|
17
17
|
export interface ValidateOptions {
|
|
Binary file
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
* expression — the attachment-qualified `tjq_<attachment>__<name>` form when a name is
|
|
13
13
|
* ambiguous across attachments.
|
|
14
14
|
*/
|
|
15
|
-
import {
|
|
15
|
+
import { type ReactNode, useContext } from 'react';
|
|
16
16
|
|
|
17
|
-
import { Button } from '../components/primitives';
|
|
18
|
-
import { PlusIcon } from '../components/icons';
|
|
19
17
|
import { Field } from '../components/field';
|
|
18
|
+
import { PlusIcon } from '../components/icons';
|
|
20
19
|
import { Textarea } from '../components/inputs';
|
|
20
|
+
import { Button } from '../components/primitives';
|
|
21
21
|
import { ExpressionFieldContext } from '../schema-form/context';
|
|
22
22
|
import { generateTemplateCall } from './adapter';
|
|
23
23
|
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { ReactNode } from 'react';
|
|
7
7
|
|
|
8
|
-
import { Button } from '../components/primitives';
|
|
9
8
|
import { Field } from '../components/field';
|
|
10
|
-
import { Select } from '../components/select';
|
|
11
|
-
import { TextInput } from '../components/inputs';
|
|
12
9
|
import { CloseIcon } from '../components/icons';
|
|
13
|
-
import {
|
|
10
|
+
import { TextInput } from '../components/inputs';
|
|
11
|
+
import { Button } from '../components/primitives';
|
|
12
|
+
import { Select } from '../components/select';
|
|
14
13
|
import type { TemplateJqSuggestion } from './BindingJqField';
|
|
14
|
+
import { BindingTemplatedJqField } from './BindingTemplatedJqField';
|
|
15
15
|
import type { ResolvedTemplateJq } from './catalog';
|
|
16
16
|
import type { StateInjection, TemplatedTextCatalog } from './types';
|
|
17
17
|
|
|
@@ -3,20 +3,19 @@
|
|
|
3
3
|
* (attach-on-use — a not-yet-attached pick shows the "attached on save" hint), the subject
|
|
4
4
|
* and scope expressions, the input injections, and the updates.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import { type ReactNode, useMemo } from 'react';
|
|
7
7
|
|
|
8
|
-
import { Button } from '../components/primitives';
|
|
9
|
-
import { CodeBlock } from '../components/code-block';
|
|
10
8
|
import { Checkbox } from '../components/checkbox';
|
|
9
|
+
import { CodeBlock } from '../components/code-block';
|
|
11
10
|
import { Field } from '../components/field';
|
|
11
|
+
import { AlertTriangleIcon, CloseIcon } from '../components/icons';
|
|
12
|
+
import { Button } from '../components/primitives';
|
|
12
13
|
import { Select } from '../components/select';
|
|
13
14
|
import { templatedTextSummary } from '../components/templated-text-field';
|
|
14
|
-
import { AlertTriangleIcon, CloseIcon } from '../components/icons';
|
|
15
|
-
import { InjectionList } from './InputInjectionRow';
|
|
16
|
-
import { UpdateList } from './UpdateRow';
|
|
17
|
-
import { SubjectScopeFields } from './SubjectScopeFields';
|
|
18
15
|
import type { TemplateJqSuggestion } from './BindingJqField';
|
|
19
16
|
import { resolveTemplateJq } from './catalog';
|
|
17
|
+
import { InjectionList } from './InputInjectionRow';
|
|
18
|
+
import { SubjectScopeFields } from './SubjectScopeFields';
|
|
20
19
|
import type {
|
|
21
20
|
BindingSourceSchemas,
|
|
22
21
|
BindingStateOption,
|
|
@@ -25,6 +24,7 @@ import type {
|
|
|
25
24
|
TemplatedText,
|
|
26
25
|
TemplatedTextCatalog,
|
|
27
26
|
} from './types';
|
|
27
|
+
import { UpdateList } from './UpdateRow';
|
|
28
28
|
|
|
29
29
|
const ATTACH_ON_USE_HINT = 'This template will be attached to the state when you save.';
|
|
30
30
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* own api-client + query stack) and passes them in; this wraps `StateBindingEditor`
|
|
5
5
|
* in a keyboard-native disclosure that opens when a binding already exists.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import { type ReactNode, useState } from 'react';
|
|
8
8
|
|
|
9
9
|
import { Button } from '../components/primitives';
|
|
10
10
|
import { StateBindingEditor, type StateBindingEditorProps } from './StateBindingEditor';
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { ReactNode } from 'react';
|
|
8
8
|
|
|
9
|
-
import { BindingTemplatedJqField } from './BindingTemplatedJqField';
|
|
10
9
|
import type { TemplateJqSuggestion } from './BindingJqField';
|
|
10
|
+
import { BindingTemplatedJqField } from './BindingTemplatedJqField';
|
|
11
11
|
import type { TemplatedText, TemplatedTextCatalog } from './types';
|
|
12
12
|
|
|
13
13
|
export interface SubjectScopeFieldsProps {
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
import type { ReactNode } from 'react';
|
|
8
8
|
|
|
9
9
|
import { Badge } from '../components/badge';
|
|
10
|
-
import { Button } from '../components/primitives';
|
|
11
10
|
import { Field } from '../components/field';
|
|
11
|
+
import { CloseIcon } from '../components/icons';
|
|
12
|
+
import { Button } from '../components/primitives';
|
|
12
13
|
import { Select } from '../components/select';
|
|
13
14
|
import { TemplatedTextField } from '../components/templated-text-field';
|
|
14
|
-
import { CloseIcon } from '../components/icons';
|
|
15
15
|
import { AdapterMapping } from './AdapterMapping';
|
|
16
|
-
import { BindingTemplatedJqField } from './BindingTemplatedJqField';
|
|
17
16
|
import type { TemplateJqSuggestion } from './BindingJqField';
|
|
17
|
+
import { BindingTemplatedJqField } from './BindingTemplatedJqField';
|
|
18
18
|
import { findByRef, type ResolvedTemplateJq } from './catalog';
|
|
19
19
|
import type { BindingSourceSchemas, StateUpdate, TemplatedTextCatalog } from './types';
|
|
20
20
|
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
* hardcoded literal, or a jq expression — and shows the row's own compiled jq on
|
|
5
5
|
* demand. {@link AdapterMapping} composes one editor per declared key.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import { type ReactNode, useState } from 'react';
|
|
8
8
|
|
|
9
9
|
import { Badge } from '../components/badge';
|
|
10
|
-
import { Button, Skeleton } from '../components/primitives';
|
|
11
10
|
import { Field } from '../components/field';
|
|
12
|
-
import { Select } from '../components/select';
|
|
13
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';
|
|
14
15
|
import { BindingJqField, type TemplateJqSuggestion } from './BindingJqField';
|
|
15
|
-
import { rowValueJq, type FieldRoot, type MappingRow, type MappingSource } from './adapter';
|
|
16
16
|
import type { BindingSourceSchemas, SchemaFieldPath } from './types';
|
|
17
17
|
|
|
18
18
|
const ROOT_OPTIONS: readonly { value: FieldRoot; label: string }[] = [
|
|
@@ -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,9 +12,9 @@
|
|
|
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
|
-
import { isRecord } from '../guards';
|
|
18
18
|
|
|
19
19
|
export interface StructuredOutputProps {
|
|
20
20
|
/** The tool's declared MCP output schema, if any. */
|