@contentful/experience-design-system-cli 2.37.1-dev-build-d5797739.0 → 2.37.1-dev-build-1cd1ccfb.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 +473 -769
- package/dist/index.js +542 -872
- package/dist/package.json +1 -1
- package/dist/src/tui/home/home.theme.d.ts +0 -8
- package/dist/src/tui/import/steps/07-scope-gate/sidebar/theme.d.ts +4 -4
- package/dist/src/tui/import/steps/10-flow/theme.d.ts +14 -5
- package/dist/src/tui/settings/contentful-configuration/ContentfulConfigScreen.d.ts +0 -1
- package/dist/src/tui/theme.d.ts +19 -0
- package/legacy/package.json +1 -1
- package/package.json +3 -3
- package/dist/src/tui/help/file-locations.d.ts +0 -23
- package/dist/src/tui/import/steps/09-review/theme.d.ts +0 -9
- package/dist/src/tui/settings/agents/AgentScreens.d.ts +0 -8
- package/dist/src/tui/settings/agents/agent-store.d.ts +0 -14
- package/dist/src/tui/settings/contentful-configuration/ProjectConfigScreen.d.ts +0 -5
- package/dist/src/tui/settings/shared/FieldForm.d.ts +0 -35
package/dist/package.json
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
export declare const PALETTE: {
|
|
2
|
-
readonly accent: "#1773EB";
|
|
3
|
-
readonly success: "#00C459";
|
|
4
|
-
readonly error: "#E44F20";
|
|
5
|
-
readonly warning: "#FFDA00";
|
|
6
|
-
readonly muted: "#8B8D91";
|
|
7
|
-
readonly border: "#C4D1DE";
|
|
8
|
-
};
|
|
9
1
|
export declare function brandBar(width: number, ramp?: readonly string[]): {
|
|
10
2
|
text: string;
|
|
11
3
|
color: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const PALETTE: {
|
|
2
|
-
readonly info: "#
|
|
2
|
+
readonly info: "#40a0ff" | "#0059c8";
|
|
3
3
|
readonly success: "#00C459";
|
|
4
|
-
readonly error: "#
|
|
4
|
+
readonly error: "#ff707d" | "#bd002a";
|
|
5
5
|
readonly warning: "#FFDA00";
|
|
6
|
-
readonly muted: "#
|
|
7
|
-
readonly border: "#
|
|
6
|
+
readonly muted: "#aec1cc" | "#5a657c";
|
|
7
|
+
readonly border: "#aec1cc" | "#5a657c";
|
|
8
8
|
};
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
export declare const PALETTE: {
|
|
2
2
|
readonly link: "#58A6FF";
|
|
3
|
-
readonly
|
|
3
|
+
readonly text: "#f7f9fa";
|
|
4
|
+
readonly muted: "#aec1cc";
|
|
5
|
+
readonly border: "#aec1cc";
|
|
6
|
+
readonly accent: "#40a0ff";
|
|
7
|
+
readonly error: "#ff707d";
|
|
8
|
+
readonly success: "#00C459";
|
|
9
|
+
readonly warning: "#FFDA00";
|
|
10
|
+
} | {
|
|
11
|
+
readonly link: "#58A6FF";
|
|
12
|
+
readonly text: "#111b2b";
|
|
13
|
+
readonly muted: "#5a657c";
|
|
14
|
+
readonly border: "#5a657c";
|
|
15
|
+
readonly accent: "#0059c8";
|
|
16
|
+
readonly error: "#bd002a";
|
|
4
17
|
readonly success: "#00C459";
|
|
5
|
-
readonly error: "#E44F20";
|
|
6
18
|
readonly warning: "#FFDA00";
|
|
7
|
-
readonly muted: "#8B8D91";
|
|
8
|
-
readonly border: "#C4D1DE";
|
|
9
|
-
readonly inverse: "#FFFFFF";
|
|
10
19
|
};
|
|
11
20
|
export declare const INK_UI_THEME: {
|
|
12
21
|
components: Record<string, import("@inkjs/ui").ComponentTheme>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type ColorMode = 'dark' | 'light';
|
|
2
|
+
export declare function detectColorMode(env?: NodeJS.ProcessEnv): ColorMode;
|
|
3
|
+
export declare const PALETTE: {
|
|
4
|
+
readonly text: "#f7f9fa";
|
|
5
|
+
readonly muted: "#aec1cc";
|
|
6
|
+
readonly border: "#aec1cc";
|
|
7
|
+
readonly accent: "#40a0ff";
|
|
8
|
+
readonly error: "#ff707d";
|
|
9
|
+
readonly success: "#00C459";
|
|
10
|
+
readonly warning: "#FFDA00";
|
|
11
|
+
} | {
|
|
12
|
+
readonly text: "#111b2b";
|
|
13
|
+
readonly muted: "#5a657c";
|
|
14
|
+
readonly border: "#5a657c";
|
|
15
|
+
readonly accent: "#0059c8";
|
|
16
|
+
readonly error: "#bd002a";
|
|
17
|
+
readonly success: "#00C459";
|
|
18
|
+
readonly warning: "#FFDA00";
|
|
19
|
+
};
|
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-1cd1ccfb.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-
|
|
49
|
-
"@contentful/experience-design-system-types": "2.37.1-dev-build-
|
|
48
|
+
"@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-1cd1ccfb.0",
|
|
49
|
+
"@contentful/experience-design-system-types": "2.37.1-dev-build-1cd1ccfb.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@tsconfig/node24": "^24.0.4",
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export interface FileLocationInput {
|
|
2
|
-
/** The Root Project Directory from Settings > Configuration > Project. Empty when not set. */
|
|
3
|
-
contentfulBaseDir: string;
|
|
4
|
-
/** Whether Debug Mode is on. Debug logs and the per-run folders only exist while it is. */
|
|
5
|
-
debugModeEnabled: boolean;
|
|
6
|
-
/** This terminal session's folder, once it has started. */
|
|
7
|
-
currentSessionDir: string | undefined;
|
|
8
|
-
}
|
|
9
|
-
export interface FileLocations {
|
|
10
|
-
debugLogs: string;
|
|
11
|
-
importFiles: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Where the CLI writes the files a user goes looking for, from the settings that decide it (see `startImportRun`).
|
|
15
|
-
*
|
|
16
|
-
* With Debug Mode on, everything goes in this terminal session's folder, `<base>/.contentful/<date>-session-N/`:
|
|
17
|
-
* the debug logs in `debug/` and, for each import, a `dsi-import-N/` folder with `tokens.json` and `components.json`.
|
|
18
|
-
* `<base>` is the Root Project Directory, or the project being imported when none is set. With Debug Mode off there is
|
|
19
|
-
* no session folder and no logs, and the files go to `<project>/.contentful/`.
|
|
20
|
-
*
|
|
21
|
-
* Names that are only known when a session or an import starts are shown as patterns, never guessed.
|
|
22
|
-
*/
|
|
23
|
-
export declare function describeFileLocations({ contentfulBaseDir, debugModeEnabled, currentSessionDir, }: FileLocationInput): FileLocations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Settings > Configuration > Agents: which coding agent the CLI uses, and each agent's own settings. Enter on an agent
|
|
4
|
-
* opens its form; the first row picks the default agent (←/→ or Enter cycles it, and the change is saved at once).
|
|
5
|
-
*/
|
|
6
|
-
export declare function AgentsScreen({ onDone }: {
|
|
7
|
-
onDone: () => void;
|
|
8
|
-
}): React.ReactElement;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type AgentName } from '@contentful/experience-design-system-backend-pipeline';
|
|
2
|
-
export type AgentSettings = {
|
|
3
|
-
model: string;
|
|
4
|
-
};
|
|
5
|
-
export type AgentConfig = {
|
|
6
|
-
/** The agent the CLI uses when `--agent` is not given. */
|
|
7
|
-
defaultAgent: AgentName;
|
|
8
|
-
agents: Record<AgentName, AgentSettings>;
|
|
9
|
-
};
|
|
10
|
-
export declare const AGENT_LABELS: Record<AgentName, string>;
|
|
11
|
-
export declare const AGENT_HINTS: Record<AgentName, string>;
|
|
12
|
-
export declare function emptyAgents(): Record<AgentName, AgentSettings>;
|
|
13
|
-
export declare function readAgentConfig(): Promise<AgentConfig>;
|
|
14
|
-
export declare function writeAgentConfig(config: AgentConfig): Promise<void>;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface FormField<K extends string> {
|
|
3
|
-
key: K;
|
|
4
|
-
label: string;
|
|
5
|
-
/** A short note shown dimmed after the value, so the label column stays narrow. */
|
|
6
|
-
hint?: string;
|
|
7
|
-
/** Shows dots instead of the value, for secrets. */
|
|
8
|
-
masked?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export type FormNotice = {
|
|
11
|
-
kind: 'success' | 'error';
|
|
12
|
-
text: string;
|
|
13
|
-
};
|
|
14
|
-
interface FieldFormProps<K extends string> {
|
|
15
|
-
title: string;
|
|
16
|
-
/** What this form is for, shown dimmed under the title. */
|
|
17
|
-
subtitle?: string;
|
|
18
|
-
fields: readonly FormField<K>[];
|
|
19
|
-
values: Record<K, string>;
|
|
20
|
-
onChange: (key: K, value: string) => void;
|
|
21
|
-
onSave: () => void;
|
|
22
|
-
/** Leaves without saving. */
|
|
23
|
-
onQuit: () => void;
|
|
24
|
-
notice?: FormNotice | null;
|
|
25
|
-
/** Ignores keys while a load or save is in flight. */
|
|
26
|
-
busy?: boolean;
|
|
27
|
-
/** Shown above the controls, for a screen's own explanation. */
|
|
28
|
-
footer?: React.ReactNode;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* The edit-in-place form the Configuration pages share. Fields are read-only until Enter opens one; Enter again closes it.
|
|
32
|
-
* While one is open, keys type into it (so a "q" in a path is just a "q"), and Esc closes it and restores the old value.
|
|
33
|
-
*/
|
|
34
|
-
export declare function FieldForm<K extends string>({ title, subtitle, fields, values, onChange, onSave, onQuit, notice, busy, footer, }: FieldFormProps<K>): React.ReactElement;
|
|
35
|
-
export {};
|