@flowgram.ai/form-materials 0.1.0-alpha.13 → 0.1.0-alpha.15
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/run.sh +6 -0
- package/dist/cjs/components/assign-row/index.js +112 -0
- package/dist/cjs/components/assign-row/types.js +18 -0
- package/dist/cjs/components/assign-rows/index.js +85 -0
- package/dist/cjs/components/batch-outputs/index.js +91 -0
- package/dist/cjs/components/batch-outputs/styles.js +60 -0
- package/dist/cjs/components/batch-outputs/types.js +18 -0
- package/dist/cjs/components/batch-variable-selector/index.js +53 -0
- package/dist/cjs/components/blur-input/index.js +64 -0
- package/dist/cjs/components/code-editor/editor.js +117 -0
- package/dist/cjs/components/code-editor/index.js +57 -0
- package/dist/cjs/components/code-editor/init-worker.js +56 -0
- package/dist/cjs/components/code-editor/language-features.js +21 -0
- package/dist/cjs/components/code-editor/theme/dark.js +188 -0
- package/dist/cjs/components/code-editor/theme/index.js +11 -0
- package/dist/cjs/components/code-editor/theme/light.js +195 -0
- package/dist/cjs/components/code-editor/utils.js +42 -0
- package/dist/cjs/components/code-editor-mini/index.js +66 -0
- package/dist/cjs/components/condition-row/constants.js +165 -0
- package/dist/cjs/components/condition-row/hooks/useOp.js +78 -0
- package/dist/cjs/components/condition-row/hooks/useRule.js +68 -0
- package/dist/cjs/components/condition-row/index.js +123 -0
- package/dist/cjs/components/condition-row/styles.js +77 -0
- package/dist/cjs/components/condition-row/types.js +52 -0
- package/dist/cjs/components/constant-input/index.js +80 -0
- package/dist/cjs/components/constant-input/types.js +18 -0
- package/dist/cjs/components/db-condition-row/hooks/use-left.js +86 -0
- package/dist/cjs/components/db-condition-row/hooks/use-op.js +79 -0
- package/dist/cjs/components/db-condition-row/index.js +115 -0
- package/dist/cjs/components/db-condition-row/styles.js +94 -0
- package/dist/cjs/components/db-condition-row/types.js +18 -0
- package/dist/cjs/components/display-flow-value/index.js +64 -0
- package/dist/cjs/components/display-inputs-values/index.js +76 -0
- package/dist/cjs/components/display-inputs-values/styles.js +51 -0
- package/dist/cjs/components/display-outputs/index.js +72 -0
- package/dist/cjs/components/display-outputs/styles.js +51 -0
- package/dist/cjs/components/display-schema-tag/index.js +77 -0
- package/dist/cjs/components/display-schema-tag/styles.js +71 -0
- package/dist/cjs/components/display-schema-tree/index.js +93 -0
- package/dist/cjs/components/display-schema-tree/styles.js +135 -0
- package/dist/cjs/components/dynamic-value-input/hooks.js +99 -0
- package/dist/cjs/components/dynamic-value-input/index.js +174 -0
- package/dist/cjs/components/dynamic-value-input/styles.js +107 -0
- package/dist/cjs/components/index.js +156 -0
- package/dist/cjs/components/inputs-values/index.js +112 -0
- package/dist/cjs/components/inputs-values/styles.js +60 -0
- package/dist/cjs/components/inputs-values/types.js +18 -0
- package/dist/cjs/components/inputs-values-tree/hooks/use-child-list.js +77 -0
- package/dist/cjs/components/inputs-values-tree/index.js +87 -0
- package/dist/cjs/components/inputs-values-tree/row.js +183 -0
- package/dist/cjs/components/inputs-values-tree/styles.js +177 -0
- package/dist/cjs/components/inputs-values-tree/types.js +18 -0
- package/dist/cjs/components/json-editor-with-variables/editor.js +81 -0
- package/dist/cjs/components/json-editor-with-variables/extensions/variable-tag.js +151 -0
- package/dist/cjs/components/json-editor-with-variables/extensions/variable-tree.js +97 -0
- package/dist/cjs/components/json-editor-with-variables/index.js +57 -0
- package/dist/cjs/components/json-editor-with-variables/styles.js +89 -0
- package/dist/cjs/components/json-schema-editor/default-value.js +54 -0
- package/dist/cjs/components/json-schema-editor/hooks.js +130 -0
- package/dist/cjs/components/json-schema-editor/index.js +246 -0
- package/dist/cjs/components/json-schema-editor/styles.js +231 -0
- package/dist/cjs/components/json-schema-editor/types.js +18 -0
- package/dist/cjs/components/prompt-editor/editor.js +99 -0
- package/dist/cjs/components/prompt-editor/extensions/jinja.js +73 -0
- package/dist/cjs/components/prompt-editor/extensions/language-support.js +48 -0
- package/dist/cjs/components/prompt-editor/extensions/markdown.js +81 -0
- package/dist/cjs/components/prompt-editor/index.js +57 -0
- package/dist/cjs/components/prompt-editor/styles.js +55 -0
- package/dist/cjs/components/prompt-editor/types.js +7 -0
- package/dist/cjs/components/prompt-editor-with-inputs/editor.js +47 -0
- package/dist/cjs/components/prompt-editor-with-inputs/extensions/inputs-tree.js +101 -0
- package/dist/cjs/components/prompt-editor-with-inputs/index.js +57 -0
- package/dist/cjs/components/prompt-editor-with-inputs/inputs-picker.js +104 -0
- package/dist/cjs/components/prompt-editor-with-variables/editor.js +49 -0
- package/dist/cjs/components/prompt-editor-with-variables/extensions/variable-tag.js +151 -0
- package/dist/cjs/components/prompt-editor-with-variables/extensions/variable-tree.js +103 -0
- package/dist/cjs/components/prompt-editor-with-variables/index.js +57 -0
- package/dist/cjs/components/prompt-editor-with-variables/styles.js +89 -0
- package/dist/cjs/components/type-selector/index.js +139 -0
- package/dist/cjs/components/variable-selector/context.js +56 -0
- package/dist/cjs/components/variable-selector/index.js +143 -0
- package/dist/cjs/components/variable-selector/styles.js +114 -0
- package/dist/cjs/components/variable-selector/use-variable-tree.js +100 -0
- package/dist/cjs/effects/auto-rename-ref/index.js +98 -0
- package/dist/cjs/effects/index.js +60 -0
- package/dist/cjs/effects/listen-ref-schema-change/index.js +57 -0
- package/dist/cjs/effects/listen-ref-value-change/index.js +54 -0
- package/dist/cjs/effects/provide-batch-input/index.js +64 -0
- package/dist/cjs/effects/provide-json-schema-outputs/index.js +49 -0
- package/dist/cjs/effects/sync-variable-title/index.js +52 -0
- package/dist/cjs/effects/validate-when-variable-sync/index.js +49 -0
- package/dist/cjs/form-plugins/batch-outputs-plugin/index.js +97 -0
- package/dist/cjs/form-plugins/index.js +47 -0
- package/dist/cjs/form-plugins/infer-assign-plugin/index.js +72 -0
- package/dist/cjs/form-plugins/infer-inputs-plugin/index.js +47 -0
- package/dist/cjs/hooks/index.js +36 -0
- package/dist/cjs/hooks/use-object-list/index.js +136 -0
- package/dist/cjs/index.js +228 -0
- package/dist/cjs/plugins/disable-declaration-plugin/create-disable-declaration-plugin.js +51 -0
- package/dist/cjs/plugins/disable-declaration-plugin/index.js +36 -0
- package/dist/cjs/plugins/index.js +49 -0
- package/dist/cjs/plugins/json-schema-preset/create-type-preset-plugin.js +49 -0
- package/dist/cjs/plugins/json-schema-preset/index.js +57 -0
- package/dist/cjs/plugins/json-schema-preset/manager.js +18 -0
- package/dist/cjs/plugins/json-schema-preset/type-definition/array.js +49 -0
- package/dist/cjs/plugins/json-schema-preset/type-definition/boolean.js +63 -0
- package/dist/cjs/plugins/json-schema-preset/type-definition/date-time.js +52 -0
- package/dist/cjs/plugins/json-schema-preset/type-definition/index.js +53 -0
- package/dist/cjs/plugins/json-schema-preset/type-definition/integer.js +49 -0
- package/dist/cjs/plugins/json-schema-preset/type-definition/number.js +49 -0
- package/dist/cjs/plugins/json-schema-preset/type-definition/object.js +49 -0
- package/dist/cjs/plugins/json-schema-preset/type-definition/string.js +54 -0
- package/dist/cjs/shared/flow-value/index.js +36 -0
- package/dist/cjs/shared/flow-value/schema.js +82 -0
- package/dist/cjs/shared/flow-value/types.js +18 -0
- package/dist/cjs/shared/flow-value/utils.js +142 -0
- package/dist/cjs/shared/format-legacy-refs/index.js +99 -0
- package/dist/cjs/shared/index.js +73 -0
- package/dist/cjs/shared/inject-material/index.js +65 -0
- package/dist/cjs/shared/lazy-suspense/index.js +58 -0
- package/dist/cjs/shared/polyfill-create-root/index.js +53 -0
- package/dist/cjs/validate/index.js +36 -0
- package/dist/cjs/validate/validate-flow-value/index.js +63 -0
- package/dist/esm/components/assign-row/index.mjs +78 -0
- package/dist/esm/components/assign-row/types.mjs +0 -0
- package/dist/esm/components/assign-rows/index.mjs +51 -0
- package/dist/esm/components/batch-outputs/index.mjs +57 -0
- package/dist/esm/components/batch-outputs/styles.mjs +13 -0
- package/dist/esm/components/batch-outputs/types.mjs +0 -0
- package/dist/esm/components/batch-variable-selector/index.mjs +19 -0
- package/dist/esm/components/blur-input/index.mjs +20 -0
- package/dist/esm/components/code-editor/editor.mjs +55 -0
- package/dist/esm/components/code-editor/index.mjs +5 -0
- package/dist/esm/components/code-editor/init-worker.mjs +19 -0
- package/dist/esm/components/code-editor/language-features.mjs +15 -0
- package/dist/esm/components/code-editor/theme/dark.mjs +154 -0
- package/dist/esm/components/code-editor/theme/index.mjs +5 -0
- package/dist/esm/components/code-editor/theme/light.mjs +161 -0
- package/dist/esm/components/code-editor/utils.mjs +8 -0
- package/dist/esm/components/code-editor-mini/index.mjs +22 -0
- package/dist/esm/components/condition-row/constants.mjs +128 -0
- package/dist/esm/components/condition-row/hooks/useOp.mjs +44 -0
- package/dist/esm/components/condition-row/hooks/useRule.mjs +34 -0
- package/dist/esm/components/condition-row/index.mjs +89 -0
- package/dist/esm/components/condition-row/styles.mjs +21 -0
- package/dist/esm/components/condition-row/types.mjs +18 -0
- package/dist/esm/components/constant-input/index.mjs +36 -0
- package/dist/esm/components/constant-input/types.mjs +0 -0
- package/dist/esm/components/db-condition-row/hooks/use-left.mjs +52 -0
- package/dist/esm/components/db-condition-row/hooks/use-op.mjs +45 -0
- package/dist/esm/components/db-condition-row/index.mjs +81 -0
- package/dist/esm/components/db-condition-row/styles.mjs +32 -0
- package/dist/esm/components/db-condition-row/types.mjs +0 -0
- package/dist/esm/components/display-flow-value/index.mjs +30 -0
- package/dist/esm/components/display-inputs-values/index.mjs +39 -0
- package/dist/esm/components/display-inputs-values/styles.mjs +7 -0
- package/dist/esm/components/display-outputs/index.mjs +38 -0
- package/dist/esm/components/display-outputs/styles.mjs +7 -0
- package/dist/esm/components/display-schema-tag/index.mjs +33 -0
- package/dist/esm/components/display-schema-tag/styles.mjs +21 -0
- package/dist/esm/components/display-schema-tree/index.mjs +49 -0
- package/dist/esm/components/display-schema-tree/styles.mjs +79 -0
- package/dist/esm/components/dynamic-value-input/hooks.mjs +59 -0
- package/dist/esm/components/dynamic-value-input/index.mjs +137 -0
- package/dist/esm/components/dynamic-value-input/styles.mjs +54 -0
- package/dist/esm/components/index.mjs +26 -0
- package/dist/esm/components/inputs-values/index.mjs +78 -0
- package/dist/esm/components/inputs-values/styles.mjs +13 -0
- package/dist/esm/components/inputs-values/types.mjs +0 -0
- package/dist/esm/components/inputs-values-tree/hooks/use-child-list.mjs +43 -0
- package/dist/esm/components/inputs-values-tree/index.mjs +53 -0
- package/dist/esm/components/inputs-values-tree/row.mjs +149 -0
- package/dist/esm/components/inputs-values-tree/styles.mjs +105 -0
- package/dist/esm/components/inputs-values-tree/types.mjs +0 -0
- package/dist/esm/components/json-editor-with-variables/editor.mjs +47 -0
- package/dist/esm/components/json-editor-with-variables/extensions/variable-tag.mjs +117 -0
- package/dist/esm/components/json-editor-with-variables/extensions/variable-tree.mjs +63 -0
- package/dist/esm/components/json-editor-with-variables/index.mjs +5 -0
- package/dist/esm/components/json-editor-with-variables/styles.mjs +36 -0
- package/dist/esm/components/json-schema-editor/default-value.mjs +20 -0
- package/dist/esm/components/json-schema-editor/hooks.mjs +96 -0
- package/dist/esm/components/json-schema-editor/index.mjs +212 -0
- package/dist/esm/components/json-schema-editor/styles.mjs +138 -0
- package/dist/esm/components/json-schema-editor/types.mjs +0 -0
- package/dist/esm/components/prompt-editor/editor.mjs +52 -0
- package/dist/esm/components/prompt-editor/extensions/jinja.mjs +39 -0
- package/dist/esm/components/prompt-editor/extensions/language-support.mjs +14 -0
- package/dist/esm/components/prompt-editor/extensions/markdown.mjs +47 -0
- package/dist/esm/components/prompt-editor/index.mjs +5 -0
- package/dist/esm/components/prompt-editor/styles.mjs +11 -0
- package/dist/esm/components/prompt-editor/types.mjs +1 -0
- package/dist/esm/components/prompt-editor-with-inputs/editor.mjs +13 -0
- package/dist/esm/components/prompt-editor-with-inputs/extensions/inputs-tree.mjs +67 -0
- package/dist/esm/components/prompt-editor-with-inputs/index.mjs +5 -0
- package/dist/esm/components/prompt-editor-with-inputs/inputs-picker.mjs +70 -0
- package/dist/esm/components/prompt-editor-with-variables/editor.mjs +15 -0
- package/dist/esm/components/prompt-editor-with-variables/extensions/variable-tag.mjs +117 -0
- package/dist/esm/components/prompt-editor-with-variables/extensions/variable-tree.mjs +69 -0
- package/dist/esm/components/prompt-editor-with-variables/index.mjs +5 -0
- package/dist/esm/components/prompt-editor-with-variables/styles.mjs +36 -0
- package/dist/esm/components/type-selector/index.mjs +96 -0
- package/dist/esm/components/variable-selector/context.mjs +16 -0
- package/dist/esm/components/variable-selector/index.mjs +100 -0
- package/dist/esm/components/variable-selector/styles.mjs +58 -0
- package/dist/esm/components/variable-selector/use-variable-tree.mjs +66 -0
- package/dist/esm/effects/auto-rename-ref/index.mjs +64 -0
- package/dist/esm/effects/index.mjs +8 -0
- package/dist/esm/effects/listen-ref-schema-change/index.mjs +23 -0
- package/dist/esm/effects/listen-ref-value-change/index.mjs +20 -0
- package/dist/esm/effects/provide-batch-input/index.mjs +30 -0
- package/dist/esm/effects/provide-json-schema-outputs/index.mjs +15 -0
- package/dist/esm/effects/sync-variable-title/index.mjs +18 -0
- package/dist/esm/effects/validate-when-variable-sync/index.mjs +15 -0
- package/dist/esm/form-plugins/batch-outputs-plugin/index.mjs +60 -0
- package/dist/esm/form-plugins/index.mjs +4 -0
- package/dist/esm/form-plugins/infer-assign-plugin/index.mjs +38 -0
- package/dist/esm/form-plugins/infer-inputs-plugin/index.mjs +13 -0
- package/dist/esm/hooks/index.mjs +2 -0
- package/dist/esm/hooks/use-object-list/index.mjs +102 -0
- package/dist/esm/index.mjs +8 -0
- package/dist/esm/plugins/disable-declaration-plugin/create-disable-declaration-plugin.mjs +17 -0
- package/dist/esm/plugins/disable-declaration-plugin/index.mjs +2 -0
- package/dist/esm/plugins/index.mjs +3 -0
- package/dist/esm/plugins/json-schema-preset/create-type-preset-plugin.mjs +15 -0
- package/dist/esm/plugins/json-schema-preset/index.mjs +14 -0
- package/dist/esm/plugins/json-schema-preset/manager.mjs +0 -0
- package/dist/esm/plugins/json-schema-preset/type-definition/array.mjs +15 -0
- package/dist/esm/plugins/json-schema-preset/type-definition/boolean.mjs +29 -0
- package/dist/esm/plugins/json-schema-preset/type-definition/date-time.mjs +18 -0
- package/dist/esm/plugins/json-schema-preset/type-definition/index.mjs +19 -0
- package/dist/esm/plugins/json-schema-preset/type-definition/integer.mjs +15 -0
- package/dist/esm/plugins/json-schema-preset/type-definition/number.mjs +15 -0
- package/dist/esm/plugins/json-schema-preset/type-definition/object.mjs +15 -0
- package/dist/esm/plugins/json-schema-preset/type-definition/string.mjs +20 -0
- package/dist/esm/shared/flow-value/index.mjs +2 -0
- package/dist/esm/shared/flow-value/schema.mjs +26 -0
- package/dist/esm/shared/flow-value/types.mjs +0 -0
- package/dist/esm/shared/flow-value/utils.mjs +108 -0
- package/dist/esm/shared/format-legacy-refs/index.mjs +50 -0
- package/dist/esm/shared/index.mjs +6 -0
- package/dist/esm/shared/inject-material/index.mjs +21 -0
- package/dist/esm/shared/lazy-suspense/index.mjs +21 -0
- package/dist/esm/shared/polyfill-create-root/index.mjs +16 -0
- package/dist/esm/validate/index.mjs +2 -0
- package/dist/esm/validate/validate-flow-value/index.mjs +29 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/components/assign-row/index.d.ts +8 -0
- package/dist/types/components/assign-row/types.d.ts +20 -0
- package/dist/types/components/assign-rows/index.d.ts +11 -0
- package/dist/types/components/batch-outputs/index.d.ts +7 -0
- package/dist/types/components/batch-outputs/styles.d.ts +6 -0
- package/dist/types/components/batch-outputs/types.d.ts +18 -0
- package/dist/types/components/batch-variable-selector/index.d.ts +7 -0
- package/dist/types/components/blur-input/index.d.ts +7 -0
- package/dist/types/components/code-editor/editor.d.ts +23 -0
- package/dist/types/components/code-editor/index.d.ts +6 -0
- package/{src/validate/index.tsx → dist/types/components/code-editor/init-worker.d.ts} +1 -2
- package/{src/typings/index.ts → dist/types/components/code-editor/language-features.d.ts} +1 -2
- package/dist/types/components/code-editor/theme/dark.d.ts +6 -0
- package/{src/hooks/index.tsx → dist/types/components/code-editor/theme/index.d.ts} +1 -2
- package/dist/types/components/code-editor/theme/light.d.ts +6 -0
- package/dist/types/components/code-editor/utils.d.ts +5 -0
- package/dist/types/components/code-editor-mini/index.d.ts +7 -0
- package/dist/types/components/condition-row/constants.d.ts +7 -0
- package/dist/types/components/condition-row/hooks/useOp.d.ts +18 -0
- package/dist/types/components/condition-row/hooks/useRule.d.ts +9 -0
- package/dist/types/components/condition-row/index.d.ts +22 -0
- package/dist/types/components/condition-row/styles.d.ts +9 -0
- package/dist/types/components/condition-row/types.d.ts +34 -0
- package/dist/types/components/constant-input/index.d.ts +8 -0
- package/dist/types/components/constant-input/types.d.ts +16 -0
- package/dist/types/components/db-condition-row/hooks/use-left.d.ts +18 -0
- package/dist/types/components/db-condition-row/hooks/use-op.d.ts +18 -0
- package/dist/types/components/db-condition-row/index.d.ts +19 -0
- package/dist/types/components/db-condition-row/styles.d.ts +12 -0
- package/dist/types/components/db-condition-row/types.d.ts +25 -0
- package/dist/types/components/display-flow-value/index.d.ts +15 -0
- package/dist/types/components/display-inputs-values/index.d.ts +14 -0
- package/dist/types/components/display-inputs-values/styles.d.ts +5 -0
- package/dist/types/components/display-outputs/index.d.ts +14 -0
- package/dist/types/components/display-outputs/styles.d.ts +5 -0
- package/dist/types/components/display-schema-tag/index.d.ts +14 -0
- package/dist/types/components/display-schema-tag/styles.d.ts +8 -0
- package/dist/types/components/display-schema-tree/index.d.ts +16 -0
- package/dist/types/components/display-schema-tree/styles.d.ts +11 -0
- package/dist/types/components/dynamic-value-input/hooks.d.ts +28 -0
- package/dist/types/components/dynamic-value-input/index.d.ts +27 -0
- package/dist/types/components/dynamic-value-input/styles.d.ts +8 -0
- package/dist/types/components/index.d.ts +29 -0
- package/dist/types/components/inputs-values/index.d.ts +7 -0
- package/dist/types/components/inputs-values/styles.d.ts +6 -0
- package/dist/types/components/inputs-values/types.d.ts +19 -0
- package/dist/types/components/inputs-values-tree/hooks/use-child-list.d.ts +19 -0
- package/dist/types/components/inputs-values-tree/index.d.ts +7 -0
- package/dist/types/components/inputs-values-tree/row.d.ts +15 -0
- package/dist/types/components/inputs-values-tree/styles.d.ts +23 -0
- package/dist/types/components/inputs-values-tree/types.d.ts +18 -0
- package/dist/types/components/json-editor-with-variables/editor.d.ts +9 -0
- package/dist/types/components/json-editor-with-variables/extensions/variable-tag.d.ts +5 -0
- package/dist/types/components/json-editor-with-variables/extensions/variable-tree.d.ts +6 -0
- package/dist/types/components/json-editor-with-variables/index.d.ts +6 -0
- package/dist/types/components/json-editor-with-variables/styles.d.ts +9 -0
- package/dist/types/components/json-schema-editor/default-value.d.ts +17 -0
- package/dist/types/components/json-schema-editor/hooks.d.ts +12 -0
- package/dist/types/components/json-schema-editor/index.d.ts +14 -0
- package/dist/types/components/json-schema-editor/styles.d.ts +30 -0
- package/dist/types/components/json-schema-editor/types.d.ts +20 -0
- package/dist/types/components/prompt-editor/editor.d.ts +15 -0
- package/dist/types/components/prompt-editor/extensions/jinja.d.ts +6 -0
- package/dist/types/components/prompt-editor/extensions/language-support.d.ts +6 -0
- package/dist/types/components/prompt-editor/extensions/markdown.d.ts +6 -0
- package/dist/types/components/prompt-editor/index.d.ts +6 -0
- package/dist/types/components/prompt-editor/styles.d.ts +7 -0
- package/dist/types/components/prompt-editor/types.d.ts +16 -0
- package/dist/types/components/prompt-editor-with-inputs/editor.d.ts +10 -0
- package/dist/types/components/prompt-editor-with-inputs/extensions/inputs-tree.d.ts +9 -0
- package/dist/types/components/prompt-editor-with-inputs/index.d.ts +6 -0
- package/dist/types/components/prompt-editor-with-inputs/inputs-picker.d.ts +9 -0
- package/dist/types/components/prompt-editor-with-variables/editor.d.ts +9 -0
- package/dist/types/components/prompt-editor-with-variables/extensions/variable-tag.d.ts +5 -0
- package/dist/types/components/prompt-editor-with-variables/extensions/variable-tree.d.ts +6 -0
- package/dist/types/components/prompt-editor-with-variables/index.d.ts +6 -0
- package/dist/types/components/prompt-editor-with-variables/styles.d.ts +9 -0
- package/dist/types/components/type-selector/index.d.ts +23 -0
- package/dist/types/components/variable-selector/context.d.ts +16 -0
- package/dist/types/components/variable-selector/index.d.ts +29 -0
- package/dist/types/components/variable-selector/styles.d.ts +14 -0
- package/dist/types/components/variable-selector/use-variable-tree.d.ts +18 -0
- package/dist/types/effects/auto-rename-ref/index.d.ts +17 -0
- package/dist/types/effects/index.d.ts +11 -0
- package/dist/types/effects/listen-ref-schema-change/index.d.ts +22 -0
- package/dist/types/effects/listen-ref-value-change/index.d.ts +22 -0
- package/dist/types/effects/provide-batch-input/index.d.ts +6 -0
- package/dist/types/effects/provide-json-schema-outputs/index.d.ts +6 -0
- package/dist/types/effects/sync-variable-title/index.d.ts +6 -0
- package/dist/types/effects/validate-when-variable-sync/index.d.ts +8 -0
- package/dist/types/form-plugins/batch-outputs-plugin/index.d.ts +12 -0
- package/dist/types/form-plugins/index.d.ts +7 -0
- package/dist/types/form-plugins/infer-assign-plugin/index.d.ts +10 -0
- package/dist/types/form-plugins/infer-inputs-plugin/index.d.ts +11 -0
- package/dist/types/hooks/index.d.ts +5 -0
- package/dist/types/hooks/use-object-list/index.d.ts +22 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/plugins/disable-declaration-plugin/create-disable-declaration-plugin.d.ts +5 -0
- package/dist/types/plugins/disable-declaration-plugin/index.d.ts +5 -0
- package/dist/types/plugins/index.d.ts +6 -0
- package/dist/types/plugins/json-schema-preset/create-type-preset-plugin.d.ts +9 -0
- package/dist/types/plugins/json-schema-preset/index.d.ts +13 -0
- package/dist/types/plugins/json-schema-preset/manager.d.ts +17 -0
- package/dist/types/plugins/json-schema-preset/type-definition/array.d.ts +6 -0
- package/dist/types/plugins/json-schema-preset/type-definition/boolean.d.ts +6 -0
- package/dist/types/plugins/json-schema-preset/type-definition/date-time.d.ts +6 -0
- package/dist/types/plugins/json-schema-preset/type-definition/index.d.ts +5 -0
- package/dist/types/plugins/json-schema-preset/type-definition/integer.d.ts +6 -0
- package/dist/types/plugins/json-schema-preset/type-definition/number.d.ts +6 -0
- package/dist/types/plugins/json-schema-preset/type-definition/object.d.ts +6 -0
- package/dist/types/plugins/json-schema-preset/type-definition/string.d.ts +6 -0
- package/dist/types/shared/flow-value/index.d.ts +6 -0
- package/dist/types/shared/flow-value/schema.d.ts +107 -0
- package/dist/types/shared/flow-value/types.d.ts +32 -0
- package/dist/types/shared/flow-value/utils.d.ts +65 -0
- package/dist/types/shared/format-legacy-refs/index.d.ts +84 -0
- package/dist/types/shared/index.d.ts +9 -0
- package/dist/types/shared/inject-material/index.d.ts +46 -0
- package/dist/types/shared/lazy-suspense/index.d.ts +7 -0
- package/dist/types/shared/polyfill-create-root/index.d.ts +10 -0
- package/dist/types/validate/index.d.ts +5 -0
- package/dist/types/validate/validate-flow-value/index.d.ts +19 -0
- package/package.json +22 -23
- package/src/components/assign-row/index.tsx +3 -3
- package/src/components/assign-row/types.ts +1 -1
- package/src/components/batch-outputs/index.tsx +3 -2
- package/src/components/batch-outputs/types.ts +1 -1
- package/src/components/code-editor/editor.tsx +97 -0
- package/src/components/code-editor/index.tsx +5 -89
- package/src/components/code-editor/init-worker.ts +27 -0
- package/src/components/code-editor/language-features.ts +6 -27
- package/src/components/code-editor/theme/dark.ts +50 -31
- package/src/components/code-editor/theme/index.ts +1 -1
- package/src/components/code-editor/theme/light.ts +57 -33
- package/src/components/code-editor-mini/index.tsx +2 -2
- package/src/components/condition-row/constants.ts +8 -0
- package/src/components/condition-row/hooks/useRule.ts +1 -1
- package/src/components/condition-row/index.tsx +4 -0
- package/src/components/condition-row/types.ts +1 -1
- package/src/components/constant-input/index.tsx +1 -1
- package/src/components/db-condition-row/hooks/use-left.tsx +66 -0
- package/src/components/db-condition-row/hooks/use-op.tsx +59 -0
- package/src/components/db-condition-row/index.tsx +93 -0
- package/src/components/db-condition-row/styles.tsx +43 -0
- package/src/components/db-condition-row/types.ts +34 -0
- package/src/components/display-flow-value/index.tsx +3 -13
- package/src/components/display-inputs-values/index.tsx +44 -6
- package/src/components/dynamic-value-input/hooks.ts +25 -4
- package/src/components/dynamic-value-input/index.tsx +21 -12
- package/src/components/dynamic-value-input/styles.tsx +14 -4
- package/src/components/index.ts +50 -22
- package/src/components/inputs-values/index.tsx +15 -4
- package/src/components/inputs-values/styles.tsx +1 -1
- package/src/components/inputs-values/types.ts +1 -1
- package/src/components/inputs-values-tree/hooks/use-child-list.tsx +76 -0
- package/src/components/inputs-values-tree/index.tsx +62 -0
- package/src/components/inputs-values-tree/row.tsx +177 -0
- package/src/components/inputs-values-tree/styles.tsx +128 -0
- package/src/components/inputs-values-tree/types.ts +21 -0
- package/src/components/json-editor-with-variables/editor.tsx +69 -0
- package/src/components/json-editor-with-variables/extensions/variable-tag.tsx +7 -6
- package/src/components/json-editor-with-variables/extensions/variable-tree.tsx +3 -3
- package/src/components/json-editor-with-variables/index.tsx +5 -59
- package/src/components/json-schema-editor/default-value.tsx +1 -3
- package/src/components/json-schema-editor/hooks.tsx +14 -3
- package/src/components/json-schema-editor/index.tsx +18 -58
- package/src/components/json-schema-editor/styles.tsx +12 -55
- package/src/components/json-schema-editor/types.ts +0 -1
- package/src/components/prompt-editor/editor.tsx +81 -0
- package/src/components/prompt-editor/extensions/jinja.tsx +2 -2
- package/src/components/prompt-editor/extensions/language-support.tsx +2 -2
- package/src/components/prompt-editor/extensions/markdown.tsx +2 -2
- package/src/components/prompt-editor/index.tsx +5 -62
- package/src/components/prompt-editor/types.tsx +1 -1
- package/src/components/prompt-editor-with-inputs/editor.tsx +25 -0
- package/src/components/prompt-editor-with-inputs/extensions/inputs-tree.tsx +15 -4
- package/src/components/prompt-editor-with-inputs/index.tsx +5 -16
- package/src/components/prompt-editor-with-inputs/inputs-picker.tsx +34 -17
- package/src/components/prompt-editor-with-variables/editor.tsx +22 -0
- package/src/components/prompt-editor-with-variables/extensions/variable-tag.tsx +13 -21
- package/src/components/prompt-editor-with-variables/extensions/variable-tree.tsx +16 -4
- package/src/components/prompt-editor-with-variables/index.tsx +5 -13
- package/src/components/type-selector/index.tsx +12 -2
- package/src/components/variable-selector/context.tsx +28 -0
- package/src/components/variable-selector/index.tsx +10 -1
- package/src/components/variable-selector/use-variable-tree.tsx +3 -3
- package/src/effects/auto-rename-ref/index.ts +8 -55
- package/src/effects/index.ts +7 -7
- package/src/effects/listen-ref-schema-change/index.ts +1 -1
- package/src/effects/listen-ref-value-change/index.ts +1 -1
- package/src/effects/provide-batch-input/index.ts +1 -1
- package/src/effects/validate-when-variable-sync/index.ts +1 -1
- package/src/form-plugins/batch-outputs-plugin/index.ts +1 -1
- package/src/form-plugins/index.ts +3 -3
- package/src/form-plugins/infer-assign-plugin/index.ts +2 -2
- package/src/form-plugins/infer-inputs-plugin/index.ts +4 -76
- package/src/hooks/index.ts +6 -0
- package/src/hooks/use-object-list/index.tsx +35 -7
- package/src/index.ts +98 -7
- package/src/plugins/index.ts +11 -2
- package/src/plugins/json-schema-preset/index.tsx +4 -4
- package/src/plugins/json-schema-preset/manager.ts +1 -0
- package/src/plugins/json-schema-preset/type-definition/date-time.tsx +25 -0
- package/src/plugins/json-schema-preset/type-definition/index.tsx +2 -0
- package/src/plugins/json-schema-preset/type-definition/string.tsx +18 -9
- package/src/shared/flow-value/index.ts +16 -0
- package/src/shared/flow-value/schema.ts +38 -0
- package/src/{typings/flow-value/index.ts → shared/flow-value/types.ts} +3 -1
- package/src/shared/flow-value/utils.ts +200 -0
- package/src/shared/format-legacy-refs/index.ts +1 -1
- package/src/shared/index.ts +26 -2
- package/src/shared/lazy-suspense/index.tsx +28 -0
- package/src/shared/polyfill-create-root/index.tsx +33 -0
- package/src/validate/index.ts +6 -0
- package/src/validate/validate-flow-value/index.tsx +4 -16
- package/bin/index.ts +0 -91
- package/bin/materials.ts +0 -107
- package/bin/project.ts +0 -95
- package/bin/utils/import.ts +0 -127
- package/bin/utils/traverse-file.ts +0 -60
- package/dist/esm/index.js +0 -3864
- package/dist/esm/index.js.map +0 -1
- package/dist/index.d.mts +0 -763
- package/dist/index.d.ts +0 -763
- package/dist/index.js +0 -3849
- package/dist/index.js.map +0 -1
- package/src/components/inputs-values/components/blur-input.tsx +0 -27
- package/src/components/json-schema-editor/components/blur-input.tsx +0 -27
- package/src/plugins/disable-declaration-plugin/config.json +0 -5
- package/src/plugins/json-schema-preset/config.json +0 -9
- /package/src/components/{assign-row/components/blur-input.tsx → blur-input/index.tsx} +0 -0
package/dist/index.d.ts
DELETED
|
@@ -1,763 +0,0 @@
|
|
|
1
|
-
import React$1 from 'react';
|
|
2
|
-
import { IJsonSchema, JsonSchemaTypeRegistry as JsonSchemaTypeRegistry$1, JsonSchemaTypeManager } from '@flowgram.ai/json-schema';
|
|
3
|
-
export { IJsonSchema, JsonSchemaBasicType, JsonSchemaUtils } from '@flowgram.ai/json-schema';
|
|
4
|
-
import { TriggerRenderProps } from '@douyinfe/semi-ui/lib/es/treeSelect';
|
|
5
|
-
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';
|
|
8
|
-
import * as _flowgram_ai_node from '@flowgram.ai/node';
|
|
9
|
-
import * as _flowgram_ai_core from '@flowgram.ai/core';
|
|
10
|
-
import { TreeNodeData } from '@douyinfe/semi-ui/lib/es/tree';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
14
|
-
* SPDX-License-Identifier: MIT
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
type VariableField = BaseVariableField<{
|
|
18
|
-
icon?: string | JSX.Element;
|
|
19
|
-
title?: string;
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
}>;
|
|
22
|
-
declare function useVariableTree(params: {
|
|
23
|
-
includeSchema?: IJsonSchema | IJsonSchema[];
|
|
24
|
-
excludeSchema?: IJsonSchema | IJsonSchema[];
|
|
25
|
-
customSkip?: (variable: VariableField) => boolean;
|
|
26
|
-
}): TreeNodeData[];
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
30
|
-
* SPDX-License-Identifier: MIT
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
|
-
interface VariableSelectorProps {
|
|
34
|
-
value?: string[];
|
|
35
|
-
config?: {
|
|
36
|
-
placeholder?: string;
|
|
37
|
-
notFoundContent?: string;
|
|
38
|
-
};
|
|
39
|
-
onChange: (value?: string[]) => void;
|
|
40
|
-
includeSchema?: IJsonSchema | IJsonSchema[];
|
|
41
|
-
excludeSchema?: IJsonSchema | IJsonSchema[];
|
|
42
|
-
readonly?: boolean;
|
|
43
|
-
hasError?: boolean;
|
|
44
|
-
style?: React$1.CSSProperties;
|
|
45
|
-
triggerRender?: (props: TriggerRenderProps) => React$1.ReactNode;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
declare const VariableSelector: {
|
|
49
|
-
({ value, config, onChange, style, readonly, includeSchema, excludeSchema, hasError, triggerRender, }: VariableSelectorProps): React$1.JSX.Element;
|
|
50
|
-
renderKey: string;
|
|
51
|
-
};
|
|
52
|
-
declare const InjectVariableSelector: React$1.FC<VariableSelectorProps>;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
56
|
-
* SPDX-License-Identifier: MIT
|
|
57
|
-
*/
|
|
58
|
-
|
|
59
|
-
interface TypeSelectorProps {
|
|
60
|
-
value?: Partial<IJsonSchema>;
|
|
61
|
-
onChange?: (value?: Partial<IJsonSchema>) => void;
|
|
62
|
-
readonly?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* @deprecated use readonly instead
|
|
65
|
-
*/
|
|
66
|
-
disabled?: boolean;
|
|
67
|
-
style?: React$1.CSSProperties;
|
|
68
|
-
}
|
|
69
|
-
declare const getTypeSelectValue: (value?: Partial<IJsonSchema>) => string[] | undefined;
|
|
70
|
-
declare const parseTypeSelectValue: (value?: string[]) => Partial<IJsonSchema> | undefined;
|
|
71
|
-
declare function TypeSelector(props: TypeSelectorProps): React$1.JSX.Element;
|
|
72
|
-
declare namespace TypeSelector {
|
|
73
|
-
var renderKey: string;
|
|
74
|
-
}
|
|
75
|
-
declare const InjectTypeSelector: React$1.FC<TypeSelectorProps>;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
79
|
-
* SPDX-License-Identifier: MIT
|
|
80
|
-
*/
|
|
81
|
-
|
|
82
|
-
interface ConfigType {
|
|
83
|
-
placeholder?: string;
|
|
84
|
-
descTitle?: string;
|
|
85
|
-
descPlaceholder?: string;
|
|
86
|
-
defaultValueTitle?: string;
|
|
87
|
-
defaultValuePlaceholder?: string;
|
|
88
|
-
addButtonText?: string;
|
|
89
|
-
jsonFormatText?: string;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
94
|
-
* SPDX-License-Identifier: MIT
|
|
95
|
-
*/
|
|
96
|
-
|
|
97
|
-
declare function JsonSchemaEditor(props: {
|
|
98
|
-
value?: IJsonSchema;
|
|
99
|
-
onChange?: (value: IJsonSchema) => void;
|
|
100
|
-
config?: ConfigType;
|
|
101
|
-
className?: string;
|
|
102
|
-
readonly?: boolean;
|
|
103
|
-
}): React$1.JSX.Element;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
107
|
-
* SPDX-License-Identifier: MIT
|
|
108
|
-
*/
|
|
109
|
-
|
|
110
|
-
declare function BatchVariableSelector(props: VariableSelectorProps): React$1.JSX.Element;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
114
|
-
* SPDX-License-Identifier: MIT
|
|
115
|
-
*/
|
|
116
|
-
|
|
117
|
-
interface ConstantRendererProps<Value = any> {
|
|
118
|
-
value?: Value;
|
|
119
|
-
onChange?: (value: Value) => void;
|
|
120
|
-
readonly?: boolean;
|
|
121
|
-
}
|
|
122
|
-
interface JsonSchemaTypeRegistry<Value = any> extends JsonSchemaTypeRegistry$1 {
|
|
123
|
-
/**
|
|
124
|
-
* Render Constant Input
|
|
125
|
-
*/
|
|
126
|
-
ConstantRenderer: React.FC<ConstantRendererProps<Value>>;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
declare const createTypePresetPlugin: _flowgram_ai_core.PluginCreator<{
|
|
130
|
-
types?: Partial<JsonSchemaTypeRegistry> & Pick<JsonSchemaTypeRegistry, "type">[];
|
|
131
|
-
unregisterTypes?: string[];
|
|
132
|
-
}>;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
136
|
-
* SPDX-License-Identifier: MIT
|
|
137
|
-
*/
|
|
138
|
-
|
|
139
|
-
declare const useTypeManager: () => JsonSchemaTypeManager<IJsonSchema, JsonSchemaTypeRegistry>;
|
|
140
|
-
declare const JsonSchemaTypePresetProvider: ({ types, children, }: React$1.PropsWithChildren<{
|
|
141
|
-
types: JsonSchemaTypeRegistry[];
|
|
142
|
-
}>) => React$1.JSX.Element;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
146
|
-
* SPDX-License-Identifier: MIT
|
|
147
|
-
*/
|
|
148
|
-
declare const createDisableDeclarationPlugin: _flowgram_ai_core.PluginCreator<void>;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
152
|
-
* SPDX-License-Identifier: MIT
|
|
153
|
-
*/
|
|
154
|
-
|
|
155
|
-
interface Strategy<Value = any> {
|
|
156
|
-
hit: (schema: IJsonSchema) => boolean;
|
|
157
|
-
Renderer: React.FC<ConstantRendererProps<Value>>;
|
|
158
|
-
}
|
|
159
|
-
interface PropsType$a extends ConstantRendererProps {
|
|
160
|
-
schema: IJsonSchema;
|
|
161
|
-
strategies?: Strategy[];
|
|
162
|
-
fallbackRenderer?: React.FC<ConstantRendererProps>;
|
|
163
|
-
[key: string]: any;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
168
|
-
* SPDX-License-Identifier: MIT
|
|
169
|
-
*/
|
|
170
|
-
|
|
171
|
-
declare function ConstantInput(props: PropsType$a): React$1.JSX.Element;
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
175
|
-
* SPDX-License-Identifier: MIT
|
|
176
|
-
*/
|
|
177
|
-
|
|
178
|
-
interface IFlowValueExtra {
|
|
179
|
-
index?: number;
|
|
180
|
-
}
|
|
181
|
-
interface IFlowConstantValue {
|
|
182
|
-
type: 'constant';
|
|
183
|
-
content?: string | number | boolean;
|
|
184
|
-
schema?: IJsonSchema;
|
|
185
|
-
extra?: IFlowValueExtra;
|
|
186
|
-
}
|
|
187
|
-
interface IFlowRefValue {
|
|
188
|
-
type: 'ref';
|
|
189
|
-
content?: string[];
|
|
190
|
-
extra?: IFlowValueExtra;
|
|
191
|
-
}
|
|
192
|
-
interface IFlowExpressionValue {
|
|
193
|
-
type: 'expression';
|
|
194
|
-
content?: string;
|
|
195
|
-
extra?: IFlowValueExtra;
|
|
196
|
-
}
|
|
197
|
-
interface IFlowTemplateValue {
|
|
198
|
-
type: 'template';
|
|
199
|
-
content?: string;
|
|
200
|
-
extra?: IFlowValueExtra;
|
|
201
|
-
}
|
|
202
|
-
type IFlowValue = IFlowConstantValue | IFlowRefValue | IFlowExpressionValue | IFlowTemplateValue;
|
|
203
|
-
type IFlowConstantRefValue = IFlowConstantValue | IFlowRefValue;
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
207
|
-
* SPDX-License-Identifier: MIT
|
|
208
|
-
*/
|
|
209
|
-
|
|
210
|
-
interface PropsType$9 {
|
|
211
|
-
value?: IFlowConstantRefValue;
|
|
212
|
-
onChange: (value?: IFlowConstantRefValue) => void;
|
|
213
|
-
readonly?: boolean;
|
|
214
|
-
hasError?: boolean;
|
|
215
|
-
style?: React$1.CSSProperties;
|
|
216
|
-
schema?: IJsonSchema;
|
|
217
|
-
constantProps?: {
|
|
218
|
-
strategies?: Strategy[];
|
|
219
|
-
schema?: IJsonSchema;
|
|
220
|
-
[key: string]: any;
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
declare function DynamicValueInput({ value, onChange, readonly, style, schema: schemaFromProps, constantProps, }: PropsType$9): React$1.JSX.Element;
|
|
224
|
-
declare namespace DynamicValueInput {
|
|
225
|
-
var renderKey: string;
|
|
226
|
-
}
|
|
227
|
-
declare const InjectDynamicValueInput: React$1.FC<PropsType$9>;
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
231
|
-
* SPDX-License-Identifier: MIT
|
|
232
|
-
*/
|
|
233
|
-
|
|
234
|
-
interface OpConfig {
|
|
235
|
-
label: string;
|
|
236
|
-
abbreviation: string;
|
|
237
|
-
rightDisplay?: string;
|
|
238
|
-
}
|
|
239
|
-
type OpConfigs = Record<string, OpConfig>;
|
|
240
|
-
type IRule = Partial<Record<string, string | null>>;
|
|
241
|
-
type IRules = Record<string, IRule>;
|
|
242
|
-
interface ConditionRowValueType {
|
|
243
|
-
left?: IFlowRefValue;
|
|
244
|
-
operator?: string;
|
|
245
|
-
right?: IFlowConstantRefValue;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
250
|
-
* SPDX-License-Identifier: MIT
|
|
251
|
-
*/
|
|
252
|
-
|
|
253
|
-
interface PropTypes {
|
|
254
|
-
value?: ConditionRowValueType;
|
|
255
|
-
onChange: (value?: ConditionRowValueType) => void;
|
|
256
|
-
style?: React$1.CSSProperties;
|
|
257
|
-
readonly?: boolean;
|
|
258
|
-
ruleConfig?: {
|
|
259
|
-
ops?: OpConfigs;
|
|
260
|
-
rules?: IRules;
|
|
261
|
-
};
|
|
262
|
-
}
|
|
263
|
-
declare function ConditionRow({ style, value, onChange, readonly, ruleConfig, }: PropTypes): React$1.JSX.Element;
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
267
|
-
* SPDX-License-Identifier: MIT
|
|
268
|
-
*/
|
|
269
|
-
|
|
270
|
-
type ValueType = Record<string, IFlowRefValue | undefined>;
|
|
271
|
-
interface PropsType$8 {
|
|
272
|
-
value?: ValueType;
|
|
273
|
-
onChange: (value?: ValueType) => void;
|
|
274
|
-
readonly?: boolean;
|
|
275
|
-
hasError?: boolean;
|
|
276
|
-
style?: React.CSSProperties;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
281
|
-
* SPDX-License-Identifier: MIT
|
|
282
|
-
*/
|
|
283
|
-
|
|
284
|
-
declare function BatchOutputs(props: PropsType$8): React$1.JSX.Element;
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
288
|
-
* SPDX-License-Identifier: MIT
|
|
289
|
-
*/
|
|
290
|
-
|
|
291
|
-
type PropsType$7 = React$1.PropsWithChildren<{
|
|
292
|
-
value?: IFlowTemplateValue;
|
|
293
|
-
onChange: (value?: IFlowTemplateValue) => void;
|
|
294
|
-
readonly?: boolean;
|
|
295
|
-
hasError?: boolean;
|
|
296
|
-
placeholder?: string;
|
|
297
|
-
activeLinePlaceholder?: string;
|
|
298
|
-
disableMarkdownHighlight?: boolean;
|
|
299
|
-
style?: React$1.CSSProperties;
|
|
300
|
-
}>;
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
304
|
-
* SPDX-License-Identifier: MIT
|
|
305
|
-
*/
|
|
306
|
-
|
|
307
|
-
type PromptEditorPropsType = PropsType$7;
|
|
308
|
-
declare function PromptEditor(props: PropsType$7): React$1.JSX.Element;
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
312
|
-
* SPDX-License-Identifier: MIT
|
|
313
|
-
*/
|
|
314
|
-
|
|
315
|
-
declare function PromptEditorWithVariables(props: PromptEditorPropsType): React$1.JSX.Element;
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
319
|
-
* SPDX-License-Identifier: MIT
|
|
320
|
-
*/
|
|
321
|
-
|
|
322
|
-
interface PropsType$6 extends PromptEditorPropsType {
|
|
323
|
-
inputsValues: Record<string, IFlowValue>;
|
|
324
|
-
}
|
|
325
|
-
declare function PromptEditorWithInputs({ inputsValues, ...restProps }: PropsType$6): React$1.JSX.Element;
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
329
|
-
* SPDX-License-Identifier: MIT
|
|
330
|
-
*/
|
|
331
|
-
|
|
332
|
-
type Preset = typeof preset;
|
|
333
|
-
type Options = Partial<InferValues<Preset[number]>>;
|
|
334
|
-
interface CodeEditorPropsType extends React$1.PropsWithChildren<{}> {
|
|
335
|
-
value?: string;
|
|
336
|
-
onChange?: (value: string) => void;
|
|
337
|
-
languageId: 'python' | 'typescript' | 'shell' | 'json';
|
|
338
|
-
theme?: 'dark' | 'light';
|
|
339
|
-
placeholder?: string;
|
|
340
|
-
activeLinePlaceholder?: string;
|
|
341
|
-
readonly?: boolean;
|
|
342
|
-
options?: Options;
|
|
343
|
-
}
|
|
344
|
-
declare function CodeEditor({ value, onChange, languageId, theme, children, placeholder, activeLinePlaceholder, options, readonly, }: CodeEditorPropsType): React$1.JSX.Element;
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
348
|
-
* SPDX-License-Identifier: MIT
|
|
349
|
-
*/
|
|
350
|
-
|
|
351
|
-
declare function CodeEditorMini(props: CodeEditorPropsType): React$1.JSX.Element;
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
355
|
-
* SPDX-License-Identifier: MIT
|
|
356
|
-
*/
|
|
357
|
-
|
|
358
|
-
declare function JsonEditorWithVariables(props: Omit<CodeEditorPropsType, 'languageId'>): React$1.JSX.Element;
|
|
359
|
-
|
|
360
|
-
/**
|
|
361
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
362
|
-
* SPDX-License-Identifier: MIT
|
|
363
|
-
*/
|
|
364
|
-
|
|
365
|
-
interface PropsType$5 {
|
|
366
|
-
value?: Record<string, IFlowValue | undefined>;
|
|
367
|
-
onChange: (value?: Record<string, IFlowValue | undefined>) => void;
|
|
368
|
-
readonly?: boolean;
|
|
369
|
-
hasError?: boolean;
|
|
370
|
-
schema?: IJsonSchema;
|
|
371
|
-
style?: React.CSSProperties;
|
|
372
|
-
constantProps?: {
|
|
373
|
-
strategies?: Strategy[];
|
|
374
|
-
[key: string]: any;
|
|
375
|
-
};
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
/**
|
|
379
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
380
|
-
* SPDX-License-Identifier: MIT
|
|
381
|
-
*/
|
|
382
|
-
|
|
383
|
-
declare function InputsValues({ value, onChange, style, readonly, constantProps, schema, hasError, }: PropsType$5): React$1.JSX.Element;
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
387
|
-
* SPDX-License-Identifier: MIT
|
|
388
|
-
*/
|
|
389
|
-
|
|
390
|
-
interface PropsType$4 {
|
|
391
|
-
value?: IJsonSchema;
|
|
392
|
-
parentKey?: string;
|
|
393
|
-
depth?: number;
|
|
394
|
-
drilldown?: boolean;
|
|
395
|
-
showIcon?: boolean;
|
|
396
|
-
typeManager?: JsonSchemaTypeManager;
|
|
397
|
-
}
|
|
398
|
-
declare function DisplaySchemaTree(props: Omit<PropsType$4, 'parentKey' | 'depth'>): React$1.JSX.Element;
|
|
399
|
-
|
|
400
|
-
/**
|
|
401
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
402
|
-
* SPDX-License-Identifier: MIT
|
|
403
|
-
*/
|
|
404
|
-
|
|
405
|
-
interface PropsType$3 {
|
|
406
|
-
value?: IJsonSchema;
|
|
407
|
-
showIconInTree?: boolean;
|
|
408
|
-
displayFromScope?: boolean;
|
|
409
|
-
typeManager?: JsonSchemaTypeManager;
|
|
410
|
-
}
|
|
411
|
-
declare function DisplayOutputs({ value, showIconInTree, displayFromScope }: PropsType$3): React$1.JSX.Element;
|
|
412
|
-
|
|
413
|
-
/**
|
|
414
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
415
|
-
* SPDX-License-Identifier: MIT
|
|
416
|
-
*/
|
|
417
|
-
|
|
418
|
-
interface PropsType$2 {
|
|
419
|
-
title?: JSX.Element | string;
|
|
420
|
-
value?: IJsonSchema;
|
|
421
|
-
showIconInTree?: boolean;
|
|
422
|
-
warning?: boolean;
|
|
423
|
-
}
|
|
424
|
-
declare function DisplaySchemaTag({ value, showIconInTree, title, warning }: PropsType$2): React$1.JSX.Element;
|
|
425
|
-
|
|
426
|
-
/**
|
|
427
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
428
|
-
* SPDX-License-Identifier: MIT
|
|
429
|
-
*/
|
|
430
|
-
|
|
431
|
-
interface PropsType$1 {
|
|
432
|
-
value?: IFlowValue;
|
|
433
|
-
title?: JSX.Element | string;
|
|
434
|
-
showIconInTree?: boolean;
|
|
435
|
-
typeManager?: JsonSchemaTypeManager;
|
|
436
|
-
}
|
|
437
|
-
declare function DisplayFlowValue({ value, title, showIconInTree }: PropsType$1): React$1.JSX.Element;
|
|
438
|
-
|
|
439
|
-
/**
|
|
440
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
441
|
-
* SPDX-License-Identifier: MIT
|
|
442
|
-
*/
|
|
443
|
-
|
|
444
|
-
interface PropsType {
|
|
445
|
-
value?: Record<string, IFlowValue | undefined>;
|
|
446
|
-
showIconInTree?: boolean;
|
|
447
|
-
}
|
|
448
|
-
declare function DisplayInputsValues({ value, showIconInTree }: PropsType): React$1.JSX.Element;
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
452
|
-
* SPDX-License-Identifier: MIT
|
|
453
|
-
*/
|
|
454
|
-
|
|
455
|
-
interface AssignRowsProps {
|
|
456
|
-
name: string;
|
|
457
|
-
readonly?: boolean;
|
|
458
|
-
}
|
|
459
|
-
declare function AssignRows(props: AssignRowsProps): React$1.JSX.Element;
|
|
460
|
-
|
|
461
|
-
/**
|
|
462
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
463
|
-
* SPDX-License-Identifier: MIT
|
|
464
|
-
*/
|
|
465
|
-
|
|
466
|
-
type AssignValueType = {
|
|
467
|
-
operator: 'assign';
|
|
468
|
-
left?: IFlowRefValue;
|
|
469
|
-
right?: IFlowValue;
|
|
470
|
-
} | {
|
|
471
|
-
operator: 'declare';
|
|
472
|
-
left?: string;
|
|
473
|
-
right?: IFlowValue;
|
|
474
|
-
};
|
|
475
|
-
interface AssignRowProps {
|
|
476
|
-
value?: AssignValueType;
|
|
477
|
-
onChange?: (value?: AssignValueType) => void;
|
|
478
|
-
onDelete?: () => void;
|
|
479
|
-
readonly?: boolean;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
/**
|
|
483
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
484
|
-
* SPDX-License-Identifier: MIT
|
|
485
|
-
*/
|
|
486
|
-
|
|
487
|
-
declare function AssignRow(props: AssignRowProps): React$1.JSX.Element;
|
|
488
|
-
|
|
489
|
-
/**
|
|
490
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
491
|
-
* SPDX-License-Identifier: MIT
|
|
492
|
-
*/
|
|
493
|
-
|
|
494
|
-
declare const provideBatchInputEffect: EffectOptions[];
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
498
|
-
* SPDX-License-Identifier: MIT
|
|
499
|
-
*/
|
|
500
|
-
|
|
501
|
-
/**
|
|
502
|
-
* Auto rename ref when form item's key is renamed
|
|
503
|
-
*
|
|
504
|
-
* Example:
|
|
505
|
-
*
|
|
506
|
-
* formMeta: {
|
|
507
|
-
* effects: {
|
|
508
|
-
* "inputsValues": autoRenameRefEffect,
|
|
509
|
-
* }
|
|
510
|
-
* }
|
|
511
|
-
*/
|
|
512
|
-
declare const autoRenameRefEffect: EffectOptions[];
|
|
513
|
-
|
|
514
|
-
/**
|
|
515
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
516
|
-
* SPDX-License-Identifier: MIT
|
|
517
|
-
*/
|
|
518
|
-
|
|
519
|
-
declare const provideJsonSchemaOutputs: EffectOptions[];
|
|
520
|
-
|
|
521
|
-
/**
|
|
522
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
523
|
-
* SPDX-License-Identifier: MIT
|
|
524
|
-
*/
|
|
525
|
-
|
|
526
|
-
declare const syncVariableTitle: EffectOptions[];
|
|
527
|
-
|
|
528
|
-
/**
|
|
529
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
530
|
-
* SPDX-License-Identifier: MIT
|
|
531
|
-
*/
|
|
532
|
-
|
|
533
|
-
declare const validateWhenVariableSync: ({ scope, }?: {
|
|
534
|
-
scope?: "private" | "public";
|
|
535
|
-
}) => EffectOptions[];
|
|
536
|
-
|
|
537
|
-
/**
|
|
538
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
539
|
-
* SPDX-License-Identifier: MIT
|
|
540
|
-
*/
|
|
541
|
-
|
|
542
|
-
/**
|
|
543
|
-
* Example:
|
|
544
|
-
* const formMeta = {
|
|
545
|
-
* effect: {
|
|
546
|
-
* 'inputsValues.*': listenRefValueChange(({ name, variable, form }) => {
|
|
547
|
-
* const schema = JsonSchemaUtils.astToSchema(variable?.type);
|
|
548
|
-
* form.setValueIn(`${name}.schema`, schema);
|
|
549
|
-
* })
|
|
550
|
-
* }
|
|
551
|
-
* }
|
|
552
|
-
* @param cb
|
|
553
|
-
* @returns
|
|
554
|
-
*/
|
|
555
|
-
declare const listenRefValueChange: (cb: (props: EffectFuncProps<IFlowRefValue> & {
|
|
556
|
-
variable?: BaseVariableField;
|
|
557
|
-
}) => void) => EffectOptions[];
|
|
558
|
-
|
|
559
|
-
/**
|
|
560
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
561
|
-
* SPDX-License-Identifier: MIT
|
|
562
|
-
*/
|
|
563
|
-
|
|
564
|
-
/**
|
|
565
|
-
* Example:
|
|
566
|
-
* const formMeta = {
|
|
567
|
-
* effect: {
|
|
568
|
-
* 'inputsValues.*': listenRefSchemaChange(({ name, schema, form }) => {
|
|
569
|
-
* form.setValueIn(`${name}.schema`, schema);
|
|
570
|
-
* })
|
|
571
|
-
* }
|
|
572
|
-
* }
|
|
573
|
-
* @param cb
|
|
574
|
-
* @returns
|
|
575
|
-
*/
|
|
576
|
-
declare const listenRefSchemaChange: (cb: (props: EffectFuncProps<IFlowRefValue> & {
|
|
577
|
-
schema?: IJsonSchema;
|
|
578
|
-
}) => void) => EffectOptions[];
|
|
579
|
-
|
|
580
|
-
/**
|
|
581
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
582
|
-
* SPDX-License-Identifier: MIT
|
|
583
|
-
*/
|
|
584
|
-
interface LegacyFlowRefValueSchema {
|
|
585
|
-
type: 'ref';
|
|
586
|
-
content: string;
|
|
587
|
-
}
|
|
588
|
-
interface NewFlowRefValueSchema {
|
|
589
|
-
type: 'ref';
|
|
590
|
-
content: string[];
|
|
591
|
-
}
|
|
592
|
-
/**
|
|
593
|
-
* In flowgram 0.2.0, for introducing Loop variable functionality,
|
|
594
|
-
* the FlowRefValueSchema type definition is updated:
|
|
595
|
-
*
|
|
596
|
-
* interface LegacyFlowRefValueSchema {
|
|
597
|
-
* type: 'ref';
|
|
598
|
-
* content: string;
|
|
599
|
-
* }
|
|
600
|
-
*
|
|
601
|
-
* interface NewFlowRefValueSchema {
|
|
602
|
-
* type: 'ref';
|
|
603
|
-
* content: string[];
|
|
604
|
-
* }
|
|
605
|
-
*
|
|
606
|
-
*
|
|
607
|
-
* For making sure backend json will not be changed, we provide format legacy ref utils for updating the formData
|
|
608
|
-
*
|
|
609
|
-
* How to use:
|
|
610
|
-
*
|
|
611
|
-
* 1. Call formatLegacyRefOnSubmit on the formData before submitting
|
|
612
|
-
* 2. Call formatLegacyRefOnInit on the formData after submitting
|
|
613
|
-
*
|
|
614
|
-
* Example:
|
|
615
|
-
* import { formatLegacyRefOnSubmit, formatLegacyRefOnInit } from '@flowgram.ai/form-materials';
|
|
616
|
-
* formMeta: {
|
|
617
|
-
* formatOnSubmit: (data) => formatLegacyRefOnSubmit(data),
|
|
618
|
-
* formatOnInit: (data) => formatLegacyRefOnInit(data),
|
|
619
|
-
* }
|
|
620
|
-
*/
|
|
621
|
-
declare function formatLegacyRefOnSubmit(value: any): any;
|
|
622
|
-
/**
|
|
623
|
-
* In flowgram 0.2.0, for introducing Loop variable functionality,
|
|
624
|
-
* the FlowRefValueSchema type definition is updated:
|
|
625
|
-
*
|
|
626
|
-
* interface LegacyFlowRefValueSchema {
|
|
627
|
-
* type: 'ref';
|
|
628
|
-
* content: string;
|
|
629
|
-
* }
|
|
630
|
-
*
|
|
631
|
-
* interface NewFlowRefValueSchema {
|
|
632
|
-
* type: 'ref';
|
|
633
|
-
* content: string[];
|
|
634
|
-
* }
|
|
635
|
-
*
|
|
636
|
-
*
|
|
637
|
-
* For making sure backend json will not be changed, we provide format legacy ref utils for updating the formData
|
|
638
|
-
*
|
|
639
|
-
* How to use:
|
|
640
|
-
*
|
|
641
|
-
* 1. Call formatLegacyRefOnSubmit on the formData before submitting
|
|
642
|
-
* 2. Call formatLegacyRefOnInit on the formData after submitting
|
|
643
|
-
*
|
|
644
|
-
* Example:
|
|
645
|
-
* import { formatLegacyRefOnSubmit, formatLegacyRefOnInit } from '@flowgram.ai/form-materials';
|
|
646
|
-
*
|
|
647
|
-
* formMeta: {
|
|
648
|
-
* formatOnSubmit: (data) => formatLegacyRefOnSubmit(data),
|
|
649
|
-
* formatOnInit: (data) => formatLegacyRefOnInit(data),
|
|
650
|
-
* }
|
|
651
|
-
*/
|
|
652
|
-
declare function formatLegacyRefOnInit(value: any): any;
|
|
653
|
-
declare function isLegacyFlowRefValueSchema(value: any): value is LegacyFlowRefValueSchema;
|
|
654
|
-
declare function isNewFlowRefValueSchema(value: any): value is NewFlowRefValueSchema;
|
|
655
|
-
declare function formatLegacyRefToNewRef(value: LegacyFlowRefValueSchema): {
|
|
656
|
-
type: string;
|
|
657
|
-
content: string[];
|
|
658
|
-
};
|
|
659
|
-
declare function formatNewRefToLegacyRef(value: NewFlowRefValueSchema): {
|
|
660
|
-
type: string;
|
|
661
|
-
content: string;
|
|
662
|
-
};
|
|
663
|
-
|
|
664
|
-
/**
|
|
665
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
666
|
-
* SPDX-License-Identifier: MIT
|
|
667
|
-
*/
|
|
668
|
-
|
|
669
|
-
/**
|
|
670
|
-
* Creates a material component wrapper with dependency injection support
|
|
671
|
-
*
|
|
672
|
-
* This Higher-Order Component (HOC) implements a dynamic component replacement mechanism
|
|
673
|
-
* for material components. It automatically checks if a custom renderer is registered
|
|
674
|
-
* in the editor context, using the injected component if available, otherwise
|
|
675
|
-
* falling back to the default component.
|
|
676
|
-
*
|
|
677
|
-
* @example
|
|
678
|
-
* ```tsx
|
|
679
|
-
* // 1.Create an injectable material component
|
|
680
|
-
* const InjectVariableSelector = createInjectMaterial(VariableSelector)
|
|
681
|
-
*
|
|
682
|
-
* // 2. Register custom components in editor
|
|
683
|
-
* // Configure in use-editor-props.tsx:
|
|
684
|
-
* const editorProps = {
|
|
685
|
-
* materials: {
|
|
686
|
-
* components: {
|
|
687
|
-
* [VariableSelector.renderKey]: YourCustomVariableSelector
|
|
688
|
-
* }
|
|
689
|
-
* }
|
|
690
|
-
* }
|
|
691
|
-
* ```
|
|
692
|
-
*
|
|
693
|
-
* @description
|
|
694
|
-
* Data flow explanation:
|
|
695
|
-
* - Register components to FlowRendererRegistry in use-editor-props
|
|
696
|
-
* - InjectMaterial reads renderers from FlowRendererRegistry
|
|
697
|
-
* - If registered renderer exists and type is REACT, use injected component
|
|
698
|
-
* - If not exists or type mismatch, fallback to default component
|
|
699
|
-
*
|
|
700
|
-
* @param Component - Default React component
|
|
701
|
-
* @param params - Optional parameters
|
|
702
|
-
* @param params.renderKey - Custom render key name, highest priority
|
|
703
|
-
* @returns Wrapper component with dependency injection support
|
|
704
|
-
*/
|
|
705
|
-
declare function createInjectMaterial<Props>(Component: React$1.FC<Props> & {
|
|
706
|
-
renderKey?: string;
|
|
707
|
-
}, params?: {
|
|
708
|
-
renderKey?: string;
|
|
709
|
-
}): React$1.FC<Props>;
|
|
710
|
-
|
|
711
|
-
/**
|
|
712
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
713
|
-
* SPDX-License-Identifier: MIT
|
|
714
|
-
*/
|
|
715
|
-
|
|
716
|
-
declare const provideBatchOutputsEffect: EffectOptions[];
|
|
717
|
-
/**
|
|
718
|
-
* Free Layout only right now
|
|
719
|
-
*/
|
|
720
|
-
declare const createBatchOutputsFormPlugin: FormPluginCreator<{
|
|
721
|
-
outputKey: string;
|
|
722
|
-
}>;
|
|
723
|
-
|
|
724
|
-
/**
|
|
725
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
726
|
-
* SPDX-License-Identifier: MIT
|
|
727
|
-
*/
|
|
728
|
-
interface InputConfig$1 {
|
|
729
|
-
sourceKey: string;
|
|
730
|
-
targetKey: string;
|
|
731
|
-
scope?: 'private' | 'public';
|
|
732
|
-
}
|
|
733
|
-
declare const createInferInputsPlugin: _flowgram_ai_node.FormPluginCreator<InputConfig$1>;
|
|
734
|
-
|
|
735
|
-
/**
|
|
736
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
737
|
-
* SPDX-License-Identifier: MIT
|
|
738
|
-
*/
|
|
739
|
-
interface InputConfig {
|
|
740
|
-
assignKey: string;
|
|
741
|
-
outputKey: string;
|
|
742
|
-
}
|
|
743
|
-
declare const createInferAssignPlugin: _flowgram_ai_node.FormPluginCreator<InputConfig>;
|
|
744
|
-
|
|
745
|
-
/**
|
|
746
|
-
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
747
|
-
* SPDX-License-Identifier: MIT
|
|
748
|
-
*/
|
|
749
|
-
|
|
750
|
-
interface Context {
|
|
751
|
-
node: FlowNodeEntity;
|
|
752
|
-
required?: boolean;
|
|
753
|
-
errorMessages?: {
|
|
754
|
-
required?: string;
|
|
755
|
-
unknownVariable?: string;
|
|
756
|
-
};
|
|
757
|
-
}
|
|
758
|
-
declare function validateFlowValue(value: IFlowValue | undefined, ctx: Context): {
|
|
759
|
-
level: FeedbackLevel;
|
|
760
|
-
message: string;
|
|
761
|
-
} | undefined;
|
|
762
|
-
|
|
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 };
|