@goplasmatic/datalogic-ui 4.0.21 → 5.0.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.
Files changed (38) hide show
  1. package/README.md +35 -15
  2. package/dist/components/logic-editor/DataLogicEditor.d.ts +1 -1
  3. package/dist/components/logic-editor/DataLogicEditor.d.ts.map +1 -1
  4. package/dist/components/logic-editor/EditorToolbar.d.ts +3 -3
  5. package/dist/components/logic-editor/EditorToolbar.d.ts.map +1 -1
  6. package/dist/components/logic-editor/UndoRedoToolbar.d.ts.map +1 -1
  7. package/dist/components/logic-editor/config/operators/utility.d.ts.map +1 -1
  8. package/dist/components/logic-editor/context/editor/useClipboardState.d.ts.map +1 -1
  9. package/dist/components/logic-editor/context/editor/useHistoryState.d.ts.map +1 -1
  10. package/dist/components/logic-editor/debugger-controls/DebuggerControls.d.ts.map +1 -1
  11. package/dist/components/logic-editor/hooks/index.d.ts +1 -1
  12. package/dist/components/logic-editor/hooks/index.d.ts.map +1 -1
  13. package/dist/components/logic-editor/hooks/useLogicEditor.d.ts +3 -3
  14. package/dist/components/logic-editor/hooks/useLogicEditor.d.ts.map +1 -1
  15. package/dist/components/logic-editor/hooks/useWasmEvaluator.d.ts +8 -3
  16. package/dist/components/logic-editor/hooks/useWasmEvaluator.d.ts.map +1 -1
  17. package/dist/components/logic-editor/types/editor.d.ts +18 -6
  18. package/dist/components/logic-editor/types/editor.d.ts.map +1 -1
  19. package/dist/components/logic-editor/types/index.d.ts +1 -1
  20. package/dist/components/logic-editor/types/index.d.ts.map +1 -1
  21. package/dist/components/logic-editor/types/trace.d.ts +22 -0
  22. package/dist/components/logic-editor/types/trace.d.ts.map +1 -1
  23. package/dist/components/logic-editor/utils/converters/types.d.ts +2 -2
  24. package/dist/components/logic-editor/utils/converters/types.d.ts.map +1 -1
  25. package/dist/components/logic-editor/utils/jsonlogic-to-nodes.d.ts +2 -2
  26. package/dist/components/logic-editor/utils/jsonlogic-to-nodes.d.ts.map +1 -1
  27. package/dist/components/logic-editor/utils/trace/node-type.d.ts +1 -1
  28. package/dist/components/logic-editor/utils/trace/node-type.d.ts.map +1 -1
  29. package/dist/components/logic-editor/utils/trace/types.d.ts +3 -3
  30. package/dist/components/logic-editor/utils/trace/types.d.ts.map +1 -1
  31. package/dist/datalogic_wasm-CF1jcNAu.js +634 -0
  32. package/dist/datalogic_wasm-Dj9TEPTG.cjs +637 -0
  33. package/dist/index.cjs +868 -388
  34. package/dist/index.js +869 -389
  35. package/dist/styles.css +302 -136
  36. package/package.json +32 -29
  37. package/dist/datalogic_wasm-Ckkdrc0z.cjs +0 -383
  38. package/dist/datalogic_wasm-daWVf40b.js +0 -380
package/README.md CHANGED
@@ -1,6 +1,17 @@
1
1
  # @goplasmatic/datalogic-ui
2
2
 
