@industry-theme/principal-view-panels 0.1.3 → 0.1.4
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/mocks/vvfConfigs.d.ts.map +1 -1
- package/dist/panels/ControlTowerIntegration.stories.d.ts.map +1 -1
- package/dist/panels/EventControllerPanel.stories.d.ts.map +1 -1
- package/dist/panels/EventRecordingIntegration.stories.d.ts.map +1 -1
- package/dist/panels.bundle.js +22 -1
- package/dist/panels.bundle.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vvfConfigs.d.ts","sourceRoot":"","sources":["../../src/mocks/vvfConfigs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAExE;;GAEG;AAEH,eAAO,MAAM,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"vvfConfigs.d.ts","sourceRoot":"","sources":["../../src/mocks/vvfConfigs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAExE;;GAEG;AAEH,eAAO,MAAM,gBAAgB,EAAE,cA6F9B,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,cAqLpC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,cAmH/B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,cAiKlC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,cA8HrC,CAAC;AAGF,eAAO,MAAM,oBAAoB,QAA4C,CAAC;AAC9E,eAAO,MAAM,qBAAqB,QAA6C,CAAC;AAChF,eAAO,MAAM,0BAA0B,QAAkD,CAAC;AAC1F,eAAO,MAAM,wBAAwB,QAAgD,CAAC;AACtF,eAAO,MAAM,2BAA2B,QAAmD,CAAC;AAG5F,eAAO,MAAM,kBAAkB,GAAI,QAAQ,QAAQ,GAAG,SAAS,GAAG,eAAe,GAAG,aAAa,GAAG,gBAAgB,GAAG,MAAM;;cAChG,MAAM;sBAAgB,MAAM;cAAQ,MAAM;kBAAY,MAAM;;CAgDxF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControlTowerIntegration.stories.d.ts","sourceRoot":"","sources":["../../src/panels/ControlTowerIntegration.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"ControlTowerIntegration.stories.d.ts","sourceRoot":"","sources":["../../src/panels/ControlTowerIntegration.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAsL5D,QAAA,MAAM,IAAI,EAAE,IASX,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,QAyb7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,QA0I/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventControllerPanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/EventControllerPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAgC,MAAM,OAAO,CAAC;AAGrD,OAAO,KAAK,EAAkB,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAGpF;;;;GAIG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;CAsBmC,CAAC;AAE9C,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"EventControllerPanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/EventControllerPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAgC,MAAM,OAAO,CAAC;AAGrD,OAAO,KAAK,EAAkB,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAGpF;;;;GAIG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;CAsBmC,CAAC;AAE9C,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAoNnC;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAuC/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAUlC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAUxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAoBxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAmEjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventRecordingIntegration.stories.d.ts","sourceRoot":"","sources":["../../src/panels/EventRecordingIntegration.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"EventRecordingIntegration.stories.d.ts","sourceRoot":"","sources":["../../src/panels/EventRecordingIntegration.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAwE5D,QAAA,MAAM,IAAI,EAAE,IASX,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,EAAE,QA0S/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,QAgFzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,QAgKlC,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -4454,12 +4454,14 @@ class EventProcessor {
|
|
|
4454
4454
|
}
|
|
4455
4455
|
}
|
|
4456
4456
|
handleNodeEvent(event, timestamp2) {
|
|
4457
|
+
var _a;
|
|
4457
4458
|
const payload = event.payload;
|
|
4458
4459
|
switch (payload.operation) {
|
|
4459
4460
|
case "create":
|
|
4460
4461
|
this.state.nodes.set(payload.nodeId, {
|
|
4461
4462
|
id: payload.nodeId,
|
|
4462
4463
|
type: payload.nodeType,
|
|
4464
|
+
name: ((_a = payload.data) == null ? void 0 : _a.name) || payload.nodeId,
|
|
4463
4465
|
data: payload.data || {},
|
|
4464
4466
|
position: payload.position,
|
|
4465
4467
|
createdAt: timestamp2,
|
|
@@ -5185,6 +5187,7 @@ class GraphConverter {
|
|
|
5185
5187
|
nodes.push({
|
|
5186
5188
|
id,
|
|
5187
5189
|
type: id,
|
|
5190
|
+
name: id,
|
|
5188
5191
|
data: {
|
|
5189
5192
|
label: id,
|
|
5190
5193
|
shape: nodeType.shape,
|
|
@@ -5422,8 +5425,8 @@ class CanvasConverter {
|
|
|
5422
5425
|
nodes.push({
|
|
5423
5426
|
id: node.id,
|
|
5424
5427
|
type: (pv == null ? void 0 : pv.nodeType) || node.type,
|
|
5428
|
+
name: nodeName,
|
|
5425
5429
|
data: {
|
|
5426
|
-
name: nodeName,
|
|
5427
5430
|
description: pv == null ? void 0 : pv.description,
|
|
5428
5431
|
shape: (pv == null ? void 0 : pv.shape) || "rectangle",
|
|
5429
5432
|
icon: pv == null ? void 0 : pv.icon,
|
|
@@ -5507,6 +5510,7 @@ class CanvasConverter {
|
|
|
5507
5510
|
if (node.data.nodeType || node.data.shape || ((_c = node.data.sources) == null ? void 0 : _c.length)) {
|
|
5508
5511
|
canvasNode.pv = {
|
|
5509
5512
|
nodeType: node.data.nodeType || node.id,
|
|
5513
|
+
description: node.data.description || `${node.data.nodeType || node.id} node`,
|
|
5510
5514
|
shape: node.data.shape,
|
|
5511
5515
|
icon: node.data.icon,
|
|
5512
5516
|
states: node.data.states,
|
|
@@ -9197,6 +9201,7 @@ class LibraryConverter {
|
|
|
9197
9201
|
const { id, x: x2, y: y2, label, data } = options;
|
|
9198
9202
|
const pv = {
|
|
9199
9203
|
nodeType: componentKey,
|
|
9204
|
+
description: component.description,
|
|
9200
9205
|
shape: component.shape,
|
|
9201
9206
|
icon: component.icon,
|
|
9202
9207
|
states: component.states,
|
|
@@ -10075,6 +10080,18 @@ const validNodeTypes = {
|
|
|
10075
10080
|
}
|
|
10076
10081
|
for (const [typeId, nodeType] of Object.entries(configuration.nodeTypes)) {
|
|
10077
10082
|
const basePath = `nodeTypes.${typeId}`;
|
|
10083
|
+
if (!nodeType.description) {
|
|
10084
|
+
violations.push({
|
|
10085
|
+
ruleId: "valid-node-types",
|
|
10086
|
+
severity: "error",
|
|
10087
|
+
file: configPath,
|
|
10088
|
+
path: `${basePath}.description`,
|
|
10089
|
+
message: `Node type "${typeId}" is missing required "description" field`,
|
|
10090
|
+
impact: "Node type must have a description explaining its purpose",
|
|
10091
|
+
suggestion: "Add a description field explaining what this node type represents",
|
|
10092
|
+
fixable: false
|
|
10093
|
+
});
|
|
10094
|
+
}
|
|
10078
10095
|
if (!nodeType.shape) {
|
|
10079
10096
|
violations.push({
|
|
10080
10097
|
ruleId: "valid-node-types",
|
|
@@ -10472,6 +10489,7 @@ const ALLOWED_FIELDS = {
|
|
|
10472
10489
|
root: ["metadata", "nodeTypes", "edgeTypes", "allowedConnections", "validation", "display"],
|
|
10473
10490
|
metadata: ["name", "version", "description"],
|
|
10474
10491
|
nodeType: [
|
|
10492
|
+
"description",
|
|
10475
10493
|
"shape",
|
|
10476
10494
|
"icon",
|
|
10477
10495
|
"color",
|
|
@@ -46504,6 +46522,7 @@ function requireGraphRenderer() {
|
|
|
46504
46522
|
if (library == null ? void 0 : library.nodeComponents) {
|
|
46505
46523
|
for (const [id, component] of Object.entries(library.nodeComponents)) {
|
|
46506
46524
|
nodeTypes2[id] = {
|
|
46525
|
+
description: component.description,
|
|
46507
46526
|
shape: component.shape || "rectangle",
|
|
46508
46527
|
icon: component.icon,
|
|
46509
46528
|
color: component.color,
|
|
@@ -46528,6 +46547,7 @@ function requireGraphRenderer() {
|
|
|
46528
46547
|
if ((_a = canvas.pv) == null ? void 0 : _a.nodeTypes) {
|
|
46529
46548
|
for (const [id, def] of Object.entries(canvas.pv.nodeTypes)) {
|
|
46530
46549
|
nodeTypes2[id] = {
|
|
46550
|
+
description: def.description,
|
|
46531
46551
|
shape: def.shape || "rectangle",
|
|
46532
46552
|
icon: def.icon,
|
|
46533
46553
|
color: def.color,
|
|
@@ -46541,6 +46561,7 @@ function requireGraphRenderer() {
|
|
|
46541
46561
|
if (!nodeTypes2[nodeType]) {
|
|
46542
46562
|
const fillColor = (vv == null ? void 0 : vv.fill) || (typeof node.color === "string" ? node.color : void 0) || ((_c = (_b = vv == null ? void 0 : vv.states) == null ? void 0 : _b.idle) == null ? void 0 : _c.color);
|
|
46543
46563
|
nodeTypes2[nodeType] = {
|
|
46564
|
+
description: (vv == null ? void 0 : vv.description) || `${nodeType} node`,
|
|
46544
46565
|
shape: (vv == null ? void 0 : vv.shape) || "rectangle",
|
|
46545
46566
|
icon: vv == null ? void 0 : vv.icon,
|
|
46546
46567
|
color: fillColor,
|