@fabricorg/gen-sdui 0.5.17 → 0.6.0
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 +21 -0
- package/dist/index.cjs +2 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/package.json +6 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 9bee610: Require Node.js 22 or newer. `engines.node` moves from `>=20` to `>=22`, because Node 20 reached end-of-life on 2026-04-30 and has no release with the fix for CVE-2026-111497. No API changes. npm and pnpm only warn on an engines mismatch by default, so installs on Node 20 still proceed, but Node 20 is no longer tested or supported. In production, run Node 22.23.4, 24.22.1, or 26.12.1 or newer in the same release line.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [9bee610]
|
|
12
|
+
- @fabricorg/compiler@2.5.0
|
|
13
|
+
- @fabricorg/experience-contracts@1.2.0
|
|
14
|
+
|
|
15
|
+
## 0.5.18
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 81570f4: Refresh packed Fabric dependency and peer ranges for the additive event cause attribution releases.
|
|
20
|
+
- Updated dependencies [81570f4]
|
|
21
|
+
- @fabricorg/compiler@2.4.3
|
|
22
|
+
- @fabricorg/experience-contracts@1.1.1
|
|
23
|
+
|
|
3
24
|
## 0.5.17
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let _fabricorg_compiler = require("@fabricorg/compiler");
|
|
3
3
|
let _fabricorg_experience_contracts = require("@fabricorg/experience-contracts");
|
|
4
|
-
|
|
4
|
+
// index.ts
|
|
5
5
|
/**
|
|
6
6
|
* Trusted assembly/code-generation artifact, not an external audience catalog.
|
|
7
7
|
* Internal surface declarations do not remove contracts here: assemblers and workers need
|
|
@@ -9,7 +9,7 @@ let _fabricorg_experience_contracts = require("@fabricorg/experience-contracts")
|
|
|
9
9
|
*/
|
|
10
10
|
const sduiGenerator = {
|
|
11
11
|
name: "@fabricorg/gen-sdui",
|
|
12
|
-
version: "0.
|
|
12
|
+
version: "0.6.0",
|
|
13
13
|
generate(ir) {
|
|
14
14
|
return ir.modules.map((module) => {
|
|
15
15
|
const experience = (0, _fabricorg_experience_contracts.readExperienceMetadata)(module.capability);
|
|
@@ -37,7 +37,6 @@ const sduiGenerator = {
|
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
|
-
//#endregion
|
|
41
40
|
exports.sduiGenerator = sduiGenerator;
|
|
42
41
|
|
|
43
42
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["readExperienceMetadata","stableStringify"],"sources":["../index.ts"],"sourcesContent":["/**\n * Trusted assembly/code-generation artifact, not an external audience catalog.\n * Internal surface declarations do not remove contracts here: assemblers and workers need\n * their schemas. External catalogs must filter internal definitions and apply audience rules.\n */\nimport { 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.
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["readExperienceMetadata","stableStringify"],"sources":["../index.ts"],"sourcesContent":["/**\n * Trusted assembly/code-generation artifact, not an external audience catalog.\n * Internal surface declarations do not remove contracts here: assemblers and workers need\n * their schemas. External catalogs must filter internal definitions and apply audience rules.\n */\nimport { 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.6.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\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":";;;;;;;;;AAQA,MAAa,gBAAiC;CAC7C,MAAM;CACN,SAAS;CACT,SAAS,IAAI;EACZ,OAAO,GAAG,QAAQ,KAAK,WAAW;GACjC,MAAM,cAAA,GAAaA,gCAAAA,uBAAAA,CAAuB,OAAO,UAAU;GAC3D,OAAO;IACN,MAAM,GAAG,OAAO,UAAU;IAC1B,UAAA,GAASC,oBAAAA,gBAAAA,CAAgB;KACxB,WAAW;MAAE,MAAM,cAAc;MAAM,SAAS,cAAc;KAAQ;KACtE,gBAAgB,GAAG;KACnB,OAAO,YAAY,SAAS,CAAC;KAC7B,eAAe,YAAY,iBAAiB,CAAC;KAC7C,OAAO,YAAY,SAAS,CAAC;KAC7B,UAAU,OAAO,MAAM,KAAK,UAAU;MACrC,KAAK,gBAAgB,KAAK;MAC1B,SAAS,KAAK;MACd,OAAO,KAAK;MACZ,GAAI,KAAK,kBAAkB,EAAE,iBAAiB,KAAK,gBAAgB,IAAI,CAAC;MACxE,OAAO,KAAK;MACZ,OAAO,KAAK;KACb,EAAE;IACH,CAAC;GACF;EACD,CAAC;CACF;AACD"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trusted assembly/code-generation artifact, not an external audience catalog.
|
|
3
|
+
* Internal surface declarations do not remove contracts here: assemblers and workers need
|
|
4
|
+
* their schemas. External catalogs must filter internal definitions and apply audience rules.
|
|
5
|
+
*/
|
|
1
6
|
import { GeneratorTarget } from "@fabricorg/compiler";
|
|
2
|
-
|
|
3
|
-
export declare const sduiGenerator: GeneratorTarget;
|
|
4
|
-
//#endregion
|
|
7
|
+
export declare const sduiGenerator: GeneratorTarget;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trusted assembly/code-generation artifact, not an external audience catalog.
|
|
3
|
+
* Internal surface declarations do not remove contracts here: assemblers and workers need
|
|
4
|
+
* their schemas. External catalogs must filter internal definitions and apply audience rules.
|
|
5
|
+
*/
|
|
1
6
|
import { GeneratorTarget } from "@fabricorg/compiler";
|
|
2
|
-
|
|
3
|
-
export declare const sduiGenerator: GeneratorTarget;
|
|
4
|
-
//#endregion
|
|
7
|
+
export declare const sduiGenerator: GeneratorTarget;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { stableStringify } from "@fabricorg/compiler";
|
|
2
2
|
import { readExperienceMetadata } from "@fabricorg/experience-contracts";
|
|
3
|
-
|
|
3
|
+
// index.ts
|
|
4
4
|
/**
|
|
5
5
|
* Trusted assembly/code-generation artifact, not an external audience catalog.
|
|
6
6
|
* Internal surface declarations do not remove contracts here: assemblers and workers need
|
|
@@ -8,7 +8,7 @@ import { readExperienceMetadata } from "@fabricorg/experience-contracts";
|
|
|
8
8
|
*/
|
|
9
9
|
const sduiGenerator = {
|
|
10
10
|
name: "@fabricorg/gen-sdui",
|
|
11
|
-
version: "0.
|
|
11
|
+
version: "0.6.0",
|
|
12
12
|
generate(ir) {
|
|
13
13
|
return ir.modules.map((module) => {
|
|
14
14
|
const experience = readExperienceMetadata(module.capability);
|
|
@@ -36,7 +36,6 @@ const sduiGenerator = {
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
//#endregion
|
|
40
39
|
export { sduiGenerator };
|
|
41
40
|
|
|
42
41
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../index.ts"],"sourcesContent":["/**\n * Trusted assembly/code-generation artifact, not an external audience catalog.\n * Internal surface declarations do not remove contracts here: assemblers and workers need\n * their schemas. External catalogs must filter internal definitions and apply audience rules.\n */\nimport { 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.
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../index.ts"],"sourcesContent":["/**\n * Trusted assembly/code-generation artifact, not an external audience catalog.\n * Internal surface declarations do not remove contracts here: assemblers and workers need\n * their schemas. External catalogs must filter internal definitions and apply audience rules.\n */\nimport { 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.6.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\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":";;;;;;;;AAQA,MAAa,gBAAiC;CAC7C,MAAM;CACN,SAAS;CACT,SAAS,IAAI;EACZ,OAAO,GAAG,QAAQ,KAAK,WAAW;GACjC,MAAM,aAAa,uBAAuB,OAAO,UAAU;GAC3D,OAAO;IACN,MAAM,GAAG,OAAO,UAAU;IAC1B,SAAS,gBAAgB;KACxB,WAAW;MAAE,MAAM,cAAc;MAAM,SAAS,cAAc;KAAQ;KACtE,gBAAgB,GAAG;KACnB,OAAO,YAAY,SAAS,CAAC;KAC7B,eAAe,YAAY,iBAAiB,CAAC;KAC7C,OAAO,YAAY,SAAS,CAAC;KAC7B,UAAU,OAAO,MAAM,KAAK,UAAU;MACrC,KAAK,gBAAgB,KAAK;MAC1B,SAAS,KAAK;MACd,OAAO,KAAK;MACZ,GAAI,KAAK,kBAAkB,EAAE,iBAAiB,KAAK,gBAAgB,IAAI,CAAC;MACxE,OAAO,KAAK;MACZ,OAAO,KAAK;KACb,EAAE;IACH,CAAC;GACF;EACD,CAAC;CACF;AACD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fabricorg/gen-sdui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "SDUI data-shape binding generator for Fabric compiler IR.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -32,19 +32,18 @@
|
|
|
32
32
|
"CHANGELOG.md"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@fabricorg/
|
|
36
|
-
"@fabricorg/
|
|
35
|
+
"@fabricorg/compiler": "^2.5.0",
|
|
36
|
+
"@fabricorg/experience-contracts": "^1.2.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^22.10.0",
|
|
40
|
-
"tsdown": "^0.23.
|
|
40
|
+
"tsdown": "^0.23.7",
|
|
41
41
|
"typescript": "^5.7.3",
|
|
42
42
|
"vitest": "^4.1.5",
|
|
43
|
-
"@
|
|
44
|
-
"@fabricorg/platform": "^1.17.0"
|
|
43
|
+
"@fabricorg/platform": "^1.19.0"
|
|
45
44
|
},
|
|
46
45
|
"engines": {
|
|
47
|
-
"node": ">=
|
|
46
|
+
"node": ">=22"
|
|
48
47
|
},
|
|
49
48
|
"publishConfig": {
|
|
50
49
|
"access": "public"
|