@contentful/experience-design-system-cli 2.36.2-dev-build-4bcc1e36.0 → 2.36.2-dev-build-7907fec3.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 CHANGED
@@ -1,5 +1,5 @@
1
1
  // packages/experience-design-system-cli/app.tsx
2
- import { useEffect as useEffect8, useState as useState10 } from "react";
2
+ import { useEffect as useEffect8, useState as useState11 } from "react";
3
3
 
4
4
  // packages/experience-design-system-cli/src/tui/home/home.tsx
5
5
  import { useEffect as useEffect2, useState as useState2 } from "react";
@@ -509,7 +509,7 @@ function startReadingTerminal() {
509
509
  }
510
510
 
511
511
  // packages/experience-design-system-cli/src/tui/help/PageContainer.tsx
512
- import { useEffect as useEffect3 } from "react";
512
+ import { useEffect as useEffect3, useState as useState5 } from "react";
513
513
  import { Box as Box5, Text as Text6, useInput as useInput5 } from "ink";
514
514
 
515
515
  // packages/experience-design-system-cli/src/tui/debug-store.ts
@@ -587,6 +587,9 @@ var SESSION_ID = generateSessionId();
587
587
  function sessionDebugDir() {
588
588
  return join5(debugSessionsDir(), SESSION_ID);
589
589
  }
590
+ function currentDebugSessionDir() {
591
+ return sessionDebugDir();
592
+ }
590
593
  void isDebugModeEnabled().then((enabled) => {
591
594
  if (!enabled) return void 0;
592
595
  return mkdir2(sessionDebugDir(), { recursive: true });
@@ -694,11 +697,44 @@ process.once("SIGINT", () => {
694
697
  });
695
698
  });
696
699
 
700
+ // packages/experience-design-system-cli/src/tui/help/help-info.ts
701
+ async function readHelpInfo() {
702
+ const debugMode = await readDebugModeSetting();
703
+ return {
704
+ storage: [
705
+ { label: "Config folder", value: configRoot() },
706
+ { label: "Settings file", value: configFilePath() },
707
+ { label: "Debug logs", value: debugSessionsDir() }
708
+ ],
709
+ troubleshooting: [
710
+ { label: "CLI version", value: readPackageVersion() },
711
+ { label: "Node", value: process.version },
712
+ { label: "Platform", value: `${process.platform} ${process.arch}` },
713
+ { label: "Debug Mode", value: debugMode.enabled ? "on" : "off" },
714
+ {
715
+ label: "This session",
716
+ value: debugMode.enabled ? currentDebugSessionDir() : "no logs written while Debug Mode is off"
717
+ }
718
+ ]
719
+ };
720
+ }
721
+
697
722
  // packages/experience-design-system-cli/src/tui/help/PageContainer.tsx
698
- import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
723
+ import { Fragment, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
724
+ function Section({ title, rows }) {
725
+ return /* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", children: [
726
+ /* @__PURE__ */ jsx6(Text6, { bold: true, color: PALETTE.accent, children: title }),
727
+ rows.map((row) => /* @__PURE__ */ jsxs5(Box5, { gap: 1, children: [
728
+ /* @__PURE__ */ jsx6(Box5, { width: 14, flexShrink: 0, children: /* @__PURE__ */ jsx6(Text6, { dimColor: true, children: row.label }) }),
729
+ /* @__PURE__ */ jsx6(Text6, { children: row.value })
730
+ ] }, row.label))
731
+ ] });
732
+ }
699
733
  function HelpScreen({ onDone }) {
734
+ const [info, setInfo] = useState5();
700
735
  useEffect3(() => {
701
736
  startDebugRun({ flow: "help", step: "01-help", menuOption: "Help", inputs: {} });
737
+ void readHelpInfo().then(setInfo);
702
738
  }, []);
703
739
  const leave = (exitMethod) => {
704
740
  void finishDebugRun({ outputs: {}, status: "success", exitMethod });
@@ -714,17 +750,19 @@ function HelpScreen({ onDone }) {
714
750
  return;
715
751
  }
716
752
  });
