@flowgram.ai/form-materials 0.4.9 → 0.4.11
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 +54 -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/coze-editor-extensions/extensions/inputs-tree.js +172 -0
- package/dist/cjs/components/coze-editor-extensions/extensions/variable-tag.js +151 -0
- package/dist/cjs/components/coze-editor-extensions/extensions/variable-tree.js +106 -0
- package/dist/cjs/components/coze-editor-extensions/index.js +86 -0
- package/dist/cjs/components/coze-editor-extensions/styles.js +89 -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 +166 -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 +85 -0
- package/dist/cjs/components/json-editor-with-variables/index.js +57 -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/index.js +57 -0
- package/dist/cjs/components/prompt-editor-with-variables/editor.js +48 -0
- package/dist/cjs/components/prompt-editor-with-variables/index.js +57 -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 +144 -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 +237 -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 +66 -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/coze-editor-extensions/extensions/inputs-tree.mjs +135 -0
- package/dist/esm/components/coze-editor-extensions/extensions/variable-tag.mjs +117 -0
- package/dist/esm/components/coze-editor-extensions/extensions/variable-tree.mjs +72 -0
- package/dist/esm/components/coze-editor-extensions/index.mjs +18 -0
- package/{src/components/prompt-editor-with-variables/styles.tsx → dist/esm/components/coze-editor-extensions/styles.mjs} +7 -15
- 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 +27 -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 +51 -0
- package/dist/esm/components/json-editor-with-variables/index.mjs +5 -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/index.mjs +5 -0
- package/dist/esm/components/prompt-editor-with-variables/editor.mjs +14 -0
- package/dist/esm/components/prompt-editor-with-variables/index.mjs +5 -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 +101 -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 +22 -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 +13 -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/coze-editor-extensions/extensions/inputs-tree.d.ts +14 -0
- package/dist/types/components/coze-editor-extensions/extensions/variable-tag.d.ts +5 -0
- package/dist/types/components/coze-editor-extensions/extensions/variable-tree.d.ts +8 -0
- package/dist/types/components/coze-editor-extensions/index.d.ts +18 -0
- package/dist/types/components/coze-editor-extensions/styles.d.ts +9 -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 +29 -0
- package/dist/types/components/dynamic-value-input/styles.d.ts +8 -0
- package/dist/types/components/index.d.ts +30 -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/index.d.ts +6 -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/index.d.ts +6 -0
- package/dist/types/components/prompt-editor-with-variables/editor.d.ts +9 -0
- package/dist/types/components/prompt-editor-with-variables/index.d.ts +6 -0
- package/dist/types/components/type-selector/index.d.ts +25 -0
- package/dist/types/components/variable-selector/context.d.ts +16 -0
- package/dist/types/components/variable-selector/index.d.ts +31 -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 +48 -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 +20 -21
- package/src/components/assign-row/index.tsx +3 -3
- package/src/components/assign-row/types.ts +1 -1
- package/src/components/batch-outputs/types.ts +1 -1
- package/src/components/blur-input/index.tsx +9 -1
- package/src/components/code-editor/editor.tsx +10 -9
- 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 +1 -1
- package/src/components/code-editor/theme/index.ts +1 -1
- package/src/components/code-editor/theme/light.ts +1 -1
- package/src/components/condition-row/hooks/useRule.ts +1 -1
- package/src/components/condition-row/types.ts +1 -1
- package/src/components/constant-input/index.tsx +1 -1
- package/src/components/{prompt-editor-with-inputs/inputs-picker.tsx → coze-editor-extensions/extensions/inputs-tree.tsx} +95 -5
- package/src/components/{prompt-editor-with-variables → coze-editor-extensions}/extensions/variable-tag.tsx +1 -1
- package/src/components/{prompt-editor-with-variables → coze-editor-extensions}/extensions/variable-tree.tsx +12 -6
- package/src/components/coze-editor-extensions/index.tsx +33 -0
- package/src/components/db-condition-row/types.ts +1 -1
- package/src/components/display-flow-value/index.tsx +1 -1
- package/src/components/dynamic-value-input/hooks.ts +1 -1
- package/src/components/dynamic-value-input/index.tsx +1 -1
- package/src/components/index.ts +55 -25
- package/src/components/inputs-values/index.tsx +1 -1
- package/src/components/inputs-values/types.ts +1 -1
- package/src/components/inputs-values-tree/row.tsx +1 -1
- package/src/components/json-editor-with-variables/editor.tsx +6 -6
- package/src/components/prompt-editor/editor.tsx +2 -2
- 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/types.tsx +1 -1
- package/src/components/prompt-editor-with-inputs/editor.tsx +2 -3
- package/src/components/prompt-editor-with-variables/editor.tsx +3 -5
- package/src/components/variable-selector/index.tsx +2 -0
- package/src/effects/auto-rename-ref/index.ts +1 -1
- 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/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 +1 -1
- package/src/hooks/index.ts +6 -0
- package/src/index.ts +101 -8
- package/src/plugins/index.ts +11 -2
- package/src/plugins/json-schema-preset/index.tsx +4 -4
- package/src/shared/flow-value/index.ts +11 -1
- package/src/shared/flow-value/utils.ts +1 -2
- package/src/shared/index.ts +26 -5
- package/src/shared/inject-material/index.tsx +10 -6
- package/src/validate/index.ts +6 -0
- package/src/validate/validate-flow-value/index.tsx +1 -1
- package/bin/index.ts +0 -80
- package/bin/materials.ts +0 -134
- package/bin/project.ts +0 -95
- package/bin/utils/import.ts +0 -127
- package/bin/utils/traverse-file.ts +0 -60
- package/dist/esm/chunk-727SU246.js +0 -13
- package/dist/esm/chunk-727SU246.js.map +0 -1
- package/dist/esm/chunk-DEZUEMUM.js +0 -284
- package/dist/esm/chunk-DEZUEMUM.js.map +0 -1
- package/dist/esm/chunk-IHOHRV5V.js +0 -477
- package/dist/esm/chunk-IHOHRV5V.js.map +0 -1
- package/dist/esm/editor-4X7K477H.js +0 -282
- package/dist/esm/editor-4X7K477H.js.map +0 -1
- package/dist/esm/editor-6UMULJYB.js +0 -180
- package/dist/esm/editor-6UMULJYB.js.map +0 -1
- package/dist/esm/editor-E2BQTPCD.js +0 -388
- package/dist/esm/editor-E2BQTPCD.js.map +0 -1
- package/dist/esm/editor-OXPGKPF5.js +0 -167
- package/dist/esm/editor-OXPGKPF5.js.map +0 -1
- package/dist/esm/editor-Z24WLBPO.js +0 -249
- package/dist/esm/editor-Z24WLBPO.js.map +0 -1
- package/dist/esm/index.js +0 -2668
- package/dist/esm/index.js.map +0 -1
- package/dist/index.d.mts +0 -1002
- package/dist/index.d.ts +0 -1002
- package/dist/index.js +0 -5127
- package/dist/index.js.map +0 -1
- package/src/components/assign-row/components/blur-input.tsx +0 -27
- package/src/components/json-editor-with-variables/extensions/variable-tag.tsx +0 -174
- package/src/components/json-editor-with-variables/extensions/variable-tree.tsx +0 -83
- package/src/components/prompt-editor-with-inputs/extensions/inputs-tree.tsx +0 -94
- /package/src/components/{json-editor-with-variables → coze-editor-extensions}/styles.tsx +0 -0
- /package/src/{typings/flow-value/index.ts → shared/flow-value/types.ts} +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
useObjectList: ()=>index_js_namespaceObject.useObjectList
|
|
28
|
+
});
|
|
29
|
+
const index_js_namespaceObject = require("./use-object-list/index.js");
|
|
30
|
+
exports.useObjectList = __webpack_exports__.useObjectList;
|
|
31
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
32
|
+
"useObjectList"
|
|
33
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
34
|
+
Object.defineProperty(exports, '__esModule', {
|
|
35
|
+
value: true
|
|
36
|
+
});
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
useObjectList: ()=>useObjectList
|
|
28
|
+
});
|
|
29
|
+
const external_react_namespaceObject = require("react");
|
|
30
|
+
const external_nanoid_namespaceObject = require("nanoid");
|
|
31
|
+
const external_lodash_es_namespaceObject = require("lodash-es");
|
|
32
|
+
function genId() {
|
|
33
|
+
return (0, external_nanoid_namespaceObject.nanoid)();
|
|
34
|
+
}
|
|
35
|
+
function useObjectList({ value, onChange, sortIndexKey }) {
|
|
36
|
+
const [list, setList] = (0, external_react_namespaceObject.useState)([]);
|
|
37
|
+
const effectVersion = (0, external_react_namespaceObject.useRef)(0);
|
|
38
|
+
const changeVersion = (0, external_react_namespaceObject.useRef)(0);
|
|
39
|
+
const getSortIndex = (value)=>{
|
|
40
|
+
if ('function' == typeof sortIndexKey) return (0, external_lodash_es_namespaceObject.get)(value, sortIndexKey(value)) || 0;
|
|
41
|
+
return (0, external_lodash_es_namespaceObject.get)(value, sortIndexKey || '') || 0;
|
|
42
|
+
};
|
|
43
|
+
(0, external_react_namespaceObject.useEffect)(()=>{
|
|
44
|
+
effectVersion.current = effectVersion.current + 1;
|
|
45
|
+
if (effectVersion.current === changeVersion.current) return;
|
|
46
|
+
effectVersion.current = changeVersion.current;
|
|
47
|
+
setList((_prevList)=>{
|
|
48
|
+
const newKeys = Object.entries(value || {}).sort((a, b)=>getSortIndex(a[1]) - getSortIndex(b[1])).map(([key])=>key);
|
|
49
|
+
const oldKeys = _prevList.map((item)=>item.key).filter(Boolean);
|
|
50
|
+
const addKeys = (0, external_lodash_es_namespaceObject.difference)(newKeys, oldKeys);
|
|
51
|
+
return _prevList.filter((item)=>!item.key || newKeys.includes(item.key)).map((item)=>({
|
|
52
|
+
id: item.id,
|
|
53
|
+
key: item.key,
|
|
54
|
+
value: item.key ? value?.[item.key] : item.value
|
|
55
|
+
})).concat(addKeys.map((_key)=>({
|
|
56
|
+
id: genId(),
|
|
57
|
+
key: _key,
|
|
58
|
+
value: value?.[_key]
|
|
59
|
+
})));
|
|
60
|
+
});
|
|
61
|
+
}, [
|
|
62
|
+
value
|
|
63
|
+
]);
|
|
64
|
+
const add = (defaultValue)=>{
|
|
65
|
+
setList((prevList)=>[
|
|
66
|
+
...prevList,
|
|
67
|
+
{
|
|
68
|
+
id: genId(),
|
|
69
|
+
value: defaultValue
|
|
70
|
+
}
|
|
71
|
+
]);
|
|
72
|
+
};
|
|
73
|
+
const updateValue = (itemId, value)=>{
|
|
74
|
+
changeVersion.current = changeVersion.current + 1;
|
|
75
|
+
setList((prevList)=>{
|
|
76
|
+
const nextList = prevList.map((_item)=>{
|
|
77
|
+
if (_item.id === itemId) return {
|
|
78
|
+
..._item,
|
|
79
|
+
value
|
|
80
|
+
};
|
|
81
|
+
return _item;
|
|
82
|
+
});
|
|
83
|
+
onChange(Object.fromEntries(nextList.filter((item)=>item.key).map((item)=>[
|
|
84
|
+
item.key,
|
|
85
|
+
item.value
|
|
86
|
+
]).map((_res, idx)=>{
|
|
87
|
+
const indexKey = 'function' == typeof sortIndexKey ? sortIndexKey(_res[1]) : sortIndexKey;
|
|
88
|
+
if ((0, external_lodash_es_namespaceObject.isObject)(_res[1]) && indexKey) (0, external_lodash_es_namespaceObject.set)(_res[1], indexKey, idx);
|
|
89
|
+
return _res;
|
|
90
|
+
})));
|
|
91
|
+
return nextList;
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
const updateKey = (itemId, key)=>{
|
|
95
|
+
changeVersion.current = changeVersion.current + 1;
|
|
96
|
+
setList((prevList)=>{
|
|
97
|
+
const nextList = prevList.map((_item)=>{
|
|
98
|
+
if (_item.id === itemId) return {
|
|
99
|
+
..._item,
|
|
100
|
+
key
|
|
101
|
+
};
|
|
102
|
+
return _item;
|
|
103
|
+
});
|
|
104
|
+
onChange(Object.fromEntries(nextList.filter((item)=>item.key).map((item)=>[
|
|
105
|
+
item.key,
|
|
106
|
+
item.value
|
|
107
|
+
])));
|
|
108
|
+
return nextList;
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
const remove = (itemId)=>{
|
|
112
|
+
changeVersion.current = changeVersion.current + 1;
|
|
113
|
+
setList((prevList)=>{
|
|
114
|
+
const nextList = prevList.filter((_item)=>_item.id !== itemId);
|
|
115
|
+
onChange(Object.fromEntries(nextList.filter((item)=>item.key).map((item)=>[
|
|
116
|
+
item.key,
|
|
117
|
+
item.value
|
|
118
|
+
])));
|
|
119
|
+
return nextList;
|
|
120
|
+
});
|
|
121
|
+
};
|
|
122
|
+
return {
|
|
123
|
+
list,
|
|
124
|
+
add,
|
|
125
|
+
updateKey,
|
|
126
|
+
updateValue,
|
|
127
|
+
remove
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
exports.useObjectList = __webpack_exports__.useObjectList;
|
|
131
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
132
|
+
"useObjectList"
|
|
133
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
134
|
+
Object.defineProperty(exports, '__esModule', {
|
|
135
|
+
value: true
|
|
136
|
+
});
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
TypeSelector: ()=>index_js_namespaceObject.TypeSelector,
|
|
28
|
+
createInjectMaterial: ()=>external_shared_index_js_namespaceObject.createInjectMaterial,
|
|
29
|
+
AssignRows: ()=>index_js_namespaceObject.AssignRows,
|
|
30
|
+
ConditionRow: ()=>index_js_namespaceObject.ConditionRow,
|
|
31
|
+
InjectDynamicValueInput: ()=>index_js_namespaceObject.InjectDynamicValueInput,
|
|
32
|
+
createBatchOutputsFormPlugin: ()=>external_form_plugins_index_js_namespaceObject.createBatchOutputsFormPlugin,
|
|
33
|
+
useObjectList: ()=>external_hooks_index_js_namespaceObject.useObjectList,
|
|
34
|
+
JsonEditorWithVariables: ()=>index_js_namespaceObject.JsonEditorWithVariables,
|
|
35
|
+
createTypePresetPlugin: ()=>external_plugins_index_js_namespaceObject.createTypePresetPlugin,
|
|
36
|
+
provideBatchInputEffect: ()=>external_effects_index_js_namespaceObject.provideBatchInputEffect,
|
|
37
|
+
PromptEditor: ()=>index_js_namespaceObject.PromptEditor,
|
|
38
|
+
validateWhenVariableSync: ()=>external_effects_index_js_namespaceObject.validateWhenVariableSync,
|
|
39
|
+
listenRefValueChange: ()=>external_effects_index_js_namespaceObject.listenRefValueChange,
|
|
40
|
+
JsonSchemaTypePresetProvider: ()=>external_plugins_index_js_namespaceObject.JsonSchemaTypePresetProvider,
|
|
41
|
+
useTypeManager: ()=>external_plugins_index_js_namespaceObject.useTypeManager,
|
|
42
|
+
DisplaySchemaTag: ()=>index_js_namespaceObject.DisplaySchemaTag,
|
|
43
|
+
provideBatchOutputsEffect: ()=>external_form_plugins_index_js_namespaceObject.provideBatchOutputsEffect,
|
|
44
|
+
InputsValues: ()=>index_js_namespaceObject.InputsValues,
|
|
45
|
+
useVariableTree: ()=>index_js_namespaceObject.useVariableTree,
|
|
46
|
+
formatLegacyRefOnSubmit: ()=>external_shared_index_js_namespaceObject.formatLegacyRefOnSubmit,
|
|
47
|
+
DisplayFlowValue: ()=>index_js_namespaceObject.DisplayFlowValue,
|
|
48
|
+
EditorVariableTagInject: ()=>index_js_namespaceObject.EditorVariableTagInject,
|
|
49
|
+
formatLegacyRefToNewRef: ()=>external_shared_index_js_namespaceObject.formatLegacyRefToNewRef,
|
|
50
|
+
formatLegacyRefOnInit: ()=>external_shared_index_js_namespaceObject.formatLegacyRefOnInit,
|
|
51
|
+
CodeEditor: ()=>index_js_namespaceObject.CodeEditor,
|
|
52
|
+
DisplayInputsValueAllInTag: ()=>index_js_namespaceObject.DisplayInputsValueAllInTag,
|
|
53
|
+
getTypeSelectValue: ()=>index_js_namespaceObject.getTypeSelectValue,
|
|
54
|
+
BatchOutputs: ()=>index_js_namespaceObject.BatchOutputs,
|
|
55
|
+
polyfillCreateRoot: ()=>external_shared_index_js_namespaceObject.polyfillCreateRoot,
|
|
56
|
+
VariableSelector: ()=>index_js_namespaceObject.VariableSelector,
|
|
57
|
+
BatchVariableSelector: ()=>index_js_namespaceObject.BatchVariableSelector,
|
|
58
|
+
AssignRow: ()=>index_js_namespaceObject.AssignRow,
|
|
59
|
+
createInferAssignPlugin: ()=>external_form_plugins_index_js_namespaceObject.createInferAssignPlugin,
|
|
60
|
+
CodeEditorMini: ()=>index_js_namespaceObject.CodeEditorMini,
|
|
61
|
+
DBConditionRow: ()=>index_js_namespaceObject.DBConditionRow,
|
|
62
|
+
DynamicValueInput: ()=>index_js_namespaceObject.DynamicValueInput,
|
|
63
|
+
EditorInputsTree: ()=>index_js_namespaceObject.EditorInputsTree,
|
|
64
|
+
PromptEditorWithVariables: ()=>index_js_namespaceObject.PromptEditorWithVariables,
|
|
65
|
+
lazySuspense: ()=>external_shared_index_js_namespaceObject.lazySuspense,
|
|
66
|
+
provideJsonSchemaOutputs: ()=>external_effects_index_js_namespaceObject.provideJsonSchemaOutputs,
|
|
67
|
+
unstableSetCreateRoot: ()=>external_shared_index_js_namespaceObject.unstableSetCreateRoot,
|
|
68
|
+
createInferInputsPlugin: ()=>external_form_plugins_index_js_namespaceObject.createInferInputsPlugin,
|
|
69
|
+
InjectVariableSelector: ()=>index_js_namespaceObject.InjectVariableSelector,
|
|
70
|
+
DisplayOutputs: ()=>index_js_namespaceObject.DisplayOutputs,
|
|
71
|
+
isLegacyFlowRefValueSchema: ()=>external_shared_index_js_namespaceObject.isLegacyFlowRefValueSchema,
|
|
72
|
+
DisplaySchemaTree: ()=>index_js_namespaceObject.DisplaySchemaTree,
|
|
73
|
+
createDisableDeclarationPlugin: ()=>external_plugins_index_js_namespaceObject.createDisableDeclarationPlugin,
|
|
74
|
+
validateFlowValue: ()=>external_validate_index_js_namespaceObject.validateFlowValue,
|
|
75
|
+
ConstantInput: ()=>index_js_namespaceObject.ConstantInput,
|
|
76
|
+
BlurInput: ()=>index_js_namespaceObject.BlurInput,
|
|
77
|
+
isNewFlowRefValueSchema: ()=>external_shared_index_js_namespaceObject.isNewFlowRefValueSchema,
|
|
78
|
+
FlowValueUtils: ()=>external_shared_index_js_namespaceObject.FlowValueUtils,
|
|
79
|
+
InjectTypeSelector: ()=>index_js_namespaceObject.InjectTypeSelector,
|
|
80
|
+
VariableSelectorProvider: ()=>index_js_namespaceObject.VariableSelectorProvider,
|
|
81
|
+
JsonSchemaEditor: ()=>index_js_namespaceObject.JsonSchemaEditor,
|
|
82
|
+
PromptEditorWithInputs: ()=>index_js_namespaceObject.PromptEditorWithInputs,
|
|
83
|
+
listenRefSchemaChange: ()=>external_effects_index_js_namespaceObject.listenRefSchemaChange,
|
|
84
|
+
InputsValuesTree: ()=>index_js_namespaceObject.InputsValuesTree,
|
|
85
|
+
parseTypeSelectValue: ()=>index_js_namespaceObject.parseTypeSelectValue,
|
|
86
|
+
syncVariableTitle: ()=>external_effects_index_js_namespaceObject.syncVariableTitle,
|
|
87
|
+
EditorVariableTree: ()=>index_js_namespaceObject.EditorVariableTree,
|
|
88
|
+
JsonSchemaUtils: ()=>external_plugins_index_js_namespaceObject.JsonSchemaUtils,
|
|
89
|
+
DisplayInputsValues: ()=>index_js_namespaceObject.DisplayInputsValues,
|
|
90
|
+
autoRenameRefEffect: ()=>external_effects_index_js_namespaceObject.autoRenameRefEffect,
|
|
91
|
+
formatNewRefToLegacyRef: ()=>external_shared_index_js_namespaceObject.formatNewRefToLegacyRef,
|
|
92
|
+
withSuspense: ()=>external_shared_index_js_namespaceObject.withSuspense
|
|
93
|
+
});
|
|
94
|
+
const index_js_namespaceObject = require("./components/index.js");
|
|
95
|
+
const external_effects_index_js_namespaceObject = require("./effects/index.js");
|
|
96
|
+
const external_form_plugins_index_js_namespaceObject = require("./form-plugins/index.js");
|
|
97
|
+
const external_hooks_index_js_namespaceObject = require("./hooks/index.js");
|
|
98
|
+
const external_plugins_index_js_namespaceObject = require("./plugins/index.js");
|
|
99
|
+
const external_shared_index_js_namespaceObject = require("./shared/index.js");
|
|
100
|
+
const external_validate_index_js_namespaceObject = require("./validate/index.js");
|
|
101
|
+
exports.AssignRow = __webpack_exports__.AssignRow;
|
|
102
|
+
exports.AssignRows = __webpack_exports__.AssignRows;
|
|
103
|
+
exports.BatchOutputs = __webpack_exports__.BatchOutputs;
|
|
104
|
+
exports.BatchVariableSelector = __webpack_exports__.BatchVariableSelector;
|
|
105
|
+
exports.BlurInput = __webpack_exports__.BlurInput;
|
|
106
|
+
exports.CodeEditor = __webpack_exports__.CodeEditor;
|
|
107
|
+
exports.CodeEditorMini = __webpack_exports__.CodeEditorMini;
|
|
108
|
+
exports.ConditionRow = __webpack_exports__.ConditionRow;
|
|
109
|
+
exports.ConstantInput = __webpack_exports__.ConstantInput;
|
|
110
|
+
exports.DBConditionRow = __webpack_exports__.DBConditionRow;
|
|
111
|
+
exports.DisplayFlowValue = __webpack_exports__.DisplayFlowValue;
|
|
112
|
+
exports.DisplayInputsValueAllInTag = __webpack_exports__.DisplayInputsValueAllInTag;
|
|
113
|
+
exports.DisplayInputsValues = __webpack_exports__.DisplayInputsValues;
|
|
114
|
+
exports.DisplayOutputs = __webpack_exports__.DisplayOutputs;
|
|
115
|
+
exports.DisplaySchemaTag = __webpack_exports__.DisplaySchemaTag;
|
|
116
|
+
exports.DisplaySchemaTree = __webpack_exports__.DisplaySchemaTree;
|
|
117
|
+
exports.DynamicValueInput = __webpack_exports__.DynamicValueInput;
|
|
118
|
+
exports.EditorInputsTree = __webpack_exports__.EditorInputsTree;
|
|
119
|
+
exports.EditorVariableTagInject = __webpack_exports__.EditorVariableTagInject;
|
|
120
|
+
exports.EditorVariableTree = __webpack_exports__.EditorVariableTree;
|
|
121
|
+
exports.FlowValueUtils = __webpack_exports__.FlowValueUtils;
|
|
122
|
+
exports.InjectDynamicValueInput = __webpack_exports__.InjectDynamicValueInput;
|
|
123
|
+
exports.InjectTypeSelector = __webpack_exports__.InjectTypeSelector;
|
|
124
|
+
exports.InjectVariableSelector = __webpack_exports__.InjectVariableSelector;
|
|
125
|
+
exports.InputsValues = __webpack_exports__.InputsValues;
|
|
126
|
+
exports.InputsValuesTree = __webpack_exports__.InputsValuesTree;
|
|
127
|
+
exports.JsonEditorWithVariables = __webpack_exports__.JsonEditorWithVariables;
|
|
128
|
+
exports.JsonSchemaEditor = __webpack_exports__.JsonSchemaEditor;
|
|
129
|
+
exports.JsonSchemaTypePresetProvider = __webpack_exports__.JsonSchemaTypePresetProvider;
|
|
130
|
+
exports.JsonSchemaUtils = __webpack_exports__.JsonSchemaUtils;
|
|
131
|
+
exports.PromptEditor = __webpack_exports__.PromptEditor;
|
|
132
|
+
exports.PromptEditorWithInputs = __webpack_exports__.PromptEditorWithInputs;
|
|
133
|
+
exports.PromptEditorWithVariables = __webpack_exports__.PromptEditorWithVariables;
|
|
134
|
+
exports.TypeSelector = __webpack_exports__.TypeSelector;
|
|
135
|
+
exports.VariableSelector = __webpack_exports__.VariableSelector;
|
|
136
|
+
exports.VariableSelectorProvider = __webpack_exports__.VariableSelectorProvider;
|
|
137
|
+
exports.autoRenameRefEffect = __webpack_exports__.autoRenameRefEffect;
|
|
138
|
+
exports.createBatchOutputsFormPlugin = __webpack_exports__.createBatchOutputsFormPlugin;
|
|
139
|
+
exports.createDisableDeclarationPlugin = __webpack_exports__.createDisableDeclarationPlugin;
|
|
140
|
+
exports.createInferAssignPlugin = __webpack_exports__.createInferAssignPlugin;
|
|
141
|
+
exports.createInferInputsPlugin = __webpack_exports__.createInferInputsPlugin;
|
|
142
|
+
exports.createInjectMaterial = __webpack_exports__.createInjectMaterial;
|
|
143
|
+
exports.createTypePresetPlugin = __webpack_exports__.createTypePresetPlugin;
|
|
144
|
+
exports.formatLegacyRefOnInit = __webpack_exports__.formatLegacyRefOnInit;
|
|
145
|
+
exports.formatLegacyRefOnSubmit = __webpack_exports__.formatLegacyRefOnSubmit;
|
|
146
|
+
exports.formatLegacyRefToNewRef = __webpack_exports__.formatLegacyRefToNewRef;
|
|
147
|
+
exports.formatNewRefToLegacyRef = __webpack_exports__.formatNewRefToLegacyRef;
|
|
148
|
+
exports.getTypeSelectValue = __webpack_exports__.getTypeSelectValue;
|
|
149
|
+
exports.isLegacyFlowRefValueSchema = __webpack_exports__.isLegacyFlowRefValueSchema;
|
|
150
|
+
exports.isNewFlowRefValueSchema = __webpack_exports__.isNewFlowRefValueSchema;
|
|
151
|
+
exports.lazySuspense = __webpack_exports__.lazySuspense;
|
|
152
|
+
exports.listenRefSchemaChange = __webpack_exports__.listenRefSchemaChange;
|
|
153
|
+
exports.listenRefValueChange = __webpack_exports__.listenRefValueChange;
|
|
154
|
+
exports.parseTypeSelectValue = __webpack_exports__.parseTypeSelectValue;
|
|
155
|
+
exports.polyfillCreateRoot = __webpack_exports__.polyfillCreateRoot;
|
|
156
|
+
exports.provideBatchInputEffect = __webpack_exports__.provideBatchInputEffect;
|
|
157
|
+
exports.provideBatchOutputsEffect = __webpack_exports__.provideBatchOutputsEffect;
|
|
158
|
+
exports.provideJsonSchemaOutputs = __webpack_exports__.provideJsonSchemaOutputs;
|
|
159
|
+
exports.syncVariableTitle = __webpack_exports__.syncVariableTitle;
|
|
160
|
+
exports.unstableSetCreateRoot = __webpack_exports__.unstableSetCreateRoot;
|
|
161
|
+
exports.useObjectList = __webpack_exports__.useObjectList;
|
|
162
|
+
exports.useTypeManager = __webpack_exports__.useTypeManager;
|
|
163
|
+
exports.useVariableTree = __webpack_exports__.useVariableTree;
|
|
164
|
+
exports.validateFlowValue = __webpack_exports__.validateFlowValue;
|
|
165
|
+
exports.validateWhenVariableSync = __webpack_exports__.validateWhenVariableSync;
|
|
166
|
+
exports.withSuspense = __webpack_exports__.withSuspense;
|
|
167
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
168
|
+
"AssignRow",
|
|
169
|
+
"AssignRows",
|
|
170
|
+
"BatchOutputs",
|
|
171
|
+
"BatchVariableSelector",
|
|
172
|
+
"BlurInput",
|
|
173
|
+
"CodeEditor",
|
|
174
|
+
"CodeEditorMini",
|
|
175
|
+
"ConditionRow",
|
|
176
|
+
"ConstantInput",
|
|
177
|
+
"DBConditionRow",
|
|
178
|
+
"DisplayFlowValue",
|
|
179
|
+
"DisplayInputsValueAllInTag",
|
|
180
|
+
"DisplayInputsValues",
|
|
181
|
+
"DisplayOutputs",
|
|
182
|
+
"DisplaySchemaTag",
|
|
183
|
+
"DisplaySchemaTree",
|
|
184
|
+
"DynamicValueInput",
|
|
185
|
+
"EditorInputsTree",
|
|
186
|
+
"EditorVariableTagInject",
|
|
187
|
+
"EditorVariableTree",
|
|
188
|
+
"FlowValueUtils",
|
|
189
|
+
"InjectDynamicValueInput",
|
|
190
|
+
"InjectTypeSelector",
|
|
191
|
+
"InjectVariableSelector",
|
|
192
|
+
"InputsValues",
|
|
193
|
+
"InputsValuesTree",
|
|
194
|
+
"JsonEditorWithVariables",
|
|
195
|
+
"JsonSchemaEditor",
|
|
196
|
+
"JsonSchemaTypePresetProvider",
|
|
197
|
+
"JsonSchemaUtils",
|
|
198
|
+
"PromptEditor",
|
|
199
|
+
"PromptEditorWithInputs",
|
|
200
|
+
"PromptEditorWithVariables",
|
|
201
|
+
"TypeSelector",
|
|
202
|
+
"VariableSelector",
|
|
203
|
+
"VariableSelectorProvider",
|
|
204
|
+
"autoRenameRefEffect",
|
|
205
|
+
"createBatchOutputsFormPlugin",
|
|
206
|
+
"createDisableDeclarationPlugin",
|
|
207
|
+
"createInferAssignPlugin",
|
|
208
|
+
"createInferInputsPlugin",
|
|
209
|
+
"createInjectMaterial",
|
|
210
|
+
"createTypePresetPlugin",
|
|
211
|
+
"formatLegacyRefOnInit",
|
|
212
|
+
"formatLegacyRefOnSubmit",
|
|
213
|
+
"formatLegacyRefToNewRef",
|
|
214
|
+
"formatNewRefToLegacyRef",
|
|
215
|
+
"getTypeSelectValue",
|
|
216
|
+
"isLegacyFlowRefValueSchema",
|
|
217
|
+
"isNewFlowRefValueSchema",
|
|
218
|
+
"lazySuspense",
|
|
219
|
+
"listenRefSchemaChange",
|
|
220
|
+
"listenRefValueChange",
|
|
221
|
+
"parseTypeSelectValue",
|
|
222
|
+
"polyfillCreateRoot",
|
|
223
|
+
"provideBatchInputEffect",
|
|
224
|
+
"provideBatchOutputsEffect",
|
|
225
|
+
"provideJsonSchemaOutputs",
|
|
226
|
+
"syncVariableTitle",
|
|
227
|
+
"unstableSetCreateRoot",
|
|
228
|
+
"useObjectList",
|
|
229
|
+
"useTypeManager",
|
|
230
|
+
"useVariableTree",
|
|
231
|
+
"validateFlowValue",
|
|
232
|
+
"validateWhenVariableSync",
|
|
233
|
+
"withSuspense"
|
|
234
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
235
|
+
Object.defineProperty(exports, '__esModule', {
|
|
236
|
+
value: true
|
|
237
|
+
});
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
createDisableDeclarationPlugin: ()=>createDisableDeclarationPlugin
|
|
28
|
+
});
|
|
29
|
+
const editor_namespaceObject = require("@flowgram.ai/editor");
|
|
30
|
+
const createDisableDeclarationPlugin = (0, editor_namespaceObject.definePluginCreator)({
|
|
31
|
+
onInit (ctx) {
|
|
32
|
+
const variableEngine = ctx.get(editor_namespaceObject.VariableEngine);
|
|
33
|
+
const handleEvent = (action)=>{
|
|
34
|
+
if (editor_namespaceObject.ASTMatch.isVariableDeclaration(action.ast)) {
|
|
35
|
+
if (!action.ast.meta?.disabled) action.ast.updateMeta({
|
|
36
|
+
...action.ast.meta || {},
|
|
37
|
+
disabled: true
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
variableEngine.onGlobalEvent('NewAST', handleEvent);
|
|
42
|
+
variableEngine.onGlobalEvent('UpdateAST', handleEvent);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
exports.createDisableDeclarationPlugin = __webpack_exports__.createDisableDeclarationPlugin;
|
|
46
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
47
|
+
"createDisableDeclarationPlugin"
|
|
48
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
49
|
+
Object.defineProperty(exports, '__esModule', {
|
|
50
|
+
value: true
|
|
51
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
createDisableDeclarationPlugin: ()=>external_create_disable_declaration_plugin_js_namespaceObject.createDisableDeclarationPlugin
|
|
28
|
+
});
|
|
29
|
+
const external_create_disable_declaration_plugin_js_namespaceObject = require("./create-disable-declaration-plugin.js");
|
|
30
|
+
exports.createDisableDeclarationPlugin = __webpack_exports__.createDisableDeclarationPlugin;
|
|
31
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
32
|
+
"createDisableDeclarationPlugin"
|
|
33
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
34
|
+
Object.defineProperty(exports, '__esModule', {
|
|
35
|
+
value: true
|
|
36
|
+
});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
createDisableDeclarationPlugin: ()=>index_js_namespaceObject.createDisableDeclarationPlugin,
|
|
28
|
+
JsonSchemaUtils: ()=>external_json_schema_preset_index_js_namespaceObject.JsonSchemaUtils,
|
|
29
|
+
JsonSchemaTypePresetProvider: ()=>external_json_schema_preset_index_js_namespaceObject.JsonSchemaTypePresetProvider,
|
|
30
|
+
createTypePresetPlugin: ()=>external_json_schema_preset_index_js_namespaceObject.createTypePresetPlugin,
|
|
31
|
+
useTypeManager: ()=>external_json_schema_preset_index_js_namespaceObject.useTypeManager
|
|
32
|
+
});
|
|
33
|
+
const index_js_namespaceObject = require("./disable-declaration-plugin/index.js");
|
|
34
|
+
const external_json_schema_preset_index_js_namespaceObject = require("./json-schema-preset/index.js");
|
|
35
|
+
exports.JsonSchemaTypePresetProvider = __webpack_exports__.JsonSchemaTypePresetProvider;
|
|
36
|
+
exports.JsonSchemaUtils = __webpack_exports__.JsonSchemaUtils;
|
|
37
|
+
exports.createDisableDeclarationPlugin = __webpack_exports__.createDisableDeclarationPlugin;
|
|
38
|
+
exports.createTypePresetPlugin = __webpack_exports__.createTypePresetPlugin;
|
|
39
|
+
exports.useTypeManager = __webpack_exports__.useTypeManager;
|
|
40
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
41
|
+
"JsonSchemaTypePresetProvider",
|
|
42
|
+
"JsonSchemaUtils",
|
|
43
|
+
"createDisableDeclarationPlugin",
|
|
44
|
+
"createTypePresetPlugin",
|
|
45
|
+
"useTypeManager"
|
|
46
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
47
|
+
Object.defineProperty(exports, '__esModule', {
|
|
48
|
+
value: true
|
|
49
|
+
});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
createTypePresetPlugin: ()=>createTypePresetPlugin
|
|
28
|
+
});
|
|
29
|
+
const json_schema_namespaceObject = require("@flowgram.ai/json-schema");
|
|
30
|
+
const editor_namespaceObject = require("@flowgram.ai/editor");
|
|
31
|
+
const index_js_namespaceObject = require("./type-definition/index.js");
|
|
32
|
+
const createTypePresetPlugin = (0, editor_namespaceObject.definePluginCreator)({
|
|
33
|
+
onInit (ctx, opts) {
|
|
34
|
+
const typeManager = ctx.get(json_schema_namespaceObject.BaseTypeManager);
|
|
35
|
+
index_js_namespaceObject.jsonSchemaTypePreset.forEach((_type)=>typeManager.register(_type));
|
|
36
|
+
opts.types?.forEach((_type)=>typeManager.register(_type));
|
|
37
|
+
opts.unregisterTypes?.forEach((_type)=>typeManager.unregister(_type));
|
|
38
|
+
},
|
|
39
|
+
containerModules: [
|
|
40
|
+
json_schema_namespaceObject.jsonSchemaContainerModule
|
|
41
|
+
]
|
|
42
|
+
});
|
|
43
|
+
exports.createTypePresetPlugin = __webpack_exports__.createTypePresetPlugin;
|
|
44
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
45
|
+
"createTypePresetPlugin"
|
|
46
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
47
|
+
Object.defineProperty(exports, '__esModule', {
|
|
48
|
+
value: true
|
|
49
|
+
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
JsonSchemaUtils: ()=>json_schema_namespaceObject.JsonSchemaUtils,
|
|
28
|
+
JsonSchemaTypePresetProvider: ()=>JsonSchemaTypePresetProvider,
|
|
29
|
+
createTypePresetPlugin: ()=>external_create_type_preset_plugin_js_namespaceObject.createTypePresetPlugin,
|
|
30
|
+
useTypeManager: ()=>useTypeManager
|
|
31
|
+
});
|
|
32
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
33
|
+
require("react");
|
|
34
|
+
const json_schema_namespaceObject = require("@flowgram.ai/json-schema");
|
|
35
|
+
const index_js_namespaceObject = require("./type-definition/index.js");
|
|
36
|
+
const external_create_type_preset_plugin_js_namespaceObject = require("./create-type-preset-plugin.js");
|
|
37
|
+
const useTypeManager = ()=>(0, json_schema_namespaceObject.useTypeManager)();
|
|
38
|
+
const JsonSchemaTypePresetProvider = ({ types = [], children })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(json_schema_namespaceObject.TypePresetProvider, {
|
|
39
|
+
types: [
|
|
40
|
+
...index_js_namespaceObject.jsonSchemaTypePreset,
|
|
41
|
+
...types
|
|
42
|
+
],
|
|
43
|
+
children: children
|
|
44
|
+
});
|
|
45
|
+
exports.JsonSchemaTypePresetProvider = __webpack_exports__.JsonSchemaTypePresetProvider;
|
|
46
|
+
exports.JsonSchemaUtils = __webpack_exports__.JsonSchemaUtils;
|
|
47
|
+
exports.createTypePresetPlugin = __webpack_exports__.createTypePresetPlugin;
|
|
48
|
+
exports.useTypeManager = __webpack_exports__.useTypeManager;
|
|
49
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
50
|
+
"JsonSchemaTypePresetProvider",
|
|
51
|
+
"JsonSchemaUtils",
|
|
52
|
+
"createTypePresetPlugin",
|
|
53
|
+
"useTypeManager"
|
|
54
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
55
|
+
Object.defineProperty(exports, '__esModule', {
|
|
56
|
+
value: true
|
|
57
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.r = (exports1)=>{
|
|
5
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
6
|
+
value: 'Module'
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
9
|
+
value: true
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
})();
|
|
13
|
+
var __webpack_exports__ = {};
|
|
14
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15
|
+
for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
16
|
+
Object.defineProperty(exports, '__esModule', {
|
|
17
|
+
value: true
|
|
18
|
+
});
|