@contentful/experience-design-system-cli 2.37.1-dev-build-1e90e088.0 → 2.37.1-dev-build-3c845a01.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 +8 -6
- package/dist/index.js +9 -7
- package/dist/package.json +1 -1
- package/legacy/package.json +1 -1
- package/package.json +3 -3
package/dist/app.js
CHANGED
|
@@ -28300,8 +28300,12 @@ var FIELD_LABELS = {
|
|
|
28300
28300
|
host: "API Host",
|
|
28301
28301
|
defaultComponentDir: "Default component directory",
|
|
28302
28302
|
defaultTokenFile: "Default token file",
|
|
28303
|
-
contentfulBaseDir: "Root Project Directory
|
|
28303
|
+
contentfulBaseDir: "Root Project Directory"
|
|
28304
28304
|
};
|
|
28305
|
+
var FIELD_HINTS = {
|
|
28306
|
+
contentfulBaseDir: "(where .contentful goes)"
|
|
28307
|
+
};
|
|
28308
|
+
var LABEL_WIDTH = Math.max(...Object.values(FIELD_LABELS).map((label) => label.length));
|
|
28305
28309
|
function ConfigurationScreen({ onDone }) {
|
|
28306
28310
|
const [stage, setStage] = useState29("loading");
|
|
28307
28311
|
const [config, setConfig] = useState29(null);
|
|
@@ -28403,10 +28407,7 @@ function ConfigurationScreen({ onDone }) {
|
|
|
28403
28407
|
const display = field === "cmaToken" ? "\u2022".repeat(value.length) : value;
|
|
28404
28408
|
return /* @__PURE__ */ jsxs45(Box44, { gap: 1, children: [
|
|
28405
28409
|
/* @__PURE__ */ jsx55(Text46, { color: isActive ? PALETTE.accent : void 0, children: isActive ? "\u276F" : " " }),
|
|
28406
|
-
/* @__PURE__ */
|
|
28407
|
-
FIELD_LABELS[field],
|
|
28408
|
-
":"
|
|
28409
|
-
] }),
|
|
28410
|
+
/* @__PURE__ */ jsx55(Box44, { width: LABEL_WIDTH, flexShrink: 0, children: /* @__PURE__ */ jsx55(Text46, { bold: isActive, color: isActive ? PALETTE.accent : PALETTE.muted, children: FIELD_LABELS[field] }) }),
|
|
28410
28411
|
isActive && editing ? /* @__PURE__ */ jsx55(
|
|
28411
28412
|
TextInput4,
|
|
28412
28413
|
{
|
|
@@ -28415,7 +28416,8 @@ function ConfigurationScreen({ onDone }) {
|
|
|
28415
28416
|
onSubmit: () => setEditing(false),
|
|
28416
28417
|
mask: field === "cmaToken" ? "\u2022" : void 0
|
|
28417
28418
|
}
|
|
28418
|
-
) : /* @__PURE__ */ jsx55(Text46, { children: display || /* @__PURE__ */ jsx55(Text46, { color: PALETTE.muted, children: "(empty)" }) })
|
|
28419
|
+
) : /* @__PURE__ */ jsx55(Text46, { bold: !!display, children: display || (FIELD_HINTS[field] ? "" : /* @__PURE__ */ jsx55(Text46, { color: PALETTE.muted, children: "(empty)" })) }),
|
|
28420
|
+
FIELD_HINTS[field] && /* @__PURE__ */ jsx55(Text46, { color: PALETTE.muted, children: FIELD_HINTS[field] })
|
|
28419
28421
|
] }, field);
|
|
28420
28422
|
}) }),
|
|
28421
28423
|
notice && /* @__PURE__ */ jsxs45(Fragment17, { children: [
|
package/dist/index.js
CHANGED
|
@@ -32627,10 +32627,7 @@ function ConfigurationScreen({ onDone }) {
|
|
|
32627
32627
|
const display = field === "cmaToken" ? "\u2022".repeat(value.length) : value;
|
|
32628
32628
|
return /* @__PURE__ */ jsxs45(Box44, { gap: 1, children: [
|
|
32629
32629
|
/* @__PURE__ */ jsx55(Text46, { color: isActive ? PALETTE.accent : void 0, children: isActive ? "\u276F" : " " }),
|
|
32630
|
-
/* @__PURE__ */
|
|
32631
|
-
FIELD_LABELS[field],
|
|
32632
|
-
":"
|
|
32633
|
-
] }),
|
|
32630
|
+
/* @__PURE__ */ jsx55(Box44, { width: LABEL_WIDTH, flexShrink: 0, children: /* @__PURE__ */ jsx55(Text46, { bold: isActive, color: isActive ? PALETTE.accent : PALETTE.muted, children: FIELD_LABELS[field] }) }),
|
|
32634
32631
|
isActive && editing ? /* @__PURE__ */ jsx55(
|
|
32635
32632
|
TextInput4,
|
|
32636
32633
|
{
|
|
@@ -32639,7 +32636,8 @@ function ConfigurationScreen({ onDone }) {
|
|
|
32639
32636
|
onSubmit: () => setEditing(false),
|
|
32640
32637
|
mask: field === "cmaToken" ? "\u2022" : void 0
|
|
32641
32638
|
}
|
|
32642
|
-
) : /* @__PURE__ */ jsx55(Text46, { children: display || /* @__PURE__ */ jsx55(Text46, { color: PALETTE.muted, children: "(empty)" }) })
|
|
32639
|
+
) : /* @__PURE__ */ jsx55(Text46, { bold: !!display, children: display || (FIELD_HINTS[field] ? "" : /* @__PURE__ */ jsx55(Text46, { color: PALETTE.muted, children: "(empty)" })) }),
|
|
32640
|
+
FIELD_HINTS[field] && /* @__PURE__ */ jsx55(Text46, { color: PALETTE.muted, children: FIELD_HINTS[field] })
|
|
32643
32641
|
] }, field);
|
|
32644
32642
|
}) }),
|
|
32645
32643
|
notice && /* @__PURE__ */ jsxs45(Fragment17, { children: [
|
|
@@ -32670,7 +32668,7 @@ function ConfigurationScreen({ onDone }) {
|
|
|
32670
32668
|
)
|
|
32671
32669
|
] });
|
|
32672
32670
|
}
|
|
32673
|
-
var FIELD_ORDER, FIELD_LABELS;
|
|
32671
|
+
var FIELD_ORDER, FIELD_LABELS, FIELD_HINTS, LABEL_WIDTH;
|
|
32674
32672
|
var init_ContentfulConfigScreen = __esm({
|
|
32675
32673
|
"packages/experience-design-system-cli/src/tui/settings/contentful-configuration/ContentfulConfigScreen.tsx"() {
|
|
32676
32674
|
"use strict";
|
|
@@ -32694,8 +32692,12 @@ var init_ContentfulConfigScreen = __esm({
|
|
|
32694
32692
|
host: "API Host",
|
|
32695
32693
|
defaultComponentDir: "Default component directory",
|
|
32696
32694
|
defaultTokenFile: "Default token file",
|
|
32697
|
-
contentfulBaseDir: "Root Project Directory
|
|
32695
|
+
contentfulBaseDir: "Root Project Directory"
|
|
32696
|
+
};
|
|
32697
|
+
FIELD_HINTS = {
|
|
32698
|
+
contentfulBaseDir: "(where .contentful goes)"
|
|
32698
32699
|
};
|
|
32700
|
+
LABEL_WIDTH = Math.max(...Object.values(FIELD_LABELS).map((label) => label.length));
|
|
32699
32701
|
}
|
|
32700
32702
|
});
|
|
32701
32703
|
|
package/dist/package.json
CHANGED
package/legacy/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experience-design-system-cli",
|
|
3
|
-
"version": "2.37.1-dev-build-
|
|
3
|
+
"version": "2.37.1-dev-build-3c845a01.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"ts-morph": "^27.0.2",
|
|
46
46
|
"typescript": "^5.9.3",
|
|
47
47
|
"zod": "^4.6.5",
|
|
48
|
-
"@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-
|
|
49
|
-
"@contentful/experience-design-system-types": "2.37.1-dev-build-
|
|
48
|
+
"@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-3c845a01.0",
|
|
49
|
+
"@contentful/experience-design-system-types": "2.37.1-dev-build-3c845a01.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@tsconfig/node24": "^24.0.4",
|