@contentful/experience-design-system-cli 2.36.2-dev-build-4bcc1e36.0 → 2.36.2-dev-build-a6f80ae6.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.
@@ -1,4 +1,3 @@
1
- import { runsFilePath } from '@contentful/experience-design-system-types/config';
2
1
  export declare const RUNS_FILE_VERSION: 3;
3
2
  /** Versions this CLI can read. v1 / v2 files are auto-migrated in memory;
4
3
  * new writes always use the latest version. */
@@ -51,7 +50,7 @@ export type RunsFile = {
51
50
  version: typeof RUNS_FILE_VERSION;
52
51
  runs: RunRecord[];
53
52
  };
54
- export { runsFilePath };
53
+ export declare function runsFilePath(): string;
55
54
  export type AppendInput = Omit<RunRecord, 'id' | 'createdAt'> & Partial<Pick<RunRecord, 'id' | 'createdAt'>>;
56
55
  export declare function appendRun(input: AppendInput): Promise<RunRecord>;
57
56
  export type ListOptions = {
@@ -63,3 +62,4 @@ export type ListOptions = {
63
62
  export declare function listRuns(opts?: ListOptions): Promise<RunRecord[]>;
64
63
  export declare function getRun(id: string): Promise<RunRecord>;
65
64
  export declare function updateRun(id: string, patch: Partial<Omit<RunRecord, 'id'>>): Promise<RunRecord>;
65
+ export {};
@@ -1,4 +1,5 @@
1
1
  export declare function useTimedSpinner(): {
2
- spinner: React.ReactElement;
2
+ spinner: string;
3
+ secondarySpinner: string;
3
4
  elapsed: string;
4
5
  };
@@ -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-a6f80ae6.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -44,7 +44,6 @@
44
44
  "contentful-management": "^12.17.0",
45
45
  "figures": "6.1.0",
46
46
  "ink": "^5.2.1",
47
- "ink-text-input": "^6.0.0",
48
47
  "react": "^18.3.1",
49
48
  "react-devtools-core": "^4.19.1",
50
49
  "semver": "^7.7.2",
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-a6f80ae6.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -35,14 +35,13 @@
35
35
  "contentful-management": "^12.17.0",
36
36
  "figures": "6.1.0",
37
37
  "ink": "^5.2.1",
38
- "ink-text-input": "^6.0.0",
39
38
  "react": "^18.3.1",
40
39
  "react-devtools-core": "^4.19.1",
41
40
  "semver": "^7.7.2",
42
41
  "svelte": "^5.56.4",
43
42
  "ts-morph": "^27.0.2",
44
43
  "typescript": "^5.9.3",
45
- "@contentful/experience-design-system-types": "2.36.2-dev-build-4bcc1e36.0"
44
+ "@contentful/experience-design-system-types": "2.36.2-dev-build-a6f80ae6.0"
46
45
  },
47
46
  "devDependencies": {
48
47
  "@tsconfig/node24": "^24.0.4",
@@ -1 +0,0 @@
1
- export declare function migrateOldConfig(): Promise<void>;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export declare function ControlHints({ hints }: {
3
- hints: readonly {
4
- keys: string;
5
- label: string;
6
- }[];
7
- }): React.ReactElement;
@@ -1,8 +0,0 @@
1
- export declare const WELCOME_CONTROLS: readonly [{
2
- readonly keys: "Enter";
3
- readonly label: "Continue";
4
- }, {
5
- readonly keys: "Esc/q";
6
- readonly label: "Back to menu";
7
- }];
8
- export declare function useWelcomeControls(projectPath: string, onQuit: () => void): void;
@@ -1,8 +0,0 @@
1
- interface QuitKey {
2
- escape: boolean;
3
- ctrl: boolean;
4
- meta: boolean;
5
- }
6
- export declare function shouldQuit(value: string, input: string, key: QuitKey): boolean;
7
- export declare function toProjectPath(value: string): string | null;
8
- export {};
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- interface WelcomeScreenProps {
3
- onContinue: (projectPath: string) => void;
4
- onQuit: () => void;
5
- initialPath?: string;
6
- }
7
- export declare function WelcomeScreen({ onContinue, onQuit, initialPath }: WelcomeScreenProps): React.ReactElement;
8
- export {};
@@ -1,11 +0,0 @@
1
- export declare const TOKEN_INPUT_CONTROLS: readonly [{
2
- readonly keys: "Enter";
3
- readonly label: "Continue (skips if empty)";
4
- }, {
5
- readonly keys: "s";
6
- readonly label: "Skip";
7
- }, {
8
- readonly keys: "Esc/q";
9
- readonly label: "Back";
10
- }];
11
- export declare function useTokenInputControls(tokenPath: string, onSkip: () => void, onBack: () => void): void;
@@ -1,9 +0,0 @@
1
- interface Key {
2
- escape: boolean;
3
- ctrl: boolean;
4
- meta: boolean;
5
- }
6
- export declare function shouldGoBack(value: string, input: string, key: Key): boolean;
7
- export declare function shouldSkip(value: string, input: string, key: Key): boolean;
8
- export declare function toTokenPath(value: string): string | null;
9
- export {};
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- interface TokenInputScreenProps {
3
- onConfirm: (tokensPath: string) => void;
4
- onSkip: () => void;
5
- onBack: () => void;
6
- initialPath?: string;
7
- }
8
- export declare function TokenInputScreen({ onConfirm, onSkip, onBack, initialPath, }: TokenInputScreenProps): React.ReactElement;
9
- export {};
@@ -1,12 +0,0 @@
1
- export interface TokenPathFailure {
2
- error: string;
3
- resolvedPath: string;
4
- }
5
- type TokenPathCheck = {
6
- ok: true;
7
- path: string;
8
- } | ({
9
- ok: false;
10
- } & TokenPathFailure);
11
- export declare function validateTokenPath(rawPath: string): TokenPathCheck;
12
- export {};
@@ -1,2 +0,0 @@
1
- export { WelcomeScreen } from './01-welcome/screen.js';
2
- export { TokenInputScreen } from './02-token-input/screen.js';