@flowgram.ai/form-materials 0.2.32 → 0.3.1
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/bin/index.ts +11 -5
- package/bin/materials.ts +9 -1
- package/dist/esm/index.js +1229 -1308
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +162 -125
- package/dist/index.d.ts +162 -125
- package/dist/index.js +1380 -1463
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
- package/src/components/batch-variable-selector/config.json +6 -2
- package/src/components/batch-variable-selector/index.tsx +1 -1
- package/src/components/code-editor/theme/light.ts +1 -1
- package/src/components/code-editor-mini/config.json +7 -0
- package/src/components/code-editor-mini/index.tsx +31 -0
- package/src/components/condition-row/config.json +10 -2
- package/src/components/condition-row/constants.ts +4 -0
- package/src/components/condition-row/hooks/useRule.ts +2 -2
- package/src/components/condition-row/index.tsx +1 -1
- package/src/components/condition-row/types.ts +3 -1
- package/src/components/constant-input/config.json +6 -3
- package/src/components/constant-input/index.tsx +10 -71
- package/src/components/constant-input/types.ts +6 -10
- package/src/components/display-flow-value/config.json +8 -0
- package/src/components/display-flow-value/index.tsx +59 -0
- package/src/components/display-inputs-values/config.json +9 -0
- package/src/components/display-inputs-values/index.tsx +27 -0
- package/src/components/display-inputs-values/styles.ts +12 -0
- package/src/components/display-outputs/config.json +10 -0
- package/src/components/display-outputs/index.tsx +58 -0
- package/src/components/display-outputs/styles.ts +12 -0
- package/src/components/display-schema-tag/config.json +10 -0
- package/src/components/display-schema-tag/index.tsx +44 -0
- package/src/components/display-schema-tag/styles.ts +28 -0
- package/src/components/display-schema-tree/config.json +11 -0
- package/src/components/display-schema-tree/index.tsx +74 -0
- package/src/components/display-schema-tree/styles.tsx +90 -0
- package/src/components/dynamic-value-input/config.json +11 -2
- package/src/components/dynamic-value-input/hooks.ts +53 -0
- package/src/components/dynamic-value-input/index.tsx +30 -28
- package/src/components/index.ts +6 -0
- package/src/components/inputs-values/config.json +2 -1
- package/src/components/inputs-values/types.ts +3 -1
- package/src/components/json-schema-editor/config.json +2 -2
- package/src/components/json-schema-editor/default-value.tsx +1 -1
- package/src/components/json-schema-editor/hooks.tsx +1 -1
- package/src/components/json-schema-editor/index.tsx +1 -1
- package/src/components/json-schema-editor/types.ts +1 -1
- package/src/components/type-selector/config.json +6 -2
- package/src/components/type-selector/index.tsx +47 -11
- package/src/components/variable-selector/config.json +6 -2
- package/src/components/variable-selector/index.tsx +1 -1
- package/src/components/variable-selector/use-variable-tree.tsx +14 -20
- package/src/effects/provide-json-schema-outputs/config.json +4 -5
- package/src/effects/provide-json-schema-outputs/index.ts +1 -3
- package/src/effects/sync-variable-title/index.ts +1 -0
- package/src/form-plugins/infer-inputs-plugin/config.json +3 -1
- package/src/form-plugins/infer-inputs-plugin/index.ts +2 -2
- package/src/index.ts +2 -1
- package/src/{typings/json-schema → plugins/disable-declaration-plugin}/config.json +1 -1
- package/src/plugins/disable-declaration-plugin/create-disable-declaration-plugin.ts +31 -0
- package/src/plugins/disable-declaration-plugin/index.tsx +6 -0
- package/src/plugins/index.ts +7 -0
- package/src/plugins/json-schema-preset/config.json +9 -0
- package/src/plugins/json-schema-preset/create-type-preset-plugin.tsx +28 -0
- package/src/plugins/json-schema-preset/index.tsx +39 -0
- package/src/plugins/json-schema-preset/manager.ts +18 -0
- package/src/plugins/json-schema-preset/type-definition/array.tsx +23 -0
- package/src/plugins/json-schema-preset/type-definition/boolean.tsx +32 -0
- package/src/plugins/json-schema-preset/type-definition/index.tsx +24 -0
- package/src/plugins/json-schema-preset/type-definition/integer.tsx +24 -0
- package/src/plugins/json-schema-preset/type-definition/number.tsx +24 -0
- package/src/plugins/json-schema-preset/type-definition/object.tsx +23 -0
- package/src/plugins/json-schema-preset/type-definition/string.tsx +18 -0
- package/src/{utils → shared}/index.ts +0 -1
- package/src/typings/flow-value/config.json +4 -4
- package/src/typings/flow-value/index.ts +1 -1
- package/src/typings/index.ts +0 -1
- package/src/components/type-selector/constants.tsx +0 -364
- package/src/typings/json-schema/index.ts +0 -36
- package/src/utils/json-schema/config.json +0 -5
- package/src/utils/json-schema/index.ts +0 -180
- /package/src/{utils → shared}/format-legacy-refs/config.json +0 -0
- /package/src/{utils → shared}/format-legacy-refs/index.ts +0 -0
- /package/src/{utils → shared}/format-legacy-refs/readme.md +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,36 +1,14 @@
|
|
|
1
1
|
import React$1 from 'react';
|
|
2
|
+
import { IJsonSchema, JsonSchemaTypeRegistry as JsonSchemaTypeRegistry$1, JsonSchemaTypeManager } from '@flowgram.ai/json-schema';
|
|
3
|
+
export { IJsonSchema, JsonSchemaUtils } from '@flowgram.ai/json-schema';
|
|
2
4
|
import { TriggerRenderProps } from '@douyinfe/semi-ui/lib/es/treeSelect';
|
|
3
5
|
import { InferValues } from '@coze-editor/editor/react';
|
|
4
6
|
import preset from '@coze-editor/editor/preset-code';
|
|
5
|
-
import { BaseVariableField, EffectOptions,
|
|
7
|
+
import { BaseVariableField, EffectOptions, FormPluginCreator } from '@flowgram.ai/editor';
|
|
6
8
|
import * as _flowgram_ai_node from '@flowgram.ai/node';
|
|
9
|
+
import * as _flowgram_ai_core from '@flowgram.ai/core';
|
|
7
10
|
import { TreeNodeData } from '@douyinfe/semi-ui/lib/es/tree';
|
|
8
11
|
|
|
9
|
-
/**
|
|
10
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
11
|
-
* SPDX-License-Identifier: MIT
|
|
12
|
-
*/
|
|
13
|
-
type JsonSchemaBasicType = 'boolean' | 'string' | 'integer' | 'number' | 'object' | 'array' | 'map';
|
|
14
|
-
interface IJsonSchema<T = string> {
|
|
15
|
-
type?: T;
|
|
16
|
-
default?: any;
|
|
17
|
-
title?: string;
|
|
18
|
-
description?: string;
|
|
19
|
-
enum?: (string | number)[];
|
|
20
|
-
properties?: Record<string, IJsonSchema<T>>;
|
|
21
|
-
additionalProperties?: IJsonSchema<T>;
|
|
22
|
-
items?: IJsonSchema<T>;
|
|
23
|
-
required?: string[];
|
|
24
|
-
$ref?: string;
|
|
25
|
-
extra?: {
|
|
26
|
-
index?: number;
|
|
27
|
-
weak?: boolean;
|
|
28
|
-
formComponent?: string;
|
|
29
|
-
[key: string]: any;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
type IBasicJsonSchema = IJsonSchema<JsonSchemaBasicType>;
|
|
33
|
-
|
|
34
12
|
/**
|
|
35
13
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
36
14
|
* SPDX-License-Identifier: MIT
|
|
@@ -39,6 +17,7 @@ type IBasicJsonSchema = IJsonSchema<JsonSchemaBasicType>;
|
|
|
39
17
|
type VariableField = BaseVariableField<{
|
|
40
18
|
icon?: string | JSX.Element;
|
|
41
19
|
title?: string;
|
|
20
|
+
disabled?: boolean;
|
|
42
21
|
}>;
|
|
43
22
|
declare function useVariableTree(params: {
|
|
44
23
|
includeSchema?: IJsonSchema | IJsonSchema[];
|
|
@@ -69,51 +48,6 @@ type VariableSelectorProps = PropTypes$2;
|
|
|
69
48
|
|
|
70
49
|
declare const VariableSelector: ({ value, config, onChange, style, readonly, includeSchema, excludeSchema, hasError, triggerRender, }: PropTypes$2) => React$1.JSX.Element;
|
|
71
50
|
|
|
72
|
-
/**
|
|
73
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
74
|
-
* SPDX-License-Identifier: MIT
|
|
75
|
-
*/
|
|
76
|
-
|
|
77
|
-
interface IFlowValueExtra {
|
|
78
|
-
index?: number;
|
|
79
|
-
}
|
|
80
|
-
interface IFlowConstantValue {
|
|
81
|
-
type: 'constant';
|
|
82
|
-
content?: string | number | boolean;
|
|
83
|
-
schema?: IJsonSchema;
|
|
84
|
-
extra?: IFlowValueExtra;
|
|
85
|
-
}
|
|
86
|
-
interface IFlowRefValue {
|
|
87
|
-
type: 'ref';
|
|
88
|
-
content?: string[];
|
|
89
|
-
extra?: IFlowValueExtra;
|
|
90
|
-
}
|
|
91
|
-
interface IFlowExpressionValue {
|
|
92
|
-
type: 'expression';
|
|
93
|
-
content?: string;
|
|
94
|
-
extra?: IFlowValueExtra;
|
|
95
|
-
}
|
|
96
|
-
interface IFlowTemplateValue {
|
|
97
|
-
type: 'template';
|
|
98
|
-
content?: string;
|
|
99
|
-
extra?: IFlowValueExtra;
|
|
100
|
-
}
|
|
101
|
-
type IFlowValue = IFlowConstantValue | IFlowRefValue | IFlowExpressionValue | IFlowTemplateValue;
|
|
102
|
-
type IFlowConstantRefValue = IFlowConstantValue | IFlowRefValue;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
106
|
-
* SPDX-License-Identifier: MIT
|
|
107
|
-
*/
|
|
108
|
-
|
|
109
|
-
declare const VariableTypeIcons: {
|
|
110
|
-
[key: string]: React$1.ReactNode;
|
|
111
|
-
};
|
|
112
|
-
declare const ArrayIcons: {
|
|
113
|
-
[key: string]: React$1.ReactNode;
|
|
114
|
-
};
|
|
115
|
-
declare const getSchemaIcon: (value?: Partial<IJsonSchema>) => React$1.ReactNode;
|
|
116
|
-
|
|
117
51
|
/**
|
|
118
52
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
119
53
|
* SPDX-License-Identifier: MIT
|
|
@@ -173,19 +107,52 @@ declare function BatchVariableSelector(props: VariableSelectorProps): React$1.JS
|
|
|
173
107
|
* SPDX-License-Identifier: MIT
|
|
174
108
|
*/
|
|
175
109
|
|
|
176
|
-
interface
|
|
177
|
-
hit: (schema: IJsonSchema) => boolean;
|
|
178
|
-
Renderer: React.FC<RendererProps<Value>>;
|
|
179
|
-
}
|
|
180
|
-
interface RendererProps<Value = any> {
|
|
110
|
+
interface ConstantRendererProps<Value = any> {
|
|
181
111
|
value?: Value;
|
|
182
112
|
onChange?: (value: Value) => void;
|
|
183
113
|
readonly?: boolean;
|
|
184
114
|
}
|
|
185
|
-
interface
|
|
115
|
+
interface JsonSchemaTypeRegistry<Value = any> extends JsonSchemaTypeRegistry$1 {
|
|
116
|
+
/**
|
|
117
|
+
* Render Constant Input
|
|
118
|
+
*/
|
|
119
|
+
ConstantRenderer: React.FC<ConstantRendererProps<Value>>;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
declare const createTypePresetPlugin: _flowgram_ai_core.PluginCreator<{
|
|
123
|
+
types?: JsonSchemaTypeRegistry[];
|
|
124
|
+
unregisterTypes?: string[];
|
|
125
|
+
}>;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
129
|
+
* SPDX-License-Identifier: MIT
|
|
130
|
+
*/
|
|
131
|
+
|
|
132
|
+
declare const useTypeManager: () => JsonSchemaTypeManager<IJsonSchema, JsonSchemaTypeRegistry>;
|
|
133
|
+
declare const JsonSchemaTypePresetProvider: ({ types, children, }: React$1.PropsWithChildren<{
|
|
134
|
+
types: JsonSchemaTypeRegistry[];
|
|
135
|
+
}>) => React$1.JSX.Element;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
139
|
+
* SPDX-License-Identifier: MIT
|
|
140
|
+
*/
|
|
141
|
+
declare const createDisableDeclarationPlugin: _flowgram_ai_core.PluginCreator<void>;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
145
|
+
* SPDX-License-Identifier: MIT
|
|
146
|
+
*/
|
|
147
|
+
|
|
148
|
+
interface Strategy<Value = any> {
|
|
149
|
+
hit: (schema: IJsonSchema) => boolean;
|
|
150
|
+
Renderer: React.FC<ConstantRendererProps<Value>>;
|
|
151
|
+
}
|
|
152
|
+
interface PropsType$a extends ConstantRendererProps {
|
|
186
153
|
schema: IJsonSchema;
|
|
187
154
|
strategies?: Strategy[];
|
|
188
|
-
fallbackRenderer?: React.FC<
|
|
155
|
+
fallbackRenderer?: React.FC<ConstantRendererProps>;
|
|
189
156
|
[key: string]: any;
|
|
190
157
|
}
|
|
191
158
|
|
|
@@ -194,14 +161,46 @@ interface PropsType$5 extends RendererProps {
|
|
|
194
161
|
* SPDX-License-Identifier: MIT
|
|
195
162
|
*/
|
|
196
163
|
|
|
197
|
-
declare function ConstantInput(props: PropsType$
|
|
164
|
+
declare function ConstantInput(props: PropsType$a): React$1.JSX.Element;
|
|
198
165
|
|
|
199
166
|
/**
|
|
200
167
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
201
168
|
* SPDX-License-Identifier: MIT
|
|
202
169
|
*/
|
|
203
170
|
|
|
204
|
-
interface
|
|
171
|
+
interface IFlowValueExtra {
|
|
172
|
+
index?: number;
|
|
173
|
+
}
|
|
174
|
+
interface IFlowConstantValue {
|
|
175
|
+
type: 'constant';
|
|
176
|
+
content?: string | number | boolean;
|
|
177
|
+
schema?: IJsonSchema;
|
|
178
|
+
extra?: IFlowValueExtra;
|
|
179
|
+
}
|
|
180
|
+
interface IFlowRefValue {
|
|
181
|
+
type: 'ref';
|
|
182
|
+
content?: string[];
|
|
183
|
+
extra?: IFlowValueExtra;
|
|
184
|
+
}
|
|
185
|
+
interface IFlowExpressionValue {
|
|
186
|
+
type: 'expression';
|
|
187
|
+
content?: string;
|
|
188
|
+
extra?: IFlowValueExtra;
|
|
189
|
+
}
|
|
190
|
+
interface IFlowTemplateValue {
|
|
191
|
+
type: 'template';
|
|
192
|
+
content?: string;
|
|
193
|
+
extra?: IFlowValueExtra;
|
|
194
|
+
}
|
|
195
|
+
type IFlowValue = IFlowConstantValue | IFlowRefValue | IFlowExpressionValue | IFlowTemplateValue;
|
|
196
|
+
type IFlowConstantRefValue = IFlowConstantValue | IFlowRefValue;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
200
|
+
* SPDX-License-Identifier: MIT
|
|
201
|
+
*/
|
|
202
|
+
|
|
203
|
+
interface PropsType$9 {
|
|
205
204
|
value?: IFlowConstantRefValue;
|
|
206
205
|
onChange: (value?: IFlowConstantRefValue) => void;
|
|
207
206
|
readonly?: boolean;
|
|
@@ -214,7 +213,7 @@ interface PropsType$4 {
|
|
|
214
213
|
[key: string]: any;
|
|
215
214
|
};
|
|
216
215
|
}
|
|
217
|
-
declare function DynamicValueInput({ value, onChange, readonly, style, schema: schemaFromProps, constantProps, }: PropsType$
|
|
216
|
+
declare function DynamicValueInput({ value, onChange, readonly, style, schema: schemaFromProps, constantProps, }: PropsType$9): React$1.JSX.Element;
|
|
218
217
|
|
|
219
218
|
/**
|
|
220
219
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
@@ -262,7 +261,7 @@ declare function ConditionRow({ style, value, onChange, readonly }: PropTypes):
|
|
|
262
261
|
*/
|
|
263
262
|
|
|
264
263
|
type ValueType = Record<string, IFlowRefValue | undefined>;
|
|
265
|
-
interface PropsType$
|
|
264
|
+
interface PropsType$8 {
|
|
266
265
|
value?: ValueType;
|
|
267
266
|
onChange: (value?: ValueType) => void;
|
|
268
267
|
readonly?: boolean;
|
|
@@ -275,14 +274,14 @@ interface PropsType$3 {
|
|
|
275
274
|
* SPDX-License-Identifier: MIT
|
|
276
275
|
*/
|
|
277
276
|
|
|
278
|
-
declare function BatchOutputs(props: PropsType$
|
|
277
|
+
declare function BatchOutputs(props: PropsType$8): React$1.JSX.Element;
|
|
279
278
|
|
|
280
279
|
/**
|
|
281
280
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
282
281
|
* SPDX-License-Identifier: MIT
|
|
283
282
|
*/
|
|
284
283
|
|
|
285
|
-
type PropsType$
|
|
284
|
+
type PropsType$7 = React$1.PropsWithChildren<{
|
|
286
285
|
value?: IFlowTemplateValue;
|
|
287
286
|
onChange: (value?: IFlowTemplateValue) => void;
|
|
288
287
|
readonly?: boolean;
|
|
@@ -298,8 +297,8 @@ type PropsType$2 = React$1.PropsWithChildren<{
|
|
|
298
297
|
* SPDX-License-Identifier: MIT
|
|
299
298
|
*/
|
|
300
299
|
|
|
301
|
-
type PromptEditorPropsType = PropsType$
|
|
302
|
-
declare function PromptEditor(props: PropsType$
|
|
300
|
+
type PromptEditorPropsType = PropsType$7;
|
|
301
|
+
declare function PromptEditor(props: PropsType$7): React$1.JSX.Element;
|
|
303
302
|
|
|
304
303
|
/**
|
|
305
304
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
@@ -313,10 +312,10 @@ declare function PromptEditorWithVariables(props: PromptEditorPropsType): React$
|
|
|
313
312
|
* SPDX-License-Identifier: MIT
|
|
314
313
|
*/
|
|
315
314
|
|
|
316
|
-
interface PropsType$
|
|
315
|
+
interface PropsType$6 extends PromptEditorPropsType {
|
|
317
316
|
inputsValues: Record<string, IFlowValue>;
|
|
318
317
|
}
|
|
319
|
-
declare function PromptEditorWithInputs({ inputsValues, ...restProps }: PropsType$
|
|
318
|
+
declare function PromptEditorWithInputs({ inputsValues, ...restProps }: PropsType$6): React$1.JSX.Element;
|
|
320
319
|
|
|
321
320
|
/**
|
|
322
321
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
@@ -337,6 +336,13 @@ interface CodeEditorPropsType extends React$1.PropsWithChildren<{}> {
|
|
|
337
336
|
}
|
|
338
337
|
declare function CodeEditor({ value, onChange, languageId, theme, children, placeholder, activeLinePlaceholder, options, readonly, }: CodeEditorPropsType): React$1.JSX.Element;
|
|
339
338
|
|
|
339
|
+
/**
|
|
340
|
+
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
341
|
+
* SPDX-License-Identifier: MIT
|
|
342
|
+
*/
|
|
343
|
+
|
|
344
|
+
declare function CodeEditorMini(props: CodeEditorPropsType): React$1.JSX.Element;
|
|
345
|
+
|
|
340
346
|
/**
|
|
341
347
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
342
348
|
* SPDX-License-Identifier: MIT
|
|
@@ -349,7 +355,7 @@ declare function JsonEditorWithVariables(props: Omit<CodeEditorPropsType, 'langu
|
|
|
349
355
|
* SPDX-License-Identifier: MIT
|
|
350
356
|
*/
|
|
351
357
|
|
|
352
|
-
interface PropsType {
|
|
358
|
+
interface PropsType$5 {
|
|
353
359
|
value?: Record<string, IFlowValue | undefined>;
|
|
354
360
|
onChange: (value?: Record<string, IFlowValue | undefined>) => void;
|
|
355
361
|
readonly?: boolean;
|
|
@@ -367,7 +373,72 @@ interface PropsType {
|
|
|
367
373
|
* SPDX-License-Identifier: MIT
|
|
368
374
|
*/
|
|
369
375
|
|
|
370
|
-
declare function InputsValues({ value, onChange, style, readonly, constantProps, schema, hasError, }: PropsType): React$1.JSX.Element;
|
|
376
|
+
declare function InputsValues({ value, onChange, style, readonly, constantProps, schema, hasError, }: PropsType$5): React$1.JSX.Element;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
380
|
+
* SPDX-License-Identifier: MIT
|
|
381
|
+
*/
|
|
382
|
+
|
|
383
|
+
interface PropsType$4 {
|
|
384
|
+
value?: IJsonSchema;
|
|
385
|
+
parentKey?: string;
|
|
386
|
+
depth?: number;
|
|
387
|
+
drilldown?: boolean;
|
|
388
|
+
showIcon?: boolean;
|
|
389
|
+
typeManager?: JsonSchemaTypeManager;
|
|
390
|
+
}
|
|
391
|
+
declare function DisplaySchemaTree(props: Omit<PropsType$4, 'parentKey' | 'depth'>): React$1.JSX.Element;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
395
|
+
* SPDX-License-Identifier: MIT
|
|
396
|
+
*/
|
|
397
|
+
|
|
398
|
+
interface PropsType$3 {
|
|
399
|
+
value?: IJsonSchema;
|
|
400
|
+
showIconInTree?: boolean;
|
|
401
|
+
displayFromScope?: boolean;
|
|
402
|
+
typeManager?: JsonSchemaTypeManager;
|
|
403
|
+
}
|
|
404
|
+
declare function DisplayOutputs({ value, showIconInTree, displayFromScope }: PropsType$3): React$1.JSX.Element;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
408
|
+
* SPDX-License-Identifier: MIT
|
|
409
|
+
*/
|
|
410
|
+
|
|
411
|
+
interface PropsType$2 {
|
|
412
|
+
title?: JSX.Element | string;
|
|
413
|
+
value?: IJsonSchema;
|
|
414
|
+
showIconInTree?: boolean;
|
|
415
|
+
warning?: boolean;
|
|
416
|
+
}
|
|
417
|
+
declare function DisplaySchemaTag({ value, showIconInTree, title, warning }: PropsType$2): React$1.JSX.Element;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
421
|
+
* SPDX-License-Identifier: MIT
|
|
422
|
+
*/
|
|
423
|
+
|
|
424
|
+
interface PropsType$1 {
|
|
425
|
+
value?: IFlowValue;
|
|
426
|
+
title?: JSX.Element | string;
|
|
427
|
+
showIconInTree?: boolean;
|
|
428
|
+
typeManager?: JsonSchemaTypeManager;
|
|
429
|
+
}
|
|
430
|
+
declare function DisplayFlowValue({ value, title, showIconInTree }: PropsType$1): React$1.JSX.Element;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
434
|
+
* SPDX-License-Identifier: MIT
|
|
435
|
+
*/
|
|
436
|
+
|
|
437
|
+
interface PropsType {
|
|
438
|
+
value?: Record<string, IFlowValue | undefined>;
|
|
439
|
+
showIconInTree?: boolean;
|
|
440
|
+
}
|
|
441
|
+
declare function DisplayInputsValues({ value, showIconInTree }: PropsType): React$1.JSX.Element;
|
|
371
442
|
|
|
372
443
|
/**
|
|
373
444
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
@@ -492,40 +563,6 @@ declare function formatNewRefToLegacyRef(value: NewFlowRefValueSchema): {
|
|
|
492
563
|
content: string;
|
|
493
564
|
};
|
|
494
565
|
|
|
495
|
-
/**
|
|
496
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
497
|
-
* SPDX-License-Identifier: MIT
|
|
498
|
-
*/
|
|
499
|
-
|
|
500
|
-
declare namespace JsonSchemaUtils {
|
|
501
|
-
/**
|
|
502
|
-
* Converts a JSON schema to an Abstract Syntax Tree (AST) representation.
|
|
503
|
-
* This function recursively processes the JSON schema and creates corresponding AST nodes.
|
|
504
|
-
*
|
|
505
|
-
* For more information on JSON Schema, refer to the official documentation:
|
|
506
|
-
* https://json-schema.org/
|
|
507
|
-
*
|
|
508
|
-
* @param jsonSchema - The JSON schema to convert.
|
|
509
|
-
* @returns An AST node representing the JSON schema, or undefined if the schema type is not recognized.
|
|
510
|
-
*/
|
|
511
|
-
function schemaToAST(jsonSchema: IJsonSchema): ASTNodeJSON | undefined;
|
|
512
|
-
/**
|
|
513
|
-
* Convert AST To JSON Schema
|
|
514
|
-
* @param typeAST
|
|
515
|
-
* @returns
|
|
516
|
-
*/
|
|
517
|
-
function astToSchema(typeAST: ASTNode, options?: {
|
|
518
|
-
drilldown?: boolean;
|
|
519
|
-
}): IJsonSchema | undefined;
|
|
520
|
-
/**
|
|
521
|
-
* Check if the AST type is match the JSON Schema
|
|
522
|
-
* @param typeAST
|
|
523
|
-
* @param schema
|
|
524
|
-
* @returns
|
|
525
|
-
*/
|
|
526
|
-
function isASTMatchSchema(typeAST: BaseType, schema: IJsonSchema | IJsonSchema[]): boolean;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
566
|
/**
|
|
530
567
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
531
568
|
* SPDX-License-Identifier: MIT
|
|
@@ -550,4 +587,4 @@ interface InputConfig {
|
|
|
550
587
|
}
|
|
551
588
|
declare const createInferInputsPlugin: _flowgram_ai_node.FormPluginCreator<InputConfig>;
|
|
552
589
|
|
|
553
|
-
export {
|
|
590
|
+
export { BatchOutputs, BatchVariableSelector, CodeEditor, CodeEditorMini, type CodeEditorPropsType, ConditionRow, type ConditionRowValueType, ConstantInput, type ConstantRendererProps, DisplayFlowValue, DisplayInputsValues, DisplayOutputs, DisplaySchemaTag, DisplaySchemaTree, DynamicValueInput, type IFlowConstantRefValue, type IFlowConstantValue, type IFlowExpressionValue, type IFlowRefValue, type IFlowTemplateValue, type IFlowValue, type IFlowValueExtra, InputsValues, JsonEditorWithVariables, JsonSchemaEditor, JsonSchemaTypePresetProvider, type JsonSchemaTypeRegistry, PromptEditor, type PromptEditorPropsType, PromptEditorWithInputs, PromptEditorWithVariables, TypeSelector, VariableSelector, type VariableSelectorProps, autoRenameRefEffect, createBatchOutputsFormPlugin, createDisableDeclarationPlugin, createInferInputsPlugin, createTypePresetPlugin, formatLegacyRefOnInit, formatLegacyRefOnSubmit, formatLegacyRefToNewRef, formatNewRefToLegacyRef, getTypeSelectValue, isLegacyFlowRefValueSchema, isNewFlowRefValueSchema, parseTypeSelectValue, provideBatchInputEffect, provideBatchOutputsEffect, provideJsonSchemaOutputs, syncVariableTitle, useTypeManager, useVariableTree };
|