@flowgram.ai/form-materials 0.4.4 → 0.4.6

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 (47) hide show
  1. package/dist/esm/chunk-6OZSB6PD.js +10 -0
  2. package/dist/esm/chunk-6OZSB6PD.js.map +1 -0
  3. package/dist/esm/chunk-G4HQ7OSI.js +440 -0
  4. package/dist/esm/chunk-G4HQ7OSI.js.map +1 -0
  5. package/dist/esm/chunk-QIJ4QVB2.js +271 -0
  6. package/dist/esm/chunk-QIJ4QVB2.js.map +1 -0
  7. package/dist/esm/editor-6UMULJYB.js +180 -0
  8. package/dist/esm/editor-6UMULJYB.js.map +1 -0
  9. package/dist/esm/editor-E2BQTPCD.js +388 -0
  10. package/dist/esm/editor-E2BQTPCD.js.map +1 -0
  11. package/dist/esm/editor-H2R7JJLO.js +282 -0
  12. package/dist/esm/editor-H2R7JJLO.js.map +1 -0
  13. package/dist/esm/editor-JX42GFAZ.js +249 -0
  14. package/dist/esm/editor-JX42GFAZ.js.map +1 -0
  15. package/dist/esm/editor-YMNCDGUR.js +167 -0
  16. package/dist/esm/editor-YMNCDGUR.js.map +1 -0
  17. package/dist/esm/index.js +1388 -3029
  18. package/dist/esm/index.js.map +1 -1
  19. package/dist/index.d.mts +144 -51
  20. package/dist/index.d.ts +144 -51
  21. package/dist/index.js +3511 -2759
  22. package/dist/index.js.map +1 -1
  23. package/package.json +6 -6
  24. package/src/components/code-editor/editor.tsx +96 -0
  25. package/src/components/code-editor/index.tsx +5 -89
  26. package/src/components/code-editor/theme/dark.ts +49 -30
  27. package/src/components/code-editor/theme/light.ts +56 -32
  28. package/src/components/code-editor-mini/index.tsx +2 -2
  29. package/src/components/condition-row/index.tsx +4 -0
  30. package/src/components/db-condition-row/hooks/use-left.tsx +66 -0
  31. package/src/components/db-condition-row/hooks/use-op.tsx +59 -0
  32. package/src/components/db-condition-row/index.tsx +93 -0
  33. package/src/components/db-condition-row/styles.tsx +43 -0
  34. package/src/components/db-condition-row/types.ts +34 -0
  35. package/src/components/index.ts +1 -0
  36. package/src/components/json-editor-with-variables/editor.tsx +69 -0
  37. package/src/components/json-editor-with-variables/extensions/variable-tag.tsx +4 -3
  38. package/src/components/json-editor-with-variables/index.tsx +5 -60
  39. package/src/components/prompt-editor/editor.tsx +81 -0
  40. package/src/components/prompt-editor/index.tsx +5 -69
  41. package/src/components/prompt-editor-with-inputs/editor.tsx +25 -0
  42. package/src/components/prompt-editor-with-inputs/index.tsx +5 -15
  43. package/src/components/prompt-editor-with-variables/editor.tsx +22 -0
  44. package/src/components/prompt-editor-with-variables/extensions/variable-tag.tsx +10 -18
  45. package/src/components/prompt-editor-with-variables/index.tsx +5 -13
  46. package/src/shared/index.ts +1 -0
  47. package/src/shared/polyfill-create-root/index.tsx +33 -0
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import React$1 from 'react';
1
+ import * as React$1 from 'react';
2
+ import React__default 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';
@@ -43,15 +44,15 @@ interface VariableSelectorProps {
43
44
  excludeSchema?: IJsonSchema | IJsonSchema[];
44
45
  readonly?: boolean;
45
46
  hasError?: boolean;
46
- style?: React$1.CSSProperties;
47
- triggerRender?: (props: TriggerRenderProps) => React$1.ReactNode;
47
+ style?: React__default.CSSProperties;
48
+ triggerRender?: (props: TriggerRenderProps) => React__default.ReactNode;
48
49
  }
