@builder.io/dev-tools 1.0.1 → 1.0.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.
@@ -0,0 +1,5 @@
1
+ import type { ModifiedFile } from "../../../types";
2
+ import type { ReactDevToolsSys } from ".";
3
+ export declare function reactEnsureBuilderSetup(_sys: ReactDevToolsSys): Promise<ModifiedFile[]>;
4
+ export declare function reactEnsureFigmaImportSetup(_sys: ReactDevToolsSys): Promise<ModifiedFile[]>;
5
+ export declare function reactEnsureBuilderRegistry(sys: ReactDevToolsSys): Promise<ModifiedFile[]>;
@@ -0,0 +1,12 @@
1
+ import type ts from "typescript";
2
+ import type { ComponentInfo } from "../../../types";
3
+ import type { ReactDevToolsSys } from "./index";
4
+ export declare function parseReactRegistryFromFile(sys: ReactDevToolsSys): Promise<{
5
+ sourceFile: ts.SourceFile;
6
+ components: ComponentInfo[];
7
+ }>;
8
+ export declare function parseReactRegistryFromCode(sys: ReactDevToolsSys, code: string): Promise<{
9
+ sourceFile: ts.SourceFile;
10
+ components: ComponentInfo[];
11
+ }>;
12
+ export declare function ensureBuilderIsInitialized(sys: ReactDevToolsSys, sourceFile: ts.SourceFile, typescriptEnabled: boolean): ts.SourceFile;
@@ -0,0 +1,3 @@
1
+ import type { ComponentRegistry, SetComponentInfoOptions, SetComponentInputOptions } from "../../../types";
2
+ import type { ReactDevToolsSys } from "./index";
3
+ export declare function reactComponentRegistry(sys: ReactDevToolsSys, cmpId: string | string[] | null, registerCmp: boolean, unregisterCmp: boolean, setCmpInfo: SetComponentInfoOptions | null, setCmpInput: SetComponentInputOptions | null, writeRegistry: boolean, readAllInputTypes: boolean): Promise<ComponentRegistry>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export declare function createReactTestMemSys(rootDir?: string): Promise<import("./index").ReactDevToolsSys>;
2
+ export declare function createReactAppTestFixturesSys(): Promise<import("./index").ReactDevToolsSys>;
3
+ export declare function createReactAppTestFixturesDevTools(): Promise<{
4
+ sys: import("./index").ReactDevToolsSys;
5
+ devTools: import("../../../types").DevToolsAdapter;
6
+ }>;