@contentful/experience-design-system-cli 2.36.2-dev-build-8c3560a9.0 → 2.36.2-dev-build-dc6fb2aa.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 useState11 } from "react";
2
+ import { useEffect as useEffect8, useState as useState10 } 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";
@@ -493,7 +493,7 @@ function startReadingTerminal() {
493
493
  }
494
494
 
495
495
  // packages/experience-design-system-cli/src/tui/help/PageContainer.tsx
496
- import { useEffect as useEffect3, useState as useState5 } from "react";
496
+ import { useEffect as useEffect3 } from "react";
497
497
  import { Box as Box5, Text as Text5, useInput as useInput5 } from "ink";
498
498
 
499
499
  // packages/experience-design-system-cli/src/tui/debug-store.ts
@@ -571,9 +571,6 @@ var SESSION_ID = generateSessionId();
571
571
  function sessionDebugDir() {
572
572
  return join5(debugSessionsDir(), SESSION_ID);
573
573
  }
574
- function currentDebugSessionDir() {
575
- return sessionDebugDir();
576
- }
577
574
  void isDebugModeEnabled().then((enabled) => {
578
575
  if (!enabled) return void 0;
579
576
  return mkdir2(sessionDebugDir(), { recursive: true });
@@ -681,45 +678,11 @@ process.once("SIGINT", () => {
681
678
  });
682
679
  });
683
680
 
684
- // packages/experience-design-system-cli/src/tui/help/help-info.ts
685
- async function readHelpInfo() {
686
- const debugMode = await readDebugModeSetting();
687
- return {
688
- storage: [
689
- { label: "Config folder", value: configRoot() },
690
- { label: "Settings file", value: configFilePath() },
691
- { label: "Debug logs", value: debugSessionsDir() },
692
- { label: "Move it with", value: process.env["EDS_HOME"] ? "EDS_HOME (set)" : "EDS_HOME (not set)" }
693
- ],
694
- troubleshooting: [
695
- { label: "CLI version", value: readPackageVersion() },
696
- { label: "Node", value: process.version },
697
- { label: "Platform", value: `${process.platform} ${process.arch}` },
698
- { label: "Debug Mode", value: debugMode.enabled ? "on" : "off" },
699
- {
700
- label: "This session",
701
- value: debugMode.enabled ? currentDebugSessionDir() : "no logs written while Debug Mode is off"
702
- }
703
- ]
704
- };
705
- }
706
-
707
681
  // packages/experience-design-system-cli/src/tui/help/PageContainer.tsx
708
- import { Fragment, jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
709
- function Section({ title, rows }) {
710
- return /* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", children: [
711
- /* @__PURE__ */ jsx5(Text5, { bold: true, color: PALETTE.accent, children: title }),
712
- rows.map((row) => /* @__PURE__ */ jsxs5(Box5, { gap: 1, children: [
713
- /* @__PURE__ */ jsx5(Box5, { width: 14, flexShrink: 0, children: /* @__PURE__ */ jsx5(Text5, { dimColor: true, children: row.label }) }),
714
- /* @__PURE__ */ jsx5(Text5, { children: row.value })
715
- ] }, row.label))
716
- ] });
717
- }
682
+ import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
718
683
  function HelpScreen({ onDone }) {
719
- const [info, setInfo] = useState5();
720
684
  useEffect3(() => {
721
685
  startDebugRun({ flow: "help", step: "01-help", menuOption: "Help", inputs: {} });
722
- void readHelpInfo().then(setInfo);
723
686
  }, []);
724
687
  const leave = (exitMethod) => {
725
688
  void finishDebugRun({ outputs: {}, status: "success", exitMethod });
@@ -735,26 +698,24 @@ function HelpScreen({ onDone }) {
735
698
  return;
736
699
  }
737
700
  });
738
- return /* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", paddingX: 2, paddingY: 1, gap: 1, children: [
701
+ return /* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", paddingX: 2, paddingY: 1, children: [
739
702
  /* @__PURE__ */ jsx5(Text5, { bold: true, children: "Help" }),
