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

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 (511) hide show
  1. package/bin/run.sh +7 -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-all.js +52 -0
  11. package/dist/cjs/components/code-editor/editor-json.js +71 -0
  12. package/dist/cjs/components/code-editor/editor-python.js +63 -0
  13. package/dist/cjs/components/code-editor/editor-shell.js +63 -0
  14. package/dist/cjs/components/code-editor/editor-sql.js +71 -0
  15. package/dist/cjs/components/code-editor/editor-ts.js +80 -0
  16. package/dist/cjs/components/code-editor/editor.js +105 -0
  17. package/dist/cjs/components/code-editor/factory.js +96 -0
  18. package/dist/cjs/components/code-editor/index.js +60 -0
  19. package/dist/cjs/components/code-editor/theme/dark.js +258 -0
  20. package/dist/cjs/components/code-editor/theme/index.js +11 -0
  21. package/dist/cjs/components/code-editor/theme/light.js +244 -0
  22. package/dist/cjs/components/code-editor/utils.js +43 -0
  23. package/dist/cjs/components/code-editor-mini/index.js +66 -0
  24. package/dist/cjs/components/condition-context/context.js +59 -0
  25. package/dist/cjs/components/condition-context/hooks/use-condition.js +97 -0
  26. package/dist/cjs/components/condition-context/index.js +47 -0
  27. package/dist/cjs/components/condition-context/op.js +117 -0
  28. package/dist/cjs/components/condition-context/types.js +18 -0
  29. package/dist/cjs/components/condition-row/index.js +140 -0
  30. package/dist/cjs/components/condition-row/styles.js +77 -0
  31. package/dist/cjs/components/condition-row/types.js +18 -0
  32. package/dist/cjs/components/constant-input/index.js +80 -0
  33. package/dist/cjs/components/constant-input/types.js +18 -0
  34. package/dist/cjs/components/coze-editor-extensions/extensions/inputs-tree.js +172 -0
  35. package/dist/cjs/components/coze-editor-extensions/extensions/variable-tag.js +152 -0
  36. package/dist/cjs/components/coze-editor-extensions/extensions/variable-tree.js +109 -0
  37. package/dist/cjs/components/coze-editor-extensions/index.js +86 -0
  38. package/dist/cjs/components/coze-editor-extensions/styles.js +89 -0
  39. package/dist/cjs/components/db-condition-row/index.js +140 -0
  40. package/dist/cjs/components/db-condition-row/styles.js +94 -0
  41. package/dist/cjs/components/db-condition-row/types.js +18 -0
  42. package/dist/cjs/components/display-flow-value/index.js +64 -0
  43. package/dist/cjs/components/display-inputs-values/index.js +76 -0
  44. package/dist/cjs/components/display-inputs-values/styles.js +51 -0
  45. package/dist/cjs/components/display-outputs/index.js +72 -0
  46. package/dist/cjs/components/display-outputs/styles.js +51 -0
  47. package/dist/cjs/components/display-schema-tag/index.js +77 -0
  48. package/dist/cjs/components/display-schema-tag/styles.js +71 -0
  49. package/dist/cjs/components/display-schema-tree/index.js +93 -0
  50. package/dist/cjs/components/display-schema-tree/styles.js +135 -0
  51. package/dist/cjs/components/dynamic-value-input/hooks.js +99 -0
  52. package/dist/cjs/components/dynamic-value-input/index.js +174 -0
  53. package/dist/cjs/components/dynamic-value-input/styles.js +107 -0
  54. package/dist/cjs/components/index.js +201 -0
  55. package/dist/cjs/components/inputs-values/index.js +112 -0
  56. package/dist/cjs/components/inputs-values/styles.js +60 -0
  57. package/dist/cjs/components/inputs-values/types.js +18 -0
  58. package/dist/cjs/components/inputs-values-tree/hooks/use-child-list.js +77 -0
  59. package/dist/cjs/components/inputs-values-tree/index.js +87 -0
  60. package/dist/cjs/components/inputs-values-tree/row.js +183 -0
  61. package/dist/cjs/components/inputs-values-tree/styles.js +177 -0
  62. package/dist/cjs/components/inputs-values-tree/types.js +18 -0
  63. package/dist/cjs/components/json-editor-with-variables/editor.js +84 -0
  64. package/dist/cjs/components/json-editor-with-variables/index.js +57 -0
  65. package/dist/cjs/components/json-schema-editor/default-value.js +54 -0
  66. package/dist/cjs/components/json-schema-editor/hooks.js +130 -0
  67. package/dist/cjs/components/json-schema-editor/index.js +246 -0
  68. package/dist/cjs/components/json-schema-editor/styles.js +231 -0
  69. package/dist/cjs/components/json-schema-editor/types.js +18 -0
  70. package/dist/cjs/components/prompt-editor/editor.js +99 -0
  71. package/dist/cjs/components/prompt-editor/extensions/jinja.js +73 -0
  72. package/dist/cjs/components/prompt-editor/extensions/language-support.js +48 -0
  73. package/dist/cjs/components/prompt-editor/extensions/markdown.js +81 -0
  74. package/dist/cjs/components/prompt-editor/index.js +57 -0
  75. package/dist/cjs/components/prompt-editor/styles.js +55 -0
  76. package/dist/cjs/components/prompt-editor/types.js +7 -0
  77. package/dist/cjs/components/prompt-editor-with-inputs/editor.js +47 -0
  78. package/dist/cjs/components/prompt-editor-with-inputs/index.js +57 -0
  79. package/dist/cjs/components/prompt-editor-with-variables/editor.js +48 -0
  80. package/dist/cjs/components/prompt-editor-with-variables/index.js +57 -0
  81. package/dist/cjs/components/sql-editor-with-variables/editor.js +53 -0
  82. package/dist/cjs/components/sql-editor-with-variables/index.js +57 -0
  83. package/dist/cjs/components/type-selector/index.js +139 -0
  84. package/dist/cjs/components/variable-selector/context.js +56 -0
  85. package/dist/cjs/components/variable-selector/index.js +143 -0
  86. package/dist/cjs/components/variable-selector/styles.js +114 -0
  87. package/dist/cjs/components/variable-selector/use-variable-tree.js +99 -0
  88. package/dist/cjs/effects/auto-rename-ref/index.js +98 -0
  89. package/dist/cjs/effects/index.js +60 -0
  90. package/dist/cjs/effects/listen-ref-schema-change/index.js +57 -0
  91. package/dist/cjs/effects/listen-ref-value-change/index.js +54 -0
  92. package/dist/cjs/effects/provide-batch-input/index.js +64 -0
  93. package/dist/cjs/effects/provide-json-schema-outputs/index.js +49 -0
  94. package/dist/cjs/effects/sync-variable-title/index.js +52 -0
  95. package/dist/cjs/effects/validate-when-variable-sync/index.js +49 -0
  96. package/dist/cjs/form-plugins/batch-outputs-plugin/index.js +104 -0
  97. package/dist/cjs/form-plugins/index.js +47 -0
  98. package/dist/cjs/form-plugins/infer-assign-plugin/index.js +72 -0
  99. package/dist/cjs/form-plugins/infer-inputs-plugin/index.js +74 -0
  100. package/dist/cjs/hooks/index.js +36 -0
  101. package/dist/cjs/hooks/use-object-list/index.js +136 -0
  102. package/dist/cjs/index.js +270 -0
  103. package/dist/cjs/plugins/disable-declaration-plugin/create-disable-declaration-plugin.js +51 -0
  104. package/dist/cjs/plugins/disable-declaration-plugin/index.js +36 -0
  105. package/dist/cjs/plugins/index.js +49 -0
  106. package/dist/cjs/plugins/json-schema-preset/create-type-preset-plugin.js +50 -0
  107. package/dist/cjs/plugins/json-schema-preset/index.js +47 -0
  108. package/dist/cjs/plugins/json-schema-preset/react.js +51 -0
  109. package/dist/cjs/plugins/json-schema-preset/type-definition/array.js +78 -0
  110. package/dist/cjs/plugins/json-schema-preset/type-definition/boolean.js +86 -0
  111. package/dist/cjs/plugins/json-schema-preset/type-definition/date-time.js +81 -0
  112. package/dist/cjs/plugins/json-schema-preset/type-definition/index.js +61 -0
  113. package/dist/cjs/plugins/json-schema-preset/type-definition/integer.js +82 -0
  114. package/dist/cjs/plugins/json-schema-preset/type-definition/map.js +54 -0
  115. package/dist/cjs/plugins/json-schema-preset/type-definition/number.js +82 -0
  116. package/dist/cjs/plugins/json-schema-preset/type-definition/object.js +54 -0
  117. package/dist/cjs/plugins/json-schema-preset/type-definition/string.js +83 -0
  118. package/dist/cjs/plugins/json-schema-preset/types.js +18 -0
  119. package/dist/cjs/shared/flow-value/index.js +36 -0
  120. package/dist/cjs/shared/flow-value/schema.js +82 -0
  121. package/dist/cjs/shared/flow-value/types.js +18 -0
  122. package/dist/cjs/shared/flow-value/utils.js +156 -0
  123. package/dist/cjs/shared/format-legacy-refs/index.js +99 -0
  124. package/dist/cjs/shared/index.js +73 -0
  125. package/dist/cjs/shared/inject-material/index.js +66 -0
  126. package/dist/cjs/shared/lazy-suspense/index.js +58 -0
  127. package/dist/cjs/shared/polyfill-create-root/index.js +53 -0
  128. package/dist/cjs/validate/index.js +36 -0
  129. package/dist/cjs/validate/validate-flow-value/index.js +63 -0
  130. package/dist/esm/components/assign-row/index.mjs +78 -0
  131. package/dist/esm/components/assign-row/types.mjs +0 -0
  132. package/dist/esm/components/assign-rows/index.mjs +51 -0
  133. package/dist/esm/components/batch-outputs/index.mjs +57 -0
  134. package/dist/esm/components/batch-outputs/styles.mjs +13 -0
  135. package/dist/esm/components/batch-outputs/types.mjs +0 -0
  136. package/dist/esm/components/batch-variable-selector/index.mjs +19 -0
  137. package/dist/esm/components/blur-input/index.mjs +20 -0
  138. package/dist/esm/components/code-editor/editor-all.mjs +18 -0
  139. package/dist/esm/components/code-editor/editor-json.mjs +16 -0
  140. package/dist/esm/components/code-editor/editor-python.mjs +8 -0
  141. package/dist/esm/components/code-editor/editor-shell.mjs +8 -0
  142. package/dist/esm/components/code-editor/editor-sql.mjs +16 -0
  143. package/dist/esm/components/code-editor/editor-ts.mjs +22 -0
  144. package/dist/esm/components/code-editor/editor.mjs +60 -0
  145. package/dist/esm/components/code-editor/factory.mjs +36 -0
  146. package/dist/esm/components/code-editor/index.mjs +8 -0
  147. package/dist/esm/components/code-editor/theme/dark.mjs +221 -0
  148. package/dist/esm/components/code-editor/theme/index.mjs +5 -0
  149. package/dist/esm/components/code-editor/theme/light.mjs +207 -0
  150. package/dist/esm/components/code-editor/utils.mjs +9 -0
  151. package/dist/esm/components/code-editor-mini/index.mjs +22 -0
  152. package/dist/esm/components/condition-context/context.mjs +19 -0
  153. package/dist/esm/components/condition-context/hooks/use-condition.mjs +63 -0
  154. package/dist/esm/components/condition-context/index.mjs +4 -0
  155. package/dist/esm/components/condition-context/op.mjs +80 -0
  156. package/dist/esm/components/condition-context/types.mjs +0 -0
  157. package/dist/esm/components/condition-row/index.mjs +106 -0
  158. package/dist/esm/components/condition-row/styles.mjs +21 -0
  159. package/dist/esm/components/condition-row/types.mjs +0 -0
  160. package/dist/esm/components/constant-input/index.mjs +36 -0
  161. package/dist/esm/components/constant-input/types.mjs +0 -0
  162. package/dist/esm/components/coze-editor-extensions/extensions/inputs-tree.mjs +135 -0
  163. package/dist/esm/components/coze-editor-extensions/extensions/variable-tag.mjs +118 -0
  164. package/dist/esm/components/coze-editor-extensions/extensions/variable-tree.mjs +75 -0
  165. package/dist/esm/components/coze-editor-extensions/index.mjs +18 -0
  166. package/{src/components/prompt-editor-with-variables/styles.tsx → dist/esm/components/coze-editor-extensions/styles.mjs} +7 -15
  167. package/dist/esm/components/db-condition-row/index.mjs +106 -0
  168. package/dist/esm/components/db-condition-row/styles.mjs +32 -0
  169. package/dist/esm/components/db-condition-row/types.mjs +0 -0
  170. package/dist/esm/components/display-flow-value/index.mjs +30 -0
  171. package/dist/esm/components/display-inputs-values/index.mjs +39 -0
  172. package/dist/esm/components/display-inputs-values/styles.mjs +7 -0
  173. package/dist/esm/components/display-outputs/index.mjs +38 -0
  174. package/dist/esm/components/display-outputs/styles.mjs +7 -0
  175. package/dist/esm/components/display-schema-tag/index.mjs +33 -0
  176. package/dist/esm/components/display-schema-tag/styles.mjs +21 -0
  177. package/dist/esm/components/display-schema-tree/index.mjs +49 -0
  178. package/dist/esm/components/display-schema-tree/styles.mjs +79 -0
  179. package/dist/esm/components/dynamic-value-input/hooks.mjs +59 -0
  180. package/dist/esm/components/dynamic-value-input/index.mjs +137 -0
  181. package/dist/esm/components/dynamic-value-input/styles.mjs +54 -0
  182. package/dist/esm/components/index.mjs +29 -0
  183. package/dist/esm/components/inputs-values/index.mjs +78 -0
  184. package/dist/esm/components/inputs-values/styles.mjs +13 -0
  185. package/dist/esm/components/inputs-values/types.mjs +0 -0
  186. package/dist/esm/components/inputs-values-tree/hooks/use-child-list.mjs +43 -0
  187. package/dist/esm/components/inputs-values-tree/index.mjs +53 -0
  188. package/dist/esm/components/inputs-values-tree/row.mjs +149 -0
  189. package/dist/esm/components/inputs-values-tree/styles.mjs +105 -0
  190. package/dist/esm/components/inputs-values-tree/types.mjs +0 -0
  191. package/dist/esm/components/json-editor-with-variables/editor.mjs +50 -0
  192. package/dist/esm/components/json-editor-with-variables/index.mjs +5 -0
  193. package/dist/esm/components/json-schema-editor/default-value.mjs +20 -0
  194. package/dist/esm/components/json-schema-editor/hooks.mjs +96 -0
  195. package/dist/esm/components/json-schema-editor/index.mjs +212 -0
  196. package/dist/esm/components/json-schema-editor/styles.mjs +138 -0
  197. package/dist/esm/components/json-schema-editor/types.mjs +0 -0
  198. package/dist/esm/components/prompt-editor/editor.mjs +52 -0
  199. package/dist/esm/components/prompt-editor/extensions/jinja.mjs +39 -0
  200. package/dist/esm/components/prompt-editor/extensions/language-support.mjs +14 -0
  201. package/dist/esm/components/prompt-editor/extensions/markdown.mjs +47 -0
  202. package/dist/esm/components/prompt-editor/index.mjs +5 -0
  203. package/dist/esm/components/prompt-editor/styles.mjs +11 -0
  204. package/dist/esm/components/prompt-editor/types.mjs +1 -0
  205. package/dist/esm/components/prompt-editor-with-inputs/editor.mjs +13 -0
  206. package/dist/esm/components/prompt-editor-with-inputs/index.mjs +5 -0
  207. package/dist/esm/components/prompt-editor-with-variables/editor.mjs +14 -0
  208. package/dist/esm/components/prompt-editor-with-variables/index.mjs +5 -0
  209. package/dist/esm/components/sql-editor-with-variables/editor.mjs +19 -0
  210. package/dist/esm/components/sql-editor-with-variables/index.mjs +5 -0
  211. package/dist/esm/components/type-selector/index.mjs +96 -0
  212. package/dist/esm/components/variable-selector/context.mjs +16 -0
  213. package/dist/esm/components/variable-selector/index.mjs +100 -0
  214. package/dist/esm/components/variable-selector/styles.mjs +58 -0
  215. package/dist/esm/components/variable-selector/use-variable-tree.mjs +65 -0
  216. package/dist/esm/effects/auto-rename-ref/index.mjs +64 -0
  217. package/dist/esm/effects/index.mjs +8 -0
  218. package/dist/esm/effects/listen-ref-schema-change/index.mjs +23 -0
  219. package/dist/esm/effects/listen-ref-value-change/index.mjs +20 -0
  220. package/dist/esm/effects/provide-batch-input/index.mjs +30 -0
  221. package/dist/esm/effects/provide-json-schema-outputs/index.mjs +15 -0
  222. package/dist/esm/effects/sync-variable-title/index.mjs +18 -0
  223. package/dist/esm/effects/validate-when-variable-sync/index.mjs +15 -0
  224. package/dist/esm/form-plugins/batch-outputs-plugin/index.mjs +67 -0
  225. package/dist/esm/form-plugins/index.mjs +4 -0
  226. package/dist/esm/form-plugins/infer-assign-plugin/index.mjs +38 -0
  227. package/dist/esm/form-plugins/infer-inputs-plugin/index.mjs +40 -0
  228. package/dist/esm/hooks/index.mjs +2 -0
  229. package/dist/esm/hooks/use-object-list/index.mjs +102 -0
  230. package/dist/esm/index.mjs +8 -0
  231. package/dist/esm/plugins/disable-declaration-plugin/create-disable-declaration-plugin.mjs +17 -0
  232. package/dist/esm/plugins/disable-declaration-plugin/index.mjs +2 -0
  233. package/dist/esm/plugins/index.mjs +3 -0
  234. package/dist/esm/plugins/json-schema-preset/create-type-preset-plugin.mjs +16 -0
  235. package/dist/esm/plugins/json-schema-preset/index.mjs +4 -0
  236. package/dist/esm/plugins/json-schema-preset/react.mjs +14 -0
  237. package/dist/esm/plugins/json-schema-preset/type-definition/array.mjs +44 -0
  238. package/dist/esm/plugins/json-schema-preset/type-definition/boolean.mjs +52 -0
  239. package/dist/esm/plugins/json-schema-preset/type-definition/date-time.mjs +47 -0
  240. package/dist/esm/plugins/json-schema-preset/type-definition/index.mjs +24 -0
  241. package/dist/esm/plugins/json-schema-preset/type-definition/integer.mjs +48 -0
  242. package/dist/esm/plugins/json-schema-preset/type-definition/map.mjs +20 -0
  243. package/dist/esm/plugins/json-schema-preset/type-definition/number.mjs +48 -0
  244. package/dist/esm/plugins/json-schema-preset/type-definition/object.mjs +20 -0
  245. package/dist/esm/plugins/json-schema-preset/type-definition/string.mjs +49 -0
  246. package/dist/esm/plugins/json-schema-preset/types.mjs +0 -0
  247. package/dist/esm/shared/flow-value/index.mjs +2 -0
  248. package/dist/esm/shared/flow-value/schema.mjs +26 -0
  249. package/dist/esm/shared/flow-value/types.mjs +0 -0
  250. package/dist/esm/shared/flow-value/utils.mjs +122 -0
  251. package/dist/esm/shared/format-legacy-refs/index.mjs +50 -0
  252. package/dist/esm/shared/index.mjs +6 -0
  253. package/dist/esm/shared/inject-material/index.mjs +22 -0
  254. package/dist/esm/shared/lazy-suspense/index.mjs +21 -0
  255. package/dist/esm/shared/polyfill-create-root/index.mjs +16 -0
  256. package/dist/esm/validate/index.mjs +2 -0
  257. package/dist/esm/validate/validate-flow-value/index.mjs +29 -0
  258. package/dist/tsconfig.tsbuildinfo +1 -0
  259. package/dist/types/components/assign-row/index.d.ts +8 -0
  260. package/dist/types/components/assign-row/types.d.ts +20 -0
  261. package/dist/types/components/assign-rows/index.d.ts +11 -0
  262. package/dist/types/components/batch-outputs/index.d.ts +7 -0
  263. package/dist/types/components/batch-outputs/styles.d.ts +6 -0
  264. package/dist/types/components/batch-outputs/types.d.ts +18 -0
  265. package/dist/types/components/batch-variable-selector/index.d.ts +7 -0
  266. package/dist/types/components/blur-input/index.d.ts +13 -0
  267. package/dist/types/components/code-editor/editor-all.d.ts +8 -0
  268. package/dist/types/components/code-editor/editor-json.d.ts +6 -0
  269. package/dist/types/components/code-editor/editor-python.d.ts +6 -0
  270. package/dist/types/components/code-editor/editor-shell.d.ts +6 -0
  271. package/dist/types/components/code-editor/editor-sql.d.ts +6 -0
  272. package/dist/types/components/code-editor/editor-ts.d.ts +6 -0
  273. package/dist/types/components/code-editor/editor.d.ts +22 -0
  274. package/dist/types/components/code-editor/factory.d.ts +13 -0
  275. package/dist/types/components/code-editor/index.d.ts +11 -0
  276. package/dist/types/components/code-editor/theme/dark.d.ts +35 -0
  277. package/{src/typings/index.ts → dist/types/components/code-editor/theme/index.d.ts} +1 -2
  278. package/dist/types/components/code-editor/theme/light.d.ts +30 -0
  279. package/dist/types/components/code-editor/utils.d.ts +5 -0
  280. package/dist/types/components/code-editor-mini/index.d.ts +10 -0
  281. package/dist/types/components/condition-context/context.d.ts +14 -0
  282. package/dist/types/components/condition-context/hooks/use-condition.d.ts +29 -0
  283. package/dist/types/components/condition-context/index.d.ts +8 -0
  284. package/dist/types/components/condition-context/op.d.ts +22 -0
  285. package/dist/types/components/condition-context/types.d.ts +14 -0
  286. package/dist/types/components/condition-row/index.d.ts +19 -0
  287. package/dist/types/components/condition-row/styles.d.ts +9 -0
  288. package/dist/types/components/condition-row/types.d.ts +10 -0
  289. package/dist/types/components/constant-input/index.d.ts +8 -0
  290. package/dist/types/components/constant-input/types.d.ts +16 -0
  291. package/dist/types/components/coze-editor-extensions/extensions/inputs-tree.d.ts +14 -0
  292. package/{src/validate/index.tsx → dist/types/components/coze-editor-extensions/extensions/variable-tag.d.ts} +1 -2
  293. package/dist/types/components/coze-editor-extensions/extensions/variable-tree.d.ts +8 -0
  294. package/dist/types/components/coze-editor-extensions/index.d.ts +18 -0
  295. package/dist/types/components/coze-editor-extensions/styles.d.ts +9 -0
  296. package/dist/types/components/db-condition-row/index.d.ts +20 -0
  297. package/dist/types/components/db-condition-row/styles.d.ts +12 -0
  298. package/dist/types/components/db-condition-row/types.d.ts +17 -0
  299. package/dist/types/components/display-flow-value/index.d.ts +15 -0
  300. package/dist/types/components/display-inputs-values/index.d.ts +14 -0
  301. package/dist/types/components/display-inputs-values/styles.d.ts +5 -0
  302. package/dist/types/components/display-outputs/index.d.ts +14 -0
  303. package/dist/types/components/display-outputs/styles.d.ts +5 -0
  304. package/dist/types/components/display-schema-tag/index.d.ts +14 -0
  305. package/dist/types/components/display-schema-tag/styles.d.ts +8 -0
  306. package/dist/types/components/display-schema-tree/index.d.ts +16 -0
  307. package/dist/types/components/display-schema-tree/styles.d.ts +11 -0
  308. package/dist/types/components/dynamic-value-input/hooks.d.ts +28 -0
  309. package/dist/types/components/dynamic-value-input/index.d.ts +29 -0
  310. package/dist/types/components/dynamic-value-input/styles.d.ts +8 -0
  311. package/dist/types/components/index.d.ts +32 -0
  312. package/dist/types/components/inputs-values/index.d.ts +7 -0
  313. package/dist/types/components/inputs-values/styles.d.ts +6 -0
  314. package/dist/types/components/inputs-values/types.d.ts +19 -0
  315. package/dist/types/components/inputs-values-tree/hooks/use-child-list.d.ts +19 -0
  316. package/dist/types/components/inputs-values-tree/index.d.ts +7 -0
  317. package/dist/types/components/inputs-values-tree/row.d.ts +15 -0
  318. package/dist/types/components/inputs-values-tree/styles.d.ts +23 -0
  319. package/dist/types/components/inputs-values-tree/types.d.ts +18 -0
  320. package/dist/types/components/json-editor-with-variables/editor.d.ts +9 -0
  321. package/dist/types/components/json-editor-with-variables/index.d.ts +6 -0
  322. package/dist/types/components/json-schema-editor/default-value.d.ts +17 -0
  323. package/dist/types/components/json-schema-editor/hooks.d.ts +12 -0
  324. package/dist/types/components/json-schema-editor/index.d.ts +14 -0
  325. package/dist/types/components/json-schema-editor/styles.d.ts +30 -0
  326. package/dist/types/components/json-schema-editor/types.d.ts +20 -0
  327. package/dist/types/components/prompt-editor/editor.d.ts +15 -0
  328. package/dist/types/components/prompt-editor/extensions/jinja.d.ts +6 -0
  329. package/dist/types/components/prompt-editor/extensions/language-support.d.ts +6 -0
  330. package/dist/types/components/prompt-editor/extensions/markdown.d.ts +6 -0
  331. package/dist/types/components/prompt-editor/index.d.ts +6 -0
  332. package/dist/types/components/prompt-editor/styles.d.ts +7 -0
  333. package/dist/types/components/prompt-editor/types.d.ts +16 -0
  334. package/dist/types/components/prompt-editor-with-inputs/editor.d.ts +10 -0
  335. package/dist/types/components/prompt-editor-with-inputs/index.d.ts +6 -0
  336. package/dist/types/components/prompt-editor-with-variables/editor.d.ts +9 -0
  337. package/dist/types/components/prompt-editor-with-variables/index.d.ts +6 -0
  338. package/dist/types/components/sql-editor-with-variables/editor.d.ts +9 -0
  339. package/dist/types/components/sql-editor-with-variables/index.d.ts +6 -0
  340. package/dist/types/components/type-selector/index.d.ts +25 -0
  341. package/dist/types/components/variable-selector/context.d.ts +16 -0
  342. package/dist/types/components/variable-selector/index.d.ts +31 -0
  343. package/dist/types/components/variable-selector/styles.d.ts +14 -0
  344. package/dist/types/components/variable-selector/use-variable-tree.d.ts +18 -0
  345. package/dist/types/effects/auto-rename-ref/index.d.ts +17 -0
  346. package/dist/types/effects/index.d.ts +11 -0
  347. package/dist/types/effects/listen-ref-schema-change/index.d.ts +22 -0
  348. package/dist/types/effects/listen-ref-value-change/index.d.ts +22 -0
  349. package/dist/types/effects/provide-batch-input/index.d.ts +6 -0
  350. package/dist/types/effects/provide-json-schema-outputs/index.d.ts +6 -0
  351. package/dist/types/effects/sync-variable-title/index.d.ts +6 -0
  352. package/dist/types/effects/validate-when-variable-sync/index.d.ts +8 -0
  353. package/dist/types/form-plugins/batch-outputs-plugin/index.d.ts +16 -0
  354. package/dist/types/form-plugins/index.d.ts +7 -0
  355. package/dist/types/form-plugins/infer-assign-plugin/index.d.ts +10 -0
  356. package/dist/types/form-plugins/infer-inputs-plugin/index.d.ts +15 -0
  357. package/dist/types/hooks/index.d.ts +5 -0
  358. package/dist/types/hooks/use-object-list/index.d.ts +22 -0
  359. package/dist/types/index.d.ts +11 -0
  360. package/dist/types/plugins/disable-declaration-plugin/create-disable-declaration-plugin.d.ts +5 -0
  361. package/dist/types/plugins/disable-declaration-plugin/index.d.ts +5 -0
  362. package/dist/types/plugins/index.d.ts +6 -0
  363. package/dist/types/plugins/json-schema-preset/create-type-preset-plugin.d.ts +9 -0
  364. package/dist/types/plugins/json-schema-preset/index.d.ts +9 -0
  365. package/dist/types/plugins/json-schema-preset/react.d.ts +11 -0
  366. package/dist/types/plugins/json-schema-preset/type-definition/array.d.ts +6 -0
  367. package/dist/types/plugins/json-schema-preset/type-definition/boolean.d.ts +6 -0
  368. package/dist/types/plugins/json-schema-preset/type-definition/date-time.d.ts +6 -0
  369. package/dist/types/plugins/json-schema-preset/type-definition/index.d.ts +7 -0
  370. package/dist/types/plugins/json-schema-preset/type-definition/integer.d.ts +6 -0
  371. package/dist/types/plugins/json-schema-preset/type-definition/map.d.ts +6 -0
  372. package/dist/types/plugins/json-schema-preset/type-definition/number.d.ts +6 -0
  373. package/dist/types/plugins/json-schema-preset/type-definition/object.d.ts +6 -0
  374. package/dist/types/plugins/json-schema-preset/type-definition/string.d.ts +6 -0
  375. package/dist/types/plugins/json-schema-preset/types.d.ts +22 -0
  376. package/dist/types/shared/flow-value/index.d.ts +6 -0
  377. package/dist/types/shared/flow-value/schema.d.ts +107 -0
  378. package/dist/types/shared/flow-value/types.d.ts +32 -0
  379. package/dist/types/shared/flow-value/utils.d.ts +67 -0
  380. package/dist/types/shared/format-legacy-refs/index.d.ts +84 -0
  381. package/dist/types/shared/index.d.ts +9 -0
  382. package/dist/types/shared/inject-material/index.d.ts +48 -0
  383. package/dist/types/shared/lazy-suspense/index.d.ts +7 -0
  384. package/dist/types/shared/polyfill-create-root/index.d.ts +10 -0
  385. package/dist/types/validate/index.d.ts +5 -0
  386. package/dist/types/validate/validate-flow-value/index.d.ts +19 -0
  387. package/package.json +63 -26
  388. package/src/components/assign-row/index.tsx +3 -3
  389. package/src/components/assign-row/types.ts +1 -1
  390. package/src/components/batch-outputs/types.ts +1 -1
  391. package/src/components/blur-input/index.tsx +9 -1
  392. package/src/components/code-editor/editor-all.tsx +30 -0
  393. package/src/components/code-editor/editor-json.tsx +25 -0
  394. package/src/components/code-editor/editor-python.tsx +18 -0
  395. package/src/components/code-editor/editor-shell.tsx +18 -0
  396. package/src/components/code-editor/editor-sql.tsx +24 -0
  397. package/src/components/code-editor/editor-ts.tsx +31 -0
  398. package/src/components/code-editor/editor.tsx +47 -30
  399. package/src/components/code-editor/factory.tsx +61 -0
  400. package/src/components/code-editor/index.tsx +7 -7
  401. package/src/components/code-editor/theme/dark.ts +63 -78
  402. package/src/components/code-editor/theme/index.ts +1 -1
  403. package/src/components/code-editor/theme/light.ts +61 -92
  404. package/src/components/code-editor/utils.ts +4 -0
  405. package/src/components/code-editor-mini/index.tsx +3 -0
  406. package/src/components/condition-context/context.tsx +28 -0
  407. package/src/components/condition-context/hooks/use-condition.tsx +99 -0
  408. package/src/components/condition-context/index.tsx +14 -0
  409. package/src/components/condition-context/op.ts +86 -0
  410. package/src/components/condition-context/types.ts +22 -0
  411. package/src/components/condition-row/index.tsx +44 -22
  412. package/src/components/condition-row/types.ts +1 -31
  413. package/src/components/constant-input/index.tsx +1 -1
  414. package/src/components/{prompt-editor-with-inputs/inputs-picker.tsx → coze-editor-extensions/extensions/inputs-tree.tsx} +95 -5
  415. package/src/components/{prompt-editor-with-variables → coze-editor-extensions}/extensions/variable-tag.tsx +7 -4
  416. package/src/components/{prompt-editor-with-variables → coze-editor-extensions}/extensions/variable-tree.tsx +15 -6
  417. package/src/components/coze-editor-extensions/index.tsx +33 -0
  418. package/src/components/db-condition-row/index.tsx +76 -24
  419. package/src/components/db-condition-row/types.ts +1 -14
  420. package/src/components/display-flow-value/index.tsx +1 -1
  421. package/src/components/display-schema-tree/index.tsx +6 -4
  422. package/src/components/dynamic-value-input/hooks.ts +1 -1
  423. package/src/components/dynamic-value-input/index.tsx +1 -1
  424. package/src/components/index.ts +78 -25
  425. package/src/components/inputs-values/index.tsx +1 -1
  426. package/src/components/inputs-values/types.ts +1 -1
  427. package/src/components/inputs-values-tree/row.tsx +1 -1
  428. package/src/components/json-editor-with-variables/editor.tsx +9 -10
  429. package/src/components/prompt-editor/editor.tsx +2 -2
  430. package/src/components/prompt-editor/extensions/jinja.tsx +2 -2
  431. package/src/components/prompt-editor/extensions/language-support.tsx +2 -2
  432. package/src/components/prompt-editor/extensions/markdown.tsx +2 -2
  433. package/src/components/prompt-editor/types.tsx +1 -1
  434. package/src/components/prompt-editor-with-inputs/editor.tsx +2 -3
  435. package/src/components/prompt-editor-with-variables/editor.tsx +3 -5
  436. package/src/components/sql-editor-with-variables/editor.tsx +28 -0
  437. package/src/components/sql-editor-with-variables/index.tsx +12 -0
  438. package/src/components/type-selector/index.tsx +2 -3
  439. package/src/components/variable-selector/index.tsx +2 -2
  440. package/src/components/variable-selector/use-variable-tree.tsx +7 -4
  441. package/src/effects/auto-rename-ref/index.ts +1 -1
  442. package/src/effects/index.ts +7 -7
  443. package/src/effects/listen-ref-schema-change/index.ts +1 -1
  444. package/src/effects/listen-ref-value-change/index.ts +1 -1
  445. package/src/effects/provide-batch-input/index.ts +2 -3
  446. package/src/effects/provide-json-schema-outputs/index.ts +1 -2
  447. package/src/form-plugins/batch-outputs-plugin/index.ts +65 -47
  448. package/src/form-plugins/index.ts +3 -3
  449. package/src/form-plugins/infer-assign-plugin/index.ts +2 -3
  450. package/src/form-plugins/infer-inputs-plugin/index.ts +62 -14
  451. package/src/hooks/{index.tsx → index.ts} +1 -1
  452. package/src/index.ts +117 -8
  453. package/src/plugins/index.ts +11 -2
  454. package/src/plugins/json-schema-preset/create-type-preset-plugin.tsx +4 -2
  455. package/src/plugins/json-schema-preset/index.tsx +8 -24
  456. package/src/plugins/json-schema-preset/react.tsx +31 -0
  457. package/src/plugins/json-schema-preset/type-definition/array.tsx +13 -4
  458. package/src/plugins/json-schema-preset/type-definition/boolean.tsx +17 -1
  459. package/src/plugins/json-schema-preset/type-definition/date-time.tsx +21 -2
  460. package/src/plugins/json-schema-preset/type-definition/index.tsx +10 -1
  461. package/src/plugins/json-schema-preset/type-definition/integer.tsx +19 -1
  462. package/src/plugins/json-schema-preset/type-definition/map.tsx +31 -0
  463. package/src/plugins/json-schema-preset/type-definition/number.tsx +19 -1
  464. package/src/plugins/json-schema-preset/type-definition/object.tsx +9 -4
  465. package/src/plugins/json-schema-preset/type-definition/string.tsx +19 -1
  466. package/src/plugins/json-schema-preset/{manager.ts → types.ts} +7 -0
  467. package/src/shared/flow-value/index.ts +11 -1
  468. package/src/shared/flow-value/utils.ts +23 -11
  469. package/src/shared/index.ts +26 -5
  470. package/src/shared/inject-material/index.tsx +10 -6
  471. package/src/validate/index.ts +6 -0
  472. package/src/validate/validate-flow-value/index.tsx +1 -2
  473. package/bin/index.ts +0 -80
  474. package/bin/materials.ts +0 -134
  475. package/bin/project.ts +0 -95
  476. package/bin/utils/import.ts +0 -127
  477. package/bin/utils/traverse-file.ts +0 -60
  478. package/dist/esm/chunk-727SU246.js +0 -13
  479. package/dist/esm/chunk-727SU246.js.map +0 -1
  480. package/dist/esm/chunk-DEZUEMUM.js +0 -284
  481. package/dist/esm/chunk-DEZUEMUM.js.map +0 -1
  482. package/dist/esm/chunk-DUOXDOUE.js +0 -477
  483. package/dist/esm/chunk-DUOXDOUE.js.map +0 -1
  484. package/dist/esm/editor-6UMULJYB.js +0 -180
  485. package/dist/esm/editor-6UMULJYB.js.map +0 -1
  486. package/dist/esm/editor-EYOQTGMT.js +0 -282
  487. package/dist/esm/editor-EYOQTGMT.js.map +0 -1
  488. package/dist/esm/editor-OXPGKPF5.js +0 -167
  489. package/dist/esm/editor-OXPGKPF5.js.map +0 -1
  490. package/dist/esm/editor-VO6YAXRC.js +0 -249
  491. package/dist/esm/editor-VO6YAXRC.js.map +0 -1
  492. package/dist/esm/editor-XYLKTB6L.js +0 -365
  493. package/dist/esm/editor-XYLKTB6L.js.map +0 -1
  494. package/dist/esm/index.js +0 -2668
  495. package/dist/esm/index.js.map +0 -1
  496. package/dist/index.d.mts +0 -1002
  497. package/dist/index.d.ts +0 -1002
  498. package/dist/index.js +0 -5100
  499. package/dist/index.js.map +0 -1
  500. package/src/components/assign-row/components/blur-input.tsx +0 -27
  501. package/src/components/code-editor/language-features.ts +0 -44
  502. package/src/components/condition-row/constants.ts +0 -134
  503. package/src/components/condition-row/hooks/useOp.tsx +0 -56
  504. package/src/components/condition-row/hooks/useRule.ts +0 -35
  505. package/src/components/db-condition-row/hooks/use-left.tsx +0 -66
  506. package/src/components/db-condition-row/hooks/use-op.tsx +0 -59
  507. package/src/components/json-editor-with-variables/extensions/variable-tag.tsx +0 -174
  508. package/src/components/json-editor-with-variables/extensions/variable-tree.tsx +0 -83
  509. package/src/components/prompt-editor-with-inputs/extensions/inputs-tree.tsx +0 -94
  510. /package/src/components/{json-editor-with-variables → coze-editor-extensions}/styles.tsx +0 -0
  511. /package/src/{typings/flow-value/index.ts → shared/flow-value/types.ts} +0 -0
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ export { type IConditionRule, type IConditionRuleFactory, type ConditionOpConfigs, type ConditionOpConfig, } from './types';
6
+ export { ConditionPresetOp } from './op';
7
+ export { ConditionProvider, useConditionContext } from './context';
8
+ export { useCondition } from './hooks/use-condition';
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { ConditionOpConfigs } from './types';
6
+ export declare enum ConditionPresetOp {
7
+ EQ = "eq",
8
+ NEQ = "neq",
9
+ GT = "gt",
10
+ GTE = "gte",
11
+ LT = "lt",
12
+ LTE = "lte",
13
+ IN = "in",
14
+ NIN = "nin",
15
+ CONTAINS = "contains",
16
+ NOT_CONTAINS = "not_contains",
17
+ IS_EMPTY = "is_empty",
18
+ IS_NOT_EMPTY = "is_not_empty",
19
+ IS_TRUE = "is_true",
20
+ IS_FALSE = "is_false"
21
+ }
22
+ export declare const defaultConditionOpConfigs: ConditionOpConfigs;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { type IJsonSchema } from '@flowgram.ai/json-schema';
6
+ export interface ConditionOpConfig {
7
+ label: string;
8
+ abbreviation: string;
9
+ rightDisplay?: string;
10
+ }
11
+ export type OpKey = string;
12
+ export type ConditionOpConfigs = Record<OpKey, ConditionOpConfig>;
13
+ export type IConditionRule = Record<OpKey, string | IJsonSchema | null>;
14
+ export type IConditionRuleFactory = (schema?: IJsonSchema) => Record<OpKey, string | IJsonSchema | null>;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import React from 'react';
6
+ import { IConditionRule, ConditionOpConfigs } from '../condition-context';
7
+ import { ConditionRowValueType } from './types';
8
+ interface PropTypes {
9
+ value?: ConditionRowValueType;
10
+ onChange: (value?: ConditionRowValueType) => void;
11
+ style?: React.CSSProperties;
12
+ readonly?: boolean;
13
+ ruleConfig?: {
14
+ ops?: ConditionOpConfigs;
15
+ rules?: Record<string, IConditionRule>;
16
+ };
17
+ }
18
+ export declare function ConditionRow({ style, value, onChange, readonly, ruleConfig, }: PropTypes): React.JSX.Element;
19
+ export { type ConditionRowValueType };
@@ -0,0 +1,9 @@
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, {}, never>;
6
+ export declare const UIOperator: import("styled-components").StyledComponent<"div", any, {}, never>;
7
+ export declare const UILeft: import("styled-components").StyledComponent<"div", any, {}, never>;
8
+ export declare const UIRight: import("styled-components").StyledComponent<"div", any, {}, never>;
9
+ export declare const UIValues: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { IFlowConstantRefValue, IFlowRefValue } from '../../shared';
6
+ export interface ConditionRowValueType {
7
+ left?: IFlowRefValue;
8
+ operator?: string;
9
+ right?: IFlowConstantRefValue;
10
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import React from 'react';
6
+ import { PropsType, Strategy as ConstantInputStrategy } from './types';
7
+ export { type ConstantInputStrategy };
8
+ export declare function ConstantInput(props: PropsType): React.JSX.Element;
@@ -0,0 +1,16 @@
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 { ConstantRendererProps } from '../../plugins';
7
+ export interface Strategy<Value = any> {
8
+ hit: (schema: IJsonSchema) => boolean;
9
+ Renderer: React.FC<ConstantRendererProps<Value>>;
10
+ }
11
+ export interface PropsType extends ConstantRendererProps {
12
+ schema: IJsonSchema;
13
+ strategies?: Strategy[];
14
+ fallbackRenderer?: React.FC<ConstantRendererProps>;
15
+ [key: string]: any;
16
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import React from 'react';
6
+ import { IFlowValue } from '../../../shared';
7
+ export declare function InputsPicker({ inputsValues, onSelect, }: {
8
+ inputsValues: any;
9
+ onSelect: (v: string) => void;
10
+ }): React.JSX.Element;
11
+ export declare function InputsTree({ inputsValues, triggerCharacters, }: {
12
+ inputsValues: Record<string, IFlowValue>;
13
+ triggerCharacters?: string[];
14
+ }): React.JSX.Element;
@@ -2,5 +2,4 @@
2
2
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
3
  * SPDX-License-Identifier: MIT
4
4
  */
5
-
6
- export * from './validate-flow-value';
5
+ export declare function VariableTagInject(): null;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import React from 'react';
6
+ export declare function VariableTree({ triggerCharacters, }: {
7
+ triggerCharacters?: string[];
8
+ }): React.JSX.Element;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ export declare const EditorVariableTree: import("react").FC<{
6
+ triggerCharacters?: string[];
7
+ }> & {
8
+ renderKey?: string;
9
+ };
10
+ export declare const EditorVariableTagInject: import("react").FC<unknown> & {
11
+ renderKey?: string;
12
+ };
13
+ export declare const EditorInputsTree: import("react").FC<{
14
+ inputsValues: Record<string, import("../../shared").IFlowValue>;
15
+ triggerCharacters?: string[];
16
+ }> & {
17
+ renderKey?: string;
18
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { Tag } 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, {}, never>;
8
+ export declare const UITag: import("styled-components").StyledComponent<typeof Tag, any, {}, never>;
9
+ export declare const UIPopoverContent: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,20 @@
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 ConditionOpConfigs, type IConditionRule } from '../condition-context';
7
+ import { DBConditionOptionType, DBConditionRowValueType } from './types';
8
+ interface PropTypes {
9
+ value?: DBConditionRowValueType;
10
+ onChange: (value?: DBConditionRowValueType) => void;
11
+ style?: React.CSSProperties;
12
+ options?: DBConditionOptionType[];
13
+ readonly?: boolean;
14
+ ruleConfig?: {
15
+ ops?: ConditionOpConfigs;
16
+ rules?: Record<string, IConditionRule>;
17
+ };
18
+ }
19
+ export declare function DBConditionRow({ style, value, onChange, readonly, options, ruleConfig, }: PropTypes): React.JSX.Element;
20
+ export { type DBConditionRowValueType, type DBConditionOptionType };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { Select } from '@douyinfe/semi-ui';
6
+ export declare const UIContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
7
+ export declare const UIOperator: import("styled-components").StyledComponent<"div", any, {}, never>;
8
+ export declare const UILeft: import("styled-components").StyledComponent<"div", any, {}, never>;
9
+ export declare const UIRight: import("styled-components").StyledComponent<"div", any, {}, never>;
10
+ export declare const UIValues: import("styled-components").StyledComponent<"div", any, {}, never>;
11
+ export declare const UIOptionLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
12
+ export declare const UISelect: import("styled-components").StyledComponent<typeof Select, any, {}, never>;
@@ -0,0 +1,17 @@
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 { IFlowConstantRefValue } from '../../shared';
7
+ export interface DBConditionRowValueType {
8
+ left?: string;
9
+ schema?: IJsonSchema;
10
+ operator?: string;
11
+ right?: IFlowConstantRefValue;
12
+ }
13
+ export interface DBConditionOptionType {
14
+ label: string | JSX.Element;
15
+ value: string;
16
+ schema: IJsonSchema;
17
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import React from 'react';
6
+ import { JsonSchemaTypeManager } from '@flowgram.ai/json-schema';
7
+ import { IFlowValue } from '../../shared';
8
+ interface PropsType {
9
+ value?: IFlowValue;
10
+ title?: JSX.Element | string;
11
+ showIconInTree?: boolean;
12
+ typeManager?: JsonSchemaTypeManager;
13
+ }
14
+ export declare function DisplayFlowValue({ value, title, showIconInTree }: PropsType): React.JSX.Element;
15
+ export {};
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import React from 'react';
6
+ interface PropsType {
7
+ value?: any;
8
+ showIconInTree?: boolean;
9
+ }
10
+ export declare function DisplayInputsValues({ value, showIconInTree }: PropsType): React.JSX.Element;
11
+ export declare function DisplayInputsValueAllInTag({ value, title, showIconInTree, }: PropsType & {
12
+ title: string;
13
+ }): React.JSX.Element;
14
+ export {};
@@ -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 DisplayInputsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,14 @@
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, JsonSchemaTypeManager } from '@flowgram.ai/json-schema';
7
+ interface PropsType {
8
+ value?: IJsonSchema;
9
+ showIconInTree?: boolean;
10
+ displayFromScope?: boolean;
11
+ typeManager?: JsonSchemaTypeManager;
12
+ }
13
+ export declare function DisplayOutputs({ value, showIconInTree, displayFromScope }: PropsType): React.JSX.Element;
14
+ export {};
@@ -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 DisplayOutputsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,14 @@
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
+ interface PropsType {
8
+ title?: JSX.Element | string;
9
+ value?: IJsonSchema;
10
+ showIconInTree?: boolean;
11
+ warning?: boolean;
12
+ }
13
+ export declare function DisplaySchemaTag({ value, showIconInTree, title, warning }: PropsType): React.JSX.Element;
14
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { Tag } from '@douyinfe/semi-ui';
6
+ export declare const PopoverContent: import("styled-components").StyledComponent<"div", any, {}, never>;
7
+ export declare const StyledTag: import("styled-components").StyledComponent<typeof Tag, any, {}, never>;
8
+ export declare const TitleSpan: import("styled-components").StyledComponent<"span", any, {}, 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 { type IJsonSchema, type JsonSchemaTypeManager } from '@flowgram.ai/json-schema';
7
+ interface PropsType {
8
+ value?: IJsonSchema;
9
+ parentKey?: string;
10
+ depth?: number;
11
+ drilldown?: boolean;
12
+ showIcon?: boolean;
13
+ typeManager?: JsonSchemaTypeManager;
14
+ }
15
+ export declare function DisplaySchemaTree(props: Omit<PropsType, 'parentKey' | 'depth'>): React.JSX.Element;
16
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ export declare const TreeRow: import("styled-components").StyledComponent<"div", any, {}, never>;
6
+ export declare const HorizontalLine: import("styled-components").StyledComponent<"div", any, {}, never>;
7
+ export declare const TreeTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
8
+ export declare const TreeLevel: import("styled-components").StyledComponent<"div", any, {}, never>;
9
+ export declare const TreeItem: import("styled-components").StyledComponent<"div", any, {
10
+ depth: number;
11
+ }, never>;
@@ -0,0 +1,28 @@
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 { IFlowConstantRefValue } from '../../shared';
7
+ export declare function useRefVariable(value?: IFlowConstantRefValue): import("@flowgram.ai/variable-core").BaseVariableField<any> | undefined;
8
+ export declare function useSelectSchema(schemaFromProps?: IJsonSchema, constantProps?: {
9
+ schema?: IJsonSchema;
10
+ }, value?: IFlowConstantRefValue): readonly [IJsonSchema<string>, (schema: IJsonSchema) => void];
11
+ export declare function useIncludeSchema(schemaFromProps?: IJsonSchema): IJsonSchema<string>[] | {
12
+ extra: {
13
+ index?: number;
14
+ weak: boolean;
15
+ formComponent?: string;
16
+ };
17
+ type?: string | undefined;
18
+ format?: string;
19
+ default?: any;
20
+ title?: string;
21
+ description?: string;
22
+ enum?: (string | number)[];
23
+ properties?: Record<string, IJsonSchema<string>> | undefined;
24
+ additionalProperties?: IJsonSchema<string> | undefined;
25
+ items?: IJsonSchema<string> | undefined;
26
+ required?: string[];
27
+ $ref?: string;
28
+ } | undefined;
@@ -0,0 +1,29 @@
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 { IFlowConstantRefValue } from '../../shared';
8
+ import { ConstantInputStrategy } from '../constant-input';
9
+ interface PropsType {
10
+ value?: IFlowConstantRefValue;
11
+ onChange: (value?: IFlowConstantRefValue) => void;
12
+ readonly?: boolean;
13
+ hasError?: boolean;
14
+ style?: React.CSSProperties;
15
+ schema?: IJsonSchema;
16
+ constantProps?: {
17
+ strategies?: ConstantInputStrategy[];
18
+ schema?: IJsonSchema;
19
+ [key: string]: any;
20
+ };
21
+ }
22
+ export declare function DynamicValueInput({ value, onChange, readonly, style, schema: schemaFromProps, constantProps, }: PropsType): React.JSX.Element;
23
+ export declare namespace DynamicValueInput {
24
+ var renderKey: string;
25
+ }
26
+ export declare const InjectDynamicValueInput: React.FC<PropsType> & {
27
+ renderKey?: string;
28
+ };
29
+ export {};
@@ -0,0 +1,8 @@
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, {}, never>;
6
+ export declare const UIMain: import("styled-components").StyledComponent<"div", any, {}, never>;
7
+ export declare const UIType: import("styled-components").StyledComponent<"div", any, {}, never>;
8
+ export declare const UITrigger: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ export { AssignRow, type AssignValueType } from './assign-row';
6
+ export { AssignRows } from './assign-rows';
7
+ export { BatchOutputs } from './batch-outputs';
8
+ export { BatchVariableSelector } from './batch-variable-selector';
9
+ export { BlurInput } from './blur-input';
10
+ export { BaseCodeEditor, CodeEditor, JsonCodeEditor, PythonCodeEditor, SQLCodeEditor, ShellCodeEditor, TypeScriptCodeEditor, type CodeEditorPropsType, } from './code-editor';
11
+ export { CodeEditorMini } from './code-editor-mini';
12
+ export { ConditionPresetOp, ConditionProvider, type ConditionOpConfig, type ConditionOpConfigs, type IConditionRule, type IConditionRuleFactory, useCondition, useConditionContext, } from './condition-context';
13
+ export { ConditionRow, type ConditionRowValueType } from './condition-row';
14
+ export { ConstantInput, type ConstantInputStrategy } from './constant-input';
15
+ export { EditorInputsTree, EditorVariableTagInject, EditorVariableTree, } from './coze-editor-extensions';
16
+ export { DBConditionRow, type DBConditionOptionType, type DBConditionRowValueType, } from './db-condition-row';
17
+ export { DisplayFlowValue } from './display-flow-value';
18
+ export { DisplayInputsValueAllInTag, DisplayInputsValues } from './display-inputs-values';
19
+ export { DisplayOutputs } from './display-outputs';
20
+ export { DisplaySchemaTag } from './display-schema-tag';
21
+ export { DisplaySchemaTree } from './display-schema-tree';
22
+ export { DynamicValueInput, InjectDynamicValueInput } from './dynamic-value-input';
23
+ export { InputsValues } from './inputs-values';
24
+ export { InputsValuesTree } from './inputs-values-tree';
25
+ export { JsonEditorWithVariables, type JsonEditorWithVariablesProps, } from './json-editor-with-variables';
26
+ export { JsonSchemaEditor } from './json-schema-editor';
27
+ export { PromptEditor, type PromptEditorPropsType } from './prompt-editor';
28
+ export { PromptEditorWithInputs, type PromptEditorWithInputsProps, } from './prompt-editor-with-inputs';
29
+ export { PromptEditorWithVariables, type PromptEditorWithVariablesProps, } from './prompt-editor-with-variables';
30
+ export { SQLEditorWithVariables, type SQLEditorWithVariablesProps, } from './sql-editor-with-variables';
31
+ export { InjectTypeSelector, TypeSelector, getTypeSelectValue, parseTypeSelectValue, type TypeSelectorProps, } from './type-selector';
32
+ export { InjectVariableSelector, VariableSelector, VariableSelectorProvider, useVariableTree, type VariableSelectorProps, } from './variable-selector';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import React from 'react';
6
+ import { PropsType } from './types';
7
+ export declare function InputsValues({ value, onChange, style, readonly, constantProps, schema, hasError, }: PropsType): 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 UIRows: import("styled-components").StyledComponent<"div", any, {}, never>;
6
+ export declare const UIRow: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,19 @@
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 { IFlowValue } from '../../shared';
7
+ import { ConstantInputStrategy } from '../constant-input';
8
+ export interface PropsType {
9
+ value?: Record<string, IFlowValue | undefined>;
10
+ onChange: (value?: Record<string, IFlowValue | undefined>) => void;
11
+ readonly?: boolean;
12
+ hasError?: boolean;
13
+ schema?: IJsonSchema;
14
+ style?: React.CSSProperties;
15
+ constantProps?: {
16
+ strategies?: ConstantInputStrategy[];
17
+ [key: string]: any;
18
+ };
19
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ interface ListItem {
6
+ id: string;
7
+ key?: string;
8
+ value?: any;
9
+ }
10
+ export declare function useChildList(value?: any, onChange?: (value: any) => void): {
11
+ canAddField: boolean;
12
+ hasChildren: boolean;
13
+ list: ListItem[];
14
+ add: (defaultValue?: any) => void;
15
+ updateKey: (id: string, key: string) => void;
16
+ updateValue: (id: string, value: any) => void;
17
+ remove: (id: string) => void;
18
+ };
19
+ export {};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import React from 'react';
6
+ import { PropsType } from './types';
7
+ export declare function InputsValuesTree(props: PropsType): React.JSX.Element;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import React from 'react';
6
+ import { PropsType } from './types';
7
+ export declare function InputValueRow(props: {
8
+ keyName?: string;
9
+ value?: any;
10
+ onUpdateKey: (key: string) => void;
11
+ onUpdateValue: (value: any) => void;
12
+ onRemove?: () => void;
13
+ $isLast?: boolean;
14
+ $level?: number;
15
+ } & Pick<PropsType, 'constantProps' | 'hasError' | 'readonly'>): React.JSX.Element;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import React from 'react';
6
+ export declare const UIContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
7
+ export declare const UIRow: import("styled-components").StyledComponent<"div", any, {}, never>;
8
+ export declare const UICollapseTrigger: import("styled-components").StyledComponent<"div", any, {}, never>;
9
+ export declare const UITreeItems: import("styled-components").StyledComponent<"div", any, {
10
+ $shrink?: boolean;
11
+ }, never>;
12
+ export declare const UITreeItemLeft: import("styled-components").StyledComponent<"div", any, {
13
+ $isLast?: boolean;
14
+ $showLine?: boolean;
15
+ $showCollapse?: boolean;
16
+ }, never>;
17
+ export declare const UITreeItemRight: import("styled-components").StyledComponent<"div", any, {}, never>;
18
+ export declare const UITreeItemMain: import("styled-components").StyledComponent<"div", any, {}, never>;
19
+ export declare const UICollapsible: import("styled-components").StyledComponent<"div", any, {
20
+ $collapse?: boolean;
21
+ }, never>;
22
+ export declare const UIActions: import("styled-components").StyledComponent<"div", any, {}, never>;
23
+ export declare const IconAddChildren: () => React.JSX.Element;
@@ -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 { ConstantInputStrategy } from '../constant-input';
7
+ export interface PropsType {
8
+ value?: any;
9
+ onChange: (value?: any) => void;
10
+ readonly?: boolean;
11
+ hasError?: boolean;
12
+ schema?: IJsonSchema;
13
+ style?: React.CSSProperties;
14
+ constantProps?: {
15
+ strategies?: ConstantInputStrategy[];
16
+ [key: string]: any;
17
+ };
18
+ }
@@ -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 { type CodeEditorPropsType } from '../code-editor';
7
+ export interface JsonEditorWithVariablesProps extends Omit<CodeEditorPropsType, 'languageId'> {
8
+ }
9
+ export declare function JsonEditorWithVariables(props: JsonEditorWithVariablesProps): 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 JsonEditorWithVariables: import("react").LazyExoticComponent<typeof import("./editor").JsonEditorWithVariables>;
6
+ export type { JsonEditorWithVariablesProps } from './editor';
@@ -0,0 +1,17 @@
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
+ /**
8
+ * Renders the corresponding default value input component based on different data types.
9
+ * @param props - Component properties, including value, type, placeholder, onChange.
10
+ * @returns Returns the input component of the corresponding type or null.
11
+ */
12
+ export declare function DefaultValue(props: {
13
+ value: any;
14
+ schema?: IJsonSchema;
15
+ placeholder?: string;
16
+ onChange: (value: any) => void;
17
+ }): React.JSX.Element;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { PropertyValueType } from './types';
6
+ export declare function usePropertiesEdit(value?: PropertyValueType, onChange?: (value: PropertyValueType) => void): {
7
+ propertyList: PropertyValueType[];
8
+ canAddField: boolean | undefined;
9
+ onAddProperty: () => void;
10
+ onRemoveProperty: (key: number) => void;
11
+ onEditProperty: (key: number, nextValue: PropertyValueType) => void;
12
+ };