717
- return /* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", paddingX: 2, paddingY: 1, children: [
753
+ return /* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", paddingX: 2, paddingY: 1, gap: 1, children: [
718
754
  /* @__PURE__ */ jsx6(Text6, { bold: true, children: "Help" }),
719
- /* @__PURE__ */ jsx6(Text6, { children: " " }),
720
- /* @__PURE__ */ jsx6(Text6, { children: "This is a placeholder screen for v2 help content." }),
721
- /* @__PURE__ */ jsx6(Text6, { children: " " }),
755
+ info ? /* @__PURE__ */ jsxs5(Fragment, { children: [
756
+ /* @__PURE__ */ jsx6(Section, { title: "Where things are stored", rows: info.storage }),
757
+ /* @__PURE__ */ jsx6(Section, { title: "Troubleshooting", rows: info.troubleshooting }),
758
+ /* @__PURE__ */ jsx6(Text6, { dimColor: true, children: "Hit a problem? Turn on Debug Mode in Settings, reproduce it, then share the session folder above. The CMA token is redacted from those logs." })
759
+ ] }) : /* @__PURE__ */ jsx6(Text6, { color: PALETTE.accent, children: "Loading..." }),
722
760
  /* @__PURE__ */ jsx6(
723
761
  ControlHints,
724
762
  {
725
763
  hints: [
726
764
  { keys: "\u23CE", label: "done" },
727
- { keys: "Esc/q", label: "back to start" }
765
+ { keys: "Esc/q", label: "back" }
728
766
  ]
729
767
  }
730
768
  )
@@ -732,14 +770,14 @@ function HelpScreen({ onDone }) {
732
770
  }
733
771
 
734
772
  // packages/experience-design-system-cli/src/tui/settings/PageContainer.tsx
735
- import { useState as useState5 } from "react";
773
+ import { useState as useState6 } from "react";
736
774
  import { Box as Box6, Text as Text7, useInput as useInput6 } from "ink";
737
775
  import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
