@xenosystem/blocks 0.2.0 → 0.2.2

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.
@@ -175,7 +175,6 @@ declare function plateCopy(phase: XenoAuthGatePhase, product: string, message: s
175
175
  body: string;
176
176
  note?: string;
177
177
  };
178
- /** The registry entry a host merges in: `behaviour: 'auth/authGateView'` → (inputs, config) → view. */
179
178
  declare const BEHAVIOURS: {
180
179
  'auth/authGateView': (inputs: Record<string, unknown>, config: Readonly<Record<string, unknown>>) => AuthGateView;
181
180
  };
@@ -181,8 +181,9 @@ function plateCopy(phase, product, message, since) {
181
181
  return { title: "", body: "" };
182
182
  }
183
183
  }
184
+ var AUTH_GATE_INPUT = "auth";
184
185
  var BEHAVIOURS = {
185
- "auth/authGateView": (inputs, config) => authGateView(inputs.state ?? { account: "unknown", licence: "checking", sdk: "ready" }, typeof config.productName === "string" && config.productName ? config.productName : "XENO")
186
+ "auth/authGateView": (inputs, config) => authGateView(inputs[AUTH_GATE_INPUT] ?? { account: "unknown", licence: "checking", sdk: "ready" }, typeof config.productName === "string" && config.productName ? config.productName : "XENO")
186
187
  };
187
188
 
188
189
  // src/auth/gate/react/AuthGateView.tsx
@@ -305,7 +306,8 @@ var AUTH_GATE_DECLARATION = {
305
306
  animate: { value: false }
306
307
  },
307
308
  on: {
308
- onAction: { emit: "intent", value: { arg: "" } }
309
+ onAction: { emit: "intent", value: { object: { kind: { arg: "" } } } }
310
+ // the port's shape: { kind }
309
311
  }
310
312
  }
311
313
  ]
package/dist/index.d.ts CHANGED
@@ -4,6 +4,6 @@
4
4
  * `/agent`. This root re-exports nothing on purpose: import the family you mount, so a product
5
5
  * carries only it. Naming rule: `XENO PACKAGE NAMING - STANDARD.md`.
6
6
  */
7
- declare const BLOCKS_VERSION = "0.2.0";
7
+ declare const BLOCKS_VERSION = "0.2.2";
8
8
 
9
9
  export { BLOCKS_VERSION };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/index.ts
2
- var BLOCKS_VERSION = "0.2.0";
2
+ var BLOCKS_VERSION = "0.2.2";
3
3
  export {
4
4
  BLOCKS_VERSION
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xenosystem/blocks",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "XENO Blocks — rung 3 of the front ladder: components composed into a contract-bearing unit (manifest: ports, intents, commands, agent surface), rendered by @xenosystem/workbench. ONE package, one subpath per family (/auth, /edit, /data, /time, /ops, /trust, /agent), one named export per block — XENO PACKAGE NAMING - STANDARD.md.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -33,7 +33,7 @@
33
33
  "@xenosystem/workbench": "^1.0.0",
34
34
  "react": ">=18.0.0",
35
35
  "react-dom": ">=18.0.0",
36
- "@xenosystem/block-sdk": "^0.1.0"
36
+ "@xenosystem/block-sdk": "^0.1.1"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/node": "^22.0.0",
@@ -50,7 +50,7 @@
50
50
  "tsup": "^8.0.0",
51
51
  "typescript": "^5.4.0",
52
52
  "vitest": "^4.1.0",
53
- "@xenosystem/block-sdk": "^0.1.0"
53
+ "@xenosystem/block-sdk": "^0.1.1"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"