@flowgram.ai/form-materials 0.1.0-alpha.13 → 0.1.0-alpha.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/bin/index.ts +0 -11
  2. package/bin/materials.ts +29 -2
  3. package/dist/esm/chunk-727SU246.js +13 -0
  4. package/dist/esm/chunk-727SU246.js.map +1 -0
  5. package/dist/esm/chunk-DEZUEMUM.js +284 -0
  6. package/dist/esm/chunk-DEZUEMUM.js.map +1 -0
  7. package/dist/esm/chunk-DUOXDOUE.js +477 -0
  8. package/dist/esm/chunk-DUOXDOUE.js.map +1 -0
  9. package/dist/esm/editor-6UMULJYB.js +180 -0
  10. package/dist/esm/editor-6UMULJYB.js.map +1 -0
  11. package/dist/esm/editor-EYOQTGMT.js +282 -0
  12. package/dist/esm/editor-EYOQTGMT.js.map +1 -0
  13. package/dist/esm/editor-OXPGKPF5.js +167 -0
  14. package/dist/esm/editor-OXPGKPF5.js.map +1 -0
  15. package/dist/esm/editor-VO6YAXRC.js +249 -0
  16. package/dist/esm/editor-VO6YAXRC.js.map +1 -0
  17. package/dist/esm/editor-XYLKTB6L.js +365 -0
  18. package/dist/esm/editor-XYLKTB6L.js.map +1 -0
  19. package/dist/esm/index.js +1110 -2306
  20. package/dist/esm/index.js.map +1 -1
  21. package/dist/index.d.mts +298 -59
  22. package/dist/index.d.ts +298 -59
  23. package/dist/index.js +3932 -2681
  24. package/dist/index.js.map +1 -1
  25. package/package.json +9 -8
  26. package/src/components/batch-outputs/index.tsx +3 -2
  27. package/src/components/code-editor/editor.tsx +89 -0
  28. package/src/components/code-editor/index.tsx +5 -89
  29. package/src/components/code-editor/language-features.ts +18 -18
  30. package/src/components/code-editor/theme/dark.ts +49 -30
  31. package/src/components/code-editor/theme/light.ts +56 -32
  32. package/src/components/code-editor-mini/index.tsx +2 -2
  33. package/src/components/condition-row/constants.ts +8 -0
  34. package/src/components/condition-row/index.tsx +4 -0
  35. package/src/components/db-condition-row/hooks/use-left.tsx +66 -0
  36. package/src/components/db-condition-row/hooks/use-op.tsx +59 -0
  37. package/src/components/db-condition-row/index.tsx +93 -0
  38. package/src/components/db-condition-row/styles.tsx +43 -0
  39. package/src/components/db-condition-row/types.ts +34 -0
  40. package/src/components/display-flow-value/index.tsx +2 -12
  41. package/src/components/display-inputs-values/index.tsx +44 -6
  42. package/src/components/dynamic-value-input/hooks.ts +25 -4
  43. package/src/components/dynamic-value-input/index.tsx +21 -12
  44. package/src/components/dynamic-value-input/styles.tsx +14 -4
  45. package/src/components/index.ts +3 -0
  46. package/src/components/inputs-values/index.tsx +14 -3
  47. package/src/components/inputs-values/styles.tsx +1 -1
  48. package/src/components/inputs-values-tree/hooks/use-child-list.tsx +76 -0
  49. package/src/components/inputs-values-tree/index.tsx +62 -0
  50. package/src/components/inputs-values-tree/row.tsx +177 -0
  51. package/src/components/inputs-values-tree/styles.tsx +128 -0
  52. package/src/components/inputs-values-tree/types.ts +21 -0
  53. package/src/components/json-editor-with-variables/editor.tsx +69 -0
  54. package/src/components/json-editor-with-variables/extensions/variable-tag.tsx +6 -5
  55. package/src/components/json-editor-with-variables/index.tsx +5 -59
  56. package/src/components/json-schema-editor/default-value.tsx +1 -3
  57. package/src/components/json-schema-editor/hooks.tsx +14 -3
  58. package/src/components/json-schema-editor/index.tsx +18 -58
  59. package/src/components/json-schema-editor/styles.tsx +12 -55
  60. package/src/components/json-schema-editor/types.ts +0 -1
  61. package/src/components/prompt-editor/editor.tsx +81 -0
  62. package/src/components/prompt-editor/index.tsx +5 -62
  63. package/src/components/prompt-editor-with-inputs/editor.tsx +25 -0
  64. package/src/components/prompt-editor-with-inputs/extensions/inputs-tree.tsx +11 -0
  65. package/src/components/prompt-editor-with-inputs/index.tsx +5 -16
  66. package/src/components/prompt-editor-with-inputs/inputs-picker.tsx +34 -17
  67. package/src/components/prompt-editor-with-variables/editor.tsx +22 -0
  68. package/src/components/prompt-editor-with-variables/extensions/variable-tag.tsx +12 -20
  69. package/src/components/prompt-editor-with-variables/extensions/variable-tree.tsx +13 -1
  70. package/src/components/prompt-editor-with-variables/index.tsx +5 -13
  71. package/src/components/type-selector/index.tsx +12 -2
  72. package/src/components/variable-selector/context.tsx +28 -0
  73. package/src/components/variable-selector/index.tsx +10 -1
  74. package/src/components/variable-selector/use-variable-tree.tsx +3 -3
  75. package/src/effects/auto-rename-ref/index.ts +7 -54
  76. package/src/effects/validate-when-variable-sync/index.ts +1 -1
  77. package/src/form-plugins/infer-assign-plugin/index.ts +1 -1
  78. package/src/form-plugins/infer-inputs-plugin/index.ts +4 -76
  79. package/src/hooks/use-object-list/index.tsx +35 -7
  80. package/src/index.ts +1 -0
  81. package/src/plugins/json-schema-preset/manager.ts +1 -0
  82. package/src/plugins/json-schema-preset/type-definition/date-time.tsx +25 -0
  83. package/src/plugins/json-schema-preset/type-definition/index.tsx +2 -0
  84. package/src/plugins/json-schema-preset/type-definition/string.tsx +18 -9
  85. package/src/shared/flow-value/index.ts +6 -0
  86. package/src/shared/flow-value/schema.ts +38 -0
  87. package/src/shared/flow-value/utils.ts +201 -0
  88. package/src/shared/format-legacy-refs/index.ts +1 -1
  89. package/src/shared/index.ts +3 -0
  90. package/src/shared/lazy-suspense/index.tsx +28 -0
  91. package/src/shared/polyfill-create-root/index.tsx +33 -0
  92. package/src/typings/flow-value/index.ts +3 -1
  93. package/src/validate/validate-flow-value/index.tsx +4 -16
  94. package/src/components/json-schema-editor/components/blur-input.tsx +0 -27
  95. package/src/plugins/disable-declaration-plugin/config.json +0 -5
  96. package/src/plugins/json-schema-preset/config.json +0 -9
  97. /package/src/components/{inputs-values/components/blur-input.tsx → blur-input/index.tsx} +0 -0
