@contentful/experience-design-system-cli 2.37.1-dev-build-a7704a7f.0 → 2.37.1-dev-build-daf73756.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 +381 -291
- package/dist/index.js +445 -355
- 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/keymap.d.ts +2 -0
- package/dist/src/tui/import/steps/07-scope-gate/sidebar/components/GroupedSidebar.d.ts +2 -0
- package/dist/src/tui/import/steps/07-scope-gate/sidebar/theme.d.ts +6 -6
- package/dist/src/tui/import/steps/07-scope-gate/state.d.ts +3 -2
- package/dist/src/tui/import/steps/07-scope-gate/types.d.ts +7 -0
- package/dist/src/tui/import/steps/07-scope-gate/use-scope-gate.d.ts +1 -1
- package/dist/src/tui/import/steps/08-generation/types.d.ts +2 -4
- package/dist/src/tui/theme.d.ts +19 -0
- package/package.json +3 -3
- package/dist/src/tui/import/steps/09-review/theme.d.ts +0 -9
- package/dist/src/tui/import/steps/10-flow/theme.d.ts +0 -13
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;
|
|
@@ -46,6 +46,8 @@ export interface VisibleRow {
|
|
|
46
46
|
cycleChild?: boolean;
|
|
47
47
|
itemIdx: number;
|
|
48
48
|
rootName?: string;
|
|
49
|
+
/** The parent whose slot the nested row sits in. */
|
|
50
|
+
parentName?: string;
|
|
49
51
|
}
|
|
50
52
|
export declare function buildVisibleRows(props: {
|
|
51
53
|
items: GroupedSidebarItem[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const PALETTE: {
|
|
2
|
-
readonly info: "#
|
|
3
|
-
readonly success: "#
|
|
4
|
-
readonly error: "#
|
|
5
|
-
readonly warning: "#
|
|
6
|
-
readonly muted: "#
|
|
7
|
-
readonly border: "#
|
|
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
8
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ScopeGraph } from './graph/index.js';
|
|
2
|
-
import type { Decision, ScopeComponent, ScopeDecisions } from './types.js';
|
|
2
|
+
import type { Decision, ParentChildEdge, ScopeComponent, ScopeDecisions } from './types.js';
|
|
3
3
|
export type DecisionState = Map<string, Decision>;
|
|
4
4
|
export type DecisionAction = {
|
|
5
5
|
type: 'accept';
|
|
@@ -15,5 +15,6 @@ export type DecisionAction = {
|
|
|
15
15
|
export declare function reduceDecisions(state: DecisionState, action: DecisionAction, components: ScopeComponent[], graph: ScopeGraph): DecisionState;
|
|
16
16
|
/** Whether rejecting `name` touches 2 or more other components, so the screen has to ask first. */
|
|
17
17
|
export declare function rejectNeedsConfirmation(graph: ScopeGraph, name: string, state: DecisionState): boolean;
|
|
18
|
+
export declare function withoutSlotChildren(components: ScopeComponent[], removedEdges: ParentChildEdge[]): ScopeComponent[];
|
|
18
19
|
/** Everything not accepted counts as rejected, as legacy's `partition` did. */
|
|
19
|
-
export declare function partitionDecisions(components: ScopeComponent[], state: DecisionState): ScopeDecisions;
|
|
20
|
+
export declare function partitionDecisions(components: ScopeComponent[], state: DecisionState, removedEdges: ParentChildEdge[]): ScopeDecisions;
|
|
@@ -10,10 +10,17 @@ export type ScopeComponent = Omit<ScopeComponentRow, 'aiDecision' | 'aiReason' |
|
|
|
10
10
|
slots?: ScopeComponentRow['slots'];
|
|
11
11
|
};
|
|
12
12
|
export type Decision = 'accepted' | 'rejected' | 'undecided';
|
|
13
|
+
/** One slot edge: `parent` allows `child` in a slot. */
|
|
14
|
+
export interface ParentChildEdge {
|
|
15
|
+
parent: string;
|
|
16
|
+
child: string;
|
|
17
|
+
}
|
|
13
18
|
/** What the user confirmed. Becomes `ImportHandoff.scope`; the legacy wizard saves it and starts generation. */
|
|
14
19
|
export interface ScopeDecisions {
|
|
15
20
|
accepted: string[];
|
|
16
21
|
rejected: string[];
|
|
22
|
+
/** Slot edges removed at the gate. The child keeps its own decision. Missing means none were removed. */
|
|
23
|
+
excludedSlotEdges?: ParentChildEdge[];
|
|
17
24
|
}
|
|
18
25
|
export type ScopeGateLoad = {
|
|
19
26
|
ok: true;
|
|
@@ -10,7 +10,7 @@ export interface PendingRejectCascade {
|
|
|
10
10
|
ancestors: string[];
|
|
11
11
|
descendants: string[];
|
|
12
12
|
}
|
|
13
|
-
export declare function useScopeGate({ components, onConfirm, onQuit }: UseScopeGateOptions): {
|
|
13
|
+
export declare function useScopeGate({ components: loadedComponents, onConfirm, onQuit }: UseScopeGateOptions): {
|
|
14
14
|
totalWidth: number;
|
|
15
15
|
columnPlan: {
|
|
16
16
|
layout: "single" | "two-column";
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import type { GenerationHandoff } from '@contentful/experience-design-system-types/handoff';
|
|
2
|
+
import type { ScopeDecisions } from '../07-scope-gate/types.js';
|
|
2
3
|
export interface GenerationInput {
|
|
3
4
|
/** The extraction session the scope was decided on. */
|
|
4
5
|
sessionId: string;
|
|
5
|
-
decisions:
|
|
6
|
-
accepted: string[];
|
|
7
|
-
rejected: string[];
|
|
8
|
-
};
|
|
6
|
+
decisions: ScopeDecisions;
|
|
9
7
|
/**
|
|
10
8
|
* The cache check that ran while the scope gate was open, which restores cached definitions into the pipeline
|
|
11
9
|
* database. The stage waits for it before saving the decisions, since both write to that database.
|
|
@@ -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: "#5DB057";
|
|
10
|
+
readonly warning: "#FFC835";
|
|
11
|
+
} | {
|
|
12
|
+
readonly text: "#111B2B";
|
|
13
|
+
readonly muted: "#5A657C";
|
|
14
|
+
readonly border: "#5A657C";
|
|
15
|
+
readonly accent: "#0059c8";
|
|
16
|
+
readonly error: "#bd002a";
|
|
17
|
+
readonly success: "#006D23";
|
|
18
|
+
readonly warning: "#CC4500";
|
|
19
|
+
};
|
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-daf73756.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-daf73756.0",
|
|
49
|
+
"@contentful/experience-design-system-types": "2.37.1-dev-build-daf73756.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@tsconfig/node24": "^24.0.4",
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
};
|