@foresthubai/workflow-builder 0.4.3 → 0.4.5

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 (414) hide show
  1. package/LICENSE +661 -661
  2. package/NOTICE +16 -16
  3. package/README.md +110 -110
  4. package/dist/BuilderLayout.d.ts.map +1 -1
  5. package/dist/BuilderLayout.js +52 -61
  6. package/dist/BuilderLayout.js.map +1 -1
  7. package/dist/Canvas.d.ts.map +1 -1
  8. package/dist/Canvas.js +10 -3
  9. package/dist/Canvas.js.map +1 -1
  10. package/dist/CanvasEditor.d.ts.map +1 -1
  11. package/dist/CanvasEditor.js.map +1 -1
  12. package/dist/CanvasTabsToolbar.d.ts.map +1 -1
  13. package/dist/CanvasTabsToolbar.js +3 -0
  14. package/dist/CanvasTabsToolbar.js.map +1 -1
  15. package/dist/RightConfigPanel.d.ts.map +1 -1
  16. package/dist/RightConfigPanel.js +3 -0
  17. package/dist/RightConfigPanel.js.map +1 -1
  18. package/dist/WorkflowBuilder.d.ts +7 -13
  19. package/dist/WorkflowBuilder.d.ts.map +1 -1
  20. package/dist/WorkflowBuilder.js +25 -13
  21. package/dist/WorkflowBuilder.js.map +1 -1
  22. package/dist/cn.d.ts.map +1 -1
  23. package/dist/cn.js +3 -0
  24. package/dist/cn.js.map +1 -1
  25. package/dist/components/ui/add-button.d.ts.map +1 -1
  26. package/dist/components/ui/add-button.js +3 -0
  27. package/dist/components/ui/add-button.js.map +1 -1
  28. package/dist/components/ui/alert-dialog.d.ts.map +1 -1
  29. package/dist/components/ui/alert-dialog.js +3 -0
  30. package/dist/components/ui/alert-dialog.js.map +1 -1
  31. package/dist/components/ui/alert.d.ts.map +1 -1
  32. package/dist/components/ui/alert.js +3 -0
  33. package/dist/components/ui/alert.js.map +1 -1
  34. package/dist/components/ui/badge.d.ts.map +1 -1
  35. package/dist/components/ui/badge.js.map +1 -1
  36. package/dist/components/ui/button.d.ts.map +1 -1
  37. package/dist/components/ui/button.js +3 -0
  38. package/dist/components/ui/button.js.map +1 -1
  39. package/dist/components/ui/card.d.ts.map +1 -1
  40. package/dist/components/ui/card.js +3 -0
  41. package/dist/components/ui/card.js.map +1 -1
  42. package/dist/components/ui/checkbox.d.ts.map +1 -1
  43. package/dist/components/ui/checkbox.js +3 -0
  44. package/dist/components/ui/checkbox.js.map +1 -1
  45. package/dist/components/ui/collapsible.d.ts.map +1 -1
  46. package/dist/components/ui/collapsible.js +3 -0
  47. package/dist/components/ui/collapsible.js.map +1 -1
  48. package/dist/components/ui/command.d.ts +2 -2
  49. package/dist/components/ui/command.d.ts.map +1 -1
  50. package/dist/components/ui/command.js +3 -0
  51. package/dist/components/ui/command.js.map +1 -1
  52. package/dist/components/ui/delete-button.d.ts.map +1 -1
  53. package/dist/components/ui/delete-button.js +3 -0
  54. package/dist/components/ui/delete-button.js.map +1 -1
  55. package/dist/components/ui/dialog.d.ts.map +1 -1
  56. package/dist/components/ui/dialog.js +3 -0
  57. package/dist/components/ui/dialog.js.map +1 -1
  58. package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
  59. package/dist/components/ui/dropdown-menu.js +3 -0
  60. package/dist/components/ui/dropdown-menu.js.map +1 -1
  61. package/dist/components/ui/input.d.ts +1 -1
  62. package/dist/components/ui/input.d.ts.map +1 -1
  63. package/dist/components/ui/input.js +3 -0
  64. package/dist/components/ui/input.js.map +1 -1
  65. package/dist/components/ui/label.d.ts.map +1 -1
  66. package/dist/components/ui/label.js +3 -0
  67. package/dist/components/ui/label.js.map +1 -1
  68. package/dist/components/ui/readonly-banner.d.ts.map +1 -1
  69. package/dist/components/ui/readonly-banner.js +3 -0
  70. package/dist/components/ui/readonly-banner.js.map +1 -1
  71. package/dist/components/ui/resizable.d.ts +1 -1
  72. package/dist/components/ui/resizable.d.ts.map +1 -1
  73. package/dist/components/ui/resizable.js +3 -0
  74. package/dist/components/ui/resizable.js.map +1 -1
  75. package/dist/components/ui/scroll-area.d.ts.map +1 -1
  76. package/dist/components/ui/scroll-area.js +3 -0
  77. package/dist/components/ui/scroll-area.js.map +1 -1
  78. package/dist/components/ui/select.d.ts.map +1 -1
  79. package/dist/components/ui/select.js +3 -0
  80. package/dist/components/ui/select.js.map +1 -1
  81. package/dist/components/ui/separator.d.ts.map +1 -1
  82. package/dist/components/ui/separator.js +3 -0
  83. package/dist/components/ui/separator.js.map +1 -1
  84. package/dist/components/ui/switch.d.ts.map +1 -1
  85. package/dist/components/ui/switch.js +3 -0
  86. package/dist/components/ui/switch.js.map +1 -1
  87. package/dist/components/ui/textarea.d.ts +1 -1
  88. package/dist/components/ui/textarea.d.ts.map +1 -1
  89. package/dist/components/ui/textarea.js +3 -0
  90. package/dist/components/ui/textarea.js.map +1 -1
  91. package/dist/components/ui/toast.d.ts.map +1 -1
  92. package/dist/components/ui/toast.js +3 -0
  93. package/dist/components/ui/toast.js.map +1 -1
  94. package/dist/components/ui/toaster.d.ts.map +1 -1
  95. package/dist/components/ui/toaster.js +3 -0
  96. package/dist/components/ui/toaster.js.map +1 -1
  97. package/dist/components/ui/toggle-group.d.ts.map +1 -1
  98. package/dist/components/ui/toggle-group.js +3 -0
  99. package/dist/components/ui/toggle-group.js.map +1 -1
  100. package/dist/components/ui/toggle.d.ts.map +1 -1
  101. package/dist/components/ui/toggle.js +3 -0
  102. package/dist/components/ui/toggle.js.map +1 -1
  103. package/dist/components/ui/tooltip.d.ts.map +1 -1
  104. package/dist/components/ui/tooltip.js +3 -0
  105. package/dist/components/ui/tooltip.js.map +1 -1
  106. package/dist/dialogs/NodePickerDialog.d.ts.map +1 -1
  107. package/dist/dialogs/NodePickerDialog.js +3 -0
  108. package/dist/dialogs/NodePickerDialog.js.map +1 -1
  109. package/dist/dialogs/ValidationDialog.d.ts.map +1 -1
  110. package/dist/dialogs/ValidationDialog.js +3 -0
  111. package/dist/dialogs/ValidationDialog.js.map +1 -1
  112. package/dist/graph/BaseNode.d.ts.map +1 -1
  113. package/dist/graph/BaseNode.js +21 -16
  114. package/dist/graph/BaseNode.js.map +1 -1
  115. package/dist/graph/CustomEdge.d.ts.map +1 -1
  116. package/dist/graph/CustomEdge.js +4 -1
  117. package/dist/graph/CustomEdge.js.map +1 -1
  118. package/dist/graph/CustomNode.d.ts.map +1 -1
  119. package/dist/graph/CustomNode.js +3 -0
  120. package/dist/graph/CustomNode.js.map +1 -1
  121. package/dist/graph/FunctionCallNode.d.ts.map +1 -1
  122. package/dist/graph/FunctionCallNode.js.map +1 -1
  123. package/dist/graph/PortHandle.d.ts.map +1 -1
  124. package/dist/graph/PortHandle.js.map +1 -1
  125. package/dist/graph/reactFlowRegistry.d.ts.map +1 -1
  126. package/dist/graph/reactFlowRegistry.js +3 -0
  127. package/dist/graph/reactFlowRegistry.js.map +1 -1
  128. package/dist/hooks/use-toast.d.ts.map +1 -1
  129. package/dist/hooks/use-toast.js +3 -0
  130. package/dist/hooks/use-toast.js.map +1 -1
  131. package/dist/hooks/useAvailableVariables.d.ts.map +1 -1
  132. package/dist/hooks/useAvailableVariables.js +3 -0
  133. package/dist/hooks/useAvailableVariables.js.map +1 -1
  134. package/dist/hooks/useCanvasHistory.d.ts.map +1 -1
  135. package/dist/hooks/useCanvasHistory.js +3 -0
  136. package/dist/hooks/useCanvasHistory.js.map +1 -1
  137. package/dist/hooks/useCanvasTabs.d.ts.map +1 -1
  138. package/dist/hooks/useCanvasTabs.js +3 -0
  139. package/dist/hooks/useCanvasTabs.js.map +1 -1
  140. package/dist/hooks/useFunctionDiagnosticsSync.d.ts.map +1 -1
  141. package/dist/hooks/useFunctionDiagnosticsSync.js +3 -0
  142. package/dist/hooks/useFunctionDiagnosticsSync.js.map +1 -1
  143. package/dist/hooks/useFunctionRegistry.d.ts.map +1 -1
  144. package/dist/hooks/useFunctionRegistry.js +3 -0
  145. package/dist/hooks/useFunctionRegistry.js.map +1 -1
  146. package/dist/hooks/useFunctions.d.ts.map +1 -1
  147. package/dist/hooks/useFunctions.js +3 -0
  148. package/dist/hooks/useFunctions.js.map +1 -1
  149. package/dist/hooks/useGraph.d.ts.map +1 -1
  150. package/dist/hooks/useGraph.js +3 -0
  151. package/dist/hooks/useGraph.js.map +1 -1
  152. package/dist/hooks/useNodeDefinitions.d.ts.map +1 -1
  153. package/dist/hooks/useNodeDefinitions.js +3 -0
  154. package/dist/hooks/useNodeDefinitions.js.map +1 -1
  155. package/dist/hooks/useParamErrors.d.ts.map +1 -1
  156. package/dist/hooks/useParamErrors.js +3 -0
  157. package/dist/hooks/useParamErrors.js.map +1 -1
  158. package/dist/hooks/useResolvedTheme.d.ts.map +1 -1
  159. package/dist/hooks/useResolvedTheme.js +3 -0
  160. package/dist/hooks/useResolvedTheme.js.map +1 -1
  161. package/dist/hooks/useResourceDiagnosticsSync.d.ts.map +1 -1
  162. package/dist/hooks/useResourceDiagnosticsSync.js +3 -0
  163. package/dist/hooks/useResourceDiagnosticsSync.js.map +1 -1
  164. package/dist/hooks/useSuppressThemeTransition.d.ts.map +1 -1
  165. package/dist/hooks/useSuppressThemeTransition.js +3 -0
  166. package/dist/hooks/useSuppressThemeTransition.js.map +1 -1
  167. package/dist/hooks/useWorkflowSerialization.d.ts.map +1 -1
  168. package/dist/hooks/useWorkflowSerialization.js +3 -0
  169. package/dist/hooks/useWorkflowSerialization.js.map +1 -1
  170. package/dist/i18n/index.d.ts.map +1 -1
  171. package/dist/i18n/index.js +3 -0
  172. package/dist/i18n/index.js.map +1 -1
  173. package/dist/index.d.ts +1 -1
  174. package/dist/index.d.ts.map +1 -1
  175. package/dist/index.js +3 -0
  176. package/dist/index.js.map +1 -1
  177. package/dist/inputs/ExpressionInput.d.ts.map +1 -1
  178. package/dist/inputs/ExpressionInput.js +3 -0
  179. package/dist/inputs/ExpressionInput.js.map +1 -1
  180. package/dist/inputs/ParameterEditor.d.ts.map +1 -1
  181. package/dist/inputs/ParameterEditor.js +3 -0
  182. package/dist/inputs/ParameterEditor.js.map +1 -1
  183. package/dist/inputs/PortSection.d.ts.map +1 -1
  184. package/dist/inputs/PortSection.js.map +1 -1
  185. package/dist/mode.d.ts +11 -0
  186. package/dist/mode.d.ts.map +1 -0
  187. package/dist/mode.js +8 -0
  188. package/dist/mode.js.map +1 -0
  189. package/dist/panels/BuilderSidebar.d.ts.map +1 -1
  190. package/dist/panels/BuilderSidebar.js +3 -0
  191. package/dist/panels/BuilderSidebar.js.map +1 -1
  192. package/dist/panels/ChannelConfigPanel.d.ts.map +1 -1
  193. package/dist/panels/ChannelConfigPanel.js +3 -0
  194. package/dist/panels/ChannelConfigPanel.js.map +1 -1
  195. package/dist/panels/ChannelsPanel.d.ts.map +1 -1
  196. package/dist/panels/ChannelsPanel.js +3 -0
  197. package/dist/panels/ChannelsPanel.js.map +1 -1
  198. package/dist/panels/DebugConsolePanel.d.ts.map +1 -1
  199. package/dist/panels/DebugConsolePanel.js +3 -0
  200. package/dist/panels/DebugConsolePanel.js.map +1 -1
  201. package/dist/panels/DebugContextPanel.d.ts.map +1 -1
  202. package/dist/panels/DebugContextPanel.js +3 -0
  203. package/dist/panels/DebugContextPanel.js.map +1 -1
  204. package/dist/panels/DebugExternalIOPanel.d.ts.map +1 -1
  205. package/dist/panels/DebugExternalIOPanel.js +3 -0
  206. package/dist/panels/DebugExternalIOPanel.js.map +1 -1
  207. package/dist/panels/DiagnosticsPanel.d.ts.map +1 -1
  208. package/dist/panels/DiagnosticsPanel.js +3 -0
  209. package/dist/panels/DiagnosticsPanel.js.map +1 -1
  210. package/dist/panels/EdgeConfigPanel.d.ts.map +1 -1
  211. package/dist/panels/EdgeConfigPanel.js +4 -1
  212. package/dist/panels/EdgeConfigPanel.js.map +1 -1
  213. package/dist/panels/FunctionConfigPanel.d.ts.map +1 -1
  214. package/dist/panels/FunctionConfigPanel.js +4 -1
  215. package/dist/panels/FunctionConfigPanel.js.map +1 -1
  216. package/dist/panels/FunctionListPanel.d.ts.map +1 -1
  217. package/dist/panels/FunctionListPanel.js +3 -0
  218. package/dist/panels/FunctionListPanel.js.map +1 -1
  219. package/dist/panels/MemoryConfigPanel.d.ts.map +1 -1
  220. package/dist/panels/MemoryConfigPanel.js +3 -0
  221. package/dist/panels/MemoryConfigPanel.js.map +1 -1
  222. package/dist/panels/MemoryPanel.d.ts.map +1 -1
  223. package/dist/panels/MemoryPanel.js +3 -0
  224. package/dist/panels/MemoryPanel.js.map +1 -1
  225. package/dist/panels/ModelConfigPanel.d.ts.map +1 -1
  226. package/dist/panels/ModelConfigPanel.js +3 -0
  227. package/dist/panels/ModelConfigPanel.js.map +1 -1
  228. package/dist/panels/ModelsPanel.d.ts.map +1 -1
  229. package/dist/panels/ModelsPanel.js +3 -0
  230. package/dist/panels/ModelsPanel.js.map +1 -1
  231. package/dist/panels/NodeConfigPanel.d.ts.map +1 -1
  232. package/dist/panels/NodeConfigPanel.js +4 -1
  233. package/dist/panels/NodeConfigPanel.js.map +1 -1
  234. package/dist/panels/NodeLibrary.d.ts.map +1 -1
  235. package/dist/panels/NodeLibrary.js +4 -1
  236. package/dist/panels/NodeLibrary.js.map +1 -1
  237. package/dist/panels/ResourceConfigPanel.d.ts.map +1 -1
  238. package/dist/panels/ResourceConfigPanel.js +4 -1
  239. package/dist/panels/ResourceConfigPanel.js.map +1 -1
  240. package/dist/panels/ResourceListPanel.d.ts.map +1 -1
  241. package/dist/panels/ResourceListPanel.js +4 -1
  242. package/dist/panels/ResourceListPanel.js.map +1 -1
  243. package/dist/panels/VariableConfigPanel.d.ts.map +1 -1
  244. package/dist/panels/VariableConfigPanel.js +4 -1
  245. package/dist/panels/VariableConfigPanel.js.map +1 -1
  246. package/dist/panels/VariablesPanel.d.ts.map +1 -1
  247. package/dist/panels/VariablesPanel.js +4 -1
  248. package/dist/panels/VariablesPanel.js.map +1 -1
  249. package/dist/stores/canvasStore.d.ts.map +1 -1
  250. package/dist/stores/canvasStore.js +3 -0
  251. package/dist/stores/canvasStore.js.map +1 -1
  252. package/dist/stores/debugStore.d.ts.map +1 -1
  253. package/dist/stores/debugStore.js +3 -0
  254. package/dist/stores/debugStore.js.map +1 -1
  255. package/dist/stores/diagnosticsStore.d.ts.map +1 -1
  256. package/dist/stores/diagnosticsStore.js +3 -0
  257. package/dist/stores/diagnosticsStore.js.map +1 -1
  258. package/dist/stores/editorStore.d.ts +1 -1
  259. package/dist/stores/editorStore.d.ts.map +1 -1
  260. package/dist/stores/editorStore.js +3 -0
  261. package/dist/stores/editorStore.js.map +1 -1
  262. package/dist/utils/categoryConstants.d.ts.map +1 -1
  263. package/dist/utils/categoryConstants.js +3 -0
  264. package/dist/utils/categoryConstants.js.map +1 -1
  265. package/dist/utils/channelOperations.d.ts.map +1 -1
  266. package/dist/utils/channelOperations.js +3 -0
  267. package/dist/utils/channelOperations.js.map +1 -1
  268. package/dist/utils/connectionRules.d.ts +3 -1
  269. package/dist/utils/connectionRules.d.ts.map +1 -1
  270. package/dist/utils/connectionRules.js +11 -16
  271. package/dist/utils/connectionRules.js.map +1 -1
  272. package/dist/utils/functionOperations.d.ts.map +1 -1
  273. package/dist/utils/functionOperations.js +3 -0
  274. package/dist/utils/functionOperations.js.map +1 -1
  275. package/dist/utils/graphOperations.d.ts.map +1 -1
  276. package/dist/utils/graphOperations.js +3 -0
  277. package/dist/utils/graphOperations.js.map +1 -1
  278. package/dist/utils/history.d.ts.map +1 -1
  279. package/dist/utils/history.js +4 -1
  280. package/dist/utils/history.js.map +1 -1
  281. package/dist/utils/memoryOperations.d.ts.map +1 -1
  282. package/dist/utils/memoryOperations.js +3 -0
  283. package/dist/utils/memoryOperations.js.map +1 -1
  284. package/dist/utils/migrateFunctionNodes.d.ts.map +1 -1
  285. package/dist/utils/migrateFunctionNodes.js +3 -0
  286. package/dist/utils/migrateFunctionNodes.js.map +1 -1
  287. package/dist/utils/modelOperations.d.ts.map +1 -1
  288. package/dist/utils/modelOperations.js +3 -0
  289. package/dist/utils/modelOperations.js.map +1 -1
  290. package/dist/utils/paramDisplay.d.ts.map +1 -1
  291. package/dist/utils/paramDisplay.js +3 -0
  292. package/dist/utils/paramDisplay.js.map +1 -1
  293. package/dist/utils/resourceHelpers.d.ts.map +1 -1
  294. package/dist/utils/resourceHelpers.js +3 -0
  295. package/dist/utils/resourceHelpers.js.map +1 -1
  296. package/dist/utils/translation.d.ts.map +1 -1
  297. package/dist/utils/translation.js +3 -0
  298. package/dist/utils/translation.js.map +1 -1
  299. package/dist/utils/variableOperations.d.ts.map +1 -1
  300. package/dist/utils/variableOperations.js +3 -0
  301. package/dist/utils/variableOperations.js.map +1 -1
  302. package/package.json +2 -2
  303. package/src/BuilderLayout.tsx +338 -345
  304. package/src/Canvas.tsx +270 -261
  305. package/src/CanvasEditor.tsx +146 -142
  306. package/src/CanvasTabsToolbar.tsx +180 -176
  307. package/src/RightConfigPanel.tsx +270 -266
  308. package/src/WorkflowBuilder.tsx +423 -408
  309. package/src/cn.ts +10 -6
  310. package/src/components/ui/add-button.tsx +43 -39
  311. package/src/components/ui/alert-dialog.tsx +145 -141
  312. package/src/components/ui/alert.tsx +63 -59
  313. package/src/components/ui/badge.tsx +40 -36
  314. package/src/components/ui/button.tsx +89 -85
  315. package/src/components/ui/card.tsx +83 -79
  316. package/src/components/ui/checkbox.tsx +32 -28
  317. package/src/components/ui/collapsible.tsx +13 -9
  318. package/src/components/ui/command.tsx +157 -153
  319. package/src/components/ui/delete-button.tsx +27 -23
  320. package/src/components/ui/dialog.tsx +129 -125
  321. package/src/components/ui/dropdown-menu.tsx +202 -198
  322. package/src/components/ui/input.tsx +59 -55
  323. package/src/components/ui/label.tsx +28 -24
  324. package/src/components/ui/readonly-banner.tsx +19 -15
  325. package/src/components/ui/resizable.tsx +47 -43
  326. package/src/components/ui/scroll-area.tsx +106 -102
  327. package/src/components/ui/select.tsx +164 -160
  328. package/src/components/ui/separator.tsx +33 -29
  329. package/src/components/ui/switch.tsx +31 -27
  330. package/src/components/ui/textarea.tsx +55 -51
  331. package/src/components/ui/toast.tsx +131 -127
  332. package/src/components/ui/toaster.tsx +37 -33
  333. package/src/components/ui/toggle-group.tsx +63 -59
  334. package/src/components/ui/toggle.tsx +47 -43
  335. package/src/components/ui/tooltip.tsx +36 -32
  336. package/src/dialogs/NodePickerDialog.tsx +88 -84
  337. package/src/dialogs/ValidationDialog.tsx +188 -184
  338. package/src/graph/BaseNode.tsx +563 -557
  339. package/src/graph/CustomEdge.tsx +189 -185
  340. package/src/graph/CustomNode.tsx +20 -16
  341. package/src/graph/FunctionCallNode.tsx +34 -30
  342. package/src/graph/PortHandle.tsx +193 -189
  343. package/src/graph/reactFlowRegistry.ts +30 -26
  344. package/src/hooks/use-toast.ts +129 -125
  345. package/src/hooks/useAvailableVariables.ts +24 -20
  346. package/src/hooks/useCanvasHistory.ts +26 -22
  347. package/src/hooks/useCanvasTabs.ts +172 -168
  348. package/src/hooks/useFunctionDiagnosticsSync.ts +44 -40
  349. package/src/hooks/useFunctionRegistry.ts +30 -26
  350. package/src/hooks/useFunctions.ts +48 -44
  351. package/src/hooks/useGraph.ts +165 -161
  352. package/src/hooks/useNodeDefinitions.ts +86 -82
  353. package/src/hooks/useParamErrors.ts +30 -26
  354. package/src/hooks/useResolvedTheme.ts +34 -30
  355. package/src/hooks/useResourceDiagnosticsSync.ts +62 -58
  356. package/src/hooks/useSuppressThemeTransition.ts +83 -79
  357. package/src/hooks/useWorkflowSerialization.ts +145 -141
  358. package/src/i18n/index.ts +57 -53
  359. package/src/i18n/locales/de.json +501 -501
  360. package/src/i18n/locales/en.json +557 -557
  361. package/src/index.ts +31 -27
  362. package/src/inputs/ExpressionInput.tsx +301 -297
  363. package/src/inputs/ParameterEditor.tsx +519 -515
  364. package/src/inputs/PortSection.tsx +148 -144
  365. package/src/mode.ts +15 -0
  366. package/src/panels/BuilderSidebar.tsx +305 -301
  367. package/src/panels/ChannelConfigPanel.tsx +53 -49
  368. package/src/panels/ChannelsPanel.tsx +32 -28
  369. package/src/panels/DebugConsolePanel.tsx +77 -73
  370. package/src/panels/DebugContextPanel.tsx +81 -77
  371. package/src/panels/DebugExternalIOPanel.tsx +184 -180
  372. package/src/panels/DiagnosticsPanel.tsx +174 -170
  373. package/src/panels/EdgeConfigPanel.tsx +108 -104
  374. package/src/panels/FunctionConfigPanel.tsx +183 -179
  375. package/src/panels/FunctionListPanel.tsx +49 -45
  376. package/src/panels/MemoryConfigPanel.tsx +59 -55
  377. package/src/panels/MemoryPanel.tsx +44 -40
  378. package/src/panels/ModelConfigPanel.tsx +45 -41
  379. package/src/panels/ModelsPanel.tsx +40 -36
  380. package/src/panels/NodeConfigPanel.tsx +634 -630
  381. package/src/panels/NodeLibrary.tsx +292 -288
  382. package/src/panels/ResourceConfigPanel.tsx +136 -132
  383. package/src/panels/ResourceListPanel.tsx +117 -113
  384. package/src/panels/VariableConfigPanel.tsx +165 -161
  385. package/src/panels/VariablesPanel.tsx +149 -145
  386. package/src/stores/canvasStore.test.ts +48 -44
  387. package/src/stores/canvasStore.ts +249 -245
  388. package/src/stores/debugStore.ts +78 -74
  389. package/src/stores/diagnosticsStore.ts +134 -130
  390. package/src/stores/editorStore.ts +194 -190
  391. package/src/styles/index.css +526 -526
  392. package/src/utils/categoryConstants.ts +30 -26
  393. package/src/utils/channelOperations.ts +90 -86
  394. package/src/utils/connectionRules.ts +140 -137
  395. package/src/utils/functionOperations.ts +183 -179
  396. package/src/utils/graphOperations.ts +554 -550
  397. package/src/utils/history.test.ts +92 -0
  398. package/src/utils/history.ts +211 -207
  399. package/src/utils/memoryOperations.ts +61 -57
  400. package/src/utils/migrateFunctionNodes.ts +111 -107
  401. package/src/utils/modelOperations.ts +59 -55
  402. package/src/utils/paramDisplay.ts +75 -71
  403. package/src/utils/resourceHelpers.ts +36 -32
  404. package/src/utils/translation.ts +32 -28
  405. package/src/utils/variableOperations.ts +79 -75
  406. package/tailwind-preset.ts +170 -166
  407. package/dist/lib/utils.d.ts +0 -3
  408. package/dist/lib/utils.d.ts.map +0 -1
  409. package/dist/lib/utils.js +0 -6
  410. package/dist/lib/utils.js.map +0 -1
  411. package/dist/toolbars/CanvasTabsToolbar.d.ts +0 -11
  412. package/dist/toolbars/CanvasTabsToolbar.d.ts.map +0 -1
  413. package/dist/toolbars/CanvasTabsToolbar.js +0 -101
  414. package/dist/toolbars/CanvasTabsToolbar.js.map +0 -1