49
50
 
50
51
  declare const VariableSelector: {
51
- ({ value, config, onChange, style, readonly, includeSchema, excludeSchema, hasError, triggerRender, }: VariableSelectorProps): React$1.JSX.Element;
52
+ ({ value, config, onChange, style, readonly, includeSchema, excludeSchema, hasError, triggerRender, }: VariableSelectorProps): React__default.JSX.Element;
52
53
  renderKey: string;
53
54
  };
54
- declare const InjectVariableSelector: React$1.FC<VariableSelectorProps>;
55
+ declare const InjectVariableSelector: React__default.FC<VariableSelectorProps>;
55
56
 
56
57
  /**
57
58
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -66,15 +67,15 @@ interface TypeSelectorProps {
66
67
  * @deprecated use readonly instead
67
68
  */
68
69
  disabled?: boolean;
69
- style?: React$1.CSSProperties;
70
+ style?: React__default.CSSProperties;
70
71
  }
71
72
  declare const getTypeSelectValue: (value?: Partial<IJsonSchema>) => string[] | undefined;
72
73
  declare const parseTypeSelectValue: (value?: string[]) => Partial<IJsonSchema> | undefined;
73
- declare function TypeSelector(props: TypeSelectorProps): React$1.JSX.Element;
74
+ declare function TypeSelector(props: TypeSelectorProps): React__default.JSX.Element;
74
75
  declare namespace TypeSelector {
75
76
  var renderKey: string;
76
77
  }
77
- declare const InjectTypeSelector: React$1.FC<TypeSelectorProps>;
78
+ declare const InjectTypeSelector: React__default.FC<TypeSelectorProps>;
78
79
 
79
80
  /**
80
81
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -101,14 +102,14 @@ declare function JsonSchemaEditor(props: {
101
102
  config?: ConfigType;
102
103
  className?: string;
103
104
  readonly?: boolean;
104
- }): React$1.JSX.Element;
105
+ }): React__default.JSX.Element;
105
106
 
106
107
  /**
107
108
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
108
109
  * SPDX-License-Identifier: MIT
109
110
  */
110
111
 
111
- declare function BatchVariableSelector(props: VariableSelectorProps): React$1.JSX.Element;
112
+ declare function BatchVariableSelector(props: VariableSelectorProps): React__default.JSX.Element;
112
113
 
113
114
  /**
114
115
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -139,9 +140,9 @@ declare const createTypePresetPlugin: _flowgram_ai_core.PluginCreator<{
139
140
  */
140
141
 
141
142
  declare const useTypeManager: () => JsonSchemaTypeManager<IJsonSchema, JsonSchemaTypeRegistry>;
142
- declare const JsonSchemaTypePresetProvider: ({ types, children, }: React$1.PropsWithChildren<{
143
+ declare const JsonSchemaTypePresetProvider: ({ types, children, }: React__default.PropsWithChildren<{
143
144
  types: JsonSchemaTypeRegistry[];
144
- }>) => React$1.JSX.Element;
145
+ }>) => React__default.JSX.Element;
145
146
 
146
147
  /**
147
148
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -158,7 +159,7 @@ interface Strategy<Value = any> {
158
159
  hit: (schema: IJsonSchema) => boolean;
159
160
  Renderer: React.FC<ConstantRendererProps<Value>>;
160
161
  }
161
- interface PropsType$b extends ConstantRendererProps {
162
+ interface PropsType$a extends ConstantRendererProps {
162
163
  schema: IJsonSchema;
163
164
  strategies?: Strategy[];
164
165
  fallbackRenderer?: React.FC<ConstantRendererProps>;
@@ -170,7 +171,7 @@ interface PropsType$b extends ConstantRendererProps {
170
171
  * SPDX-License-Identifier: MIT
171
172
  */
