@contentful/experience-design-system-cli 2.41.1-dev-build-3a724687.0 → 2.41.1-dev-build-36ec74af.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/dist/app.js +4 -12
- package/dist/index.js +5 -21
- package/dist/package.json +1 -1
- package/package.json +3 -3
package/dist/app.js
CHANGED
|
@@ -1676,12 +1676,9 @@ var init_schema = __esm({
|
|
|
1676
1676
|
$required: { type: "boolean" },
|
|
1677
1677
|
$default: {},
|
|
1678
1678
|
$values: { type: "array", items: { type: "string" } },
|
|
1679
|
-
"$token.kind": { type: "string"
|
|
1679
|
+
"$token.kind": { type: "string" },
|
|
1680
1680
|
"$token.allowed": { type: "array", items: { type: "string" } }
|
|
1681
1681
|
},
|
|
1682
|
-
// The API rejects a token property that does not say which kind of token it takes.
|
|
1683
|
-
if: { type: "object", properties: { $type: { const: "token" } }, required: ["$type"] },
|
|
1684
|
-
then: { type: "object", required: ["$token.kind"] },
|
|
1685
1682
|
additionalProperties: false
|
|
1686
1683
|
},
|
|
1687
1684
|
slot: {
|
|
@@ -22218,12 +22215,9 @@ var cdfJsonSchema2 = {
|
|
|
22218
22215
|
$required: { type: "boolean" },
|
|
22219
22216
|
$default: {},
|
|
22220
22217
|
$values: { type: "array", items: { type: "string" } },
|
|
22221
|
-
"$token.kind": { type: "string"
|
|
22218
|
+
"$token.kind": { type: "string" },
|
|
22222
22219
|
"$token.allowed": { type: "array", items: { type: "string" } }
|
|
22223
22220
|
},
|
|
22224
|
-
// The API rejects a token property that does not say which kind of token it takes.
|
|
22225
|
-
if: { type: "object", properties: { $type: { const: "token" } }, required: ["$type"] },
|
|
22226
|
-
then: { type: "object", required: ["$token.kind"] },
|
|
22227
22221
|
additionalProperties: false
|
|
22228
22222
|
},
|
|
22229
22223
|
slot: {
|
|
@@ -29201,14 +29195,12 @@ function nextStateAfterPrint(opts) {
|
|
|
29201
29195
|
|
|
29202
29196
|
// packages/experience-design-system-cli/src/tui/import/steps/10-flow/flow/save.ts
|
|
29203
29197
|
var SAVE_CONFIRMATION_DELAY_MS = 1e3;
|
|
29204
|
-
var describeCdfError = (error) => `${error.path.replace(/^\//, "").replace("/$properties/", ".").replaceAll("/", ".")}: ${error.message}`;
|
|
29205
29198
|
function buildSavedCDF(components, tokens, opts = {}) {
|
|
29206
29199
|
const cdf = buildCDF2(components, toCdfTokens(tokens), opts);
|
|
29207
29200
|
if (!cdf) throw new Error("nothing to save \u2014 no components or tokens resolved");
|
|
29208
29201
|
const validation = validateCDF2(cdf);
|
|
29209
29202
|
if (!validation.valid) {
|
|
29210
|
-
|
|
29211
|
-
throw new Error(`generated CDF failed validation: ${errors.map(describeCdfError).join("; ")}`);
|
|
29203
|
+
throw new Error(`generated CDF failed validation: ${validation.errors.map((error) => error.message).join(", ")}`);
|
|
29212
29204
|
}
|
|
29213
29205
|
return cdf;
|
|
29214
29206
|
}
|
|
@@ -30433,7 +30425,7 @@ function AgentsScreen({ onDone }) {
|
|
|
30433
30425
|
hints: [
|
|
30434
30426
|
{ keys: "\u2191/\u2193", label: "move" },
|
|
30435
30427
|
{ keys: "\u23CE", label: "make default" },
|
|
30436
|
-
{ keys: "\u2192", label: "settings
|
|
30428
|
+
{ keys: "\u2192", label: "settings" },
|
|
30437
30429
|
{ keys: "Esc/q", label: "back" }
|
|
30438
30430
|
]
|
|
30439
30431
|
}
|
package/dist/index.js
CHANGED
|
@@ -1986,12 +1986,9 @@ var init_schema = __esm({
|
|
|
1986
1986
|
$required: { type: "boolean" },
|
|
1987
1987
|
$default: {},
|
|
1988
1988
|
$values: { type: "array", items: { type: "string" } },
|
|
1989
|
-
"$token.kind": { type: "string"
|
|
1989
|
+
"$token.kind": { type: "string" },
|
|
1990
1990
|
"$token.allowed": { type: "array", items: { type: "string" } }
|
|
1991
1991
|
},
|
|
1992
|
-
// The API rejects a token property that does not say which kind of token it takes.
|
|
1993
|
-
if: { type: "object", properties: { $type: { const: "token" } }, required: ["$type"] },
|
|
1994
|
-
then: { type: "object", required: ["$token.kind"] },
|
|
1995
1992
|
additionalProperties: false
|
|
1996
1993
|
},
|
|
1997
1994
|
slot: {
|
|
@@ -14474,19 +14471,11 @@ var init_src = __esm({
|
|
|
14474
14471
|
}
|
|
14475
14472
|
});
|
|
14476
14473
|
|
|
14477
|
-
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/token-kinds/repair-token-kinds.js
|
|
14478
|
-
var init_repair_token_kinds = __esm({
|
|
14479
|
-
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/token-kinds/repair-token-kinds.js"() {
|
|
14480
|
-
"use strict";
|
|
14481
|
-
}
|
|
14482
|
-
});
|
|
14483
|
-
|
|
14484
14474
|
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/services/run-cdf-generation-service.js
|
|
14485
14475
|
var init_run_cdf_generation_service = __esm({
|
|
14486
14476
|
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/services/run-cdf-generation-service.js"() {
|
|
14487
14477
|
"use strict";
|
|
14488
14478
|
init_agents();
|
|
14489
|
-
init_repair_token_kinds();
|
|
14490
14479
|
}
|
|
14491
14480
|
});
|
|
14492
14481
|
|
|
@@ -25404,12 +25393,9 @@ var init_schema2 = __esm({
|
|
|
25404
25393
|
$required: { type: "boolean" },
|
|
25405
25394
|
$default: {},
|
|
25406
25395
|
$values: { type: "array", items: { type: "string" } },
|
|
25407
|
-
"$token.kind": { type: "string"
|
|
25396
|
+
"$token.kind": { type: "string" },
|
|
25408
25397
|
"$token.allowed": { type: "array", items: { type: "string" } }
|
|
25409
25398
|
},
|
|
25410
|
-
// The API rejects a token property that does not say which kind of token it takes.
|
|
25411
|
-
if: { type: "object", properties: { $type: { const: "token" } }, required: ["$type"] },
|
|
25412
|
-
then: { type: "object", required: ["$token.kind"] },
|
|
25413
25399
|
additionalProperties: false
|
|
25414
25400
|
},
|
|
25415
25401
|
slot: {
|
|
@@ -32965,8 +32951,7 @@ function buildSavedCDF(components, tokens, opts = {}) {
|
|
|
32965
32951
|
if (!cdf) throw new Error("nothing to save \u2014 no components or tokens resolved");
|
|
32966
32952
|
const validation = validateCDF2(cdf);
|
|
32967
32953
|
if (!validation.valid) {
|
|
32968
|
-
|
|
32969
|
-
throw new Error(`generated CDF failed validation: ${errors.map(describeCdfError).join("; ")}`);
|
|
32954
|
+
throw new Error(`generated CDF failed validation: ${validation.errors.map((error) => error.message).join(", ")}`);
|
|
32970
32955
|
}
|
|
32971
32956
|
return cdf;
|
|
32972
32957
|
}
|
|
@@ -33045,7 +33030,7 @@ async function recordRun(input, deps) {
|
|
|
33045
33030
|
return null;
|
|
33046
33031
|
}
|
|
33047
33032
|
}
|
|
33048
|
-
var SAVE_CONFIRMATION_DELAY_MS,
|
|
33033
|
+
var SAVE_CONFIRMATION_DELAY_MS, realSaveDeps;
|
|
33049
33034
|
var init_save = __esm({
|
|
33050
33035
|
"packages/experience-design-system-cli/src/tui/import/steps/10-flow/flow/save.ts"() {
|
|
33051
33036
|
"use strict";
|
|
@@ -33053,7 +33038,6 @@ var init_save = __esm({
|
|
|
33053
33038
|
init_src4();
|
|
33054
33039
|
init_run_print_files_helpers();
|
|
33055
33040
|
SAVE_CONFIRMATION_DELAY_MS = 1e3;
|
|
33056
|
-
describeCdfError = (error) => `${error.path.replace(/^\//, "").replace("/$properties/", ".").replaceAll("/", ".")}: ${error.message}`;
|
|
33057
33041
|
realSaveDeps = () => ({
|
|
33058
33042
|
openDb: openPipelineDb,
|
|
33059
33043
|
readTokens: (path5) => readTokensFromPath2({ flag: "tokens", path: path5 }),
|
|
@@ -34210,7 +34194,7 @@ function AgentsScreen({ onDone }) {
|
|
|
34210
34194
|
hints: [
|
|
34211
34195
|
{ keys: "\u2191/\u2193", label: "move" },
|
|
34212
34196
|
{ keys: "\u23CE", label: "make default" },
|
|
34213
|
-
{ keys: "\u2192", label: "settings
|
|
34197
|
+
{ keys: "\u2192", label: "settings" },
|
|
34214
34198
|
{ keys: "Esc/q", label: "back" }
|
|
34215
34199
|
]
|
|
34216
34200
|
}
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experience-design-system-cli",
|
|
3
|
-
"version": "2.41.1-dev-build-
|
|
3
|
+
"version": "2.41.1-dev-build-36ec74af.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"ts-morph": "^27.0.2",
|
|
46
46
|
"typescript": "^5.9.3",
|
|
47
47
|
"zod": "^4.6.5",
|
|
48
|
-
"@contentful/experience-design-system-types": "2.41.1-dev-build-
|
|
48
|
+
"@contentful/experience-design-system-types": "2.41.1-dev-build-36ec74af.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@tsconfig/node24": "^24.0.4",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"ink-testing-library": "^4.0.0",
|
|
60
60
|
"typescript-eslint": "^8.67.0",
|
|
61
61
|
"vitest": "^4.0.16",
|
|
62
|
-
"@contentful/experience-design-system-backend-pipeline": "2.41.1-dev-build-
|
|
62
|
+
"@contentful/experience-design-system-backend-pipeline": "2.41.1-dev-build-36ec74af.0"
|
|
63
63
|
},
|
|
64
64
|
"repository": {
|
|
65
65
|
"type": "git",
|