@contentful/experience-design-system-cli 2.37.1-dev-build-8b126ca1.0 → 2.37.1-dev-build-f0533497.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.
Files changed (75) hide show
  1. package/dist/app.js +11929 -3783
  2. package/dist/index.js +18109 -8913
  3. package/dist/package.json +1 -1
  4. package/dist/src/tui/import/steps/06-extraction/find-skill-path.d.ts +1 -0
  5. package/dist/src/tui/import/steps/06-extraction/logic.d.ts +4 -25
  6. package/dist/src/tui/import/steps/06-extraction/run.d.ts +13 -11
  7. package/dist/src/tui/import/steps/06-extraction/selection.d.ts +1 -1
  8. package/dist/src/tui/import/steps/06-extraction/types.d.ts +3 -1
  9. package/legacy/dist/package.json +4 -1
  10. package/legacy/dist/src/index.js +14983 -19537
  11. package/legacy/package.json +1 -1
  12. package/package.json +4 -4
  13. package/dist/src/tui/import/steps/06-extraction/processes.d.ts +0 -45
  14. package/legacy/dist/src/analyze/cycle-view.d.ts +0 -7
  15. package/legacy/dist/src/import/agent-model-resolve.d.ts +0 -27
  16. package/legacy/dist/src/import/command.d.ts +0 -2
  17. package/legacy/dist/src/import/composition-options.d.ts +0 -7
  18. package/legacy/dist/src/import/cycle-auto-reject.d.ts +0 -4
  19. package/legacy/dist/src/import/path-utils.d.ts +0 -15
  20. package/legacy/dist/src/import/tui/CustomPromptBanner.d.ts +0 -5
  21. package/legacy/dist/src/import/tui/WizardApp.d.ts +0 -24
  22. package/legacy/dist/src/import/tui/autocomplete.d.ts +0 -5
  23. package/legacy/dist/src/import/tui/components/CompactControlBar.d.ts +0 -4
  24. package/legacy/dist/src/import/tui/components/LegendEntry.d.ts +0 -2
  25. package/legacy/dist/src/import/tui/components/LivePreviewSummary.d.ts +0 -14
  26. package/legacy/dist/src/import/tui/components/ReviewComponentPanel.d.ts +0 -33
  27. package/legacy/dist/src/import/tui/components/ReviewDetailsEditor.d.ts +0 -15
  28. package/legacy/dist/src/import/tui/components/ReviewDialogs.d.ts +0 -28
  29. package/legacy/dist/src/import/tui/components/ReviewStatus.d.ts +0 -15
  30. package/legacy/dist/src/import/tui/components/SearchMatchSummary.d.ts +0 -11
  31. package/legacy/dist/src/import/tui/components/SpaceEnvironment.d.ts +0 -7
  32. package/legacy/dist/src/import/tui/components/StepHeader.d.ts +0 -8
  33. package/legacy/dist/src/import/tui/cycle-panel-scroll.d.ts +0 -8
  34. package/legacy/dist/src/import/tui/group-collapse.d.ts +0 -2
  35. package/legacy/dist/src/import/tui/handoff.d.ts +0 -36
  36. package/legacy/dist/src/import/tui/history.d.ts +0 -23
  37. package/legacy/dist/src/import/tui/hooks/review-input.d.ts +0 -39
  38. package/legacy/dist/src/import/tui/hooks/sidebar-search-state.d.ts +0 -17
  39. package/legacy/dist/src/import/tui/hooks/useOverlayPanel.d.ts +0 -13
  40. package/legacy/dist/src/import/tui/hooks/useReviewEditor.d.ts +0 -49
  41. package/legacy/dist/src/import/tui/hooks/useReviewPreview.d.ts +0 -25
  42. package/legacy/dist/src/import/tui/hooks/useReviewSession.d.ts +0 -95
  43. package/legacy/dist/src/import/tui/hooks/useReviewSurfaceState.d.ts +0 -12
  44. package/legacy/dist/src/import/tui/lineage-layout.d.ts +0 -68
  45. package/legacy/dist/src/import/tui/preview-confirmation-input.d.ts +0 -5
  46. package/legacy/dist/src/import/tui/push-progress.d.ts +0 -9
  47. package/legacy/dist/src/import/tui/run-print-files-helpers.d.ts +0 -26
  48. package/legacy/dist/src/import/tui/run-teaser.d.ts +0 -5
  49. package/legacy/dist/src/import/tui/runLivePreview.d.ts +0 -45
  50. package/legacy/dist/src/import/tui/sidebar-help.d.ts +0 -2
  51. package/legacy/dist/src/import/tui/sidebar-input.d.ts +0 -13
  52. package/legacy/dist/src/import/tui/sidebar-navigation.d.ts +0 -18
  53. package/legacy/dist/src/import/tui/sidebar-width.d.ts +0 -1
  54. package/legacy/dist/src/import/tui/step-filters.d.ts +0 -19
  55. package/legacy/dist/src/import/tui/steps/DoneStep.d.ts +0 -28
  56. package/legacy/dist/src/import/tui/steps/ErrorStep.d.ts +0 -10
  57. package/legacy/dist/src/import/tui/steps/GateStep.d.ts +0 -15
  58. package/legacy/dist/src/import/tui/steps/GenerateReviewStep.d.ts +0 -37
  59. package/legacy/dist/src/import/tui/steps/PreviewValidationErrorStep.d.ts +0 -11
  60. package/legacy/dist/src/import/tui/steps/PushingStep.d.ts +0 -9
  61. package/legacy/dist/src/import/tui/steps/RunningStep.d.ts +0 -32
  62. package/legacy/dist/src/import/tui/steps/WizardPreviewStep.d.ts +0 -21
  63. package/legacy/dist/src/import/tui/steps/auto-reject-decision.d.ts +0 -7
  64. package/legacy/dist/src/import/tui/steps/breaking-change-format.d.ts +0 -2
  65. package/legacy/dist/src/import/tui/steps/enumerate-cycle-breaks.d.ts +0 -14
  66. package/legacy/dist/src/import/tui/steps/preview-diff.d.ts +0 -10
  67. package/legacy/dist/src/import/tui/steps/review-details-panel.d.ts +0 -26
  68. package/legacy/dist/src/import/tui/steps/review-json-panel.d.ts +0 -7
  69. package/legacy/dist/src/import/tui/useFinalizePreview.d.ts +0 -39
  70. package/legacy/dist/src/import/tui/useLivePreview.d.ts +0 -39
  71. package/legacy/dist/src/import/tui/wizard-422-helpers.d.ts +0 -48
  72. package/legacy/dist/src/import/tui/wizard-state-transitions.d.ts +0 -30
  73. package/legacy/dist/src/runs/path-prompt.d.ts +0 -8
  74. package/legacy/dist/src/tui/use-blinking-cursor.d.ts +0 -1
  75. package/legacy/dist/src/tui/use-timed-spinner.d.ts +0 -4
