@contentful/experience-design-system-cli 2.35.1-dev-build-a963233a.0 → 2.35.1-dev-build-fa950e44.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.35.1-dev-build-a963233a.0",
3
+ "version": "2.35.1-dev-build-fa950e44.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -16,6 +16,7 @@ interface PipelineResult {
16
16
  }
17
17
  export interface SpawnV1ImportOptions {
18
18
  project?: string;
19
+ tokens?: string;
19
20
  onProgress?: (line: string) => void;
20
21
  }
21
22
  export interface SpawnV1ImportResult {
@@ -0,0 +1,11 @@
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;
@@ -0,0 +1,9 @@
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 {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface TokenInputScreenProps {
3
+ onConfirm: (tokensPath: string) => void;
4
+ onSkip: () => void;
5
+ onBack: () => void;
6
+ }
7
+ export declare function TokenInputScreen({ onConfirm, onSkip, onBack }: TokenInputScreenProps): React.ReactElement;
8
+ export {};
@@ -0,0 +1,12 @@
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 +1,2 @@
1
1
  export { WelcomeScreen } from './01-welcome/screen.js';
2
+ export { TokenInputScreen } from './02-token-input/screen.js';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.35.1-dev-build-a963233a.0",
3
+ "version": "2.35.1-dev-build-fa950e44.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.35.1-dev-build-a963233a.0",
3
+ "version": "2.35.1-dev-build-fa950e44.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.35.1-dev-build-a963233a.0"
45
+ "@contentful/experience-design-system-types": "2.35.1-dev-build-fa950e44.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@tsconfig/node24": "^24.0.4",