738
776
  function SettingsScreen({
739
777
  onNavigate,
740
778
  onBack
741
779
  }) {
742
- const [focusIdx, setFocusIdx] = useState5(0);
780
+ const [focusIdx, setFocusIdx] = useState6(0);
743
781
  const items = [
744
782
  { label: "Configuration", screen: "settings-configuration" },
745
783
  { label: "Opt-in Analytics", screen: "settings-opt-in-analytics" },
@@ -787,7 +825,7 @@ function SettingsScreen({
787
825
  }
788
826
 
789
827
  // packages/experience-design-system-cli/src/tui/settings/contentful-configuration/ContentfulConfigScreen.tsx
790
- import { useEffect as useEffect4, useState as useState6 } from "react";
828
+ import { useEffect as useEffect4, useState as useState7 } from "react";
791
829
  import { Box as Box7, Text as Text8, useInput as useInput7 } from "ink";
792
830
  import TextInput3 from "ink-text-input";
793
831
 
@@ -820,7 +858,7 @@ async function writeCredentials(config) {
820
858
  }
821
859
 
822
860
  // packages/experience-design-system-cli/src/tui/settings/contentful-configuration/ContentfulConfigScreen.tsx
823
- import { Fragment, jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
861
+ import { Fragment as Fragment2, jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
824
862
  var FIELD_ORDER = [
825
863
  "spaceId",
826
864
  "environmentId",
@@ -848,13 +886,13 @@ var FIELD_LABELS = {
848
886
  defaultTokenFile: "Default token file (optional)"
849
887
  };
850
888
  function ConfigurationScreen({ onDone }) {
851
- const [stage, setStage] = useState6("loading");
852
- const [config, setConfig] = useState6(null);
853
- const [activeField, setActiveField] = useState6("spaceId");
854
- const [notice, setNotice] = useState6(null);
855
- const [lastSaved, setLastSaved] = useState6(null);
856
- const [editing, setEditing] = useState6(false);
857
- const [valueBeforeEdit, setValueBeforeEdit] = useState6("");
889
+ const [stage, setStage] = useState7("loading");
890
+ const [config, setConfig] = useState7(null);
891
+ const [activeField, setActiveField] = useState7("spaceId");
892
+ const [notice, setNotice] = useState7(null);
893
+ const [lastSaved, setLastSaved] = useState7(null);
894
+ const [editing, setEditing] = useState7(false);
895
+ const [valueBeforeEdit, setValueBeforeEdit] = useState7("");
858
896
  useEffect4(() => {
859
897
  readCredentials().then((cfg) => {
860
898
  setConfig(cfg);
@@ -962,7 +1000,7 @@ function ConfigurationScreen({ onDone }) {
962
1000
  ) : /* @__PURE__ */ jsx8(Text8, { children: display || /* @__PURE__ */ jsx8(Text8, { dimColor: true, children: "(empty)" }) })
963
1001
  ] }, field);
964
1002
  }) }),
965
- notice && /* @__PURE__ */ jsxs7(Fragment, { children: [
1003
+ notice && /* @__PURE__ */ jsxs7(Fragment2, { children: [
966
1004
  /* @__PURE__ */ jsx8(Text8, { children: " " }),
967
1005
  /* @__PURE__ */ jsxs7(Text8, { color: notice.kind === "success" ? PALETTE.success : PALETTE.error, children: [
968
1006
  notice.kind === "success" ? "\u2713" : "\u2717",
@@ -992,7 +1030,7 @@ function ConfigurationScreen({ onDone }) {
992
1030
  }
993
1031
 
994
1032
  // packages/experience-design-system-cli/src/tui/settings/opt-in-analytics/screen.tsx
995
- import { useEffect as useEffect5, useState as useState7 } from "react";
1033
+ import { useEffect as useEffect5, useState as useState8 } from "react";
996
1034
  import { Box as Box8, Text as Text9, useInput as useInput8 } from "ink";
997
1035
 
998
1036
  // packages/experience-design-system-cli/src/tui/settings/opt-in-analytics/analytics-store.ts
@@ -1011,10 +1049,10 @@ async function writeAnalyticsSetting(setting) {
1011
1049
  }
1012
1050
 
1013
1051
  // packages/experience-design-system-cli/src/tui/settings/opt-in-analytics/screen.tsx
1014
- import { Fragment as Fragment2, jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
1052
+ import { Fragment as Fragment3, jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
1015
1053
  function OptInAnalyticsScreen({ onDone }) {
1016
- const [loading, setLoading] = useState7(true);
1017
- const [enabled, setEnabled] = useState7(true);
1054
+ const [loading, setLoading] = useState8(true);
1055
+ const [enabled, setEnabled] = useState8(true);
1018
1056
  useEffect5(() => {
1019
1057
  readAnalyticsSetting().then((setting) => {
1020
1058
  setEnabled(setting.enabled);
@@ -1045,7 +1083,7 @@ function OptInAnalyticsScreen({ onDone }) {
1045
1083
  return /* @__PURE__ */ jsxs8(Box8, { flexDirection: "column", paddingX: 2, paddingY: 1, children: [
1046
1084
  /* @__PURE__ */ jsx9(Text9, { bold: true, children: "Settings \u203A Opt-in Analytics" }),
1047
1085
  /* @__PURE__ */ jsx9(Text9, { children: " " }),
1048
- loading ? /* @__PURE__ */ jsx9(Text9, { color: PALETTE.muted, children: "Loading\u2026" }) : /* @__PURE__ */ jsxs8(Fragment2, { children: [
1086
+ loading ? /* @__PURE__ */ jsx9(Text9, { color: PALETTE.muted, children: "Loading\u2026" }) : /* @__PURE__ */ jsxs8(Fragment3, { children: [
1049
1087
  /* @__PURE__ */ jsxs8(Text9, { children: [
1050
1088
  "Share anonymous usage data:",
1051
1089
  " ",
@@ -1069,12 +1107,12 @@ function OptInAnalyticsScreen({ onDone }) {
1069
1107
  }
1070
1108
 
1071
1109
  // packages/experience-design-system-cli/src/tui/upgrade/PageContainer.tsx
1072
- import { useEffect as useEffect6, useState as useState8 } from "react";
1110
+ import { useEffect as useEffect6, useState as useState9 } from "react";
1073
1111
  import { Box as Box9, Text as Text10, useInput as useInput9 } from "ink";
1074
1112
  import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
1075
1113
  var UPGRADE_COMMANDS = ["git pull", "pnpm install", "pnpm build"];
1076
1114
  function UpgradeScreen({ onDone }) {
1077
- const [upgradeCheck, setUpgradeCheck] = useState8();
1115
+ const [upgradeCheck, setUpgradeCheck] = useState9();
1078
1116
  useEffect6(() => {
1079
1117
  startDebugRun({
1080
1118
  flow: "upgrade",
@@ -1140,12 +1178,12 @@ function renderBody(upgradeCheck) {
1140
1178
  }
1141
1179
 
1142
1180
  // packages/experience-design-system-cli/src/tui/settings/debug-mode/screen.tsx
1143
- import { useEffect as useEffect7, useState as useState9 } from "react";
1181
+ import { useEffect as useEffect7, useState as useState10 } from "react";
1144
1182
  import { Box as Box10, Text as Text11, useInput as useInput10 } from "ink";
1145
1183
  import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
1146
1184
  function DebugModeScreen({ onDone }) {
1147
- const [loading, setLoading] = useState9(true);
1148
- const [enabled, setEnabled] = useState9(true);
1185
+ const [loading, setLoading] = useState10(true);
1186
+ const [enabled, setEnabled] = useState10(true);
1149
1187
  useEffect7(() => {
1150
1188
  readDebugModeSetting().then((setting) => {
1151
1189
  setEnabled(setting.enabled);
@@ -1195,13 +1233,13 @@ function DebugModeScreen({ onDone }) {
1195
1233
  }
1196
1234
 
1197
1235
  // packages/experience-design-system-cli/app.tsx
1198
- import { Fragment as Fragment3, jsx as jsx12 } from "react/jsx-runtime";
1236
+ import { Fragment as Fragment4, jsx as jsx12 } from "react/jsx-runtime";
1199
1237
  function App({ onLaunchImport, importExitCode }) {
1200
1238
  const returnedFromImport = importExitCode !== void 0;
1201
- const [screen, setScreen] = useState10(returnedFromImport ? "import" : "start");
1202
- const [showImportResult, setShowImportResult] = useState10(returnedFromImport);
1203
- const [projectPath, setProjectPath] = useState10();
1204
- const [importDefaults, setImportDefaults] = useState10();
1239
+ const [screen, setScreen] = useState11(returnedFromImport ? "import" : "start");
1240
+ const [showImportResult, setShowImportResult] = useState11(returnedFromImport);
1241
+ const [projectPath, setProjectPath] = useState11();
1242
+ const [importDefaults, setImportDefaults] = useState11();
1205
1243
  useEffect8(() => {
1206
1244
  if (screen !== "import") {
1207
1245
  setImportDefaults(void 0);
@@ -1225,7 +1263,7 @@ function App({ onLaunchImport, importExitCode }) {
1225
1263
  switch (screen) {
1226
1264
  case "import":
1227
1265
  if (showImportResult) return /* @__PURE__ */ jsx12(ImportScreen, { exitCode: importExitCode, onDone: finishImportResult });
1228
- if (importDefaults === void 0) return /* @__PURE__ */ jsx12(Fragment3, {});
1266
+ if (importDefaults === void 0) return /* @__PURE__ */ jsx12(Fragment4, {});
1229
1267
  if (projectPath === void 0) {
1230
1268
  return /* @__PURE__ */ jsx12(WelcomeScreen, { onContinue: setProjectPath, onQuit: leaveImport, initialPath: importDefaults.componentDir });
1231
1269
  }
package/dist/index.js CHANGED
@@ -707,6 +707,9 @@ function generateSessionId() {
707
707
  function sessionDebugDir() {
708
708
  return join5(debugSessionsDir(), SESSION_ID);
709
709
  }
710
+ function currentDebugSessionDir() {
711
+ return sessionDebugDir();
712
+ }
710
713
  async function isDebugModeEnabled() {
711
714
  try {
712
715
  return (await readDebugModeSetting()).enabled;
@@ -824,13 +827,55 @@ var init_debug_store = __esm({
824
827
  }
825
828
  });
826
829
 
830
+ // packages/experience-design-system-cli/src/tui/help/help-info.ts
831
+ async function readHelpInfo() {
832
+ const debugMode = await readDebugModeSetting();
833
+ return {
834
+ storage: [
835
+ { label: "Config folder", value: configRoot() },
836
+ { label: "Settings file", value: configFilePath() },
837
+ { label: "Debug logs", value: debugSessionsDir() }
838
+ ],
839
+ troubleshooting: [
840
+ { label: "CLI version", value: readPackageVersion() },
841
+ { label: "Node", value: process.version },
842
+ { label: "Platform", value: `${process.platform} ${process.arch}` },
843
+ { label: "Debug Mode", value: debugMode.enabled ? "on" : "off" },
844
+ {
845
+ label: "This session",
846
+ value: debugMode.enabled ? currentDebugSessionDir() : "no logs written while Debug Mode is off"
847
+ }
848
+ ]
849
+ };
850
+ }
851
+ var init_help_info = __esm({
852
+ "packages/experience-design-system-cli/src/tui/help/help-info.ts"() {
853
+ "use strict";
854
+ init_config();
855
+ init_debug_store();
856
+ init_debug_mode_store();
857
+ init_version();
858
+ }
859
+ });
860
+
827
861
  // packages/experience-design-system-cli/src/tui/help/PageContainer.tsx
828
- import { useEffect as useEffect3 } from "react";
862
+ import { useEffect as useEffect3, useState as useState5 } from "react";
829
863
  import { Box as Box5, Text as Text6, useInput as useInput5 } from "ink";
830
- import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
864
+ import { Fragment, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
865
+ function Section({ title, rows }) {
866
+ return /* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", children: [
867
+ /* @__PURE__ */ jsx6(Text6, { bold: true, color: PALETTE.accent, children: title }),
868
+ rows.map((row) => /* @__PURE__ */ jsxs5(Box5, { gap: 1, children: [
869
+ /* @__PURE__ */ jsx6(Box5, { width: 14, flexShrink: 0, children: /* @__PURE__ */ jsx6(Text6, { dimColor: true, children: row.label }) }),
870
+ /* @__PURE__ */ jsx6(Text6, { children: row.value })
871
+ ] }, row.label))
872
+ ] });
873
+ }
831
874
  function HelpScreen({ onDone }) {
875
+ const [info, setInfo] = useState5();
832
876
  useEffect3(() => {
833
877
  startDebugRun({ flow: "help", step: "01-help", menuOption: "Help", inputs: {} });
878
+ void readHelpInfo().then(setInfo);
834
879
  }, []);
835
880
  const leave = (exitMethod) => {
836
881
  void finishDebugRun({ outputs: {}, status: "success", exitMethod });
@@ -846,17 +891,19 @@ function HelpScreen({ onDone }) {
846
891
  return;
847
892
  }
848
893
  });
849
- return /* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", paddingX: 2, paddingY: 1, children: [
894
+ return /* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", paddingX: 2, paddingY: 1, gap: 1, children: [
850
895
  /* @__PURE__ */ jsx6(Text6, { bold: true, children: "Help" }),
851
- /* @__PURE__ */ jsx6(Text6, { children: " " }),
852
- /* @__PURE__ */ jsx6(Text6, { children: "This is a placeholder screen for v2 help content." }),
853
- /* @__PURE__ */ jsx6(Text6, { children: " " }),
896
+ info ? /* @__PURE__ */ jsxs5(Fragment, { children: [
897
+ /* @__PURE__ */ jsx6(Section, { title: "Where things are stored", rows: info.storage }),
898
+ /* @__PURE__ */ jsx6(Section, { title: "Troubleshooting", rows: info.troubleshooting }),
899
+ /* @__PURE__ */ jsx6(Text6, { dimColor: true, children: "Hit a problem? Turn on Debug Mode in Settings, reproduce it, then share the session folder above. The CMA token is redacted from those logs." })
900
+ ] }) : /* @__PURE__ */ jsx6(Text6, { color: PALETTE.accent, children: "Loading..." }),
854
901
  /* @__PURE__ */ jsx6(
855
902
  ControlHints,
856
903
  {
857
904
  hints: [
858
905
  { keys: "\u23CE", label: "done" },
859
- { keys: "Esc/q", label: "back to start" }
906
+ { keys: "Esc/q", label: "back" }
860
907
  ]
861
908
  }
862
909
  )
@@ -865,20 +912,22 @@ function HelpScreen({ onDone }) {
865
912
  var init_PageContainer2 = __esm({
866
913
  "packages/experience-design-system-cli/src/tui/help/PageContainer.tsx"() {
867
914
  "use strict";
915
+ init_home_theme();
868
916
  init_debug_store();
869
917
  init_control_hints();
918
+ init_help_info();
870
919
  }
871
920
  });
872
921
 
873
922
  // packages/experience-design-system-cli/src/tui/settings/PageContainer.tsx
874
- import { useState as useState5 } from "react";
923
+ import { useState as useState6 } from "react";
875
924
  import { Box as Box6, Text as Text7, useInput as useInput6 } from "ink";
876
925
  import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
877
926
  function SettingsScreen({
878
927
  onNavigate,
879
928
  onBack
880
929
  }) {
881
- const [focusIdx, setFocusIdx] = useState5(0);
930
+ const [focusIdx, setFocusIdx] = useState6(0);
882
931
  const items = [
883
932
  { label: "Configuration", screen: "settings-configuration" },
884
933
  { label: "Opt-in Analytics", screen: "settings-opt-in-analytics" },
@@ -973,10 +1022,10 @@ var init_config_store = __esm({
973
1022
  });
974
1023
 
975
1024
  // packages/experience-design-system-cli/src/tui/settings/contentful-configuration/ContentfulConfigScreen.tsx
976
- import { useEffect as useEffect4, useState as useState6 } from "react";
1025
+ import { useEffect as useEffect4, useState as useState7 } from "react";
977
1026
  import { Box as Box7, Text as Text8, useInput as useInput7 } from "ink";
978
1027
  import TextInput3 from "ink-text-input";
979
- import { Fragment, jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
1028
+ import { Fragment as Fragment2, jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
980
1029
  function debugFields(config) {
981
1030
  return {
982
1031
  space_id: config?.spaceId ?? "",
@@ -988,13 +1037,13 @@ function debugFields(config) {
988
1037
  };
989
1038
  }
990
1039
  function ConfigurationScreen({ onDone }) {
991
- const [stage, setStage] = useState6("loading");
992
- const [config, setConfig] = useState6(null);
993
- const [activeField, setActiveField] = useState6("spaceId");
994
- const [notice, setNotice] = useState6(null);
995
- const [lastSaved, setLastSaved] = useState6(null);
996
- const [editing, setEditing] = useState6(false);
997
- const [valueBeforeEdit, setValueBeforeEdit] = useState6("");
1040
+ const [stage, setStage] = useState7("loading");
1041
+ const [config, setConfig] = useState7(null);
1042
+ const [activeField, setActiveField] = useState7("spaceId");
1043
+ const [notice, setNotice] = useState7(null);
1044
+ const [lastSaved, setLastSaved] = useState7(null);
1045
+ const [editing, setEditing] = useState7(false);
1046
+ const [valueBeforeEdit, setValueBeforeEdit] = useState7("");
998
1047
  useEffect4(() => {
999
1048
  readCredentials().then((cfg) => {
1000
1049
  setConfig(cfg);
@@ -1102,7 +1151,7 @@ function ConfigurationScreen({ onDone }) {
1102
1151
  ) : /* @__PURE__ */ jsx8(Text8, { children: display || /* @__PURE__ */ jsx8(Text8, { dimColor: true, children: "(empty)" }) })
1103
1152
  ] }, field);
1104
1153
  }) }),
1105
- notice && /* @__PURE__ */ jsxs7(Fragment, { children: [
1154
+ notice && /* @__PURE__ */ jsxs7(Fragment2, { children: [
1106
1155
  /* @__PURE__ */ jsx8(Text8, { children: " " }),
1107
1156
  /* @__PURE__ */ jsxs7(Text8, { color: notice.kind === "success" ? PALETTE.success : PALETTE.error, children: [
1108
1157
  notice.kind === "success" ? "\u2713" : "\u2717",
@@ -1179,12 +1228,12 @@ var init_analytics_store = __esm({
1179
1228
  });
1180
1229
 
1181
1230
  // packages/experience-design-system-cli/src/tui/settings/opt-in-analytics/screen.tsx
1182
- import { useEffect as useEffect5, useState as useState7 } from "react";
1231
+ import { useEffect as useEffect5, useState as useState8 } from "react";
1183
1232
  import { Box as Box8, Text as Text9, useInput as useInput8 } from "ink";
1184
- import { Fragment as Fragment2, jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
1233
+ import { Fragment as Fragment3, jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
1185
1234
  function OptInAnalyticsScreen({ onDone }) {
1186
- const [loading, setLoading] = useState7(true);
1187
- const [enabled, setEnabled] = useState7(true);
1235
+ const [loading, setLoading] = useState8(true);
1236
+ const [enabled, setEnabled] = useState8(true);
1188
1237
  useEffect5(() => {
1189
1238
  readAnalyticsSetting().then((setting) => {
1190
1239
  setEnabled(setting.enabled);
@@ -1215,7 +1264,7 @@ function OptInAnalyticsScreen({ onDone }) {
1215
1264
  return /* @__PURE__ */ jsxs8(Box8, { flexDirection: "column", paddingX: 2, paddingY: 1, children: [
1216
1265
  /* @__PURE__ */ jsx9(Text9, { bold: true, children: "Settings \u203A Opt-in Analytics" }),
1217
1266
  /* @__PURE__ */ jsx9(Text9, { children: " " }),
1218
- loading ? /* @__PURE__ */ jsx9(Text9, { color: PALETTE.muted, children: "Loading\u2026" }) : /* @__PURE__ */ jsxs8(Fragment2, { children: [
1267
+ loading ? /* @__PURE__ */ jsx9(Text9, { color: PALETTE.muted, children: "Loading\u2026" }) : /* @__PURE__ */ jsxs8(Fragment3, { children: [
1219
1268
  /* @__PURE__ */ jsxs8(Text9, { children: [
1220
1269
  "Share anonymous usage data:",
1221
1270
  " ",
@@ -1248,11 +1297,11 @@ var init_screen3 = __esm({
1248
1297
  });
1249
1298
 
1250
1299
  // packages/experience-design-system-cli/src/tui/upgrade/PageContainer.tsx
1251
- import { useEffect as useEffect6, useState as useState8 } from "react";
1300
+ import { useEffect as useEffect6, useState as useState9 } from "react";
1252
1301
  import { Box as Box9, Text as Text10, useInput as useInput9 } from "ink";
1253
1302
  import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
1254
1303
  function UpgradeScreen({ onDone }) {
1255
- const [upgradeCheck, setUpgradeCheck] = useState8();
1304
+ const [upgradeCheck, setUpgradeCheck] = useState9();
1256
1305
  useEffect6(() => {
1257
1306
  startDebugRun({
1258
1307
  flow: "upgrade",
@@ -1328,12 +1377,12 @@ var init_PageContainer4 = __esm({
1328
1377
  });
1329
1378
 
1330
1379
  // packages/experience-design-system-cli/src/tui/settings/debug-mode/screen.tsx
1331
- import { useEffect as useEffect7, useState as useState9 } from "react";
1380
+ import { useEffect as useEffect7, useState as useState10 } from "react";
1332
1381
  import { Box as Box10, Text as Text11, useInput as useInput10 } from "ink";
1333
1382
  import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
1334
1383
  function DebugModeScreen({ onDone }) {
1335
- const [loading, setLoading] = useState9(true);
1336
- const [enabled, setEnabled] = useState9(true);
1384
+ const [loading, setLoading] = useState10(true);
1385
+ const [enabled, setEnabled] = useState10(true);
1337
1386
  useEffect7(() => {
1338
1387
  readDebugModeSetting().then((setting) => {
1339
1388
  setEnabled(setting.enabled);
@@ -1396,14 +1445,14 @@ var app_exports = {};
1396
1445
  __export(app_exports, {
1397
1446
  runApp: () => runApp
1398
1447
  });
1399
- import { useEffect as useEffect8, useState as useState10 } from "react";
1400
- import { Fragment as Fragment3, jsx as jsx12 } from "react/jsx-runtime";
1448
+ import { useEffect as useEffect8, useState as useState11 } from "react";
1449
+ import { Fragment as Fragment4, jsx as jsx12 } from "react/jsx-runtime";
1401
1450
  function App({ onLaunchImport, importExitCode }) {
1402
1451
  const returnedFromImport = importExitCode !== void 0;
1403
- const [screen, setScreen] = useState10(returnedFromImport ? "import" : "start");
1404
- const [showImportResult, setShowImportResult] = useState10(returnedFromImport);
1405
- const [projectPath, setProjectPath] = useState10();
1406
- const [importDefaults, setImportDefaults] = useState10();
1452
+ const [screen, setScreen] = useState11(returnedFromImport ? "import" : "start");
1453
+ const [showImportResult, setShowImportResult] = useState11(returnedFromImport);
1454
+ const [projectPath, setProjectPath] = useState11();
1455
+ const [importDefaults, setImportDefaults] = useState11();
1407
1456
  useEffect8(() => {
1408
1457
  if (screen !== "import") {
1409
1458
  setImportDefaults(void 0);
@@ -1427,7 +1476,7 @@ function App({ onLaunchImport, importExitCode }) {
1427
1476
  switch (screen) {
1428
1477
  case "import":
1429
1478
  if (showImportResult) return /* @__PURE__ */ jsx12(ImportScreen, { exitCode: importExitCode, onDone: finishImportResult });
1430
- if (importDefaults === void 0) return /* @__PURE__ */ jsx12(Fragment3, {});
1479
+ if (importDefaults === void 0) return /* @__PURE__ */ jsx12(Fragment4, {});
1431
1480
  if (projectPath === void 0) {
1432
1481
  return /* @__PURE__ */ jsx12(WelcomeScreen, { onContinue: setProjectPath, onQuit: leaveImport, initialPath: importDefaults.componentDir });
1433
1482
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.36.2-dev-build-4bcc1e36.0",
3
+ "version": "2.36.2-dev-build-7907fec3.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,5 +1,6 @@
1
1
  type Status = 'success' | 'error';
2
2
  type ExitMethod = 'saved' | 'discarded' | 'crashed';
3
+ export declare function currentDebugSessionDir(): string;
3
4
  export declare function startDebugRun({ flow, step, menuOption, inputs, }: {
4
5
  flow: string;
5
6
  step: string;
@@ -0,0 +1,9 @@
1
+ export interface HelpRow {
2
+ label: string;
3
+ value: string;
4
+ }
5
+ export interface HelpInfo {
6
+ storage: HelpRow[];
7
+ troubleshooting: HelpRow[];
8
+ }
9
+ export declare function readHelpInfo(): Promise<HelpInfo>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.36.2-dev-build-4bcc1e36.0",
3
+ "version": "2.36.2-dev-build-7907fec3.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.36.2-dev-build-4bcc1e36.0",
3
+ "version": "2.36.2-dev-build-7907fec3.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -42,7 +42,7 @@
42
42
  "svelte": "^5.56.4",
43
43
  "ts-morph": "^27.0.2",
44
44
  "typescript": "^5.9.3",
45
- "@contentful/experience-design-system-types": "2.36.2-dev-build-4bcc1e36.0"
45
+ "@contentful/experience-design-system-types": "2.36.2-dev-build-7907fec3.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@tsconfig/node24": "^24.0.4",