@goplasmatic/datalogic-ui 5.0.0 → 5.1.0
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/README.md +3 -3
- package/dist/components/logic-editor/AutoFitView.d.ts +7 -0
- package/dist/components/logic-editor/AutoFitView.d.ts.map +1 -1
- package/dist/components/logic-editor/DataLogicEditor.d.ts +1 -1
- package/dist/components/logic-editor/DataLogicEditor.d.ts.map +1 -1
- package/dist/components/logic-editor/EditorToolbar.d.ts +4 -1
- package/dist/components/logic-editor/EditorToolbar.d.ts.map +1 -1
- package/dist/components/logic-editor/UndoRedoToolbar.d.ts +1 -1
- package/dist/components/logic-editor/UndoRedoToolbar.d.ts.map +1 -1
- package/dist/components/logic-editor/constants/index.d.ts +1 -1
- package/dist/components/logic-editor/constants/index.d.ts.map +1 -1
- package/dist/components/logic-editor/constants/layout.d.ts +13 -4
- package/dist/components/logic-editor/constants/layout.d.ts.map +1 -1
- package/dist/components/logic-editor/context/ConnectedHandlesContext.d.ts +1 -1
- package/dist/components/logic-editor/context/ConnectedHandlesContext.d.ts.map +1 -1
- package/dist/components/logic-editor/context/DirectionContextDef.d.ts +11 -0
- package/dist/components/logic-editor/context/DirectionContextDef.d.ts.map +1 -0
- package/dist/components/logic-editor/context/debugger/DebuggerProvider.d.ts +1 -1
- package/dist/components/logic-editor/context/debugger/DebuggerProvider.d.ts.map +1 -1
- package/dist/components/logic-editor/context/editor/EditorContext.d.ts +1 -1
- package/dist/components/logic-editor/context/editor/EditorContext.d.ts.map +1 -1
- package/dist/components/logic-editor/context/index.d.ts +2 -0
- package/dist/components/logic-editor/context/index.d.ts.map +1 -1
- package/dist/components/logic-editor/context/useDirection.d.ts +6 -0
- package/dist/components/logic-editor/context/useDirection.d.ts.map +1 -0
- package/dist/components/logic-editor/context-menu/CanvasContextMenu.d.ts +1 -1
- package/dist/components/logic-editor/context-menu/CanvasContextMenu.d.ts.map +1 -1
- package/dist/components/logic-editor/context-menu/ContextMenu.d.ts +1 -1
- package/dist/components/logic-editor/context-menu/ContextMenu.d.ts.map +1 -1
- package/dist/components/logic-editor/debugger-controls/DebuggerControls.d.ts +2 -2
- package/dist/components/logic-editor/debugger-controls/DebuggerControls.d.ts.map +1 -1
- package/dist/components/logic-editor/edges/EdgeOperatorPicker.d.ts +1 -1
- package/dist/components/logic-editor/edges/EdgeOperatorPicker.d.ts.map +1 -1
- package/dist/components/logic-editor/edges/EditableEdge.d.ts +1 -1
- package/dist/components/logic-editor/edges/EditableEdge.d.ts.map +1 -1
- package/dist/components/logic-editor/edges/index.d.ts +1 -1
- package/dist/components/logic-editor/hooks/useLogicEditor.d.ts +4 -1
- package/dist/components/logic-editor/hooks/useLogicEditor.d.ts.map +1 -1
- package/dist/components/logic-editor/nodes/CellHandles.d.ts +1 -1
- package/dist/components/logic-editor/nodes/CellHandles.d.ts.map +1 -1
- package/dist/components/logic-editor/nodes/CellRow.d.ts +1 -1
- package/dist/components/logic-editor/nodes/CellRow.d.ts.map +1 -1
- package/dist/components/logic-editor/nodes/DebugInfoBubble.d.ts +1 -1
- package/dist/components/logic-editor/nodes/DebugInfoBubble.d.ts.map +1 -1
- package/dist/components/logic-editor/nodes/LiteralNode.d.ts +1 -1
- package/dist/components/logic-editor/nodes/LiteralNode.d.ts.map +1 -1
- package/dist/components/logic-editor/nodes/StructureNode.d.ts +1 -1
- package/dist/components/logic-editor/nodes/StructureNode.d.ts.map +1 -1
- package/dist/components/logic-editor/nodes/UnifiedOperatorNode.d.ts +1 -1
- package/dist/components/logic-editor/nodes/UnifiedOperatorNode.d.ts.map +1 -1
- package/dist/components/logic-editor/nodes/shared/CollapseToggleButton.d.ts +1 -1
- package/dist/components/logic-editor/nodes/shared/CollapseToggleButton.d.ts.map +1 -1
- package/dist/components/logic-editor/nodes/shared/NodeDebugBubble.d.ts +1 -1
- package/dist/components/logic-editor/nodes/shared/NodeDebugBubble.d.ts.map +1 -1
- package/dist/components/logic-editor/nodes/shared/NodeInputHandles.d.ts +6 -3
- package/dist/components/logic-editor/nodes/shared/NodeInputHandles.d.ts.map +1 -1
- package/dist/components/logic-editor/panel-inputs/BooleanInput.d.ts +1 -1
- package/dist/components/logic-editor/panel-inputs/BooleanInput.d.ts.map +1 -1
- package/dist/components/logic-editor/panel-inputs/ExpressionInput.d.ts +1 -1
- package/dist/components/logic-editor/panel-inputs/ExpressionInput.d.ts.map +1 -1
- package/dist/components/logic-editor/panel-inputs/JsonInput.d.ts +1 -1
- package/dist/components/logic-editor/panel-inputs/JsonInput.d.ts.map +1 -1
- package/dist/components/logic-editor/panel-inputs/NumberInput.d.ts +1 -1
- package/dist/components/logic-editor/panel-inputs/NumberInput.d.ts.map +1 -1
- package/dist/components/logic-editor/panel-inputs/PathArrayInput.d.ts +1 -1
- package/dist/components/logic-editor/panel-inputs/PathArrayInput.d.ts.map +1 -1
- package/dist/components/logic-editor/panel-inputs/PathInput.d.ts +1 -1
- package/dist/components/logic-editor/panel-inputs/PathInput.d.ts.map +1 -1
- package/dist/components/logic-editor/panel-inputs/SelectInput.d.ts +1 -1
- package/dist/components/logic-editor/panel-inputs/SelectInput.d.ts.map +1 -1
- package/dist/components/logic-editor/panel-inputs/TextAreaInput.d.ts +1 -1
- package/dist/components/logic-editor/panel-inputs/TextAreaInput.d.ts.map +1 -1
- package/dist/components/logic-editor/panel-inputs/TextInput.d.ts +1 -1
- package/dist/components/logic-editor/panel-inputs/TextInput.d.ts.map +1 -1
- package/dist/components/logic-editor/properties-panel/ArgumentItem.d.ts +1 -1
- package/dist/components/logic-editor/properties-panel/ArgumentItem.d.ts.map +1 -1
- package/dist/components/logic-editor/properties-panel/ArgumentsSection.d.ts +1 -1
- package/dist/components/logic-editor/properties-panel/ArgumentsSection.d.ts.map +1 -1
- package/dist/components/logic-editor/properties-panel/HelpSection.d.ts +1 -1
- package/dist/components/logic-editor/properties-panel/HelpSection.d.ts.map +1 -1
- package/dist/components/logic-editor/properties-panel/PropertiesPanel.d.ts +1 -1
- package/dist/components/logic-editor/properties-panel/PropertiesPanel.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/ExpressionSyntax.d.ts +1 -1
- package/dist/components/logic-editor/utils/ExpressionSyntax.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/converters/if-else-converter.d.ts +6 -0
- package/dist/components/logic-editor/utils/converters/if-else-converter.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/converters/operator-converter.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/edge-builder.d.ts +5 -4
- package/dist/components/logic-editor/utils/edge-builder.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/formatting/arg-summary.d.ts +7 -0
- package/dist/components/logic-editor/utils/formatting/arg-summary.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/formatting/index.d.ts +1 -1
- package/dist/components/logic-editor/utils/formatting/index.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/inline-vars.d.ts +15 -0
- package/dist/components/logic-editor/utils/inline-vars.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/layout.d.ts +2 -1
- package/dist/components/logic-editor/utils/layout.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/node-factory.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/nodeShape.d.ts +23 -0
- package/dist/components/logic-editor/utils/nodeShape.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/signal.d.ts +10 -0
- package/dist/components/logic-editor/utils/signal.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/node-creators/if-else.d.ts +4 -2
- package/dist/components/logic-editor/utils/trace/node-creators/if-else.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/trace/node-creators/variable.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/trace/node-creators/vertical-cell.d.ts.map +1 -1
- package/dist/datalogic_wasm-BwcPSrZk.js +1145 -0
- package/dist/datalogic_wasm-dTo8Zxxv.cjs +1148 -0
- package/dist/index.cjs +2521 -2028
- package/dist/index.js +2522 -2029
- package/dist/styles.css +1118 -378
- package/package.json +31 -25
- package/dist/datalogic_wasm-CF1jcNAu.js +0 -634
- package/dist/datalogic_wasm-Dj9TEPTG.cjs +0 -637
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PathArrayInput.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/panel-inputs/PathArrayInput.tsx"],"names":[],"mappings":"AAGA,UAAU,mBAAmB;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,2EAKxB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"PathArrayInput.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/panel-inputs/PathArrayInput.tsx"],"names":[],"mappings":"AAGA,UAAU,mBAAmB;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,2EAKxB,mBAAmB,iCA+DpB,CAAC"}
|
|
@@ -9,6 +9,6 @@ interface PathInputProps {
|
|
|
9
9
|
/**
|
|
10
10
|
* Input for dot-notation paths (e.g., "user.profile.name")
|
|
11
11
|
*/
|
|
12
|
-
export declare const PathInput: import('react').MemoExoticComponent<({ id, value, onChange, placeholder, disabled, required, }: PathInputProps) => import("react
|
|
12
|
+
export declare const PathInput: import('react').MemoExoticComponent<({ id, value, onChange, placeholder, disabled, required, }: PathInputProps) => import("react").JSX.Element>;
|
|
13
13
|
export {};
|
|
14
14
|
//# sourceMappingURL=PathInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PathInput.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/panel-inputs/PathInput.tsx"],"names":[],"mappings":"AAEA,UAAU,cAAc;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,kGAOnB,cAAc,
|
|
1
|
+
{"version":3,"file":"PathInput.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/panel-inputs/PathInput.tsx"],"names":[],"mappings":"AAEA,UAAU,cAAc;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,kGAOnB,cAAc,iCAkBf,CAAC"}
|
|
@@ -7,6 +7,6 @@ interface SelectInputProps {
|
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
required?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare const SelectInput: import('react').MemoExoticComponent<({ id, value, onChange, options, disabled, required, }: SelectInputProps) => import("react
|
|
10
|
+
export declare const SelectInput: import('react').MemoExoticComponent<({ id, value, onChange, options, disabled, required, }: SelectInputProps) => import("react").JSX.Element>;
|
|
11
11
|
export {};
|
|
12
12
|
//# sourceMappingURL=SelectInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectInput.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/panel-inputs/SelectInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,UAAU,gBAAgB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACjC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;IACrD,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,8FAOrB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"SelectInput.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/panel-inputs/SelectInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,UAAU,gBAAgB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACjC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;IACrD,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,8FAOrB,gBAAgB,iCAiCjB,CAAC"}
|
|
@@ -7,6 +7,6 @@ interface TextAreaInputProps {
|
|
|
7
7
|
required?: boolean;
|
|
8
8
|
rows?: number;
|
|
9
9
|
}
|
|
10
|
-
export declare const TextAreaInput: import('react').MemoExoticComponent<({ id, value, onChange, placeholder, disabled, required, rows, }: TextAreaInputProps) => import("react
|
|
10
|
+
export declare const TextAreaInput: import('react').MemoExoticComponent<({ id, value, onChange, placeholder, disabled, required, rows, }: TextAreaInputProps) => import("react").JSX.Element>;
|
|
11
11
|
export {};
|
|
12
12
|
//# sourceMappingURL=TextAreaInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextAreaInput.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/panel-inputs/TextAreaInput.tsx"],"names":[],"mappings":"AAEA,UAAU,kBAAkB;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,aAAa,wGAQvB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"TextAreaInput.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/panel-inputs/TextAreaInput.tsx"],"names":[],"mappings":"AAEA,UAAU,kBAAkB;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,aAAa,wGAQvB,kBAAkB,iCAanB,CAAC"}
|
|
@@ -6,6 +6,6 @@ interface TextInputProps {
|
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
required?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare const TextInput: import('react').MemoExoticComponent<({ id, value, onChange, placeholder, disabled, required, }: TextInputProps) => import("react
|
|
9
|
+
export declare const TextInput: import('react').MemoExoticComponent<({ id, value, onChange, placeholder, disabled, required, }: TextInputProps) => import("react").JSX.Element>;
|
|
10
10
|
export {};
|
|
11
11
|
//# sourceMappingURL=TextInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/panel-inputs/TextInput.tsx"],"names":[],"mappings":"AAEA,UAAU,cAAc;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,kGAOnB,cAAc,
|
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/panel-inputs/TextInput.tsx"],"names":[],"mappings":"AAEA,UAAU,cAAc;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,kGAOnB,cAAc,iCAaf,CAAC"}
|
|
@@ -9,6 +9,6 @@ interface ArgumentItemProps {
|
|
|
9
9
|
onLiteralChange: (childId: string, value: JsonLogicValue, valueType: LiteralNodeData['valueType']) => void;
|
|
10
10
|
onInlineLiteralChange: (argIndex: number, value: JsonLogicValue) => void;
|
|
11
11
|
}
|
|
12
|
-
export declare const ArgumentItem: import('react').MemoExoticComponent<({ arg, isVariableArity, canRemoveArg, onSelect, onRemove, onLiteralChange, onInlineLiteralChange, }: ArgumentItemProps) => import("react
|
|
12
|
+
export declare const ArgumentItem: import('react').MemoExoticComponent<({ arg, isVariableArity, canRemoveArg, onSelect, onRemove, onLiteralChange, onInlineLiteralChange, }: ArgumentItemProps) => import("react").JSX.Element>;
|
|
13
13
|
export {};
|
|
14
14
|
//# sourceMappingURL=ArgumentItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArgumentItem.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/properties-panel/ArgumentItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAG7E,UAAU,iBAAiB;IACzB,GAAG,EAAE,YAAY,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,eAAe,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC3G,qBAAqB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;CAC1E;AAED,eAAO,MAAM,YAAY,4IAQtB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"ArgumentItem.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/properties-panel/ArgumentItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAG7E,UAAU,iBAAiB;IACzB,GAAG,EAAE,YAAY,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,eAAe,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC3G,qBAAqB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;CAC1E;AAED,eAAO,MAAM,YAAY,4IAQtB,iBAAiB,iCA2PlB,CAAC"}
|
|
@@ -2,6 +2,6 @@ import { LogicNode } from '../types';
|
|
|
2
2
|
interface ArgumentsSectionProps {
|
|
3
3
|
node: LogicNode;
|
|
4
4
|
}
|
|
5
|
-
export declare const ArgumentsSection: import('react').MemoExoticComponent<({ node, }: ArgumentsSectionProps) => import("react
|
|
5
|
+
export declare const ArgumentsSection: import('react').MemoExoticComponent<({ node, }: ArgumentsSectionProps) => import("react").JSX.Element | null>;
|
|
6
6
|
export {};
|
|
7
7
|
//# sourceMappingURL=ArgumentsSection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArgumentsSection.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/properties-panel/ArgumentsSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAqD,MAAM,UAAU,CAAC;AAa7F,UAAU,qBAAqB;IAC7B,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,eAAO,MAAM,gBAAgB,kDAE1B,qBAAqB,
|
|
1
|
+
{"version":3,"file":"ArgumentsSection.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/properties-panel/ArgumentsSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAqD,MAAM,UAAU,CAAC;AAa7F,UAAU,qBAAqB;IAC7B,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,eAAO,MAAM,gBAAgB,kDAE1B,qBAAqB,wCAwNtB,CAAC"}
|
|
@@ -3,6 +3,6 @@ interface HelpSectionProps {
|
|
|
3
3
|
help: OperatorHelp;
|
|
4
4
|
arity: AritySpec;
|
|
5
5
|
}
|
|
6
|
-
export declare const HelpSection: import('react').MemoExoticComponent<({ help, arity, }: HelpSectionProps) => import("react
|
|
6
|
+
export declare const HelpSection: import('react').MemoExoticComponent<({ help, arity, }: HelpSectionProps) => import("react").JSX.Element>;
|
|
7
7
|
export {};
|
|
8
8
|
//# sourceMappingURL=HelpSection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelpSection.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/properties-panel/HelpSection.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAmB,MAAM,2BAA2B,CAAC;AAE1F,UAAU,gBAAgB;IACxB,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,SAAS,CAAC;CAClB;AAmCD,eAAO,MAAM,WAAW,yDAGrB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"HelpSection.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/properties-panel/HelpSection.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAmB,MAAM,2BAA2B,CAAC;AAE1F,UAAU,gBAAgB;IACxB,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,SAAS,CAAC;CAClB;AAmCD,eAAO,MAAM,WAAW,yDAGrB,gBAAgB,iCAuDjB,CAAC"}
|
|
@@ -2,6 +2,6 @@ interface PropertiesPanelProps {
|
|
|
2
2
|
/** Width of the panel in pixels */
|
|
3
3
|
width?: number;
|
|
4
4
|
}
|
|
5
|
-
export declare const PropertiesPanel: import('react').MemoExoticComponent<({ width, }: PropertiesPanelProps) => import("react
|
|
5
|
+
export declare const PropertiesPanel: import('react').MemoExoticComponent<({ width, }: PropertiesPanelProps) => import("react").JSX.Element | null>;
|
|
6
6
|
export {};
|
|
7
7
|
//# sourceMappingURL=PropertiesPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertiesPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/properties-panel/PropertiesPanel.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,wBAAwB,CAAC;AAchC,UAAU,oBAAoB;IAC5B,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,eAAe,mDAEzB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"PropertiesPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/properties-panel/PropertiesPanel.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,wBAAwB,CAAC;AAchC,UAAU,oBAAoB;IAC5B,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,eAAe,mDAEzB,oBAAoB,wCAqHrB,CAAC"}
|
|
@@ -4,6 +4,6 @@ interface ExpressionSyntaxProps {
|
|
|
4
4
|
/**
|
|
5
5
|
* Expression syntax highlighting component for use in nodes
|
|
6
6
|
*/
|
|
7
|
-
export declare const ExpressionSyntax: import('react').MemoExoticComponent<({ text }: ExpressionSyntaxProps) => import("react
|
|
7
|
+
export declare const ExpressionSyntax: import('react').MemoExoticComponent<({ text }: ExpressionSyntaxProps) => import("react").JSX.Element>;
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=ExpressionSyntax.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpressionSyntax.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/ExpressionSyntax.tsx"],"names":[],"mappings":"AA0NA,UAAU,qBAAqB;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,iDAA4C,qBAAqB,
|
|
1
|
+
{"version":3,"file":"ExpressionSyntax.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/ExpressionSyntax.tsx"],"names":[],"mappings":"AA0NA,UAAU,qBAAqB;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,iDAA4C,qBAAqB,iCAQ5F,CAAC"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { JsonLogicValue } from '../../types';
|
|
2
2
|
import { ConversionContext, ConverterFn } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Convert if/then/else into a CHAIN of standalone decision-diamond nodes — one
|
|
5
|
+
* diamond per condition, rather than a single block. Each diamond has three
|
|
6
|
+
* inputs (when / then / else); a trailing else-if becomes the next diamond wired
|
|
7
|
+
* into the else input, so the diamonds read as a series down the else path.
|
|
8
|
+
*/
|
|
3
9
|
export declare function convertIfElse(ifArgs: JsonLogicValue[], context: ConversionContext, convertValue: ConverterFn): string;
|
|
4
10
|
//# sourceMappingURL=if-else-converter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"if-else-converter.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/converters/if-else-converter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"if-else-converter.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/converters/if-else-converter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAoD,MAAM,aAAa,CAAC;AACpG,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAoB9D;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,cAAc,EAAE,EACxB,OAAO,EAAE,iBAAiB,EAC1B,YAAY,EAAE,WAAW,GACxB,MAAM,CAwBR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operator-converter.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/converters/operator-converter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,aAAa,CAAC;AACzF,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"operator-converter.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/converters/operator-converter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,aAAa,CAAC;AACzF,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAe9D,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,cAAc,EAAE,EAC9B,OAAO,EAAE,iBAAiB,EAC1B,YAAY,EAAE,WAAW,GACxB,MAAM,CA2FR;AAGD,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEzD"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { LogicNode, LogicEdge } from '../types';
|
|
2
|
+
import { FlowDirection } from '../context/DirectionContextDef';
|
|
2
3
|
/**
|
|
3
|
-
* Build edges from node relationships, respecting collapse state.
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Build edges from node relationships, respecting collapse state. This creates
|
|
5
|
+
* edges based on the current node data, including collapsed cells and nodes.
|
|
6
|
+
* The orientation (which end carries the arrowhead) follows `direction`.
|
|
6
7
|
*/
|
|
7
|
-
export declare function buildEdgesFromNodes(nodes: LogicNode[]): LogicEdge[];
|
|
8
|
+
export declare function buildEdgesFromNodes(nodes: LogicNode[], direction?: FlowDirection): LogicEdge[];
|
|
8
9
|
//# sourceMappingURL=edge-builder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge-builder.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/edge-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAuC,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"edge-builder.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/edge-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAuC,MAAM,UAAU,CAAC;AAC1F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAuBpE;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,SAAS,EAAE,EAClB,SAAS,GAAE,aAAsB,GAChC,SAAS,EAAE,CA2Eb"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { JsonLogicValue, ArgSummary } from '../../types';
|
|
2
|
+
export declare const CONTEXT_LABEL = "context";
|
|
3
|
+
/**
|
|
4
|
+
* Compact display for a var/val/exists data read, handling the two tricky cases:
|
|
5
|
+
* • empty path — the whole current context (`{var:""}` → "context").
|
|
6
|
+
* • val scope-jump — `{val:[[-1],"threshold"]}` → "↑threshold" (n up-arrows).
|
|
7
|
+
*/
|
|
8
|
+
export declare function formatVarValPath(op: 'var' | 'val' | 'exists', raw: JsonLogicValue): string;
|
|
2
9
|
export declare function generateArgSummary(value: JsonLogicValue): ArgSummary;
|
|
3
10
|
export declare function formatOperandLabel(operand: JsonLogicValue): string;
|
|
4
11
|
//# sourceMappingURL=arg-summary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arg-summary.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/formatting/arg-summary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAO9D,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,cAAc,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"arg-summary.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/formatting/arg-summary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,aAAa,YAAY,CAAC;AAEvC;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,KAAK,GAAG,KAAK,GAAG,QAAQ,EAAE,GAAG,EAAE,cAAc,GAAG,MAAM,CA6B1F;AAGD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,cAAc,GAAG,UAAU,CA6DpE;AAGD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAsBlE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { generateExpressionText } from './expression-text';
|
|
2
|
-
export { generateArgSummary, formatOperandLabel } from './arg-summary';
|
|
2
|
+
export { generateArgSummary, formatOperandLabel, formatVarValPath, CONTEXT_LABEL } from './arg-summary';
|
|
3
3
|
export { formatValue, formatResultValue, isComplexValue } from './value-formatter';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/formatting/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/formatting/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACxG,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { JsonLogicValue } from '../types';
|
|
2
|
+
export declare const MAX_INLINE_VARS = 2;
|
|
3
|
+
/**
|
|
4
|
+
* The display label for a static var/val read that can collapse into an inline
|
|
5
|
+
* pill, or null if it can't. Covered: a bare string/number path (including `""`,
|
|
6
|
+
* the whole context), and a `val` scope-jump like `{val:[[-1],"x"]}` → "↑x".
|
|
7
|
+
* A `var` with a default value stays wired so the default isn't hidden.
|
|
8
|
+
*/
|
|
9
|
+
export declare function staticVarLabel(operand: JsonLogicValue): string | null;
|
|
10
|
+
/**
|
|
11
|
+
* The set of operand indices that should collapse into inline var pills. Empty
|
|
12
|
+
* when there are none or more than MAX_INLINE_VARS (all vars stay wired then).
|
|
13
|
+
*/
|
|
14
|
+
export declare function inlineVarIndices(operandArray: JsonLogicValue[]): Set<number>;
|
|
15
|
+
//# sourceMappingURL=inline-vars.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline-vars.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/inline-vars.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAM/C,eAAO,MAAM,eAAe,IAAI,CAAC;AAIjC;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,GAAG,IAAI,CAyBrE;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,cAAc,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC,CAM5E"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { LogicNode, LogicEdge } from '../types';
|
|
2
|
-
|
|
2
|
+
import { FlowDirection } from '../context/DirectionContextDef';
|
|
3
|
+
export declare function applyTreeLayout(nodes: LogicNode[], edges?: LogicEdge[], direction?: FlowDirection): LogicNode[];
|
|
3
4
|
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/layout.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/layout.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAiD,MAAM,UAAU,CAAC;AAiBpG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAmMpE,wBAAgB,eAAe,CAC7B,KAAK,EAAE,SAAS,EAAE,EAClB,KAAK,CAAC,EAAE,SAAS,EAAE,EACnB,SAAS,GAAE,aAAsB,GAChC,SAAS,EAAE,CAoGb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-factory.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/node-factory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EACT,SAAS,EAGT,gBAAgB,EAChB,QAAQ,EACT,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAMrD,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,cAAc,EACrB,UAAU,GAAE,UAAe,GAC1B,SAAS,CAgBX;AAGD,MAAM,W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} from '../config/operators.types';
|
|
2
|
+
import { CellData, OperatorNodeData } from '../types';
|
|
3
|
+
export type NodeShape = 'tap' | 'gate' | 'arith' | 'branch' | 'iterator' | 'quantifier' | 'value';
|
|
4
|
+
export declare function shapeForOperator(operator: string, category?: OperatorCategory): NodeShape;
|
|
5
|
+
/** Whether a shape produces a boolean and should carry a truth LED. */
|
|
6
|
+
export declare function shapeHasLed(shape: NodeShape): boolean;
|
|
7
|
+
/** The compact glyph to show for an operator (math symbol or shortLabel). */
|
|
8
|
+
export declare function glyphForOperator(operator: string): string;
|
|
9
|
+
export type PillType = 'tap' | 'num' | 'str' | 'bool' | 'coll' | 'temp' | 'nul' | 'expr';
|
|
10
|
+
/** Infer the pill (signal) type of an operand from its displayed text. */
|
|
11
|
+
export declare function pillTypeForText(text: string | undefined): PillType;
|
|
12
|
+
/** Pill type for a wired child's output, from its ArgSummary `valueType`. */
|
|
13
|
+
export declare function pillForValueType(valueType: string | undefined): PillType;
|
|
14
|
+
/** A cell that wires out to its own child node + edge (vs. an inline value). */
|
|
15
|
+
export declare function isWiredCell(cell: CellData): boolean;
|
|
16
|
+
/** Whether any cell hosts a computed sub-expression (its own handle). */
|
|
17
|
+
export declare function hasChildCell(cells: CellData[]): boolean;
|
|
18
|
+
export type RenderKind = 'tap' | 'infix-gate' | 'infix-arith' | 'card' | 'gate-shape' | 'decision';
|
|
19
|
+
/** How an operator node renders — see the branches in UnifiedOperatorNode. */
|
|
20
|
+
export declare function operatorRenderKind(data: Pick<OperatorNodeData, 'operator' | 'category' | 'cells'>): RenderKind;
|
|
21
|
+
/** Display text of an operand cell (summary for wired, value/label for inline). */
|
|
22
|
+
export declare function cellDisplayText(cell: CellData): string;
|
|
23
|
+
//# sourceMappingURL=nodeShape.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodeShape.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/nodeShape.ts"],"names":[],"mappings":"AAMA,OAAO,KAA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eAAe,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAItD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OperatorCategory } from '../config/operators.types';
|
|
2
|
+
import { LiteralNodeData } from '../types';
|
|
3
|
+
export type SignalKey = 'bool-true' | 'bool-false' | 'bool-rest' | 'number' | 'string' | 'collection' | 'data' | 'temporal' | 'null';
|
|
4
|
+
/** Signal for an operator node, from its returnType (falling back to category). */
|
|
5
|
+
export declare function signalForOperator(operator: string, category?: OperatorCategory): SignalKey;
|
|
6
|
+
/** Signal for a literal, from its value type. */
|
|
7
|
+
export declare function signalForLiteral(valueType: LiteralNodeData['valueType']): SignalKey;
|
|
8
|
+
/** The `--sig-*` CSS variable reference for a signal key. */
|
|
9
|
+
export declare function signalVar(key: SignalKey): string;
|
|
10
|
+
//# sourceMappingURL=signal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signal.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/signal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,MAAM,SAAS,GACjB,WAAW,GACX,YAAY,GACZ,WAAW,GACX,QAAQ,GACR,QAAQ,GACR,YAAY,GACZ,MAAM,GACN,UAAU,GACV,MAAM,CAAC;AAeX,mFAAmF;AACnF,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,gBAAgB,GAC1B,SAAS,CAWX;AAED,iDAAiD;AACjD,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,eAAe,CAAC,WAAW,CAAC,GAAG,SAAS,CASnF;AAED,6DAA6D;AAC7D,wBAAgB,SAAS,CAAC,GAAG,EAAE,SAAS,GAAG,MAAM,CAEhD"}
|
|
@@ -5,8 +5,10 @@ import { TraceContext } from '../types';
|
|
|
5
5
|
type ProcessExpressionNodeFn = (exprNode: ExpressionNode, context: TraceContext, parentInfo: ParentInfo, originalExpression?: JsonLogicValue) => string;
|
|
6
6
|
type CreateFallbackNodeFn = (nodeId: string, value: JsonLogicValue, context: TraceContext, parentInfo: ParentInfo) => void;
|
|
7
7
|
/**
|
|
8
|
-
* Create a
|
|
9
|
-
*
|
|
8
|
+
* Create a CHAIN of decision-diamond nodes for an if/then/else from trace data —
|
|
9
|
+
* one diamond per condition (when / then / else), the else input chaining into
|
|
10
|
+
* the next diamond for each else-if. The first diamond keeps the trace node id so
|
|
11
|
+
* its debug mapping is preserved.
|
|
10
12
|
*/
|
|
11
13
|
export declare function createIfElseNodeFromTrace(nodeId: string, expression: JsonLogicValue, children: ExpressionNode[], context: TraceContext, parentInfo: ParentInfo, processExpressionNode: ProcessExpressionNodeFn, createFallbackNode: CreateFallbackNodeFn): void;
|
|
12
14
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"if-else.d.ts","sourceRoot":"","sources":["../../../../../../src/components/logic-editor/utils/trace/node-creators/if-else.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EAGf,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAY,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"if-else.d.ts","sourceRoot":"","sources":["../../../../../../src/components/logic-editor/utils/trace/node-creators/if-else.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EAGf,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAY,MAAM,UAAU,CAAC;AASvD,KAAK,uBAAuB,GAAG,CAC7B,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,UAAU,EACtB,kBAAkB,CAAC,EAAE,cAAc,KAChC,MAAM,CAAC;AAEZ,KAAK,oBAAoB,GAAG,CAC1B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,UAAU,KACnB,IAAI,CAAC;AAEV;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,cAAc,EAC1B,QAAQ,EAAE,cAAc,EAAE,EAC1B,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,UAAU,EACtB,qBAAqB,EAAE,uBAAuB,EAC9C,kBAAkB,EAAE,oBAAoB,GACvC,IAAI,CA2HN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variable.d.ts","sourceRoot":"","sources":["../../../../../../src/components/logic-editor/utils/trace/node-creators/variable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EAEf,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"variable.d.ts","sourceRoot":"","sources":["../../../../../../src/components/logic-editor/utils/trace/node-creators/variable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EAEf,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAK7C;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,cAAc,EAC1B,QAAQ,EAAE,cAAc,EAAE,EAC1B,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,UAAU,GACrB,IAAI,CAqDN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vertical-cell.d.ts","sourceRoot":"","sources":["../../../../../../src/components/logic-editor/utils/trace/node-creators/vertical-cell.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EAGf,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"vertical-cell.d.ts","sourceRoot":"","sources":["../../../../../../src/components/logic-editor/utils/trace/node-creators/vertical-cell.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EAGf,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAc7C,KAAK,uBAAuB,GAAG,CAC7B,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,UAAU,EACtB,kBAAkB,CAAC,EAAE,cAAc,KAChC,MAAM,CAAC;AAEZ,KAAK,oBAAoB,GAAG,CAC1B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,UAAU,KACnB,IAAI,CAAC;AAEV;;GAEG;AACH,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,cAAc,EAC1B,QAAQ,EAAE,cAAc,EAAE,EAC1B,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,UAAU,EACtB,qBAAqB,EAAE,uBAAuB,EAC9C,kBAAkB,EAAE,oBAAoB,GACvC,IAAI,CA+GN"}
|