@contentful/experience-design-system-cli 2.34.5-dev-build-d0fcb46e.0 → 2.34.5-dev-build-0dbc122c.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/analyze/select/tui/components/FieldEditor.d.ts +2 -1
- package/dist/src/analyze/select/tui/components/FinalizeDialog.d.ts +2 -2
- package/dist/src/import/tui/components/CompactControlBar.d.ts +3 -1
- package/dist/src/import/tui/components/ReviewStatus.d.ts +0 -5
- package/dist/src/import/tui/hooks/review-input.d.ts +1 -1
- package/dist/src/import/tui/lineage-layout.d.ts +2 -2
- package/dist/src/index.js +1187 -1298
- package/package.json +6 -6
- package/dist/src/analyze/select/tui/components/LineagePanel.d.ts +0 -14
- package/dist/src/import/tui/hooks/useLineage.d.ts +0 -32
- package/dist/src/import/tui/lineage-input.d.ts +0 -18
package/dist/package.json
CHANGED
|
@@ -17,6 +17,7 @@ export type FieldEditorProps = {
|
|
|
17
17
|
value: string;
|
|
18
18
|
width: number;
|
|
19
19
|
height: number;
|
|
20
|
+
fixedHeight?: boolean;
|
|
20
21
|
active?: boolean;
|
|
21
22
|
onChange: (value: string) => void;
|
|
22
23
|
onSave: () => void;
|
|
@@ -59,5 +60,5 @@ export declare function computeAllowedComponentReplacementCandidates(projectSlot
|
|
|
59
60
|
name: string;
|
|
60
61
|
allowedComponents: string[];
|
|
61
62
|
}[], targetSlotName: string, replaceIndex: number): string[];
|
|
62
|
-
export declare function FieldEditor({ value, width, height, active, onChange, onSave, onDiscard, onExit, metadata, onTogglePropRationale, propRationaleKey, onToggleComponentRationale, componentRationaleKey, onToggleSourceExternal, onTextEntryActiveChange, projectSlotGraph, currentComponentName, onDirtyChange, discardTrigger, initialFocusTarget, showHiddenProps, showInlineRationales, }: FieldEditorProps): React.ReactElement;
|
|
63
|
+
export declare function FieldEditor({ value, width, height, fixedHeight, active, onChange, onSave, onDiscard, onExit, metadata, onTogglePropRationale, propRationaleKey, onToggleComponentRationale, componentRationaleKey, onToggleSourceExternal, onTextEntryActiveChange, projectSlotGraph, currentComponentName, onDirtyChange, discardTrigger, initialFocusTarget, showHiddenProps, showInlineRationales, }: FieldEditorProps): React.ReactElement;
|
|
63
64
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ComponentTypeSummary } from '@contentful/experience-design-system-types';
|
|
3
|
-
/** Max removed-component lines shown at once; the rest scroll with
|
|
3
|
+
/** Max removed-component lines shown at once; the rest scroll with arrow keys.
|
|
4
4
|
* Exported so the parent's scroll-offset clamping stays in sync. */
|
|
5
5
|
export declare const FINALIZE_REMOVED_WINDOW = 6;
|
|
6
6
|
type FinalizeDialogProps = {
|
|
@@ -15,7 +15,7 @@ type FinalizeDialogProps = {
|
|
|
15
15
|
/** Status of the accepted-set preview fired when the dialog opened. While
|
|
16
16
|
* 'running', the deletion section shows a spinner instead of a (stale) list. */
|
|
17
17
|
previewStatus?: 'idle' | 'running' | 'done' | 'error';
|
|
18
|
-
/** Scroll offset into the removed list (owned by the parent;
|
|
18
|
+
/** Scroll offset into the removed list (owned by the parent; arrow keys adjust it). */
|
|
19
19
|
removedScrollOffset?: number;
|
|
20
20
|
};
|
|
21
21
|
export declare function FinalizeDialog({ accepted, rejected, needsReview, onConfirm, onCancel, removed, previewStatus, removedScrollOffset, }: FinalizeDialogProps): React.ReactElement;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export declare function CompactControlBar({ hasGroupRoots, searchActive }: {
|
|
1
|
+
export declare function CompactControlBar({ hasGroupRoots, searchActive, showJson, tokenReviewAvailable, }: {
|
|
2
2
|
hasGroupRoots: boolean;
|
|
3
3
|
searchActive: boolean;
|
|
4
|
+
showJson?: boolean;
|
|
5
|
+
tokenReviewAvailable?: boolean;
|
|
4
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,11 +9,6 @@ export type ReviewStatusEntry = {
|
|
|
9
9
|
status: ReviewComponentStatus;
|
|
10
10
|
};
|
|
11
11
|
export declare function countReviewStatuses(entries: ReadonlyArray<ReviewStatusEntry>): ReviewStatusCounts;
|
|
12
|
-
export declare function ReviewStatusBar({ entries, onApproveAll, onFinalize, }: {
|
|
13
|
-
entries: ReadonlyArray<ReviewStatusEntry>;
|
|
14
|
-
onApproveAll: () => void;
|
|
15
|
-
onFinalize: () => void;
|
|
16
|
-
}): React.ReactElement;
|
|
17
12
|
export declare function ReviewLoadingState(): React.ReactElement;
|
|
18
13
|
export declare function ReviewLoadError({ message }: {
|
|
19
14
|
message: string;
|
|
@@ -27,7 +27,7 @@ export type ReviewPanelShortcutState = TokenReviewInputState & RationalePanelInp
|
|
|
27
27
|
showJson: boolean;
|
|
28
28
|
};
|
|
29
29
|
export declare function handleReviewPanelShortcuts(input: string, key: ImmediateInputKey, state: ReviewPanelShortcutState): boolean;
|
|
30
|
-
export type ReviewViewToggleInputState = Pick<UseReviewEditorResult, 'setShowJson' | '
|
|
30
|
+
export type ReviewViewToggleInputState = Pick<UseReviewEditorResult, 'setShowJson' | 'setJsonScrollOffset' | 'pendingGRef'>;
|
|
31
31
|
export declare function handleReviewViewToggleInput(input: string, state: ReviewViewToggleInputState): boolean;
|
|
32
32
|
type JsonPanelInputState = Pick<UseReviewEditorResult, 'jsonScrollOffset' | 'setJsonScrollOffset' | 'pendingGRef'> & {
|
|
33
33
|
sidebarFocused: boolean;
|
|
@@ -40,7 +40,7 @@ export interface LineageLayoutInput {
|
|
|
40
40
|
export interface LineageLayout {
|
|
41
41
|
/** Rows the sidebar should render (`visibleCount`). Constant across open/closed. */
|
|
42
42
|
sidebarVisible: number;
|
|
43
|
-
/** Rows
|
|
43
|
+
/** Rows a sidebar replacement panel should window to (`maxRows`). */
|
|
44
44
|
panelMaxRows: number;
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
@@ -52,7 +52,7 @@ export declare function computeLineageLayout({ rows, panelOpen, entryCount }: Li
|
|
|
52
52
|
export interface SidebarBudget {
|
|
53
53
|
/** Rows the GroupedSidebar should render (`visibleCount`). */
|
|
54
54
|
sidebarVisibleCount: number;
|
|
55
|
-
/** Rows
|
|
55
|
+
/** Rows a sidebar replacement panel should window to (`maxRows`). */
|
|
56
56
|
panelMaxRows: number;
|
|
57
57
|
}
|
|
58
58
|
/**
|