@builder.io/ai-utils 0.18.0 → 0.18.2
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/package.json +1 -1
- package/src/codegen.d.ts +62 -0
- package/src/completion.d.ts +147 -151
- package/src/events.d.ts +281 -333
- package/src/mapping.d.ts +66 -66
- package/src/messages.d.ts +214 -283
- package/src/messages.js +12 -12
- package/src/organization.d.ts +366 -351
- package/src/projects.d.ts +433 -571
- package/src/projects.js +17 -18
- package/src/repo-indexing.d.ts +96 -114
- package/src/repo-indexing.js +5 -5
- package/src/settings.d.ts +13 -15
- package/src/settings.js +26 -27
- package/src/vscode-tunnel.d.ts +8 -23
- package/src/vscode-tunnel.js +22 -36
package/src/mapping.d.ts
CHANGED
|
@@ -1,87 +1,87 @@
|
|
|
1
1
|
import type { ESMImport } from "./codegen";
|
|
2
2
|
export interface RawFigmaJson {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
documents: any[];
|
|
4
|
+
document?: any;
|
|
5
|
+
components?: Record<string, any>;
|
|
6
|
+
styles?: Record<string, any>;
|
|
7
|
+
componentSets?: Record<string, any>;
|
|
8
|
+
schemaVersion?: number;
|
|
9
9
|
}
|
|
10
10
|
export interface UserContext {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
client: string;
|
|
12
|
+
clientVersion: string;
|
|
13
|
+
nodeVersion: string;
|
|
14
|
+
systemPlatform: string;
|
|
15
|
+
frameworks: string[];
|
|
16
|
+
systemEOL: string;
|
|
17
|
+
systemArch: string;
|
|
18
|
+
systemShell?: string;
|
|
19
|
+
inGitRepo?: boolean;
|
|
20
|
+
[key: string]: string | string[] | boolean | undefined;
|
|
21
21
|
}
|
|
22
22
|
export type ExportType = "default" | "named";
|
|
23
23
|
/**
|
|
24
24
|
* Gets the latest component mappings for a space
|
|
25
25
|
*/
|
|
26
26
|
export interface FigmaMappingsData {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
id: string;
|
|
28
|
+
figmaBuilderLinks: FigmaBuilderLink[];
|
|
29
|
+
framework: string;
|
|
30
|
+
version?: number;
|
|
31
|
+
createdDate?: string;
|
|
32
|
+
local: boolean;
|
|
33
|
+
userEmail?: string;
|
|
34
|
+
remoteUrl?: string;
|
|
35
35
|
}
|
|
36
36
|
export interface FigmaBuilderLink {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
37
|
+
builderName: string;
|
|
38
|
+
figmaName: string;
|
|
39
|
+
figmaKey: string;
|
|
40
|
+
figmaUrl?: string;
|
|
41
|
+
inputMapper?: string;
|
|
42
|
+
originalInputMapper?: string;
|
|
43
|
+
exportType?: ExportType;
|
|
44
|
+
importName?: string;
|
|
45
|
+
importPath?: string;
|
|
46
|
+
source: string;
|
|
47
|
+
loc?: string;
|
|
48
|
+
imports?: ESMImport[];
|
|
49
|
+
importStrings?: string[];
|
|
50
50
|
}
|
|
51
51
|
export interface FigmaMapperFile {
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
filePath: string;
|
|
53
|
+
content: string;
|
|
54
54
|
}
|
|
55
55
|
export interface PublishedMapping {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
56
|
+
figmaBuilderLinks: FigmaBuilderLink[];
|
|
57
|
+
mapperFiles: FigmaMapperFile[];
|
|
58
|
+
remoteUrl?: string;
|
|
59
|
+
defaultBranch?: string;
|
|
60
|
+
currentBranch?: string;
|
|
61
|
+
commit?: string;
|
|
62
|
+
spaceKind?: string;
|
|
63
|
+
userContext?: UserContext;
|
|
64
64
|
}
|
|
65
65
|
export interface FigmaComponentInfo {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
66
|
+
documentName: string;
|
|
67
|
+
key: string;
|
|
68
|
+
tree?: string;
|
|
69
|
+
jsx?: string;
|
|
70
|
+
type: string;
|
|
71
|
+
name: string;
|
|
72
|
+
exportJson?: any;
|
|
73
|
+
inputs: FigmaComponentInput[];
|
|
74
|
+
description: string;
|
|
75
|
+
documentationLinks: string[];
|
|
76
|
+
instanceId: string;
|
|
77
77
|
}
|
|
78
78
|
export interface FigmaComponentInput {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
79
|
+
id: string;
|
|
80
|
+
name: string;
|
|
81
|
+
value?: any;
|
|
82
|
+
type: string;
|
|
83
|
+
baseType: "text" | "variant" | "boolean" | "slot";
|
|
84
|
+
variantOptions?: string[];
|
|
85
|
+
isDefault: boolean;
|
|
86
|
+
ref?: string;
|
|
87
87
|
}
|