package/dist/index.d.mts CHANGED
@@ -1,10 +1,13 @@
1
- import React$1 from 'react';
1
+ import * as React$1 from 'react';
2
+ import React__default, { ComponentType, lazy } from 'react';
2
3
  import { IJsonSchema, JsonSchemaTypeRegistry as JsonSchemaTypeRegistry$1, JsonSchemaTypeManager } from '@flowgram.ai/json-schema';
3
4
  export { IJsonSchema, JsonSchemaBasicType, JsonSchemaUtils } from '@flowgram.ai/json-schema';
4
5
  import { TriggerRenderProps } from '@douyinfe/semi-ui/lib/es/treeSelect';
5
6
  import { InferValues } from '@coze-editor/editor/react';
6
- import preset from '@coze-editor/editor/preset-code';
7
- import { BaseVariableField, EffectOptions, EffectFuncProps, FormPluginCreator, FeedbackLevel, FlowNodeEntity } from '@flowgram.ai/editor';
7
+ import preset from '@coze-editor/editor/preset-prompt';
8
+ import preset$1 from '@coze-editor/editor/preset-code';
9
+ import { InputProps } from '@douyinfe/semi-ui/lib/es/input';
10
+ import { BaseVariableField, EffectOptions, EffectFuncProps, Scope, FormPluginCreator, FeedbackLevel, FlowNodeEntity } from '@flowgram.ai/editor';
8
11
  import * as _flowgram_ai_node from '@flowgram.ai/node';
9
12
  import * as _flowgram_ai_core from '@flowgram.ai/core';
10
13
  import { TreeNodeData } from '@douyinfe/semi-ui/lib/es/tree';
@@ -22,9 +25,19 @@ type VariableField = BaseVariableField<{
22
25
  declare function useVariableTree(params: {
23
26
  includeSchema?: IJsonSchema | IJsonSchema[];
24
27
  excludeSchema?: IJsonSchema | IJsonSchema[];
25
- customSkip?: (variable: VariableField) => boolean;
28
+ skipVariable?: (variable: VariableField) => boolean;
26
29
  }): TreeNodeData[];
27
30
 
31
+ /**
32
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
33
+ * SPDX-License-Identifier: MIT
34
+ */
35
+
36
+ declare const VariableSelectorProvider: ({ children, skipVariable, }: {
37
+ skipVariable?: (variable?: BaseVariableField) => boolean;
38
+ children: React__default.ReactNode;
39
+ }) => React__default.JSX.Element;
40
+
28
41
  /**
29
42
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
30
43
  * SPDX-License-Identifier: MIT
@@ -41,15 +54,15 @@ interface VariableSelectorProps {
41
54
  excludeSchema?: IJsonSchema | IJsonSchema[];
42
55
  readonly?: boolean;
43
56
  hasError?: boolean;
44
- style?: React$1.CSSProperties;
45
- triggerRender?: (props: TriggerRenderProps) => React$1.ReactNode;
57
+ style?: React__default.CSSProperties;
58
+ triggerRender?: (props: TriggerRenderProps) => React__default.ReactNode;
46
59
  }
47
60
 
48
61
  declare const VariableSelector: {
49
- ({ value, config, onChange, style, readonly, includeSchema, excludeSchema, hasError, triggerRender, }: VariableSelectorProps): React$1.JSX.Element;
62
+ ({ value, config, onChange, style, readonly, includeSchema, excludeSchema, hasError, triggerRender, }: VariableSelectorProps): React__default.JSX.Element;
50
63
  renderKey: string;
51
64
  };
52
- declare const InjectVariableSelector: React$1.FC<VariableSelectorProps>;
65
+ declare const InjectVariableSelector: React__default.FC<VariableSelectorProps>;
53
66
 
54
67
  /**
55
68
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -64,15 +77,15 @@ interface TypeSelectorProps {
64
77
  * @deprecated use readonly instead
65
78
  */
66
79
  disabled?: boolean;
67
- style?: React$1.CSSProperties;
80
+ style?: React__default.CSSProperties;
68
81
  }
