builder.io 1.1.24-8 → 1.1.25-10
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 +254 -253
- package/cli/index.cjs.map +3 -3
- package/core/index.cjs +36 -36
- package/core/index.mjs +38 -38
- package/figma/index.cjs +1 -1
- package/figma/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 +13 -15
- package/server/index.mjs +13 -15
- package/types/cli/builder-add/interface.d.ts +1 -1
- package/types/cli/figma-publish.d.ts +2 -3
- package/types/cli/generate.d.ts +2 -1
- package/types/core/adapters/next/index.d.ts +1 -0
- package/types/core/adapters/react/index.d.ts +1 -0
- package/types/core/adapters/remix/index.d.ts +1 -0
- package/types/core/find-dependencies.d.ts +1 -1
- package/types/figma/index.d.ts +1 -0
- package/types/types.d.ts +1 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { DevTools, DevToolsSys, ExportType, RepoInfo } from "../types";
|
|
2
2
|
import type { FigmaArgs } from "./figma";
|
|
3
3
|
import { type FigmaAuth } from "./credentials";
|
|
4
|
-
import { spinner } from "@clack/prompts";
|
|
5
4
|
export interface FigmaBuilderLink {
|
|
6
5
|
builderName: string;
|
|
7
6
|
figmaName: string;
|
|
@@ -29,11 +28,11 @@ export interface PublishedMapping {
|
|
|
29
28
|
privateKey: string;
|
|
30
29
|
userId: string;
|
|
31
30
|
}
|
|
32
|
-
export declare function findMappingsFromFiles({ figmaAuth, force, mappingFiles,
|
|
31
|
+
export declare function findMappingsFromFiles({ figmaAuth, force, mappingFiles, print, sys, }: {
|
|
33
32
|
figmaAuth?: FigmaAuth;
|
|
34
33
|
force?: boolean;
|
|
35
34
|
mappingFiles: string[];
|
|
36
|
-
|
|
35
|
+
print: boolean;
|
|
37
36
|
sys: DevToolsSys;
|
|
38
37
|
}): Promise<{
|
|
39
38
|
figmaBuilderLinks: FigmaBuilderLink[];
|
package/types/cli/generate.d.ts
CHANGED
|
@@ -47,7 +47,8 @@ export interface MappingCodeV2 {
|
|
|
47
47
|
previousCode?: string;
|
|
48
48
|
prompt?: string;
|
|
49
49
|
}
|
|
50
|
-
export declare function
|
|
50
|
+
export declare function generateReactInterface(registeredCmp: ComponentInfo, cmpRegistry: ComponentRegistry, addChildrenOptions: boolean): string;
|
|
51
|
+
export declare function getMappingData(figmaNode: FigmaComponentInfo, registeredCmp: ComponentInfo, cmpRegistry: ComponentRegistry, useJSX: boolean, addChildrenOptions: boolean): MappingCodeV2;
|
|
51
52
|
export declare const getTypeFromComponentInput: (input: ComponentInput) => string;
|
|
52
53
|
export declare const getPropertyAccessor: (name: string) => string;
|
|
53
54
|
export declare function getMappingPrompt(figmaNode: FigmaComponentInfo, registeredCmp: ComponentInfo, cmpRegistry: ComponentRegistry, useJSX?: boolean): string;
|
package/types/figma/index.d.ts
CHANGED
|
@@ -73,4 +73,5 @@ export interface FigmaTokenMapper {
|
|
|
73
73
|
designTokenMapper: (token: string) => string | undefined | boolean;
|
|
74
74
|
}
|
|
75
75
|
export declare function figmaMapping<T extends BaseFigmaProps = FigmaProps>(_config: FigmaMappingWithKeyMapper<T> | FigmaMappingWithUrlMapper<T> | FigmaGenericMapper | FigmaTokenMapper): void;
|
|
76
|
+
export declare function explicitFalse(value: any): any;
|
|
76
77
|
export {};
|
package/types/types.d.ts
CHANGED
|
@@ -93,6 +93,7 @@ export interface DevToolsAdapter {
|
|
|
93
93
|
getRegistry: (opts?: GetRegistryOptions) => Promise<ComponentRegistry>;
|
|
94
94
|
getRegistryPath: () => string;
|
|
95
95
|
loadComponent: (opts: LoadComponentOptions) => Promise<LoadComponent>;
|
|
96
|
+
addExternalPackage: (pkgName: string) => void;
|
|
96
97
|
registerComponent: (opts: RegisterComponentOptions) => Promise<ComponentRegistry>;
|
|
97
98
|
unregisterComponent: (opts: UnregisterComponentOptions) => Promise<ComponentRegistry>;
|
|
98
99
|
setRegisteredComponentInfo: (opts: SetComponentInfoOptions) => Promise<ComponentRegistry>;
|