740
- info ? /* @__PURE__ */ jsxs5(Fragment, { children: [
741
- /* @__PURE__ */ jsx5(Section, { title: "Where things are stored", rows: info.storage }),
742
- /* @__PURE__ */ jsx5(Section, { title: "Troubleshooting", rows: info.troubleshooting }),
743
- /* @__PURE__ */ jsx5(Text5, { 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." })
744
- ] }) : /* @__PURE__ */ jsx5(Text5, { color: PALETTE.accent, children: "Loading..." }),
703
+ /* @__PURE__ */ jsx5(Text5, { children: " " }),
704
+ /* @__PURE__ */ jsx5(Text5, { children: "This is a placeholder screen for v2 help content." }),
705
+ /* @__PURE__ */ jsx5(Text5, { children: " " }),
745
706
  /* @__PURE__ */ jsx5(Text5, { dimColor: true, children: "[Enter] Complete [Esc/q] Exit \u2014 both return to Start" })
746
707
  ] });
747
708
  }
748
709
 
749
710
  // packages/experience-design-system-cli/src/tui/settings/PageContainer.tsx
750
- import { useState as useState6 } from "react";
711
+ import { useState as useState5 } from "react";
751
712
  import { Box as Box6, Text as Text6, useInput as useInput6 } from "ink";
752
713
  import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
