@fudanda/workflow 1.20261015.1-beta.1 → 2.20261024.1-beta.1

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 (290) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +114 -114
  3. package/THIRD-PARTY-NOTICES.md +57 -57
  4. package/dist/chrome.js +1 -1
  5. package/dist/flowgram-designer.d.ts +2 -1
  6. package/dist/graph-scope.d.ts +16 -85
  7. package/dist/index.js +2 -2
  8. package/dist/observation-types.d.ts +6 -0
  9. package/dist/{start-form-D_J3UIoE.js → start-form-L6xw9phk.js} +125 -125
  10. package/package.json +2 -2
  11. package/vendor/coze/LICENSE-APACHE +177 -177
  12. package/vendor/coze/UPSTREAM.json +2 -2
  13. package/vendor/coze/original/base-test-button.tsx +22 -22
  14. package/vendor/coze/original/comment-container.tsx +68 -68
  15. package/vendor/coze/original/condition-container.tsx +60 -60
  16. package/vendor/coze/original/condition-tag.tsx +58 -58
  17. package/vendor/coze/original/coze-global.less +234 -234
  18. package/vendor/coze/original/create-loop-function-json.ts +134 -134
  19. package/vendor/coze/original/create-loop-function.ts +56 -56
  20. package/vendor/coze/original/end-registry.ts +41 -41
  21. package/vendor/coze/original/execute-result-panel.less +97 -97
  22. package/vendor/coze/original/execute-result-panel.tsx +171 -171
  23. package/vendor/coze/original/form-item.less +39 -39
  24. package/vendor/coze/original/form-item.tsx +200 -200
  25. package/vendor/coze/original/http-api-field.tsx +42 -42
  26. package/vendor/coze/original/http-form-render.tsx +102 -102
  27. package/vendor/coze/original/icon-add.svg +3 -3
  28. package/vendor/coze/original/icon-arrow-left.svg +3 -3
  29. package/vendor/coze/original/icon-auto-layout.svg +18 -18
  30. package/vendor/coze/original/icon-code.svg +13 -13
  31. package/vendor/coze/original/icon-condition.svg +12 -12
  32. package/vendor/coze/original/icon-database.svg +18 -18
  33. package/vendor/coze/original/icon-delete.svg +5 -5
  34. package/vendor/coze/original/icon-fullscreen.svg +9 -9
  35. package/vendor/coze/original/icon-more.svg +11 -11
  36. package/vendor/coze/original/icon-play-round-outlined.svg +8 -8
  37. package/vendor/coze/original/icon-plugin-tool.svg +6 -6
  38. package/vendor/coze/original/icon-standard-copy.svg +8 -8
  39. package/vendor/coze/original/icon-unknown.svg +7 -7
  40. package/vendor/coze/original/icon-var.svg +6 -6
  41. package/vendor/coze/original/icon-workflow-end.svg +5 -5
  42. package/vendor/coze/original/icon-workflow-start.svg +5 -5
  43. package/vendor/coze/original/icon-workflow.svg +21 -21
  44. package/vendor/coze/original/icon-workflows.svg +5 -5
  45. package/vendor/coze/original/if-form-meta.tsx +88 -88
  46. package/vendor/coze/original/logic-display.tsx +33 -33
  47. package/vendor/coze/original/mouse-icon.tsx +35 -35
  48. package/vendor/coze/original/mouse-pad-selector.tsx +180 -180
  49. package/vendor/coze/original/node-card.tsx +77 -77
  50. package/vendor/coze/original/node-category-panel.less +4 -4
  51. package/vendor/coze/original/node-category-panel.tsx +53 -53
  52. package/vendor/coze/original/node-config-form.tsx +67 -67
  53. package/vendor/coze/original/node-header.less +165 -165
  54. package/vendor/coze/original/node-header.tsx +552 -552
  55. package/vendor/coze/original/node-panel.less +183 -183
  56. package/vendor/coze/original/node-render.less +20 -20
  57. package/vendor/coze/original/node-side-sheet.less +57 -57
  58. package/vendor/coze/original/node-side-sheet.tsx +214 -214
  59. package/vendor/coze/original/node-wrapper.tsx +71 -71
  60. package/vendor/coze/original/pad-icon.tsx +45 -45
  61. package/vendor/coze/original/resizable-side-panel-constants.ts +18 -18
  62. package/vendor/coze/original/resizable-side-panel.tsx +42 -42
  63. package/vendor/coze/original/start-registry.ts +53 -53
  64. package/vendor/coze/original/sub-canvas-background.less +4 -4
  65. package/vendor/coze/original/sub-canvas-background.tsx +48 -48
  66. package/vendor/coze/original/sub-canvas-container.less +16 -16
  67. package/vendor/coze/original/sub-canvas-container.tsx +97 -97
  68. package/vendor/coze/original/sub-canvas-header.less +75 -75
  69. package/vendor/coze/original/sub-canvas-header.tsx +95 -95
  70. package/vendor/coze/original/test-form-sheet-header.tsx +82 -82
  71. package/vendor/coze/original/test-form-sheet.less +178 -178
  72. package/vendor/coze/original/toolbar-add-node.tsx +68 -68
  73. package/vendor/coze/original/toolbar-auto-layout.tsx +61 -61
  74. package/vendor/coze/original/toolbar-comment.tsx +121 -121
  75. package/vendor/coze/original/toolbar-container.tsx +42 -42
  76. package/vendor/coze/original/toolbar-interactive.tsx +98 -98
  77. package/vendor/coze/original/toolbar-minimap-switch.tsx +41 -41
  78. package/vendor/coze/original/toolbar-tools.less +46 -46
  79. package/vendor/coze/original/toolbar-tools.tsx +89 -89
  80. package/vendor/coze/original/toolbar-zoom.tsx +134 -134
  81. package/vendor/coze/original/tree-variable-selector.less +291 -291
  82. package/vendor/coze/original/tree-variable-selector.tsx +298 -298
  83. package/vendor/coze/original/workflow-document-custom-options.ts +151 -151
  84. package/vendor/coze/original/workflow-header.less +65 -65
  85. package/vendor/coze/original/workflow-header.tsx +85 -85
  86. package/vendor/coze/source/agent-models/model-option/index.module.less +18 -18
  87. package/vendor/coze/source/agent-models/model-option/index.tsx +321 -321
  88. package/vendor/coze/source/agent-models/model-option-avatar/index.tsx +175 -175
  89. package/vendor/coze/source/agent-models/model-option-group/index.tsx +87 -87
  90. package/vendor/coze/source/agent-models/model-option-thumb/index.tsx +41 -41
  91. package/vendor/coze/source/agent-models/model-select-ui/index.tsx +238 -238
  92. package/vendor/coze/source/agent-models/popover-model-list-view/index.tsx +146 -146
  93. package/vendor/coze/source/components/code-editor/text-editor.tsx +71 -71
  94. package/vendor/coze/source/components/comment/components/editor/block.tsx +117 -117
  95. package/vendor/coze/source/components/comment/components/editor/leaf.tsx +64 -64
  96. package/vendor/coze/source/components/comment/components/toolbar.tsx +366 -366
  97. package/vendor/coze/source/components/comment/constant.ts +94 -94
  98. package/vendor/coze/source/components/editor-container/expand-editor/index.module.less +107 -107
  99. package/vendor/coze/source/components/editor-container/expand-editor/index.tsx +117 -117
  100. package/vendor/coze/source/components/model-select/components/model-setting.tsx +300 -300
  101. package/vendor/coze/source/components/model-select/components/settings.tsx +144 -144
  102. package/vendor/coze/source/components/model-select/index.module.less +34 -34
  103. package/vendor/coze/source/components/model-select/utils/index.tsx +100 -100
  104. package/vendor/coze/source/components/node-render/node-render-new/fields/constants.tsx +79 -79
  105. package/vendor/coze/source/components/node-render/node-render-new/fields/field-empty.module.less +12 -12
  106. package/vendor/coze/source/components/node-render/node-render-new/fields/field-empty.tsx +37 -37
  107. package/vendor/coze/source/components/node-render/node-render-new/fields/field.module.less +19 -19
  108. package/vendor/coze/source/components/node-render/node-render-new/fields/field.tsx +52 -52
  109. package/vendor/coze/source/components/node-render/node-render-new/fields/http-api-field/index.tsx +42 -42
  110. package/vendor/coze/source/components/node-render/node-render-new/fields/overflow-tag-list.module.less +47 -47
  111. package/vendor/coze/source/components/node-render/node-render-new/fields/overflow-tag-list.tsx +162 -162
  112. package/vendor/coze/source/components/node-render/node-render-new/fields/variable-tag-list.module.less +48 -48
  113. package/vendor/coze/source/components/node-render/node-render-new/fields/variable-tag-list.tsx +126 -126
  114. package/vendor/coze/source/components/node-wrapper/execute-result-panel/index.module.less +97 -97
  115. package/vendor/coze/source/components/node-wrapper/execute-result-panel/index.tsx +171 -171
  116. package/vendor/coze/source/components/sub-canvas/components/background/index.module.less +4 -4
  117. package/vendor/coze/source/components/sub-canvas/components/header/index.module.less +75 -75
  118. package/vendor/coze/source/components/test-run/test-run-button/single-node.tsx +158 -158
  119. package/vendor/coze/source/execution-panel/panel.module.less +48 -48
  120. package/vendor/coze/source/execution-panel/panel.tsx +99 -99
  121. package/vendor/coze/source/execution-panel/use-resize.ts +79 -79
  122. package/vendor/coze/source/external/features/log/components/data-viewer/constants.ts +28 -28
  123. package/vendor/coze/source/external/features/log/components/data-viewer/context/context.ts +21 -21
  124. package/vendor/coze/source/external/features/log/components/data-viewer/context/create-store.ts +48 -48
  125. package/vendor/coze/source/external/features/log/components/data-viewer/context/index.ts +19 -19
  126. package/vendor/coze/source/external/features/log/components/data-viewer/context/provider.tsx +50 -50
  127. package/vendor/coze/source/external/features/log/components/data-viewer/data-viewer.module.less +26 -26
  128. package/vendor/coze/source/external/features/log/components/data-viewer/data-viewer.tsx +79 -79
  129. package/vendor/coze/source/external/features/log/components/data-viewer/hooks/index.ts +18 -18
  130. package/vendor/coze/source/external/features/log/components/data-viewer/hooks/use-data-viewer-store.ts +29 -29
  131. package/vendor/coze/source/external/features/log/components/data-viewer/hooks/use-expand.ts +35 -35
  132. package/vendor/coze/source/external/features/log/components/data-viewer/hooks/use-value.tsx +66 -66
  133. package/vendor/coze/source/external/features/log/components/data-viewer/index.tsx +21 -21
  134. package/vendor/coze/source/external/features/log/components/data-viewer/json-field/index.tsx +186 -186
  135. package/vendor/coze/source/external/features/log/components/data-viewer/json-field/json-field.module.less +79 -79
  136. package/vendor/coze/source/external/features/log/components/data-viewer/types.ts +50 -50
  137. package/vendor/coze/source/external/features/log/components/data-viewer/utils/big-number.ts +35 -35
  138. package/vendor/coze/source/external/features/log/components/data-viewer/utils/generate-field.ts +104 -104
  139. package/vendor/coze/source/external/features/log/components/log-parser/log-wrap.module.less +27 -27
  140. package/vendor/coze/source/external/features/log/components/log-parser/log-wrap.tsx +109 -109
  141. package/vendor/coze/source/external/features/log/components/node-status-bar/node-status-bar.module.less +52 -52
  142. package/vendor/coze/source/external/features/log/components/node-status-bar/node-status-bar.tsx +113 -113
  143. package/vendor/coze/source/form/components/field-empty.tsx +45 -45
  144. package/vendor/coze/source/form/components/section.tsx +91 -91
  145. package/vendor/coze/source/form-extensions/components/add-item-button/index.tsx +64 -64
  146. package/vendor/coze/source/form-extensions/components/form-card/index.module.less +131 -131
  147. package/vendor/coze/source/form-extensions/components/form-card/index.tsx +309 -309
  148. package/vendor/coze/source/form-extensions/components/form-item/index.module.less +39 -39
  149. package/vendor/coze/source/form-extensions/components/form-item/index.tsx +200 -200
  150. package/vendor/coze/source/form-extensions/components/form-item-feedback/index.module.less +7 -7
  151. package/vendor/coze/source/form-extensions/components/form-item-feedback/index.tsx +39 -39
  152. package/vendor/coze/source/form-extensions/components/level-line/index.module.less +346 -346
  153. package/vendor/coze/source/form-extensions/components/level-line/index.ts +17 -17
  154. package/vendor/coze/source/form-extensions/components/level-line/level-line.tsx +460 -460
  155. package/vendor/coze/source/form-extensions/components/level-line/types.ts +38 -38
  156. package/vendor/coze/source/form-extensions/components/level-line/utils.ts +60 -60
  157. package/vendor/coze/source/form-extensions/components/literal-value-input/constants.ts +61 -61
  158. package/vendor/coze/source/form-extensions/components/literal-value-input/input-boolean.tsx +80 -80
  159. package/vendor/coze/source/form-extensions/components/literal-value-input/input-integer.tsx +68 -68
  160. package/vendor/coze/source/form-extensions/components/literal-value-input/input-number.tsx +62 -62
  161. package/vendor/coze/source/form-extensions/components/literal-value-input/input-select.tsx +59 -59
  162. package/vendor/coze/source/form-extensions/components/literal-value-input/input-string.tsx +55 -55
  163. package/vendor/coze/source/form-extensions/components/literal-value-input/literal-value-input.tsx +35 -35
  164. package/vendor/coze/source/form-extensions/components/literal-value-input/styles.module.less +46 -46
  165. package/vendor/coze/source/form-extensions/components/literal-value-input/type.ts +61 -61
  166. package/vendor/coze/source/form-extensions/components/literal-value-input/utils.tsx +117 -117
  167. package/vendor/coze/source/form-extensions/components/node-header/components/close-button.tsx +44 -44
  168. package/vendor/coze/source/form-extensions/components/node-header/description-display.tsx +52 -52
  169. package/vendor/coze/source/form-extensions/components/node-header/description.tsx +131 -131
  170. package/vendor/coze/source/form-extensions/components/node-header/index.module.less +165 -165
  171. package/vendor/coze/source/form-extensions/components/node-header/index.tsx +552 -552
  172. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/expand-btn/index.tsx +43 -43
  173. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/expand-content/default-value-input.tsx +276 -276
  174. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/expand-content/index.module.less +124 -124
  175. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/expand-content/index.tsx +131 -131
  176. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/expand-content/types.ts +32 -32
  177. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-name/index.module.less +38 -38
  178. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-name/index.tsx +101 -101
  179. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-operator/index.module.less +51 -51
  180. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-operator/index.tsx +107 -107
  181. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-required/index.module.less +17 -17
  182. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-required/index.tsx +53 -53
  183. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-type/constants.tsx +77 -77
  184. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-type/index.module.less +97 -97
  185. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/components/param-type/index.tsx +155 -155
  186. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/constants.ts +38 -38
  187. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/index.module.less +138 -138
  188. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/index.tsx +360 -360
  189. package/vendor/coze/source/form-extensions/components/output-tree/components/custom-tree-node/type.ts +88 -88
  190. package/vendor/coze/source/form-extensions/components/output-tree/components/header/index.module.less +36 -36
  191. package/vendor/coze/source/form-extensions/components/output-tree/components/header/index.tsx +104 -104
  192. package/vendor/coze/source/form-extensions/components/output-tree/constants.ts +22 -22
  193. package/vendor/coze/source/form-extensions/components/output-tree/context.ts +28 -28
  194. package/vendor/coze/source/form-extensions/components/output-tree/hooks/use-columns-style.ts +39 -39
  195. package/vendor/coze/source/form-extensions/components/output-tree/index.module.less +83 -83
  196. package/vendor/coze/source/form-extensions/components/output-tree/index.tsx +692 -692
  197. package/vendor/coze/source/form-extensions/components/output-tree/utils.ts +185 -185
  198. package/vendor/coze/source/form-extensions/components/setting-on-error/components/process-type/index.tsx +97 -97
  199. package/vendor/coze/source/form-extensions/components/setting-on-error/components/process-type/option-item.tsx +30 -30
  200. package/vendor/coze/source/form-extensions/components/setting-on-error/components/process-type/types.ts +23 -23
  201. package/vendor/coze/source/form-extensions/components/setting-on-error/components/retry-times/index.tsx +45 -45
  202. package/vendor/coze/source/form-extensions/components/setting-on-error/components/timeout/index.tsx +102 -102
  203. package/vendor/coze/source/form-extensions/components/tree-variable-selector/composite-select-option.tsx +167 -167
  204. package/vendor/coze/source/form-extensions/components/tree-variable-selector/composite-select-tree-panel.tsx +165 -165
  205. package/vendor/coze/source/form-extensions/components/tree-variable-selector/composite-select.module.less +96 -96
  206. package/vendor/coze/source/form-extensions/components/tree-variable-selector/composite-select.tsx +265 -265
  207. package/vendor/coze/source/form-extensions/components/tree-variable-selector/context.tsx +42 -42
  208. package/vendor/coze/source/form-extensions/components/tree-variable-selector/expand-icon.tsx +30 -30
  209. package/vendor/coze/source/form-extensions/components/tree-variable-selector/index.module.less +291 -291
  210. package/vendor/coze/source/form-extensions/components/tree-variable-selector/node-variable-tree.module.less +48 -48
  211. package/vendor/coze/source/form-extensions/components/tree-variable-selector/node-variable-tree.tsx +149 -149
  212. package/vendor/coze/source/form-extensions/components/tree-variable-selector/utils.tsx +500 -500
  213. package/vendor/coze/source/form-extensions/components/tree-variable-selector/value-display.tsx +130 -130
  214. package/vendor/coze/source/form-extensions/components/value-expression-input/const.ts +68 -68
  215. package/vendor/coze/source/form-extensions/components/value-expression-input/context.ts +27 -27
  216. package/vendor/coze/source/form-extensions/components/value-expression-input/index.module.less +144 -144
  217. package/vendor/coze/source/form-extensions/components/value-expression-input/value-expression-input.tsx +418 -418
  218. package/vendor/coze/source/form-extensions/components/variable-type-selector/constants.tsx +77 -77
  219. package/vendor/coze/source/form-extensions/components/variable-type-selector/index.module.less +31 -31
  220. package/vendor/coze/source/form-extensions/components/variable-type-selector/index.tsx +17 -17
  221. package/vendor/coze/source/form-extensions/components/variable-type-selector/utils.tsx +298 -298
  222. package/vendor/coze/source/form-extensions/components/variable-type-selector/variable-type-selector.tsx +235 -235
  223. package/vendor/coze/source/form-extensions/components/variable-type-tag/index.tsx +54 -54
  224. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-branch.module.less +9 -9
  225. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-branch.tsx +249 -249
  226. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-header.tsx +50 -50
  227. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-item-logic.module.less +13 -13
  228. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-item-logic.tsx +73 -73
  229. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/delete/index.module.less +10 -10
  230. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/delete/index.tsx +42 -42
  231. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/index.module.less +9 -9
  232. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/index.tsx +254 -254
  233. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/operator/index.module.less +7 -7
  234. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/operator/index.tsx +144 -144
  235. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/condition-params-item/value-expression-with-state/index.tsx +69 -69
  236. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/context.ts +36 -36
  237. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/draggable/condition-branch-preview.tsx +44 -44
  238. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/draggable/condition-branch.tsx +152 -152
  239. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/draggable/container.tsx +19 -19
  240. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/draggable/custom-drag-layer.tsx +117 -117
  241. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/draggable/types.ts +18 -18
  242. package/vendor/coze/source/form-extensions/setters/condition/multi-condition/types.ts +58 -58
  243. package/vendor/coze/source/node-registries/end/components/terminate-plan-field.tsx +29 -29
  244. package/vendor/coze/source/node-registries/end/constants.ts +34 -34
  245. package/vendor/coze/source/node-registries/end/form.tsx +66 -66
  246. package/vendor/coze/source/node-registries/end/types.ts +45 -45
  247. package/vendor/coze/source/node-registries/http/components/base-editor/raw-text-editor.tsx +80 -80
  248. package/vendor/coze/source/node-registries/http/constants.ts +80 -80
  249. package/vendor/coze/source/node-registries/http/fields/json-import-editor/index.module.less +191 -191
  250. package/vendor/coze/source/node-registries/http/fields/json-import-editor/json-import-components/json-expand-editor.tsx +141 -141
  251. package/vendor/coze/source/node-registries/http/fields/json-import-editor/json-import-components/json-import.tsx +99 -99
  252. package/vendor/coze/source/node-registries/http/form-render.tsx +102 -102
  253. package/vendor/coze/source/node-registries/http/setters/api/curl-expand-editor.tsx +161 -161
  254. package/vendor/coze/source/node-registries/http/setters/api/curl-import.tsx +96 -96
  255. package/vendor/coze/source/node-registries/http/setters/api/index.module.less +199 -199
  256. package/vendor/coze/source/node-registries/http/setters/api/index.tsx +149 -149
  257. package/vendor/coze/source/node-registries/http/setters/api/utils.ts +41 -41
  258. package/vendor/coze/source/node-registries/http/setters/body/index.tsx +201 -201
  259. package/vendor/coze/source/node-registries/http/setters/constants.ts +83 -83
  260. package/vendor/coze/source/node-registries/if/components/else/index.tsx +41 -41
  261. package/vendor/coze/source/node-registries/intent/components/intents/index.module.less +14 -14
  262. package/vendor/coze/source/node-registries/intent/components/intents/option-item/index.tsx +189 -189
  263. package/vendor/coze/source/node-registries/json-stringify/constants.ts +32 -32
  264. package/vendor/coze/source/node-registries/json-stringify/form.tsx +46 -46
  265. package/vendor/coze/source/node-registries/loop/constants.ts +43 -43
  266. package/vendor/coze/source/node-registries/loop/loop-fields/loop-settings-section/index.tsx +48 -48
  267. package/vendor/coze/source/node-registries/loop/loop-fields/loop-type/index.tsx +81 -81
  268. package/vendor/coze/source/node-registries/loop/loop-fields/loop-type/options.ts +34 -34
  269. package/vendor/coze/source/node-registries/start/form.tsx +209 -209
  270. package/vendor/coze/source/node-registries/text-process/components/method-selector/index.tsx +46 -46
  271. package/vendor/coze/source/node-registries/text-process/constants.ts +132 -132
  272. package/vendor/coze/source/nodes-v2/components/form-item-feedback/index.module.less +7 -7
  273. package/vendor/coze/source/nodes-v2/components/form-item-feedback/index.tsx +47 -47
  274. package/vendor/coze/source/nodes-v2/components/system-prompt/index.module.less +66 -66
  275. package/vendor/coze/source/nodes-v2/components/system-prompt/prompt-kit-bar.tsx +129 -129
  276. package/vendor/coze/source/nodes-v2/components/system-prompt/system-prompt-editor.tsx +110 -110
  277. package/vendor/coze/source/nodes-v2/llm/user-prompt/index.tsx +64 -64
  278. package/vendor/coze/source/prompt-kit/input-config-popover/index.tsx +80 -80
  279. package/vendor/coze/source/prompt-kit/input-slot-widget/index.css +34 -34
  280. package/vendor/coze/source/prompt-kit/input-slot-widget/index.ts +169 -169
  281. package/vendor/coze/source/prompt-kit/library-item.tsx +141 -141
  282. package/vendor/coze/source/prompt-kit/prompt-info-input.tsx +90 -90
  283. package/vendor/coze/source/ui-components/add-operation/index.module.less +19 -19
  284. package/vendor/coze/source/ui-components/add-operation/index.tsx +67 -67
  285. package/vendor/coze/source/ui-components/auto-size-tooltip/index.module.less +39 -39
  286. package/vendor/coze/source/ui-components/auto-size-tooltip/index.tsx +74 -74
  287. package/vendor/coze/source/ui-components/workflow-sl-input/index.module.less +36 -36
  288. package/vendor/coze/source/ui-components/workflow-sl-input/index.tsx +194 -194
  289. package/vendor/coze/source/utils/create-slots/index.tsx +126 -126
  290. package/vendor/coze/source/utils/create-slots/use-force-update.ts +23 -23
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fudanda/workflow",
3
- "version": "1.20261015.1-beta.1",
3
+ "version": "2.20261024.1-beta.1",
4
4
  "description": "Composable ArcBase business workflow graph designer.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -62,7 +62,7 @@
