@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/index.js
CHANGED
|
@@ -20814,6 +20814,18 @@ var DRAW_KINDS = /* @__PURE__ */ new Set([
|
|
|
20814
20814
|
]);
|
|
20815
20815
|
var KINDS = new Set(NODE_KINDS);
|
|
20816
20816
|
var ENG_BANNED = /\b(FUNCTION|STORAGE|EVENT LOG|BALANCES MAPPING|READ|WRITE|EMIT|CALL)\b/;
|
|
20817
|
+
var \u56F3\u8868\u306E\u8377\u306E\u6B04 = [
|
|
20818
|
+
"chartData",
|
|
20819
|
+
"ganttData",
|
|
20820
|
+
"mindData",
|
|
20821
|
+
"funnelData",
|
|
20822
|
+
"quadrantData",
|
|
20823
|
+
"treeData",
|
|
20824
|
+
"journeyData"
|
|
20825
|
+
];
|
|
20826
|
+
function \u56F3\u8868\u306E\u7BC0(n) {
|
|
20827
|
+
return \u56F3\u8868\u306E\u8377\u306E\u6B04.some((\u6B04) => n[\u6B04] !== void 0);
|
|
20828
|
+
}
|
|
20817
20829
|
function validate(diag) {
|
|
20818
20830
|
const errors = [];
|
|
20819
20831
|
const warnings = [];
|
|
@@ -20971,7 +20983,7 @@ function validate(diag) {
|
|
|
20971
20983
|
for (const id of p.activate) allActivated.add(id);
|
|
20972
20984
|
}
|
|
20973
20985
|
for (const n of diag.nodes) {
|
|
20974
|
-
if (!allActivated.has(n.id)) {
|
|
20986
|
+
if (!allActivated.has(n.id) && !\u56F3\u8868\u306E\u7BC0(n)) {
|
|
20975
20987
|
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)`);
|
|
20976
20988
|
}
|
|
20977
20989
|
}
|