builder.io 1.5.10 → 1.5.12

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.
@@ -32,4 +32,5 @@ export declare const runCodeCommand: (sys: DevToolsSys, subCommand: string, args
32
32
  export declare const runCodeGen: (sys: DevToolsSys, args: CLIArgs) => Promise<undefined>;
33
33
  export declare function createApp(userId: string, spaceId: string, privateKey: string, body: any): Promise<void>;
34
34
  export declare function transformStream(body: ReadableStream<Uint8Array> | null): AsyncGenerator<string, void, unknown>;
35
+ export declare function checkProjectRoot(sys: DevToolsSys): Promise<void>;
35
36
  export {};
@@ -1,6 +1,6 @@
1
1
  import type { CLIArgs } from "./index";
2
2
  import type { DevToolsSys } from "../types";
3
- import { type FigmaBuilderLink } from "./figma-publish";
3
+ import { type FigmaBuilderLink } from "./figma-utils";
4
4
  interface KVGetRequest {
5
5
  privateKey: string;
6
6
  spaceId: string;
@@ -1,19 +1,6 @@
1
- import type { DevTools, DevToolsSys, ExportType, RepoInfo } from "../types";
1
+ import type { DevTools, DevToolsSys, RepoInfo } from "../types";
2
2
  import type { CLIArgs } from "./index";
3
- import { type FigmaAuth } from "./credentials";
4
- export interface FigmaBuilderLink {
5
- builderName: string;
6
- figmaName: string;
7
- figmaKey: string;
8
- figmaUrl?: string;
9
- inputMapper?: string;
10
- originalInputMapper?: string;
11
- exportType?: ExportType;
12
- importName?: string;
13
- importPath?: string;
14
- source: string;
15
- loc?: string;
16
- }
3
+ import { type FigmaBuilderLink } from "./figma-utils";
17
4
  export declare const runFigmaPublish: (sys: DevToolsSys, args: CLIArgs) => Promise<undefined>;
18
5
  export declare const FIGMA_CONNECT_CALL = "figmaMapping";
19
6
  export declare function findAllMappingFiles(sys: DevToolsSys): Promise<string[]>;
@@ -28,8 +15,7 @@ export interface PublishedMapping {
28
15
  privateKey: string;
29
16
  userId: string;
30
17
  }
31
- export declare function findMappingsFromFiles({ figmaAuth, force, mappingFiles, print, sys, }: {
32
- figmaAuth?: FigmaAuth;
18
+ export declare function findMappingsFromFiles({ force, mappingFiles, print, sys, }: {
33
19
  force?: boolean;
34
20
  mappingFiles: string[];
35
21
  print: boolean;
@@ -37,4 +23,5 @@ export declare function findMappingsFromFiles({ figmaAuth, force, mappingFiles,
37
23
  }): Promise<{
38
24
  figmaBuilderLinks: FigmaBuilderLink[];
39
25
  foundErrors: boolean;
26
+ figmaLinksToResolve: string[];
40
27
  }>;
@@ -1,4 +1,5 @@
1
- import type { Credentials } from "./credentials";
1
+ import type { Credentials, FigmaAuth } from "./credentials";
2
+ import type { ExportType } from "../types";
2
3
  export interface FigmaComponentInput {
3
4
  id: string;
4
5
  name: string;
@@ -9,6 +10,19 @@ export interface FigmaComponentInput {
9
10
  isDefault: boolean;
10
11
  ref?: string;
11
12
  }
13
+ export interface FigmaBuilderLink {
14
+ builderName: string;
15
+ figmaName: string;
16
+ figmaKey: string;
17
+ figmaUrl?: string;
18
+ inputMapper?: string;
19
+ originalInputMapper?: string;
20
+ exportType?: ExportType;
21
+ importName?: string;
22
+ importPath?: string;
23
+ source: string;
24
+ loc?: string;
25
+ }
12
26
  export interface FigmaComponentInfo {
13
27
  documentName: string;
14
28
  key: string;
@@ -39,3 +53,4 @@ export declare function getFigmaNodeDataFromURLs(figmaAuth: {
39
53
  privateKey: string;
40
54
  spaceId: string;
41
55
  }, urls: string[]): Promise<(readonly [string, FigmaComponentInfo])[]>;
56
+ export declare function inPlaceResolveFigmaURLs(figmaAuth: FigmaAuth, figmaBuilderLinks: FigmaBuilderLink[], figmaLinksToResolve: string[]): Promise<void>;