62
62
  "@codemirror/lang-json": "6.0.2",
63
63
  "@codemirror/state": "6.7.6",
64
64
  "@codemirror/view": "6.43.14",
65
- "@fudanda/shared": "1.20261015.1-beta.1",
65
+ "@fudanda/shared": "2.20261024.1-beta.1",
66
66
  "@flowgram.ai/background-plugin": "1.0.15",
67
67
  "@flowgram.ai/free-layout-editor": "1.0.15",
68
68
  "@flowgram.ai/free-snap-plugin": "1.0.15",
@@ -1,177 +1,177 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
@@ -2140,8 +2140,8 @@
2140
2140
  "original": "source/components/node-wrapper/execute-result-panel/index.tsx",
2141
2141
  "sha256": "25d77ebe4fb3f1a6878bce6838af854ee9f823b198742de152bd0ab10b8e6ee6",
2142
2142
  "adapted": "src/coze/source/components/node-wrapper/execute-result-panel/index.tsx",
2143
- "adaptedSha256": "5ba4fb90ef3d5a747eeb1b4c1bd4e70faab29f8ae7591c7a15263519c77d91b9",
2144
- "changes": "Copied upstream component/render tree and LESS. Imports adapted to explicit ArcBase per-instance contexts; no Coze API, account, project or global store. React 19 types updated. See compat/ for integration code."
2143
+ "adaptedSha256": "7e2ec3d30ed5bc98b58ac126ae6f290f7c76538b1bc97384143f95b7372fcf22",
2144
+ "changes": "Copied upstream component/render tree and LESS. Imports adapted to explicit ArcBase per-instance contexts; no Coze API, account, project or global store. React 19 types updated. See compat/ for integration code. Result values use the independent read-only NodeRunObservation model, which accepts native JSON DTOs and host-provided observation records without redefining an HTTP schema."
2145
2145
  },
