@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.
Files changed (445) hide show
  1. package/bin/run.sh +6 -0
  2. package/dist/cjs/components/assign-row/index.js +112 -0
  3. package/dist/cjs/components/assign-row/types.js +18 -0
  4. package/dist/cjs/components/assign-rows/index.js +85 -0
  5. package/dist/cjs/components/batch-outputs/index.js +91 -0
  6. package/dist/cjs/components/batch-outputs/styles.js +60 -0
  7. package/dist/cjs/components/batch-outputs/types.js +18 -0
  8. package/dist/cjs/components/batch-variable-selector/index.js +53 -0
  9. package/dist/cjs/components/blur-input/index.js +54 -0
  10. package/dist/cjs/components/code-editor/editor.js +117 -0
  11. package/dist/cjs/components/code-editor/index.js +57 -0
  12. package/dist/cjs/components/code-editor/init-worker.js +56 -0
  13. package/dist/cjs/components/code-editor/language-features.js +21 -0
  14. package/dist/cjs/components/code-editor/theme/dark.js +188 -0
  15. package/dist/cjs/components/code-editor/theme/index.js +11 -0
  16. package/dist/cjs/components/code-editor/theme/light.js +195 -0
  17. package/dist/cjs/components/code-editor/utils.js +42 -0
  18. package/dist/cjs/components/code-editor-mini/index.js +66 -0
  19. package/dist/cjs/components/condition-row/constants.js +165 -0
  20. package/dist/cjs/components/condition-row/hooks/useOp.js +78 -0
  21. package/dist/cjs/components/condition-row/hooks/useRule.js +68 -0
  22. package/dist/cjs/components/condition-row/index.js +123 -0
  23. package/dist/cjs/components/condition-row/styles.js +77 -0
  24. package/dist/cjs/components/condition-row/types.js +52 -0
  25. package/dist/cjs/components/constant-input/index.js +80 -0
  26. package/dist/cjs/components/constant-input/types.js +18 -0
  27. package/dist/cjs/components/coze-editor-extensions/extensions/inputs-tree.js +172 -0
  28. package/dist/cjs/components/coze-editor-extensions/extensions/variable-tag.js +151 -0
  29. package/dist/cjs/components/coze-editor-extensions/extensions/variable-tree.js +106 -0
  30. package/dist/cjs/components/coze-editor-extensions/index.js +86 -0
  31. package/dist/cjs/components/coze-editor-extensions/styles.js +89 -0
  32. package/dist/cjs/components/db-condition-row/hooks/use-left.js +86 -0
  33. package/dist/cjs/components/db-condition-row/hooks/use-op.js +79 -0
  34. package/dist/cjs/components/db-condition-row/index.js +115 -0
  35. package/dist/cjs/components/db-condition-row/styles.js +94 -0
  36. package/dist/cjs/components/db-condition-row/types.js +18 -0
  37. package/dist/cjs/components/display-flow-value/index.js +64 -0
  38. package/dist/cjs/components/display-inputs-values/index.js +76 -0
  39. package/dist/cjs/components/display-inputs-values/styles.js +51 -0
  40. package/dist/cjs/components/display-outputs/index.js +72 -0
  41. package/dist/cjs/components/display-outputs/styles.js +51 -0
  42. package/dist/cjs/components/display-schema-tag/index.js +77 -0
  43. package/dist/cjs/components/display-schema-tag/styles.js +71 -0
  44. package/dist/cjs/components/display-schema-tree/index.js +93 -0
  45. package/dist/cjs/components/display-schema-tree/styles.js +135 -0
  46. package/dist/cjs/components/dynamic-value-input/hooks.js +99 -0
  47. package/dist/cjs/components/dynamic-value-input/index.js +174 -0
  48. package/dist/cjs/components/dynamic-value-input/styles.js +107 -0
  49. package/dist/cjs/components/index.js +166 -0
  50. package/dist/cjs/components/inputs-values/index.js +112 -0
  51. package/dist/cjs/components/inputs-values/styles.js +60 -0
  52. package/dist/cjs/components/inputs-values/types.js +18 -0
  53. package/dist/cjs/components/inputs-values-tree/hooks/use-child-list.js +77 -0
  54. package/dist/cjs/components/inputs-values-tree/index.js +87 -0
  55. package/dist/cjs/components/inputs-values-tree/row.js +183 -0
  56. package/dist/cjs/components/inputs-values-tree/styles.js +177 -0
  57. package/dist/cjs/components/inputs-values-tree/types.js +18 -0
  58. package/dist/cjs/components/json-editor-with-variables/editor.js +85 -0
  59. package/dist/cjs/components/json-editor-with-variables/index.js +57 -0
  60. package/dist/cjs/components/json-schema-editor/default-value.js +54 -0
  61. package/dist/cjs/components/json-schema-editor/hooks.js +130 -0
  62. package/dist/cjs/components/json-schema-editor/index.js +246 -0
  63. package/dist/cjs/components/json-schema-editor/styles.js +231 -0
  64. package/dist/cjs/components/json-schema-editor/types.js +18 -0
  65. package/dist/cjs/components/prompt-editor/editor.js +99 -0
  66. package/dist/cjs/components/prompt-editor/extensions/jinja.js +73 -0
  67. package/dist/cjs/components/prompt-editor/extensions/language-support.js +48 -0
  68. package/dist/cjs/components/prompt-editor/extensions/markdown.js +81 -0
  69. package/dist/cjs/components/prompt-editor/index.js +57 -0
  70. package/dist/cjs/components/prompt-editor/styles.js +55 -0
  71. package/dist/cjs/components/prompt-editor/types.js +7 -0
  72. package/dist/cjs/components/prompt-editor-with-inputs/editor.js +47 -0
  73. package/dist/cjs/components/prompt-editor-with-inputs/index.js +57 -0
  74. package/dist/cjs/components/prompt-editor-with-variables/editor.js +48 -0
  75. package/dist/cjs/components/prompt-editor-with-variables/index.js +57 -0
  76. package/dist/cjs/components/type-selector/index.js +139 -0
  77. package/dist/cjs/components/variable-selector/context.js +56 -0
  78. package/dist/cjs/components/variable-selector/index.js +144 -0
  79. package/dist/cjs/components/variable-selector/styles.js +114 -0
  80. package/dist/cjs/components/variable-selector/use-variable-tree.js +100 -0
  81. package/dist/cjs/effects/auto-rename-ref/index.js +98 -0
  82. package/dist/cjs/effects/index.js +60 -0
  83. package/dist/cjs/effects/listen-ref-schema-change/index.js +57 -0
  84. package/dist/cjs/effects/listen-ref-value-change/index.js +54 -0
  85. package/dist/cjs/effects/provide-batch-input/index.js +64 -0
  86. package/dist/cjs/effects/provide-json-schema-outputs/index.js +49 -0
  87. package/dist/cjs/effects/sync-variable-title/index.js +52 -0
  88. package/dist/cjs/effects/validate-when-variable-sync/index.js +49 -0
  89. package/dist/cjs/form-plugins/batch-outputs-plugin/index.js +97 -0
  90. package/dist/cjs/form-plugins/index.js +47 -0
  91. package/dist/cjs/form-plugins/infer-assign-plugin/index.js +72 -0
  92. package/dist/cjs/form-plugins/infer-inputs-plugin/index.js +47 -0
  93. package/dist/cjs/hooks/index.js +36 -0
  94. package/dist/cjs/hooks/use-object-list/index.js +136 -0
  95. package/dist/cjs/index.js +237 -0
  96. package/dist/cjs/plugins/disable-declaration-plugin/create-disable-declaration-plugin.js +51 -0
  97. package/dist/cjs/plugins/disable-declaration-plugin/index.js +36 -0
  98. package/dist/cjs/plugins/index.js +49 -0
  99. package/dist/cjs/plugins/json-schema-preset/create-type-preset-plugin.js +49 -0
  100. package/dist/cjs/plugins/json-schema-preset/index.js +57 -0
  101. package/dist/cjs/plugins/json-schema-preset/manager.js +18 -0
  102. package/dist/cjs/plugins/json-schema-preset/type-definition/array.js +49 -0
  103. package/dist/cjs/plugins/json-schema-preset/type-definition/boolean.js +63 -0
  104. package/dist/cjs/plugins/json-schema-preset/type-definition/date-time.js +52 -0
  105. package/dist/cjs/plugins/json-schema-preset/type-definition/index.js +53 -0
  106. package/dist/cjs/plugins/json-schema-preset/type-definition/integer.js +49 -0
  107. package/dist/cjs/plugins/json-schema-preset/type-definition/number.js +49 -0
  108. package/dist/cjs/plugins/json-schema-preset/type-definition/object.js +49 -0
  109. package/dist/cjs/plugins/json-schema-preset/type-definition/string.js +54 -0
  110. package/dist/cjs/shared/flow-value/index.js +36 -0
  111. package/dist/cjs/shared/flow-value/schema.js +82 -0
  112. package/dist/cjs/shared/flow-value/types.js +18 -0
  113. package/dist/cjs/shared/flow-value/utils.js +142 -0
  114. package/dist/cjs/shared/format-legacy-refs/index.js +99 -0
  115. package/dist/cjs/shared/index.js +73 -0
  116. package/dist/cjs/shared/inject-material/index.js +66 -0
  117. package/dist/cjs/shared/lazy-suspense/index.js +58 -0
  118. package/dist/cjs/shared/polyfill-create-root/index.js +53 -0
  119. package/dist/cjs/validate/index.js +36 -0
  120. package/dist/cjs/validate/validate-flow-value/index.js +63 -0
  121. package/dist/esm/components/assign-row/index.mjs +78 -0
  122. package/dist/esm/components/assign-row/types.mjs +0 -0
  123. package/dist/esm/components/assign-rows/index.mjs +51 -0
  124. package/dist/esm/components/batch-outputs/index.mjs +57 -0
  125. package/dist/esm/components/batch-outputs/styles.mjs +13 -0
  126. package/dist/esm/components/batch-outputs/types.mjs +0 -0
  127. package/dist/esm/components/batch-variable-selector/index.mjs +19 -0
  128. package/dist/esm/components/blur-input/index.mjs +20 -0
  129. package/dist/esm/components/code-editor/editor.mjs +55 -0
  130. package/dist/esm/components/code-editor/index.mjs +5 -0
  131. package/dist/esm/components/code-editor/init-worker.mjs +19 -0
  132. package/dist/esm/components/code-editor/language-features.mjs +15 -0
  133. package/dist/esm/components/code-editor/theme/dark.mjs +154 -0
  134. package/dist/esm/components/code-editor/theme/index.mjs +5 -0
  135. package/dist/esm/components/code-editor/theme/light.mjs +161 -0
  136. package/dist/esm/components/code-editor/utils.mjs +8 -0
  137. package/dist/esm/components/code-editor-mini/index.mjs +22 -0
  138. package/dist/esm/components/condition-row/constants.mjs +128 -0
  139. package/dist/esm/components/condition-row/hooks/useOp.mjs +44 -0
  140. package/dist/esm/components/condition-row/hooks/useRule.mjs +34 -0
  141. package/dist/esm/components/condition-row/index.mjs +89 -0
  142. package/dist/esm/components/condition-row/styles.mjs +21 -0
  143. package/dist/esm/components/condition-row/types.mjs +18 -0
  144. package/dist/esm/components/constant-input/index.mjs +36 -0
  145. package/dist/esm/components/constant-input/types.mjs +0 -0
  146. package/dist/esm/components/coze-editor-extensions/extensions/inputs-tree.mjs +135 -0
  147. package/dist/esm/components/coze-editor-extensions/extensions/variable-tag.mjs +117 -0
  148. package/dist/esm/components/coze-editor-extensions/extensions/variable-tree.mjs +72 -0
  149. package/dist/esm/components/coze-editor-extensions/index.mjs +18 -0
  150. package/{src/components/prompt-editor-with-variables/styles.tsx → dist/esm/components/coze-editor-extensions/styles.mjs} +7 -15
  151. package/dist/esm/components/db-condition-row/hooks/use-left.mjs +52 -0
  152. package/dist/esm/components/db-condition-row/hooks/use-op.mjs +45 -0
  153. package/dist/esm/components/db-condition-row/index.mjs +81 -0
  154. package/dist/esm/components/db-condition-row/styles.mjs +32 -0
  155. package/dist/esm/components/db-condition-row/types.mjs +0 -0
  156. package/dist/esm/components/display-flow-value/index.mjs +30 -0
  157. package/dist/esm/components/display-inputs-values/index.mjs +39 -0
  158. package/dist/esm/components/display-inputs-values/styles.mjs +7 -0
  159. package/dist/esm/components/display-outputs/index.mjs +38 -0
  160. package/dist/esm/components/display-outputs/styles.mjs +7 -0
  161. package/dist/esm/components/display-schema-tag/index.mjs +33 -0
  162. package/dist/esm/components/display-schema-tag/styles.mjs +21 -0
  163. package/dist/esm/components/display-schema-tree/index.mjs +49 -0
  164. package/dist/esm/components/display-schema-tree/styles.mjs +79 -0
  165. package/dist/esm/components/dynamic-value-input/hooks.mjs +59 -0
  166. package/dist/esm/components/dynamic-value-input/index.mjs +137 -0
  167. package/dist/esm/components/dynamic-value-input/styles.mjs +54 -0
  168. package/dist/esm/components/index.mjs +27 -0
  169. package/dist/esm/components/inputs-values/index.mjs +78 -0
  170. package/dist/esm/components/inputs-values/styles.mjs +13 -0
  171. package/dist/esm/components/inputs-values/types.mjs +0 -0
  172. package/dist/esm/components/inputs-values-tree/hooks/use-child-list.mjs +43 -0
  173. package/dist/esm/components/inputs-values-tree/index.mjs +53 -0
  174. package/dist/esm/components/inputs-values-tree/row.mjs +149 -0
  175. package/dist/esm/components/inputs-values-tree/styles.mjs +105 -0
  176. package/dist/esm/components/inputs-values-tree/types.mjs +0 -0
  177. package/dist/esm/components/json-editor-with-variables/editor.mjs +51 -0
  178. package/dist/esm/components/json-editor-with-variables/index.mjs +5 -0
  179. package/dist/esm/components/json-schema-editor/default-value.mjs +20 -0
  180. package/dist/esm/components/json-schema-editor/hooks.mjs +96 -0
  181. package/dist/esm/components/json-schema-editor/index.mjs +212 -0
  182. package/dist/esm/components/json-schema-editor/styles.mjs +138 -0
  183. package/dist/esm/components/json-schema-editor/types.mjs +0 -0
  184. package/dist/esm/components/prompt-editor/editor.mjs +52 -0
  185. package/dist/esm/components/prompt-editor/extensions/jinja.mjs +39 -0
  186. package/dist/esm/components/prompt-editor/extensions/language-support.mjs +14 -0
  187. package/dist/esm/components/prompt-editor/extensions/markdown.mjs +47 -0
  188. package/dist/esm/components/prompt-editor/index.mjs +5 -0
  189. package/dist/esm/components/prompt-editor/styles.mjs +11 -0
  190. package/dist/esm/components/prompt-editor/types.mjs +1 -0
  191. package/dist/esm/components/prompt-editor-with-inputs/editor.mjs +13 -0
  192. package/dist/esm/components/prompt-editor-with-inputs/index.mjs +5 -0
  193. package/dist/esm/components/prompt-editor-with-variables/editor.mjs +14 -0
  194. package/dist/esm/components/prompt-editor-with-variables/index.mjs +5 -0
  195. package/dist/esm/components/type-selector/index.mjs +96 -0
  196. package/dist/esm/components/variable-selector/context.mjs +16 -0
  197. package/dist/esm/components/variable-selector/index.mjs +101 -0
  198. package/dist/esm/components/variable-selector/styles.mjs +58 -0
  199. package/dist/esm/components/variable-selector/use-variable-tree.mjs +66 -0
  200. package/dist/esm/effects/auto-rename-ref/index.mjs +64 -0
  201. package/dist/esm/effects/index.mjs +8 -0
  202. package/dist/esm/effects/listen-ref-schema-change/index.mjs +23 -0
  203. package/dist/esm/effects/listen-ref-value-change/index.mjs +20 -0
  204. package/dist/esm/effects/provide-batch-input/index.mjs +30 -0
  205. package/dist/esm/effects/provide-json-schema-outputs/index.mjs +15 -0
  206. package/dist/esm/effects/sync-variable-title/index.mjs +18 -0
  207. package/dist/esm/effects/validate-when-variable-sync/index.mjs +15 -0
  208. package/dist/esm/form-plugins/batch-outputs-plugin/index.mjs +60 -0
  209. package/dist/esm/form-plugins/index.mjs +4 -0
  210. package/dist/esm/form-plugins/infer-assign-plugin/index.mjs +38 -0
  211. package/dist/esm/form-plugins/infer-inputs-plugin/index.mjs +13 -0
  212. package/dist/esm/hooks/index.mjs +2 -0
  213. package/dist/esm/hooks/use-object-list/index.mjs +102 -0
  214. package/dist/esm/index.mjs +8 -0
  215. package/dist/esm/plugins/disable-declaration-plugin/create-disable-declaration-plugin.mjs +17 -0
  216. package/dist/esm/plugins/disable-declaration-plugin/index.mjs +2 -0
  217. package/dist/esm/plugins/index.mjs +3 -0
  218. package/dist/esm/plugins/json-schema-preset/create-type-preset-plugin.mjs +15 -0
  219. package/dist/esm/plugins/json-schema-preset/index.mjs +14 -0
  220. package/dist/esm/plugins/json-schema-preset/manager.mjs +0 -0
  221. package/dist/esm/plugins/json-schema-preset/type-definition/array.mjs +15 -0
  222. package/dist/esm/plugins/json-schema-preset/type-definition/boolean.mjs +29 -0
  223. package/dist/esm/plugins/json-schema-preset/type-definition/date-time.mjs +18 -0
  224. package/dist/esm/plugins/json-schema-preset/type-definition/index.mjs +19 -0
  225. package/dist/esm/plugins/json-schema-preset/type-definition/integer.mjs +15 -0
  226. package/dist/esm/plugins/json-schema-preset/type-definition/number.mjs +15 -0
  227. package/dist/esm/plugins/json-schema-preset/type-definition/object.mjs +15 -0
  228. package/dist/esm/plugins/json-schema-preset/type-definition/string.mjs +20 -0
  229. package/dist/esm/shared/flow-value/index.mjs +2 -0
  230. package/dist/esm/shared/flow-value/schema.mjs +26 -0
  231. package/dist/esm/shared/flow-value/types.mjs +0 -0
  232. package/dist/esm/shared/flow-value/utils.mjs +108 -0
  233. package/dist/esm/shared/format-legacy-refs/index.mjs +50 -0
  234. package/dist/esm/shared/index.mjs +6 -0
  235. package/dist/esm/shared/inject-material/index.mjs +22 -0
  236. package/dist/esm/shared/lazy-suspense/index.mjs +21 -0
  237. package/dist/esm/shared/polyfill-create-root/index.mjs +16 -0
  238. package/dist/esm/validate/index.mjs +2 -0
  239. package/dist/esm/validate/validate-flow-value/index.mjs +29 -0
  240. package/dist/tsconfig.tsbuildinfo +1 -0
  241. package/dist/types/components/assign-row/index.d.ts +8 -0
  242. package/dist/types/components/assign-row/types.d.ts +20 -0
  243. package/dist/types/components/assign-rows/index.d.ts +11 -0
  244. package/dist/types/components/batch-outputs/index.d.ts +7 -0
  245. package/dist/types/components/batch-outputs/styles.d.ts +6 -0
  246. package/dist/types/components/batch-outputs/types.d.ts +18 -0
  247. package/dist/types/components/batch-variable-selector/index.d.ts +7 -0
  248. package/dist/types/components/blur-input/index.d.ts +13 -0
  249. package/dist/types/components/code-editor/editor.d.ts +23 -0
  250. package/dist/types/components/code-editor/index.d.ts +6 -0
  251. package/{src/validate/index.tsx → dist/types/components/code-editor/init-worker.d.ts} +1 -2
  252. package/{src/typings/index.ts → dist/types/components/code-editor/language-features.d.ts} +1 -2
  253. package/dist/types/components/code-editor/theme/dark.d.ts +6 -0
  254. package/{src/hooks/index.tsx → dist/types/components/code-editor/theme/index.d.ts} +1 -2
  255. package/dist/types/components/code-editor/theme/light.d.ts +6 -0
  256. package/dist/types/components/code-editor/utils.d.ts +5 -0
  257. package/dist/types/components/code-editor-mini/index.d.ts +7 -0
  258. package/dist/types/components/condition-row/constants.d.ts +7 -0
  259. package/dist/types/components/condition-row/hooks/useOp.d.ts +18 -0
  260. package/dist/types/components/condition-row/hooks/useRule.d.ts +9 -0
  261. package/dist/types/components/condition-row/index.d.ts +22 -0
  262. package/dist/types/components/condition-row/styles.d.ts +9 -0
  263. package/dist/types/components/condition-row/types.d.ts +34 -0
  264. package/dist/types/components/constant-input/index.d.ts +8 -0
  265. package/dist/types/components/constant-input/types.d.ts +16 -0
  266. package/dist/types/components/coze-editor-extensions/extensions/inputs-tree.d.ts +14 -0
  267. package/dist/types/components/coze-editor-extensions/extensions/variable-tag.d.ts +5 -0
  268. package/dist/types/components/coze-editor-extensions/extensions/variable-tree.d.ts +8 -0
  269. package/dist/types/components/coze-editor-extensions/index.d.ts +18 -0
  270. package/dist/types/components/coze-editor-extensions/styles.d.ts +9 -0
  271. package/dist/types/components/db-condition-row/hooks/use-left.d.ts +18 -0
  272. package/dist/types/components/db-condition-row/hooks/use-op.d.ts +18 -0
  273. package/dist/types/components/db-condition-row/index.d.ts +19 -0
  274. package/dist/types/components/db-condition-row/styles.d.ts +12 -0
  275. package/dist/types/components/db-condition-row/types.d.ts +25 -0
  276. package/dist/types/components/display-flow-value/index.d.ts +15 -0
  277. package/dist/types/components/display-inputs-values/index.d.ts +14 -0
  278. package/dist/types/components/display-inputs-values/styles.d.ts +5 -0
  279. package/dist/types/components/display-outputs/index.d.ts +14 -0
  280. package/dist/types/components/display-outputs/styles.d.ts +5 -0
  281. package/dist/types/components/display-schema-tag/index.d.ts +14 -0
  282. package/dist/types/components/display-schema-tag/styles.d.ts +8 -0
  283. package/dist/types/components/display-schema-tree/index.d.ts +16 -0
  284. package/dist/types/components/display-schema-tree/styles.d.ts +11 -0
  285. package/dist/types/components/dynamic-value-input/hooks.d.ts +28 -0
  286. package/dist/types/components/dynamic-value-input/index.d.ts +29 -0
  287. package/dist/types/components/dynamic-value-input/styles.d.ts +8 -0
  288. package/dist/types/components/index.d.ts +30 -0
  289. package/dist/types/components/inputs-values/index.d.ts +7 -0
  290. package/dist/types/components/inputs-values/styles.d.ts +6 -0
  291. package/dist/types/components/inputs-values/types.d.ts +19 -0
  292. package/dist/types/components/inputs-values-tree/hooks/use-child-list.d.ts +19 -0
  293. package/dist/types/components/inputs-values-tree/index.d.ts +7 -0
  294. package/dist/types/components/inputs-values-tree/row.d.ts +15 -0
  295. package/dist/types/components/inputs-values-tree/styles.d.ts +23 -0
  296. package/dist/types/components/inputs-values-tree/types.d.ts +18 -0
  297. package/dist/types/components/json-editor-with-variables/editor.d.ts +9 -0
  298. package/dist/types/components/json-editor-with-variables/index.d.ts +6 -0
  299. package/dist/types/components/json-schema-editor/default-value.d.ts +17 -0
  300. package/dist/types/components/json-schema-editor/hooks.d.ts +12 -0
  301. package/dist/types/components/json-schema-editor/index.d.ts +14 -0
  302. package/dist/types/components/json-schema-editor/styles.d.ts +30 -0
  303. package/dist/types/components/json-schema-editor/types.d.ts +20 -0
  304. package/dist/types/components/prompt-editor/editor.d.ts +15 -0
  305. package/dist/types/components/prompt-editor/extensions/jinja.d.ts +6 -0
  306. package/dist/types/components/prompt-editor/extensions/language-support.d.ts +6 -0
  307. package/dist/types/components/prompt-editor/extensions/markdown.d.ts +6 -0
  308. package/dist/types/components/prompt-editor/index.d.ts +6 -0
  309. package/dist/types/components/prompt-editor/styles.d.ts +7 -0
  310. package/dist/types/components/prompt-editor/types.d.ts +16 -0
  311. package/dist/types/components/prompt-editor-with-inputs/editor.d.ts +10 -0
  312. package/dist/types/components/prompt-editor-with-inputs/index.d.ts +6 -0
  313. package/dist/types/components/prompt-editor-with-variables/editor.d.ts +9 -0
  314. package/dist/types/components/prompt-editor-with-variables/index.d.ts +6 -0
  315. package/dist/types/components/type-selector/index.d.ts +25 -0
  316. package/dist/types/components/variable-selector/context.d.ts +16 -0
  317. package/dist/types/components/variable-selector/index.d.ts +31 -0
  318. package/dist/types/components/variable-selector/styles.d.ts +14 -0
  319. package/dist/types/components/variable-selector/use-variable-tree.d.ts +18 -0
  320. package/dist/types/effects/auto-rename-ref/index.d.ts +17 -0
  321. package/dist/types/effects/index.d.ts +11 -0
  322. package/dist/types/effects/listen-ref-schema-change/index.d.ts +22 -0
  323. package/dist/types/effects/listen-ref-value-change/index.d.ts +22 -0
  324. package/dist/types/effects/provide-batch-input/index.d.ts +6 -0
  325. package/dist/types/effects/provide-json-schema-outputs/index.d.ts +6 -0
  326. package/dist/types/effects/sync-variable-title/index.d.ts +6 -0
  327. package/dist/types/effects/validate-when-variable-sync/index.d.ts +8 -0
  328. package/dist/types/form-plugins/batch-outputs-plugin/index.d.ts +12 -0
  329. package/dist/types/form-plugins/index.d.ts +7 -0
  330. package/dist/types/form-plugins/infer-assign-plugin/index.d.ts +10 -0
  331. package/dist/types/form-plugins/infer-inputs-plugin/index.d.ts +11 -0
  332. package/dist/types/hooks/index.d.ts +5 -0
  333. package/dist/types/hooks/use-object-list/index.d.ts +22 -0
  334. package/dist/types/index.d.ts +11 -0
  335. package/dist/types/plugins/disable-declaration-plugin/create-disable-declaration-plugin.d.ts +5 -0
  336. package/dist/types/plugins/disable-declaration-plugin/index.d.ts +5 -0
  337. package/dist/types/plugins/index.d.ts +6 -0
  338. package/dist/types/plugins/json-schema-preset/create-type-preset-plugin.d.ts +9 -0
  339. package/dist/types/plugins/json-schema-preset/index.d.ts +13 -0
  340. package/dist/types/plugins/json-schema-preset/manager.d.ts +17 -0
  341. package/dist/types/plugins/json-schema-preset/type-definition/array.d.ts +6 -0
  342. package/dist/types/plugins/json-schema-preset/type-definition/boolean.d.ts +6 -0
  343. package/dist/types/plugins/json-schema-preset/type-definition/date-time.d.ts +6 -0
  344. package/dist/types/plugins/json-schema-preset/type-definition/index.d.ts +5 -0
  345. package/dist/types/plugins/json-schema-preset/type-definition/integer.d.ts +6 -0
  346. package/dist/types/plugins/json-schema-preset/type-definition/number.d.ts +6 -0
  347. package/dist/types/plugins/json-schema-preset/type-definition/object.d.ts +6 -0
  348. package/dist/types/plugins/json-schema-preset/type-definition/string.d.ts +6 -0
  349. package/dist/types/shared/flow-value/index.d.ts +6 -0
  350. package/dist/types/shared/flow-value/schema.d.ts +107 -0
  351. package/dist/types/shared/flow-value/types.d.ts +32 -0
  352. package/dist/types/shared/flow-value/utils.d.ts +65 -0
  353. package/dist/types/shared/format-legacy-refs/index.d.ts +84 -0
  354. package/dist/types/shared/index.d.ts +9 -0
  355. package/dist/types/shared/inject-material/index.d.ts +48 -0
  356. package/dist/types/shared/lazy-suspense/index.d.ts +7 -0
  357. package/dist/types/shared/polyfill-create-root/index.d.ts +10 -0
  358. package/dist/types/validate/index.d.ts +5 -0
  359. package/dist/types/validate/validate-flow-value/index.d.ts +19 -0
  360. package/package.json +20 -21
  361. package/src/components/assign-row/index.tsx +3 -3
  362. package/src/components/assign-row/types.ts +1 -1
  363. package/src/components/batch-outputs/types.ts +1 -1
  364. package/src/components/blur-input/index.tsx +9 -1
  365. package/src/components/code-editor/editor.tsx +10 -9
  366. package/src/components/code-editor/init-worker.ts +27 -0
  367. package/src/components/code-editor/language-features.ts +6 -27
  368. package/src/components/code-editor/theme/dark.ts +1 -1
  369. package/src/components/code-editor/theme/index.ts +1 -1
  370. package/src/components/code-editor/theme/light.ts +1 -1
  371. package/src/components/condition-row/hooks/useRule.ts +1 -1
  372. package/src/components/condition-row/types.ts +1 -1
  373. package/src/components/constant-input/index.tsx +1 -1
  374. package/src/components/{prompt-editor-with-inputs/inputs-picker.tsx → coze-editor-extensions/extensions/inputs-tree.tsx} +95 -5
  375. package/src/components/{prompt-editor-with-variables → coze-editor-extensions}/extensions/variable-tag.tsx +1 -1
  376. package/src/components/{prompt-editor-with-variables → coze-editor-extensions}/extensions/variable-tree.tsx +12 -6
  377. package/src/components/coze-editor-extensions/index.tsx +33 -0
  378. package/src/components/db-condition-row/types.ts +1 -1
  379. package/src/components/display-flow-value/index.tsx +1 -1
  380. package/src/components/dynamic-value-input/hooks.ts +1 -1
  381. package/src/components/dynamic-value-input/index.tsx +1 -1
  382. package/src/components/index.ts +55 -25
  383. package/src/components/inputs-values/index.tsx +1 -1
  384. package/src/components/inputs-values/types.ts +1 -1
  385. package/src/components/inputs-values-tree/row.tsx +1 -1
  386. package/src/components/json-editor-with-variables/editor.tsx +6 -6
  387. package/src/components/prompt-editor/editor.tsx +2 -2
  388. package/src/components/prompt-editor/extensions/jinja.tsx +2 -2
  389. package/src/components/prompt-editor/extensions/language-support.tsx +2 -2
  390. package/src/components/prompt-editor/extensions/markdown.tsx +2 -2
  391. package/src/components/prompt-editor/types.tsx +1 -1
  392. package/src/components/prompt-editor-with-inputs/editor.tsx +2 -3
  393. package/src/components/prompt-editor-with-variables/editor.tsx +3 -5
  394. package/src/components/variable-selector/index.tsx +2 -0
  395. package/src/effects/auto-rename-ref/index.ts +1 -1
  396. package/src/effects/index.ts +7 -7
  397. package/src/effects/listen-ref-schema-change/index.ts +1 -1
  398. package/src/effects/listen-ref-value-change/index.ts +1 -1
  399. package/src/effects/provide-batch-input/index.ts +1 -1
  400. package/src/form-plugins/batch-outputs-plugin/index.ts +1 -1
  401. package/src/form-plugins/index.ts +3 -3
  402. package/src/form-plugins/infer-assign-plugin/index.ts +1 -1
  403. package/src/hooks/index.ts +6 -0
  404. package/src/index.ts +101 -8
  405. package/src/plugins/index.ts +11 -2
  406. package/src/plugins/json-schema-preset/index.tsx +4 -4
  407. package/src/shared/flow-value/index.ts +11 -1
  408. package/src/shared/flow-value/utils.ts +1 -2
  409. package/src/shared/index.ts +26 -5
  410. package/src/shared/inject-material/index.tsx +10 -6
  411. package/src/validate/index.ts +6 -0
  412. package/src/validate/validate-flow-value/index.tsx +1 -1
  413. package/bin/index.ts +0 -80
  414. package/bin/materials.ts +0 -134
  415. package/bin/project.ts +0 -95
  416. package/bin/utils/import.ts +0 -127
  417. package/bin/utils/traverse-file.ts +0 -60
  418. package/dist/esm/chunk-727SU246.js +0 -13
  419. package/dist/esm/chunk-727SU246.js.map +0 -1
  420. package/dist/esm/chunk-DEZUEMUM.js +0 -284
  421. package/dist/esm/chunk-DEZUEMUM.js.map +0 -1
  422. package/dist/esm/chunk-IHOHRV5V.js +0 -477
  423. package/dist/esm/chunk-IHOHRV5V.js.map +0 -1
  424. package/dist/esm/editor-4X7K477H.js +0 -282
  425. package/dist/esm/editor-4X7K477H.js.map +0 -1
  426. package/dist/esm/editor-6UMULJYB.js +0 -180
  427. package/dist/esm/editor-6UMULJYB.js.map +0 -1
  428. package/dist/esm/editor-E2BQTPCD.js +0 -388
  429. package/dist/esm/editor-E2BQTPCD.js.map +0 -1
  430. package/dist/esm/editor-OXPGKPF5.js +0 -167
  431. package/dist/esm/editor-OXPGKPF5.js.map +0 -1
  432. package/dist/esm/editor-Z24WLBPO.js +0 -249
  433. package/dist/esm/editor-Z24WLBPO.js.map +0 -1
  434. package/dist/esm/index.js +0 -2668
  435. package/dist/esm/index.js.map +0 -1
  436. package/dist/index.d.mts +0 -1002
  437. package/dist/index.d.ts +0 -1002
  438. package/dist/index.js +0 -5127
  439. package/dist/index.js.map +0 -1
  440. package/src/components/assign-row/components/blur-input.tsx +0 -27
  441. package/src/components/json-editor-with-variables/extensions/variable-tag.tsx +0 -174
  442. package/src/components/json-editor-with-variables/extensions/variable-tree.tsx +0 -83
  443. package/src/components/prompt-editor-with-inputs/extensions/inputs-tree.tsx +0 -94
  444. /package/src/components/{json-editor-with-variables → coze-editor-extensions}/styles.tsx +0 -0
  445. /package/src/{typings/flow-value/index.ts → shared/flow-value/types.ts} +0 -0
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ export declare const UIContainer: import("styled-components").StyledComponent<"div", any, {
6
+ $hasError?: boolean;
7
+ }, never>;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import React from 'react';
6
+ import { IFlowTemplateValue } from '../../shared';
7
+ export type PropsType = React.PropsWithChildren<{
8
+ value?: IFlowTemplateValue;
9
+ onChange: (value?: IFlowTemplateValue) => void;
10
+ readonly?: boolean;
11
+ hasError?: boolean;
12
+ placeholder?: string;
13
+ activeLinePlaceholder?: string;
14
+ disableMarkdownHighlight?: boolean;
15
+ style?: React.CSSProperties;
16
+ }>;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import React from 'react';
6
+ import { PromptEditorPropsType } from '../prompt-editor';
7
+ export interface PromptEditorWithInputsProps extends PromptEditorPropsType {
8
+ inputsValues: any;
9
+ }
10
+ export declare function PromptEditorWithInputs({ inputsValues, ...restProps }: PromptEditorWithInputsProps): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ export declare const PromptEditorWithInputs: import("react").LazyExoticComponent<typeof import("./editor").PromptEditorWithInputs>;
6
+ export type { PromptEditorWithInputsProps } from './editor';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import React from 'react';
6
+ import { PromptEditorPropsType } from '../prompt-editor';
7
+ export interface PromptEditorWithVariablesProps extends PromptEditorPropsType {
8
+ }
9
+ export declare function PromptEditorWithVariables(props: PromptEditorWithVariablesProps): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ export declare const PromptEditorWithVariables: import("react").LazyExoticComponent<typeof import("./editor").PromptEditorWithVariables>;
6
+ export type { PromptEditorWithVariablesProps } from './editor';
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import React from 'react';
6
+ import { IJsonSchema } from '@flowgram.ai/json-schema';
7
+ export interface TypeSelectorProps {
8
+ value?: Partial<IJsonSchema>;
9
+ onChange?: (value?: Partial<IJsonSchema>) => void;
10
+ readonly?: boolean;
11
+ /**
12
+ * @deprecated use readonly instead
13
+ */
14
+ disabled?: boolean;
15
+ style?: React.CSSProperties;
16
+ }
17
+ export declare const getTypeSelectValue: (value?: Partial<IJsonSchema>) => string[] | undefined;
18
+ export declare const parseTypeSelectValue: (value?: string[]) => Partial<IJsonSchema> | undefined;
19
+ export declare function TypeSelector(props: TypeSelectorProps): React.JSX.Element;
20
+ export declare namespace TypeSelector {
21
+ var renderKey: string;
22
+ }
23
+ export declare const InjectTypeSelector: React.FC<TypeSelectorProps> & {
24
+ renderKey?: string;
25
+ };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import React from 'react';
6
+ import { BaseVariableField } from '@flowgram.ai/editor';
7
+ export declare const VariableSelectorContext: React.Context<{
8
+ skipVariable?: (variable?: BaseVariableField) => boolean;
9
+ }>;
10
+ export declare const useVariableSelectorContext: () => {
11
+ skipVariable?: (variable?: BaseVariableField) => boolean;
12
+ };
13
+ export declare const VariableSelectorProvider: ({ children, skipVariable, }: {
14
+ skipVariable?: (variable?: BaseVariableField) => boolean;
15
+ children: React.ReactNode;
16
+ }) => React.JSX.Element;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import React from 'react';
6
+ import { IJsonSchema } from '@flowgram.ai/json-schema';
7
+ import { TriggerRenderProps } from '@douyinfe/semi-ui/lib/es/treeSelect';
8
+ import { useVariableTree } from './use-variable-tree';
9
+ export interface VariableSelectorProps {
10
+ value?: string[];
11
+ config?: {
12
+ placeholder?: string;
13
+ notFoundContent?: string;
14
+ };
15
+ onChange: (value?: string[]) => void;
16
+ includeSchema?: IJsonSchema | IJsonSchema[];
17
+ excludeSchema?: IJsonSchema | IJsonSchema[];
18
+ readonly?: boolean;
19
+ hasError?: boolean;
20
+ style?: React.CSSProperties;
21
+ triggerRender?: (props: TriggerRenderProps) => React.ReactNode;
22
+ }
23
+ export { useVariableTree };
24
+ export declare const VariableSelector: {
25
+ ({ value, config, onChange, style, readonly, includeSchema, excludeSchema, hasError, triggerRender, }: VariableSelectorProps): React.JSX.Element;
26
+ renderKey: string;
27
+ };
28
+ export declare const InjectVariableSelector: React.FC<VariableSelectorProps> & {
29
+ renderKey?: string;
30
+ };
31
+ export { VariableSelectorProvider } from './context';
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { Tag, TreeSelect } from '@douyinfe/semi-ui';
6
+ export declare const UIRootTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
7
+ export declare const UIVarName: import("styled-components").StyledComponent<"div", any, {
8
+ $inSelector?: boolean;
9
+ }, never>;
10
+ export declare const UITag: import("styled-components").StyledComponent<typeof Tag, any, {}, never>;
11
+ export declare const UITreeSelect: import("styled-components").StyledComponent<typeof TreeSelect, any, {
12
+ $error?: boolean;
13
+ }, never>;
14
+ export declare const UIPopoverContent: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { IJsonSchema } from '@flowgram.ai/json-schema';
6
+ import { BaseVariableField } from '@flowgram.ai/editor';
7
+ import { TreeNodeData } from '@douyinfe/semi-ui/lib/es/tree';
8
+ type VariableField = BaseVariableField<{
9
+ icon?: string | JSX.Element;
10
+ title?: string;
11
+ disabled?: boolean;
12
+ }>;
13
+ export declare function useVariableTree(params: {
14
+ includeSchema?: IJsonSchema | IJsonSchema[];
15
+ excludeSchema?: IJsonSchema | IJsonSchema[];
16
+ skipVariable?: (variable: VariableField) => boolean;
17
+ }): TreeNodeData[];
18
+ export {};
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { EffectOptions } from '@flowgram.ai/editor';
6
+ /**
7
+ * Auto rename ref when form item's key is renamed
8
+ *
9
+ * Example:
10
+ *
11
+ * formMeta: {
12
+ * effects: {
13
+ * "inputsValues": autoRenameRefEffect,
14
+ * }
15
+ * }
16
+ */
17
+ export declare const autoRenameRefEffect: EffectOptions[];
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ export { autoRenameRefEffect } from './auto-rename-ref';
6
+ export { listenRefSchemaChange } from './listen-ref-schema-change';
7
+ export { listenRefValueChange } from './listen-ref-value-change';
8
+ export { provideBatchInputEffect } from './provide-batch-input';
9
+ export { provideJsonSchemaOutputs } from './provide-json-schema-outputs';
10
+ export { syncVariableTitle } from './sync-variable-title';
11
+ export { validateWhenVariableSync } from './validate-when-variable-sync';
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { IJsonSchema } from '@flowgram.ai/json-schema';
6
+ import { EffectFuncProps, EffectOptions } from '@flowgram.ai/editor';
7
+ import { IFlowRefValue } from '../../shared';
8
+ /**
9
+ * Example:
10
+ * const formMeta = {
11
+ * effect: {
12
+ * 'inputsValues.*': listenRefSchemaChange(({ name, schema, form }) => {
13
+ * form.setValueIn(`${name}.schema`, schema);
14
+ * })
15
+ * }
16
+ * }
17
+ * @param cb
18
+ * @returns
19
+ */
20
+ export declare const listenRefSchemaChange: (cb: (props: EffectFuncProps<IFlowRefValue> & {
21
+ schema?: IJsonSchema;
22
+ }) => void) => EffectOptions[];
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { BaseVariableField, EffectFuncProps, EffectOptions } from '@flowgram.ai/editor';
6
+ import { IFlowRefValue } from '../../shared';
7
+ /**
8
+ * Example:
9
+ * const formMeta = {
10
+ * effect: {
11
+ * 'inputsValues.*': listenRefValueChange(({ name, variable, form }) => {
12
+ * const schema = JsonSchemaUtils.astToSchema(variable?.type);
13
+ * form.setValueIn(`${name}.schema`, schema);
14
+ * })
15
+ * }
16
+ * }
17
+ * @param cb
18
+ * @returns
19
+ */
20
+ export declare const listenRefValueChange: (cb: (props: EffectFuncProps<IFlowRefValue> & {
21
+ variable?: BaseVariableField;
22
+ }) => void) => EffectOptions[];
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { EffectOptions } from '@flowgram.ai/editor';
6
+ export declare const provideBatchInputEffect: EffectOptions[];
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { EffectOptions } from '@flowgram.ai/editor';
6
+ export declare const provideJsonSchemaOutputs: EffectOptions[];
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { EffectOptions } from '@flowgram.ai/editor';
6
+ export declare const syncVariableTitle: EffectOptions[];
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { EffectOptions } from '@flowgram.ai/editor';
6
+ export declare const validateWhenVariableSync: ({ scope, }?: {
7
+ scope?: "private" | "public";
8
+ }) => EffectOptions[];
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { type EffectOptions, type FormPluginCreator } from '@flowgram.ai/editor';
6
+ export declare const provideBatchOutputsEffect: EffectOptions[];
7
+ /**
8
+ * Free Layout only right now
9
+ */
10
+ export declare const createBatchOutputsFormPlugin: FormPluginCreator<{
11
+ outputKey: string;
12
+ }>;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ export { createBatchOutputsFormPlugin, provideBatchOutputsEffect } from './batch-outputs-plugin';
6
+ export { createInferAssignPlugin } from './infer-assign-plugin';
7
+ export { createInferInputsPlugin } from './infer-inputs-plugin';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ interface InputConfig {
6
+ assignKey: string;
7
+ outputKey: string;
8
+ }
9
+ export declare const createInferAssignPlugin: import("@flowgram.ai/node").FormPluginCreator<InputConfig>;
10
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ interface InputConfig {
6
+ sourceKey: string;
7
+ targetKey: string;
8
+ scope?: 'private' | 'public';
9
+ }
10
+ export declare const createInferInputsPlugin: import("@flowgram.ai/node").FormPluginCreator<InputConfig>;
11
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ export { useObjectList } from './use-object-list';
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ interface ListItem<ValueType> {
6
+ id: string;
7
+ key?: string;
8
+ value?: ValueType;
9
+ }
10
+ type ObjectType<ValueType> = Record<string, ValueType | undefined>;
11
+ export declare function useObjectList<ValueType>({ value, onChange, sortIndexKey, }: {
12
+ value?: ObjectType<ValueType>;
13
+ onChange: (value?: ObjectType<ValueType>) => void;
14
+ sortIndexKey?: string | ((item: ValueType | undefined) => string);
15
+ }): {
16
+ list: ListItem<ValueType>[];
17
+ add: (defaultValue?: ValueType) => void;
18
+ updateKey: (itemId: string, key: string) => void;
19
+ updateValue: (itemId: string, value: ValueType) => void;
20
+ remove: (itemId: string) => void;
21
+ };
22
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ export { AssignRow, AssignRows, BatchOutputs, BatchVariableSelector, BlurInput, CodeEditor, CodeEditorMini, ConditionRow, ConstantInput, DBConditionRow, DisplayFlowValue, DisplayInputsValueAllInTag, DisplayInputsValues, DisplayOutputs, DisplaySchemaTag, DisplaySchemaTree, DynamicValueInput, InjectDynamicValueInput, InjectTypeSelector, InjectVariableSelector, InputsValues, InputsValuesTree, JsonEditorWithVariables, JsonSchemaEditor, PromptEditor, PromptEditorWithInputs, PromptEditorWithVariables, TypeSelector, VariableSelector, VariableSelectorProvider, EditorVariableTagInject, EditorVariableTree, EditorInputsTree, getTypeSelectValue, parseTypeSelectValue, type AssignValueType, type CodeEditorPropsType, type ConditionRowValueType, type ConstantInputStrategy, type DBConditionOptionType, type DBConditionRowValueType, type JsonEditorWithVariablesProps, type PromptEditorPropsType, type PromptEditorWithInputsProps, type PromptEditorWithVariablesProps, type TypeSelectorProps, type VariableSelectorProps, useVariableTree, } from './components';
6
+ export { autoRenameRefEffect, listenRefSchemaChange, listenRefValueChange, provideBatchInputEffect, provideJsonSchemaOutputs, syncVariableTitle, validateWhenVariableSync, } from './effects';
7
+ export { createBatchOutputsFormPlugin, createInferAssignPlugin, createInferInputsPlugin, provideBatchOutputsEffect, } from './form-plugins';
8
+ export { useObjectList } from './hooks';
9
+ export { JsonSchemaTypePresetProvider, JsonSchemaUtils, createDisableDeclarationPlugin, createTypePresetPlugin, type ConstantRendererProps, type IJsonSchema, type JsonSchemaBasicType, type JsonSchemaTypeRegistry, useTypeManager, } from './plugins';
10
+ export { FlowValueUtils, createInjectMaterial, formatLegacyRefOnInit, formatLegacyRefOnSubmit, formatLegacyRefToNewRef, formatNewRefToLegacyRef, isLegacyFlowRefValueSchema, isNewFlowRefValueSchema, lazySuspense, polyfillCreateRoot, type FlowValueType, type IFlowConstantRefValue, type IFlowConstantValue, type IFlowExpressionValue, type IFlowRefValue, type IFlowTemplateValue, type IFlowValue, type IFlowValueExtra, type IPolyfillRoot, unstableSetCreateRoot, withSuspense, } from './shared';
11
+ export { validateFlowValue } from './validate';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ export declare const createDisableDeclarationPlugin: import("@flowgram.ai/core").PluginCreator<void>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ export { createDisableDeclarationPlugin } from './create-disable-declaration-plugin';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ export { createDisableDeclarationPlugin } from './disable-declaration-plugin';
6
+ export { JsonSchemaTypePresetProvider, JsonSchemaUtils, createTypePresetPlugin, type ConstantRendererProps, type IJsonSchema, type JsonSchemaBasicType, type JsonSchemaTypeRegistry, useTypeManager, } from './json-schema-preset';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { JsonSchemaTypeRegistry } from './manager';
6
+ export declare const createTypePresetPlugin: import("@flowgram.ai/core").PluginCreator<{
7
+ types?: Partial<JsonSchemaTypeRegistry> & Pick<JsonSchemaTypeRegistry, "type">[];
8
+ unregisterTypes?: string[];
9
+ }>;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import React from 'react';
6
+ import { type IJsonSchema, JsonSchemaUtils, JsonSchemaTypeManager, type JsonSchemaBasicType } from '@flowgram.ai/json-schema';
7
+ import { type JsonSchemaTypeRegistry, type ConstantRendererProps } from './manager';
8
+ import { createTypePresetPlugin } from './create-type-preset-plugin';
9
+ declare const useTypeManager: () => JsonSchemaTypeManager<IJsonSchema, JsonSchemaTypeRegistry>;
10
+ declare const JsonSchemaTypePresetProvider: ({ types, children, }: React.PropsWithChildren<{
11
+ types: JsonSchemaTypeRegistry[];
12
+ }>) => React.JSX.Element;
13
+ export { createTypePresetPlugin, useTypeManager, JsonSchemaTypePresetProvider, JsonSchemaUtils, type IJsonSchema, type JsonSchemaTypeRegistry, type ConstantRendererProps, type JsonSchemaBasicType, };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { JsonSchemaTypeRegistry as OriginJsonSchemaTypeRegistry } from '@flowgram.ai/json-schema';
6
+ export interface ConstantRendererProps<Value = any> {
7
+ value?: Value;
8
+ onChange?: (value: Value) => void;
9
+ readonly?: boolean;
10
+ [key: string]: any;
11
+ }
12
+ export interface JsonSchemaTypeRegistry<Value = any> extends OriginJsonSchemaTypeRegistry {
13
+ /**
14
+ * Render Constant Input
15
+ */
16
+ ConstantRenderer: React.FC<ConstantRendererProps<Value>>;
17
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { type JsonSchemaTypeRegistry } from '../manager';
6
+ export declare const arrayRegistry: Partial<JsonSchemaTypeRegistry>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { type JsonSchemaTypeRegistry } from '../manager';
6
+ export declare const booleanRegistry: Partial<JsonSchemaTypeRegistry>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { type JsonSchemaTypeRegistry } from '../manager';
6
+ export declare const dateTimeRegistry: Partial<JsonSchemaTypeRegistry>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ export declare const jsonSchemaTypePreset: Partial<import("..").JsonSchemaTypeRegistry<any>>[];
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { type JsonSchemaTypeRegistry } from '../manager';
6
+ export declare const integerRegistry: Partial<JsonSchemaTypeRegistry>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { type JsonSchemaTypeRegistry } from '../manager';
6
+ export declare const numberRegistry: Partial<JsonSchemaTypeRegistry>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { type JsonSchemaTypeRegistry } from '../manager';
6
+ export declare const objectRegistry: Partial<JsonSchemaTypeRegistry>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { type JsonSchemaTypeRegistry } from '../manager';
6
+ export declare const stringRegistry: Partial<JsonSchemaTypeRegistry>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ export { FlowValueUtils } from './utils';
6
+ export { type IFlowValueExtra, type FlowValueType, type IFlowValue, type IFlowConstantValue, type IFlowRefValue, type IFlowExpressionValue, type IFlowTemplateValue, type IFlowConstantRefValue, } from './types';
@@ -0,0 +1,107 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import z from 'zod';
6
+ export declare const extraSchema: z.ZodOptional<z.ZodObject<{
7
+ index: z.ZodOptional<z.ZodNumber>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ index?: number | undefined;
10
+ }, {
11
+ index?: number | undefined;
12
+ }>>;
13
+ export declare const constantSchema: z.ZodObject<{
14
+ type: z.ZodLiteral<"constant">;
15
+ content: z.ZodOptional<z.ZodAny>;
16
+ schema: z.ZodOptional<z.ZodAny>;
17
+ extra: z.ZodOptional<z.ZodObject<{
18
+ index: z.ZodOptional<z.ZodNumber>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ index?: number | undefined;
21
+ }, {
22
+ index?: number | undefined;
23
+ }>>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ type: "constant";
26
+ content?: any;
27
+ schema?: any;
28
+ extra?: {
29
+ index?: number | undefined;
30
+ } | undefined;
31
+ }, {
32
+ type: "constant";
33
+ content?: any;
34
+ schema?: any;
35
+ extra?: {
36
+ index?: number | undefined;
37
+ } | undefined;
38
+ }>;
39
+ export declare const refSchema: z.ZodObject<{
40
+ type: z.ZodLiteral<"ref">;
41
+ content: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
42
+ extra: z.ZodOptional<z.ZodObject<{
43
+ index: z.ZodOptional<z.ZodNumber>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ index?: number | undefined;
46
+ }, {
47
+ index?: number | undefined;
48
+ }>>;
49
+ }, "strip", z.ZodTypeAny, {
50
+ type: "ref";
51
+ content?: string[] | undefined;
52
+ extra?: {
53
+ index?: number | undefined;
54
+ } | undefined;
55
+ }, {
56
+ type: "ref";
57
+ content?: string[] | undefined;
58
+ extra?: {
59
+ index?: number | undefined;
60
+ } | undefined;
61
+ }>;
62
+ export declare const expressionSchema: z.ZodObject<{
63
+ type: z.ZodLiteral<"expression">;
64
+ content: z.ZodOptional<z.ZodString>;
65
+ extra: z.ZodOptional<z.ZodObject<{
66
+ index: z.ZodOptional<z.ZodNumber>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ index?: number | undefined;
69
+ }, {
70
+ index?: number | undefined;
71
+ }>>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ type: "expression";
74
+ content?: string | undefined;
75
+ extra?: {
76
+ index?: number | undefined;
77
+ } | undefined;
78
+ }, {
79
+ type: "expression";
80
+ content?: string | undefined;
81
+ extra?: {
82
+ index?: number | undefined;
83
+ } | undefined;
84
+ }>;
85
+ export declare const templateSchema: z.ZodObject<{
86
+ type: z.ZodLiteral<"template">;
87
+ content: z.ZodOptional<z.ZodString>;
88
+ extra: z.ZodOptional<z.ZodObject<{
89
+ index: z.ZodOptional<z.ZodNumber>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ index?: number | undefined;
92
+ }, {
93
+ index?: number | undefined;
94
+ }>>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ type: "template";
97
+ content?: string | undefined;
98
+ extra?: {
99
+ index?: number | undefined;
100
+ } | undefined;
101
+ }, {
102
+ type: "template";
103
+ content?: string | undefined;
104
+ extra?: {
105
+ index?: number | undefined;
106
+ } | undefined;
107
+ }>;