69
82
  declare const getTypeSelectValue: (value?: Partial<IJsonSchema>) => string[] | undefined;
70
83
  declare const parseTypeSelectValue: (value?: string[]) => Partial<IJsonSchema> | undefined;
71
- declare function TypeSelector(props: TypeSelectorProps): React$1.JSX.Element;
84
+ declare function TypeSelector(props: TypeSelectorProps): React__default.JSX.Element;
72
85
  declare namespace TypeSelector {
73
86
  var renderKey: string;
74
87
  }
75
- declare const InjectTypeSelector: React$1.FC<TypeSelectorProps>;
88
+ declare const InjectTypeSelector: React__default.FC<TypeSelectorProps>;
76
89
 
77
90
  /**
78
91
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -86,7 +99,6 @@ interface ConfigType {
86
99
  defaultValueTitle?: string;
87
100
  defaultValuePlaceholder?: string;
88
101
  addButtonText?: string;
89
- jsonFormatText?: string;
90
102
  }
91
103
 
92
104
  /**
@@ -100,14 +112,14 @@ declare function JsonSchemaEditor(props: {
100
112
  config?: ConfigType;
101
113
  className?: string;
102
114
  readonly?: boolean;
103
- }): React$1.JSX.Element;
115
+ }): React__default.JSX.Element;
104
116
 
105
117
  /**
106
118
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
107
119
  * SPDX-License-Identifier: MIT
108
120
  */
109
121
 
110
- declare function BatchVariableSelector(props: VariableSelectorProps): React$1.JSX.Element;
122
+ declare function BatchVariableSelector(props: VariableSelectorProps): React__default.JSX.Element;
111
123
 
112
124
  /**
113
125
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -118,6 +130,7 @@ interface ConstantRendererProps<Value = any> {
118
130
  value?: Value;
119
131
  onChange?: (value: Value) => void;
120
132
  readonly?: boolean;
133
+ [key: string]: any;
121
134
  }
122
135
  interface JsonSchemaTypeRegistry<Value = any> extends JsonSchemaTypeRegistry$1 {
123
136
  /**
@@ -137,9 +150,9 @@ declare const createTypePresetPlugin: _flowgram_ai_core.PluginCreator<{
137
150
  */
138
151
 
139
152
  declare const useTypeManager: () => JsonSchemaTypeManager<IJsonSchema, JsonSchemaTypeRegistry>;
140
- declare const JsonSchemaTypePresetProvider: ({ types, children, }: React$1.PropsWithChildren<{
153
+ declare const JsonSchemaTypePresetProvider: ({ types, children, }: React__default.PropsWithChildren<{
141
154
  types: JsonSchemaTypeRegistry[];
142
- }>) => React$1.JSX.Element;
155
+ }>) => React__default.JSX.Element;
143
156
 
144
157
  /**
145
158
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -168,7 +181,7 @@ interface PropsType$a extends ConstantRendererProps {
168
181
  * SPDX-License-Identifier: MIT
169
182
  */
170
183
 
171
- declare function ConstantInput(props: PropsType$a): React$1.JSX.Element;
184
+ declare function ConstantInput(props: PropsType$a): React__default.JSX.Element;
172
185
 
