@fabricorg/gen-sdui 0.5.0 → 0.5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - b932767: Add portable parameter schemas and validation for projection views. Projection snapshot keys now
8
+ include a canonical parameter identity, generated capability and experience contracts preserve view
9
+ parameter schemas, and compatible snapshots continue through the explicit `upgradeSnapshot` seam.
10
+ - Updated dependencies [b932767]
11
+ - @fabricorg/compiler@2.1.1
12
+
13
+ ### Additional release notes
14
+
15
+ ### Patch Changes
16
+
17
+ - Preserve projection view `parameterSchema` in generated capability bindings.
18
+
3
19
  ## 0.5.0
4
20
 
5
21
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -27,7 +27,7 @@ var import_compiler = require("@fabricorg/compiler");
27
27
  var import_experience_contracts = require("@fabricorg/experience-contracts");
28
28
  var sduiGenerator = {
29
29
  name: "@fabricorg/gen-sdui",
30
- version: "0.5.0",
30
+ version: "0.5.1",
31
31
  generate(ir) {
32
32
  return ir.modules.map((module2) => {
33
33
  const experience = (0, import_experience_contracts.readExperienceMetadata)(module2.capability);
@@ -43,6 +43,7 @@ var sduiGenerator = {
43
43
  uri: `capability://${view.name}`,
44
44
  version: view.version,
45
45
  shape: view.shape,
46
+ ...view.parameterSchema ? { parameterSchema: view.parameterSchema } : {},
46
47
  scope: view.scope,
47
48
  usage: view.usage
48
49
  }))
@@ -1 +1 @@
1
- {"version":3,"sources":["../index.ts"],"sourcesContent":["import { stableStringify, type GeneratorTarget } from \"@fabricorg/compiler\";\nimport { readExperienceMetadata } from \"@fabricorg/experience-contracts\";\n\nexport const sduiGenerator: GeneratorTarget = {\n\tname: \"@fabricorg/gen-sdui\",\n\tversion: \"0.5.0\",\n\tgenerate(ir) {\n\t\treturn ir.modules.map((module) => {\n\t\t\tconst experience = readExperienceMetadata(module.capability);\n\t\t\treturn {\n\t\t\t\tpath: `${module.namespace}/data-shapes.json`,\n\t\t\t\tcontent: stableStringify({\n\t\t\t\t\tgenerator: { name: sduiGenerator.name, version: sduiGenerator.version },\n\t\t\t\t\tmanifestDigest: ir.manifestDigest,\n\t\t\t\t\troles: experience?.roles ?? [],\n\t\t\t\t\tactionIntents: experience?.actionIntents ?? [],\n\t\t\t\t\tslots: experience?.slots ?? [],\n\t\t\t\t\tbindings: module.views.map((view) => ({\n\t\t\t\t\t\turi: `capability://${view.name}`,\n\t\t\t\t\t\tversion: view.version,\n\t\t\t\t\t\tshape: view.shape,\n\t\t\t\t\t\tscope: view.scope,\n\t\t\t\t\t\tusage: view.usage,\n\t\t\t\t\t})),\n\t\t\t\t}),\n\t\t\t};\n\t\t});\n\t},\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAsD;AACtD,kCAAuC;AAEhC,IAAM,gBAAiC;AAAA,EAC7C,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS,IAAI;AACZ,WAAO,GAAG,QAAQ,IAAI,CAACA,YAAW;AACjC,YAAM,iBAAa,oDAAuBA,QAAO,UAAU;AAC3D,aAAO;AAAA,QACN,MAAM,GAAGA,QAAO,SAAS;AAAA,QACzB,aAAS,iCAAgB;AAAA,UACxB,WAAW,EAAE,MAAM,cAAc,MAAM,SAAS,cAAc,QAAQ;AAAA,UACtE,gBAAgB,GAAG;AAAA,UACnB,OAAO,YAAY,SAAS,CAAC;AAAA,UAC7B,eAAe,YAAY,iBAAiB,CAAC;AAAA,UAC7C,OAAO,YAAY,SAAS,CAAC;AAAA,UAC7B,UAAUA,QAAO,MAAM,IAAI,CAAC,UAAU;AAAA,YACrC,KAAK,gBAAgB,KAAK,IAAI;AAAA,YAC9B,SAAS,KAAK;AAAA,YACd,OAAO,KAAK;AAAA,YACZ,OAAO,KAAK;AAAA,YACZ,OAAO,KAAK;AAAA,UACb,EAAE;AAAA,QACH,CAAC;AAAA,MACF;AAAA,IACD,CAAC;AAAA,EACF;AACD;","names":["module"]}
1
+ {"version":3,"sources":["../index.ts"],"sourcesContent":["import { stableStringify, type GeneratorTarget } from \"@fabricorg/compiler\";\nimport { readExperienceMetadata } from \"@fabricorg/experience-contracts\";\n\nexport const sduiGenerator: GeneratorTarget = {\n\tname: \"@fabricorg/gen-sdui\",\n\tversion: \"0.5.1\",\n\tgenerate(ir) {\n\t\treturn ir.modules.map((module) => {\n\t\t\tconst experience = readExperienceMetadata(module.capability);\n\t\t\treturn {\n\t\t\t\tpath: `${module.namespace}/data-shapes.json`,\n\t\t\t\tcontent: stableStringify({\n\t\t\t\t\tgenerator: { name: sduiGenerator.name, version: sduiGenerator.version },\n\t\t\t\t\tmanifestDigest: ir.manifestDigest,\n\t\t\t\t\troles: experience?.roles ?? [],\n\t\t\t\t\tactionIntents: experience?.actionIntents ?? [],\n\t\t\t\t\tslots: experience?.slots ?? [],\n\t\t\t\t\tbindings: module.views.map((view) => ({\n\t\t\t\t\t\turi: `capability://${view.name}`,\n\t\t\t\t\t\tversion: view.version,\n\t\t\t\t\t\tshape: view.shape,\n\t\t\t\t\t\t...(view.parameterSchema ? { parameterSchema: view.parameterSchema } : {}),\n\t\t\t\t\t\tscope: view.scope,\n\t\t\t\t\t\tusage: view.usage,\n\t\t\t\t\t})),\n\t\t\t\t}),\n\t\t\t};\n\t\t});\n\t},\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAsD;AACtD,kCAAuC;AAEhC,IAAM,gBAAiC;AAAA,EAC7C,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS,IAAI;AACZ,WAAO,GAAG,QAAQ,IAAI,CAACA,YAAW;AACjC,YAAM,iBAAa,oDAAuBA,QAAO,UAAU;AAC3D,aAAO;AAAA,QACN,MAAM,GAAGA,QAAO,SAAS;AAAA,QACzB,aAAS,iCAAgB;AAAA,UACxB,WAAW,EAAE,MAAM,cAAc,MAAM,SAAS,cAAc,QAAQ;AAAA,UACtE,gBAAgB,GAAG;AAAA,UACnB,OAAO,YAAY,SAAS,CAAC;AAAA,UAC7B,eAAe,YAAY,iBAAiB,CAAC;AAAA,UAC7C,OAAO,YAAY,SAAS,CAAC;AAAA,UAC7B,UAAUA,QAAO,MAAM,IAAI,CAAC,UAAU;AAAA,YACrC,KAAK,gBAAgB,KAAK,IAAI;AAAA,YAC9B,SAAS,KAAK;AAAA,YACd,OAAO,KAAK;AAAA,YACZ,GAAI,KAAK,kBAAkB,EAAE,iBAAiB,KAAK,gBAAgB,IAAI,CAAC;AAAA,YACxE,OAAO,KAAK;AAAA,YACZ,OAAO,KAAK;AAAA,UACb,EAAE;AAAA,QACH,CAAC;AAAA,MACF;AAAA,IACD,CAAC;AAAA,EACF;AACD;","names":["module"]}
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import { stableStringify } from "@fabricorg/compiler";
3
3
  import { readExperienceMetadata } from "@fabricorg/experience-contracts";
4
4
  var sduiGenerator = {
5
5
  name: "@fabricorg/gen-sdui",
6
- version: "0.5.0",
6
+ version: "0.5.1",
7
7
  generate(ir) {
8
8
  return ir.modules.map((module) => {
9
9
  const experience = readExperienceMetadata(module.capability);
@@ -19,6 +19,7 @@ var sduiGenerator = {
19
19
  uri: `capability://${view.name}`,
20
20
  version: view.version,
21
21
  shape: view.shape,
22
+ ...view.parameterSchema ? { parameterSchema: view.parameterSchema } : {},
22
23
  scope: view.scope,
23
24
  usage: view.usage
24
25
  }))
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../index.ts"],"sourcesContent":["import { stableStringify, type GeneratorTarget } from \"@fabricorg/compiler\";\nimport { readExperienceMetadata } from \"@fabricorg/experience-contracts\";\n\nexport const sduiGenerator: GeneratorTarget = {\n\tname: \"@fabricorg/gen-sdui\",\n\tversion: \"0.5.0\",\n\tgenerate(ir) {\n\t\treturn ir.modules.map((module) => {\n\t\t\tconst experience = readExperienceMetadata(module.capability);\n\t\t\treturn {\n\t\t\t\tpath: `${module.namespace}/data-shapes.json`,\n\t\t\t\tcontent: stableStringify({\n\t\t\t\t\tgenerator: { name: sduiGenerator.name, version: sduiGenerator.version },\n\t\t\t\t\tmanifestDigest: ir.manifestDigest,\n\t\t\t\t\troles: experience?.roles ?? [],\n\t\t\t\t\tactionIntents: experience?.actionIntents ?? [],\n\t\t\t\t\tslots: experience?.slots ?? [],\n\t\t\t\t\tbindings: module.views.map((view) => ({\n\t\t\t\t\t\turi: `capability://${view.name}`,\n\t\t\t\t\t\tversion: view.version,\n\t\t\t\t\t\tshape: view.shape,\n\t\t\t\t\t\tscope: view.scope,\n\t\t\t\t\t\tusage: view.usage,\n\t\t\t\t\t})),\n\t\t\t\t}),\n\t\t\t};\n\t\t});\n\t},\n};\n"],"mappings":";AAAA,SAAS,uBAA6C;AACtD,SAAS,8BAA8B;AAEhC,IAAM,gBAAiC;AAAA,EAC7C,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS,IAAI;AACZ,WAAO,GAAG,QAAQ,IAAI,CAAC,WAAW;AACjC,YAAM,aAAa,uBAAuB,OAAO,UAAU;AAC3D,aAAO;AAAA,QACN,MAAM,GAAG,OAAO,SAAS;AAAA,QACzB,SAAS,gBAAgB;AAAA,UACxB,WAAW,EAAE,MAAM,cAAc,MAAM,SAAS,cAAc,QAAQ;AAAA,UACtE,gBAAgB,GAAG;AAAA,UACnB,OAAO,YAAY,SAAS,CAAC;AAAA,UAC7B,eAAe,YAAY,iBAAiB,CAAC;AAAA,UAC7C,OAAO,YAAY,SAAS,CAAC;AAAA,UAC7B,UAAU,OAAO,MAAM,IAAI,CAAC,UAAU;AAAA,YACrC,KAAK,gBAAgB,KAAK,IAAI;AAAA,YAC9B,SAAS,KAAK;AAAA,YACd,OAAO,KAAK;AAAA,YACZ,OAAO,KAAK;AAAA,YACZ,OAAO,KAAK;AAAA,UACb,EAAE;AAAA,QACH,CAAC;AAAA,MACF;AAAA,IACD,CAAC;AAAA,EACF;AACD;","names":[]}
1
+ {"version":3,"sources":["../index.ts"],"sourcesContent":["import { stableStringify, type GeneratorTarget } from \"@fabricorg/compiler\";\nimport { readExperienceMetadata } from \"@fabricorg/experience-contracts\";\n\nexport const sduiGenerator: GeneratorTarget = {\n\tname: \"@fabricorg/gen-sdui\",\n\tversion: \"0.5.1\",\n\tgenerate(ir) {\n\t\treturn ir.modules.map((module) => {\n\t\t\tconst experience = readExperienceMetadata(module.capability);\n\t\t\treturn {\n\t\t\t\tpath: `${module.namespace}/data-shapes.json`,\n\t\t\t\tcontent: stableStringify({\n\t\t\t\t\tgenerator: { name: sduiGenerator.name, version: sduiGenerator.version },\n\t\t\t\t\tmanifestDigest: ir.manifestDigest,\n\t\t\t\t\troles: experience?.roles ?? [],\n\t\t\t\t\tactionIntents: experience?.actionIntents ?? [],\n\t\t\t\t\tslots: experience?.slots ?? [],\n\t\t\t\t\tbindings: module.views.map((view) => ({\n\t\t\t\t\t\turi: `capability://${view.name}`,\n\t\t\t\t\t\tversion: view.version,\n\t\t\t\t\t\tshape: view.shape,\n\t\t\t\t\t\t...(view.parameterSchema ? { parameterSchema: view.parameterSchema } : {}),\n\t\t\t\t\t\tscope: view.scope,\n\t\t\t\t\t\tusage: view.usage,\n\t\t\t\t\t})),\n\t\t\t\t}),\n\t\t\t};\n\t\t});\n\t},\n};\n"],"mappings":";AAAA,SAAS,uBAA6C;AACtD,SAAS,8BAA8B;AAEhC,IAAM,gBAAiC;AAAA,EAC7C,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS,IAAI;AACZ,WAAO,GAAG,QAAQ,IAAI,CAAC,WAAW;AACjC,YAAM,aAAa,uBAAuB,OAAO,UAAU;AAC3D,aAAO;AAAA,QACN,MAAM,GAAG,OAAO,SAAS;AAAA,QACzB,SAAS,gBAAgB;AAAA,UACxB,WAAW,EAAE,MAAM,cAAc,MAAM,SAAS,cAAc,QAAQ;AAAA,UACtE,gBAAgB,GAAG;AAAA,UACnB,OAAO,YAAY,SAAS,CAAC;AAAA,UAC7B,eAAe,YAAY,iBAAiB,CAAC;AAAA,UAC7C,OAAO,YAAY,SAAS,CAAC;AAAA,UAC7B,UAAU,OAAO,MAAM,IAAI,CAAC,UAAU;AAAA,YACrC,KAAK,gBAAgB,KAAK,IAAI;AAAA,YAC9B,SAAS,KAAK;AAAA,YACd,OAAO,KAAK;AAAA,YACZ,GAAI,KAAK,kBAAkB,EAAE,iBAAiB,KAAK,gBAAgB,IAAI,CAAC;AAAA,YACxE,OAAO,KAAK;AAAA,YACZ,OAAO,KAAK;AAAA,UACb,EAAE;AAAA,QACH,CAAC;AAAA,MACF;AAAA,IACD,CAAC;AAAA,EACF;AACD;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabricorg/gen-sdui",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "SDUI data-shape binding generator for Fabric compiler IR.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -25,15 +25,15 @@
25
25
  "CHANGELOG.md"
26
26
  ],
27
27
  "dependencies": {
28
- "@fabricorg/compiler": "^2.0.0",
29
- "@fabricorg/experience-contracts": "^1.0.0"
28
+ "@fabricorg/compiler": "^2.2.0",
29
+ "@fabricorg/experience-contracts": "^1.0.1"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^22.10.0",
33
33
  "tsup": "^8.5.0",
34
34
  "typescript": "^5.7.3",
35
35
  "vitest": "^4.1.5",
36
- "@fabricorg/platform": "^1.0.0"
36
+ "@fabricorg/platform": "^1.2.0"
37
37
  },
38
38
  "engines": {
39
39
  "node": ">=20"