@goplasmatic/datalogic-ui 4.0.18 → 4.0.19
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/datalogic_wasm-CJRUeom8.cjs +470 -0
- package/dist/datalogic_wasm-dEsk1ML-.js +373 -0
- package/dist/index.cjs +21 -5
- package/dist/index.js +21 -5
- package/dist/styles.css +1625 -0
- package/package.json +4 -4
- package/dist/datalogic_wasm-Bc3wXMLg.js +0 -373
- package/dist/datalogic_wasm-OKIEjGRd.cjs +0 -470
package/dist/index.cjs
CHANGED
|
@@ -7126,17 +7126,33 @@ function createVariableNodeFromTrace(nodeId, expression, children, context, pare
|
|
|
7126
7126
|
}
|
|
7127
7127
|
}
|
|
7128
7128
|
|
|
7129
|
+
function deepEqual(a, b) {
|
|
7130
|
+
if (a === b) return true;
|
|
7131
|
+
if (a === null || b === null || typeof a !== typeof b) return a === b;
|
|
7132
|
+
if (Array.isArray(a)) {
|
|
7133
|
+
if (!Array.isArray(b) || a.length !== b.length) return false;
|
|
7134
|
+
return a.every((v, i) => deepEqual(v, b[i]));
|
|
7135
|
+
}
|
|
7136
|
+
if (typeof a === "object") {
|
|
7137
|
+
const aObj = a;
|
|
7138
|
+
const bObj = b;
|
|
7139
|
+
const aKeys = Object.keys(aObj);
|
|
7140
|
+
const bKeys = Object.keys(bObj);
|
|
7141
|
+
if (aKeys.length !== bKeys.length) return false;
|
|
7142
|
+
return aKeys.every((k) => k in bObj && deepEqual(aObj[k], bObj[k]));
|
|
7143
|
+
}
|
|
7144
|
+
return false;
|
|
7145
|
+
}
|
|
7129
7146
|
function findMatchingChild(operand, children, usedIndices) {
|
|
7130
|
-
const operandStr = JSON.stringify(operand);
|
|
7131
7147
|
for (let i = 0; i < children.length; i++) {
|
|
7132
7148
|
if (usedIndices.has(i)) continue;
|
|
7133
7149
|
try {
|
|
7134
|
-
const
|
|
7135
|
-
if (
|
|
7150
|
+
const childExpr = JSON.parse(children[i].expression);
|
|
7151
|
+
if (deepEqual(operand, childExpr)) {
|
|
7136
7152
|
return { child: children[i], index: i };
|
|
7137
7153
|
}
|
|
7138
7154
|
} catch {
|
|
7139
|
-
if (children[i].expression ===
|
|
7155
|
+
if (children[i].expression === JSON.stringify(operand)) {
|
|
7140
7156
|
return { child: children[i], index: i };
|
|
7141
7157
|
}
|
|
7142
7158
|
}
|
|
@@ -15189,7 +15205,7 @@ function useWasmEvaluator(options = {}) {
|
|
|
15189
15205
|
try {
|
|
15190
15206
|
setLoading(true);
|
|
15191
15207
|
setError(null);
|
|
15192
|
-
const wasm = await Promise.resolve().then(() => require('./datalogic_wasm-
|
|
15208
|
+
const wasm = await Promise.resolve().then(() => require('./datalogic_wasm-CJRUeom8.cjs'));
|
|
15193
15209
|
await wasm.default();
|
|
15194
15210
|
if (!cancelled) {
|
|
15195
15211
|
moduleRef.current = {
|
package/dist/index.js
CHANGED
|
@@ -10420,20 +10420,36 @@ let __tla = (async () => {
|
|
|
10420
10420
|
context.edges.push(createArgEdge(parentInfo.parentId, nodeId, parentInfo.argIndex ?? 0));
|
|
10421
10421
|
}
|
|
10422
10422
|
}
|
|
10423
|
+
function deepEqual(a, b) {
|
|
10424
|
+
if (a === b) return true;
|
|
10425
|
+
if (a === null || b === null || typeof a !== typeof b) return a === b;
|
|
10426
|
+
if (Array.isArray(a)) {
|
|
10427
|
+
if (!Array.isArray(b) || a.length !== b.length) return false;
|
|
10428
|
+
return a.every((v, i) => deepEqual(v, b[i]));
|
|
10429
|
+
}
|
|
10430
|
+
if (typeof a === "object") {
|
|
10431
|
+
const aObj = a;
|
|
10432
|
+
const bObj = b;
|
|
10433
|
+
const aKeys = Object.keys(aObj);
|
|
10434
|
+
const bKeys = Object.keys(bObj);
|
|
10435
|
+
if (aKeys.length !== bKeys.length) return false;
|
|
10436
|
+
return aKeys.every((k) => k in bObj && deepEqual(aObj[k], bObj[k]));
|
|
10437
|
+
}
|
|
10438
|
+
return false;
|
|
10439
|
+
}
|
|
10423
10440
|
function findMatchingChild(operand, children, usedIndices) {
|
|
10424
|
-
const operandStr = JSON.stringify(operand);
|
|
10425
10441
|
for (let i = 0; i < children.length; i++) {
|
|
10426
10442
|
if (usedIndices.has(i)) continue;
|
|
10427
10443
|
try {
|
|
10428
|
-
const
|
|
10429
|
-
if (
|
|
10444
|
+
const childExpr = JSON.parse(children[i].expression);
|
|
10445
|
+
if (deepEqual(operand, childExpr)) {
|
|
10430
10446
|
return {
|
|
10431
10447
|
child: children[i],
|
|
10432
10448
|
index: i
|
|
10433
10449
|
};
|
|
10434
10450
|
}
|
|
10435
10451
|
} catch {
|
|
10436
|
-
if (children[i].expression ===
|
|
10452
|
+
if (children[i].expression === JSON.stringify(operand)) {
|
|
10437
10453
|
return {
|
|
10438
10454
|
child: children[i],
|
|
10439
10455
|
index: i
|
|
@@ -17597,7 +17613,7 @@ let __tla = (async () => {
|
|
|
17597
17613
|
try {
|
|
17598
17614
|
setLoading(true);
|
|
17599
17615
|
setError(null);
|
|
17600
|
-
const wasm = await import("./datalogic_wasm-
|
|
17616
|
+
const wasm = await import("./datalogic_wasm-dEsk1ML-.js");
|
|
17601
17617
|
await wasm.default();
|
|
17602
17618
|
if (!cancelled) {
|
|
17603
17619
|
moduleRef.current = {
|