@contentful/experience-design-system-cli 2.37.1-dev-build-80337a9a.0 → 2.37.1-dev-build-2d576e63.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-80337a9a.0",
3
+ "version": "2.37.1-dev-build-2d576e63.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { type StepHeaderProps } from '@tui/shared/components/StepHeader.js';
2
3
  interface GateStepProps {
3
4
  message: string;
4
5
  onContinue: () => void;
@@ -9,6 +10,7 @@ interface GateStepProps {
9
10
  skipLabel?: string;
10
11
  onSkip?: () => void;
11
12
  intent?: 'success' | 'error';
13
+ step?: StepHeaderProps['step'];
12
14
  }
13
- export declare function GateStep({ message, onContinue, onQuit, summary, context, continueLabel, skipLabel, onSkip, intent, }: GateStepProps): React.ReactElement;
15
+ export declare function GateStep({ message, onContinue, onQuit, summary, context, continueLabel, skipLabel, onSkip, intent, step, }: GateStepProps): React.ReactElement;
14
16
  export {};
@@ -9,4 +9,3 @@ export interface RunningLine {
9
9
  }
10
10
  export declare function progressPercent(progress: Progress): number;
11
11
  export declare function formatElapsed(totalSeconds: number): string;
12
- export declare function stepLabel(stepNumber: number, totalSteps: number, title: string): string;
@@ -1,11 +1,10 @@
1
1
  import React from 'react';
2
2
  import { type RunningLine } from './logic.js';
3
+ import type { ImportStepId } from '@tui/shared/components/StepHeader.js';
3
4
  interface RunningStepProps {
4
- stepNumber: number;
5
- totalSteps: number;
6
- title: string;
5
+ step: ImportStepId;
7
6
  description: string;
8
7
  lines?: readonly RunningLine[];
9
8
  }
10
- export declare function RunningStep({ stepNumber, totalSteps, title, description, lines, }: RunningStepProps): React.ReactElement;
9
+ export declare function RunningStep({ step, description, lines, }: RunningStepProps): React.ReactElement;
11
10
  export {};
@@ -20,19 +20,6 @@ export declare function progressRows(progress: ExtractionProgress, agent: string
20
20
  }>;
21
21
  /** True when every job is already done, so the screen would only flash. The wizard shows nothing in this case. */
22
22
  export declare function isFullCacheHit(progress: ExtractionProgress): boolean;
23
- /**
24
- * The wizard's step counts: three fixed steps, one more when there is a token stage, two more when components are
25
- * imported, and one more when the tokens can be mapped (not known yet at this stage, so it adds nothing here).
26
- * Extraction is step 2 when there is a token stage, otherwise step 1.
27
- */
28
- export declare function stepNumbers(input: {
29
- hasRawTokens: boolean;
30
- skipComponents?: boolean;
31
- mapTokensEligible?: boolean | null;
32
- }): {
33
- stepNumber: number;
34
- totalSteps: number;
35
- };
36
23
  export declare function noComponentsMessage(projectPath: string): string;
37
24
  export declare function agentAuthMessage(agent: string, status: 'not-found' | 'unauthenticated'): string;
38
25
  /**
@@ -3,8 +3,6 @@ import type { ExtractionProgress } from './types.js';
3
3
  interface ExtractionScreenProps {
4
4
  progress: ExtractionProgress;
5
5
  agent: string;
6
- stepNumber: number;
7
- totalSteps: number;
8
6
  }
9
- export declare function ExtractionScreen({ progress, agent, stepNumber, totalSteps, }: ExtractionScreenProps): React.ReactElement;
7
+ export declare function ExtractionScreen({ progress, agent }: ExtractionScreenProps): React.ReactElement;
10
8
  export {};
@@ -25,6 +25,10 @@ export interface FixedPanelProps {
25
25
  export declare function FixedPanel({ width, height, minHeight, focused, borderStyle, borderColor, paddingLeft, clipOverflow, children, }: FixedPanelProps): ReactElement;
26
26
  /** Shared frame for panels whose viewport must not change with their contents. */
27
27
  export declare function WindowedPanel({ width, height, title, focused, children }: WindowedPanelProps): ReactElement;
28
+ export declare function WindowFooter({ above, below }: {
29
+ above: number;
30
+ below: number;
31
+ }): ReactElement;
28
32
  export declare function WindowIndicator({ direction, count }: {
29
33
  direction: WindowDirection;
30
34
  count: number;
@@ -5,8 +5,6 @@ interface GenerationScreenProps {
5
5
  agent: string;
6
6
  acceptedCount: number;
7
7
  hasTokens: boolean;
8
- stepNumber: number;
9
- totalSteps: number;
10
8
  }
11
- export declare function GenerationScreen({ progress, agent, acceptedCount, hasTokens, stepNumber, totalSteps, }: GenerationScreenProps): React.ReactElement;
9
+ export declare function GenerationScreen({ progress, agent, acceptedCount, hasTokens, }: GenerationScreenProps): React.ReactElement;
12
10
  export {};
@@ -1,9 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { PushProgress } from '../support/push-progress.js';
3
3
  type PushingStepProps = {
4
- stepNumber: number;
5
- totalSteps: number;
6
4
  progress: PushProgress;
7
5
  };
8
- export declare function PushingStep({ stepNumber, totalSteps, progress }: PushingStepProps): React.ReactElement;
6
+ export declare function PushingStep({ progress }: PushingStepProps): React.ReactElement;
9
7
  export {};
@@ -4,11 +4,9 @@ type WizardPreviewStepProps = {
4
4
  preview: ServerPreviewResponse;
5
5
  spaceId: string;
6
6
  environmentId: string;
7
- stepNumber: number;
8
- totalSteps: number;
9
7
  onConfirm: (acknowledge: boolean) => void;
10
8
  onEdit?: () => void;
11
9
  onQuit: () => void;
12
10
  };
13
- export declare function WizardPreviewStep({ preview, spaceId, environmentId, stepNumber, totalSteps, onConfirm, onEdit, onQuit, }: WizardPreviewStepProps): React.ReactElement;
11
+ export declare function WizardPreviewStep({ preview, spaceId, environmentId, onConfirm, onEdit, onQuit, }: WizardPreviewStepProps): React.ReactElement;
14
12
  export {};
@@ -1,7 +1,7 @@
1
1
  import type { ChangeClassification, ComponentTypeSummary } from '@contentful/experience-design-system-types';
2
2
  export interface PropertyDiffLine {
3
3
  key: string;
4
- color: 'green' | 'red' | 'yellow';
4
+ color: string;
5
5
  text: string;
6
6
  }
7
7
  export declare function computeComponentDiffLines(current: ComponentTypeSummary, proposed: Record<string, unknown>, changeClassification?: ChangeClassification): PropertyDiffLine[];
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface ControlHint {
3
+ keys: string;
4
+ label: string;
5
+ active?: boolean;
6
+ }
7
+ export declare function ControlHints({ hints }: {
8
+ hints: readonly ControlHint[];
9
+ }): React.ReactElement;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ declare const IMPORT_STEPS: readonly [{
3
+ readonly id: "extraction";
4
+ readonly label: "Extract";
5
+ }, {
6
+ readonly id: "scope-gate";
7
+ readonly label: "Select";
8
+ }, {
9
+ readonly id: "generation";
10
+ readonly label: "Generate";
11
+ }, {
12
+ readonly id: "review";
13
+ readonly label: "Review";
14
+ }, {
15
+ readonly id: "push";
16
+ readonly label: "Push";
17
+ }];
18
+ export type ImportStepId = (typeof IMPORT_STEPS)[number]['id'];
19
+ export interface StepHeaderProps {
20
+ step: ImportStepId | 'done';
21
+ }
22
+ export declare function StepHeader({ step }: StepHeaderProps): React.ReactElement;
23
+ export {};
@@ -5,6 +5,7 @@ export declare const PALETTE: {
5
5
  readonly muted: "#aec1cc";
6
6
  readonly border: "#aec1cc";
7
7
  readonly accent: "#40a0ff";
8
+ readonly onAccent: "#111B2B";
8
9
  readonly error: "#ff707d";
9
10
  readonly success: "#5DB057";
10
11
  readonly warning: "#FFC835";
@@ -13,6 +14,7 @@ export declare const PALETTE: {
13
14
  readonly muted: "#5A657C";
14
15
  readonly border: "#5A657C";
15
16
  readonly accent: "#0059c8";
17
+ readonly onAccent: "#FFFFFF";
16
18
  readonly error: "#bd002a";
17
19
  readonly success: "#006D23";
18
20
  readonly warning: "#CC4500";
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-80337a9a.0",
3
+ "version": "2.37.1-dev-build-2d576e63.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -45,8 +45,8 @@
45
45
  "ts-morph": "^27.0.2",
46
46
  "typescript": "^5.9.3",
47
47
  "zod": "^4.6.5",
48
- "@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-80337a9a.0",
49
- "@contentful/experience-design-system-types": "2.37.1-dev-build-80337a9a.0"
48
+ "@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-2d576e63.0",
49
+ "@contentful/experience-design-system-types": "2.37.1-dev-build-2d576e63.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@tsconfig/node24": "^24.0.4",
@@ -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,2 +0,0 @@
1
- import React from 'react';
2
- export declare function legendEntry(keyBracket: string, label: string, active?: boolean): React.ReactElement;
@@ -1,8 +0,0 @@
1
- export declare const PALETTE: {
2
- readonly info: "#40a0ff" | "#0059c8";
3
- readonly success: "#5DB057" | "#006D23";
4
- readonly error: "#ff707d" | "#bd002a";
5
- readonly warning: "#FFC835" | "#CC4500";
6
- readonly muted: "#aec1cc" | "#5A657C";
7
- readonly border: "#aec1cc" | "#5A657C";
8
- };
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- type StepHeaderProps = {
3
- stepNumber: number;
4
- totalSteps: number;
5
- title: string;
6
- };
7
- export declare function StepHeader({ stepNumber, totalSteps, title }: StepHeaderProps): React.ReactElement;
8
- export {};