@contentful/experience-design-system-cli 2.37.1-dev-build-05c9c394.0 → 2.37.1-dev-build-0853a70f.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 +39 -36
- package/dist/index.js +39 -37
- package/dist/package.json +1 -1
- package/package.json +3 -3
package/dist/app.js
CHANGED
|
@@ -2568,7 +2568,7 @@ function ControlHints({ hints }) {
|
|
|
2568
2568
|
// packages/experience-design-system-cli/src/tui/home/home.tsx
|
|
2569
2569
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
2570
2570
|
var VERSION = readPackageVersion();
|
|
2571
|
-
var HEADING = "Design System Import";
|
|
2571
|
+
var HEADING = "Contentful Design System Import";
|
|
2572
2572
|
var MIN_TERMINAL_WIDTH = 164;
|
|
2573
2573
|
var START_ITEMS = [
|
|
2574
2574
|
{ label: "Import", screen: "import" },
|
|
@@ -18230,15 +18230,6 @@ var MENU = [
|
|
|
18230
18230
|
{ choice: "continue", label: "Continue", description: "Check the credentials and go on" },
|
|
18231
18231
|
{ choice: "edit", label: "Edit", description: "Change the credentials" }
|
|
18232
18232
|
];
|
|
18233
|
-
function SectionLabel({ label, active = false }) {
|
|
18234
|
-
const columns = useTerminalWidth();
|
|
18235
|
-
const rule = "\u2500".repeat(Math.max(2, columns - label.length - 8));
|
|
18236
|
-
return /* @__PURE__ */ jsxs14(Text14, { color: PALETTE.border, dimColor: !active, children: [
|
|
18237
|
-
"\u2500\u2500 ",
|
|
18238
|
-
/* @__PURE__ */ jsx15(Text14, { color: active ? PALETTE.accent : PALETTE.muted, children: label }),
|
|
18239
|
-
` ${rule}`
|
|
18240
|
-
] });
|
|
18241
|
-
}
|
|
18242
18233
|
function CredentialsScreen({
|
|
18243
18234
|
onDone,
|
|
18244
18235
|
onBack,
|
|
@@ -18311,11 +18302,11 @@ function CredentialsScreen({
|
|
|
18311
18302
|
return /* @__PURE__ */ jsxs14(Box14, { flexDirection: "column", children: [
|
|
18312
18303
|
/* @__PURE__ */ jsx15(StepHeader, { step: "setup" }),
|
|
18313
18304
|
/* @__PURE__ */ jsxs14(Box14, { flexDirection: "column", paddingX: 2, paddingBottom: 1, children: [
|
|
18314
|
-
/* @__PURE__ */ jsx15(Text14, { bold: true, children: "Contentful Credentials" }),
|
|
18305
|
+
/* @__PURE__ */ jsx15(Text14, { bold: true, color: PALETTE.accent, children: "Contentful Credentials" }),
|
|
18315
18306
|
/* @__PURE__ */ jsx15(Text14, { children: " " }),
|
|
18316
18307
|
/* @__PURE__ */ jsx15(Text14, { color: PALETTE.muted, children: prefilled ? "Credentials pre-filled from the configuration settings." : "Enter the Contentful space you want to import into." }),
|
|
18317
18308
|
/* @__PURE__ */ jsx15(Text14, { children: " " }),
|
|
18318
|
-
/* @__PURE__ */ jsx15(
|
|
18309
|
+
/* @__PURE__ */ jsx15(Text14, { color: PALETTE.muted, children: "Actions" }),
|
|
18319
18310
|
MENU.map((item, index) => {
|
|
18320
18311
|
const focused = !editing && index === focus;
|
|
18321
18312
|
return /* @__PURE__ */ jsxs14(Box14, { gap: 1, children: [
|
|
@@ -18324,30 +18315,42 @@ function CredentialsScreen({
|
|
|
18324
18315
|
/* @__PURE__ */ jsx15(Text14, { color: PALETTE.muted, children: item.description })
|
|
18325
18316
|
] }, item.choice);
|
|
18326
18317
|
}),
|
|
18327
|
-
/* @__PURE__ */ jsxs14(
|
|
18328
|
-
|
|
18329
|
-
|
|
18330
|
-
|
|
18331
|
-
|
|
18332
|
-
|
|
18333
|
-
|
|
18334
|
-
|
|
18335
|
-
|
|
18336
|
-
|
|
18337
|
-
|
|
18338
|
-
|
|
18339
|
-
|
|
18340
|
-
|
|
18341
|
-
|
|
18342
|
-
|
|
18343
|
-
|
|
18344
|
-
|
|
18345
|
-
|
|
18346
|
-
|
|
18347
|
-
|
|
18348
|
-
|
|
18349
|
-
|
|
18350
|
-
|
|
18318
|
+
/* @__PURE__ */ jsxs14(
|
|
18319
|
+
Box14,
|
|
18320
|
+
{
|
|
18321
|
+
flexDirection: "column",
|
|
18322
|
+
marginTop: 1,
|
|
18323
|
+
borderStyle: "single",
|
|
18324
|
+
borderColor: PALETTE.border,
|
|
18325
|
+
borderBottom: false,
|
|
18326
|
+
borderLeft: false,
|
|
18327
|
+
borderRight: false,
|
|
18328
|
+
children: [
|
|
18329
|
+
/* @__PURE__ */ jsx15(Text14, { color: PALETTE.muted, children: "Space" }),
|
|
18330
|
+
FIELDS2.map((field, index) => {
|
|
18331
|
+
const open = editing && index === active;
|
|
18332
|
+
const value = values[field.key];
|
|
18333
|
+
const display = field.masked ? "\u2022".repeat(value.length) : value;
|
|
18334
|
+
return /* @__PURE__ */ jsxs14(Box14, { gap: 1, children: [
|
|
18335
|
+
/* @__PURE__ */ jsx15(Text14, { color: PALETTE.accent, children: open ? "\u276F" : " " }),
|
|
18336
|
+
/* @__PURE__ */ jsx15(Box14, { width: labelWidth, flexShrink: 0, children: /* @__PURE__ */ jsx15(Text14, { bold: open, color: open ? PALETTE.accent : PALETTE.muted, children: field.label }) }),
|
|
18337
|
+
open ? /* @__PURE__ */ jsx15(
|
|
18338
|
+
ClearableTextInput,
|
|
18339
|
+
{
|
|
18340
|
+
value,
|
|
18341
|
+
onChange: (next) => {
|
|
18342
|
+
setValues((current) => ({ ...current, [field.key]: next }));
|
|
18343
|
+
setNotice(null);
|
|
18344
|
+
},
|
|
18345
|
+
onSubmit: stopEditing,
|
|
18346
|
+
mask: field.masked ? "\u2022" : void 0
|
|
18347
|
+
}
|
|
18348
|
+
) : /* @__PURE__ */ jsx15(Text14, { color: display ? PALETTE.text : PALETTE.muted, children: display || (field.hint ?? "(empty)") })
|
|
18349
|
+
] }, field.key);
|
|
18350
|
+
})
|
|
18351
|
+
]
|
|
18352
|
+
}
|
|
18353
|
+
),
|
|
18351
18354
|
notice && /* @__PURE__ */ jsxs14(Fragment2, { children: [
|
|
18352
18355
|
/* @__PURE__ */ jsx15(Text14, { children: " " }),
|
|
18353
18356
|
/* @__PURE__ */ jsxs14(Text14, { color: PALETTE.error, children: [
|
package/dist/index.js
CHANGED
|
@@ -19369,7 +19369,7 @@ var init_home = __esm({
|
|
|
19369
19369
|
init_use_terminal_width();
|
|
19370
19370
|
init_ControlHints();
|
|
19371
19371
|
VERSION = readPackageVersion();
|
|
19372
|
-
HEADING = "Design System Import";
|
|
19372
|
+
HEADING = "Contentful Design System Import";
|
|
19373
19373
|
MIN_TERMINAL_WIDTH = 164;
|
|
19374
19374
|
START_ITEMS = [
|
|
19375
19375
|
{ label: "Import", screen: "import" },
|
|
@@ -20686,15 +20686,6 @@ var init_validate4 = __esm({
|
|
|
20686
20686
|
import { useRef as useRef2, useState as useState9 } from "react";
|
|
20687
20687
|
import { Box as Box14, Text as Text14, useInput as useInput11 } from "ink";
|
|
20688
20688
|
import { Fragment as Fragment2, jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
20689
|
-
function SectionLabel({ label, active = false }) {
|
|
20690
|
-
const columns = useTerminalWidth();
|
|
20691
|
-
const rule = "\u2500".repeat(Math.max(2, columns - label.length - 8));
|
|
20692
|
-
return /* @__PURE__ */ jsxs14(Text14, { color: PALETTE.border, dimColor: !active, children: [
|
|
20693
|
-
"\u2500\u2500 ",
|
|
20694
|
-
/* @__PURE__ */ jsx15(Text14, { color: active ? PALETTE.accent : PALETTE.muted, children: label }),
|
|
20695
|
-
` ${rule}`
|
|
20696
|
-
] });
|
|
20697
|
-
}
|
|
20698
20689
|
function CredentialsScreen({
|
|
20699
20690
|
onDone,
|
|
20700
20691
|
onBack,
|
|
@@ -20767,11 +20758,11 @@ function CredentialsScreen({
|
|
|
20767
20758
|
return /* @__PURE__ */ jsxs14(Box14, { flexDirection: "column", children: [
|
|
20768
20759
|
/* @__PURE__ */ jsx15(StepHeader, { step: "setup" }),
|
|
20769
20760
|
/* @__PURE__ */ jsxs14(Box14, { flexDirection: "column", paddingX: 2, paddingBottom: 1, children: [
|
|
20770
|
-
/* @__PURE__ */ jsx15(Text14, { bold: true, children: "Contentful Credentials" }),
|
|
20761
|
+
/* @__PURE__ */ jsx15(Text14, { bold: true, color: PALETTE.accent, children: "Contentful Credentials" }),
|
|
20771
20762
|
/* @__PURE__ */ jsx15(Text14, { children: " " }),
|
|
20772
20763
|
/* @__PURE__ */ jsx15(Text14, { color: PALETTE.muted, children: prefilled ? "Credentials pre-filled from the configuration settings." : "Enter the Contentful space you want to import into." }),
|
|
20773
20764
|
/* @__PURE__ */ jsx15(Text14, { children: " " }),
|
|
20774
|
-
/* @__PURE__ */ jsx15(
|
|
20765
|
+
/* @__PURE__ */ jsx15(Text14, { color: PALETTE.muted, children: "Actions" }),
|
|
20775
20766
|
MENU.map((item, index) => {
|
|
20776
20767
|
const focused = !editing && index === focus;
|
|
20777
20768
|
return /* @__PURE__ */ jsxs14(Box14, { gap: 1, children: [
|
|
@@ -20780,30 +20771,42 @@ function CredentialsScreen({
|
|
|
20780
20771
|
/* @__PURE__ */ jsx15(Text14, { color: PALETTE.muted, children: item.description })
|
|
20781
20772
|
] }, item.choice);
|
|
20782
20773
|
}),
|
|
20783
|
-
/* @__PURE__ */ jsxs14(
|
|
20784
|
-
|
|
20785
|
-
|
|
20786
|
-
|
|
20787
|
-
|
|
20788
|
-
|
|
20789
|
-
|
|
20790
|
-
|
|
20791
|
-
|
|
20792
|
-
|
|
20793
|
-
|
|
20794
|
-
|
|
20795
|
-
|
|
20796
|
-
|
|
20797
|
-
|
|
20798
|
-
|
|
20799
|
-
|
|
20800
|
-
|
|
20801
|
-
|
|
20802
|
-
|
|
20803
|
-
|
|
20804
|
-
|
|
20805
|
-
|
|
20806
|
-
|
|
20774
|
+
/* @__PURE__ */ jsxs14(
|
|
20775
|
+
Box14,
|
|
20776
|
+
{
|
|
20777
|
+
flexDirection: "column",
|
|
20778
|
+
marginTop: 1,
|
|
20779
|
+
borderStyle: "single",
|
|
20780
|
+
borderColor: PALETTE.border,
|
|
20781
|
+
borderBottom: false,
|
|
20782
|
+
borderLeft: false,
|
|
20783
|
+
borderRight: false,
|
|
20784
|
+
children: [
|
|
20785
|
+
/* @__PURE__ */ jsx15(Text14, { color: PALETTE.muted, children: "Space" }),
|
|
20786
|
+
FIELDS2.map((field, index) => {
|
|
20787
|
+
const open = editing && index === active;
|
|
20788
|
+
const value = values[field.key];
|
|
20789
|
+
const display = field.masked ? "\u2022".repeat(value.length) : value;
|
|
20790
|
+
return /* @__PURE__ */ jsxs14(Box14, { gap: 1, children: [
|
|
20791
|
+
/* @__PURE__ */ jsx15(Text14, { color: PALETTE.accent, children: open ? "\u276F" : " " }),
|
|
20792
|
+
/* @__PURE__ */ jsx15(Box14, { width: labelWidth, flexShrink: 0, children: /* @__PURE__ */ jsx15(Text14, { bold: open, color: open ? PALETTE.accent : PALETTE.muted, children: field.label }) }),
|
|
20793
|
+
open ? /* @__PURE__ */ jsx15(
|
|
20794
|
+
ClearableTextInput,
|
|
20795
|
+
{
|
|
20796
|
+
value,
|
|
20797
|
+
onChange: (next) => {
|
|
20798
|
+
setValues((current) => ({ ...current, [field.key]: next }));
|
|
20799
|
+
setNotice(null);
|
|
20800
|
+
},
|
|
20801
|
+
onSubmit: stopEditing,
|
|
20802
|
+
mask: field.masked ? "\u2022" : void 0
|
|
20803
|
+
}
|
|
20804
|
+
) : /* @__PURE__ */ jsx15(Text14, { color: display ? PALETTE.text : PALETTE.muted, children: display || (field.hint ?? "(empty)") })
|
|
20805
|
+
] }, field.key);
|
|
20806
|
+
})
|
|
20807
|
+
]
|
|
20808
|
+
}
|
|
20809
|
+
),
|
|
20807
20810
|
notice && /* @__PURE__ */ jsxs14(Fragment2, { children: [
|
|
20808
20811
|
/* @__PURE__ */ jsx15(Text14, { children: " " }),
|
|
20809
20812
|
/* @__PURE__ */ jsxs14(Text14, { color: PALETTE.error, children: [
|
|
@@ -20850,7 +20853,6 @@ var init_screen5 = __esm({
|
|
|
20850
20853
|
init_ClearableTextInput();
|
|
20851
20854
|
init_ControlHints();
|
|
20852
20855
|
init_StepHeader();
|
|
20853
|
-
init_use_terminal_width();
|
|
20854
20856
|
init_logic8();
|
|
20855
20857
|
init_validate4();
|
|
20856
20858
|
FIELDS2 = [
|
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.37.1-dev-build-
|
|
3
|
+
"version": "2.37.1-dev-build-0853a70f.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-0853a70f.0",
|
|
49
|
+
"@contentful/experience-design-system-types": "2.37.1-dev-build-0853a70f.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@tsconfig/node24": "^24.0.4",
|