@contentful/experience-design-system-cli 2.37.1-dev-build-dbc9f30e.0 → 2.37.1-dev-build-8b126ca1.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/app.d.ts +2 -6
- package/dist/app.js +8558 -448
- package/dist/index.js +9021 -516
- package/dist/package.json +1 -1
- package/dist/src/commands/import-options.d.ts +0 -1
- package/dist/src/tui/import/steps/07-scope-gate/graph/cycle-detection.d.ts +5 -0
- package/dist/src/tui/import/steps/09-review/components/ComponentRationalePanel.d.ts +10 -0
- package/dist/src/tui/import/steps/09-review/components/FieldEditor.d.ts +67 -0
- package/dist/src/tui/import/steps/09-review/components/FinalizeDialog.d.ts +22 -0
- package/dist/src/tui/import/steps/09-review/components/HighlightedLine.d.ts +9 -0
- package/dist/src/tui/import/steps/09-review/components/JsonPanel.d.ts +11 -0
- package/dist/src/tui/import/steps/09-review/components/LivePreviewSummary.d.ts +14 -0
- package/dist/src/tui/import/steps/09-review/components/QuitDialog.d.ts +8 -0
- package/dist/src/tui/import/steps/09-review/components/RationaleLine.d.ts +21 -0
- package/dist/src/tui/import/steps/09-review/components/RationalePanel.d.ts +15 -0
- package/dist/src/tui/import/steps/09-review/components/ReviewComponentPanel.d.ts +33 -0
- package/dist/src/tui/import/steps/09-review/components/ReviewDetailsEditor.d.ts +15 -0
- package/dist/src/tui/import/steps/09-review/components/ReviewDialogs.d.ts +28 -0
- package/dist/src/tui/import/steps/09-review/components/ReviewStatus.d.ts +15 -0
- package/dist/src/tui/import/steps/09-review/components/ScrollablePanel.d.ts +14 -0
- package/dist/src/tui/import/steps/09-review/components/TokenReviewPanel.d.ts +30 -0
- package/dist/src/tui/import/steps/09-review/components/removed-components-text.d.ts +7 -0
- package/dist/src/tui/import/steps/09-review/components/wrap-text.d.ts +1 -0
- package/dist/src/tui/import/steps/09-review/generate-review-step.d.ts +37 -0
- package/dist/src/tui/import/steps/09-review/graph/cycle-auto-reject.d.ts +4 -0
- package/dist/src/tui/import/steps/09-review/graph/cycle-view.d.ts +7 -0
- package/dist/src/tui/import/steps/09-review/graph/issue-inheritance.d.ts +8 -0
- package/dist/src/tui/import/steps/09-review/graph/selection-cascade.d.ts +3 -0
- package/dist/src/tui/import/steps/09-review/helpers/auto-reject-decision.d.ts +7 -0
- package/dist/src/tui/import/steps/09-review/helpers/breaking-change-format.d.ts +2 -0
- package/dist/src/tui/import/steps/09-review/helpers/cycle-panel-scroll.d.ts +8 -0
- package/dist/src/tui/import/steps/09-review/helpers/enumerate-cycle-breaks.d.ts +14 -0
- package/dist/src/tui/import/steps/09-review/helpers/sidebar-width.d.ts +1 -0
- package/dist/src/tui/import/steps/09-review/history.d.ts +23 -0
- package/dist/src/tui/import/steps/09-review/preview-annotations.d.ts +26 -0
- package/dist/src/tui/import/steps/09-review/review-details-panel.d.ts +26 -0
- package/dist/src/tui/import/steps/09-review/review-input.d.ts +39 -0
- package/dist/src/tui/import/steps/09-review/review-json-panel.d.ts +7 -0
- package/dist/src/tui/import/steps/09-review/run-live-preview.d.ts +45 -0
- package/dist/src/tui/import/steps/09-review/scroll-offset.d.ts +30 -0
- package/dist/src/tui/import/steps/09-review/session.d.ts +26 -0
- package/dist/src/tui/import/steps/09-review/theme.d.ts +9 -0
- package/dist/src/tui/import/steps/09-review/token-suggestions.d.ts +8 -0
- package/dist/src/tui/import/steps/09-review/types.d.ts +19 -0
- package/dist/src/tui/import/steps/09-review/use-finalize-preview.d.ts +39 -0
- package/dist/src/tui/import/steps/09-review/use-live-preview.d.ts +39 -0
- package/dist/src/tui/import/steps/09-review/use-review-editor.d.ts +47 -0
- package/dist/src/tui/import/steps/09-review/use-review-preview.d.ts +25 -0
- package/dist/src/tui/import/steps/09-review/use-review-session.d.ts +65 -0
- package/dist/src/tui/import/steps/09-review/use-review-surface-state.d.ts +12 -0
- package/dist/src/tui/import/steps/10-flow/components/CustomPromptBanner.d.ts +5 -0
- package/dist/src/tui/import/steps/10-flow/components/SpaceEnvironment.d.ts +7 -0
- package/dist/src/tui/import/steps/10-flow/components/StepHeader.d.ts +8 -0
- package/dist/src/tui/import/steps/10-flow/flow/build-flow-start.d.ts +21 -0
- package/dist/src/tui/import/steps/10-flow/flow/controller.d.ts +65 -0
- package/dist/src/tui/import/steps/10-flow/flow/preview.d.ts +56 -0
- package/dist/src/tui/import/steps/10-flow/flow/push.d.ts +43 -0
- package/dist/src/tui/import/steps/10-flow/flow/save.d.ts +50 -0
- package/dist/src/tui/import/steps/10-flow/flow/screen.d.ts +17 -0
- package/dist/src/tui/import/steps/10-flow/flow/types.d.ts +71 -0
- package/dist/src/tui/import/steps/10-flow/flow/use-flow.d.ts +9 -0
- package/dist/src/tui/import/steps/10-flow/screens/DoneStep.d.ts +28 -0
- package/dist/src/tui/import/steps/10-flow/screens/PathPrompt.d.ts +8 -0
- package/dist/src/tui/import/steps/10-flow/screens/PushingStep.d.ts +9 -0
- package/dist/src/tui/import/steps/10-flow/screens/WizardPreviewStep.d.ts +20 -0
- package/dist/src/tui/import/steps/10-flow/support/contentful-urls.d.ts +15 -0
- package/dist/src/tui/import/steps/10-flow/support/path-utils.d.ts +15 -0
- package/dist/src/tui/import/steps/10-flow/support/preview-confirmation-input.d.ts +5 -0
- package/dist/src/tui/import/steps/10-flow/support/preview-diff.d.ts +10 -0
- package/dist/src/tui/import/steps/10-flow/support/push-progress.d.ts +9 -0
- package/dist/src/tui/import/steps/10-flow/support/run-print-files-helpers.d.ts +26 -0
- package/dist/src/tui/import/steps/10-flow/support/run-teaser.d.ts +5 -0
- package/dist/src/tui/import/steps/10-flow/support/use-blinking-cursor.d.ts +1 -0
- package/dist/src/tui/import/steps/10-flow/support/use-timed-spinner.d.ts +4 -0
- package/dist/src/tui/import/steps/10-flow/support/wizard-state-transitions.d.ts +17 -0
- package/dist/src/tui/import/steps/10-flow/theme.d.ts +13 -0
- package/dist/src/tui/import/steps/preview-validation-error/logic.d.ts +12 -0
- package/dist/src/tui/import/steps/preview-validation-error/screen.d.ts +11 -0
- package/dist/src/tui/user-agent.d.ts +5 -0
- package/legacy/package.json +1 -1
- package/package.json +4 -4
- package/dist/src/tui/import/spawn-v1-import.d.ts +0 -36
- package/dist/src/tui/import/terminal-input.d.ts +0 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FlowController } from './controller.js';
|
|
3
|
+
import type { FlowState } from './types.js';
|
|
4
|
+
interface FlowScreenProps {
|
|
5
|
+
state: FlowState;
|
|
6
|
+
controller: FlowController;
|
|
7
|
+
livePreview?: boolean;
|
|
8
|
+
generatePromptPath?: string;
|
|
9
|
+
/** Leaves the import with the exit code the wizard would have exited with. */
|
|
10
|
+
onExit: (exitCode: number) => void;
|
|
11
|
+
}
|
|
12
|
+
/** How many steps the import has, as the wizard counted them. */
|
|
13
|
+
export declare function totalStepsFor(state: Pick<FlowState, 'tokensPath' | 'rawTokensPath' | 'mapTokensEligible'>): number;
|
|
14
|
+
/** Whether the preview gate offers "[e] Edit definitions": only when the document has components to edit. */
|
|
15
|
+
export declare function canEditFromPreview(cdf: FlowState['cdf']): boolean;
|
|
16
|
+
export declare function FlowScreen({ state, controller, livePreview, generatePromptPath, onExit, }: FlowScreenProps): React.ReactElement;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { CDFDocument, ServerPreviewResponse } from '@contentful/experience-design-system-types';
|
|
2
|
+
import type { PreviewValidationError } from '@contentful/experience-design-system-backend-pipeline';
|
|
3
|
+
import type { PushProgress } from '../support/push-progress.js';
|
|
4
|
+
/**
|
|
5
|
+
* The steps of the import after the review, as the wizard had them. The ones that came before (credentials, extraction,
|
|
6
|
+
* the scope gate, generation) are v2 stages of their own now.
|
|
7
|
+
*/
|
|
8
|
+
type FlowStep = 'final-review' | 'previewing' | 'preview-gate' | 'pushing' | 'path-prompt' | 'printing' | 'print-gate' | 'done' | 'error' | 'preview-validation-error';
|
|
9
|
+
export type PushResult = {
|
|
10
|
+
componentTypes: {
|
|
11
|
+
created: number;
|
|
12
|
+
updated: number;
|
|
13
|
+
removed: number;
|
|
14
|
+
failed: number;
|
|
15
|
+
};
|
|
16
|
+
designTokens: {
|
|
17
|
+
created: number;
|
|
18
|
+
updated: number;
|
|
19
|
+
removed: number;
|
|
20
|
+
failed: number;
|
|
21
|
+
};
|
|
22
|
+
summary?: {
|
|
23
|
+
total: number;
|
|
24
|
+
succeeded: number;
|
|
25
|
+
failed: number;
|
|
26
|
+
};
|
|
27
|
+
failures?: Array<{
|
|
28
|
+
entityType: string;
|
|
29
|
+
entityId: string;
|
|
30
|
+
message: string;
|
|
31
|
+
}>;
|
|
32
|
+
};
|
|
33
|
+
/** Everything the flow keeps between steps. The same fields the wizard kept, minus those only the early stages used. */
|
|
34
|
+
export type FlowState = {
|
|
35
|
+
step: FlowStep;
|
|
36
|
+
agent: string;
|
|
37
|
+
projectPath: string;
|
|
38
|
+
outDir: string;
|
|
39
|
+
rawTokensPath: string;
|
|
40
|
+
tokensPath: string;
|
|
41
|
+
tokenSessionId: string | null;
|
|
42
|
+
tokenCount: number;
|
|
43
|
+
extractSessionId: string | null;
|
|
44
|
+
generateSessionId: string | null;
|
|
45
|
+
generatedCount: number;
|
|
46
|
+
generatedAcceptedCount: number;
|
|
47
|
+
componentsPath: string;
|
|
48
|
+
spaceId: string;
|
|
49
|
+
environmentId: string;
|
|
50
|
+
cmaToken: string;
|
|
51
|
+
host: string;
|
|
52
|
+
serverPreview: ServerPreviewResponse | null;
|
|
53
|
+
cdf: CDFDocument | null;
|
|
54
|
+
pushProgress: PushProgress;
|
|
55
|
+
pushResult: PushResult;
|
|
56
|
+
errorStep: string;
|
|
57
|
+
errorMessage: string;
|
|
58
|
+
errorAllowCredentialRetry: boolean;
|
|
59
|
+
errorAllowBreakingChangeAcknowledgment: boolean;
|
|
60
|
+
previewValidationErrors: PreviewValidationError[];
|
|
61
|
+
previewValidationMissingNames: string[];
|
|
62
|
+
mapTokensEligible: boolean | null;
|
|
63
|
+
credentialsSkipped: boolean;
|
|
64
|
+
lastRunId: string | null;
|
|
65
|
+
finalizeErrorBanner: string | null;
|
|
66
|
+
finalReviewPassed: boolean;
|
|
67
|
+
};
|
|
68
|
+
/** A change to the state. The steps of the flow return these instead of changing the state themselves. */
|
|
69
|
+
export type FlowPatch = Partial<FlowState>;
|
|
70
|
+
export declare const EMPTY_PUSH_RESULT: PushResult;
|
|
71
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type FlowController, type FlowDeps, type FlowStart } from './controller.js';
|
|
2
|
+
/**
|
|
3
|
+
* The flow for a start, once. `start` is undefined until the generation stage has finished, so the hook can be called
|
|
4
|
+
* unconditionally; the step log is started with the controller, as the wizard started it with its first render.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useFlow(start: FlowStart | undefined, deps?: () => FlowDeps): {
|
|
7
|
+
controller: FlowController;
|
|
8
|
+
state: ReturnType<FlowController['getState']>;
|
|
9
|
+
} | undefined;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type EntityResult = {
|
|
3
|
+
created: number;
|
|
4
|
+
updated: number;
|
|
5
|
+
removed: number;
|
|
6
|
+
failed: number;
|
|
7
|
+
};
|
|
8
|
+
type DoneStepProps = {
|
|
9
|
+
componentTypes: EntityResult;
|
|
10
|
+
designTokens: EntityResult;
|
|
11
|
+
summary?: {
|
|
12
|
+
total: number;
|
|
13
|
+
succeeded: number;
|
|
14
|
+
failed: number;
|
|
15
|
+
};
|
|
16
|
+
spaceId: string;
|
|
17
|
+
environmentId: string;
|
|
18
|
+
host?: string;
|
|
19
|
+
runTeaser?: string;
|
|
20
|
+
failures?: Array<{
|
|
21
|
+
entityType: string;
|
|
22
|
+
entityId: string;
|
|
23
|
+
message: string;
|
|
24
|
+
}>;
|
|
25
|
+
onExit: () => void;
|
|
26
|
+
};
|
|
27
|
+
export declare function DoneStep({ componentTypes, designTokens, summary, spaceId, environmentId, host, failures, onExit, }: DoneStepProps): React.ReactElement;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type PathPromptProps = {
|
|
3
|
+
defaultPath: string;
|
|
4
|
+
onSubmit: (path: string) => void;
|
|
5
|
+
onCancel: () => void;
|
|
6
|
+
label?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function PathPrompt({ defaultPath, onSubmit, onCancel, label, }: PathPromptProps): React.ReactElement;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PushProgress } from '../support/push-progress.js';
|
|
3
|
+
type PushingStepProps = {
|
|
4
|
+
stepNumber: number;
|
|
5
|
+
totalSteps: number;
|
|
6
|
+
progress: PushProgress;
|
|
7
|
+
};
|
|
8
|
+
export declare function PushingStep({ stepNumber, totalSteps, progress }: PushingStepProps): React.ReactElement;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ServerPreviewResponse } from '@contentful/experience-design-system-types';
|
|
3
|
+
export interface PreviewDiffLine {
|
|
4
|
+
key: string;
|
|
5
|
+
color: string;
|
|
6
|
+
text: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function buildPreviewSummaryLines(preview: ServerPreviewResponse): PreviewDiffLine[];
|
|
9
|
+
type WizardPreviewStepProps = {
|
|
10
|
+
preview: ServerPreviewResponse;
|
|
11
|
+
spaceId: string;
|
|
12
|
+
environmentId: string;
|
|
13
|
+
stepNumber: number;
|
|
14
|
+
totalSteps: number;
|
|
15
|
+
onConfirm: (acknowledge: boolean) => void;
|
|
16
|
+
onEdit?: () => void;
|
|
17
|
+
onQuit: () => void;
|
|
18
|
+
};
|
|
19
|
+
export declare function WizardPreviewStep({ preview, spaceId, environmentId, stepNumber, totalSteps, onConfirm, onEdit, onQuit, }: WizardPreviewStepProps): React.ReactElement;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared Contentful webapp URL builders.
|
|
3
|
+
*
|
|
4
|
+
* This module centralizes the formatter so the wizard and `apply` emit
|
|
5
|
+
* the same URL shape.
|
|
6
|
+
*/
|
|
7
|
+
type PostPushView = 'components' | 'design_tokens';
|
|
8
|
+
export interface BuildPostPushUrlInput {
|
|
9
|
+
host: string;
|
|
10
|
+
spaceId: string;
|
|
11
|
+
environmentId: string;
|
|
12
|
+
view?: PostPushView;
|
|
13
|
+
}
|
|
14
|
+
export declare function buildPostPushUrl({ host, spaceId, environmentId, view }: BuildPostPushUrlInput): string;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Expands a leading `~` to the user's home directory.
|
|
3
|
+
* Exported separately so it can be unit-tested and reused.
|
|
4
|
+
*/
|
|
5
|
+
export declare function expandTilde(input: string): string;
|
|
6
|
+
/**
|
|
7
|
+
* Normalizes a user-entered path to an absolute path, handling all common
|
|
8
|
+
* terminal path styles:
|
|
9
|
+
* - surrounding quotes ("~/path" or '~/path') → stripped
|
|
10
|
+
* - tilde prefix (~/projects/mylib) → expanded to $HOME
|
|
11
|
+
* - relative paths (../mylib, ./src, mylib) → resolved against CWD
|
|
12
|
+
* - absolute paths (/Users/ryun/projects/mylib) → passed through
|
|
13
|
+
* - trailing slashes, repeated slashes → normalized by path.resolve
|
|
14
|
+
*/
|
|
15
|
+
export declare function normalizePath(input: string): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ChangeClassification, ComponentTypeSummary, PropertySummary } from '@contentful/experience-design-system-types';
|
|
2
|
+
export interface PropertyDiffLine {
|
|
3
|
+
key: string;
|
|
4
|
+
color: 'green' | 'red' | 'yellow';
|
|
5
|
+
text: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function computeComponentDiffLines(current: ComponentTypeSummary, proposed: Record<string, unknown>, changeClassification?: ChangeClassification): PropertyDiffLine[];
|
|
8
|
+
export declare function diffProperty(name: string, old: PropertySummary, newDef: Record<string, unknown>): PropertyDiffLine[];
|
|
9
|
+
export declare function formatOldProp(prop: PropertySummary): string;
|
|
10
|
+
export declare function formatPropDef(def: Record<string, unknown>): string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Computes the wizard state patch applied after `runPrintFiles` successfully
|
|
3
|
+
* writes components.json. Default behavior transitions to the print-gate
|
|
4
|
+
* confirm screen. When `skipGate: true` is passed (used by the "save AND push"
|
|
5
|
+
* path), the transition is suppressed so the caller can chain into
|
|
6
|
+
* `runPreview` without an intermediate gate render.
|
|
7
|
+
*
|
|
8
|
+
* When `outDir` is provided (Task 4 — operator chose a custom save path via
|
|
9
|
+
* the inline path-prompt), it is folded into the patch so the wizard's
|
|
10
|
+
* `state.outDir` reflects the chosen path. Subsequent reads (e.g. the
|
|
11
|
+
* appendRun call, the print-gate's summary) pick it up automatically.
|
|
12
|
+
*/
|
|
13
|
+
export type NextStateAfterPrintInput = {
|
|
14
|
+
skipGate?: boolean;
|
|
15
|
+
componentsPath: string;
|
|
16
|
+
outDir?: string;
|
|
17
|
+
};
|
|
18
|
+
export type NextStateAfterPrintOutput = {
|
|
19
|
+
componentsPath: string;
|
|
20
|
+
outDir?: string;
|
|
21
|
+
} | {
|
|
22
|
+
step: 'print-gate';
|
|
23
|
+
componentsPath: string;
|
|
24
|
+
outDir?: string;
|
|
25
|
+
};
|
|
26
|
+
export declare function nextStateAfterPrint(opts: NextStateAfterPrintInput): NextStateAfterPrintOutput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useBlinkingCursor(): boolean;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare function shouldBypassPreview(state: {
|
|
2
|
+
credentialsSkipped: boolean;
|
|
3
|
+
}): boolean;
|
|
4
|
+
export declare function buildSkippedPreviewTransition(): {
|
|
5
|
+
step: 'done';
|
|
6
|
+
serverPreview: null;
|
|
7
|
+
};
|
|
8
|
+
export type CycleGateAction = 'block' | 'proceed';
|
|
9
|
+
export declare function resolveCycleGateAction(opts: {
|
|
10
|
+
hasCycles: boolean;
|
|
11
|
+
}): CycleGateAction;
|
|
12
|
+
export declare function shouldRefusePush(state: {
|
|
13
|
+
credentialsSkipped: boolean;
|
|
14
|
+
}): boolean;
|
|
15
|
+
export declare function buildSkippedPushTransition(): {
|
|
16
|
+
step: 'print-gate';
|
|
17
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const PALETTE: {
|
|
2
|
+
readonly link: "#58A6FF";
|
|
3
|
+
readonly info: "#1773EB";
|
|
4
|
+
readonly success: "#00C459";
|
|
5
|
+
readonly error: "#E44F20";
|
|
6
|
+
readonly warning: "#FFDA00";
|
|
7
|
+
readonly muted: "#8B8D91";
|
|
8
|
+
readonly border: "#C4D1DE";
|
|
9
|
+
readonly inverse: "#FFFFFF";
|
|
10
|
+
};
|
|
11
|
+
export declare const INK_UI_THEME: {
|
|
12
|
+
components: Record<string, import("@inkjs/ui").ComponentTheme>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface PreviewValidationError {
|
|
2
|
+
componentName: string;
|
|
3
|
+
path: string;
|
|
4
|
+
message: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function failedComponentNames(errors: readonly PreviewValidationError[]): string[];
|
|
7
|
+
export declare function matchedComponentNames(errors: readonly PreviewValidationError[], missingNames: readonly string[]): string[];
|
|
8
|
+
export declare function formatErrorLine(error: PreviewValidationError): string;
|
|
9
|
+
export declare function formatErrorLines(errors: readonly PreviewValidationError[]): string;
|
|
10
|
+
export declare function missingNote(missingNames: readonly string[]): string;
|
|
11
|
+
export declare function contextText(errors: readonly PreviewValidationError[], missingNames: readonly string[]): string;
|
|
12
|
+
export declare function skipLabel(matchedNames: readonly string[]): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type PreviewValidationError } from './logic.js';
|
|
3
|
+
interface PreviewValidationErrorScreenProps {
|
|
4
|
+
errors: readonly PreviewValidationError[];
|
|
5
|
+
missingNames: readonly string[];
|
|
6
|
+
onEdit: () => void;
|
|
7
|
+
onSkip: () => void;
|
|
8
|
+
onQuit: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function PreviewValidationErrorScreen({ errors, missingNames, onEdit, onSkip, onQuit, }: PreviewValidationErrorScreenProps): React.ReactElement;
|
|
11
|
+
export {};
|
package/legacy/package.json
CHANGED
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-
|
|
3
|
+
"version": "2.37.1-dev-build-8b126ca1.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"ts-morph": "^27.0.2",
|
|
46
46
|
"typescript": "^5.9.3",
|
|
47
47
|
"zod": "^4.6.5",
|
|
48
|
-
"@contentful/experience-design-system-
|
|
49
|
-
"@contentful/experience-design-system-
|
|
50
|
-
"@contentful/experience-design-system-
|
|
48
|
+
"@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-8b126ca1.0",
|
|
49
|
+
"@contentful/experience-design-system-generation": "2.37.1-dev-build-8b126ca1.0",
|
|
50
|
+
"@contentful/experience-design-system-types": "2.37.1-dev-build-8b126ca1.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@tsconfig/node24": "^24.0.4",
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { type ImportOptions } from '../../commands/import-options.js';
|
|
2
|
-
import { type ImportHandoff } from '@contentful/experience-design-system-types/handoff';
|
|
3
|
-
interface StepResult {
|
|
4
|
-
step: string;
|
|
5
|
-
status: 'complete' | 'failed' | 'skipped';
|
|
6
|
-
durationMs?: number;
|
|
7
|
-
reason?: string;
|
|
8
|
-
detail?: Record<string, unknown>;
|
|
9
|
-
error?: string;
|
|
10
|
-
}
|
|
11
|
-
interface PipelineResult {
|
|
12
|
-
session: string;
|
|
13
|
-
project: string;
|
|
14
|
-
steps: StepResult[];
|
|
15
|
-
cycleError?: {
|
|
16
|
-
report: string[];
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export interface SpawnV1ImportOptions extends Partial<ImportOptions> {
|
|
20
|
-
projectPath?: string;
|
|
21
|
-
tokens?: string;
|
|
22
|
-
filePaths?: string[];
|
|
23
|
-
/** What the CLI already settled and did; the legacy wizard starts from it. */
|
|
24
|
-
handoff?: ImportHandoff;
|
|
25
|
-
onProgress?: (line: string) => void;
|
|
26
|
-
}
|
|
27
|
-
export interface SpawnV1ImportResult {
|
|
28
|
-
exitCode: number;
|
|
29
|
-
result?: PipelineResult;
|
|
30
|
-
stdout: string;
|
|
31
|
-
stderr: string;
|
|
32
|
-
}
|
|
33
|
-
export declare function buildArgs(options: SpawnV1ImportOptions): string[];
|
|
34
|
-
export declare function buildEnv(options: SpawnV1ImportOptions, base?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
|
|
35
|
-
export declare function spawnV1Import(options?: SpawnV1ImportOptions): Promise<SpawnV1ImportResult>;
|
|
36
|
-
export {};
|