builder.io 1.6.12 → 1.6.13
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/cli/index.cjs +236 -235
- package/cli/index.cjs.map +4 -4
- package/core/index.cjs +1 -1
- package/core/index.mjs +1 -1
- package/node/index.cjs +1 -1
- package/node/index.mjs +1 -1
- package/package.json +1 -1
- package/server/index.cjs +129 -132
- package/server/index.mjs +129 -132
- package/types/cli/figma-publish.d.ts +3 -3
- package/types/cli/figma-utils.d.ts +6 -5
- package/types/tsconfig.tsbuildinfo +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import ts from "typescript";
|
|
1
2
|
import type { DevTools, DevToolsSys, RepoInfo } from "../types";
|
|
2
3
|
import type { CLIArgs } from "./index";
|
|
3
4
|
import { type FigmaBuilderLink } from "./figma-utils";
|
|
@@ -17,13 +18,12 @@ export interface PublishedMapping {
|
|
|
17
18
|
userId: string;
|
|
18
19
|
userContext: UserContext;
|
|
19
20
|
}
|
|
20
|
-
export declare function findMappingsFromFiles({ sys, force, mappingFiles,
|
|
21
|
+
export declare function findMappingsFromFiles({ sys, force, mappingFiles, }: {
|
|
21
22
|
force?: boolean;
|
|
22
23
|
mappingFiles: string[];
|
|
23
|
-
print: boolean;
|
|
24
24
|
sys: DevToolsSys;
|
|
25
25
|
}): Promise<{
|
|
26
26
|
figmaBuilderLinks: FigmaBuilderLink[];
|
|
27
|
-
|
|
27
|
+
diagnostics: ts.Diagnostic[];
|
|
28
28
|
figmaLinksToResolve: string[];
|
|
29
29
|
}>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { ExportType } from "../types";
|
|
1
|
+
import { type Credentials, type FigmaAuth } from "./credentials";
|
|
2
|
+
import type { DevToolsSys, ExportType } from "../types";
|
|
3
|
+
import type { CLIArgs } from "./index";
|
|
3
4
|
export interface FigmaComponentInput {
|
|
4
5
|
id: string;
|
|
5
6
|
name: string;
|
|
@@ -39,18 +40,18 @@ export declare const parseFigmaURL: (str: string) => {
|
|
|
39
40
|
fileID: string;
|
|
40
41
|
nodeId: string;
|
|
41
42
|
} | null;
|
|
42
|
-
export declare const getFigmaNodeData: (auth: {
|
|
43
|
+
export declare const getFigmaNodeData: (sys: DevToolsSys, args: CLIArgs, auth: {
|
|
43
44
|
access_token: string;
|
|
44
45
|
oauth: boolean;
|
|
45
46
|
}, fileId: string, nodeIds: string, depth?: number) => Promise<any>;
|
|
46
47
|
export declare function getFigmaComponentName(name: string): string;
|
|
47
48
|
export declare function getImportDataFromToken(credentials: Credentials, token: string, verbose: boolean): Promise<(readonly [string, FigmaComponentInfo])[]>;
|
|
48
49
|
export declare function needsFigmaAuth(urls: string[]): boolean;
|
|
49
|
-
export declare function getFigmaNodeDataFromURLs(figmaAuth: {
|
|
50
|
+
export declare function getFigmaNodeDataFromURLs(sys: DevToolsSys, args: CLIArgs, figmaAuth: {
|
|
50
51
|
access_token: string;
|
|
51
52
|
oauth: boolean;
|
|
52
53
|
} | undefined, builderAuth: {
|
|
53
54
|
privateKey: string;
|
|
54
55
|
spaceId: string;
|
|
55
56
|
}, urls: string[]): Promise<(readonly [string, FigmaComponentInfo])[]>;
|
|
56
|
-
export declare function inPlaceResolveFigmaURLs(figmaAuth: FigmaAuth, figmaBuilderLinks: FigmaBuilderLink[], figmaLinksToResolve: string[]): Promise<void>;
|
|
57
|
+
export declare function inPlaceResolveFigmaURLs(sys: DevToolsSys, args: CLIArgs, figmaAuth: FigmaAuth, figmaBuilderLinks: FigmaBuilderLink[], figmaLinksToResolve: string[]): Promise<void>;
|