172
173
 
173
- declare function ConstantInput(props: PropsType$b): React$1.JSX.Element;
174
+ declare function ConstantInput(props: PropsType$a): React__default.JSX.Element;
174
175
 
175
176
  /**
176
177
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -210,12 +211,12 @@ type IFlowConstantRefValue = IFlowConstantValue | IFlowRefValue;
210
211
  * SPDX-License-Identifier: MIT
211
212
  */
212
213
 
213
- interface PropsType$a {
214
+ interface PropsType$9 {
214
215
  value?: IFlowConstantRefValue;
215
216
  onChange: (value?: IFlowConstantRefValue) => void;
216
217
  readonly?: boolean;
217
218
  hasError?: boolean;
218
- style?: React$1.CSSProperties;
219
+ style?: React__default.CSSProperties;
219
220
  schema?: IJsonSchema;
220
221
  constantProps?: {
221
222
  strategies?: Strategy[];
@@ -223,11 +224,51 @@ interface PropsType$a {
223
224
  [key: string]: any;
224
225
  };
225
226
  }
226
- declare function DynamicValueInput({ value, onChange, readonly, style, schema: schemaFromProps, constantProps, }: PropsType$a): React$1.JSX.Element;
227
+ declare function DynamicValueInput({ value, onChange, readonly, style, schema: schemaFromProps, constantProps, }: PropsType$9): React__default.JSX.Element;
227
228
  declare namespace DynamicValueInput {
228
229
  var renderKey: string;
229
230
  }
230
- declare const InjectDynamicValueInput: React$1.FC<PropsType$a>;
231
+ declare const InjectDynamicValueInput: React__default.FC<PropsType$9>;
232
+
233
+ /**
234
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
235
+ * SPDX-License-Identifier: MIT
236
+ */
237
+
238
+ interface OpConfig$1 {
239
+ label: string;
240
+ abbreviation: string;
241
+ rightDisplay?: string;
242
+ }
243
+ type OpConfigs$1 = Record<string, OpConfig$1>;
244
+ type IRule$1 = Partial<Record<string, string | null>>;
245
+ type IRules$1 = Record<string, IRule$1>;
246
+ interface ConditionRowValueType {
247
+ left?: IFlowRefValue;
248
+ operator?: string;
249
+ right?: IFlowConstantRefValue;
250
+ }
251
+
252
+ /**
253
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
254
+ * SPDX-License-Identifier: MIT
255
+ */
256
+
257
+ interface PropTypes$1 {
258
+ value?: ConditionRowValueType;
259
+ onChange: (value?: ConditionRowValueType) => void;
260
+ style?: React__default.CSSProperties;
261
+ readonly?: boolean;
262
+ ruleConfig?: {
263
+ ops?: OpConfigs$1;
264
+ rules?: IRules$1;
265
+ };
266
+ }
267
+ declare function ConditionRow({ style, value, onChange, readonly, ruleConfig, }: PropTypes$1): React__default.JSX.Element;
268
+ declare namespace ConditionRow {
269
+ var defaultRules: IRules$1;
270
+ var defaultOpConfigs: OpConfigs$1;
271
+ }
231
272
 
232
273
  /**
233
274
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -242,11 +283,17 @@ interface OpConfig {
242
283
  type OpConfigs = Record<string, OpConfig>;
243
284
  type IRule = Partial<Record<string, string | null>>;
244
285
  type IRules = Record<string, IRule>;
245
- interface ConditionRowValueType {
246
- left?: IFlowRefValue;
286
+ interface DBConditionRowValueType {
287
+ left?: string;
288
+ schema?: IJsonSchema;
247
289
  operator?: string;
248
290
  right?: IFlowConstantRefValue;
249
291
  }
292
+ interface DBConditionOptionType {
293
+ label: string | JSX.Element;
294
+ value: string;
295
+ schema: IJsonSchema;
296
+ }
250
297
 
251
298
  /**
252
299
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -254,16 +301,17 @@ interface ConditionRowValueType {
254
301
  */
255
302
 
256
303
  interface PropTypes {
257
- value?: ConditionRowValueType;
258
- onChange: (value?: ConditionRowValueType) => void;
259
- style?: React$1.CSSProperties;
304
+ value?: DBConditionRowValueType;
305
+ onChange: (value?: DBConditionRowValueType) => void;
306
+ style?: React__default.CSSProperties;
307
+ options?: DBConditionOptionType[];
260
308
  readonly?: boolean;
261
309
  ruleConfig?: {
262
310
  ops?: OpConfigs;
263
311
  rules?: IRules;
264
312
  };
265
313
  }
266
- declare function ConditionRow({ style, value, onChange, readonly, ruleConfig, }: PropTypes): React$1.JSX.Element;
314
+ declare function DBConditionRow({ style, value, onChange, readonly, options, ruleConfig, }: PropTypes): React__default.JSX.Element;
267
315
 
268
316
  /**
269
317
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -271,7 +319,7 @@ declare function ConditionRow({ style, value, onChange, readonly, ruleConfig, }:
271
319
  */
272
320
 
273
321
  type ValueType = Record<string, IFlowRefValue | undefined>;
274
- interface PropsType$9 {
322
+ interface PropsType$8 {
275
323
  value?: ValueType;
276
324
  onChange: (value?: ValueType) => void;
277
325
  readonly?: boolean;
@@ -284,14 +332,14 @@ interface PropsType$9 {
284
332
  * SPDX-License-Identifier: MIT
285
333
  */
286
334
 
287
- declare function BatchOutputs(props: PropsType$9): React$1.JSX.Element;
335
+ declare function BatchOutputs(props: PropsType$8): React__default.JSX.Element;
288
336
 
289
337
  /**
290
338
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
291
339
  * SPDX-License-Identifier: MIT
292
340
  */
293
341
 
294
- type PropsType$8 = React$1.PropsWithChildren<{
342
+ type PropsType$7 = React__default.PropsWithChildren<{
295
343
  value?: IFlowTemplateValue;
296
344
  onChange: (value?: IFlowTemplateValue) => void;
297
345
  readonly?: boolean;
@@ -299,7 +347,7 @@ type PropsType$8 = React$1.PropsWithChildren<{
299
347
  placeholder?: string;
300
348
  activeLinePlaceholder?: string;
301
349
  disableMarkdownHighlight?: boolean;
302
- style?: React$1.CSSProperties;
350
+ style?: React__default.CSSProperties;
303
351
  }>;
304
352
 
305
353
  /**
@@ -309,27 +357,47 @@ type PropsType$8 = React$1.PropsWithChildren<{
309
357
 
310
358
  type Preset$1 = typeof preset;
311
359
  type Options$1 = Partial<InferValues<Preset$1[number]>>;
312
- interface PromptEditorPropsType extends PropsType$8 {
360
+ interface PromptEditorPropsType extends PropsType$7 {
313
361
  options?: Options$1;
314
362
  }
315
- declare function PromptEditor(props: PromptEditorPropsType): React$1.JSX.Element;
363
+ declare function PromptEditor$1(props: PromptEditorPropsType): React__default.JSX.Element;
316
364
 
317
365
  /**
318
366
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
319
367
  * SPDX-License-Identifier: MIT
320
368
  */
369
+ declare const PromptEditor: React$1.LazyExoticComponent<typeof PromptEditor$1>;
370
+
371
+ /**
372
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
373
+ * SPDX-License-Identifier: MIT
374
+ */
375
+
376
+ interface PromptEditorWithVariablesProps extends PromptEditorPropsType {
377
+ }
378
+ declare function PromptEditorWithVariables$1(props: PromptEditorWithVariablesProps): React__default.JSX.Element;
321
379
 
322
- declare function PromptEditorWithVariables(props: PromptEditorPropsType): React$1.JSX.Element;
380
+ /**
381
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
382
+ * SPDX-License-Identifier: MIT
383
+ */
384
+ declare const PromptEditorWithVariables: React$1.LazyExoticComponent<typeof PromptEditorWithVariables$1>;
323
385
 
324
386
  /**
325
387
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
326
388
  * SPDX-License-Identifier: MIT
327
389
  */
328
390
 
329
- interface PropsType$7 extends PromptEditorPropsType {
391
+ interface PromptEditorWithInputsProps extends PromptEditorPropsType {
330
392
  inputsValues: any;
331
393
  }
332
- declare function PromptEditorWithInputs({ inputsValues, ...restProps }: PropsType$7): React$1.JSX.Element;
394
+ declare function PromptEditorWithInputs$1({ inputsValues, ...restProps }: PromptEditorWithInputsProps): React__default.JSX.Element;
395
+
396
+ /**
397
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
398
+ * SPDX-License-Identifier: MIT
399
+ */
400
+ declare const PromptEditorWithInputs: React$1.LazyExoticComponent<typeof PromptEditorWithInputs$1>;
333
401
 
334
402
  /**
335
403
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -338,7 +406,7 @@ declare function PromptEditorWithInputs({ inputsValues, ...restProps }: PropsTyp
338
406
 
339
407
  type Preset = typeof preset$1;
340
408
  type Options = Partial<InferValues<Preset[number]>>;
341
- interface CodeEditorPropsType extends React$1.PropsWithChildren<{}> {
409
+ interface CodeEditorPropsType extends React__default.PropsWithChildren<{}> {
342
410
  value?: string;
343
411
  onChange?: (value: string) => void;
344
412
  languageId: 'python' | 'typescript' | 'shell' | 'json';
@@ -348,21 +416,35 @@ interface CodeEditorPropsType extends React$1.PropsWithChildren<{}> {
348
416
  readonly?: boolean;
349
417
  options?: Options;
350
418
  }
351
- declare function CodeEditor({ value, onChange, languageId, theme, children, placeholder, activeLinePlaceholder, options, readonly, }: CodeEditorPropsType): React$1.JSX.Element;
419
+ declare function CodeEditor$1({ value, onChange, languageId, theme, children, placeholder, activeLinePlaceholder, options, readonly, }: CodeEditorPropsType): React__default.JSX.Element;
352
420
 
353
421
  /**
354
422
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
355
423
  * SPDX-License-Identifier: MIT
356
424
  */
425
+ declare const CodeEditor: React$1.LazyExoticComponent<typeof CodeEditor$1>;
357
426
 
358
- declare function CodeEditorMini(props: CodeEditorPropsType): React$1.JSX.Element;
427
+ /**
428
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
429
+ * SPDX-License-Identifier: MIT
430
+ */
431
+
432
+ declare function CodeEditorMini(props: CodeEditorPropsType): React__default.JSX.Element;
359
433
 
360
434
  /**
361
435
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
362
436
  * SPDX-License-Identifier: MIT
363
437
  */
364
438
 
365
- declare function JsonEditorWithVariables(props: Omit<CodeEditorPropsType, 'languageId'>): React$1.JSX.Element;
439
+ interface JsonEditorWithVariablesProps extends Omit<CodeEditorPropsType, 'languageId'> {
440
+ }
441
+ declare function JsonEditorWithVariables$1(props: JsonEditorWithVariablesProps): React__default.JSX.Element;
442
+
443
+ /**
444
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
445
+ * SPDX-License-Identifier: MIT
446
+ */
447
+ declare const JsonEditorWithVariables: React$1.LazyExoticComponent<typeof JsonEditorWithVariables$1>;
366
448
 
367
449
  /**
368
450
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -387,7 +469,7 @@ interface PropsType$6 {
387
469
  * SPDX-License-Identifier: MIT
388
470
  */
389
471
 
390
- declare function InputsValues({ value, onChange, style, readonly, constantProps, schema, hasError, }: PropsType$6): React$1.JSX.Element;
472
+ declare function InputsValues({ value, onChange, style, readonly, constantProps, schema, hasError, }: PropsType$6): React__default.JSX.Element;
391
473
 
392
474
  /**
393
475
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -402,7 +484,7 @@ interface PropsType$5 {
402
484
  showIcon?: boolean;
403
485
  typeManager?: JsonSchemaTypeManager;
404
486
  }
405
- declare function DisplaySchemaTree(props: Omit<PropsType$5, 'parentKey' | 'depth'>): React$1.JSX.Element;
487
+ declare function DisplaySchemaTree(props: Omit<PropsType$5, 'parentKey' | 'depth'>): React__default.JSX.Element;
406
488
 
407
489
  /**
408
490
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -415,7 +497,7 @@ interface PropsType$4 {
415
497
  displayFromScope?: boolean;
416
498
  typeManager?: JsonSchemaTypeManager;
417
499
  }
418
- declare function DisplayOutputs({ value, showIconInTree, displayFromScope }: PropsType$4): React$1.JSX.Element;
500
+ declare function DisplayOutputs({ value, showIconInTree, displayFromScope }: PropsType$4): React__default.JSX.Element;
419
501
 
420
502
  /**
421
503
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -428,7 +510,7 @@ interface PropsType$3 {
428
510
  showIconInTree?: boolean;
429
511
  warning?: boolean;
430
512
  }
431
- declare function DisplaySchemaTag({ value, showIconInTree, title, warning }: PropsType$3): React$1.JSX.Element;
513
+ declare function DisplaySchemaTag({ value, showIconInTree, title, warning }: PropsType$3): React__default.JSX.Element;
432
514
 
433
515
  /**
434
516
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -441,7 +523,7 @@ interface PropsType$2 {
441
523
  showIconInTree?: boolean;
442
524
  typeManager?: JsonSchemaTypeManager;
443
525
  }
444
- declare function DisplayFlowValue({ value, title, showIconInTree }: PropsType$2): React$1.JSX.Element;
526
+ declare function DisplayFlowValue({ value, title, showIconInTree }: PropsType$2): React__default.JSX.Element;
445
527
 
446
528
  /**
447
529
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -452,10 +534,10 @@ interface PropsType$1 {
452
534
  value?: any;
453
535
  showIconInTree?: boolean;
454
536
  }
455
- declare function DisplayInputsValues({ value, showIconInTree }: PropsType$1): React$1.JSX.Element;
537
+ declare function DisplayInputsValues({ value, showIconInTree }: PropsType$1): React__default.JSX.Element;
456
538
  declare function DisplayInputsValueAllInTag({ value, title, showIconInTree, }: PropsType$1 & {
457
539
  title: string;
458
- }): React$1.JSX.Element;
540
+ }): React__default.JSX.Element;
459
541
 
460
542
  /**
461
543
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -466,7 +548,7 @@ interface AssignRowsProps {
466
548
  name: string;
467
549
  readonly?: boolean;
468
550
  }
469
- declare function AssignRows(props: AssignRowsProps): React$1.JSX.Element;
551
+ declare function AssignRows(props: AssignRowsProps): React__default.JSX.Element;
470
552
 
471
553
  /**
472
554
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -494,14 +576,14 @@ interface AssignRowProps {
494
576
  * SPDX-License-Identifier: MIT
495
577
  */
496
578
 
497
- declare function AssignRow(props: AssignRowProps): React$1.JSX.Element;
579
+ declare function AssignRow(props: AssignRowProps): React__default.JSX.Element;
498
580
 
499
581
  /**
500
582
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
501
583
  * SPDX-License-Identifier: MIT
502
584
  */
503
585
 
504
- declare function BlurInput(props: InputProps): React$1.JSX.Element;
586
+ declare function BlurInput(props: InputProps): React__default.JSX.Element;
505
587
 
506
588
  /**
507
589
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -526,7 +608,7 @@ interface PropsType {
526
608
  * SPDX-License-Identifier: MIT
527
609
  */
528
610
 
529
- declare function InputsValuesTree(props: PropsType): React$1.JSX.Element;
611
+ declare function InputsValuesTree(props: PropsType): React__default.JSX.Element;
530
612
 
531
613
  /**
532
614
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -744,11 +826,11 @@ declare function formatNewRefToLegacyRef(value: NewFlowRefValueSchema): {
744
826
  * @param params.renderKey - Custom render key name, highest priority
745
827
  * @returns Wrapper component with dependency injection support
746
828
  */
747
- declare function createInjectMaterial<Props>(Component: React$1.FC<Props> & {
829
+ declare function createInjectMaterial<Props>(Component: React__default.FC<Props> & {
748
830
  renderKey?: string;
749
831
  }, params?: {
750
832
  renderKey?: string;
751
- }): React$1.FC<Props>;
833
+ }): React__default.FC<Props>;
752
834
 
753
835
  /**
754
836
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
@@ -814,6 +896,17 @@ declare namespace FlowValueUtils {
814
896
  function inferJsonSchema(values: any, scope: Scope): IJsonSchema | undefined;
815
897
  }
816
898
 
899
+ /**
900
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
901
+ * SPDX-License-Identifier: MIT
902
+ */
903
+ interface IPolyfillRoot {
904
+ render(children: React.ReactNode): void;
905
+ unmount(): void;
906
+ }
907
+ declare function polyfillCreateRoot(dom: HTMLElement): IPolyfillRoot;
908
+ declare function unstableSetCreateRoot(createRoot: (dom: HTMLElement) => IPolyfillRoot): void;
909
+
817
910
  /**
818
911
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
819
912
  * SPDX-License-Identifier: MIT
@@ -888,4 +981,4 @@ declare function useObjectList<ValueType>({ value, onChange, sortIndexKey, }: {
888
981
  remove: (itemId: string) => void;
889
982
  };
890
983
 
891
- export { AssignRow, AssignRows, type AssignValueType, BatchOutputs, BatchVariableSelector, BlurInput, CodeEditor, CodeEditorMini, type CodeEditorPropsType, ConditionRow, type ConditionRowValueType, ConstantInput, type Strategy as ConstantInputStrategy, type ConstantRendererProps, DisplayFlowValue, DisplayInputsValueAllInTag, DisplayInputsValues, DisplayOutputs, DisplaySchemaTag, DisplaySchemaTree, DynamicValueInput, type FlowValueType, FlowValueUtils, type IFlowConstantRefValue, type IFlowConstantValue, type IFlowExpressionValue, type IFlowRefValue, type IFlowTemplateValue, type IFlowValue, type IFlowValueExtra, InjectDynamicValueInput, InjectTypeSelector, InjectVariableSelector, InputsValues, InputsValuesTree, 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, useObjectList, useTypeManager, useVariableTree, validateFlowValue, validateWhenVariableSync };
984
+ 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, autoRenameRefEffect, createBatchOutputsFormPlugin, createDisableDeclarationPlugin, createInferAssignPlugin, createInferInputsPlugin, createInjectMaterial, createTypePresetPlugin, formatLegacyRefOnInit, formatLegacyRefOnSubmit, formatLegacyRefToNewRef, formatNewRefToLegacyRef, getTypeSelectValue, isLegacyFlowRefValueSchema, isNewFlowRefValueSchema, listenRefSchemaChange, listenRefValueChange, parseTypeSelectValue, polyfillCreateRoot, provideBatchInputEffect, provideBatchOutputsEffect, provideJsonSchemaOutputs, syncVariableTitle, unstableSetCreateRoot, useObjectList, useTypeManager, useVariableTree, validateFlowValue, validateWhenVariableSync };