@contentful/experience-design-system-cli 2.36.2-dev-build-d9a75f6e.0 → 2.36.2-dev-build-81b9ff09.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
@@ -338,7 +338,7 @@ function toTokenPath(value) {
338
338
 
339
339
  // packages/experience-design-system-cli/src/tui/import/steps/02-token-input/controls.ts
340
340
  var TOKEN_INPUT_CONTROLS = [
341
- { keys: "Enter", label: "Continue" },
341
+ { keys: "Enter", label: "Continue (skips if empty)" },
342
342
  { keys: "Esc", label: "Back" }
343
343
  ];
344
344
  function useTokenInputControls(onBack) {
@@ -381,7 +381,12 @@ function validateTokenPath(rawPath) {
381
381
 
382
382
  // packages/experience-design-system-cli/src/tui/import/steps/02-token-input/screen.tsx
383
383
  import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
384
- function TokenInputScreen({ onConfirm, onBack, initialPath = "" }) {
384
+ function TokenInputScreen({
385
+ onConfirm,
386
+ onSkip,
387
+ onBack,
388
+ initialPath = ""
389
+ }) {
385
390
  const [tokenPath, setTokenPath] = useState4(initialPath);
386
391
  const [failure, setFailure] = useState4(null);
387
392
  useTokenInputControls(onBack);
@@ -392,7 +397,7 @@ function TokenInputScreen({ onConfirm, onBack, initialPath = "" }) {
392
397
  const submit = (value) => {
393
398
  const rawPath = toTokenPath(value);
394
399
  if (!rawPath) {
395
- setFailure({ error: "Enter the path to your token file." });
400
+ onSkip();
396
401
  return;
397
402
  }
398
403
  const check = validateTokenPath(rawPath);
@@ -413,7 +418,7 @@ function TokenInputScreen({ onConfirm, onBack, initialPath = "" }) {
413
418
  "\u2717 ",
414
419
  failure.error
415
420
  ] }),
416
- failure.resolvedPath && /* @__PURE__ */ jsxs4(Text5, { dimColor: true, children: [
421
+ /* @__PURE__ */ jsxs4(Text5, { dimColor: true, children: [
417
422
  " Resolved to: ",
418
423
  failure.resolvedPath
419
424
  ] })
@@ -1258,6 +1263,7 @@ function App({ onLaunchImport, importExitCode }) {
1258
1263
  {
1259
1264
  initialPath: importDefaults.tokenFile,
1260
1265
  onConfirm: (tokens) => onLaunchImport?.({ project: projectPath, tokens }),
1266
+ onSkip: () => onLaunchImport?.({ project: projectPath }),
1261
1267
  onBack: () => setProjectPath(void 0)
1262
1268
  }
1263
1269
  );
package/dist/index.js CHANGED
@@ -437,7 +437,7 @@ var init_controls2 = __esm({
437
437
  "use strict";
438
438
  init_logic2();
439
439
  TOKEN_INPUT_CONTROLS = [
440
- { keys: "Enter", label: "Continue" },
440
+ { keys: "Enter", label: "Continue (skips if empty)" },
441
441
  { keys: "Esc", label: "Back" }
442
442
  ];
443
443
  }
@@ -485,7 +485,12 @@ import { useState as useState4 } from "react";
485
485
  import { Box as Box4, Text as Text5 } from "ink";
486
486
  import TextInput2 from "ink-text-input";
487
487
  import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
488
- function TokenInputScreen({ onConfirm, onBack, initialPath = "" }) {
488
+ function TokenInputScreen({
489
+ onConfirm,
490
+ onSkip,
491
+ onBack,
492
+ initialPath = ""
493
+ }) {
489
494
  const [tokenPath, setTokenPath] = useState4(initialPath);
490
495
  const [failure, setFailure] = useState4(null);
491
496
  useTokenInputControls(onBack);
@@ -496,7 +501,7 @@ function TokenInputScreen({ onConfirm, onBack, initialPath = "" }) {
496
501
  const submit = (value) => {
497
502
  const rawPath = toTokenPath(value);
498
503
  if (!rawPath) {
499
- setFailure({ error: "Enter the path to your token file." });
504
+ onSkip();
500
505
  return;
501
506
  }
502
507
  const check = validateTokenPath(rawPath);
@@ -517,7 +522,7 @@ function TokenInputScreen({ onConfirm, onBack, initialPath = "" }) {
517
522
  "\u2717 ",
518
523
  failure.error
519
524
  ] }),
520
- failure.resolvedPath && /* @__PURE__ */ jsxs4(Text5, { dimColor: true, children: [
525
+ /* @__PURE__ */ jsxs4(Text5, { dimColor: true, children: [
521
526
  " Resolved to: ",
522
527
  failure.resolvedPath
523
528
  ] })
@@ -1471,6 +1476,7 @@ function App({ onLaunchImport, importExitCode }) {
1471
1476
  {
1472
1477
  initialPath: importDefaults.tokenFile,
1473
1478
  onConfirm: (tokens) => onLaunchImport?.({ project: projectPath, tokens }),
1479
+ onSkip: () => onLaunchImport?.({ project: projectPath }),
1474
1480
  onBack: () => setProjectPath(void 0)
1475
1481
  }
1476
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-d9a75f6e.0",
3
+ "version": "2.36.2-dev-build-81b9ff09.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  export declare const TOKEN_INPUT_CONTROLS: readonly [{
2
2
  readonly keys: "Enter";
3
- readonly label: "Continue";
3
+ readonly label: "Continue (skips if empty)";
4
4
  }, {
5
5
  readonly keys: "Esc";
6
6
  readonly label: "Back";
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
2
  interface TokenInputScreenProps {
3
3
  onConfirm: (tokensPath: string) => void;
4
+ onSkip: () => void;
4
5
  onBack: () => void;
5
6
  initialPath?: string;
6
7
  }
7
- export declare function TokenInputScreen({ onConfirm, onBack, initialPath }: TokenInputScreenProps): React.ReactElement;
8
+ export declare function TokenInputScreen({ onConfirm, onSkip, onBack, initialPath, }: TokenInputScreenProps): React.ReactElement;
8
9
  export {};
@@ -1,4 +1,4 @@
1
- interface TokenPathFailure {
1
+ export interface TokenPathFailure {
2
2
  error: string;
3
3
  resolvedPath: string;
4
4
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.36.2-dev-build-d9a75f6e.0",
3
+ "version": "2.36.2-dev-build-81b9ff09.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-d9a75f6e.0",
3
+ "version": "2.36.2-dev-build-81b9ff09.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-d9a75f6e.0"
45
+ "@contentful/experience-design-system-types": "2.36.2-dev-build-81b9ff09.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@tsconfig/node24": "^24.0.4",