2146
2146
  {
2147
2147
  "path": "frontend/packages/workflow/playground/src/components/node-wrapper/execute-result-panel/index.module.less",
@@ -1,22 +1,22 @@
1
- /*
2
- * Copyright 2025 coze-dev Authors
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import { IconCozPlayFill } from '@coze-arch/coze-design/icons';
18
- import { Button, type ButtonProps } from '@coze-arch/coze-design';
19
-
20
- export const BaseTestButton: React.FC<ButtonProps> = props => (
21
- <Button color="green" icon={<IconCozPlayFill />} {...props} />
22
- );
1
+ /*
2
+ * Copyright 2025 coze-dev Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { IconCozPlayFill } from '@coze-arch/coze-design/icons';
18
+ import { Button, type ButtonProps } from '@coze-arch/coze-design';
19
+
20
+ export const BaseTestButton: React.FC<ButtonProps> = props => (
21
+ <Button color="green" icon={<IconCozPlayFill />} {...props} />
22
+ );
@@ -1,68 +1,68 @@
1
- /*
2
- * Copyright 2025 coze-dev Authors
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import { type ReactNode, type FC, type CSSProperties } from 'react';
18
-
19
- import classNames from 'classnames';
20
-
21
- interface ICommentContainer {
22
- focused: boolean;
23
- children?: ReactNode;
24
- style?: React.CSSProperties;
25
- }
26
-
27
- export const CommentContainer: FC<ICommentContainer> = props => {
28
- const { focused, children, style } = props;
29
-
30
- const scrollbarStyle = {
31
- // scroll bar style
32
- scrollbarWidth: 'thin',
33
- scrollbarColor: 'rgb(159 159 158 / 65%) transparent',
34
- // Styles for WebKit browsers such as Chrome, Safari
35
- '&::-webkit-scrollbar': {
36
- width: '4px',
37
- },
38
- '&::-webkit-scrollbar-track': {
39
- background: 'transparent',
40
- },
41
- '&::-webkit-scrollbar-thumb': {
42
- backgroundColor: 'rgb(159 159 158 / 65%)',
43
- borderRadius: '20px',
44
- border: '2px solid transparent',
45
- },
46
- } as unknown as CSSProperties;
47
-
48
- return (
49
- <div
50
- className={classNames(
51
- 'workflow-comment-container flex flex-col items-start justify-start w-full h-full rounded-[8px] outline-solid py-[6px] px-[10px] overflow-y-auto overflow-x-hidden outline-[1px]',
52
- {
53
- 'bg-[#FFF3EA] outline-[#FF811A]': focused,
54
- 'bg-[#FFFBED] outline-[#F2B600]': !focused,
55
- },
56
- )}
57
- data-flow-editor-selectable="false"
58
- style={{
59
- // Tailwind does not support the style of outline, so you need to use style to set it here.
60
- outline: focused ? '1px solid #FF811A' : '1px solid #F2B600',
61
- ...scrollbarStyle,
62
- ...style,
63
- }}
64
- >
65
- {children}
66
- </div>
67
- );
68
- };
1
+ /*
2
+ * Copyright 2025 coze-dev Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { type ReactNode, type FC, type CSSProperties } from 'react';
18
+
19
+ import classNames from 'classnames';
20
+
21
+ interface ICommentContainer {
22
+ focused: boolean;
23
+ children?: ReactNode;
24
+ style?: React.CSSProperties;
25
+ }
26
+
27
+ export const CommentContainer: FC<ICommentContainer> = props => {
28
+ const { focused, children, style } = props;
29
+
30
+ const scrollbarStyle = {
31
+ // scroll bar style
32
+ scrollbarWidth: 'thin',
33
+ scrollbarColor: 'rgb(159 159 158 / 65%) transparent',
34
+ // Styles for WebKit browsers such as Chrome, Safari
35
+ '&::-webkit-scrollbar': {
36
+ width: '4px',
37
+ },
38
+ '&::-webkit-scrollbar-track': {
39
+ background: 'transparent',
40
+ },
41
+ '&::-webkit-scrollbar-thumb': {
42
+ backgroundColor: 'rgb(159 159 158 / 65%)',
43
+ borderRadius: '20px',
44
+ border: '2px solid transparent',
45
+ },
46
+ } as unknown as CSSProperties;
47
+
48
+ return (
49
+ <div
50
+ className={classNames(
51
+ 'workflow-comment-container flex flex-col items-start justify-start w-full h-full rounded-[8px] outline-solid py-[6px] px-[10px] overflow-y-auto overflow-x-hidden outline-[1px]',
52
+ {
53
+ 'bg-[#FFF3EA] outline-[#FF811A]': focused,
54
+ 'bg-[#FFFBED] outline-[#F2B600]': !focused,
55
+ },
56
+ )}
57
+ data-flow-editor-selectable="false"
58
+ style={{
59
+ // Tailwind does not support the style of outline, so you need to use style to set it here.
60
+ outline: focused ? '1px solid #FF811A' : '1px solid #F2B600',
61
+ ...scrollbarStyle,
62
+ ...style,
63
+ }}
64
+ >
65
+ {children}
66
+ </div>
67
+ );
68
+ };