@contentful/experience-design-system-cli 2.38.1-dev-build-760276ff.0 → 2.38.1-dev-build-a3bf0edc.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.38.1-dev-build-760276ff.0",
3
+ "version": "2.38.1-dev-build-a3bf0edc.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,5 +1,4 @@
1
1
  import { type TokenRow } from './logic.js';
2
- /** The generated tokens, read from the `tokens.json` the token stage wrote. */
3
2
  export declare function loadTokenRows(tokensPath: string): {
4
3
  ok: true;
5
4
  rows: TokenRow[];
@@ -1,5 +1,4 @@
1
1
  export interface TokenRow {
2
- /** Dot-separated DTCG path, e.g. `color.brand.primary`. */
3
2
  path: string;
4
3
  type: string;
5
4
  value: string;
@@ -9,12 +8,10 @@ export interface TokenRow {
9
8
  * walked. A token without its own `$type` takes the nearest group's.
10
9
  */
11
10
  export declare function flattenTokens(tree: unknown): TokenRow[];
12
- /** The longest token name and value, which a side-by-side listing needs room for. */
13
11
  export declare function longestEntries(rows: readonly TokenRow[]): {
14
12
  path: number;
15
13
  value: number;
16
14
  };
17
- /** The rows to draw: a window of `visibleCount` around the cursor, and how many rows are cut off above and below. */
18
15
  export declare function computeColumnWindow(total: number, cursor: number, visibleCount: number): {
19
16
  start: number;
20
17
  end: number;
@@ -4,6 +4,5 @@ interface TokenReviewScreenProps {
4
4
  onContinue: () => void;
5
5
  onQuit: () => void;
6
6
  }
7
- /** Shows the generated design tokens before the import goes on. Read only: the tokens are pushed as they are. */
8
7
  export declare function TokenReviewScreen({ tokensPath, onContinue, onQuit }: TokenReviewScreenProps): React.ReactElement;
9
8
  export {};
@@ -15,10 +15,7 @@ export interface ScopeGatePanelLayout {
15
15
  * the same header and indicator chrome.
16
16
  */
17
17
  export declare function computePanelLayout(mainVisibleCount: number): ScopeGatePanelLayout;
18
- /** The token column needs the width and something to show; without either the gate is the main column alone. */
19
- export declare function computeColumnWidths(totalWidth: number, hasTokens: boolean,
20
- /** The width the token column would like, so no row has to be cut. It gets at most what the terminal has left. */
21
- wantedTokensWidth?: number): {
18
+ export declare function computeColumnWidths(totalWidth: number, hasTokens: boolean, wantedTokensWidth?: number): {
22
19
  layout: 'single' | 'two-column';
23
20
  main: number;
24
21
  tokens: number;
@@ -9,6 +9,5 @@ interface TokensColumnProps {
9
9
  focused: boolean;
10
10
  visibleCount: number;
11
11
  }
12
- /** The design tokens that will be imported with the components. Read only: scrolling is all it allows. */
13
12
  export declare function TokensColumn(props: TokensColumnProps): React.ReactElement;
14
13
  export {};
@@ -1,9 +1,7 @@
1
1
  import type { ScopeComponent, ScopeDecisions } from './types.js';
2
2
  interface UseScopeGateOptions {
3
3
  components: ScopeComponent[];
4
- /** How many design tokens the side column lists. It is read only, so the hook only needs to scroll it. */
5
4
  tokenCount: number;
6
- /** The width the token column would like: its longest name and value side by side. */
7
5
  tokensWidth: number;
8
6
  onConfirm: (decisions: ScopeDecisions) => void;
9
7
  onQuit: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.38.1-dev-build-760276ff.0",
3
+ "version": "2.38.1-dev-build-a3bf0edc.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.38.1-dev-build-760276ff.0",
49
- "@contentful/experience-design-system-types": "2.38.1-dev-build-760276ff.0"
48
+ "@contentful/experience-design-system-backend-pipeline": "2.38.1-dev-build-a3bf0edc.0",
49
+ "@contentful/experience-design-system-types": "2.38.1-dev-build-a3bf0edc.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@tsconfig/node24": "^24.0.4",