753
714
  function SettingsScreen({
754
715
  onNavigate,
755
716
  onBack
756
717
  }) {
757
- const [focusIdx, setFocusIdx] = useState6(0);
718
+ const [focusIdx, setFocusIdx] = useState5(0);
758
719
  const items = [
759
720
  { label: "Configuration", screen: "settings-configuration" },
760
721
  { label: "Opt-in Analytics", screen: "settings-opt-in-analytics" },
@@ -793,7 +754,7 @@ function SettingsScreen({
793
754
  }
794
755
 
795
756
  // packages/experience-design-system-cli/src/tui/settings/contentful-configuration/ContentfulConfigScreen.tsx
796
- import { useEffect as useEffect4, useState as useState7 } from "react";
757
+ import { useEffect as useEffect4, useState as useState6 } from "react";
797
758
  import { Box as Box7, Text as Text7, useInput as useInput7 } from "ink";
798
759
  import TextInput3 from "ink-text-input";
799
760
 
@@ -826,7 +787,7 @@ async function writeCredentials(config) {
826
787
  }
827
788
 
828
789
  // packages/experience-design-system-cli/src/tui/settings/contentful-configuration/ContentfulConfigScreen.tsx
829
- import { Fragment as Fragment2, jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
790
+ import { Fragment, jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
830
791
  var FIELD_ORDER = [
831
792
  "spaceId",
832
793
  "environmentId",
@@ -854,13 +815,13 @@ var FIELD_LABELS = {
854
815
  defaultTokenFile: "Default token file (optional)"
855
816
  };
856
817
  function ConfigurationScreen({ onDone }) {
857
- const [stage, setStage] = useState7("loading");
858
- const [config, setConfig] = useState7(null);
859
- const [activeField, setActiveField] = useState7("spaceId");
860
- const [notice, setNotice] = useState7(null);
861
- const [lastSaved, setLastSaved] = useState7(null);
862
- const [editing, setEditing] = useState7(false);
863
- const [valueBeforeEdit, setValueBeforeEdit] = useState7("");
818
+ const [stage, setStage] = useState6("loading");
819
+ const [config, setConfig] = useState6(null);
820
+ const [activeField, setActiveField] = useState6("spaceId");
821
+ const [notice, setNotice] = useState6(null);
822
+ const [lastSaved, setLastSaved] = useState6(null);
823
+ const [editing, setEditing] = useState6(false);
824
+ const [valueBeforeEdit, setValueBeforeEdit] = useState6("");
864
825
  useEffect4(() => {
865
826
  readCredentials().then((cfg) => {
866
827
  setConfig(cfg);
@@ -968,7 +929,7 @@ function ConfigurationScreen({ onDone }) {
968
929
  ) : /* @__PURE__ */ jsx7(Text7, { children: display || /* @__PURE__ */ jsx7(Text7, { dimColor: true, children: "(empty)" }) })
969
930
  ] }, field);
970
931
  }) }),
971
- notice && /* @__PURE__ */ jsxs7(Fragment2, { children: [
932
+ notice && /* @__PURE__ */ jsxs7(Fragment, { children: [
972
933
  /* @__PURE__ */ jsx7(Text7, { children: " " }),
973
934
  /* @__PURE__ */ jsxs7(Text7, { color: notice.kind === "success" ? PALETTE.success : PALETTE.error, children: [
974
935
  notice.kind === "success" ? "\u2713" : "\u2717",
@@ -982,7 +943,7 @@ function ConfigurationScreen({ onDone }) {
982
943
  }
983
944
 
984
945
  // packages/experience-design-system-cli/src/tui/settings/opt-in-analytics/screen.tsx
985
- import { useEffect as useEffect5, useState as useState8 } from "react";
946
+ import { useEffect as useEffect5, useState as useState7 } from "react";
986
947
  import { Box as Box8, Text as Text8, useInput as useInput8 } from "ink";
987
948
 
988
949
  // packages/experience-design-system-cli/src/tui/settings/opt-in-analytics/analytics-store.ts
@@ -1001,10 +962,10 @@ async function writeAnalyticsSetting(setting) {
1001
962
  }
1002
963
 
1003
964
  // packages/experience-design-system-cli/src/tui/settings/opt-in-analytics/screen.tsx
1004
- import { Fragment as Fragment3, jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
965
+ import { Fragment as Fragment2, jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
1005
966
  function OptInAnalyticsScreen({ onDone }) {
1006
- const [loading, setLoading] = useState8(true);
1007
- const [enabled, setEnabled] = useState8(true);
967
+ const [loading, setLoading] = useState7(true);
968
+ const [enabled, setEnabled] = useState7(true);
1008
969
  useEffect5(() => {
1009
970
  readAnalyticsSetting().then((setting) => {
1010
971
  setEnabled(setting.enabled);
@@ -1035,7 +996,7 @@ function OptInAnalyticsScreen({ onDone }) {
1035
996
  return /* @__PURE__ */ jsxs8(Box8, { flexDirection: "column", paddingX: 2, paddingY: 1, children: [
1036
997
  /* @__PURE__ */ jsx8(Text8, { bold: true, children: "Settings \u203A Opt-in Analytics" }),
1037
998
  /* @__PURE__ */ jsx8(Text8, { children: " " }),
1038
- loading ? /* @__PURE__ */ jsx8(Text8, { color: PALETTE.muted, children: "Loading\u2026" }) : /* @__PURE__ */ jsxs8(Fragment3, { children: [
999
+ loading ? /* @__PURE__ */ jsx8(Text8, { color: PALETTE.muted, children: "Loading\u2026" }) : /* @__PURE__ */ jsxs8(Fragment2, { children: [
1039
1000
  /* @__PURE__ */ jsxs8(Text8, { children: [
1040
1001
  "Share anonymous usage data:",
1041
1002
  " ",
@@ -1051,12 +1012,12 @@ function OptInAnalyticsScreen({ onDone }) {
1051
1012
  }
1052
1013
 
1053
1014
  // packages/experience-design-system-cli/src/tui/upgrade/PageContainer.tsx
1054
- import { useEffect as useEffect6, useState as useState9 } from "react";
1015
+ import { useEffect as useEffect6, useState as useState8 } from "react";
1055
1016
  import { Box as Box9, Text as Text9, useInput as useInput9 } from "ink";
1056
1017
  import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
1057
1018
  var UPGRADE_COMMANDS = ["git pull", "pnpm install", "pnpm build"];
1058
1019
  function UpgradeScreen({ onDone }) {
1059
- const [upgradeCheck, setUpgradeCheck] = useState9();
1020
+ const [upgradeCheck, setUpgradeCheck] = useState8();
1060
1021
  useEffect6(() => {
1061
1022
  startDebugRun({
1062
1023
  flow: "upgrade",
@@ -1122,12 +1083,12 @@ function renderBody(upgradeCheck) {
1122
1083
  }
1123
1084
 
1124
1085
  // packages/experience-design-system-cli/src/tui/settings/debug-mode/screen.tsx
1125
- import { useEffect as useEffect7, useState as useState10 } from "react";
1086
+ import { useEffect as useEffect7, useState as useState9 } from "react";
1126
1087
  import { Box as Box10, Text as Text10, useInput as useInput10 } from "ink";
1127
1088
  import { jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
1128
1089
  function DebugModeScreen({ onDone }) {
1129
- const [loading, setLoading] = useState10(true);
1130
- const [enabled, setEnabled] = useState10(true);
1090
+ const [loading, setLoading] = useState9(true);
1091
+ const [enabled, setEnabled] = useState9(true);
1131
1092
  useEffect7(() => {
1132
1093
  readDebugModeSetting().then((setting) => {
1133
1094
  setEnabled(setting.enabled);
@@ -1169,13 +1130,13 @@ function DebugModeScreen({ onDone }) {
1169
1130
  }
1170
1131
 
1171
1132
  // packages/experience-design-system-cli/app.tsx
1172
- import { Fragment as Fragment4, jsx as jsx11 } from "react/jsx-runtime";
1133
+ import { Fragment as Fragment3, jsx as jsx11 } from "react/jsx-runtime";
1173
1134
  function App({ onLaunchImport, importExitCode }) {
1174
1135
  const returnedFromImport = importExitCode !== void 0;
1175
- const [screen, setScreen] = useState11(returnedFromImport ? "import" : "start");
1176
- const [showImportResult, setShowImportResult] = useState11(returnedFromImport);
1177
- const [projectPath, setProjectPath] = useState11();
1178
- const [importDefaults, setImportDefaults] = useState11();
1136
+ const [screen, setScreen] = useState10(returnedFromImport ? "import" : "start");
1137
+ const [showImportResult, setShowImportResult] = useState10(returnedFromImport);
1138
+ const [projectPath, setProjectPath] = useState10();
1139
+ const [importDefaults, setImportDefaults] = useState10();
1179
1140
  useEffect8(() => {
1180
1141
  if (screen !== "import") {
1181
1142
  setImportDefaults(void 0);
@@ -1199,7 +1160,7 @@ function App({ onLaunchImport, importExitCode }) {
1199
1160
  switch (screen) {
1200
1161
  case "import":
1201
1162
  if (showImportResult) return /* @__PURE__ */ jsx11(ImportScreen, { exitCode: importExitCode, onDone: finishImportResult });
1202
- if (importDefaults === void 0) return /* @__PURE__ */ jsx11(Fragment4, {});
1163
+ if (importDefaults === void 0) return /* @__PURE__ */ jsx11(Fragment3, {});
1203
1164
  if (projectPath === void 0) {
1204
1165
  return /* @__PURE__ */ jsx11(WelcomeScreen, { onContinue: setProjectPath, onQuit: leaveImport, initialPath: importDefaults.componentDir });
1205
1166
  }
package/dist/index.js CHANGED
@@ -684,9 +684,6 @@ function generateSessionId() {
684
684
  function sessionDebugDir() {
685
685
  return join5(debugSessionsDir(), SESSION_ID);
686
686
  }
687
- function currentDebugSessionDir() {
688
- return sessionDebugDir();
689
- }
690
687
  async function isDebugModeEnabled() {
691
688
  try {
692
689
  return (await readDebugModeSetting()).enabled;
@@ -804,56 +801,13 @@ var init_debug_store = __esm({
804
801
  }
805
802
  });
806
803
 
807
- // packages/experience-design-system-cli/src/tui/help/help-info.ts
808
- async function readHelpInfo() {
809
- const debugMode = await readDebugModeSetting();
810
- return {
811
- storage: [
812
- { label: "Config folder", value: configRoot() },
813
- { label: "Settings file", value: configFilePath() },
814
- { label: "Debug logs", value: debugSessionsDir() },
815
- { label: "Move it with", value: process.env["EDS_HOME"] ? "EDS_HOME (set)" : "EDS_HOME (not set)" }
816
- ],
817
- troubleshooting: [
818
- { label: "CLI version", value: readPackageVersion() },
819
- { label: "Node", value: process.version },
820
- { label: "Platform", value: `${process.platform} ${process.arch}` },
821
- { label: "Debug Mode", value: debugMode.enabled ? "on" : "off" },
822
- {
823
- label: "This session",
824
- value: debugMode.enabled ? currentDebugSessionDir() : "no logs written while Debug Mode is off"
825
- }
826
- ]
827
- };
828
- }
829
- var init_help_info = __esm({
830
- "packages/experience-design-system-cli/src/tui/help/help-info.ts"() {
831
- "use strict";
832
- init_config();
833
- init_debug_store();
834
- init_debug_mode_store();
835
- init_version();
836
- }
837
- });
838
-
839
804
  // packages/experience-design-system-cli/src/tui/help/PageContainer.tsx
840
- import { useEffect as useEffect3, useState as useState5 } from "react";
805
+ import { useEffect as useEffect3 } from "react";
841
806
  import { Box as Box5, Text as Text5, useInput as useInput5 } from "ink";
842
- import { Fragment, jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
843
- function Section({ title, rows }) {
844
- return /* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", children: [
845
- /* @__PURE__ */ jsx5(Text5, { bold: true, color: PALETTE.accent, children: title }),
846
- rows.map((row) => /* @__PURE__ */ jsxs5(Box5, { gap: 1, children: [
847
- /* @__PURE__ */ jsx5(Box5, { width: 14, flexShrink: 0, children: /* @__PURE__ */ jsx5(Text5, { dimColor: true, children: row.label }) }),
848
- /* @__PURE__ */ jsx5(Text5, { children: row.value })
849
- ] }, row.label))
850
- ] });
851
- }
807
+ import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
852
808
  function HelpScreen({ onDone }) {
853
- const [info, setInfo] = useState5();
854
809
  useEffect3(() => {
855
810
  startDebugRun({ flow: "help", step: "01-help", menuOption: "Help", inputs: {} });
856
- void readHelpInfo().then(setInfo);
857
811
  }, []);
858
812
  const leave = (exitMethod) => {
859
813
  void finishDebugRun({ outputs: {}, status: "success", exitMethod });
@@ -869,34 +823,30 @@ function HelpScreen({ onDone }) {
869
823
  return;
870
824
  }
871
825
  });
872
- return /* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", paddingX: 2, paddingY: 1, gap: 1, children: [
826
+ return /* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", paddingX: 2, paddingY: 1, children: [
873
827
  /* @__PURE__ */ jsx5(Text5, { bold: true, children: "Help" }),
874
- info ? /* @__PURE__ */ jsxs5(Fragment, { children: [
875
- /* @__PURE__ */ jsx5(Section, { title: "Where things are stored", rows: info.storage }),
876
- /* @__PURE__ */ jsx5(Section, { title: "Troubleshooting", rows: info.troubleshooting }),
877
- /* @__PURE__ */ jsx5(Text5, { 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." })
878
- ] }) : /* @__PURE__ */ jsx5(Text5, { color: PALETTE.accent, children: "Loading..." }),
828
+ /* @__PURE__ */ jsx5(Text5, { children: " " }),
829
+ /* @__PURE__ */ jsx5(Text5, { children: "This is a placeholder screen for v2 help content." }),
830
+ /* @__PURE__ */ jsx5(Text5, { children: " " }),
879
831
  /* @__PURE__ */ jsx5(Text5, { dimColor: true, children: "[Enter] Complete [Esc/q] Exit \u2014 both return to Start" })
880
832
  ] });
881
833
  }
882
834
  var init_PageContainer2 = __esm({
883
835
  "packages/experience-design-system-cli/src/tui/help/PageContainer.tsx"() {
884
836
  "use strict";
885
- init_home_theme();
886
837
  init_debug_store();
887
- init_help_info();
888
838
  }
889
839
  });
890
840
 
891
841
  // packages/experience-design-system-cli/src/tui/settings/PageContainer.tsx
892
- import { useState as useState6 } from "react";
842
+ import { useState as useState5 } from "react";
893
843
  import { Box as Box6, Text as Text6, useInput as useInput6 } from "ink";
894
844
  import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
895
845
  function SettingsScreen({
896
846
  onNavigate,
897
847
  onBack
898
848
  }) {
899
- const [focusIdx, setFocusIdx] = useState6(0);
849
+ const [focusIdx, setFocusIdx] = useState5(0);
900
850
  const items = [
901
851
  { label: "Configuration", screen: "settings-configuration" },
902
852
  { label: "Opt-in Analytics", screen: "settings-opt-in-analytics" },
@@ -981,10 +931,10 @@ var init_config_store = __esm({
981
931
  });
982
932
 
983
933
  // packages/experience-design-system-cli/src/tui/settings/contentful-configuration/ContentfulConfigScreen.tsx
984
- import { useEffect as useEffect4, useState as useState7 } from "react";
934
+ import { useEffect as useEffect4, useState as useState6 } from "react";
985
935
  import { Box as Box7, Text as Text7, useInput as useInput7 } from "ink";
986
936
  import TextInput3 from "ink-text-input";
987
- import { Fragment as Fragment2, jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
937
+ import { Fragment, jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
988
938
  function debugFields(config) {
989
939
  return {
990
940
  space_id: config?.spaceId ?? "",
@@ -996,13 +946,13 @@ function debugFields(config) {
996
946
  };
997
947
  }
998
948
  function ConfigurationScreen({ onDone }) {
999
- const [stage, setStage] = useState7("loading");
1000
- const [config, setConfig] = useState7(null);
1001
- const [activeField, setActiveField] = useState7("spaceId");
1002
- const [notice, setNotice] = useState7(null);
1003
- const [lastSaved, setLastSaved] = useState7(null);
1004
- const [editing, setEditing] = useState7(false);
1005
- const [valueBeforeEdit, setValueBeforeEdit] = useState7("");
949
+ const [stage, setStage] = useState6("loading");
950
+ const [config, setConfig] = useState6(null);
951
+ const [activeField, setActiveField] = useState6("spaceId");
952
+ const [notice, setNotice] = useState6(null);
953
+ const [lastSaved, setLastSaved] = useState6(null);
954
+ const [editing, setEditing] = useState6(false);
955
+ const [valueBeforeEdit, setValueBeforeEdit] = useState6("");
1006
956
  useEffect4(() => {
1007
957
  readCredentials().then((cfg) => {
1008
958
  setConfig(cfg);
@@ -1110,7 +1060,7 @@ function ConfigurationScreen({ onDone }) {
1110
1060
  ) : /* @__PURE__ */ jsx7(Text7, { children: display || /* @__PURE__ */ jsx7(Text7, { dimColor: true, children: "(empty)" }) })
1111
1061
  ] }, field);
1112
1062
  }) }),
1113
- notice && /* @__PURE__ */ jsxs7(Fragment2, { children: [
1063
+ notice && /* @__PURE__ */ jsxs7(Fragment, { children: [
1114
1064
  /* @__PURE__ */ jsx7(Text7, { children: " " }),
1115
1065
  /* @__PURE__ */ jsxs7(Text7, { color: notice.kind === "success" ? PALETTE.success : PALETTE.error, children: [
1116
1066
  notice.kind === "success" ? "\u2713" : "\u2717",
@@ -1170,12 +1120,12 @@ var init_analytics_store = __esm({
1170
1120
  });
1171
1121
 
1172
1122
  // packages/experience-design-system-cli/src/tui/settings/opt-in-analytics/screen.tsx
1173
- import { useEffect as useEffect5, useState as useState8 } from "react";
1123
+ import { useEffect as useEffect5, useState as useState7 } from "react";
1174
1124
  import { Box as Box8, Text as Text8, useInput as useInput8 } from "ink";
1175
- import { Fragment as Fragment3, jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
1125
+ import { Fragment as Fragment2, jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
1176
1126
  function OptInAnalyticsScreen({ onDone }) {
1177
- const [loading, setLoading] = useState8(true);
1178
- const [enabled, setEnabled] = useState8(true);
1127
+ const [loading, setLoading] = useState7(true);
1128
+ const [enabled, setEnabled] = useState7(true);
1179
1129
  useEffect5(() => {
1180
1130
  readAnalyticsSetting().then((setting) => {
1181
1131
  setEnabled(setting.enabled);
@@ -1206,7 +1156,7 @@ function OptInAnalyticsScreen({ onDone }) {
1206
1156
  return /* @__PURE__ */ jsxs8(Box8, { flexDirection: "column", paddingX: 2, paddingY: 1, children: [
1207
1157
  /* @__PURE__ */ jsx8(Text8, { bold: true, children: "Settings \u203A Opt-in Analytics" }),
1208
1158
  /* @__PURE__ */ jsx8(Text8, { children: " " }),
1209
- loading ? /* @__PURE__ */ jsx8(Text8, { color: PALETTE.muted, children: "Loading\u2026" }) : /* @__PURE__ */ jsxs8(Fragment3, { children: [
1159
+ loading ? /* @__PURE__ */ jsx8(Text8, { color: PALETTE.muted, children: "Loading\u2026" }) : /* @__PURE__ */ jsxs8(Fragment2, { children: [
1210
1160
  /* @__PURE__ */ jsxs8(Text8, { children: [
1211
1161
  "Share anonymous usage data:",
1212
1162
  " ",
@@ -1230,11 +1180,11 @@ var init_screen3 = __esm({
1230
1180
  });
1231
1181
 
1232
1182
  // packages/experience-design-system-cli/src/tui/upgrade/PageContainer.tsx
1233
- import { useEffect as useEffect6, useState as useState9 } from "react";
1183
+ import { useEffect as useEffect6, useState as useState8 } from "react";
1234
1184
  import { Box as Box9, Text as Text9, useInput as useInput9 } from "ink";
1235
1185
  import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
1236
1186
  function UpgradeScreen({ onDone }) {
1237
- const [upgradeCheck, setUpgradeCheck] = useState9();
1187
+ const [upgradeCheck, setUpgradeCheck] = useState8();
1238
1188
  useEffect6(() => {
1239
1189
  startDebugRun({
1240
1190
  flow: "upgrade",
@@ -1310,12 +1260,12 @@ var init_PageContainer4 = __esm({
1310
1260
  });
1311
1261
 
1312
1262
  // packages/experience-design-system-cli/src/tui/settings/debug-mode/screen.tsx
1313
- import { useEffect as useEffect7, useState as useState10 } from "react";
1263
+ import { useEffect as useEffect7, useState as useState9 } from "react";
1314
1264
  import { Box as Box10, Text as Text10, useInput as useInput10 } from "ink";
1315
1265
  import { jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
1316
1266
  function DebugModeScreen({ onDone }) {
1317
- const [loading, setLoading] = useState10(true);
1318
- const [enabled, setEnabled] = useState10(true);
1267
+ const [loading, setLoading] = useState9(true);
1268
+ const [enabled, setEnabled] = useState9(true);
1319
1269
  useEffect7(() => {
1320
1270
  readDebugModeSetting().then((setting) => {
1321
1271
  setEnabled(setting.enabled);
@@ -1369,14 +1319,14 @@ var app_exports = {};
1369
1319
  __export(app_exports, {
1370
1320
  runApp: () => runApp
1371
1321
  });
1372
- import { useEffect as useEffect8, useState as useState11 } from "react";
1373
- import { Fragment as Fragment4, jsx as jsx11 } from "react/jsx-runtime";
1322
+ import { useEffect as useEffect8, useState as useState10 } from "react";
1323
+ import { Fragment as Fragment3, jsx as jsx11 } from "react/jsx-runtime";
1374
1324
  function App({ onLaunchImport, importExitCode }) {
1375
1325
  const returnedFromImport = importExitCode !== void 0;
1376
- const [screen, setScreen] = useState11(returnedFromImport ? "import" : "start");
1377
- const [showImportResult, setShowImportResult] = useState11(returnedFromImport);
1378
- const [projectPath, setProjectPath] = useState11();
1379
- const [importDefaults, setImportDefaults] = useState11();
1326
+ const [screen, setScreen] = useState10(returnedFromImport ? "import" : "start");
1327
+ const [showImportResult, setShowImportResult] = useState10(returnedFromImport);
1328
+ const [projectPath, setProjectPath] = useState10();
1329
+ const [importDefaults, setImportDefaults] = useState10();
1380
1330
  useEffect8(() => {
1381
1331
  if (screen !== "import") {
1382
1332
  setImportDefaults(void 0);
@@ -1400,7 +1350,7 @@ function App({ onLaunchImport, importExitCode }) {
1400
1350
  switch (screen) {
1401
1351
  case "import":
1402
1352
  if (showImportResult) return /* @__PURE__ */ jsx11(ImportScreen, { exitCode: importExitCode, onDone: finishImportResult });
1403
- if (importDefaults === void 0) return /* @__PURE__ */ jsx11(Fragment4, {});
1353
+ if (importDefaults === void 0) return /* @__PURE__ */ jsx11(Fragment3, {});
1404
1354
  if (projectPath === void 0) {
1405
1355
  return /* @__PURE__ */ jsx11(WelcomeScreen, { onContinue: setProjectPath, onQuit: leaveImport, initialPath: importDefaults.componentDir });
1406
1356
  }
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-8c3560a9.0",
3
+ "version": "2.36.2-dev-build-dc6fb2aa.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,6 +1,5 @@
1
1
  type Status = 'success' | 'error';
2
2
  type ExitMethod = 'saved' | 'discarded' | 'crashed';
3
- export declare function currentDebugSessionDir(): string;
4
3
  export declare function startDebugRun({ flow, step, menuOption, inputs, }: {
5
4
  flow: string;
6
5
  step: string;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.36.2-dev-build-8c3560a9.0",
3
+ "version": "2.36.2-dev-build-dc6fb2aa.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-8c3560a9.0",
3
+ "version": "2.36.2-dev-build-dc6fb2aa.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-8c3560a9.0"
45
+ "@contentful/experience-design-system-types": "2.36.2-dev-build-dc6fb2aa.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@tsconfig/node24": "^24.0.4",
@@ -1,9 +0,0 @@
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>;