@@ -1,39 +0,0 @@
1
- import type { ServerPreviewResponse } from '@contentful/experience-design-system-types';
2
- export type UseLivePreviewOptions = {
3
- enabled: boolean;
4
- sessionId: string;
5
- tokensPath: string;
6
- spaceId: string;
7
- environmentId: string;
8
- cmaToken: string;
9
- host: string;
10
- onResult: (response: ServerPreviewResponse | null) => void;
11
- debounceMs?: number;
12
- /** Preview an empty-but-present CDF document (delete-all diff) when nothing
13
- * is accepted, so the final-review UI can show what a push would delete. */
14
- deleteAllComponents?: boolean;
15
- };
16
- type LivePreviewStatus = 'idle' | 'running';
17
- export type UseLivePreviewReturn = {
18
- trigger: () => void;
19
- status: LivePreviewStatus;
20
- disabled: boolean;
21
- };
22
- /**
23
- * Hook that owns the post-save live-preview side effect for the wizard's
24
- * final-review step. Centralizes:
25
- *
26
- * - 500ms debounce so rapid Ctrl+S spam collapses to a single API call.
27
- * - Generation tag on every fire so a stale in-flight call's response is
28
- * discarded if a newer fire has already kicked off (in lieu of an
29
- * AbortController for v1).
30
- * - Disable-for-session on 401/403: subsequent triggers no-op until the
31
- * wizard exits. One-line stderr warning. No modal, no re-prompt — the
32
- * operator is mid-edit and we must not interrupt the flow.
33
- * - Status state for the sidebar spinner (`'idle' | 'running'`).
34
- *
35
- * Cred-missing / disabled / not-enabled cases short-circuit BEFORE the timer
36
- * is set so we don't accumulate dead timers.
37
- */
38
- export declare function useLivePreview(opts: UseLivePreviewOptions): UseLivePreviewReturn;
39
- export {};
@@ -1,48 +0,0 @@
1
- import { ApiError, type PreviewValidationError } from '../../apply/api-client.js';
2
- import { patchReviewStateWithValidationErrors, rejectComponentsByName } from '../../analyze/select/command.js';
3
- export type Preview422Outcome = {
4
- kind: 'validation-error';
5
- errors: PreviewValidationError[];
6
- missingNames: string[];
7
- } | {
8
- kind: 'unparseable';
9
- message: string;
10
- } | {
11
- kind: 'not-422';
12
- };
13
- /**
14
- * Decide what to do with an `ApiError` raised by `previewImport()`.
15
- * Returns `not-422` if the caller should fall through to its other branches
16
- * (404 / 401 / 403 / generic), `unparseable` if the body cannot be parsed
17
- * into structured component-level errors (caller should route to the generic
18
- * error step), or `validation-error` with the patched-state side effects
19
- * already applied.
20
- *
21
- * Pure decision logic + a single delegated side effect to
22
- * `patchReviewStateWithValidationErrors`. Extracted from `WizardApp.runPreview`
23
- * so the routing is unit-testable without driving the full TUI.
24
- */
25
- export declare function handlePreview422(err: ApiError, extractSessionId: string | null, patchFn?: typeof patchReviewStateWithValidationErrors): Promise<Preview422Outcome>;
26
- /**
27
- * The WizardState patch the wizard should spread into any update that
28
- * transitions OUT of the preview-validation-error step (e.g. into
29
- * preview-gate after a successful retry). Without this, the validation-error
30
- * arrays linger in state and any future code path that reads them sees stale
31
- * data from a prior failed attempt.
32
- */
33
- export declare function clearedValidationErrorState(): {
34
- previewValidationErrors: PreviewValidationError[];
35
- previewValidationMissingNames: string[];
36
- };
37
- /**
38
- * Run the "skip and retry" side effect: dedup the offending component
39
- * names from a list of errors and call `rejectComponentsByName`. Returns
40
- * the deduped names so the caller can log them or include them in test
41
- * assertions. No-op when sessionId is null or errors are empty.
42
- *
43
- * The DB update inside `rejectComponentsByName` is what makes the next
44
- * preview see a CDF document with the offenders excluded — see SP-3 retro
45
- * Bug 1: writing to the JSON state file alone is not enough because
46
- * `loadCDFComponents` reads from the pipeline DB.
47
- */
48
- export declare function applySkipValidationErrors(sessionId: string | null, errors: PreviewValidationError[], rejectFn?: typeof rejectComponentsByName): Promise<string[]>;
@@ -1,30 +0,0 @@
1
- export declare function shouldGenerateAfterScopeGate(opts: {
2
- acceptedCount: number;
3
- }): boolean;
4
- export declare function shouldGenerateAfterCredentialsValidated(opts: {
5
- acceptedCount: number;
6
- }): boolean;
7
- export declare function shouldSkipFinalReviewAfterCredentials(state: {
8
- generateSessionId: string | null;
9
- finalReviewPassed: boolean;
10
- }): boolean;
11
- export declare function resolveNoCacheForGenerate(opts: {
12
- cliNoCache: boolean;
13
- }): boolean;
14
- export declare function shouldBypassPreview(state: {
15
- credentialsSkipped: boolean;
16
- }): boolean;
17
- export declare function buildSkippedPreviewTransition(): {
18
- step: 'done';
19
- serverPreview: null;
20
- };
21
- export type CycleGateAction = 'block' | 'proceed';
22
- export declare function resolveCycleGateAction(opts: {
23
- hasCycles: boolean;
24
- }): CycleGateAction;
25
- export declare function shouldRefusePush(state: {
26
- credentialsSkipped: boolean;
27
- }): boolean;
28
- export declare function buildSkippedPushTransition(): {
29
- step: 'print-gate';
30
- };
@@ -1,8 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export declare function useBlinkingCursor(): boolean;
@@ -1,4 +0,0 @@
1
- export declare function useTimedSpinner(): {
2
- spinner: React.ReactElement;
3
- elapsed: string;
4
- };