@contentful/experience-design-system-cli 2.37.1-dev-build-f86ffbb8.0 → 2.37.1-dev-build-2e476265.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.js +150 -389
- package/dist/index.js +154 -421
- package/dist/package.json +1 -2
- package/dist/src/tui/home/home.theme.d.ts +1 -2
- package/dist/src/tui/import/spawn-v1-import.d.ts +0 -1
- package/dist/src/tui/import/steps/index.d.ts +0 -1
- package/legacy/dist/src/analyze/select/tui/components/ScrollablePanel.d.ts +2 -2
- package/legacy/dist/src/analyze/select/tui/theme.d.ts +1 -1
- package/legacy/dist/src/import/tui/steps/CredentialsStep.d.ts +43 -0
- package/legacy/dist/src/index.js +1476 -1085
- package/legacy/package.json +1 -2
- package/package.json +2 -3
- package/dist/src/tui/import/steps/04-credentials/controls.d.ts +0 -21
- package/dist/src/tui/import/steps/04-credentials/logic.d.ts +0 -23
- package/dist/src/tui/import/steps/04-credentials/screen.d.ts +0 -17
- package/dist/src/tui/import/steps/04-credentials/validate.d.ts +0 -8
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-
|
|
3
|
+
"version": "2.37.1-dev-build-2e476265.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -62,7 +62,6 @@
|
|
|
62
62
|
"eslint": "^9.39.5",
|
|
63
63
|
"eslint-config-prettier": "^10.1.8",
|
|
64
64
|
"eslint-plugin-prettier": "^5.5.6",
|
|
65
|
-
"ink-testing-library": "^4.0.0",
|
|
66
65
|
"typescript-eslint": "^8.67.0",
|
|
67
66
|
"vitest": "^4.0.16"
|
|
68
67
|
},
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export declare const PALETTE: {
|
|
2
2
|
readonly accent: "#1773EB";
|
|
3
|
-
readonly heading: "#FFFFFF";
|
|
4
3
|
readonly success: "#00C459";
|
|
5
4
|
readonly error: "#E44F20";
|
|
6
5
|
readonly warning: "#FFDA00";
|
|
7
|
-
readonly muted: "#
|
|
6
|
+
readonly muted: "#8B8D91";
|
|
8
7
|
readonly border: "#C4D1DE";
|
|
9
8
|
};
|
|
10
9
|
export declare function brandBar(width: number, ramp?: readonly string[]): {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
type ScrollablePanelProps = {
|
|
3
|
-
|
|
3
|
+
title: string;
|
|
4
4
|
width: number;
|
|
5
5
|
height: number;
|
|
6
6
|
active: boolean;
|
|
@@ -10,5 +10,5 @@ type ScrollablePanelProps = {
|
|
|
10
10
|
borderColor?: string;
|
|
11
11
|
children: React.ReactNode;
|
|
12
12
|
};
|
|
13
|
-
export declare function ScrollablePanel({
|
|
13
|
+
export declare function ScrollablePanel({ title, width, height, active, totalLines, visibleStart, visibleEnd, borderColor, children, }: ScrollablePanelProps): React.ReactElement;
|
|
14
14
|
export {};
|
|
@@ -7,7 +7,7 @@ export declare const PALETTE: {
|
|
|
7
7
|
readonly warning: "#FFDA00";
|
|
8
8
|
readonly fg: "#000000";
|
|
9
9
|
readonly inverse: "#FFFFFF";
|
|
10
|
-
readonly muted: "#
|
|
10
|
+
readonly muted: "#8B8D91";
|
|
11
11
|
readonly border: "#C4D1DE";
|
|
12
12
|
readonly subtle: "#DDE5EC";
|
|
13
13
|
readonly bg: "#EFF2F6";
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type CredentialsStepProps = {
|
|
3
|
+
summary?: string;
|
|
4
|
+
error?: string;
|
|
5
|
+
initialSpaceId?: string;
|
|
6
|
+
initialEnvironmentId?: string;
|
|
7
|
+
initialCmaToken?: string;
|
|
8
|
+
initialHost?: string;
|
|
9
|
+
/**
|
|
10
|
+
* When true, the credentials screen stays mounted but locks input and shows
|
|
11
|
+
* an inline "Validating credentials..." status. Replaces the previous
|
|
12
|
+
* dedicated `validating-credentials` render screen so the operator sees a
|
|
13
|
+
* continuous credentials surface instead of a transient loading screen
|
|
14
|
+
* (Change 1 of the wizard prefetch refactor).
|
|
15
|
+
*/
|
|
16
|
+
validating?: boolean;
|
|
17
|
+
/** Background validation of unchanged prefilled credentials; input remains editable. */
|
|
18
|
+
backgroundValidating?: boolean;
|
|
19
|
+
/** Inline status describing in-flight background generation prefetch. */
|
|
20
|
+
generatePrefetchStatus?: 'idle' | 'running' | 'complete' | 'failed';
|
|
21
|
+
/** Error message from a failed generation prefetch (rendered as a banner). */
|
|
22
|
+
generatePrefetchError?: string | null;
|
|
23
|
+
/** Called when the user submits with any field changed from its initial value */
|
|
24
|
+
onConfirm: (spaceId: string, environmentId: string, cmaToken: string, host: string) => void;
|
|
25
|
+
onValuesChange?: (spaceId: string, environmentId: string, cmaToken: string, host: string) => void;
|
|
26
|
+
/** Called when the user submits without changing any field (use existing creds as-is) */
|
|
27
|
+
onContinue?: (spaceId: string, environmentId: string, cmaToken: string, host: string) => void;
|
|
28
|
+
onQuit: () => void;
|
|
29
|
+
/**
|
|
30
|
+
* Optional retry callback wired up when a background generation prefetch
|
|
31
|
+
* failed mid-credentials-entry. The operator presses R to re-trigger.
|
|
32
|
+
*/
|
|
33
|
+
onRetryPrefetch?: () => void;
|
|
34
|
+
/**
|
|
35
|
+
* Skip-credentials escape hatch. When pressed (via `s` keybind, gated
|
|
36
|
+
* against text-entry mode), the wizard advances without validating
|
|
37
|
+
* credentials and disables push downstream. See dsi-tui-skip-credentials
|
|
38
|
+
* spec.
|
|
39
|
+
*/
|
|
40
|
+
onSkip?: () => void;
|
|
41
|
+
};
|
|
42
|
+
export declare function CredentialsStep({ summary, error: externalError, initialSpaceId, initialEnvironmentId, initialCmaToken, initialHost, validating, backgroundValidating, generatePrefetchStatus, generatePrefetchError, onConfirm, onValuesChange, onContinue, onQuit, onRetryPrefetch, onSkip, }: CredentialsStepProps): React.ReactElement;
|
|
43
|
+
export {};
|