@@ -1,75 +1,79 @@
1
- import { declaredVarKey, type DeclaredVariable } from "@foresthubai/workflow-core/variable";
2
- import type { DataType } from "@foresthubai/workflow-core";
3
- import { getOrCreateCanvasStore } from "../stores/canvasStore";
4
- import { useEditorStore } from "../stores/editorStore";
5
- import { generateId } from "@foresthubai/workflow-core/id";
6
-
7
- /**
8
- * Per-canvas mutation helpers for declared variables. Mirrors
9
- * utils/modelOperations.ts, but declared variables are canvas-scoped (they live
10
- * in canvasStore.variables, not editorStore), so every helper takes a canvasId.
11
- *
12
- * Each write takes a history checkpoint first, matching the inline editor it
13
- * replaces, so a single edit is one undo step.
14
- */
15
-
16
- /** Pick a fresh `var<N>` name that doesn't collide with existing declared variables. */
17
- function nextDefaultName(existingNames: string[]): string {
18
- let counter = 1;
19
- while (existingNames.includes(`var${counter}`)) counter++;
20
- return `var${counter}`;
21
- }
22
-
23
- /** Create a new declared variable on the given canvas. Returns its uid. */
24
- export function addDeclaredVariable(canvasId: string): string {
25
- const store = getOrCreateCanvasStore(canvasId);
26
- store.takeCheckpoint();
27
- const existingNames = Object.values(store.getState().variables)
28
- .filter((v): v is DeclaredVariable => v.kind === "declared")
29
- .map((v) => v.name);
30
- const uid = generateId();
31
- const newVar: DeclaredVariable = {
32
- kind: "declared",
33
- uid,
34
- name: nextDefaultName(existingNames),
35
- dataType: "int",
36
- };
37
- store.getState().setVariables((vars) => ({ ...vars, [declaredVarKey(uid)]: newVar }));
38
- return uid;
39
- }
40
-
41
- /** Apply a partial patch to a declared variable. `kind`/`uid` are fixed. */
42
- export function updateDeclaredVariable(canvasId: string, uid: string, updates: Partial<Omit<DeclaredVariable, "kind" | "uid">>): void {
43
- const store = getOrCreateCanvasStore(canvasId);
44
- store.takeCheckpoint();
45
- const key = declaredVarKey(uid);
46
- store.getState().setVariables((vars) => {
47
- const existing = vars[key];
48
- if (!existing || existing.kind !== "declared") return vars;
49
- return { ...vars, [key]: { ...existing, ...updates } };
50
- });
51
- }
52
-
53
- /**
54
- * Change a declared variable's dataType. The previous initialValue is dropped —
55
- * a value entered for one type rarely makes sense for another, so we reset
56
- * rather than attempt a lossy coercion.
57
- */
58
- export function setDeclaredVariableType(canvasId: string, uid: string, dataType: DataType): void {
59
- updateDeclaredVariable(canvasId, uid, { dataType, initialValue: undefined });
60
- }
61
-
62
- /** Delete a declared variable and clear its selection if it was open. */
63
- export function deleteDeclaredVariable(canvasId: string, uid: string): void {
64
- const store = getOrCreateCanvasStore(canvasId);
65
- store.takeCheckpoint();
66
- const key = declaredVarKey(uid);
67
- store.getState().setVariables((vars) => {
68
- const { [key]: _drop, ...rest } = vars;
69
- return rest;
70
- });
71
- const sel = useEditorStore.getState().selection;
72
- if (sel.kind === "variable" && sel.uid === uid) {
73
- useEditorStore.getState().clearSelection();
74
- }
75
- }
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
+ // Copyright (c) 2026 ForestHub. All rights reserved.
3
+ // For commercial licensing, contact root@foresthub.ai
4
+
5
+ import { declaredVarKey, type DeclaredVariable } from "@foresthubai/workflow-core/variable";
6
+ import type { DataType } from "@foresthubai/workflow-core";
7
+ import { getOrCreateCanvasStore } from "../stores/canvasStore";
8
+ import { useEditorStore } from "../stores/editorStore";
9
+ import { generateId } from "@foresthubai/workflow-core/id";
10
+
11
+ /**
12
+ * Per-canvas mutation helpers for declared variables. Mirrors
13
+ * utils/modelOperations.ts, but declared variables are canvas-scoped (they live
14
+ * in canvasStore.variables, not editorStore), so every helper takes a canvasId.
15
+ *
16
+ * Each write takes a history checkpoint first, matching the inline editor it
17
+ * replaces, so a single edit is one undo step.
18
+ */
19
+
20
+ /** Pick a fresh `var<N>` name that doesn't collide with existing declared variables. */
21
+ function nextDefaultName(existingNames: string[]): string {
22
+ let counter = 1;
23
+ while (existingNames.includes(`var${counter}`)) counter++;
24
+ return `var${counter}`;
25
+ }
26
+
27
+ /** Create a new declared variable on the given canvas. Returns its uid. */
28
+ export function addDeclaredVariable(canvasId: string): string {
29
+ const store = getOrCreateCanvasStore(canvasId);
30
+ store.takeCheckpoint();
31
+ const existingNames = Object.values(store.getState().variables)
32
+ .filter((v): v is DeclaredVariable => v.kind === "declared")
33
+ .map((v) => v.name);
34
+ const uid = generateId();
35
+ const newVar: DeclaredVariable = {
36
+ kind: "declared",
37
+ uid,
38
+ name: nextDefaultName(existingNames),
39
+ dataType: "int",
40
+ };
41
+ store.getState().setVariables((vars) => ({ ...vars, [declaredVarKey(uid)]: newVar }));
42
+ return uid;
43
+ }
44
+
45
+ /** Apply a partial patch to a declared variable. `kind`/`uid` are fixed. */
46
+ export function updateDeclaredVariable(canvasId: string, uid: string, updates: Partial<Omit<DeclaredVariable, "kind" | "uid">>): void {
47
+ const store = getOrCreateCanvasStore(canvasId);
48
+ store.takeCheckpoint();
49
+ const key = declaredVarKey(uid);
50
+ store.getState().setVariables((vars) => {
51
+ const existing = vars[key];
52
+ if (!existing || existing.kind !== "declared") return vars;
53
+ return { ...vars, [key]: { ...existing, ...updates } };
54
+ });
55
+ }
56
+
57
+ /**
58
+ * Change a declared variable's dataType. The previous initialValue is dropped —
59
+ * a value entered for one type rarely makes sense for another, so we reset
60
+ * rather than attempt a lossy coercion.
61
+ */
62
+ export function setDeclaredVariableType(canvasId: string, uid: string, dataType: DataType): void {
63
+ updateDeclaredVariable(canvasId, uid, { dataType, initialValue: undefined });
64
+ }
65
+
66
+ /** Delete a declared variable and clear its selection if it was open. */
67
+ export function deleteDeclaredVariable(canvasId: string, uid: string): void {
68
+ const store = getOrCreateCanvasStore(canvasId);
69
+ store.takeCheckpoint();
70
+ const key = declaredVarKey(uid);
71
+ store.getState().setVariables((vars) => {
72
+ const { [key]: _drop, ...rest } = vars;
73
+ return rest;
74
+ });
75
+ const sel = useEditorStore.getState().selection;
76
+ if (sel.kind === "variable" && sel.uid === uid) {
77
+ useEditorStore.getState().clearSelection();
78
+ }
79
+ }
@@ -1,166 +1,170 @@
1
- import type { Config } from "tailwindcss";
2
- import animate from "tailwindcss-animate";
3
-
4
- /**
5
- * Tailwind preset for @foresthubai/workflow-builder.
6
- *
7
- * This is the single source of truth that binds the design-system tokens
8
- * defined in `src/styles/index.css` (raw HSL triplets like `--primary`) to the
9
- * Tailwind utility classes the builder's components reference (`bg-primary`,
10
- * `text-muted-foreground`, `border-border`, `bg-node-agent`, …). It also ships
11
- * the `darkMode` strategy, the accordion keyframes, and the
12
- * `tailwindcss-animate` plugin that the builder's shadcn components depend on.
13
- *
14
- * Any consumer embedding the builder must:
15
- * 1. spread this preset: `presets: [workflowBuilderPreset]`
16
- * 2. import the tokens once: `import "@foresthubai/workflow-builder/styles/index.css"`
17
- * 3. add the builder to their Tailwind `content` so its classes are emitted
18
- * (a glob over its built JS under node_modules/@foresthubai/workflow-builder,
19
- * or, when consuming source as this monorepo does, the builder's src tree).
20
- *
21
- * `content` is intentionally NOT part of the preset: its globs are
22
- * consumer-relative (source tree in this monorepo, node_modules in a published
23
- * install), so each consumer owns that path.
24
- */
25
- const preset: Omit<Config, "content"> = {
26
- darkMode: ["class"],
27
- theme: {
28
- extend: {
29
- fontFamily: {
30
- // The builder's base body face (applied on the .fh-builder root)
31
- // and its display/heading face. Defined here so `font-sans`/`font-heading`
32
- // resolve to the builder's type even in portaled content (dialogs, menus)
33
- // that renders outside the root and can't inherit the root's font.
34
- sans: ["Poppins", "system-ui", "sans-serif"],
35
- heading: ["Inter", "system-ui", "sans-serif"],
36
- },
37
- colors: {
38
- // ───────────────────────────────────────────────────────────
39
- // GENERAL UI — surfaces, text, controls. Reusable by host apps.
40
- // ───────────────────────────────────────────────────────────
41
-
42
- // Surfaces & controls
43
- border: "hsl(var(--border))",
44
- input: "hsl(var(--border))",
45
- ring: "hsl(var(--ring))",
46
- background: "hsl(var(--background))",
47
- foreground: "hsl(var(--foreground))",
48
- field: "hsl(var(--field))",
49
- overlay: "hsl(var(--overlay))",
50
-
51
- primary: {
52
- DEFAULT: "hsl(var(--primary))",
53
- foreground: "hsl(var(--primary-foreground))",
54
- glow: "hsl(var(--primary-glow))",
55
- },
56
- secondary: {
57
- DEFAULT: "hsl(var(--secondary))",
58
- foreground: "hsl(var(--secondary-foreground))",
59
- },
60
- destructive: {
61
- DEFAULT: "hsl(var(--destructive))",
62
- foreground: "hsl(var(--destructive-foreground))",
63
- },
64
- muted: {
65
- DEFAULT: "hsl(var(--muted))",
66
- foreground: "hsl(var(--muted-foreground))",
67
- },
68
- accent: {
69
- DEFAULT: "hsl(var(--accent))",
70
- foreground: "hsl(var(--accent-foreground))",
71
- },
72
- popover: {
73
- DEFAULT: "hsl(var(--popover))",
74
- foreground: "hsl(var(--popover-foreground))",
75
- },
76
- card: {
77
- DEFAULT: "hsl(var(--card))",
78
- foreground: "hsl(var(--card-foreground))",
79
- },
80
-
81
- // Status
82
- success: {
83
- DEFAULT: "hsl(var(--success))",
84
- foreground: "hsl(var(--success-foreground))",
85
- },
86
- warning: {
87
- DEFAULT: "hsl(var(--warning))",
88
- foreground: "hsl(var(--warning-foreground))",
89
- },
90
-
91
- // Sidebar
92
- sidebar: {
93
- DEFAULT: "hsl(var(--sidebar-background))",
94
- foreground: "hsl(var(--sidebar-foreground))",
95
- primary: "hsl(var(--sidebar-primary))",
96
- "primary-foreground": "hsl(var(--sidebar-primary-foreground))",
97
- accent: "hsl(var(--sidebar-accent))",
98
- "accent-foreground": "hsl(var(--sidebar-accent-foreground))",
99
- border: "hsl(var(--sidebar-border))",
100
- ring: "hsl(var(--sidebar-ring))",
101
- },
102
-
103
- // ───────────────────────────────────────────────────────────
104
- // BUILDER / GRAPH ONLY — canvas, edges, node categories.
105
- // Host apps embedding the builder don't reference these.
106
- // ───────────────────────────────────────────────────────────
107
- canvas: {
108
- bg: "hsl(var(--canvas-background))",
109
- },
110
- panel: {
111
- background: "hsl(var(--panel-background))",
112
- border: "hsl(var(--panel-border))",
113
- },
114
- edge: {
115
- default: "hsl(var(--edge-default))",
116
- },
117
- "selection-glow": "hsl(var(--selection-glow))",
118
-
119
- // Node category signals
120
- node: {
121
- agent: "hsl(var(--node-agent))",
122
- input: "hsl(var(--node-input))",
123
- output: "hsl(var(--node-output))",
124
- trigger: "hsl(var(--node-trigger))",
125
- logic: "hsl(var(--node-logic))",
126
- data: "hsl(var(--node-data))",
127
- tool: "hsl(var(--node-tool))",
128
- function: "hsl(var(--node-function))",
129
- shadow: "hsl(var(--node-shadow))",
130
- },
131
- },
132
- borderRadius: {
133
- lg: "var(--radius)",
134
- md: "calc(var(--radius) - 2px)",
135
- sm: "calc(var(--radius) - 4px)",
136
- },
137
- backgroundImage: {
138
- "gradient-subtle": "var(--gradient-subtle)",
139
- "gradient-glass": "var(--gradient-glass)",
140
- },
141
- boxShadow: {
142
- sm: "var(--shadow-sm)",
143
- md: "var(--shadow-md)",
144
- lg: "var(--shadow-lg)",
145
- glow: "var(--shadow-glow)",
146
- },
147
- keyframes: {
148
- "accordion-down": {
149
- from: { height: "0" },
150
- to: { height: "var(--radix-accordion-content-height)" },
151
- },
152
- "accordion-up": {
153
- from: { height: "var(--radix-accordion-content-height)" },
154
- to: { height: "0" },
155
- },
156
- },
157
- animation: {
158
- "accordion-down": "accordion-down 0.2s ease-out",
159
- "accordion-up": "accordion-up 0.2s ease-out",
160
- },
161
- },
162
- },
163
- plugins: [animate],
164
- };
165
-
166
- export default preset;
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
+ // Copyright (c) 2026 ForestHub. All rights reserved.
3
+ // For commercial licensing, contact root@foresthub.ai
4
+
5
+ import type { Config } from "tailwindcss";
6
+ import animate from "tailwindcss-animate";
7
+
8
+ /**
9
+ * Tailwind preset for @foresthubai/workflow-builder.
10
+ *
11
+ * This is the single source of truth that binds the design-system tokens
12
+ * defined in `src/styles/index.css` (raw HSL triplets like `--primary`) to the
13
+ * Tailwind utility classes the builder's components reference (`bg-primary`,
14
+ * `text-muted-foreground`, `border-border`, `bg-node-agent`, …). It also ships
15
+ * the `darkMode` strategy, the accordion keyframes, and the
16
+ * `tailwindcss-animate` plugin that the builder's shadcn components depend on.
17
+ *
18
+ * Any consumer embedding the builder must:
19
+ * 1. spread this preset: `presets: [workflowBuilderPreset]`
20
+ * 2. import the tokens once: `import "@foresthubai/workflow-builder/styles/index.css"`
21
+ * 3. add the builder to their Tailwind `content` so its classes are emitted
22
+ * (a glob over its built JS under node_modules/@foresthubai/workflow-builder,
23
+ * or, when consuming source as this monorepo does, the builder's src tree).
24
+ *
25
+ * `content` is intentionally NOT part of the preset: its globs are
26
+ * consumer-relative (source tree in this monorepo, node_modules in a published
27
+ * install), so each consumer owns that path.
28
+ */
29
+ const preset: Omit<Config, "content"> = {
30
+ darkMode: ["class"],
31
+ theme: {
32
+ extend: {
33
+ fontFamily: {
34
+ // The builder's base body face (applied on the .fh-builder root)
35
+ // and its display/heading face. Defined here so `font-sans`/`font-heading`
36
+ // resolve to the builder's type even in portaled content (dialogs, menus)
37
+ // that renders outside the root and can't inherit the root's font.
38
+ sans: ["Poppins", "system-ui", "sans-serif"],
39
+ heading: ["Inter", "system-ui", "sans-serif"],
40
+ },
41
+ colors: {
42
+ // ───────────────────────────────────────────────────────────
43
+ // GENERAL UI — surfaces, text, controls. Reusable by host apps.
44
+ // ───────────────────────────────────────────────────────────
45
+
46
+ // Surfaces & controls
47
+ border: "hsl(var(--border))",
48
+ input: "hsl(var(--border))",
49
+ ring: "hsl(var(--ring))",
50
+ background: "hsl(var(--background))",
51
+ foreground: "hsl(var(--foreground))",
52
+ field: "hsl(var(--field))",
53
+ overlay: "hsl(var(--overlay))",
54
+
55
+ primary: {
56
+ DEFAULT: "hsl(var(--primary))",
57
+ foreground: "hsl(var(--primary-foreground))",
58
+ glow: "hsl(var(--primary-glow))",
59
+ },
60
+ secondary: {
61
+ DEFAULT: "hsl(var(--secondary))",
62
+ foreground: "hsl(var(--secondary-foreground))",
63
+ },
64
+ destructive: {
65
+ DEFAULT: "hsl(var(--destructive))",
66
+ foreground: "hsl(var(--destructive-foreground))",
67
+ },
68
+ muted: {
69
+ DEFAULT: "hsl(var(--muted))",
70
+ foreground: "hsl(var(--muted-foreground))",
71
+ },
72
+ accent: {
73
+ DEFAULT: "hsl(var(--accent))",
74
+ foreground: "hsl(var(--accent-foreground))",
75
+ },
76
+ popover: {
77
+ DEFAULT: "hsl(var(--popover))",
78
+ foreground: "hsl(var(--popover-foreground))",
79
+ },
80
+ card: {
81
+ DEFAULT: "hsl(var(--card))",
82
+ foreground: "hsl(var(--card-foreground))",
83
+ },
84
+
85
+ // Status
86
+ success: {
87
+ DEFAULT: "hsl(var(--success))",
88
+ foreground: "hsl(var(--success-foreground))",
89
+ },
90
+ warning: {
91
+ DEFAULT: "hsl(var(--warning))",
92
+ foreground: "hsl(var(--warning-foreground))",
93
+ },
94
+
95
+ // Sidebar
96
+ sidebar: {
97
+ DEFAULT: "hsl(var(--sidebar-background))",
98
+ foreground: "hsl(var(--sidebar-foreground))",
99
+ primary: "hsl(var(--sidebar-primary))",
100
+ "primary-foreground": "hsl(var(--sidebar-primary-foreground))",
101
+ accent: "hsl(var(--sidebar-accent))",
102
+ "accent-foreground": "hsl(var(--sidebar-accent-foreground))",
103
+ border: "hsl(var(--sidebar-border))",
104
+ ring: "hsl(var(--sidebar-ring))",
105
+ },
106
+
107
+ // ───────────────────────────────────────────────────────────
108
+ // BUILDER / GRAPH ONLY — canvas, edges, node categories.
109
+ // Host apps embedding the builder don't reference these.
110
+ // ───────────────────────────────────────────────────────────
111
+ canvas: {
112
+ bg: "hsl(var(--canvas-background))",
113
+ },
114
+ panel: {
115
+ background: "hsl(var(--panel-background))",
116
+ border: "hsl(var(--panel-border))",
117
+ },
118
+ edge: {
119
+ default: "hsl(var(--edge-default))",
120
+ },
121
+ "selection-glow": "hsl(var(--selection-glow))",
122
+
123
+ // Node category signals
124
+ node: {
125
+ agent: "hsl(var(--node-agent))",
126
+ input: "hsl(var(--node-input))",
127
+ output: "hsl(var(--node-output))",
128
+ trigger: "hsl(var(--node-trigger))",
129
+ logic: "hsl(var(--node-logic))",
130
+ data: "hsl(var(--node-data))",
131
+ tool: "hsl(var(--node-tool))",
132
+ function: "hsl(var(--node-function))",
133
+ shadow: "hsl(var(--node-shadow))",
134
+ },
135
+ },
136
+ borderRadius: {
137
+ lg: "var(--radius)",
138
+ md: "calc(var(--radius) - 2px)",
139
+ sm: "calc(var(--radius) - 4px)",
140
+ },
141
+ backgroundImage: {
142
+ "gradient-subtle": "var(--gradient-subtle)",
143
+ "gradient-glass": "var(--gradient-glass)",
144
+ },
145
+ boxShadow: {
146
+ sm: "var(--shadow-sm)",
147
+ md: "var(--shadow-md)",
148
+ lg: "var(--shadow-lg)",
149
+ glow: "var(--shadow-glow)",
150
+ },
151
+ keyframes: {
152
+ "accordion-down": {
153
+ from: { height: "0" },
154
+ to: { height: "var(--radix-accordion-content-height)" },
155
+ },
156
+ "accordion-up": {
157
+ from: { height: "var(--radix-accordion-content-height)" },
158
+ to: { height: "0" },
159
+ },
160
+ },
161
+ animation: {
162
+ "accordion-down": "accordion-down 0.2s ease-out",
163
+ "accordion-up": "accordion-up 0.2s ease-out",
164
+ },
165
+ },
166
+ },
167
+ plugins: [animate],
168
+ };
169
+
170
+ export default preset;
@@ -1,3 +0,0 @@
1
- import { type ClassValue } from "clsx";
2
- export declare function cn(...inputs: ClassValue[]): string;
3
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAA;AAG5C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
package/dist/lib/utils.js DELETED
@@ -1,6 +0,0 @@
1
- import { clsx } from "clsx";
2
- import { twMerge } from "tailwind-merge";
3
- export function cn(...inputs) {
4
- return twMerge(clsx(inputs));
5
- }
6
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,MAAM,CAAA;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAExC,MAAM,UAAU,EAAE,CAAC,GAAG,MAAoB;IACxC,OAAO,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAA;AAC9B,CAAC"}
@@ -1,11 +0,0 @@
1
- import { CanvasTab } from "../hooks/useCanvasTabs";
2
- interface CanvasTabsToolbarProps {
3
- tabs: CanvasTab[];
4
- activeTabId: string;
5
- onTabChange: (tabId: string) => void;
6
- onTabClose: (tabId: string) => void;
7
- onTabReorder: (fromIndex: number, toIndex: number) => void;
8
- }
9
- export declare const CanvasTabsToolbar: ({ tabs, activeTabId, onTabChange, onTabClose, onTabReorder, }: CanvasTabsToolbarProps) => import("react/jsx-runtime").JSX.Element;
10
- export {};
11
- //# sourceMappingURL=CanvasTabsToolbar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CanvasTabsToolbar.d.ts","sourceRoot":"","sources":["../../src/toolbars/CanvasTabsToolbar.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGnD,UAAU,sBAAsB;IAC9B,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5D;AAED,eAAO,MAAM,iBAAiB,GAAI,+DAM/B,sBAAsB,4CA0JxB,CAAC"}