@goplasmatic/datalogic-ui 4.0.19 → 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.
- package/dist/components/logic-editor/AutoFitView.d.ts +4 -0
- package/dist/components/logic-editor/AutoFitView.d.ts.map +1 -0
- package/dist/components/logic-editor/DataLogicEditor.d.ts +4 -0
- package/dist/components/logic-editor/DataLogicEditor.d.ts.map +1 -0
- package/dist/components/logic-editor/EditorToolbar.d.ts +9 -0
- package/dist/components/logic-editor/EditorToolbar.d.ts.map +1 -0
- package/dist/components/logic-editor/KeyboardHandler.d.ts +9 -0
- package/dist/components/logic-editor/KeyboardHandler.d.ts.map +1 -0
- package/dist/components/logic-editor/NodeSelectionHandler.d.ts +14 -0
- package/dist/components/logic-editor/NodeSelectionHandler.d.ts.map +1 -0
- package/dist/components/logic-editor/UndoRedoToolbar.d.ts +9 -0
- package/dist/components/logic-editor/UndoRedoToolbar.d.ts.map +1 -0
- package/dist/components/logic-editor/config/categories.d.ts +19 -0
- package/dist/components/logic-editor/config/categories.d.ts.map +1 -0
- package/dist/components/logic-editor/config/literalPanel.d.ts +6 -0
- package/dist/components/logic-editor/config/literalPanel.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/arithmetic-basic.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/arithmetic-basic.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/arithmetic-functions.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/arithmetic-functions.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/arithmetic.d.ts +12 -0
- package/dist/components/logic-editor/config/operators/arithmetic.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/array-iteration.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/array-iteration.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/array-manipulation.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/array-manipulation.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/array.d.ts +11 -0
- package/dist/components/logic-editor/config/operators/array.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/comparison.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/comparison.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/control.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/control.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/datetime.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/datetime.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/error.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/error.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/index.d.ts +47 -0
- package/dist/components/logic-editor/config/operators/index.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/logical.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/logical.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/string-core.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/string-core.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/string-transform.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/string-transform.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/string.d.ts +16 -0
- package/dist/components/logic-editor/config/operators/string.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/utility.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/utility.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/validation.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/validation.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/variable.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/variable.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators.types.d.ts +144 -0
- package/dist/components/logic-editor/config/operators.types.d.ts.map +1 -0
- package/dist/components/logic-editor/constants/colors.d.ts +7 -0
- package/dist/components/logic-editor/constants/colors.d.ts.map +1 -0
- package/dist/components/logic-editor/constants/formatting.d.ts +7 -0
- package/dist/components/logic-editor/constants/formatting.d.ts.map +1 -0
- package/dist/components/logic-editor/constants/handles.d.ts +24 -0
- package/dist/components/logic-editor/constants/handles.d.ts.map +1 -0
- package/dist/components/logic-editor/constants/index.d.ts +5 -0
- package/dist/components/logic-editor/constants/index.d.ts.map +1 -0
- package/dist/components/logic-editor/constants/layout.d.ts +41 -0
- package/dist/components/logic-editor/constants/layout.d.ts.map +1 -0
- package/dist/components/logic-editor/context/ConnectedHandlesContext.d.ts +9 -0
- package/dist/components/logic-editor/context/ConnectedHandlesContext.d.ts.map +1 -0
- package/dist/components/logic-editor/context/ConnectedHandlesContextDef.d.ts +3 -0
- package/dist/components/logic-editor/context/ConnectedHandlesContextDef.d.ts.map +1 -0
- package/dist/components/logic-editor/context/EvaluationContext.d.ts +5 -0
- package/dist/components/logic-editor/context/EvaluationContext.d.ts.map +1 -0
- package/dist/components/logic-editor/context/debugger/DebuggerProvider.d.ts +12 -0
- package/dist/components/logic-editor/context/debugger/DebuggerProvider.d.ts.map +1 -0
- package/dist/components/logic-editor/context/debugger/context.d.ts +3 -0
- package/dist/components/logic-editor/context/debugger/context.d.ts.map +1 -0
- package/dist/components/logic-editor/context/debugger/hooks.d.ts +12 -0
- package/dist/components/logic-editor/context/debugger/hooks.d.ts.map +1 -0
- package/dist/components/logic-editor/context/debugger/index.d.ts +4 -0
- package/dist/components/logic-editor/context/debugger/index.d.ts.map +1 -0
- package/dist/components/logic-editor/context/debugger/reducer.d.ts +4 -0
- package/dist/components/logic-editor/context/debugger/reducer.d.ts.map +1 -0
- package/dist/components/logic-editor/context/debugger/types.d.ts +58 -0
- package/dist/components/logic-editor/context/debugger/types.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/EditorContext.d.ts +12 -0
- package/dist/components/logic-editor/context/editor/EditorContext.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/context.d.ts +3 -0
- package/dist/components/logic-editor/context/editor/context.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/hooks.d.ts +30 -0
- package/dist/components/logic-editor/context/editor/hooks.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/index.d.ts +5 -0
- package/dist/components/logic-editor/context/editor/index.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/types.d.ts +108 -0
- package/dist/components/logic-editor/context/editor/types.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/useClipboardState.d.ts +18 -0
- package/dist/components/logic-editor/context/editor/useClipboardState.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/useHistoryState.d.ts +10 -0
- package/dist/components/logic-editor/context/editor/useHistoryState.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/useNodeCreation.d.ts +8 -0
- package/dist/components/logic-editor/context/editor/useNodeCreation.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/useNodeEdgeInsert.d.ts +6 -0
- package/dist/components/logic-editor/context/editor/useNodeEdgeInsert.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/useNodeMutations.d.ts +26 -0
- package/dist/components/logic-editor/context/editor/useNodeMutations.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/useNodeOperations.d.ts +12 -0
- package/dist/components/logic-editor/context/editor/useNodeOperations.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/useSelectionState.d.ts +20 -0
- package/dist/components/logic-editor/context/editor/useSelectionState.d.ts.map +1 -0
- package/dist/components/logic-editor/context/index.d.ts +7 -0
- package/dist/components/logic-editor/context/index.d.ts.map +1 -0
- package/dist/components/logic-editor/context/useConnectedHandles.d.ts +3 -0
- package/dist/components/logic-editor/context/useConnectedHandles.d.ts.map +1 -0
- package/dist/components/logic-editor/context-menu/AddArgumentMenu.d.ts +24 -0
- package/dist/components/logic-editor/context-menu/AddArgumentMenu.d.ts.map +1 -0
- package/dist/components/logic-editor/context-menu/CanvasContextMenu.d.ts +23 -0
- package/dist/components/logic-editor/context-menu/CanvasContextMenu.d.ts.map +1 -0
- package/dist/components/logic-editor/context-menu/ContextMenu.d.ts +23 -0
- package/dist/components/logic-editor/context-menu/ContextMenu.d.ts.map +1 -0
- package/dist/components/logic-editor/context-menu/NodeContextMenu.d.ts +15 -0
- package/dist/components/logic-editor/context-menu/NodeContextMenu.d.ts.map +1 -0
- package/dist/components/logic-editor/context-menu/index.d.ts +5 -0
- package/dist/components/logic-editor/context-menu/index.d.ts.map +1 -0
- package/dist/components/logic-editor/context-menu/menu-helpers.d.ts +5 -0
- package/dist/components/logic-editor/context-menu/menu-helpers.d.ts.map +1 -0
- package/dist/components/logic-editor/context-menu/useContextMenuItems.d.ts +10 -0
- package/dist/components/logic-editor/context-menu/useContextMenuItems.d.ts.map +1 -0
- package/dist/components/logic-editor/debugger-controls/DebuggerControls.d.ts +3 -0
- package/dist/components/logic-editor/debugger-controls/DebuggerControls.d.ts.map +1 -0
- package/dist/components/logic-editor/debugger-controls/index.d.ts +2 -0
- package/dist/components/logic-editor/debugger-controls/index.d.ts.map +1 -0
- package/dist/components/logic-editor/edges/EdgeOperatorPicker.d.ts +18 -0
- package/dist/components/logic-editor/edges/EdgeOperatorPicker.d.ts.map +1 -0
- package/dist/components/logic-editor/edges/EditableEdge.d.ts +4 -0
- package/dist/components/logic-editor/edges/EditableEdge.d.ts.map +1 -0
- package/dist/components/logic-editor/edges/index.d.ts +11 -0
- package/dist/components/logic-editor/edges/index.d.ts.map +1 -0
- package/dist/components/logic-editor/hooks/index.d.ts +11 -0
- package/dist/components/logic-editor/hooks/index.d.ts.map +1 -0
- package/dist/components/logic-editor/hooks/useContextMenu.d.ts +19 -0
- package/dist/components/logic-editor/hooks/useContextMenu.d.ts.map +1 -0
- package/dist/components/logic-editor/hooks/useDebugClassName.d.ts +6 -0
- package/dist/components/logic-editor/hooks/useDebugClassName.d.ts.map +1 -0
- package/dist/components/logic-editor/hooks/useDebugEvaluation.d.ts +16 -0
- package/dist/components/logic-editor/hooks/useDebugEvaluation.d.ts.map +1 -0
- package/dist/components/logic-editor/hooks/useIsMobile.d.ts +2 -0
- package/dist/components/logic-editor/hooks/useIsMobile.d.ts.map +1 -0
- package/dist/components/logic-editor/hooks/useLogicEditor.d.ts +26 -0
- package/dist/components/logic-editor/hooks/useLogicEditor.d.ts.map +1 -0
- package/dist/components/logic-editor/hooks/useNodeCollapse.d.ts +5 -0
- package/dist/components/logic-editor/hooks/useNodeCollapse.d.ts.map +1 -0
- package/dist/components/logic-editor/hooks/useRecursionCheck.d.ts +29 -0
- package/dist/components/logic-editor/hooks/useRecursionCheck.d.ts.map +1 -0
- package/dist/components/logic-editor/hooks/useSystemTheme.d.ts +7 -0
- package/dist/components/logic-editor/hooks/useSystemTheme.d.ts.map +1 -0
- package/dist/components/logic-editor/hooks/useWasmEvaluator.d.ts +15 -0
- package/dist/components/logic-editor/hooks/useWasmEvaluator.d.ts.map +1 -0
- package/dist/components/logic-editor/index.d.ts +8 -0
- package/dist/components/logic-editor/index.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/CellHandles.d.ts +13 -0
- package/dist/components/logic-editor/nodes/CellHandles.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/CellRow.d.ts +8 -0
- package/dist/components/logic-editor/nodes/CellRow.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/DebugInfoBubble.d.ts +8 -0
- package/dist/components/logic-editor/nodes/DebugInfoBubble.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/LiteralNode.d.ts +9 -0
- package/dist/components/logic-editor/nodes/LiteralNode.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/StructureNode.d.ts +9 -0
- package/dist/components/logic-editor/nodes/StructureNode.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/UnifiedOperatorNode.d.ts +9 -0
- package/dist/components/logic-editor/nodes/UnifiedOperatorNode.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/index.d.ts +6 -0
- package/dist/components/logic-editor/nodes/index.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/nodeTypes.d.ts +3 -0
- package/dist/components/logic-editor/nodes/nodeTypes.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/shared/CollapseToggleButton.d.ts +10 -0
- package/dist/components/logic-editor/nodes/shared/CollapseToggleButton.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/shared/NodeDebugBubble.d.ts +11 -0
- package/dist/components/logic-editor/nodes/shared/NodeDebugBubble.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/shared/NodeInputHandles.d.ts +11 -0
- package/dist/components/logic-editor/nodes/shared/NodeInputHandles.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/shared/index.d.ts +4 -0
- package/dist/components/logic-editor/nodes/shared/index.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/BooleanInput.d.ts +9 -0
- package/dist/components/logic-editor/panel-inputs/BooleanInput.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/ExpressionInput.d.ts +16 -0
- package/dist/components/logic-editor/panel-inputs/ExpressionInput.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/FieldRenderer.d.ts +17 -0
- package/dist/components/logic-editor/panel-inputs/FieldRenderer.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/JsonInput.d.ts +15 -0
- package/dist/components/logic-editor/panel-inputs/JsonInput.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/NumberInput.d.ts +14 -0
- package/dist/components/logic-editor/panel-inputs/NumberInput.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/PanelRenderer.d.ts +22 -0
- package/dist/components/logic-editor/panel-inputs/PanelRenderer.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/PathArrayInput.d.ts +14 -0
- package/dist/components/logic-editor/panel-inputs/PathArrayInput.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/PathInput.d.ts +14 -0
- package/dist/components/logic-editor/panel-inputs/PathInput.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/SectionRenderer.d.ts +21 -0
- package/dist/components/logic-editor/panel-inputs/SectionRenderer.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/SelectInput.d.ts +12 -0
- package/dist/components/logic-editor/panel-inputs/SelectInput.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/TextAreaInput.d.ts +12 -0
- package/dist/components/logic-editor/panel-inputs/TextAreaInput.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/TextInput.d.ts +11 -0
- package/dist/components/logic-editor/panel-inputs/TextInput.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/index.d.ts +20 -0
- package/dist/components/logic-editor/panel-inputs/index.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/visibility.d.ts +10 -0
- package/dist/components/logic-editor/panel-inputs/visibility.d.ts.map +1 -0
- package/dist/components/logic-editor/properties-panel/ArgumentItem.d.ts +14 -0
- package/dist/components/logic-editor/properties-panel/ArgumentItem.d.ts.map +1 -0
- package/dist/components/logic-editor/properties-panel/ArgumentsSection.d.ts +7 -0
- package/dist/components/logic-editor/properties-panel/ArgumentsSection.d.ts.map +1 -0
- package/dist/components/logic-editor/properties-panel/HelpSection.d.ts +8 -0
- package/dist/components/logic-editor/properties-panel/HelpSection.d.ts.map +1 -0
- package/dist/components/logic-editor/properties-panel/PropertiesPanel.d.ts +7 -0
- package/dist/components/logic-editor/properties-panel/PropertiesPanel.d.ts.map +1 -0
- package/dist/components/logic-editor/properties-panel/index.d.ts +10 -0
- package/dist/components/logic-editor/properties-panel/index.d.ts.map +1 -0
- package/dist/components/logic-editor/properties-panel/utils/argument-parser.d.ts +52 -0
- package/dist/components/logic-editor/properties-panel/utils/argument-parser.d.ts.map +1 -0
- package/dist/components/logic-editor/properties-panel/utils/expression-rebuilder.d.ts +6 -0
- package/dist/components/logic-editor/properties-panel/utils/expression-rebuilder.d.ts.map +1 -0
- package/dist/components/logic-editor/properties-panel/utils/index.d.ts +7 -0
- package/dist/components/logic-editor/properties-panel/utils/index.d.ts.map +1 -0
- package/dist/components/logic-editor/properties-panel/utils.d.ts +23 -0
- package/dist/components/logic-editor/properties-panel/utils.d.ts.map +1 -0
- package/dist/components/logic-editor/services/argument-service.d.ts +17 -0
- package/dist/components/logic-editor/services/argument-service.d.ts.map +1 -0
- package/dist/components/logic-editor/services/index.d.ts +7 -0
- package/dist/components/logic-editor/services/index.d.ts.map +1 -0
- package/dist/components/logic-editor/services/node-creation-service.d.ts +13 -0
- package/dist/components/logic-editor/services/node-creation-service.d.ts.map +1 -0
- package/dist/components/logic-editor/services/node-mutation-service.d.ts +14 -0
- package/dist/components/logic-editor/services/node-mutation-service.d.ts.map +1 -0
- package/dist/components/logic-editor/services/node-transform-service.d.ts +15 -0
- package/dist/components/logic-editor/services/node-transform-service.d.ts.map +1 -0
- package/dist/components/logic-editor/types/editor.d.ts +134 -0
- package/dist/components/logic-editor/types/editor.d.ts.map +1 -0
- package/dist/components/logic-editor/types/index.d.ts +5 -0
- package/dist/components/logic-editor/types/index.d.ts.map +1 -0
- package/dist/components/logic-editor/types/jsonlogic.d.ts +14 -0
- package/dist/components/logic-editor/types/jsonlogic.d.ts.map +1 -0
- package/dist/components/logic-editor/types/trace.d.ts +21 -0
- package/dist/components/logic-editor/types/trace.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/ExpressionSyntax.d.ts +9 -0
- package/dist/components/logic-editor/utils/ExpressionSyntax.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/Icon.d.ts +11 -0
- package/dist/components/logic-editor/utils/Icon.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/converters/if-else-converter.d.ts +4 -0
- package/dist/components/logic-editor/utils/converters/if-else-converter.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/converters/index.d.ts +5 -0
- package/dist/components/logic-editor/utils/converters/index.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/converters/operator-converter.d.ts +5 -0
- package/dist/components/logic-editor/utils/converters/operator-converter.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/converters/primitive-converter.d.ts +5 -0
- package/dist/components/logic-editor/utils/converters/primitive-converter.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/converters/structure-converter.d.ts +7 -0
- package/dist/components/logic-editor/utils/converters/structure-converter.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/converters/switch-converter.d.ts +18 -0
- package/dist/components/logic-editor/utils/converters/switch-converter.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/converters/types.d.ts +18 -0
- package/dist/components/logic-editor/utils/converters/types.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/converters/variable-converter.d.ts +8 -0
- package/dist/components/logic-editor/utils/converters/variable-converter.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/edge-builder.d.ts +8 -0
- package/dist/components/logic-editor/utils/edge-builder.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/expression-builder.d.ts +16 -0
- package/dist/components/logic-editor/utils/expression-builder.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/formatting/arg-summary.d.ts +4 -0
- package/dist/components/logic-editor/utils/formatting/arg-summary.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/formatting/expression-text.d.ts +3 -0
- package/dist/components/logic-editor/utils/formatting/expression-text.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/formatting/index.d.ts +4 -0
- package/dist/components/logic-editor/utils/formatting/index.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/formatting/value-formatter.d.ts +5 -0
- package/dist/components/logic-editor/utils/formatting/value-formatter.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/icons.d.ts +19 -0
- package/dist/components/logic-editor/utils/icons.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/index.d.ts +13 -0
- package/dist/components/logic-editor/utils/index.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/jsonlogic-to-nodes.d.ts +7 -0
- package/dist/components/logic-editor/utils/jsonlogic-to-nodes.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/layout.d.ts +3 -0
- package/dist/components/logic-editor/utils/layout.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/menu-builder.d.ts +27 -0
- package/dist/components/logic-editor/utils/menu-builder.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/node-cloning.d.ts +50 -0
- package/dist/components/logic-editor/utils/node-cloning.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/node-deletion.d.ts +24 -0
- package/dist/components/logic-editor/utils/node-deletion.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/node-factory.d.ts +42 -0
- package/dist/components/logic-editor/utils/node-factory.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/node-updaters.d.ts +11 -0
- package/dist/components/logic-editor/utils/node-updaters.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/nodes-to-jsonlogic.d.ts +13 -0
- package/dist/components/logic-editor/utils/nodes-to-jsonlogic.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/child-matching.d.ts +13 -0
- package/dist/components/logic-editor/utils/trace/child-matching.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/evaluation-results.d.ts +15 -0
- package/dist/components/logic-editor/utils/trace/evaluation-results.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/index.d.ts +7 -0
- package/dist/components/logic-editor/utils/trace/index.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/inline-mapping.d.ts +6 -0
- package/dist/components/logic-editor/utils/trace/inline-mapping.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/node-creators/if-else.d.ts +13 -0
- package/dist/components/logic-editor/utils/trace/node-creators/if-else.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/node-creators/index.d.ts +8 -0
- package/dist/components/logic-editor/utils/trace/node-creators/index.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/node-creators/literal.d.ts +9 -0
- package/dist/components/logic-editor/utils/trace/node-creators/literal.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/node-creators/operator.d.ts +11 -0
- package/dist/components/logic-editor/utils/trace/node-creators/operator.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/node-creators/structure.d.ts +12 -0
- package/dist/components/logic-editor/utils/trace/node-creators/structure.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/node-creators/switch.d.ts +21 -0
- package/dist/components/logic-editor/utils/trace/node-creators/switch.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/node-creators/variable.d.ts +9 -0
- package/dist/components/logic-editor/utils/trace/node-creators/variable.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/node-creators/vertical-cell.d.ts +12 -0
- package/dist/components/logic-editor/utils/trace/node-creators/vertical-cell.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/node-type.d.ts +7 -0
- package/dist/components/logic-editor/utils/trace/node-type.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/trace-to-nodes.d.ts +7 -0
- package/dist/components/logic-editor/utils/trace/trace-to-nodes.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/types.d.ts +24 -0
- package/dist/components/logic-editor/utils/trace/types.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/type-guards.d.ts +8 -0
- package/dist/components/logic-editor/utils/type-guards.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/type-helpers.d.ts +9 -0
- package/dist/components/logic-editor/utils/type-helpers.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/visibility.d.ts +3 -0
- package/dist/components/logic-editor/utils/visibility.d.ts.map +1 -0
- package/dist/datalogic_wasm-Ckkdrc0z.cjs +383 -0
- package/dist/datalogic_wasm-daWVf40b.js +380 -0
- package/dist/index.cjs +17192 -19117
- package/dist/index.js +17604 -22706
- package/dist/lib.d.ts +6 -0
- package/dist/lib.d.ts.map +1 -0
- package/dist/styles.css +1 -0
- package/package.json +20 -21
- package/dist/datalogic_wasm-CJRUeom8.cjs +0 -470
- package/dist/datalogic_wasm-dEsk1ML-.js +0 -373
- package/dist/index.d.ts +0 -311
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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"}
|