173
186
  /**
174
187
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -178,9 +191,10 @@ declare function ConstantInput(props: PropsType$a): React$1.JSX.Element;
178
191
  interface IFlowValueExtra {
179
192
  index?: number;
180
193
  }
194
+ type FlowValueType = 'constant' | 'ref' | 'expression' | 'template';
181
195
  interface IFlowConstantValue {
182
196
  type: 'constant';
183
- content?: string | number | boolean;
197
+ content?: any;
184
198
  schema?: IJsonSchema;
185
199
  extra?: IFlowValueExtra;
186
200
  }
@@ -212,7 +226,7 @@ interface PropsType$9 {
212
226
  onChange: (value?: IFlowConstantRefValue) => void;
213
227
  readonly?: boolean;
214
228
  hasError?: boolean;
215
- style?: React$1.CSSProperties;
229
+ style?: React__default.CSSProperties;
216
230
  schema?: IJsonSchema;
217
231
  constantProps?: {
218
232
  strategies?: Strategy[];
@@ -220,11 +234,51 @@ interface PropsType$9 {
220
234
  [key: string]: any;
221
235
  };
222
236
  }
223
- declare function DynamicValueInput({ value, onChange, readonly, style, schema: schemaFromProps, constantProps, }: PropsType$9): React$1.JSX.Element;
237
+ declare function DynamicValueInput({ value, onChange, readonly, style, schema: schemaFromProps, constantProps, }: PropsType$9): React__default.JSX.Element;
224
238
  declare namespace DynamicValueInput {
225
239
  var renderKey: string;
226
240
  }
227
- declare const InjectDynamicValueInput: React$1.FC<PropsType$9>;
241
+ declare const InjectDynamicValueInput: React__default.FC<PropsType$9>;
242
+
243
+ /**
244
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
245
+ * SPDX-License-Identifier: MIT
246
+ */
247
+
248
+ interface OpConfig$1 {
249
+ label: string;
250
+ abbreviation: string;
251
+ rightDisplay?: string;
252
+ }
253
+ type OpConfigs$1 = Record<string, OpConfig$1>;
254
+ type IRule$1 = Partial<Record<string, string | null>>;
255
+ type IRules$1 = Record<string, IRule$1>;
256
+ interface ConditionRowValueType {
257
+ left?: IFlowRefValue;
258
+ operator?: string;
259
+ right?: IFlowConstantRefValue;
260
+ }
261
+
262
+ /**
263
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
264
+ * SPDX-License-Identifier: MIT
265
+ */
266
+
267
+ interface PropTypes$1 {
268
+ value?: ConditionRowValueType;
269
+ onChange: (value?: ConditionRowValueType) => void;
270
+ style?: React__default.CSSProperties;
271
+ readonly?: boolean;
272
+ ruleConfig?: {
273
+ ops?: OpConfigs$1;
274
+ rules?: IRules$1;
275
+ };
276
+ }
277
+ declare function ConditionRow({ style, value, onChange, readonly, ruleConfig, }: PropTypes$1): React__default.JSX.Element;
278
+ declare namespace ConditionRow {
279
+ var defaultRules: IRules$1;
280
+ var defaultOpConfigs: OpConfigs$1;
281
+ }
228
282
 
229
283
  /**
230
284
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -239,11 +293,17 @@ interface OpConfig {
239
293
  type OpConfigs = Record<string, OpConfig>;
240
294
  type IRule = Partial<Record<string, string | null>>;
241
295
  type IRules = Record<string, IRule>;
242
- interface ConditionRowValueType {
243
- left?: IFlowRefValue;
296
+ interface DBConditionRowValueType {
297
+ left?: string;
298
+ schema?: IJsonSchema;
244
299
  operator?: string;
245
300
  right?: IFlowConstantRefValue;
246
301
  }
302
+ interface DBConditionOptionType {
303
+ label: string | JSX.Element;
304
+ value: string;
305
+ schema: IJsonSchema;
306
+ }
247
307
 
248
308
  /**
249
309
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -251,16 +311,17 @@ interface ConditionRowValueType {
251
311
  */
252
312
 
253
313
  interface PropTypes {
254
- value?: ConditionRowValueType;
255
- onChange: (value?: ConditionRowValueType) => void;
256
- style?: React$1.CSSProperties;
314
+ value?: DBConditionRowValueType;
315
+ onChange: (value?: DBConditionRowValueType) => void;
316
+ style?: React__default.CSSProperties;
317
+ options?: DBConditionOptionType[];
257
318
  readonly?: boolean;
258
319
  ruleConfig?: {
259
320
  ops?: OpConfigs;
260
321
  rules?: IRules;
261
322
  };
262
323
  }
263
- declare function ConditionRow({ style, value, onChange, readonly, ruleConfig, }: PropTypes): React$1.JSX.Element;
324
+ declare function DBConditionRow({ style, value, onChange, readonly, options, ruleConfig, }: PropTypes): React__default.JSX.Element;
264
325
 
265
326
  /**
266
327
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -281,14 +342,14 @@ interface PropsType$8 {
281
342
  * SPDX-License-Identifier: MIT
282
343
  */
283
344
 
284
- declare function BatchOutputs(props: PropsType$8): React$1.JSX.Element;
345
+ declare function BatchOutputs(props: PropsType$8): React__default.JSX.Element;
285
346
 
286
347
  /**
287
348
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
288
349
  * SPDX-License-Identifier: MIT
289
350
  */
290
351
 
