@contentful/experience-design-system-cli 2.34.5-dev-build-0b6144ae.0 → 2.34.5-dev-build-d408bfc4.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.
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { type Instance, type RenderOptions } from 'ink';
3
+ export declare function GoodbyeBoundary({ children }: {
4
+ children: React.ReactNode;
5
+ }): React.ReactElement;
6
+ export declare function renderWithGoodbye(element: React.ReactElement, options?: RenderOptions): Instance;
@@ -0,0 +1,6 @@
1
+ export type TerminalSize = {
2
+ columns: number;
3
+ rows: number;
4
+ };
5
+ /** Keep layout consumers synchronized with terminal resize events. */
6
+ export declare function useTerminalSize(): TerminalSize;
@@ -0,0 +1,37 @@
1
+ import { type BoxProps } from 'ink';
2
+ import type { ReactElement, ReactNode } from 'react';
3
+ export type WindowDirection = 'up' | 'down';
4
+ /** Size a standalone panel to the terminal while reserving a small safety margin. */
5
+ export declare function terminalPanelHeight(rows: number, reservedRows?: number): number;
6
+ export interface WindowedPanelProps {
7
+ width: number;
8
+ height?: number;
9
+ title?: string;
10
+ focused: boolean;
11
+ children: ReactNode;
12
+ }
13
+ export interface FixedPanelProps {
14
+ width: number;
15
+ height?: number;
16
+ minHeight?: BoxProps['minHeight'];
17
+ focused?: boolean;
18
+ borderStyle?: BoxProps['borderStyle'];
19
+ borderColor?: BoxProps['borderColor'];
20
+ paddingLeft?: BoxProps['paddingLeft'];
21
+ clipOverflow?: boolean;
22
+ children: ReactNode;
23
+ }
24
+ /** Shared panel frame that clips content instead of resizing its layout slot. */
25
+ export declare function FixedPanel({ width, height, minHeight, focused, borderStyle, borderColor, paddingLeft, clipOverflow, children, }: FixedPanelProps): ReactElement;
26
+ /** Shared frame for panels whose viewport must not change with their contents. */
27
+ export declare function WindowedPanel({ width, height, title, focused, children }: WindowedPanelProps): ReactElement;
28
+ export declare function WindowedPanelHeader({ title, width, focused, }: {
29
+ title: string;
30
+ width: number;
31
+ focused: boolean;
32
+ }): ReactElement;
33
+ export declare function formatWindowIndicator(direction: WindowDirection, count: number): string;
34
+ export declare function WindowIndicator({ direction, count }: {
35
+ direction: WindowDirection;
36
+ count: number;
37
+ }): ReactElement;
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-0b6144ae.0",
3
+ "version": "2.34.5-dev-build-d408bfc4.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-cli-v2": "2.34.5-dev-build-0b6144ae.0",
45
- "@contentful/experience-design-system-types": "2.34.5-dev-build-0b6144ae.0"
44
+ "@contentful/experience-design-system-cli-v2": "2.34.5-dev-build-d408bfc4.0",
45
+ "@contentful/experience-design-system-types": "2.34.5-dev-build-d408bfc4.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-extraction": "2.34.5-dev-build-0b6144ae.0",
58
- "@contentful/experience-design-system-generation": "2.34.5-dev-build-0b6144ae.0",
59
- "@contentful/experience-design-system-client": "2.34.5-dev-build-0b6144ae.0"
57
+ "@contentful/experience-design-system-client": "2.34.5-dev-build-d408bfc4.0",
58
+ "@contentful/experience-design-system-extraction": "2.34.5-dev-build-d408bfc4.0",
59
+ "@contentful/experience-design-system-generation": "2.34.5-dev-build-d408bfc4.0"
60
60
  },
61
61
  "repository": {
62
62
  "type": "git",
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import type { LineageEntry, LineageJumpable } from '../../../../import/tui/hooks/useLineage.js';
3
- export interface LineagePanelProps {
4
- focusedComponentKey: string;
5
- entries: LineageEntry[];
6
- /** Index into the jumpables list — NOT into entries. */
7
- cursor: number;
8
- jumpables: LineageJumpable[];
9
- /** Max entry rows rendered at once. Larger lineages window around the cursor. */
10
- maxRows?: number;
11
- /** Constrain the panel box to a fixed column width (e.g. the sidebar slot). */
12
- width?: number;
13
- }
14
- export declare function LineagePanel({ focusedComponentKey, entries, cursor, jumpables, maxRows, width, }: LineagePanelProps): React.ReactElement;
@@ -1,32 +0,0 @@
1
- import { type ComponentGraphNode } from '../../../analyze/composite-closure.js';
2
- export type LineageEntry = {
3
- kind: 'section';
4
- label: string;
5
- } | {
6
- kind: 'ancestor';
7
- label: string;
8
- jumpTarget: string;
9
- } | {
10
- kind: 'descendant';
11
- label: string;
12
- jumpTarget: string;
13
- } | {
14
- kind: 'empty';
15
- label: string;
16
- };
17
- export interface LineageJumpable {
18
- /** Original index into the `entries` array — callers highlight the source row. */
19
- i: number;
20
- entry: LineageEntry;
21
- }
22
- export interface UseLineageResult {
23
- entries: LineageEntry[];
24
- /**
25
- * Jumpable entries — those the operator can Tab/Enter to. Excludes
26
- * `section` / `empty` rows. Order matches `entries` minus the non-jumpable
27
- * rows; each item carries the original `entries` index so callers can
28
- * highlight the source row.
29
- */
30
- jumpables: LineageJumpable[];
31
- }
32
- export declare function useLineage(focusedKey: string | null, graph: ComponentGraphNode[]): UseLineageResult;
@@ -1,18 +0,0 @@
1
- import type { LineageJumpable } from './hooks/useLineage.js';
2
- type LineageInputKey = {
3
- upArrow: boolean;
4
- downArrow: boolean;
5
- tab: boolean;
6
- return: boolean;
7
- };
8
- export declare function handleLineageNavigation({ key, cursor, jumpables, onCursorChange, onJump, onClose, allowTab, }: {
9
- input?: string;
10
- key: LineageInputKey;
11
- cursor: number;
12
- jumpables: LineageJumpable[];
13
- onCursorChange: (update: number | ((current: number) => number)) => void;
14
- onJump: (name: string) => void;
15
- onClose: () => void;
16
- allowTab: boolean;
17
- }): boolean;
18
- export {};