sculpted 0.0.0 → 0.1.0
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/LICENSE +105 -0
- package/README.md +233 -0
- package/dist/index.d.mts +129 -0
- package/dist/index.mjs +3 -0
- package/dist/patcher-BAw2kF1Q.mjs +2594 -0
- package/dist/protocol-BJm-xGHP.mjs +54 -0
- package/dist/runtime-DwE3PVhB.d.mts +64 -0
- package/dist/runtime.d.mts +2 -0
- package/dist/runtime.mjs +613 -0
- package/dist/sourceSyntax-DanNzS7Y.d.mts +103 -0
- package/dist/types-CdByW0ji.d.mts +381 -0
- package/dist/ui.d.mts +54 -0
- package/dist/ui.mjs +11125 -0
- package/dist/vite.d.mts +85 -0
- package/dist/vite.mjs +2325 -0
- package/examples/manual-vite-preact-pandacss/README.md +75 -0
- package/examples/manual-vite-preact-pandacss/index.html +12 -0
- package/examples/manual-vite-preact-pandacss/package.json +23 -0
- package/examples/manual-vite-preact-pandacss/panda.config.ts +43 -0
- package/examples/manual-vite-preact-pandacss/pnpm-lock.yaml +3359 -0
- package/examples/manual-vite-preact-pandacss/pnpm-workspace.yaml +2 -0
- package/examples/manual-vite-preact-pandacss/postcss.config.cjs +5 -0
- package/examples/manual-vite-preact-pandacss/src/TsrxManualPanel.tsrx +47 -0
- package/examples/manual-vite-preact-pandacss/src/index.css +8 -0
- package/examples/manual-vite-preact-pandacss/src/main.style.ts +33 -0
- package/examples/manual-vite-preact-pandacss/src/main.tsx +484 -0
- package/examples/manual-vite-preact-pandacss/src/tsrx.d.ts +5 -0
- package/examples/manual-vite-preact-pandacss/tsconfig.json +21 -0
- package/examples/manual-vite-preact-pandacss/vite.config.ts +20 -0
- package/package.json +66 -8
- package/readme.md +0 -1
package/dist/vite.d.mts
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { l as SourceSyntaxOption } from "./sourceSyntax-DanNzS7Y.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/vite/types.d.ts
|
|
4
|
+
type InspectorVitePluginOptions = {
|
|
5
|
+
readonly enabled?: boolean;
|
|
6
|
+
readonly projectRoot?: string;
|
|
7
|
+
readonly include?: readonly string[];
|
|
8
|
+
readonly exclude?: readonly string[];
|
|
9
|
+
readonly panda?: {
|
|
10
|
+
readonly configPath?: string;
|
|
11
|
+
readonly cssImportSources?: readonly string[];
|
|
12
|
+
readonly recipeImportSources?: readonly string[];
|
|
13
|
+
readonly cssFunctionNames?: readonly string[];
|
|
14
|
+
readonly cxFunctionNames?: readonly string[];
|
|
15
|
+
};
|
|
16
|
+
readonly manifest?: {
|
|
17
|
+
readonly outFile?: string;
|
|
18
|
+
readonly virtualEndpoint?: string;
|
|
19
|
+
};
|
|
20
|
+
readonly metadata?: {
|
|
21
|
+
readonly virtualEndpoint?: string;
|
|
22
|
+
};
|
|
23
|
+
readonly runtime?: {
|
|
24
|
+
readonly inject?: boolean;
|
|
25
|
+
readonly globalName?: string;
|
|
26
|
+
};
|
|
27
|
+
readonly attributes?: {
|
|
28
|
+
readonly editId?: string;
|
|
29
|
+
readonly source?: string;
|
|
30
|
+
readonly jsxSource?: string;
|
|
31
|
+
readonly component?: string;
|
|
32
|
+
};
|
|
33
|
+
readonly sourceSyntax?: SourceSyntaxOption;
|
|
34
|
+
};
|
|
35
|
+
type InspectorVitePlugin = {
|
|
36
|
+
readonly name: string;
|
|
37
|
+
readonly enforce: 'pre';
|
|
38
|
+
configResolved?: (config: ViteResolvedConfig) => void;
|
|
39
|
+
configureServer?: (server: ViteDevServer) => void;
|
|
40
|
+
transformIndexHtml?: () => readonly HtmlTagDescriptor[] | undefined;
|
|
41
|
+
transform?: (code: string, id: string) => TransformResult | null;
|
|
42
|
+
};
|
|
43
|
+
type HtmlTagDescriptor = {
|
|
44
|
+
readonly tag: string;
|
|
45
|
+
readonly attrs?: Record<string, string>;
|
|
46
|
+
readonly injectTo?: 'head' | 'body' | 'head-prepend' | 'body-prepend';
|
|
47
|
+
};
|
|
48
|
+
type ViteResolvedConfig = {
|
|
49
|
+
readonly command?: string;
|
|
50
|
+
readonly mode?: string;
|
|
51
|
+
readonly root?: string;
|
|
52
|
+
};
|
|
53
|
+
type ViteDevServer = {
|
|
54
|
+
readonly middlewares: {
|
|
55
|
+
use: (route: string, handler: (request: ViteDevRequest, response: {
|
|
56
|
+
setHeader: (name: string, value: string) => void;
|
|
57
|
+
statusCode: number;
|
|
58
|
+
end: (body?: string) => void;
|
|
59
|
+
}) => void | Promise<void>) => void;
|
|
60
|
+
};
|
|
61
|
+
readonly moduleGraph?: {
|
|
62
|
+
getModulesByFile?: (file: string) => Set<unknown> | undefined;
|
|
63
|
+
invalidateModule?: (module: unknown) => void;
|
|
64
|
+
};
|
|
65
|
+
readonly watcher?: {
|
|
66
|
+
emit?: (event: 'change', file: string) => void;
|
|
67
|
+
};
|
|
68
|
+
readonly ws?: {
|
|
69
|
+
send: (event: string, payload: unknown) => void;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
type ViteDevRequest = {
|
|
73
|
+
readonly url?: string;
|
|
74
|
+
readonly method?: string;
|
|
75
|
+
[Symbol.asyncIterator]?: () => AsyncIterator<Buffer | string | Uint8Array>;
|
|
76
|
+
};
|
|
77
|
+
type TransformResult = {
|
|
78
|
+
readonly code: string;
|
|
79
|
+
readonly map: null;
|
|
80
|
+
};
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region src/vite.d.ts
|
|
83
|
+
declare function preactPandaInspector(options?: InspectorVitePluginOptions): InspectorVitePlugin;
|
|
84
|
+
//#endregion
|
|
85
|
+
export { type InspectorVitePlugin, type InspectorVitePluginOptions, preactPandaInspector };
|