@goplasmatic/datalogic-ui 4.0.21 → 5.0.1

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 (135) hide show
  1. package/README.md +35 -15
  2. package/dist/components/logic-editor/AutoFitView.d.ts +7 -0
  3. package/dist/components/logic-editor/AutoFitView.d.ts.map +1 -1
  4. package/dist/components/logic-editor/DataLogicEditor.d.ts +1 -1
  5. package/dist/components/logic-editor/DataLogicEditor.d.ts.map +1 -1
  6. package/dist/components/logic-editor/EditorToolbar.d.ts +6 -3
  7. package/dist/components/logic-editor/EditorToolbar.d.ts.map +1 -1
  8. package/dist/components/logic-editor/UndoRedoToolbar.d.ts +1 -1
  9. package/dist/components/logic-editor/UndoRedoToolbar.d.ts.map +1 -1
  10. package/dist/components/logic-editor/config/operators/utility.d.ts.map +1 -1
  11. package/dist/components/logic-editor/constants/index.d.ts +1 -1
  12. package/dist/components/logic-editor/constants/index.d.ts.map +1 -1
  13. package/dist/components/logic-editor/constants/layout.d.ts +13 -4
  14. package/dist/components/logic-editor/constants/layout.d.ts.map +1 -1
  15. package/dist/components/logic-editor/context/ConnectedHandlesContext.d.ts +1 -1
  16. package/dist/components/logic-editor/context/ConnectedHandlesContext.d.ts.map +1 -1
  17. package/dist/components/logic-editor/context/DirectionContextDef.d.ts +11 -0
  18. package/dist/components/logic-editor/context/DirectionContextDef.d.ts.map +1 -0
  19. package/dist/components/logic-editor/context/debugger/DebuggerProvider.d.ts +1 -1
  20. package/dist/components/logic-editor/context/debugger/DebuggerProvider.d.ts.map +1 -1
  21. package/dist/components/logic-editor/context/editor/EditorContext.d.ts +1 -1
  22. package/dist/components/logic-editor/context/editor/EditorContext.d.ts.map +1 -1
  23. package/dist/components/logic-editor/context/editor/useClipboardState.d.ts.map +1 -1
  24. package/dist/components/logic-editor/context/editor/useHistoryState.d.ts.map +1 -1
  25. package/dist/components/logic-editor/context/index.d.ts +2 -0
  26. package/dist/components/logic-editor/context/index.d.ts.map +1 -1
  27. package/dist/components/logic-editor/context/useDirection.d.ts +6 -0
  28. package/dist/components/logic-editor/context/useDirection.d.ts.map +1 -0
  29. package/dist/components/logic-editor/context-menu/CanvasContextMenu.d.ts +1 -1
  30. package/dist/components/logic-editor/context-menu/CanvasContextMenu.d.ts.map +1 -1
  31. package/dist/components/logic-editor/context-menu/ContextMenu.d.ts +1 -1
  32. package/dist/components/logic-editor/context-menu/ContextMenu.d.ts.map +1 -1
  33. package/dist/components/logic-editor/debugger-controls/DebuggerControls.d.ts +2 -2
  34. package/dist/components/logic-editor/debugger-controls/DebuggerControls.d.ts.map +1 -1
  35. package/dist/components/logic-editor/edges/EdgeOperatorPicker.d.ts +1 -1
  36. package/dist/components/logic-editor/edges/EdgeOperatorPicker.d.ts.map +1 -1
  37. package/dist/components/logic-editor/edges/EditableEdge.d.ts +1 -1
  38. package/dist/components/logic-editor/edges/EditableEdge.d.ts.map +1 -1
  39. package/dist/components/logic-editor/edges/index.d.ts +1 -1
  40. package/dist/components/logic-editor/hooks/index.d.ts +1 -1
  41. package/dist/components/logic-editor/hooks/index.d.ts.map +1 -1
  42. package/dist/components/logic-editor/hooks/useLogicEditor.d.ts +6 -3
  43. package/dist/components/logic-editor/hooks/useLogicEditor.d.ts.map +1 -1
  44. package/dist/components/logic-editor/hooks/useWasmEvaluator.d.ts +8 -3
  45. package/dist/components/logic-editor/hooks/useWasmEvaluator.d.ts.map +1 -1
  46. package/dist/components/logic-editor/nodes/CellHandles.d.ts +1 -1
  47. package/dist/components/logic-editor/nodes/CellHandles.d.ts.map +1 -1
  48. package/dist/components/logic-editor/nodes/CellRow.d.ts +1 -1
  49. package/dist/components/logic-editor/nodes/CellRow.d.ts.map +1 -1
  50. package/dist/components/logic-editor/nodes/DebugInfoBubble.d.ts +1 -1
  51. package/dist/components/logic-editor/nodes/DebugInfoBubble.d.ts.map +1 -1
  52. package/dist/components/logic-editor/nodes/LiteralNode.d.ts +1 -1
  53. package/dist/components/logic-editor/nodes/LiteralNode.d.ts.map +1 -1
  54. package/dist/components/logic-editor/nodes/StructureNode.d.ts +1 -1
  55. package/dist/components/logic-editor/nodes/StructureNode.d.ts.map +1 -1
  56. package/dist/components/logic-editor/nodes/UnifiedOperatorNode.d.ts +1 -1
  57. package/dist/components/logic-editor/nodes/UnifiedOperatorNode.d.ts.map +1 -1
  58. package/dist/components/logic-editor/nodes/shared/CollapseToggleButton.d.ts +1 -1
  59. package/dist/components/logic-editor/nodes/shared/CollapseToggleButton.d.ts.map +1 -1
  60. package/dist/components/logic-editor/nodes/shared/NodeDebugBubble.d.ts +1 -1
  61. package/dist/components/logic-editor/nodes/shared/NodeDebugBubble.d.ts.map +1 -1
  62. package/dist/components/logic-editor/nodes/shared/NodeInputHandles.d.ts +6 -3
  63. package/dist/components/logic-editor/nodes/shared/NodeInputHandles.d.ts.map +1 -1
  64. package/dist/components/logic-editor/panel-inputs/BooleanInput.d.ts +1 -1
  65. package/dist/components/logic-editor/panel-inputs/BooleanInput.d.ts.map +1 -1
  66. package/dist/components/logic-editor/panel-inputs/ExpressionInput.d.ts +1 -1
  67. package/dist/components/logic-editor/panel-inputs/ExpressionInput.d.ts.map +1 -1
  68. package/dist/components/logic-editor/panel-inputs/JsonInput.d.ts +1 -1
  69. package/dist/components/logic-editor/panel-inputs/JsonInput.d.ts.map +1 -1
  70. package/dist/components/logic-editor/panel-inputs/NumberInput.d.ts +1 -1
  71. package/dist/components/logic-editor/panel-inputs/NumberInput.d.ts.map +1 -1
  72. package/dist/components/logic-editor/panel-inputs/PathArrayInput.d.ts +1 -1
  73. package/dist/components/logic-editor/panel-inputs/PathArrayInput.d.ts.map +1 -1
  74. package/dist/components/logic-editor/panel-inputs/PathInput.d.ts +1 -1
  75. package/dist/components/logic-editor/panel-inputs/PathInput.d.ts.map +1 -1
  76. package/dist/components/logic-editor/panel-inputs/SelectInput.d.ts +1 -1
  77. package/dist/components/logic-editor/panel-inputs/SelectInput.d.ts.map +1 -1
  78. package/dist/components/logic-editor/panel-inputs/TextAreaInput.d.ts +1 -1
  79. package/dist/components/logic-editor/panel-inputs/TextAreaInput.d.ts.map +1 -1
  80. package/dist/components/logic-editor/panel-inputs/TextInput.d.ts +1 -1
  81. package/dist/components/logic-editor/panel-inputs/TextInput.d.ts.map +1 -1
  82. package/dist/components/logic-editor/properties-panel/ArgumentItem.d.ts +1 -1
  83. package/dist/components/logic-editor/properties-panel/ArgumentItem.d.ts.map +1 -1
  84. package/dist/components/logic-editor/properties-panel/ArgumentsSection.d.ts +1 -1
  85. package/dist/components/logic-editor/properties-panel/ArgumentsSection.d.ts.map +1 -1
  86. package/dist/components/logic-editor/properties-panel/HelpSection.d.ts +1 -1
  87. package/dist/components/logic-editor/properties-panel/HelpSection.d.ts.map +1 -1
  88. package/dist/components/logic-editor/properties-panel/PropertiesPanel.d.ts +1 -1
  89. package/dist/components/logic-editor/properties-panel/PropertiesPanel.d.ts.map +1 -1
  90. package/dist/components/logic-editor/types/editor.d.ts +18 -6
  91. package/dist/components/logic-editor/types/editor.d.ts.map +1 -1
  92. package/dist/components/logic-editor/types/index.d.ts +1 -1
  93. package/dist/components/logic-editor/types/index.d.ts.map +1 -1
  94. package/dist/components/logic-editor/types/trace.d.ts +22 -0
  95. package/dist/components/logic-editor/types/trace.d.ts.map +1 -1
  96. package/dist/components/logic-editor/utils/ExpressionSyntax.d.ts +1 -1
  97. package/dist/components/logic-editor/utils/ExpressionSyntax.d.ts.map +1 -1
  98. package/dist/components/logic-editor/utils/converters/if-else-converter.d.ts +6 -0
  99. package/dist/components/logic-editor/utils/converters/if-else-converter.d.ts.map +1 -1
  100. package/dist/components/logic-editor/utils/converters/operator-converter.d.ts.map +1 -1
  101. package/dist/components/logic-editor/utils/converters/types.d.ts +2 -2
  102. package/dist/components/logic-editor/utils/converters/types.d.ts.map +1 -1
  103. package/dist/components/logic-editor/utils/edge-builder.d.ts +5 -4
  104. package/dist/components/logic-editor/utils/edge-builder.d.ts.map +1 -1
  105. package/dist/components/logic-editor/utils/formatting/arg-summary.d.ts +7 -0
  106. package/dist/components/logic-editor/utils/formatting/arg-summary.d.ts.map +1 -1
  107. package/dist/components/logic-editor/utils/formatting/index.d.ts +1 -1
  108. package/dist/components/logic-editor/utils/formatting/index.d.ts.map +1 -1
  109. package/dist/components/logic-editor/utils/inline-vars.d.ts +15 -0
  110. package/dist/components/logic-editor/utils/inline-vars.d.ts.map +1 -0
  111. package/dist/components/logic-editor/utils/jsonlogic-to-nodes.d.ts +2 -2
  112. package/dist/components/logic-editor/utils/jsonlogic-to-nodes.d.ts.map +1 -1
  113. package/dist/components/logic-editor/utils/layout.d.ts +2 -1
  114. package/dist/components/logic-editor/utils/layout.d.ts.map +1 -1
  115. package/dist/components/logic-editor/utils/node-factory.d.ts.map +1 -1
  116. package/dist/components/logic-editor/utils/nodeShape.d.ts +23 -0
  117. package/dist/components/logic-editor/utils/nodeShape.d.ts.map +1 -0
  118. package/dist/components/logic-editor/utils/signal.d.ts +10 -0
  119. package/dist/components/logic-editor/utils/signal.d.ts.map +1 -0
  120. package/dist/components/logic-editor/utils/trace/node-creators/if-else.d.ts +4 -2
  121. package/dist/components/logic-editor/utils/trace/node-creators/if-else.d.ts.map +1 -1
  122. package/dist/components/logic-editor/utils/trace/node-creators/variable.d.ts.map +1 -1
  123. package/dist/components/logic-editor/utils/trace/node-creators/vertical-cell.d.ts.map +1 -1
  124. package/dist/components/logic-editor/utils/trace/node-type.d.ts +1 -1
  125. package/dist/components/logic-editor/utils/trace/node-type.d.ts.map +1 -1
  126. package/dist/components/logic-editor/utils/trace/types.d.ts +3 -3
  127. package/dist/components/logic-editor/utils/trace/types.d.ts.map +1 -1
  128. package/dist/datalogic_wasm-BOuSyKtI.cjs +1148 -0
  129. package/dist/datalogic_wasm-Dloh5u2g.js +1145 -0
  130. package/dist/index.cjs +3296 -2323
  131. package/dist/index.js +3298 -2325
  132. package/dist/styles.css +1380 -474
  133. package/package.json +50 -41
  134. package/dist/datalogic_wasm-Ckkdrc0z.cjs +0 -383
  135. package/dist/datalogic_wasm-daWVf40b.js +0 -380
