@contentful/experience-design-system-cli 2.37.1-dev-build-eeb53912.0 → 2.37.1-dev-build-df3fca68.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.37.1-dev-build-eeb53912.0",
3
+ "version": "2.37.1-dev-build-df3fca68.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -15,8 +15,9 @@ interface PipelineResult {
15
15
  };
16
16
  }
17
17
  export interface SpawnV1ImportOptions {
18
- project?: string;
18
+ projectPath?: string;
19
19
  tokens?: string;
20
+ filePaths?: string[];
20
21
  skipCredentials?: boolean;
21
22
  onProgress?: (line: string) => void;
22
23
  }
@@ -0,0 +1,10 @@
1
+ import { collectFiles } from '@contentful/experience-design-system-backend-pipeline';
2
+ import type { FileCounts as LocalFileCounts, ScanResult } from '../logic.js';
3
+ type CollectedFilesOutcome = ReturnType<typeof collectFiles>;
4
+ type PipelineFileCounts = Extract<CollectedFilesOutcome, {
5
+ ok: true;
6
+ }>['result']['counts'];
7
+ export declare function scanFiles(directory: string): ScanResult;
8
+ export declare function toScanResult(outcome: CollectedFilesOutcome): ScanResult;
9
+ export declare function foldSvelteAndMdIntoOther(counts: PipelineFileCounts): LocalFileCounts;
10
+ export {};
@@ -6,6 +6,8 @@ export type ScanFailureCode = 'not-found' | 'permission-denied' | 'is-file' | 'n
6
6
  export type ScanResult = {
7
7
  ok: true;
8
8
  counts: FileCounts;
9
+ filePaths: string[];
10
+ warnings: string[];
9
11
  } | {
10
12
  ok: false;
11
13
  failure: ScanFailureCode;
@@ -30,7 +32,6 @@ interface Key {
30
32
  escape: boolean;
31
33
  return: boolean;
32
34
  }
33
- export declare const IGNORED_DIRECTORIES: Set<string>;
34
35
  export declare function emptyCounts(): FileCounts;
35
36
  export declare function addFile(counts: FileCounts, fileName: string): FileCounts;
36
37
  export declare function mergeCounts(a: FileCounts, b: FileCounts): FileCounts;
@@ -1,7 +1,10 @@
1
1
  import React from 'react';
2
2
  interface PathValidationScreenProps {
3
3
  projectPath: string;
4
- onConfirm: (projectPath: string) => void;
4
+ onConfirm: (result: {
5
+ projectPath: string;
6
+ filePaths: string[];
7
+ }) => void;
5
8
  onChangePath: () => void;
6
9
  onBack: () => void;
7
10
  }
@@ -1,6 +1,7 @@
1
1
  export declare const FIELDS: readonly ["spaceId", "environmentId", "cmaToken", "host"];
2
2
  export type CredentialField = (typeof FIELDS)[number];
3
3
  export type CredentialValues = Record<CredentialField, string>;
4
+ export declare const DEFAULT_HOST = "api.contentful.com";
4
5
  interface Key {
5
6
  escape: boolean;
6
7
  tab: boolean;
@@ -9,6 +10,8 @@ interface Key {
9
10
  export type KeyAction = 'back' | 'next-field' | 'skip' | null;
10
11
  export declare function keyAction(input: string, key: Key): KeyAction;
11
12
  export declare function nextField(field: CredentialField): CredentialField;
13
+ export declare function toConfiguredHost(host: string | undefined): string;
14
+ export declare function toApiHost(host: string): string;
12
15
  export declare function normalize(values: CredentialValues): CredentialValues;
13
16
  export declare function missingField(values: CredentialValues): boolean;
14
17
  export declare function isUnchanged(current: CredentialValues, initial: CredentialValues): boolean;
@@ -1,4 +1,4 @@
1
- import type { CredentialValues } from './logic.js';
1
+ import { type CredentialValues } from './logic.js';
2
2
  export type ValidationResult = {
3
3
  ok: true;
4
4
  } | {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.37.1-dev-build-eeb53912.0",
3
+ "version": "2.37.1-dev-build-df3fca68.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.37.1-dev-build-eeb53912.0",
3
+ "version": "2.37.1-dev-build-df3fca68.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -44,8 +44,8 @@
44
44
  "ts-morph": "^27.0.2",
45
45
  "typescript": "^5.9.3",
46
46
  "zod": "^4.6.5",
47
- "@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-eeb53912.0",
48
- "@contentful/experience-design-system-types": "2.37.1-dev-build-eeb53912.0"
47
+ "@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-df3fca68.0",
48
+ "@contentful/experience-design-system-types": "2.37.1-dev-build-df3fca68.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@tsconfig/node24": "^24.0.4",
@@ -1,2 +0,0 @@
1
- import { type ScanResult } from './logic.js';
2
- export declare function scanProject(directory: string): Promise<ScanResult>;