builder.io 1.6.18 → 1.6.19
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 +248 -248
- package/cli/index.cjs.map +4 -4
- package/cli/main.cjs +7 -1
- package/core/index.cjs +31 -31
- package/core/index.mjs +30 -30
- package/node/index.cjs +1 -1
- package/node/index.mjs +1 -1
- package/package.json +1 -1
- package/server/index.cjs +36 -36
- package/server/index.mjs +29 -29
- package/types/cli/figma-utils.d.ts +9 -1
- package/types/core/adapters/angular/index.d.ts +1 -0
- package/types/tsconfig.tsbuildinfo +1 -1
|
@@ -2,16 +2,23 @@ import { type Credentials, type FigmaAuth } from "./credentials";
|
|
|
2
2
|
import type { DevToolsSys } from "../types";
|
|
3
3
|
import type { CLIArgs } from "./index";
|
|
4
4
|
import type { FigmaBuilderLink, FigmaComponentInfo } from "$/ai-utils";
|
|
5
|
+
type FigmaAPIOpts = {
|
|
6
|
+
auth: {
|
|
7
|
+
access_token: string;
|
|
8
|
+
oauth: boolean;
|
|
9
|
+
};
|
|
10
|
+
params?: Record<string, any>;
|
|
11
|
+
};
|
|
5
12
|
export declare const REMOVE_EMOJI: RegExp;
|
|
6
13
|
export declare const parseFigmaURL: (str: string) => {
|
|
7
14
|
fileID: string;
|
|
8
15
|
nodeId: string;
|
|
9
16
|
} | null;
|
|
17
|
+
export declare const figmaApi: (sys: DevToolsSys, args: CLIArgs, path: string, { auth, params }: FigmaAPIOpts) => Promise<any>;
|
|
10
18
|
export declare const getFigmaNodeData: (sys: DevToolsSys, args: CLIArgs, auth: {
|
|
11
19
|
access_token: string;
|
|
12
20
|
oauth: boolean;
|
|
13
21
|
}, fileId: string, nodeIds: string, depth?: number) => Promise<any>;
|
|
14
|
-
export declare function getFigmaComponentName(name: string): string;
|
|
15
22
|
export declare function getImportDataFromToken(credentials: Credentials, token: string, verbose: boolean): Promise<(readonly [string, FigmaComponentInfo])[]>;
|
|
16
23
|
export declare function needsFigmaAuth(urls: string[]): boolean;
|
|
17
24
|
export declare function getFigmaNodeDataFromURLs(sys: DevToolsSys, args: CLIArgs, figmaAuth: {
|
|
@@ -22,3 +29,4 @@ export declare function getFigmaNodeDataFromURLs(sys: DevToolsSys, args: CLIArgs
|
|
|
22
29
|
spaceId: string;
|
|
23
30
|
}, urls: string[]): Promise<(readonly [string, FigmaComponentInfo])[]>;
|
|
24
31
|
export declare function inPlaceResolveFigmaURLs(sys: DevToolsSys, args: CLIArgs, figmaAuth: FigmaAuth, figmaBuilderLinks: FigmaBuilderLink[], figmaLinksToResolve: string[]): Promise<void>;
|
|
32
|
+
export {};
|