package/package.json CHANGED
@@ -1,18 +1,22 @@
1
1
  {
2
2
  "name": "@goplasmatic/datalogic-ui",
3
3
  "private": false,
4
- "version": "4.0.21",
4
+ "version": "5.0.1",
5
5
  "type": "module",
6
- "description": "DataLogic Debugger - Visual JSONLogic Debugger & Editor for debugging and visualizing JSONLogic expressions",
6
+ "description": "React rule builder, visual debugger, and editor for JSONLogic (json-logic) flow-diagram view and live execution tracing, powered by the datalogic-rs WASM engine.",
7
7
  "keywords": [
8
- "JSONLogic Debugger",
9
- "DataLogic Debugger",
10
- "JSONLogic",
11
- "DataLogic",
12
- "visual debugger",
13
- "logic editor",
8
+ "jsonlogic",
9
+ "json-logic",
10
+ "rules-engine",
11
+ "rule-builder",
12
+ "rule-editor",
13
+ "visual-debugger",
14
+ "logic-editor",
15
+ "business-rules",
14
16
  "react",
15
- "flow diagram"
17
+ "react-component",
18
+ "flow-diagram",
19
+ "debugger"
16
20
  ],
17
21
  "homepage": "https://goplasmatic.github.io/datalogic-rs/playground/",
18
22
  "repository": {
@@ -21,7 +25,7 @@
21
25
  "directory": "ui"
22
26
  },
23
27
  "author": "Plasmatic",
24
- "license": "MIT",
28
+ "license": "Apache-2.0",
25
29
  "main": "./dist/index.cjs",
26
30
  "module": "./dist/index.js",
27
31
  "types": "./dist/lib.d.ts",
@@ -52,13 +56,29 @@
52
56
  "sideEffects": [
53
57
  "**/*.css"
54
58
  ],
59
+ "scripts": {
60
+ "dev": "vite",
61
+ "build": "tsc -b && vite build",
62
+ "build:lib": "vite build --config vite.lib.config.ts",
63
+ "build:embed": "vite build --config vite.embed.config.ts",
64
+ "lint": "eslint .",
65
+ "preview": "vite preview",
66
+ "prepublishOnly": "npm run build:lib",
67
+ "predev": "npm run sync-wasm",
68
+ "prebuild": "npm run sync-wasm",
69
+ "prebuild:lib": "npm run sync-wasm",
70
+ "prebuild:embed": "npm run sync-wasm",
71
+ "sync-wasm": "rm -rf vendor/datalogic && mkdir -p vendor && cp -R ../bindings/wasm/pkg vendor/datalogic"
72
+ },
55
73
  "dependencies": {
56
- "@dagrejs/dagre": "^2.0.4",
74
+ "@dagrejs/dagre": "^3.0.0",
75
+ "@fontsource/jetbrains-mono": "^5.2.8",
76
+ "@fontsource/space-grotesk": "^5.2.10",
77
+ "@goplasmatic/datalogic-wasm": "5.0.1",
57
78
  "@msgpack/msgpack": "^3.1.3",
58
- "fflate": "^0.8.2",
59
- "lucide-react": "^0.577.0",
60
- "uuid": "^13.0.0",
61
- "@goplasmatic/datalogic": "4.0.21"
79
+ "fflate": "^0.8.3",
80
+ "lucide-react": "^1.23.0",
81
+ "uuid": "^14.0.1"
62
82
  },
63
83
  "peerDependencies": {
64
84
  "@xyflow/react": "^12.0.0",
@@ -67,32 +87,21 @@
67
87
  },
68
88
  "devDependencies": {
69
89
  "@eslint/js": "^10.0.1",
70
- "@types/node": "^25.5.0",
71
- "@types/react": "^19.2.14",
90
+ "@types/node": "^26.1.0",
91
+ "@types/react": "^19.2.17",
72
92
  "@types/react-dom": "^19.2.3",
73
- "@vitejs/plugin-react": "^6.0.1",
74
- "@xyflow/react": "^12.10.1",
75
- "eslint": "^10.0.3",
76
- "eslint-plugin-react-hooks": "^7.0.1",
77
- "eslint-plugin-react-refresh": "^0.5.2",
78
- "globals": "^17.4.0",
79
- "react": "^19.2.4",
80
- "react-dom": "^19.2.4",
81
- "typescript": "~5.9.3",
82
- "typescript-eslint": "^8.57.1",
83
- "vite": "^8.0.8",
84
- "vite-plugin-dts": "^4.5.4",
93
+ "@vitejs/plugin-react": "^6.0.3",
94
+ "@xyflow/react": "^12.11.2",
95
+ "eslint": "^10.6.0",
96
+ "eslint-plugin-react-hooks": "^7.1.1",
97
+ "eslint-plugin-react-refresh": "^0.5.3",
98
+ "globals": "^17.7.0",
99
+ "react": "^19.2.7",
100
+ "react-dom": "^19.2.7",
101
+ "typescript": "~6.0.3",
102
+ "typescript-eslint": "^8.63.0",
103
+ "vite": "^8.1.3",
104
+ "vite-plugin-dts": "^5.0.3",
85
105
  "vite-plugin-wasm": "^3.6.0"
86
- },
87
- "scripts": {
88
- "dev": "vite",
89
- "build": "tsc -b && vite build",
90
- "build:lib": "vite build --config vite.lib.config.ts",
91
- "build:embed": "vite build --config vite.embed.config.ts",
92
- "lint": "eslint .",
93
- "preview": "vite preview",
94
- "release:patch": "npm version patch && pnpm publish --access public --no-git-checks",
95
- "release:minor": "npm version minor && pnpm publish --access public --no-git-checks",
96
- "release:major": "npm version major && pnpm publish --access public --no-git-checks"
97
106
  }
98
- }
107
+ }