@bonsae/nrg 0.10.1 → 0.11.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.
- package/package.json +1 -1
- package/schemas/labels.schema.json +13 -0
- package/server/index.cjs +0 -8
- package/server/resources/nrg-client.js +2302 -2253
- package/types/server.d.ts +0 -8
- package/vite/index.js +337 -56
package/package.json
CHANGED
|
@@ -14,10 +14,23 @@
|
|
|
14
14
|
"type": "string",
|
|
15
15
|
"description": "Display name shown in the palette and workspace"
|
|
16
16
|
},
|
|
17
|
+
"paletteLabel": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Label shown in the palette. Falls back to 'label' if not set."
|
|
20
|
+
},
|
|
17
21
|
"description": {
|
|
18
22
|
"type": "string",
|
|
19
23
|
"description": "Node description for this language. Overrides the class-level description in auto-generated help docs."
|
|
20
24
|
},
|
|
25
|
+
"inputLabels": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Label for the input port."
|
|
28
|
+
},
|
|
29
|
+
"outputLabels": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": { "type": "string" },
|
|
32
|
+
"description": "Labels for output ports, one per port."
|
|
33
|
+
},
|
|
21
34
|
"configs": {
|
|
22
35
|
"$ref": "#/$defs/labelMap",
|
|
23
36
|
"description": "Labels for config properties"
|
package/server/index.cjs
CHANGED
|
@@ -531,12 +531,8 @@ var Node = class {
|
|
|
531
531
|
var IONode = class extends Node {
|
|
532
532
|
static align;
|
|
533
533
|
static color;
|
|
534
|
-
static labelStyle;
|
|
535
|
-
static paletteLabel;
|
|
536
534
|
static inputs = 0;
|
|
537
535
|
static outputs = 0;
|
|
538
|
-
static inputLabels;
|
|
539
|
-
static outputLabels;
|
|
540
536
|
static inputSchema;
|
|
541
537
|
static outputsSchema;
|
|
542
538
|
static validateInput = false;
|
|
@@ -689,11 +685,7 @@ function defineIONode(def) {
|
|
|
689
685
|
static color = def.color ?? "#a6bbcf";
|
|
690
686
|
static inputs = def.inputs ?? 1;
|
|
691
687
|
static outputs = def.outputs ?? 1;
|
|
692
|
-
static paletteLabel = def.paletteLabel;
|
|
693
|
-
static inputLabels = def.inputLabels;
|
|
694
|
-
static outputLabels = def.outputLabels;
|
|
695
688
|
static align = def.align;
|
|
696
|
-
static labelStyle = def.labelStyle;
|
|
697
689
|
static configSchema = def.configSchema;
|
|
698
690
|
static credentialsSchema = def.credentialsSchema;
|
|
699
691
|
static settingsSchema = def.settingsSchema;
|