@contentful/experience-design-system-cli 2.40.1-dev-build-b9f92429.0 → 2.40.1-dev-build-35756f2e.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.40.1-dev-build-b9f92429.0",
3
+ "version": "2.40.1-dev-build-35756f2e.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,11 +1,8 @@
1
1
  import React from 'react';
2
- import type { ImportTarget } from '../00-preflight/logic.js';
3
2
  interface TokenInputScreenProps {
4
- /** What the user chose to import at Preflight; it decides which steps run, so every log notes it. */
5
- mode: ImportTarget;
6
3
  onConfirm: (tokensPath: string) => void;
7
4
  onBack: () => void;
8
5
  initialPath?: string;
9
6
  }
10
- export declare function TokenInputScreen({ mode, onConfirm, onBack, initialPath, }: TokenInputScreenProps): React.ReactElement;
7
+ export declare function TokenInputScreen({ onConfirm, onBack, initialPath }: TokenInputScreenProps): React.ReactElement;
11
8
  export {};
@@ -40,6 +40,14 @@ export declare function describeFailure(failure: ScanFailureCode, path: string):
40
40
  export declare function summarize(counts: FileCounts, { hasTokens }?: {
41
41
  hasTokens?: boolean;
42
42
  }): Summary;
43
+ /**
44
+ * What the debug log says about a scan: the counts and warnings when it worked, or the failure and the message the user
45
+ * saw when it did not. File paths are left out, since a project can have thousands; the counts are what show whether
46
+ * the scan found the components.
47
+ */
48
+ export declare function scanReport(scan: ScanResult | undefined, path: string, { hasTokens }?: {
49
+ hasTokens?: boolean;
50
+ }): Record<string, unknown>;
43
51
  export declare function phaseOf(scan: ScanResult | undefined): PathPhase;
44
52
  export declare function keyAction(phase: PathPhase, input: string, key: Key): KeyAction | undefined;
45
53
  export {};
@@ -1,5 +1,8 @@
1
1
  import React from 'react';
2
+ import type { ImportTarget } from '../00-preflight/logic.js';
2
3
  interface PathValidationScreenProps {
4
+ /** What the user chose to import at Preflight; it decides which steps run, so every log notes it. */
5
+ mode: ImportTarget;
3
6
  projectPath: string;
4
7
  onConfirm: (result: {
5
8
  projectPath: string;
@@ -10,5 +13,5 @@ interface PathValidationScreenProps {
10
13
  /** False when the import does not generate tokens, so `.json` files are not described as design tokens. */
11
14
  hasTokens?: boolean;
12
15
  }
13
- export declare function PathValidationScreen({ projectPath, onConfirm, onChangePath, onBack, hasTokens, }: PathValidationScreenProps): React.ReactElement;
16
+ export declare function PathValidationScreen({ mode, projectPath, onConfirm, onChangePath, onBack, hasTokens, }: PathValidationScreenProps): React.ReactElement;
14
17
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.40.1-dev-build-b9f92429.0",
3
+ "version": "2.40.1-dev-build-35756f2e.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -45,7 +45,7 @@
45
45
  "ts-morph": "^27.0.2",
46
46
  "typescript": "^5.9.3",
47
47
  "zod": "^4.6.5",
48
- "@contentful/experience-design-system-types": "2.40.1-dev-build-b9f92429.0"
48
+ "@contentful/experience-design-system-types": "2.40.1-dev-build-35756f2e.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@tsconfig/node24": "^24.0.4",
@@ -59,7 +59,7 @@
59
59
  "ink-testing-library": "^4.0.0",
60
60
  "typescript-eslint": "^8.67.0",
61
61
  "vitest": "^4.0.16",
62
- "@contentful/experience-design-system-backend-pipeline": "2.40.1-dev-build-b9f92429.0"
62
+ "@contentful/experience-design-system-backend-pipeline": "2.40.1-dev-build-35756f2e.0"
63
63
  },
64
64
  "repository": {
65
65
  "type": "git",