291
- type PropsType$7 = React$1.PropsWithChildren<{
352
+ type PropsType$7 = React__default.PropsWithChildren<{
292
353
  value?: IFlowTemplateValue;
293
354
  onChange: (value?: IFlowTemplateValue) => void;
294
355
  readonly?: boolean;
@@ -296,7 +357,7 @@ type PropsType$7 = React$1.PropsWithChildren<{
296
357
  placeholder?: string;
297
358
  activeLinePlaceholder?: string;
298
359
  disableMarkdownHighlight?: boolean;
299
- style?: React$1.CSSProperties;
360
+ style?: React__default.CSSProperties;
300
361
  }>;
301
362
 
302
363
  /**
@@ -304,34 +365,58 @@ type PropsType$7 = React$1.PropsWithChildren<{
304
365
  * SPDX-License-Identifier: MIT
305
366
  */
306
367
 
307
- type PromptEditorPropsType = PropsType$7;
308
- declare function PromptEditor(props: PropsType$7): React$1.JSX.Element;
368
+ type Preset$1 = typeof preset;
369
+ type Options$1 = Partial<InferValues<Preset$1[number]>>;
370
+ interface PromptEditorPropsType extends PropsType$7 {
371
+ options?: Options$1;
372
+ }
373
+ declare function PromptEditor$1(props: PromptEditorPropsType): React__default.JSX.Element;
374
+
375
+ /**
376
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
377
+ * SPDX-License-Identifier: MIT
378
+ */
379
+ declare const PromptEditor: React$1.LazyExoticComponent<typeof PromptEditor$1>;
309
380
 
310
381
  /**
311
382
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
312
383
  * SPDX-License-Identifier: MIT
313
384
  */
314
385
 
315
- declare function PromptEditorWithVariables(props: PromptEditorPropsType): React$1.JSX.Element;
386
+ interface PromptEditorWithVariablesProps extends PromptEditorPropsType {
387
+ }
388
+ declare function PromptEditorWithVariables$1(props: PromptEditorWithVariablesProps): React__default.JSX.Element;
389
+
390
+ /**
391
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
392
+ * SPDX-License-Identifier: MIT
393
+ */
394
+ declare const PromptEditorWithVariables: React$1.LazyExoticComponent<typeof PromptEditorWithVariables$1>;
316
395
 
317
396
  /**
318
397
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
319
398
  * SPDX-License-Identifier: MIT
320
399
  */
321
400
 
322
- interface PropsType$6 extends PromptEditorPropsType {
323
- inputsValues: Record<string, IFlowValue>;
401
+ interface PromptEditorWithInputsProps extends PromptEditorPropsType {
402
+ inputsValues: any;
324
403
  }
325
- declare function PromptEditorWithInputs({ inputsValues, ...restProps }: PropsType$6): React$1.JSX.Element;
404
+ declare function PromptEditorWithInputs$1({ inputsValues, ...restProps }: PromptEditorWithInputsProps): React__default.JSX.Element;
405
+
406
+ /**
407
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
408
+ * SPDX-License-Identifier: MIT
409
+ */
410
+ declare const PromptEditorWithInputs: React$1.LazyExoticComponent<typeof PromptEditorWithInputs$1>;
326
411
 
327
412
  /**
328
413
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
329
414
  * SPDX-License-Identifier: MIT
330
415
  */
331
416
 
332
- type Preset = typeof preset;
417
+ type Preset = typeof preset$1;
333
418
  type Options = Partial<InferValues<Preset[number]>>;
334
- interface CodeEditorPropsType extends React$1.PropsWithChildren<{}> {
419
+ interface CodeEditorPropsType extends React__default.PropsWithChildren<{}> {
335
420
  value?: string;
336
421
  onChange?: (value: string) => void;
337
422
  languageId: 'python' | 'typescript' | 'shell' | 'json';
@@ -341,28 +426,42 @@ interface CodeEditorPropsType extends React$1.PropsWithChildren<{}> {
341
426
  readonly?: boolean;
342
427
  options?: Options;
343
428
  }
344
- declare function CodeEditor({ value, onChange, languageId, theme, children, placeholder, activeLinePlaceholder, options, readonly, }: CodeEditorPropsType): React$1.JSX.Element;
429
+ declare function CodeEditor$1({ value, onChange, languageId, theme, children, placeholder, activeLinePlaceholder, options, readonly, }: CodeEditorPropsType): React__default.JSX.Element;
345
430
 
346
431
  /**
347
432
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
348
433
  * SPDX-License-Identifier: MIT
349
434
  */
435
+ declare const CodeEditor: React$1.LazyExoticComponent<typeof CodeEditor$1>;
350
436
 
351
- declare function CodeEditorMini(props: CodeEditorPropsType): React$1.JSX.Element;
437
+ /**
438
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
439
+ * SPDX-License-Identifier: MIT
440
+ */
441
+
442
+ declare function CodeEditorMini(props: CodeEditorPropsType): React__default.JSX.Element;
352
443
 
353
444
  /**
354
445
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
355
446
  * SPDX-License-Identifier: MIT
356
447
  */
357
448
 
358
- declare function JsonEditorWithVariables(props: Omit<CodeEditorPropsType, 'languageId'>): React$1.JSX.Element;
449
+ interface JsonEditorWithVariablesProps extends Omit<CodeEditorPropsType, 'languageId'> {
450
+ }
451
+ declare function JsonEditorWithVariables$1(props: JsonEditorWithVariablesProps): React__default.JSX.Element;
359
452
 
360
453
  /**
361
454
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
362
455
  * SPDX-License-Identifier: MIT
363
456
  */
457
+ declare const JsonEditorWithVariables: React$1.LazyExoticComponent<typeof JsonEditorWithVariables$1>;
364
458
 
365
- interface PropsType$5 {
459
+ /**
460
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
461
+ * SPDX-License-Identifier: MIT
462
+ */
463
+
464
+ interface PropsType$6 {
366
465
  value?: Record<string, IFlowValue | undefined>;
367
466
  onChange: (value?: Record<string, IFlowValue | undefined>) => void;
368
467
  readonly?: boolean;
@@ -380,14 +479,14 @@ interface PropsType$5 {
380
479
  * SPDX-License-Identifier: MIT
381
480
  */
382
481
 
383
- declare function InputsValues({ value, onChange, style, readonly, constantProps, schema, hasError, }: PropsType$5): React$1.JSX.Element;
482
+ declare function InputsValues({ value, onChange, style, readonly, constantProps, schema, hasError, }: PropsType$6): React__default.JSX.Element;
384
483
 
385
484
  /**
386
485
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
387
486
  * SPDX-License-Identifier: MIT
388
487
  */
389
488
 
390
- interface PropsType$4 {
489
+ interface PropsType$5 {
391
490
  value?: IJsonSchema;
392
491
  parentKey?: string;
393
492
  depth?: number;
@@ -395,57 +494,60 @@ interface PropsType$4 {
395
494
  showIcon?: boolean;
396
495
  typeManager?: JsonSchemaTypeManager;
397
496
  }
398
- declare function DisplaySchemaTree(props: Omit<PropsType$4, 'parentKey' | 'depth'>): React$1.JSX.Element;
497
+ declare function DisplaySchemaTree(props: Omit<PropsType$5, 'parentKey' | 'depth'>): React__default.JSX.Element;
399
498
 
400
499
  /**
401
500
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
402
501
  * SPDX-License-Identifier: MIT
403
502
  */
404
503
 
405
- interface PropsType$3 {
504
+ interface PropsType$4 {
406
505
  value?: IJsonSchema;
407
506
  showIconInTree?: boolean;
408
507
  displayFromScope?: boolean;
409
508
  typeManager?: JsonSchemaTypeManager;
410
509
  }
411
- declare function DisplayOutputs({ value, showIconInTree, displayFromScope }: PropsType$3): React$1.JSX.Element;
510
+ declare function DisplayOutputs({ value, showIconInTree, displayFromScope }: PropsType$4): React__default.JSX.Element;
412
511
 
413
512
  /**
414
513
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
415
514
  * SPDX-License-Identifier: MIT
416
515
  */
417
516
 
418
- interface PropsType$2 {
517
+ interface PropsType$3 {
419
518
  title?: JSX.Element | string;
420
519
  value?: IJsonSchema;
421
520
  showIconInTree?: boolean;
422
521
  warning?: boolean;
423
522
  }
424
- declare function DisplaySchemaTag({ value, showIconInTree, title, warning }: PropsType$2): React$1.JSX.Element;
523
+ declare function DisplaySchemaTag({ value, showIconInTree, title, warning }: PropsType$3): React__default.JSX.Element;
425
524
 
426
525
  /**
427
526
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
428
527
  * SPDX-License-Identifier: MIT
429
528
  */
430
529
 
431
- interface PropsType$1 {
530
+ interface PropsType$2 {
432
531
  value?: IFlowValue;
433
532
  title?: JSX.Element | string;
434
533
  showIconInTree?: boolean;
435
534
  typeManager?: JsonSchemaTypeManager;
436
535
  }
437
- declare function DisplayFlowValue({ value, title, showIconInTree }: PropsType$1): React$1.JSX.Element;
536
+ declare function DisplayFlowValue({ value, title, showIconInTree }: PropsType$2): React__default.JSX.Element;
438
537
 
439
538
  /**
440
539
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
441
540
  * SPDX-License-Identifier: MIT
442
541
  */
443
542
 
444
- interface PropsType {
445
- value?: Record<string, IFlowValue | undefined>;
543
+ interface PropsType$1 {
544
+ value?: any;
446
545
  showIconInTree?: boolean;
447
546
  }
448
- declare function DisplayInputsValues({ value, showIconInTree }: PropsType): React$1.JSX.Element;
547
+ declare function DisplayInputsValues({ value, showIconInTree }: PropsType$1): React__default.JSX.Element;
548
+ declare function DisplayInputsValueAllInTag({ value, title, showIconInTree, }: PropsType$1 & {
549
+ title: string;
550
+ }): React__default.JSX.Element;
449
551
 
450
552
  /**
451
553
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -456,7 +558,7 @@ interface AssignRowsProps {
456
558
  name: string;
457
559
  readonly?: boolean;
458
560
  }
459
- declare function AssignRows(props: AssignRowsProps): React$1.JSX.Element;
561
+ declare function AssignRows(props: AssignRowsProps): React__default.JSX.Element;
460
562
 
461
563
  /**
462
564
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -484,7 +586,39 @@ interface AssignRowProps {
484
586
  * SPDX-License-Identifier: MIT
485
587
  */
486
588
 
487
- declare function AssignRow(props: AssignRowProps): React$1.JSX.Element;
589
+ declare function AssignRow(props: AssignRowProps): React__default.JSX.Element;
590
+
591
+ /**
592
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
593
+ * SPDX-License-Identifier: MIT
594
+ */
595
+
596
+ declare function BlurInput(props: InputProps): React__default.JSX.Element;
597
+
598
+ /**
599
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
600
+ * SPDX-License-Identifier: MIT
601
+ */
602
+
603
+ interface PropsType {
604
+ value?: any;
605
+ onChange: (value?: any) => void;
606
+ readonly?: boolean;
607
+ hasError?: boolean;
608
+ schema?: IJsonSchema;
609
+ style?: React.CSSProperties;
610
+ constantProps?: {
611
+ strategies?: Strategy[];
612
+ [key: string]: any;
613
+ };
614
+ }
615
+
616
+ /**
617
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
618
+ * SPDX-License-Identifier: MIT
619
+ */
620
+
621
+ declare function InputsValuesTree(props: PropsType): React__default.JSX.Element;
488
622
 
489
623
  /**
490
624
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -702,11 +836,94 @@ declare function formatNewRefToLegacyRef(value: NewFlowRefValueSchema): {
702
836
  * @param params.renderKey - Custom render key name, highest priority
703
837
  * @returns Wrapper component with dependency injection support
704
838
  */
705
- declare function createInjectMaterial<Props>(Component: React$1.FC<Props> & {
839
+ declare function createInjectMaterial<Props>(Component: React__default.FC<Props> & {
706
840
  renderKey?: string;
707
841
  }, params?: {
708
842
  renderKey?: string;
709
- }): React$1.FC<Props>;
843
+ }): React__default.FC<Props>;
844
+
845
+ /**
846
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
847
+ * SPDX-License-Identifier: MIT
848
+ */
849
+
850
+ declare namespace FlowValueUtils {
851
+ /**
852
+ * Check if the value is a constant type
853
+ */
854
+ function isConstant(value: any): value is IFlowConstantValue;
855
+ /**
856
+ * Check if the value is a reference type
857
+ */
858
+ function isRef(value: any): value is IFlowRefValue;
859
+ /**
860
+ * Check if the value is an expression type
861
+ */
862
+ function isExpression(value: any): value is IFlowExpressionValue;
863
+ /**
864
+ * Check if the value is a template type
865
+ */
866
+ function isTemplate(value: any): value is IFlowTemplateValue;
867
+ /**
868
+ * Check if the value is either a constant or reference type
869
+ */
870
+ function isConstantOrRef(value: any): value is IFlowConstantRefValue;
871
+ /**
872
+ * Check if the value is a valid flow value type
873
+ */
874
+ function isFlowValue(value: any): value is IFlowValue;
875
+ /**
876
+ * Traverse all flow values in the given value
877
+ * @param value The value to traverse
878
+ * @param options The options to traverse
879
+ * @returns A generator of flow values
880
+ */
881
+ function traverse(value: any, options: {
882
+ includeTypes?: FlowValueType[];
883
+ path?: string;
884
+ }): Generator<{
885
+ value: IFlowValue;
886
+ path: string;
887
+ }>;
888
+ /**
889
+ * Get all key paths in the template value
890
+ * @param value The template value
891
+ * @returns A list of key paths
892
+ */
893
+ function getTemplateKeyPaths(value: IFlowTemplateValue): string[][];
894
+ /**
895
+ * Infer the schema of the constant value
896
+ * @param value
897
+ * @returns
898
+ */
899
+ function inferConstantJsonSchema(value: IFlowConstantValue): IJsonSchema | undefined;
900
+ /**
901
+ * Infer the schema of the flow value
902
+ * @param values The flow value or object contains flow value
903
+ * @param scope
904
+ * @returns
905
+ */
906
+ function inferJsonSchema(values: any, scope: Scope): IJsonSchema | undefined;
907
+ }
908
+
909
+ /**
910
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
911
+ * SPDX-License-Identifier: MIT
912
+ */
913
+ interface IPolyfillRoot {
914
+ render(children: React.ReactNode): void;
915
+ unmount(): void;
916
+ }
917
+ declare function polyfillCreateRoot(dom: HTMLElement): IPolyfillRoot;
918
+ declare function unstableSetCreateRoot(createRoot: (dom: HTMLElement) => IPolyfillRoot): void;
919
+
920
+ /**
921
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
922
+ * SPDX-License-Identifier: MIT
923
+ */
924
+
925
+ declare function withSuspense<T extends ComponentType<any>>(Component: T, fallback?: React__default.ReactNode): T;
926
+ declare function lazySuspense<T extends ComponentType<any>>(params: Parameters<typeof lazy<T>>[0], fallback?: React__default.ReactNode): React__default.LazyExoticComponent<T>;
710
927
 
711
928
  /**
712
929
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -760,4 +977,26 @@ declare function validateFlowValue(value: IFlowValue | undefined, ctx: Context):
760
977
  message: string;
761
978
  } | undefined;
762
979
 
763
- export { AssignRow, AssignRows, type AssignValueType, BatchOutputs, BatchVariableSelector, CodeEditor, CodeEditorMini, type CodeEditorPropsType, ConditionRow, type ConditionRowValueType, ConstantInput, type Strategy as ConstantInputStrategy, type ConstantRendererProps, DisplayFlowValue, DisplayInputsValues, DisplayOutputs, DisplaySchemaTag, DisplaySchemaTree, DynamicValueInput, type IFlowConstantRefValue, type IFlowConstantValue, type IFlowExpressionValue, type IFlowRefValue, type IFlowTemplateValue, type IFlowValue, type IFlowValueExtra, InjectDynamicValueInput, InjectTypeSelector, InjectVariableSelector, InputsValues, JsonEditorWithVariables, JsonSchemaEditor, JsonSchemaTypePresetProvider, type JsonSchemaTypeRegistry, PromptEditor, type PromptEditorPropsType, PromptEditorWithInputs, PromptEditorWithVariables, TypeSelector, type TypeSelectorProps, VariableSelector, type VariableSelectorProps, autoRenameRefEffect, createBatchOutputsFormPlugin, createDisableDeclarationPlugin, createInferAssignPlugin, createInferInputsPlugin, createInjectMaterial, createTypePresetPlugin, formatLegacyRefOnInit, formatLegacyRefOnSubmit, formatLegacyRefToNewRef, formatNewRefToLegacyRef, getTypeSelectValue, isLegacyFlowRefValueSchema, isNewFlowRefValueSchema, listenRefSchemaChange, listenRefValueChange, parseTypeSelectValue, provideBatchInputEffect, provideBatchOutputsEffect, provideJsonSchemaOutputs, syncVariableTitle, useTypeManager, useVariableTree, validateFlowValue, validateWhenVariableSync };
980
+ /**
981
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
982
+ * SPDX-License-Identifier: MIT
983
+ */
984
+ interface ListItem<ValueType> {
985
+ id: string;
986
+ key?: string;
987
+ value?: ValueType;
988
+ }
989
+ type ObjectType<ValueType> = Record<string, ValueType | undefined>;
990
+ declare function useObjectList<ValueType>({ value, onChange, sortIndexKey, }: {
991
+ value?: ObjectType<ValueType>;
992
+ onChange: (value?: ObjectType<ValueType>) => void;
993
+ sortIndexKey?: string | ((item: ValueType | undefined) => string);
994
+ }): {
995
+ list: ListItem<ValueType>[];
996
+ add: (defaultValue?: ValueType) => void;
997
+ updateKey: (itemId: string, key: string) => void;
998
+ updateValue: (itemId: string, value: ValueType) => void;
999
+ remove: (itemId: string) => void;
1000
+ };
1001
+
1002
+ export { AssignRow, AssignRows, type AssignValueType, BatchOutputs, BatchVariableSelector, BlurInput, CodeEditor, CodeEditorMini, type CodeEditorPropsType, ConditionRow, type ConditionRowValueType, ConstantInput, type Strategy as ConstantInputStrategy, type ConstantRendererProps, type DBConditionOptionType, DBConditionRow, type DBConditionRowValueType, DisplayFlowValue, DisplayInputsValueAllInTag, DisplayInputsValues, DisplayOutputs, DisplaySchemaTag, DisplaySchemaTree, DynamicValueInput, type FlowValueType, FlowValueUtils, type IFlowConstantRefValue, type IFlowConstantValue, type IFlowExpressionValue, type IFlowRefValue, type IFlowTemplateValue, type IFlowValue, type IFlowValueExtra, type IPolyfillRoot, InjectDynamicValueInput, InjectTypeSelector, InjectVariableSelector, InputsValues, InputsValuesTree, JsonEditorWithVariables, type JsonEditorWithVariablesProps, JsonSchemaEditor, JsonSchemaTypePresetProvider, type JsonSchemaTypeRegistry, PromptEditor, type PromptEditorPropsType, PromptEditorWithInputs, type PromptEditorWithInputsProps, PromptEditorWithVariables, type PromptEditorWithVariablesProps, TypeSelector, type TypeSelectorProps, VariableSelector, type VariableSelectorProps, VariableSelectorProvider, autoRenameRefEffect, createBatchOutputsFormPlugin, createDisableDeclarationPlugin, createInferAssignPlugin, createInferInputsPlugin, createInjectMaterial, createTypePresetPlugin, formatLegacyRefOnInit, formatLegacyRefOnSubmit, formatLegacyRefToNewRef, formatNewRefToLegacyRef, getTypeSelectValue, isLegacyFlowRefValueSchema, isNewFlowRefValueSchema, lazySuspense, listenRefSchemaChange, listenRefValueChange, parseTypeSelectValue, polyfillCreateRoot, provideBatchInputEffect, provideBatchOutputsEffect, provideJsonSchemaOutputs, syncVariableTitle, unstableSetCreateRoot, useObjectList, useTypeManager, useVariableTree, validateFlowValue, validateWhenVariableSync, withSuspense };