@contentful/experience-design-system-cli 2.34.5-dev-build-7ebabd5d.0 → 2.34.5-dev-build-5cdf5961.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 +1 -1
- package/dist/src/import/tui/wizard-state-transitions.d.ts +1 -9
- package/dist/src/index.js +5 -3
- package/package.json +6 -6
- package/dist/src/import/tui/push-decision-gate-helpers.d.ts +0 -8
- package/dist/src/import/tui/steps/PushDecisionGateStep.d.ts +0 -12
- package/dist/src/runs/save-conflict.d.ts +0 -8
package/dist/package.json
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
export type WizardStepAfterScope = 'generating' | 'push-decision-gate';
|
|
2
|
-
export type WizardStepAfterCredentials = 'generating' | 'push-decision-gate';
|
|
3
|
-
export declare function nextStepAfterScopeGate(opts: {
|
|
4
|
-
acceptedCount: number;
|
|
5
|
-
}): WizardStepAfterScope;
|
|
6
|
-
export declare function nextStepAfterCredentialsValidated(opts: {
|
|
7
|
-
acceptedCount: number;
|
|
8
|
-
}): WizardStepAfterCredentials;
|
|
9
1
|
export declare function shouldGenerateAfterScopeGate(opts: {
|
|
10
2
|
acceptedCount: number;
|
|
11
3
|
}): boolean;
|
|
@@ -23,7 +15,7 @@ export declare function shouldBypassPreview(state: {
|
|
|
23
15
|
credentialsSkipped: boolean;
|
|
24
16
|
}): boolean;
|
|
25
17
|
export declare function buildSkippedPreviewTransition(): {
|
|
26
|
-
step: '
|
|
18
|
+
step: 'done';
|
|
27
19
|
serverPreview: null;
|
|
28
20
|
};
|
|
29
21
|
export type CycleGateAction = 'block' | 'proceed';
|
package/dist/src/index.js
CHANGED
|
@@ -9424,7 +9424,7 @@ function PathValidationStep({
|
|
|
9424
9424
|
onChangePath,
|
|
9425
9425
|
onQuit
|
|
9426
9426
|
}) {
|
|
9427
|
-
const [counts, setCounts] = useState6(null);
|
|
9427
|
+
const [counts, setCounts] = useState6(() => fileCountsCache.get(projectPath) ?? null);
|
|
9428
9428
|
const [error, setError] = useState6(null);
|
|
9429
9429
|
useEffect3(() => {
|
|
9430
9430
|
void (async () => {
|
|
@@ -9445,6 +9445,7 @@ Example: ~/projects/my-design-system`
|
|
|
9445
9445
|
return;
|
|
9446
9446
|
}
|
|
9447
9447
|
const result = await countFiles(projectPath);
|
|
9448
|
+
fileCountsCache.set(projectPath, result);
|
|
9448
9449
|
setCounts(result);
|
|
9449
9450
|
} catch (e) {
|
|
9450
9451
|
const code = e.code;
|
|
@@ -9584,12 +9585,13 @@ You don't have read access to this directory.`);
|
|
|
9584
9585
|
] })
|
|
9585
9586
|
] });
|
|
9586
9587
|
}
|
|
9587
|
-
var IGNORE_DIRS;
|
|
9588
|
+
var fileCountsCache, IGNORE_DIRS;
|
|
9588
9589
|
var init_PathValidationStep = __esm({
|
|
9589
9590
|
"packages/experience-design-system-cli/src/import/tui/steps/PathValidationStep.tsx"() {
|
|
9590
9591
|
"use strict";
|
|
9591
9592
|
init_theme();
|
|
9592
9593
|
init_useImmediateInput();
|
|
9594
|
+
fileCountsCache = /* @__PURE__ */ new Map();
|
|
9593
9595
|
IGNORE_DIRS = /* @__PURE__ */ new Set([
|
|
9594
9596
|
"node_modules",
|
|
9595
9597
|
"dist",
|
|
@@ -26703,7 +26705,7 @@ function shouldBypassPreview(state) {
|
|
|
26703
26705
|
return state.credentialsSkipped === true;
|
|
26704
26706
|
}
|
|
26705
26707
|
function buildSkippedPreviewTransition() {
|
|
26706
|
-
return { step: "
|
|
26708
|
+
return { step: "done", serverPreview: null };
|
|
26707
26709
|
}
|
|
26708
26710
|
function resolveCycleGateAction(opts) {
|
|
26709
26711
|
if (!opts.hasCycles) return "proceed";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experience-design-system-cli",
|
|
3
|
-
"version": "2.34.5-dev-build-
|
|
3
|
+
"version": "2.34.5-dev-build-5cdf5961.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"svelte": "^5.56.4",
|
|
42
42
|
"ts-morph": "^27.0.2",
|
|
43
43
|
"typescript": "^5.9.3",
|
|
44
|
-
"@contentful/experience-design-system-
|
|
45
|
-
"@contentful/experience-design-system-
|
|
44
|
+
"@contentful/experience-design-system-types": "2.34.5-dev-build-5cdf5961.0",
|
|
45
|
+
"@contentful/experience-design-system-cli-v2": "2.34.5-dev-build-5cdf5961.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@tsconfig/node24": "^24.0.4",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"ink-testing-library": "^4.0.0",
|
|
55
55
|
"typescript-eslint": "^8.67.0",
|
|
56
56
|
"vitest": "^4.0.16",
|
|
57
|
-
"@contentful/experience-design-system-client": "2.34.5-dev-build-
|
|
58
|
-
"@contentful/experience-design-system-extraction": "2.34.5-dev-build-
|
|
59
|
-
"@contentful/experience-design-system-generation": "2.34.5-dev-build-
|
|
57
|
+
"@contentful/experience-design-system-client": "2.34.5-dev-build-5cdf5961.0",
|
|
58
|
+
"@contentful/experience-design-system-extraction": "2.34.5-dev-build-5cdf5961.0",
|
|
59
|
+
"@contentful/experience-design-system-generation": "2.34.5-dev-build-5cdf5961.0"
|
|
60
60
|
},
|
|
61
61
|
"repository": {
|
|
62
62
|
"type": "git",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { PushDecisionChoice } from './steps/PushDecisionGateStep.js';
|
|
2
|
-
export type GateAction = 'save-and-push' | 'push-only' | 'save-only';
|
|
3
|
-
/**
|
|
4
|
-
* Maps a `PushDecisionGateStep` choice to the wizard action it triggers.
|
|
5
|
-
* Centralizing this keeps the gate component free of wizard-side semantics
|
|
6
|
-
* and gives us a unit-testable seam between UI choice and side-effect.
|
|
7
|
-
*/
|
|
8
|
-
export declare function chooseGateAction(choice: PushDecisionChoice): GateAction;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type PushDecisionChoice = 'both' | 'push-only' | 'save-only';
|
|
3
|
-
type PushDecisionGateStepProps = {
|
|
4
|
-
summary: string;
|
|
5
|
-
context: string;
|
|
6
|
-
fileList: string;
|
|
7
|
-
onChoice: (choice: PushDecisionChoice) => void;
|
|
8
|
-
onQuit: () => void;
|
|
9
|
-
pushDisabled?: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare function PushDecisionGateStep({ summary, context, onChoice, onQuit, pushDisabled, }: PushDecisionGateStepProps): React.ReactElement;
|
|
12
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type SaveConflictGateProps = {
|
|
3
|
-
path: string;
|
|
4
|
-
onOverwrite: () => void;
|
|
5
|
-
onNew: () => void;
|
|
6
|
-
onCancel: () => void;
|
|
7
|
-
};
|
|
8
|
-
export declare function SaveConflictGate({ path, onOverwrite, onNew, onCancel }: SaveConflictGateProps): React.ReactElement;
|