@cardenelabs/cdl 0.40.5 → 0.40.6
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/CHANGELOG.md +23 -1
- package/dist/index.cjs +13 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +13 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +13 -1
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
- package/src/validate.ts +27 -2
package/dist/react.js
CHANGED
|
@@ -9532,6 +9532,18 @@ var DRAW_KINDS = /* @__PURE__ */ new Set([
|
|
|
9532
9532
|
]);
|
|
9533
9533
|
var KINDS = new Set(NODE_KINDS);
|
|
9534
9534
|
var ENG_BANNED = /\b(FUNCTION|STORAGE|EVENT LOG|BALANCES MAPPING|READ|WRITE|EMIT|CALL)\b/;
|
|
9535
|
+
var \u56F3\u8868\u306E\u8377\u306E\u6B04 = [
|
|
9536
|
+
"chartData",
|
|
9537
|
+
"ganttData",
|
|
9538
|
+
"mindData",
|
|
9539
|
+
"funnelData",
|
|
9540
|
+
"quadrantData",
|
|
9541
|
+
"treeData",
|
|
9542
|
+
"journeyData"
|
|
9543
|
+
];
|
|
9544
|
+
function \u56F3\u8868\u306E\u7BC0(n) {
|
|
9545
|
+
return \u56F3\u8868\u306E\u8377\u306E\u6B04.some((\u6B04) => n[\u6B04] !== void 0);
|
|
9546
|
+
}
|
|
9535
9547
|
function validate(diag) {
|
|
9536
9548
|
const errors = [];
|
|
9537
9549
|
const warnings = [];
|
|
@@ -9689,7 +9701,7 @@ function validate(diag) {
|
|
|
9689
9701
|
for (const id of p.activate) allActivated.add(id);
|
|
9690
9702
|
}
|
|
9691
9703
|
for (const n of diag.nodes) {
|
|
9692
|
-
if (!allActivated.has(n.id)) {
|
|
9704
|
+
if (!allActivated.has(n.id) && !\u56F3\u8868\u306E\u7BC0(n)) {
|
|
9693
9705
|
warnings.push(`node "${n.id}" \u304C\u3069\u306E phase \u3067\u3082 activate \u3055\u308C\u3066\u3044\u306A\u3044 (unused\u3001 typo \u306E\u53EF\u80FD\u6027)`);
|
|
9694
9706
|
}
|
|
9695
9707
|
}
|