@builder.io/dev-tools 1.18.40-dev.202512081828.78246177d → 1.18.41-dev.202512091131.53e860cfb
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 +766 -612
- 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 +818 -657
- package/server/index.mjs +818 -657
- package/types/cli/index.d.ts +11 -0
- package/types/cli/launch/server.d.ts +2 -5
- package/types/cli/utils/gif-generator.d.ts +1 -0
- package/types/common/ast/component-input-types.d.ts +1 -1
- package/types/common/ast/convert-values.d.ts +1 -1
- package/types/common/utils.d.ts +1 -1
- package/types/tsconfig.tsbuildinfo +1 -1
- package/types/cli/indexing.d.ts +0 -5
- package/types/cli/launch/github.d.ts +0 -3
- package/types/core/component-map-builder.d.ts +0 -42
package/types/cli/indexing.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "../types";
|
|
2
|
-
import type { CLIArgs } from "./index";
|
|
3
|
-
import { type Credentials } from "./credentials";
|
|
4
|
-
export declare const runCodeIndexing: (_sys: DevToolsSys, _args: CLIArgs) => Promise<void>;
|
|
5
|
-
export declare const codeIndexing: (sys: DevToolsSys, credentials: Credentials) => Promise<void>;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Component Map Builder
|
|
3
|
-
*
|
|
4
|
-
* Builds a map of component names to their source file locations for the Design tab.
|
|
5
|
-
* This allows the Design tab to work without requiring React's _debugSource or customer plugins.
|
|
6
|
-
*/
|
|
7
|
-
import type { DevToolsSys } from "../types";
|
|
8
|
-
export interface ComponentLocation {
|
|
9
|
-
file: string;
|
|
10
|
-
line: number;
|
|
11
|
-
column: number;
|
|
12
|
-
displayName: string;
|
|
13
|
-
}
|
|
14
|
-
export type ComponentMap = Record<string, ComponentLocation[]>;
|
|
15
|
-
/**
|
|
16
|
-
* Build a map of component names to their source locations
|
|
17
|
-
*/
|
|
18
|
-
export declare function buildComponentMap(sys: DevToolsSys, rootDir?: string): Promise<ComponentMap>;
|
|
19
|
-
/**
|
|
20
|
-
* Cache for component map with file watching
|
|
21
|
-
*/
|
|
22
|
-
export declare class ComponentMapCache {
|
|
23
|
-
private cache;
|
|
24
|
-
private lastBuilt;
|
|
25
|
-
private building;
|
|
26
|
-
private readonly ttl;
|
|
27
|
-
private sys;
|
|
28
|
-
private rootDir;
|
|
29
|
-
constructor(sys: DevToolsSys, rootDir?: string);
|
|
30
|
-
/**
|
|
31
|
-
* Get the component map, building it if necessary
|
|
32
|
-
*/
|
|
33
|
-
get(): Promise<ComponentMap>;
|
|
34
|
-
/**
|
|
35
|
-
* Invalidate the cache
|
|
36
|
-
*/
|
|
37
|
-
invalidate(): void;
|
|
38
|
-
/**
|
|
39
|
-
* Force rebuild of the component map
|
|
40
|
-
*/
|
|
41
|
-
rebuild(): Promise<ComponentMap>;
|
|
42
|
-
}
|