@collective-intelligence/extensions-sdk-frontend-react 0.1.6 → 0.1.8

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/README.md CHANGED
@@ -129,6 +129,13 @@ presentation, standalone consumers retain the kind-based icon and accent.
129
129
  The host owns identity resolution; the public SDK does not import host catalogs
130
130
  or private presentation registries.
131
131
 
132
+ Hosts give `context.template.label` and `context.template.description` to a
133
+ hosted renderer as `WorkflowLocalizedText`: `{ kind: "literal", text }` or
134
+ `{ kind: "translation", default }`. A Host whose catalog transport uses another
135
+ shape converts it before it builds the context. `CatalogNodeChartBlock` shows
136
+ `context.chart.title` and `context.chart.description` when the Host sets them,
137
+ and the template text otherwise.
138
+
132
139
  The chart exposes every declared input and output with its port name, direction,
133
140
  connection limit, and allowed peer constraints. Port targets are 20 pixels wide;
134
141
  the card grows to keep dense port lists and contextual add controls separated.
@@ -223,6 +223,10 @@ export interface WorkflowDynamicPortDeclaration {
223
223
  requiredPath?: string;
224
224
  schemaPath?: string;
225
225
  }
226
+ /**
227
+ * Text a hosted renderer shows. A Host converts its catalog transport shape
228
+ * to this one before it builds a renderer context.
229
+ */
226
230
  export type WorkflowLocalizedText = {
227
231
  kind: "literal";
228
232
  text: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@collective-intelligence/extensions-sdk-frontend-react",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Public hosted React contribution contracts for Collective Intelligence extensions.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -62,11 +62,11 @@
62
62
  "type-check": "bun check"
63
63
  },
64
64
  "dependencies": {
65
- "@collective-intelligence/extensions-sdk": "0.1.6",
66
- "@collective-intelligence/extensions-sdk-frontend": "0.1.6"
65
+ "@collective-intelligence/extensions-sdk": "0.1.8",
66
+ "@collective-intelligence/extensions-sdk-frontend": "0.1.8"
67
67
  },
68
68
  "peerDependencies": {
69
- "@collective-intelligence/ui-react": "0.1.6",
69
+ "@collective-intelligence/ui-react": "0.1.8",
70
70
  "@tanstack/react-query": ">=5 <6",
71
71
  "@xyflow/react": ">=12 <13",
72
72
  "react": ">=18 <20",