@goplasmatic/datalogic-ui 4.0.20 → 4.0.21

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 (340) hide show
  1. package/dist/components/logic-editor/AutoFitView.d.ts +4 -0
  2. package/dist/components/logic-editor/AutoFitView.d.ts.map +1 -0
  3. package/dist/components/logic-editor/DataLogicEditor.d.ts +4 -0
  4. package/dist/components/logic-editor/DataLogicEditor.d.ts.map +1 -0
  5. package/dist/components/logic-editor/EditorToolbar.d.ts +9 -0
  6. package/dist/components/logic-editor/EditorToolbar.d.ts.map +1 -0
  7. package/dist/components/logic-editor/KeyboardHandler.d.ts +9 -0
  8. package/dist/components/logic-editor/KeyboardHandler.d.ts.map +1 -0
  9. package/dist/components/logic-editor/NodeSelectionHandler.d.ts +14 -0
  10. package/dist/components/logic-editor/NodeSelectionHandler.d.ts.map +1 -0
  11. package/dist/components/logic-editor/UndoRedoToolbar.d.ts +9 -0
  12. package/dist/components/logic-editor/UndoRedoToolbar.d.ts.map +1 -0
  13. package/dist/components/logic-editor/config/categories.d.ts +19 -0
  14. package/dist/components/logic-editor/config/categories.d.ts.map +1 -0
  15. package/dist/components/logic-editor/config/literalPanel.d.ts +6 -0
  16. package/dist/components/logic-editor/config/literalPanel.d.ts.map +1 -0
  17. package/dist/components/logic-editor/config/operators/arithmetic-basic.d.ts +3 -0
  18. package/dist/components/logic-editor/config/operators/arithmetic-basic.d.ts.map +1 -0
  19. package/dist/components/logic-editor/config/operators/arithmetic-functions.d.ts +3 -0
  20. package/dist/components/logic-editor/config/operators/arithmetic-functions.d.ts.map +1 -0
  21. package/dist/components/logic-editor/config/operators/arithmetic.d.ts +12 -0
  22. package/dist/components/logic-editor/config/operators/arithmetic.d.ts.map +1 -0
  23. package/dist/components/logic-editor/config/operators/array-iteration.d.ts +3 -0
  24. package/dist/components/logic-editor/config/operators/array-iteration.d.ts.map +1 -0
  25. package/dist/components/logic-editor/config/operators/array-manipulation.d.ts +3 -0
  26. package/dist/components/logic-editor/config/operators/array-manipulation.d.ts.map +1 -0
  27. package/dist/components/logic-editor/config/operators/array.d.ts +11 -0
  28. package/dist/components/logic-editor/config/operators/array.d.ts.map +1 -0
  29. package/dist/components/logic-editor/config/operators/comparison.d.ts +3 -0
  30. package/dist/components/logic-editor/config/operators/comparison.d.ts.map +1 -0
  31. package/dist/components/logic-editor/config/operators/control.d.ts +3 -0
  32. package/dist/components/logic-editor/config/operators/control.d.ts.map +1 -0
  33. package/dist/components/logic-editor/config/operators/datetime.d.ts +3 -0
  34. package/dist/components/logic-editor/config/operators/datetime.d.ts.map +1 -0
  35. package/dist/components/logic-editor/config/operators/error.d.ts +3 -0
  36. package/dist/components/logic-editor/config/operators/error.d.ts.map +1 -0
  37. package/dist/components/logic-editor/config/operators/index.d.ts +47 -0
  38. package/dist/components/logic-editor/config/operators/index.d.ts.map +1 -0
  39. package/dist/components/logic-editor/config/operators/logical.d.ts +3 -0
  40. package/dist/components/logic-editor/config/operators/logical.d.ts.map +1 -0
  41. package/dist/components/logic-editor/config/operators/string-core.d.ts +3 -0
  42. package/dist/components/logic-editor/config/operators/string-core.d.ts.map +1 -0
  43. package/dist/components/logic-editor/config/operators/string-transform.d.ts +3 -0
  44. package/dist/components/logic-editor/config/operators/string-transform.d.ts.map +1 -0
  45. package/dist/components/logic-editor/config/operators/string.d.ts +16 -0
  46. package/dist/components/logic-editor/config/operators/string.d.ts.map +1 -0
  47. package/dist/components/logic-editor/config/operators/utility.d.ts +3 -0
  48. package/dist/components/logic-editor/config/operators/utility.d.ts.map +1 -0
  49. package/dist/components/logic-editor/config/operators/validation.d.ts +3 -0
  50. package/dist/components/logic-editor/config/operators/validation.d.ts.map +1 -0
  51. package/dist/components/logic-editor/config/operators/variable.d.ts +3 -0
  52. package/dist/components/logic-editor/config/operators/variable.d.ts.map +1 -0
  53. package/dist/components/logic-editor/config/operators.types.d.ts +144 -0
  54. package/dist/components/logic-editor/config/operators.types.d.ts.map +1 -0
  55. package/dist/components/logic-editor/constants/colors.d.ts +7 -0
  56. package/dist/components/logic-editor/constants/colors.d.ts.map +1 -0
  57. package/dist/components/logic-editor/constants/formatting.d.ts +7 -0
  58. package/dist/components/logic-editor/constants/formatting.d.ts.map +1 -0
  59. package/dist/components/logic-editor/constants/handles.d.ts +24 -0
  60. package/dist/components/logic-editor/constants/handles.d.ts.map +1 -0
  61. package/dist/components/logic-editor/constants/index.d.ts +5 -0
  62. package/dist/components/logic-editor/constants/index.d.ts.map +1 -0
  63. package/dist/components/logic-editor/constants/layout.d.ts +41 -0
  64. package/dist/components/logic-editor/constants/layout.d.ts.map +1 -0
  65. package/dist/components/logic-editor/context/ConnectedHandlesContext.d.ts +9 -0
  66. package/dist/components/logic-editor/context/ConnectedHandlesContext.d.ts.map +1 -0
  67. package/dist/components/logic-editor/context/ConnectedHandlesContextDef.d.ts +3 -0
  68. package/dist/components/logic-editor/context/ConnectedHandlesContextDef.d.ts.map +1 -0
  69. package/dist/components/logic-editor/context/EvaluationContext.d.ts +5 -0
  70. package/dist/components/logic-editor/context/EvaluationContext.d.ts.map +1 -0
  71. package/dist/components/logic-editor/context/debugger/DebuggerProvider.d.ts +12 -0
  72. package/dist/components/logic-editor/context/debugger/DebuggerProvider.d.ts.map +1 -0
  73. package/dist/components/logic-editor/context/debugger/context.d.ts +3 -0
  74. package/dist/components/logic-editor/context/debugger/context.d.ts.map +1 -0
  75. package/dist/components/logic-editor/context/debugger/hooks.d.ts +12 -0
  76. package/dist/components/logic-editor/context/debugger/hooks.d.ts.map +1 -0
  77. package/dist/components/logic-editor/context/debugger/index.d.ts +4 -0
  78. package/dist/components/logic-editor/context/debugger/index.d.ts.map +1 -0
  79. package/dist/components/logic-editor/context/debugger/reducer.d.ts +4 -0
  80. package/dist/components/logic-editor/context/debugger/reducer.d.ts.map +1 -0
  81. package/dist/components/logic-editor/context/debugger/types.d.ts +58 -0
  82. package/dist/components/logic-editor/context/debugger/types.d.ts.map +1 -0
  83. package/dist/components/logic-editor/context/editor/EditorContext.d.ts +12 -0
  84. package/dist/components/logic-editor/context/editor/EditorContext.d.ts.map +1 -0
  85. package/dist/components/logic-editor/context/editor/context.d.ts +3 -0
  86. package/dist/components/logic-editor/context/editor/context.d.ts.map +1 -0
  87. package/dist/components/logic-editor/context/editor/hooks.d.ts +30 -0
  88. package/dist/components/logic-editor/context/editor/hooks.d.ts.map +1 -0
  89. package/dist/components/logic-editor/context/editor/index.d.ts +5 -0
  90. package/dist/components/logic-editor/context/editor/index.d.ts.map +1 -0
  91. package/dist/components/logic-editor/context/editor/types.d.ts +108 -0
  92. package/dist/components/logic-editor/context/editor/types.d.ts.map +1 -0
  93. package/dist/components/logic-editor/context/editor/useClipboardState.d.ts +18 -0
  94. package/dist/components/logic-editor/context/editor/useClipboardState.d.ts.map +1 -0
  95. package/dist/components/logic-editor/context/editor/useHistoryState.d.ts +10 -0
  96. package/dist/components/logic-editor/context/editor/useHistoryState.d.ts.map +1 -0
  97. package/dist/components/logic-editor/context/editor/useNodeCreation.d.ts +8 -0
  98. package/dist/components/logic-editor/context/editor/useNodeCreation.d.ts.map +1 -0
  99. package/dist/components/logic-editor/context/editor/useNodeEdgeInsert.d.ts +6 -0
  100. package/dist/components/logic-editor/context/editor/useNodeEdgeInsert.d.ts.map +1 -0
  101. package/dist/components/logic-editor/context/editor/useNodeMutations.d.ts +26 -0
  102. package/dist/components/logic-editor/context/editor/useNodeMutations.d.ts.map +1 -0
  103. package/dist/components/logic-editor/context/editor/useNodeOperations.d.ts +12 -0
  104. package/dist/components/logic-editor/context/editor/useNodeOperations.d.ts.map +1 -0
  105. package/dist/components/logic-editor/context/editor/useSelectionState.d.ts +20 -0
  106. package/dist/components/logic-editor/context/editor/useSelectionState.d.ts.map +1 -0
  107. package/dist/components/logic-editor/context/index.d.ts +7 -0
  108. package/dist/components/logic-editor/context/index.d.ts.map +1 -0
  109. package/dist/components/logic-editor/context/useConnectedHandles.d.ts +3 -0
  110. package/dist/components/logic-editor/context/useConnectedHandles.d.ts.map +1 -0
  111. package/dist/components/logic-editor/context-menu/AddArgumentMenu.d.ts +24 -0
  112. package/dist/components/logic-editor/context-menu/AddArgumentMenu.d.ts.map +1 -0
  113. package/dist/components/logic-editor/context-menu/CanvasContextMenu.d.ts +23 -0
  114. package/dist/components/logic-editor/context-menu/CanvasContextMenu.d.ts.map +1 -0
  115. package/dist/components/logic-editor/context-menu/ContextMenu.d.ts +23 -0
  116. package/dist/components/logic-editor/context-menu/ContextMenu.d.ts.map +1 -0
  117. package/dist/components/logic-editor/context-menu/NodeContextMenu.d.ts +15 -0
  118. package/dist/components/logic-editor/context-menu/NodeContextMenu.d.ts.map +1 -0
  119. package/dist/components/logic-editor/context-menu/index.d.ts +5 -0
  120. package/dist/components/logic-editor/context-menu/index.d.ts.map +1 -0
  121. package/dist/components/logic-editor/context-menu/menu-helpers.d.ts +5 -0
  122. package/dist/components/logic-editor/context-menu/menu-helpers.d.ts.map +1 -0
  123. package/dist/components/logic-editor/context-menu/useContextMenuItems.d.ts +10 -0
  124. package/dist/components/logic-editor/context-menu/useContextMenuItems.d.ts.map +1 -0
  125. package/dist/components/logic-editor/debugger-controls/DebuggerControls.d.ts +3 -0
  126. package/dist/components/logic-editor/debugger-controls/DebuggerControls.d.ts.map +1 -0
  127. package/dist/components/logic-editor/debugger-controls/index.d.ts +2 -0
  128. package/dist/components/logic-editor/debugger-controls/index.d.ts.map +1 -0
  129. package/dist/components/logic-editor/edges/EdgeOperatorPicker.d.ts +18 -0
  130. package/dist/components/logic-editor/edges/EdgeOperatorPicker.d.ts.map +1 -0
  131. package/dist/components/logic-editor/edges/EditableEdge.d.ts +4 -0
  132. package/dist/components/logic-editor/edges/EditableEdge.d.ts.map +1 -0
  133. package/dist/components/logic-editor/edges/index.d.ts +11 -0
  134. package/dist/components/logic-editor/edges/index.d.ts.map +1 -0
  135. package/dist/components/logic-editor/hooks/index.d.ts +11 -0
  136. package/dist/components/logic-editor/hooks/index.d.ts.map +1 -0
  137. package/dist/components/logic-editor/hooks/useContextMenu.d.ts +19 -0
  138. package/dist/components/logic-editor/hooks/useContextMenu.d.ts.map +1 -0
  139. package/dist/components/logic-editor/hooks/useDebugClassName.d.ts +6 -0
  140. package/dist/components/logic-editor/hooks/useDebugClassName.d.ts.map +1 -0
  141. package/dist/components/logic-editor/hooks/useDebugEvaluation.d.ts +16 -0
  142. package/dist/components/logic-editor/hooks/useDebugEvaluation.d.ts.map +1 -0
  143. package/dist/components/logic-editor/hooks/useIsMobile.d.ts +2 -0
  144. package/dist/components/logic-editor/hooks/useIsMobile.d.ts.map +1 -0
  145. package/dist/components/logic-editor/hooks/useLogicEditor.d.ts +26 -0
  146. package/dist/components/logic-editor/hooks/useLogicEditor.d.ts.map +1 -0
  147. package/dist/components/logic-editor/hooks/useNodeCollapse.d.ts +5 -0
  148. package/dist/components/logic-editor/hooks/useNodeCollapse.d.ts.map +1 -0
  149. package/dist/components/logic-editor/hooks/useRecursionCheck.d.ts +29 -0
  150. package/dist/components/logic-editor/hooks/useRecursionCheck.d.ts.map +1 -0
  151. package/dist/components/logic-editor/hooks/useSystemTheme.d.ts +7 -0
  152. package/dist/components/logic-editor/hooks/useSystemTheme.d.ts.map +1 -0
  153. package/dist/components/logic-editor/hooks/useWasmEvaluator.d.ts +15 -0
  154. package/dist/components/logic-editor/hooks/useWasmEvaluator.d.ts.map +1 -0
  155. package/dist/components/logic-editor/index.d.ts +8 -0
  156. package/dist/components/logic-editor/index.d.ts.map +1 -0
  157. package/dist/components/logic-editor/nodes/CellHandles.d.ts +13 -0
  158. package/dist/components/logic-editor/nodes/CellHandles.d.ts.map +1 -0
  159. package/dist/components/logic-editor/nodes/CellRow.d.ts +8 -0
  160. package/dist/components/logic-editor/nodes/CellRow.d.ts.map +1 -0
  161. package/dist/components/logic-editor/nodes/DebugInfoBubble.d.ts +8 -0
  162. package/dist/components/logic-editor/nodes/DebugInfoBubble.d.ts.map +1 -0
  163. package/dist/components/logic-editor/nodes/LiteralNode.d.ts +9 -0
  164. package/dist/components/logic-editor/nodes/LiteralNode.d.ts.map +1 -0
  165. package/dist/components/logic-editor/nodes/StructureNode.d.ts +9 -0
  166. package/dist/components/logic-editor/nodes/StructureNode.d.ts.map +1 -0
  167. package/dist/components/logic-editor/nodes/UnifiedOperatorNode.d.ts +9 -0
  168. package/dist/components/logic-editor/nodes/UnifiedOperatorNode.d.ts.map +1 -0
  169. package/dist/components/logic-editor/nodes/index.d.ts +6 -0
  170. package/dist/components/logic-editor/nodes/index.d.ts.map +1 -0
  171. package/dist/components/logic-editor/nodes/nodeTypes.d.ts +3 -0
  172. package/dist/components/logic-editor/nodes/nodeTypes.d.ts.map +1 -0
  173. package/dist/components/logic-editor/nodes/shared/CollapseToggleButton.d.ts +10 -0
  174. package/dist/components/logic-editor/nodes/shared/CollapseToggleButton.d.ts.map +1 -0
  175. package/dist/components/logic-editor/nodes/shared/NodeDebugBubble.d.ts +11 -0
  176. package/dist/components/logic-editor/nodes/shared/NodeDebugBubble.d.ts.map +1 -0
  177. package/dist/components/logic-editor/nodes/shared/NodeInputHandles.d.ts +11 -0
  178. package/dist/components/logic-editor/nodes/shared/NodeInputHandles.d.ts.map +1 -0
  179. package/dist/components/logic-editor/nodes/shared/index.d.ts +4 -0
  180. package/dist/components/logic-editor/nodes/shared/index.d.ts.map +1 -0
  181. package/dist/components/logic-editor/panel-inputs/BooleanInput.d.ts +9 -0
  182. package/dist/components/logic-editor/panel-inputs/BooleanInput.d.ts.map +1 -0
  183. package/dist/components/logic-editor/panel-inputs/ExpressionInput.d.ts +16 -0
  184. package/dist/components/logic-editor/panel-inputs/ExpressionInput.d.ts.map +1 -0
  185. package/dist/components/logic-editor/panel-inputs/FieldRenderer.d.ts +17 -0
  186. package/dist/components/logic-editor/panel-inputs/FieldRenderer.d.ts.map +1 -0
  187. package/dist/components/logic-editor/panel-inputs/JsonInput.d.ts +15 -0
  188. package/dist/components/logic-editor/panel-inputs/JsonInput.d.ts.map +1 -0
  189. package/dist/components/logic-editor/panel-inputs/NumberInput.d.ts +14 -0
  190. package/dist/components/logic-editor/panel-inputs/NumberInput.d.ts.map +1 -0
  191. package/dist/components/logic-editor/panel-inputs/PanelRenderer.d.ts +22 -0
  192. package/dist/components/logic-editor/panel-inputs/PanelRenderer.d.ts.map +1 -0
  193. package/dist/components/logic-editor/panel-inputs/PathArrayInput.d.ts +14 -0
  194. package/dist/components/logic-editor/panel-inputs/PathArrayInput.d.ts.map +1 -0
  195. package/dist/components/logic-editor/panel-inputs/PathInput.d.ts +14 -0
  196. package/dist/components/logic-editor/panel-inputs/PathInput.d.ts.map +1 -0
  197. package/dist/components/logic-editor/panel-inputs/SectionRenderer.d.ts +21 -0
  198. package/dist/components/logic-editor/panel-inputs/SectionRenderer.d.ts.map +1 -0
  199. package/dist/components/logic-editor/panel-inputs/SelectInput.d.ts +12 -0
  200. package/dist/components/logic-editor/panel-inputs/SelectInput.d.ts.map +1 -0
  201. package/dist/components/logic-editor/panel-inputs/TextAreaInput.d.ts +12 -0
  202. package/dist/components/logic-editor/panel-inputs/TextAreaInput.d.ts.map +1 -0
  203. package/dist/components/logic-editor/panel-inputs/TextInput.d.ts +11 -0
  204. package/dist/components/logic-editor/panel-inputs/TextInput.d.ts.map +1 -0
  205. package/dist/components/logic-editor/panel-inputs/index.d.ts +20 -0
  206. package/dist/components/logic-editor/panel-inputs/index.d.ts.map +1 -0
  207. package/dist/components/logic-editor/panel-inputs/visibility.d.ts +10 -0
  208. package/dist/components/logic-editor/panel-inputs/visibility.d.ts.map +1 -0
  209. package/dist/components/logic-editor/properties-panel/ArgumentItem.d.ts +14 -0
  210. package/dist/components/logic-editor/properties-panel/ArgumentItem.d.ts.map +1 -0
  211. package/dist/components/logic-editor/properties-panel/ArgumentsSection.d.ts +7 -0
  212. package/dist/components/logic-editor/properties-panel/ArgumentsSection.d.ts.map +1 -0
  213. package/dist/components/logic-editor/properties-panel/HelpSection.d.ts +8 -0
  214. package/dist/components/logic-editor/properties-panel/HelpSection.d.ts.map +1 -0
  215. package/dist/components/logic-editor/properties-panel/PropertiesPanel.d.ts +7 -0
  216. package/dist/components/logic-editor/properties-panel/PropertiesPanel.d.ts.map +1 -0
  217. package/dist/components/logic-editor/properties-panel/index.d.ts +10 -0
  218. package/dist/components/logic-editor/properties-panel/index.d.ts.map +1 -0
  219. package/dist/components/logic-editor/properties-panel/utils/argument-parser.d.ts +52 -0
  220. package/dist/components/logic-editor/properties-panel/utils/argument-parser.d.ts.map +1 -0
  221. package/dist/components/logic-editor/properties-panel/utils/expression-rebuilder.d.ts +6 -0
  222. package/dist/components/logic-editor/properties-panel/utils/expression-rebuilder.d.ts.map +1 -0
  223. package/dist/components/logic-editor/properties-panel/utils/index.d.ts +7 -0
  224. package/dist/components/logic-editor/properties-panel/utils/index.d.ts.map +1 -0
  225. package/dist/components/logic-editor/properties-panel/utils.d.ts +23 -0
  226. package/dist/components/logic-editor/properties-panel/utils.d.ts.map +1 -0
  227. package/dist/components/logic-editor/services/argument-service.d.ts +17 -0
  228. package/dist/components/logic-editor/services/argument-service.d.ts.map +1 -0
  229. package/dist/components/logic-editor/services/index.d.ts +7 -0
  230. package/dist/components/logic-editor/services/index.d.ts.map +1 -0
  231. package/dist/components/logic-editor/services/node-creation-service.d.ts +13 -0
  232. package/dist/components/logic-editor/services/node-creation-service.d.ts.map +1 -0
  233. package/dist/components/logic-editor/services/node-mutation-service.d.ts +14 -0
  234. package/dist/components/logic-editor/services/node-mutation-service.d.ts.map +1 -0
  235. package/dist/components/logic-editor/services/node-transform-service.d.ts +15 -0
  236. package/dist/components/logic-editor/services/node-transform-service.d.ts.map +1 -0
  237. package/dist/components/logic-editor/types/editor.d.ts +134 -0
  238. package/dist/components/logic-editor/types/editor.d.ts.map +1 -0
  239. package/dist/components/logic-editor/types/index.d.ts +5 -0
  240. package/dist/components/logic-editor/types/index.d.ts.map +1 -0
  241. package/dist/components/logic-editor/types/jsonlogic.d.ts +14 -0
  242. package/dist/components/logic-editor/types/jsonlogic.d.ts.map +1 -0
  243. package/dist/components/logic-editor/types/trace.d.ts +21 -0
  244. package/dist/components/logic-editor/types/trace.d.ts.map +1 -0
  245. package/dist/components/logic-editor/utils/ExpressionSyntax.d.ts +9 -0
  246. package/dist/components/logic-editor/utils/ExpressionSyntax.d.ts.map +1 -0
  247. package/dist/components/logic-editor/utils/Icon.d.ts +11 -0
  248. package/dist/components/logic-editor/utils/Icon.d.ts.map +1 -0
  249. package/dist/components/logic-editor/utils/converters/if-else-converter.d.ts +4 -0
  250. package/dist/components/logic-editor/utils/converters/if-else-converter.d.ts.map +1 -0
  251. package/dist/components/logic-editor/utils/converters/index.d.ts +5 -0
  252. package/dist/components/logic-editor/utils/converters/index.d.ts.map +1 -0
  253. package/dist/components/logic-editor/utils/converters/operator-converter.d.ts +5 -0
  254. package/dist/components/logic-editor/utils/converters/operator-converter.d.ts.map +1 -0
  255. package/dist/components/logic-editor/utils/converters/primitive-converter.d.ts +5 -0
  256. package/dist/components/logic-editor/utils/converters/primitive-converter.d.ts.map +1 -0
  257. package/dist/components/logic-editor/utils/converters/structure-converter.d.ts +7 -0
  258. package/dist/components/logic-editor/utils/converters/structure-converter.d.ts.map +1 -0
  259. package/dist/components/logic-editor/utils/converters/switch-converter.d.ts +18 -0
  260. package/dist/components/logic-editor/utils/converters/switch-converter.d.ts.map +1 -0
  261. package/dist/components/logic-editor/utils/converters/types.d.ts +18 -0
  262. package/dist/components/logic-editor/utils/converters/types.d.ts.map +1 -0
  263. package/dist/components/logic-editor/utils/converters/variable-converter.d.ts +8 -0
  264. package/dist/components/logic-editor/utils/converters/variable-converter.d.ts.map +1 -0
  265. package/dist/components/logic-editor/utils/edge-builder.d.ts +8 -0
  266. package/dist/components/logic-editor/utils/edge-builder.d.ts.map +1 -0
  267. package/dist/components/logic-editor/utils/expression-builder.d.ts +16 -0
  268. package/dist/components/logic-editor/utils/expression-builder.d.ts.map +1 -0
  269. package/dist/components/logic-editor/utils/formatting/arg-summary.d.ts +4 -0
  270. package/dist/components/logic-editor/utils/formatting/arg-summary.d.ts.map +1 -0
  271. package/dist/components/logic-editor/utils/formatting/expression-text.d.ts +3 -0
  272. package/dist/components/logic-editor/utils/formatting/expression-text.d.ts.map +1 -0
  273. package/dist/components/logic-editor/utils/formatting/index.d.ts +4 -0
  274. package/dist/components/logic-editor/utils/formatting/index.d.ts.map +1 -0
  275. package/dist/components/logic-editor/utils/formatting/value-formatter.d.ts +5 -0
  276. package/dist/components/logic-editor/utils/formatting/value-formatter.d.ts.map +1 -0
  277. package/dist/components/logic-editor/utils/icons.d.ts +19 -0
  278. package/dist/components/logic-editor/utils/icons.d.ts.map +1 -0
  279. package/dist/components/logic-editor/utils/index.d.ts +13 -0
  280. package/dist/components/logic-editor/utils/index.d.ts.map +1 -0
  281. package/dist/components/logic-editor/utils/jsonlogic-to-nodes.d.ts +7 -0
  282. package/dist/components/logic-editor/utils/jsonlogic-to-nodes.d.ts.map +1 -0
  283. package/dist/components/logic-editor/utils/layout.d.ts +3 -0
  284. package/dist/components/logic-editor/utils/layout.d.ts.map +1 -0
  285. package/dist/components/logic-editor/utils/menu-builder.d.ts +27 -0
  286. package/dist/components/logic-editor/utils/menu-builder.d.ts.map +1 -0
  287. package/dist/components/logic-editor/utils/node-cloning.d.ts +50 -0
  288. package/dist/components/logic-editor/utils/node-cloning.d.ts.map +1 -0
  289. package/dist/components/logic-editor/utils/node-deletion.d.ts +24 -0
  290. package/dist/components/logic-editor/utils/node-deletion.d.ts.map +1 -0
  291. package/dist/components/logic-editor/utils/node-factory.d.ts +42 -0
  292. package/dist/components/logic-editor/utils/node-factory.d.ts.map +1 -0
  293. package/dist/components/logic-editor/utils/node-updaters.d.ts +11 -0
  294. package/dist/components/logic-editor/utils/node-updaters.d.ts.map +1 -0
  295. package/dist/components/logic-editor/utils/nodes-to-jsonlogic.d.ts +13 -0
  296. package/dist/components/logic-editor/utils/nodes-to-jsonlogic.d.ts.map +1 -0
  297. package/dist/components/logic-editor/utils/trace/child-matching.d.ts +13 -0
  298. package/dist/components/logic-editor/utils/trace/child-matching.d.ts.map +1 -0
  299. package/dist/components/logic-editor/utils/trace/evaluation-results.d.ts +15 -0
  300. package/dist/components/logic-editor/utils/trace/evaluation-results.d.ts.map +1 -0
  301. package/dist/components/logic-editor/utils/trace/index.d.ts +7 -0
  302. package/dist/components/logic-editor/utils/trace/index.d.ts.map +1 -0
  303. package/dist/components/logic-editor/utils/trace/inline-mapping.d.ts +6 -0
  304. package/dist/components/logic-editor/utils/trace/inline-mapping.d.ts.map +1 -0
  305. package/dist/components/logic-editor/utils/trace/node-creators/if-else.d.ts +13 -0
  306. package/dist/components/logic-editor/utils/trace/node-creators/if-else.d.ts.map +1 -0
  307. package/dist/components/logic-editor/utils/trace/node-creators/index.d.ts +8 -0
  308. package/dist/components/logic-editor/utils/trace/node-creators/index.d.ts.map +1 -0
  309. package/dist/components/logic-editor/utils/trace/node-creators/literal.d.ts +9 -0
  310. package/dist/components/logic-editor/utils/trace/node-creators/literal.d.ts.map +1 -0
  311. package/dist/components/logic-editor/utils/trace/node-creators/operator.d.ts +11 -0
  312. package/dist/components/logic-editor/utils/trace/node-creators/operator.d.ts.map +1 -0
  313. package/dist/components/logic-editor/utils/trace/node-creators/structure.d.ts +12 -0
  314. package/dist/components/logic-editor/utils/trace/node-creators/structure.d.ts.map +1 -0
  315. package/dist/components/logic-editor/utils/trace/node-creators/switch.d.ts +21 -0
  316. package/dist/components/logic-editor/utils/trace/node-creators/switch.d.ts.map +1 -0
  317. package/dist/components/logic-editor/utils/trace/node-creators/variable.d.ts +9 -0
  318. package/dist/components/logic-editor/utils/trace/node-creators/variable.d.ts.map +1 -0
  319. package/dist/components/logic-editor/utils/trace/node-creators/vertical-cell.d.ts +12 -0
  320. package/dist/components/logic-editor/utils/trace/node-creators/vertical-cell.d.ts.map +1 -0
  321. package/dist/components/logic-editor/utils/trace/node-type.d.ts +7 -0
  322. package/dist/components/logic-editor/utils/trace/node-type.d.ts.map +1 -0
  323. package/dist/components/logic-editor/utils/trace/trace-to-nodes.d.ts +7 -0
  324. package/dist/components/logic-editor/utils/trace/trace-to-nodes.d.ts.map +1 -0
  325. package/dist/components/logic-editor/utils/trace/types.d.ts +24 -0
  326. package/dist/components/logic-editor/utils/trace/types.d.ts.map +1 -0
  327. package/dist/components/logic-editor/utils/type-guards.d.ts +8 -0
  328. package/dist/components/logic-editor/utils/type-guards.d.ts.map +1 -0
  329. package/dist/components/logic-editor/utils/type-helpers.d.ts +9 -0
  330. package/dist/components/logic-editor/utils/type-helpers.d.ts.map +1 -0
  331. package/dist/components/logic-editor/utils/visibility.d.ts +3 -0
  332. package/dist/components/logic-editor/utils/visibility.d.ts.map +1 -0
  333. package/dist/{datalogic_wasm-Dv8WyX8m.cjs → datalogic_wasm-Ckkdrc0z.cjs} +2 -2
  334. package/dist/{datalogic_wasm-CCIw5iCk.js → datalogic_wasm-daWVf40b.js} +2 -2
  335. package/dist/index.cjs +1 -1
  336. package/dist/index.js +1 -1
  337. package/dist/lib.d.ts +6 -0
  338. package/dist/lib.d.ts.map +1 -0
  339. package/package.json +7 -6
  340. package/dist/index.d.ts +0 -1
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ import { LogicEdge } from '../types';
3
+ interface ConnectedHandlesProviderProps {
4
+ edges: LogicEdge[];
5
+ children: ReactNode;
6
+ }
7
+ export declare function ConnectedHandlesProvider({ edges, children, }: ConnectedHandlesProviderProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=ConnectedHandlesContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConnectedHandlesContext.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/context/ConnectedHandlesContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAG1C,UAAU,6BAA6B;IACrC,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,wBAAwB,CAAC,EACvC,KAAK,EACL,QAAQ,GACT,EAAE,6BAA6B,2CA4B/B"}
@@ -0,0 +1,3 @@
1
+ export type ConnectedHandlesMap = Map<string, Set<string>>;
2
+ export declare const ConnectedHandlesContext: import('react').Context<ConnectedHandlesMap>;
3
+ //# sourceMappingURL=ConnectedHandlesContextDef.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConnectedHandlesContextDef.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/context/ConnectedHandlesContextDef.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,mBAAmB,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;AAE3D,eAAO,MAAM,uBAAuB,8CAAgD,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { EvaluationResultsMap } from '../hooks/useLogicEditor';
2
+ export declare const EvaluationContext: import('react').Context<EvaluationResultsMap>;
3
+ export declare function useEvaluationResult(nodeId: string): import('../hooks').EvaluationResult | undefined;
4
+ export declare function useEvaluationResults(): EvaluationResultsMap;
5
+ //# sourceMappingURL=EvaluationContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EvaluationContext.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/context/EvaluationContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,eAAO,MAAM,iBAAiB,+CAAiD,CAAC;AAEhF,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,mDAGjD;AAED,wBAAgB,oBAAoB,yBAEnC"}
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ import { ExecutionStep } from '../../types/trace';
3
+ import { LogicNode } from '../../types';
4
+ interface DebuggerProviderProps {
5
+ children: ReactNode;
6
+ steps: ExecutionStep[];
7
+ traceNodeMap: Map<string, string>;
8
+ nodes: LogicNode[];
9
+ }
10
+ export declare function DebuggerProvider({ children, steps, traceNodeMap, nodes }: DebuggerProviderProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
12
+ //# sourceMappingURL=DebuggerProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebuggerProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/context/debugger/DebuggerProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAK7C,UAAU,qBAAqB;IAC7B,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB;AAGD,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE,qBAAqB,2CAkI/F"}
@@ -0,0 +1,3 @@
1
+ import { DebuggerContextValue } from './types';
2
+ export declare const DebuggerContext: import('react').Context<DebuggerContextValue | null>;
3
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/context/debugger/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAGpD,eAAO,MAAM,eAAe,sDAAmD,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { NodeDebugState, DebuggerContextValue } from './types';
2
+ /**
3
+ * Hook to get full debugger context
4
+ * Must be used within a DebuggerProvider
5
+ */
6
+ export declare function useDebuggerContext(): DebuggerContextValue;
7
+ /**
8
+ * Hook to get debug state for a specific node
9
+ * Returns null if debugger is not active
10
+ */
11
+ export declare function useNodeDebugState(nodeId: string): NodeDebugState | null;
12
+ //# sourceMappingURL=hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/context/debugger/hooks.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpE;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,oBAAoB,CAMzD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CAsBvE"}
@@ -0,0 +1,4 @@
1
+ export { DebuggerProvider } from './DebuggerProvider';
2
+ export { useDebuggerContext, useNodeDebugState } from './hooks';
3
+ export type { DebuggerState, DebuggerAction, DebuggerContextValue, NodeDebugState, PlaybackState, } from './types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/context/debugger/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAChE,YAAY,EACV,aAAa,EACb,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,aAAa,GACd,MAAM,SAAS,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { DebuggerState, DebuggerAction } from './types';
2
+ export declare const initialState: DebuggerState;
3
+ export declare function debuggerReducer(state: DebuggerState, action: DebuggerAction): DebuggerState;
4
+ //# sourceMappingURL=reducer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/context/debugger/reducer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAI7D,eAAO,MAAM,YAAY,EAAE,aAM1B,CAAC;AAGF,wBAAgB,eAAe,CAAC,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,cAAc,GAAG,aAAa,CA4E3F"}
@@ -0,0 +1,58 @@
1
+ import { ExecutionStep } from '../../types/trace';
2
+ export type PlaybackState = 'playing' | 'paused' | 'stopped';
3
+ export interface DebuggerState {
4
+ isActive: boolean;
5
+ steps: ExecutionStep[];
6
+ currentStepIndex: number;
7
+ playbackState: PlaybackState;
8
+ playbackSpeed: number;
9
+ }
10
+ export type DebuggerAction = {
11
+ type: 'INITIALIZE';
12
+ steps: ExecutionStep[];
13
+ } | {
14
+ type: 'PLAY';
15
+ } | {
16
+ type: 'PAUSE';
17
+ } | {
18
+ type: 'STOP';
19
+ } | {
20
+ type: 'STEP_FORWARD';
21
+ } | {
22
+ type: 'STEP_BACKWARD';
23
+ } | {
24
+ type: 'GO_TO_STEP';
25
+ index: number;
26
+ } | {
27
+ type: 'SET_SPEED';
28
+ speed: number;
29
+ } | {
30
+ type: 'RESET';
31
+ } | {
32
+ type: 'AUTO_STEP_FORWARD';
33
+ };
34
+ export interface DebuggerContextValue {
35
+ state: DebuggerState;
36
+ currentStep: ExecutionStep | null;
37
+ currentNodeId: string | null;
38
+ executedNodeIds: Set<string>;
39
+ errorNodeIds: Set<string>;
40
+ pathNodeIds: Set<string>;
41
+ play: () => void;
42
+ pause: () => void;
43
+ stop: () => void;
44
+ reset: () => void;
45
+ stepForward: () => void;
46
+ stepBackward: () => void;
47
+ goToStep: (index: number) => void;
48
+ setSpeed: (ms: number) => void;
49
+ }
50
+ export interface NodeDebugState {
51
+ isCurrent: boolean;
52
+ isExecuted: boolean;
53
+ isPending: boolean;
54
+ isOnPath: boolean;
55
+ isError: boolean;
56
+ step: ExecutionStep | null;
57
+ }
58
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/context/debugger/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGvD,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAG7D,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;CACvB;AAGD,MAAM,MAAM,cAAc,GACtB;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,KAAK,EAAE,aAAa,EAAE,CAAA;CAAE,GAC9C;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,GACxB;IAAE,IAAI,EAAE,eAAe,CAAA;CAAE,GACzB;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACpC;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,CAAC;AAGlC,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,aAAa,CAAC;IACrB,WAAW,EAAE,aAAa,GAAG,IAAI,CAAC;IAClC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC7B,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1B,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAEzB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAGD,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,aAAa,GAAG,IAAI,CAAC;CAC5B"}
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ import { LogicNode } from '../../types';
3
+ interface EditorProviderProps {
4
+ children: ReactNode;
5
+ nodes: LogicNode[];
6
+ initialEditMode?: boolean;
7
+ /** Callback when nodes change (for propagating changes up) */
8
+ onNodesChange?: (nodes: LogicNode[]) => void;
9
+ }
10
+ export declare function EditorProvider({ children, nodes: propNodes, initialEditMode, onNodesChange, }: EditorProviderProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
12
+ //# sourceMappingURL=EditorContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditorContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/context/editor/EditorContext.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAqD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAS7C,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,8DAA8D;IAC9D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC;CAC9C;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,KAAK,EAAE,SAAS,EAChB,eAAuB,EACvB,aAAa,GACd,EAAE,mBAAmB,2CAoQrB"}
@@ -0,0 +1,3 @@
1
+ import { EditorContextValue } from './types';
2
+ export declare const EditorContext: import('react').Context<EditorContextValue | null>;
3
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/context/editor/context.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,aAAa,oDAAiD,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { EditorContextValue } from './types';
2
+ /**
3
+ * Hook to access the full editor context.
4
+ * Returns a safe read-only default when used outside an EditorProvider.
5
+ */
6
+ export declare function useEditorContext(): EditorContextValue;
7
+ /**
8
+ * Hook to access just the selection state
9
+ */
10
+ export declare function useSelection(): {
11
+ selectedNodeId: string | null;
12
+ selectedNode: import('../..').LogicNode | null;
13
+ selectNode: (nodeId: string | null) => void;
14
+ };
15
+ /**
16
+ * Hook to access just the edit mode state
17
+ */
18
+ export declare function useEditMode(): {
19
+ isEditMode: boolean;
20
+ setEditMode: (enabled: boolean) => void;
21
+ };
22
+ /**
23
+ * Hook to access just the panel values
24
+ */
25
+ export declare function usePanelValues(): {
26
+ panelValues: Record<string, unknown>;
27
+ updatePanelValue: (fieldId: string, value: unknown) => void;
28
+ resetPanelValues: (values?: Record<string, unknown>) => void;
29
+ };
30
+ //# sourceMappingURL=hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/context/editor/hooks.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAoDlD;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,kBAAkB,CAGrD;AAED;;GAEG;AACH,wBAAgB,YAAY;;;;EAG3B;AAED;;GAEG;AACH,wBAAgB,WAAW;;;EAG1B;AAED;;GAEG;AACH,wBAAgB,cAAc;;;;EAG7B"}
@@ -0,0 +1,5 @@
1
+ export { EditorProvider } from './EditorContext';
2
+ export { EditorContext } from './context';
3
+ export { useEditorContext, useSelection, useEditMode, usePanelValues } from './hooks';
4
+ export type { EditorState, EditorActions, EditorContextValue, CreateNodeType } from './types';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/context/editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACtF,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,108 @@
1
+ import { LogicNode, LogicNodeData } from '../../types';
2
+ /**
3
+ * Editor state
4
+ */
5
+ export interface EditorState {
6
+ /** Currently selected node ID (primary selection) */
7
+ selectedNodeId: string | null;
8
+ /** All selected node IDs (for multi-select) */
9
+ selectedNodeIds: Set<string>;
10
+ /** Whether edit mode is active */
11
+ isEditMode: boolean;
12
+ /** Current field values for the selected node's panel */
13
+ panelValues: Record<string, unknown>;
14
+ }
15
+ /** Node creation types */
16
+ export type CreateNodeType = 'variable' | 'operator' | 'literal' | 'condition';
17
+ /** Node types that can be added as an argument */
18
+ export type AddArgumentNodeType = 'literal' | 'variable' | 'operator';
19
+ /**
20
+ * Clipboard data for copy/paste
21
+ */
22
+ export interface ClipboardData {
23
+ /** The copied nodes (root node and all descendants) */
24
+ nodes: LogicNode[];
25
+ /** The ID of the root copied node */
26
+ rootId: string;
27
+ }
28
+ /**
29
+ * Editor actions
30
+ */
31
+ export interface EditorActions {
32
+ /** Select a node by ID (clears multi-selection) */
33
+ selectNode: (nodeId: string | null) => void;
34
+ /** Set selection from ReactFlow (supports multi-select) */
35
+ setSelection: (nodeIds: string[]) => void;
36
+ /** Toggle a node in multi-selection (Cmd/Ctrl+Click) */
37
+ toggleNodeSelection: (nodeId: string) => void;
38
+ /** Add a node to multi-selection (Shift+Click) */
39
+ addToSelection: (nodeId: string) => void;
40
+ /** Clear all selections */
41
+ clearSelection: () => void;
42
+ /** Select all nodes */
43
+ selectAllNodes: () => void;
44
+ /** Check if a node is selected */
45
+ isNodeSelected: (nodeId: string) => boolean;
46
+ /** Toggle edit mode */
47
+ setEditMode: (enabled: boolean) => void;
48
+ /** Update a panel field value */
49
+ updatePanelValue: (fieldId: string, value: unknown) => void;
50
+ /** Reset panel values (when selection changes) */
51
+ resetPanelValues: (values?: Record<string, unknown>) => void;
52
+ /** Update a node's data */
53
+ updateNode: (nodeId: string, newData: Partial<LogicNodeData>) => void;
54
+ /** Delete a node and its descendants */
55
+ deleteNode: (nodeId: string) => void;
56
+ /** Apply current panel values to the selected node */
57
+ applyPanelChanges: () => void;
58
+ /** Add a new argument to an N-ary operator node */
59
+ addArgumentToNode: (nodeId: string, nodeType?: AddArgumentNodeType, operatorName?: string) => void;
60
+ /** Remove an argument from an operator node by index */
61
+ removeArgumentFromNode: (nodeId: string, argIndex: number) => void;
62
+ /** Get child nodes for a given parent node */
63
+ getChildNodes: (parentId: string) => LogicNode[];
64
+ /** Create a new node (as root if canvas is empty, or wrap existing root) */
65
+ createNode: (type: CreateNodeType, operatorName?: string) => void;
66
+ /** Check if canvas has any nodes */
67
+ hasNodes: () => boolean;
68
+ /** Insert a new node on an edge (between source and target) */
69
+ insertNodeOnEdge: (sourceId: string, targetId: string, operatorName: string) => void;
70
+ /** Undo the last action */
71
+ undo: () => void;
72
+ /** Redo the last undone action */
73
+ redo: () => void;
74
+ /** Check if undo is available */
75
+ canUndo: boolean;
76
+ /** Check if redo is available */
77
+ canRedo: boolean;
78
+ /** Copy the selected node and its descendants to clipboard */
79
+ copyNode: () => void;
80
+ /** Paste clipboard contents, replacing selected node or as new root */
81
+ pasteNode: () => void;
82
+ /** Check if paste is available */
83
+ canPaste: boolean;
84
+ /** Wrap a node in an operator (makes the node a child of the new operator) */
85
+ wrapNodeInOperator: (nodeId: string, operator: string) => void;
86
+ /** Duplicate a node and its descendants */
87
+ duplicateNode: (nodeId: string) => void;
88
+ /** Select all descendants of a node */
89
+ selectChildren: (nodeId: string) => void;
90
+ /** Focus the properties panel on a specific node and optionally a field */
91
+ focusPropertyPanel: (nodeId: string, fieldId?: string) => void;
92
+ /** Ref for focusing property panel fields */
93
+ propertyPanelFocusRef: React.RefObject<{
94
+ focusField: (fieldId?: string) => void;
95
+ } | null>;
96
+ }
97
+ /**
98
+ * Full editor context value
99
+ */
100
+ export interface EditorContextValue extends EditorState, EditorActions {
101
+ /** The currently selected node (computed from selectedNodeId) */
102
+ selectedNode: LogicNode | null;
103
+ /** All selected nodes (computed from selectedNodeIds) */
104
+ selectedNodes: LogicNode[];
105
+ /** All nodes in the editor (internal state, may differ from props during editing) */
106
+ nodes: LogicNode[];
107
+ }
108
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/context/editor/types.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,18 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { LogicNode } from '../../types';
3
+ export interface ClipboardDeps {
4
+ selectedNode: LogicNode | null;
5
+ internalNodes: LogicNode[];
6
+ pushToUndoStack: (nodes: LogicNode[]) => void;
7
+ setInternalNodes: Dispatch<SetStateAction<LogicNode[]>>;
8
+ onNodesChange?: (nodes: LogicNode[]) => void;
9
+ setSelectedNodeId: (id: string | null) => void;
10
+ setPanelValues: Dispatch<SetStateAction<Record<string, unknown>>>;
11
+ hasEditedRef: React.RefObject<boolean>;
12
+ }
13
+ export declare function useClipboardState(deps: ClipboardDeps): {
14
+ copyNode: () => void;
15
+ pasteNode: () => void;
16
+ canPaste: boolean;
17
+ };
18
+ //# sourceMappingURL=useClipboardState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useClipboardState.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/context/editor/useClipboardState.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAA0C,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACnG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,SAAS,GAAG,IAAI,CAAC;IAC/B,aAAa,EAAE,SAAS,EAAE,CAAC;IAC3B,eAAe,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC;IAC9C,gBAAgB,EAAE,QAAQ,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;IACxD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC;IAC7C,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/C,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAClE,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;CACxC;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,aAAa;;;;EAqGpD"}
@@ -0,0 +1,10 @@
1
+ import { Dispatch, RefObject, SetStateAction } from 'react';
2
+ import { LogicNode } from '../../types';
3
+ export declare function useHistoryState(nodesRef: RefObject<LogicNode[]>, setInternalNodes: Dispatch<SetStateAction<LogicNode[]>>, onNodesChange: ((nodes: LogicNode[]) => void) | undefined, clearSelection: () => void): {
4
+ pushToUndoStack: (nodes: LogicNode[]) => void;
5
+ undo: () => void;
6
+ redo: () => void;
7
+ canUndo: boolean;
8
+ canRedo: boolean;
9
+ };
10
+ //# sourceMappingURL=useHistoryState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHistoryState.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/context/editor/useHistoryState.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAA0C,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACnH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAI7C,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,SAAS,CAAC,SAAS,EAAE,CAAC,EAChC,gBAAgB,EAAE,QAAQ,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC,CAAC,EACvD,aAAa,EAAE,CAAC,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC,GAAG,SAAS,EACzD,cAAc,EAAE,MAAM,IAAI;6BAMkB,SAAS,EAAE;;;;;EA8CxD"}
@@ -0,0 +1,8 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { LogicNode } from '../../types';
3
+ import { CreateNodeType } from './types';
4
+ export declare function useNodeCreation(pushToUndoStack: (nodes: LogicNode[]) => void, setInternalNodes: Dispatch<SetStateAction<LogicNode[]>>, onNodesChange: ((nodes: LogicNode[]) => void) | undefined, setSelectedNodeId: (id: string | null) => void, setPanelValues: Dispatch<SetStateAction<Record<string, unknown>>>, hasEditedRef: React.RefObject<boolean>, internalNodes: LogicNode[]): {
5
+ createNode: (type: CreateNodeType, operatorName?: string) => void;
6
+ hasNodes: () => boolean;
7
+ };
8
+ //# sourceMappingURL=useNodeCreation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNodeCreation.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/context/editor/useNodeCreation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAe,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,KAAK,EAAE,SAAS,EAAqC,MAAM,aAAa,CAAC;AAChF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAG9C,wBAAgB,eAAe,CAC7B,eAAe,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,IAAI,EAC7C,gBAAgB,EAAE,QAAQ,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC,CAAC,EACvD,aAAa,EAAE,CAAC,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC,GAAG,SAAS,EACzD,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,EAC9C,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EACjE,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,EACtC,aAAa,EAAE,SAAS,EAAE;uBAOjB,cAAc,iBAAiB,MAAM;;EAwO/C"}
@@ -0,0 +1,6 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { LogicNode } from '../../types';
3
+ export declare function useNodeEdgeInsert(pushToUndoStack: (nodes: LogicNode[]) => void, setInternalNodes: Dispatch<SetStateAction<LogicNode[]>>, onNodesChange: ((nodes: LogicNode[]) => void) | undefined, setSelectedNodeId: (id: string | null) => void, setPanelValues: Dispatch<SetStateAction<Record<string, unknown>>>, hasEditedRef: React.RefObject<boolean>): {
4
+ insertNodeOnEdge: (sourceId: string, targetId: string, operatorName: string) => void;
5
+ };
6
+ //# sourceMappingURL=useNodeEdgeInsert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNodeEdgeInsert.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/context/editor/useNodeEdgeInsert.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAe,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,KAAK,EAAE,SAAS,EAAqC,MAAM,aAAa,CAAC;AAGhF,wBAAgB,iBAAiB,CAC/B,eAAe,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,IAAI,EAC7C,gBAAgB,EAAE,QAAQ,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC,CAAC,EACvD,aAAa,EAAE,CAAC,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC,GAAG,SAAS,EACzD,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,EAC9C,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EACjE,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC;iCAGzB,MAAM,YAAY,MAAM,gBAAgB,MAAM;EAsH5D"}
@@ -0,0 +1,26 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { LogicNode } from '../../types';
3
+ export interface NodeMutationDeps {
4
+ pushToUndoStack: (nodes: LogicNode[]) => void;
5
+ setInternalNodes: Dispatch<SetStateAction<LogicNode[]>>;
6
+ onNodesChange?: (nodes: LogicNode[]) => void;
7
+ selectedNodeId: string | null;
8
+ setSelectedNodeId: (id: string | null) => void;
9
+ setPanelValues: Dispatch<SetStateAction<Record<string, unknown>>>;
10
+ hasEditedRef: React.RefObject<boolean>;
11
+ nodes: LogicNode[];
12
+ internalNodes: LogicNode[];
13
+ }
14
+ export declare function useNodeMutations(deps: NodeMutationDeps): {
15
+ hasNodes: () => boolean;
16
+ createNode: (type: import('./types').CreateNodeType, operatorName?: string) => void;
17
+ insertNodeOnEdge: (sourceId: string, targetId: string, operatorName: string) => void;
18
+ updateNode: (nodeId: string, newData: Partial<import('../..').LogicNodeData>) => void;
19
+ deleteNode: (nodeId: string) => void;
20
+ getChildNodes: (parentId: string) => LogicNode[];
21
+ addArgumentToNode: (nodeId: string, nodeType?: "literal" | "variable" | "operator", operatorName?: string) => void;
22
+ removeArgumentFromNode: (nodeId: string, argIndex: number) => void;
23
+ wrapNodeInOperator: (nodeId: string, operator: string) => void;
24
+ duplicateNode: (nodeId: string) => void;
25
+ };
26
+ //# sourceMappingURL=useNodeMutations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNodeMutations.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/context/editor/useNodeMutations.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAK7C,MAAM,WAAW,gBAAgB;IAC/B,eAAe,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC;IAC9C,gBAAgB,EAAE,QAAQ,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;IACxD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC;IAC7C,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/C,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAClE,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACvC,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,aAAa,EAAE,SAAS,EAAE,CAAC;CAC5B;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,gBAAgB;;;;;;;;;;;EAmCtD"}
@@ -0,0 +1,12 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { LogicNode, LogicNodeData } from '../../types';
3
+ export declare function useNodeOperations(pushToUndoStack: (nodes: LogicNode[]) => void, setInternalNodes: Dispatch<SetStateAction<LogicNode[]>>, onNodesChange: ((nodes: LogicNode[]) => void) | undefined, selectedNodeId: string | null, setSelectedNodeId: (id: string | null) => void, setPanelValues: Dispatch<SetStateAction<Record<string, unknown>>>, hasEditedRef: React.RefObject<boolean>, nodes: LogicNode[]): {
4
+ updateNode: (nodeId: string, newData: Partial<LogicNodeData>) => void;
5
+ deleteNode: (nodeId: string) => void;
6
+ getChildNodes: (parentId: string) => LogicNode[];
7
+ addArgumentToNode: (nodeId: string, nodeType?: "literal" | "variable" | "operator", operatorName?: string) => void;
8
+ removeArgumentFromNode: (nodeId: string, argIndex: number) => void;
9
+ wrapNodeInOperator: (nodeId: string, operator: string) => void;
10
+ duplicateNode: (nodeId: string) => void;
11
+ };
12
+ //# sourceMappingURL=useNodeOperations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNodeOperations.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/context/editor/useNodeOperations.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAe,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAoB,MAAM,aAAa,CAAC;AAS9E,wBAAgB,iBAAiB,CAC/B,eAAe,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,IAAI,EAC7C,gBAAgB,EAAE,QAAQ,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC,CAAC,EACvD,aAAa,EAAE,CAAC,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC,GAAG,SAAS,EACzD,cAAc,EAAE,MAAM,GAAG,IAAI,EAC7B,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,EAC9C,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EACjE,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,EACtC,KAAK,EAAE,SAAS,EAAE;yBAGP,MAAM,WAAW,OAAO,CAAC,aAAa,CAAC;yBAsBvC,MAAM;8BAkBJ,MAAM,KAAG,SAAS,EAAE;gCA8BtB,MAAM,aAAY,SAAS,GAAG,UAAU,GAAG,UAAU,iBAA6B,MAAM;qCAgBxF,MAAM,YAAY,MAAM;iCAgBxB,MAAM,YAAY,MAAM;4BAqBxB,MAAM;EA0BlB"}
@@ -0,0 +1,20 @@
1
+ import { LogicNode } from '../../types';
2
+ export declare function useSelectionState(nodes: LogicNode[], internalNodes: LogicNode[]): {
3
+ selectedNodeId: string | null;
4
+ selectedNodeIds: Set<string>;
5
+ selectedNode: LogicNode | null;
6
+ selectedNodes: LogicNode[];
7
+ effectiveSelectedNodeId: string | null;
8
+ effectiveSelectedNodeIds: Set<string>;
9
+ selectNode: (nodeId: string | null) => void;
10
+ setSelection: (nodeIds: string[]) => void;
11
+ toggleNodeSelection: (nodeId: string) => void;
12
+ addToSelection: (nodeId: string) => void;
13
+ clearSelection: () => void;
14
+ selectAllNodes: () => void;
15
+ isNodeSelected: (nodeId: string) => boolean;
16
+ selectChildren: (nodeId: string) => void;
17
+ setSelectedNodeId: import('react').Dispatch<import('react').SetStateAction<string | null>>;
18
+ setSelectedNodeIds: import('react').Dispatch<import('react').SetStateAction<Set<string>>>;
19
+ };
20
+ //# sourceMappingURL=useSelectionState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSelectionState.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/context/editor/useSelectionState.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,aAAa,EAAE,SAAS,EAAE;;;;;;;yBAwBtC,MAAM,GAAG,IAAI;4BAKV,MAAM,EAAE;kCAKF,MAAM;6BAmBX,MAAM;;;6BAyBvC,MAAM;6BAKN,MAAM;;;EA4BlB"}
@@ -0,0 +1,7 @@
1
+ export { EvaluationContext, useEvaluationResult, useEvaluationResults } from './EvaluationContext';
2
+ export { DebuggerProvider, useDebuggerContext, useNodeDebugState } from './debugger';
3
+ export { ConnectedHandlesProvider } from './ConnectedHandlesContext';
4
+ export { useIsHandleConnected } from './useConnectedHandles';
5
+ export { EditorProvider, useEditorContext, useSelection, useEditMode, usePanelValues } from './editor';
6
+ export type { EditorState, EditorActions, EditorContextValue } from './editor';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACnG,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACrF,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AACvG,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare function useIsHandleConnected(nodeId: string, handleId: string): boolean;
2
+ export declare function useConnectedHandles(nodeId: string): Set<string>;
3
+ //# sourceMappingURL=useConnectedHandles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useConnectedHandles.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/context/useConnectedHandles.ts"],"names":[],"mappings":"AAIA,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAI9E;AAGD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAG/D"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * AddArgumentMenu Component
3
+ *
4
+ * Dropdown menu for adding a new argument to an operator node.
5
+ * Shows node type options: Literal, Variable, Operator (with submenu)
6
+ *
7
+ * Uses a Portal to render the menu outside of ReactFlow's transformed container,
8
+ * ensuring correct positioning regardless of zoom/pan state.
9
+ */
10
+ export type AddArgumentNodeType = 'literal' | 'variable' | 'operator';
11
+ export interface AddArgumentMenuProps {
12
+ /** X position (screen coordinates) */
13
+ x: number;
14
+ /** Y position (screen coordinates) */
15
+ y: number;
16
+ /** Called when menu should close */
17
+ onClose: () => void;
18
+ /** Called when a node type is selected */
19
+ onSelect: (type: AddArgumentNodeType, operatorName?: string) => void;
20
+ /** Operator category hint for default values (unused, reserved for future) */
21
+ operatorCategory?: string;
22
+ }
23
+ export declare const AddArgumentMenu: import('react').MemoExoticComponent<({ x, y, onClose, onSelect, }: AddArgumentMenuProps) => import('react').ReactPortal>;
24
+ //# sourceMappingURL=AddArgumentMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AddArgumentMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/context-menu/AddArgumentMenu.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAQH,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAEtE,MAAM,WAAW,oBAAoB;IACnC,sCAAsC;IACtC,CAAC,EAAE,MAAM,CAAC;IACV,sCAAsC;IACtC,CAAC,EAAE,MAAM,CAAC;IACV,oCAAoC;IACpC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,0CAA0C;IAC1C,QAAQ,EAAE,CAAC,IAAI,EAAE,mBAAmB,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrE,8EAA8E;IAC9E,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,eAAe,qEAKzB,oBAAoB,iCA6CrB,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * CanvasContextMenu Component
3
+ *
4
+ * Context menu for canvas (pane) operations:
5
+ * - Add Variable
6
+ * - Add Literal
7
+ * - Add Operator (submenu by category)
8
+ * - Add Condition
9
+ * - Paste
10
+ * - Select All
11
+ * - Fit View
12
+ * - Reset Zoom
13
+ */
14
+ export interface CanvasContextMenuProps {
15
+ /** X position (screen coordinates) */
16
+ x: number;
17
+ /** Y position (screen coordinates) */
18
+ y: number;
19
+ /** Called when menu should close */
20
+ onClose: () => void;
21
+ }
22
+ export declare const CanvasContextMenu: import('react').MemoExoticComponent<({ x, y, onClose, }: CanvasContextMenuProps) => import("react/jsx-runtime").JSX.Element>;
23
+ //# sourceMappingURL=CanvasContextMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CanvasContextMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/context-menu/CanvasContextMenu.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAoBH,MAAM,WAAW,sBAAsB;IACrC,sCAAsC;IACtC,CAAC,EAAE,MAAM,CAAC;IACV,sCAAsC;IACtC,CAAC,EAAE,MAAM,CAAC;IACV,oCAAoC;IACpC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,iBAAiB,2DAI3B,sBAAsB,6CA+IvB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { ReactNode } from 'react';
2
+ export interface MenuItemConfig {
3
+ id: string;
4
+ label: string;
5
+ icon?: ReactNode;
6
+ shortcut?: string;
7
+ disabled?: boolean;
8
+ danger?: boolean;
9
+ onClick?: () => void;
10
+ submenu?: MenuItemConfig[];
11
+ }
12
+ export interface ContextMenuProps {
13
+ /** X position (screen coordinates) */
14
+ x: number;
15
+ /** Y position (screen coordinates) */
16
+ y: number;
17
+ /** Menu items to display */
18
+ items: MenuItemConfig[];
19
+ /** Called when menu should close */
20
+ onClose: () => void;
21
+ }
22
+ export declare const ContextMenu: import('react').MemoExoticComponent<({ x, y, items, onClose, }: ContextMenuProps) => import("react/jsx-runtime").JSX.Element>;
23
+ //# sourceMappingURL=ContextMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/context-menu/ContextMenu.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAkD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvF,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,gBAAgB;IAC/B,sCAAsC;IACtC,CAAC,EAAE,MAAM,CAAC;IACV,sCAAsC;IACtC,CAAC,EAAE,MAAM,CAAC;IACV,4BAA4B;IAC5B,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,oCAAoC;IACpC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,WAAW,kEAKrB,gBAAgB,6CAgOjB,CAAC"}