3
- A React component library for visualizing, debugging, and editing JSONLogic expressions as interactive node-based flow diagrams.
3
+ [![npm](https://img.shields.io/npm/v/@goplasmatic/datalogic-ui)](https://www.npmjs.com/package/@goplasmatic/datalogic-ui)
4
+ [![License: Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
5
+
6
+ A React component library for visualizing, debugging, and editing
7
+ JSONLogic expressions as interactive node-based flow diagrams.
8
+
9
+ This is the **React surface** of the
10
+ [`datalogic-rs`](https://github.com/GoPlasmatic/datalogic-rs) monorepo.
11
+ It consumes the WASM binding
12
+ ([`@goplasmatic/datalogic-wasm`](../bindings/wasm/README.md)) for evaluation
13
+ and tracing — for the engine itself and the cross-runtime overview,
14
+ see the [repo README](https://github.com/GoPlasmatic/datalogic-rs#readme).
4
15
 
5
16
  ## Features
6
17
 
@@ -9,7 +20,7 @@ A React component library for visualizing, debugging, and editing JSONLogic expr
9
20
  - Tree-based automatic layout using @dagrejs/dagre
10
21
  - Prop-based modes: read-only visualization, debugging with step-through trace, and full visual editing
11
22
  - Editing mode with node selection, properties panel, context menus, and undo/redo
12
- - Structure preserve mode for JSON templates with embedded JSONLogic
23
+ - Templating mode for JSON templates with embedded JSONLogic
13
24
  - Built-in WASM-based JSONLogic evaluation with execution tracing
14
25
  - Light/dark theme support with system preference detection
15
26
 
@@ -98,8 +109,8 @@ Combine editing with live debugging:
98
109
  | `data` | `unknown` | - | Data context for evaluation. When provided, debugger controls become available |
99
110
  | `theme` | `'light' \| 'dark'` | system | Theme override. If not provided, uses system preference |
100
111
  | `className` | `string` | - | Additional CSS class |
101
- | `preserveStructure` | `boolean` | `false` | Enable structure preserve mode for JSON templates with embedded JSONLogic |
102
- | `onPreserveStructureChange` | `(value: boolean) => void` | - | Callback when preserve structure changes (from toolbar checkbox) |
112
+ | `templating` | `boolean` | `false` | Enable templating mode: multi-key objects and arrays compile to output-shaping templates with embedded JSONLogic |
113
+ | `onTemplatingChange` | `(value: boolean) => void` | - | Callback when templating mode changes (from toolbar checkbox) |
103
114
  | `editable` | `boolean` | `false` | Enable editing: node selection, properties panel, context menus, undo/redo |
104
115
 
105
116
  ## Exports
@@ -156,11 +167,18 @@ The component respects the `data-theme` attribute on parent elements for theming
156
167
 
157
168
  ## Development
158
169
 
170
+ This package lives at `ui/` in the
171
+ [datalogic-rs monorepo](https://github.com/GoPlasmatic/datalogic-rs). It
172
+ depends on a locally-built `@goplasmatic/datalogic-wasm` WASM bundle — see
173
+ [DEVELOPMENT.md](https://github.com/GoPlasmatic/datalogic-rs/blob/main/DEVELOPMENT.md)
174
+ for the full link/install dance. Day-to-day, from the repo root:
175
+
159
176
  ```bash
160
- pnpm install # Install dependencies
161
- pnpm dev:ui # Start development server
162
- pnpm build:ui:lib # Build library for publishing
163
- pnpm lint:ui # Run ESLint
177
+ cd ui
178
+ npm install # install dependencies
179
+ npm run dev # start the dev playground
180
+ npm run build:lib # build the publishable library bundle
181
+ npm run lint # run ESLint
164
182
  ```
165
183
 
166
184
  ## Architecture
@@ -183,7 +201,7 @@ The main component is `DataLogicEditor` which:
183
201
 
184
202
  - **OperatorNode** (UnifiedOperatorNode): Renders all operators with cell-based argument display (and, or, if, var, val, ==, +, etc.)
185
203
  - **LiteralNode**: Renders primitive values (strings, numbers, booleans, null)
186
- - **StructureNode**: Renders JSON objects/arrays in structure preserve mode
204
+ - **StructureNode**: Renders JSON objects/arrays in templating mode
187
205
 
188
206
  ## Tech Stack
189
207
 
@@ -195,18 +213,20 @@ The main component is `DataLogicEditor` which:
195
213
  - lucide-react (icons)
196
214
  - @msgpack/msgpack (data serialization)
197
215
  - fflate (compression)
198
- - @goplasmatic/datalogic (bundled, for WASM evaluation)
216
+ - @goplasmatic/datalogic-wasm (bundled, for WASM evaluation)
199
217
 
200
218
  ## Documentation
201
219
 
202
220
  For complete documentation including all props, customization options, and advanced usage, see the [full documentation](https://goplasmatic.github.io/datalogic-rs/react-ui/installation.html).
203
221
 
204
- ## Links
222
+ ## Learn more
205
223
 
206
- - [GitHub Repository](https://github.com/GoPlasmatic/datalogic-rs)
207
- - [Full Documentation](https://goplasmatic.github.io/datalogic-rs/)
208
- - [Online Playground](https://goplasmatic.github.io/datalogic-rs/playground/)
224
+ - [Repo README](https://github.com/GoPlasmatic/datalogic-rs#readme) — cross-runtime overview, all binding READMEs
225
+ - [WASM binding README](../bindings/wasm/README.md) — `@goplasmatic/datalogic-wasm`, the JS/TS engine this UI consumes
226
+ - [Rust crate README](../crates/datalogic-rs/README.md) — engine design, the 5-tier API model
227
+ - [Full documentation](https://goplasmatic.github.io/datalogic-rs/)
228
+ - [Online playground](https://goplasmatic.github.io/datalogic-rs/playground/)
209
229
 
210
230
  ## License
211
231
 
212
- MIT
232
+ Apache-2.0
@@ -1,4 +1,4 @@
1
1
  import { DataLogicEditorProps } from './types';
2
- export declare function DataLogicEditor({ value, onChange, data, theme: themeProp, className, preserveStructure, onPreserveStructureChange, editable, }: DataLogicEditorProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function DataLogicEditor({ value, onChange, data, theme: themeProp, className, templating, onTemplatingChange, editable, exampleSuggestions, onSelectExample, }: DataLogicEditorProps): import("react/jsx-runtime").JSX.Element;
3
3
  export default DataLogicEditor;
4
4
  //# sourceMappingURL=DataLogicEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataLogicEditor.d.ts","sourceRoot":"","sources":["../../../src/components/logic-editor/DataLogicEditor.tsx"],"names":[],"mappings":"AASA,OAAO,6BAA6B,CAAC;AAErC,OAAO,KAAK,EAAE,oBAAoB,EAAwB,MAAM,SAAS,CAAC;AAmB1E,OAAO,oBAAoB,CAAC;AAC5B,OAAO,mBAAmB,CAAC;AAkP3B,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,KAAK,EAAE,SAAS,EAChB,SAAc,EACd,iBAAyB,EACzB,yBAAyB,EACzB,QAAgB,GACjB,EAAE,oBAAoB,2CA4LtB;AAED,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"DataLogicEditor.d.ts","sourceRoot":"","sources":["../../../src/components/logic-editor/DataLogicEditor.tsx"],"names":[],"mappings":"AAUA,OAAO,6BAA6B,CAAC;AAErC,OAAO,KAAK,EAAE,oBAAoB,EAAwB,MAAM,SAAS,CAAC;AAmB1E,OAAO,oBAAoB,CAAC;AAC5B,OAAO,mBAAmB,CAAC;AA0R3B,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,KAAK,EAAE,SAAS,EAChB,SAAc,EACd,UAAkB,EAClB,kBAAkB,EAClB,QAAgB,EAChB,kBAAkB,EAClB,eAAe,GAChB,EAAE,oBAAoB,2CAgMtB;AAED,eAAe,eAAe,CAAC"}
@@ -1,9 +1,9 @@
1
1
  interface EditorToolbarProps {
2
2
  isEditMode: boolean;
3
3
  hasDebugger: boolean;
4
- preserveStructure: boolean;
5
- onPreserveStructureChange?: (value: boolean) => void;
4
+ templating: boolean;
5
+ onTemplatingChange?: (value: boolean) => void;
6
6
  }
7
- export declare const EditorToolbar: import('react').MemoExoticComponent<({ isEditMode, hasDebugger, preserveStructure, onPreserveStructureChange, }: EditorToolbarProps) => import("react/jsx-runtime").JSX.Element>;
7
+ export declare const EditorToolbar: import('react').MemoExoticComponent<({ isEditMode, hasDebugger, templating, onTemplatingChange, }: EditorToolbarProps) => import("react/jsx-runtime").JSX.Element>;
8
8
  export {};
9
9
  //# sourceMappingURL=EditorToolbar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EditorToolbar.d.ts","sourceRoot":"","sources":["../../../src/components/logic-editor/EditorToolbar.tsx"],"names":[],"mappings":"AAIA,UAAU,kBAAkB;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,yBAAyB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACtD;AAED,eAAO,MAAM,aAAa,mHAKvB,kBAAkB,6CAmBnB,CAAC"}
1
+ {"version":3,"file":"EditorToolbar.d.ts","sourceRoot":"","sources":["../../../src/components/logic-editor/EditorToolbar.tsx"],"names":[],"mappings":"AAKA,UAAU,kBAAkB;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C;AAED,eAAO,MAAM,aAAa,qGAKvB,kBAAkB,6CAwBnB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"UndoRedoToolbar.d.ts","sourceRoot":"","sources":["../../../src/components/logic-editor/UndoRedoToolbar.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,eAAO,MAAM,eAAe,2FA4B1B,CAAC;AAEH,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"UndoRedoToolbar.d.ts","sourceRoot":"","sources":["../../../src/components/logic-editor/UndoRedoToolbar.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,eAAO,MAAM,eAAe,2FA8B1B,CAAC;AAEH,eAAe,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/config/operators/utility.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAgKrD,CAAC"}
1
+ {"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/config/operators/utility.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CA0FrD,CAAC"}
@@ -1 +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"}
1
+ {"version":3,"file":"useClipboardState.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/context/editor/useClipboardState.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAiC,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAC1F,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;;;;EAmGpD"}
@@ -1 +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"}
1
+ {"version":3,"file":"useHistoryState.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/context/editor/useHistoryState.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAiC,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAC1G,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;6BAWkB,SAAS,EAAE;;;;;EAqCxD"}
@@ -1 +1 @@
1
- {"version":3,"file":"DebuggerControls.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/debugger-controls/DebuggerControls.tsx"],"names":[],"mappings":"AAWA,OAAO,wBAAwB,CAAC;AAEhC,wBAAgB,sBAAsB,4CAErC;AAED,wBAAgB,gBAAgB,4CAE/B"}
1
+ {"version":3,"file":"DebuggerControls.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/debugger-controls/DebuggerControls.tsx"],"names":[],"mappings":"AAYA,OAAO,wBAAwB,CAAC;AAEhC,wBAAgB,sBAAsB,4CAErC;AAED,wBAAgB,gBAAgB,4CAE/B"}
@@ -3,7 +3,7 @@ export type { EvaluationResult, EvaluationResultsMap } from './useLogicEditor';
3
3
  export { useDebugClassName } from './useDebugClassName';
4
4
  export { useNodeCollapse } from './useNodeCollapse';
5
5
  export { useDebugEvaluation } from './useDebugEvaluation';
6
- export { useWasmEvaluator } from './useWasmEvaluator';
6
+ export { useWasmEvaluator, DataLogicEvaluationError } from './useWasmEvaluator';
7
7
  export { checkDepth } from './useRecursionCheck';
8
8
  export { useContextMenu } from './useContextMenu';
9
9
  export { useSystemTheme } from './useSystemTheme';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
@@ -9,8 +9,8 @@ interface UseLogicEditorOptions {
9
9
  value: JsonLogicValue | null;
10
10
  evaluateWithTrace?: (logic: unknown, data: unknown) => TracedResult;
11
11
  data?: unknown;
12
- /** Enable structure preserve mode for JSON templates with embedded JSONLogic */
13
- preserveStructure?: boolean;
12
+ /** Enable templating mode (multi-key objects compile to output-shaping templates with embedded JSONLogic). */
13
+ templating?: boolean;
14
14
  }
15
15
  interface UseLogicEditorReturn {
16
16
  nodes: LogicNode[];
@@ -21,6 +21,6 @@ interface UseLogicEditorReturn {
21
21
  steps: ExecutionStep[];
22
22
  traceNodeMap: Map<string, string>;
23
23
  }
24
- export declare function useLogicEditor({ value, evaluateWithTrace, data, preserveStructure, }: UseLogicEditorOptions): UseLogicEditorReturn;
24
+ export declare function useLogicEditor({ value, evaluateWithTrace, data, templating, }: UseLogicEditorOptions): UseLogicEditorReturn;
25
25
  export {};
26
26
  //# sourceMappingURL=useLogicEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLogicEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/hooks/useLogicEditor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,SAAS,EACT,SAAS,EACT,cAAc,EACd,YAAY,EACZ,aAAa,EACd,MAAM,UAAU,CAAC;AAMlB,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,CAAC;CACnF;AAED,MAAM,MAAM,oBAAoB,GAAG,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;AAEjE,UAAU,qBAAqB;IAC7B,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;IAC7B,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,KAAK,YAAY,CAAC;IACpE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,gFAAgF;IAChF,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,UAAU,oBAAoB;IAC5B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,iBAAiB,EAAE,oBAAoB,CAAC;IACxC,cAAc,EAAE,OAAO,CAAC;IACxB,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC;AASD,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,iBAAiB,EACjB,IAAI,EACJ,iBAAyB,GAC1B,EAAE,qBAAqB,GAAG,oBAAoB,CAgH9C"}
1
+ {"version":3,"file":"useLogicEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/hooks/useLogicEditor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,SAAS,EACT,SAAS,EACT,cAAc,EACd,YAAY,EACZ,aAAa,EACd,MAAM,UAAU,CAAC;AAMlB,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,CAAC;CACnF;AAED,MAAM,MAAM,oBAAoB,GAAG,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;AAEjE,UAAU,qBAAqB;IAC7B,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;IAC7B,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,KAAK,YAAY,CAAC;IACpE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,8GAA8G;IAC9G,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,UAAU,oBAAoB;IAC5B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,iBAAiB,EAAE,oBAAoB,CAAC;IACxC,cAAc,EAAE,OAAO,CAAC;IACxB,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC;AASD,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,iBAAiB,EACjB,IAAI,EACJ,UAAkB,GACnB,EAAE,qBAAqB,GAAG,oBAAoB,CAgH9C"}
@@ -1,7 +1,12 @@
1
- import { TracedResult } from '../types';
1
+ import { StructuredError, TracedResult } from '../types';
2
+ /** Error thrown from the WASM boundary that carries the parsed StructuredError. */
3
+ export declare class DataLogicEvaluationError extends Error {
4
+ readonly structured: StructuredError;
5
+ constructor(structured: StructuredError);
6
+ }
2
7
  interface UseWasmEvaluatorOptions {
3
- /** Enable structure preserve mode for JSON templates with embedded JSONLogic */
4
- preserveStructure?: boolean;
8
+ /** Enable templating mode for JSON templates with embedded JSONLogic. */
9
+ templating?: boolean;
5
10
  }
6
11
  interface UseWasmEvaluatorResult {
7
12
  ready: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"useWasmEvaluator.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/hooks/useWasmEvaluator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAkB7C,UAAU,uBAAuB;IAC/B,gFAAgF;IAChF,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,UAAU,sBAAsB;IAC9B,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC;IACrD,iBAAiB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,KAAK,YAAY,CAAC;CACpE;AAED,wBAAgB,gBAAgB,CAAC,OAAO,GAAE,uBAA4B,GAAG,sBAAsB,CAsF9F"}
1
+ {"version":3,"file":"useWasmEvaluator.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/hooks/useWasmEvaluator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE9D,mFAAmF;AACnF,qBAAa,wBAAyB,SAAQ,KAAK;IACjD,QAAQ,CAAC,UAAU,EAAE,eAAe,CAAC;gBAEzB,UAAU,EAAE,eAAe;CAKxC;AAiCD,UAAU,uBAAuB;IAC/B,yEAAyE;IACzE,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,UAAU,sBAAsB;IAC9B,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC;IACrD,iBAAiB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,KAAK,YAAY,CAAC;CACpE;AAED,wBAAgB,gBAAgB,CAAC,OAAO,GAAE,uBAA4B,GAAG,sBAAsB,CA0F9F"}
@@ -118,17 +118,29 @@ export interface DataLogicEditorProps {
118
118
  /** Additional CSS class */
119
119
  className?: string;
120
120
  /**
121
- * Enable structure preserve mode for JSON templates with embedded JSONLogic.
122
- * When true, multi-key objects and arrays are treated as data structures
123
- * with embedded JSONLogic expressions, rather than invalid JSONLogic.
121
+ * Enable templating mode: multi-key objects and arrays in compiled rules
122
+ * become output-shaping templates with embedded JSONLogic expressions,
123
+ * rather than rejected as invalid JSONLogic. Matches the v5 core API
124
+ * (`Engine::builder().with_templating(true)`).
124
125
  */
125
- preserveStructure?: boolean;
126
- /** Callback when preserve structure changes (from toolbar checkbox) */
127
- onPreserveStructureChange?: (value: boolean) => void;
126
+ templating?: boolean;
127
+ /** Callback when templating mode changes (from toolbar checkbox) */
128
+ onTemplatingChange?: (value: boolean) => void;
128
129
  /**
129
130
  * Enable editing: node selection, properties panel, context menus, undo/redo.
130
131
  * Default: false
131
132
  */
132
133
  editable?: boolean;
134
+ /**
135
+ * Optional list of example names to surface as quick-action chips in the
136
+ * empty state. Each chip, when clicked, calls `onSelectExample` with the
137
+ * corresponding name. Ignored when the editor is non-empty.
138
+ */
139
+ exampleSuggestions?: string[];
140
+ /**
141
+ * Callback invoked when a user clicks an empty-state example chip.
142
+ * Receives the example name from `exampleSuggestions`.
143
+ */
144
+ onSelectExample?: (name: string) => void;
133
145
  }
134
146
  //# sourceMappingURL=editor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/types/editor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM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AI,CAAC;IAE7B,oEAAoE;IACpE,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC;IAEjD,sFAAsF;IACtF,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf,kFAAkF;IAClF,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAEzB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,oEAAoE;IACpE,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAE9C;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE9B;;;OAGG;IACH,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C"}
@@ -1,5 +1,5 @@
1
1
  export type { JsonLogicPrimitive, JsonLogicVar, JsonLogicVal, JsonLogicExpression, JsonLogicValue, OperatorCategory, NodeCategory, } from './jsonlogic';
2
2
  export type { VisualNodeType, BaseNodeData, ArgSummary, OperatorNodeData, LiteralNodeData, CellData, VariableNodeData, StructureElement, StructureNodeData, LogicNodeData, LogicNode, LogicEdge, EditorState, ConversionResult, NodeEvaluationResult, EvaluationResultsMap, LogicEditorProps, DataLogicEditorProps, } from './editor';
3
- export type { ExpressionNode, ExecutionStep, TracedResult, } from './trace';
3
+ export type { ExpressionNode, ExecutionStep, TracedResult, StructuredError, } from './trace';
4
4
  export { CATEGORY_COLORS } from '../constants/colors';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,kBAAkB,EAClB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,YAAY,GACb,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,cAAc,EACd,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,QAAQ,EACR,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,UAAU,CAAC;AAClB,YAAY,EACV,cAAc,EACd,aAAa,EACb,YAAY,GACb,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,kBAAkB,EAClB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,YAAY,GACb,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,cAAc,EACd,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,QAAQ,EACR,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,UAAU,CAAC;AAClB,YAAY,EACV,cAAc,EACd,aAAa,EACb,YAAY,EACZ,eAAe,GAChB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC"}
@@ -12,10 +12,32 @@ export interface ExecutionStep {
12
12
  iteration_index?: number;
13
13
  iteration_total?: number;
14
14
  }
15
+ /**
16
+ * Structured error shape emitted by the WASM `*_structured` entry points.
17
+ *
18
+ * Mirrors the Rust `Error` serialization — `type` is a stable
19
+ * machine-readable kind, `message` is human-readable, and variant-specific
20
+ * extras appear as extra fields. `node_ids` is the v5 failure breadcrumb
21
+ * (compile-time node IDs, root-to-leaf); `stage` is set on parse-time
22
+ * failures from the WASM boundary itself.
23
+ */
24
+ export interface StructuredError {
25
+ type: string;
26
+ message: string;
27
+ operator?: string;
28
+ variable?: string;
29
+ level?: number;
30
+ thrown?: unknown;
31
+ index?: number;
32
+ length?: number;
33
+ stage?: string;
34
+ node_ids?: number[];
35
+ }
15
36
  export interface TracedResult {
16
37
  result: unknown;
17
38
  expression_tree: ExpressionNode;
18
39
  steps: ExecutionStep[];
19
40
  error?: string;
41
+ structured_error?: StructuredError;
20
42
  }
21
43
  //# sourceMappingURL=trace.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/types/trace.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,cAAc,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,eAAe,EAAE,cAAc,CAAC;IAChC,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/types/trace.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,cAAc,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,eAAe,EAAE,cAAc,CAAC;IAChC,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,eAAe,CAAC;CACpC"}
@@ -5,8 +5,8 @@ export interface ConversionContext {
5
5
  parentId?: string;
6
6
  argIndex?: number;
7
7
  branchType?: 'yes' | 'no' | 'branch' | 'condition';
8
- /** Enable structure preserve mode for JSON templates with embedded JSONLogic */
9
- preserveStructure?: boolean;
8
+ /** Enable templating mode (multi-key objects compile to output-shaping templates with embedded JSONLogic). */
9
+ templating?: boolean;
10
10
  }
11
11
  export interface ParentInfo {
12
12
  parentId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/converters/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxE,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,QAAQ,GAAG,WAAW,CAAC;IACnD,gFAAgF;IAChF,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAGD,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,QAAQ,GAAG,WAAW,CAAC;CACpD;AAGD,MAAM,MAAM,WAAW,GAAG,CACxB,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,iBAAiB,KACvB,MAAM,CAAC;AAGZ,wBAAgB,aAAa,CAAC,OAAO,EAAE,iBAAiB,GAAG,UAAU,CAMpE"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/converters/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxE,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,QAAQ,GAAG,WAAW,CAAC;IACnD,8GAA8G;IAC9G,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAGD,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,QAAQ,GAAG,WAAW,CAAC;CACpD;AAGD,MAAM,MAAM,WAAW,GAAG,CACxB,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,iBAAiB,KACvB,MAAM,CAAC;AAGZ,wBAAgB,aAAa,CAAC,OAAO,EAAE,iBAAiB,GAAG,UAAU,CAMpE"}
@@ -1,7 +1,7 @@
1
1
  import { JsonLogicValue, ConversionResult } from '../types';
2
2
  export interface JsonLogicToNodesOptions {
3
- /** Enable structure preserve mode for JSON templates with embedded JSONLogic */
4
- preserveStructure?: boolean;
3
+ /** Enable templating mode (multi-key objects compile to output-shaping templates with embedded JSONLogic). */
4
+ templating?: boolean;
5
5
  }
6
6
  export declare function jsonLogicToNodes(expr: JsonLogicValue | null, options?: JsonLogicToNodesOptions): ConversionResult;
7
7
  //# sourceMappingURL=jsonlogic-to-nodes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"jsonlogic-to-nodes.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/jsonlogic-to-nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EAGd,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAIlB,MAAM,WAAW,uBAAuB;IACtC,gFAAgF;IAChF,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAGD,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,cAAc,GAAG,IAAI,EAC3B,OAAO,GAAE,uBAA4B,GACpC,gBAAgB,CAelB"}
1
+ {"version":3,"file":"jsonlogic-to-nodes.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/jsonlogic-to-nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EAGd,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAIlB,MAAM,WAAW,uBAAuB;IACtC,8GAA8G;IAC9G,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAGD,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,cAAc,GAAG,IAAI,EAC3B,OAAO,GAAE,uBAA4B,GACpC,gBAAgB,CAelB"}
@@ -3,5 +3,5 @@ import { NodeType } from './types';
3
3
  /**
4
4
  * Determine what kind of node to create based on expression
5
5
  */
6
- export declare function determineNodeType(expr: JsonLogicValue, preserveStructure: boolean): NodeType;
6
+ export declare function determineNodeType(expr: JsonLogicValue, templating: boolean): NodeType;
7
7
  //# sourceMappingURL=node-type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"node-type.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/trace/node-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,cAAc,EAAE,iBAAiB,EAAE,OAAO,GAAG,QAAQ,CAgB5F"}
1
+ {"version":3,"file":"node-type.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/trace/node-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,OAAO,GAAG,QAAQ,CAgBrF"}
@@ -4,8 +4,8 @@ export interface TraceConversionResult extends ConversionResult {
4
4
  traceNodeMap: Map<string, string>;
5
5
  }
6
6
  export interface TraceToNodesOptions {
7
- /** Enable structure preserve mode for JSON templates with embedded JSONLogic */
8
- preserveStructure?: boolean;
7
+ /** Enable templating mode (multi-key objects compile to output-shaping templates with embedded JSONLogic). */
8
+ templating?: boolean;
9
9
  /** Original expression value - used to preserve key ordering in structure nodes */
10
10
  originalValue?: JsonLogicValue;
11
11
  }
@@ -13,7 +13,7 @@ export interface TraceContext {
13
13
  nodes: LogicNode[];
14
14
  edges: LogicEdge[];
15
15
  traceNodeMap: Map<string, string>;
16
- preserveStructure: boolean;
16
+ templating: boolean;
17
17
  }
18
18
  export type ValueType = 'boolean' | 'number' | 'string' | 'null' | 'array' | 'object' | 'undefined';
19
19
  export type NodeType = 'operator' | 'literal' | 'structure';
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/trace/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC1F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGxD,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC7D,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC;AAGD,MAAM,WAAW,mBAAmB;IAClC,gFAAgF;IAChF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,mFAAmF;IACnF,aAAa,CAAC,EAAE,cAAc,CAAC;CAChC;AAGD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAGD,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,CAAC;AAGpG,MAAM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