@pandacss/compiler 2.0.0-beta.9 → 2.0.1
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/binding.cjs +199 -85
- package/dist/{chunk-G4RVGB4O.js → chunk-CDATBPPB.js} +436 -123
- package/dist/index.d.ts +20 -4
- package/dist/index.js +1 -1
- package/dist/loader.d.ts +1 -1
- package/dist/loader.js +1 -1
- package/dist/tooling/index.d.ts +4 -1
- package/dist/tooling/index.js +252 -63
- package/dist/{types-DsStlLvF.d.ts → types-CxQirxMo.d.ts} +4 -7
- package/package.json +21 -17
|
@@ -35,8 +35,7 @@ interface Matcher {
|
|
|
35
35
|
/** Omit to match any imported name (used for recipes/patterns). */
|
|
36
36
|
names?: string[];
|
|
37
37
|
}
|
|
38
|
-
type JsxFramework = 'react' | 'solid' | 'preact' | 'vue' |
|
|
39
|
-
type CssSyntax = 'template-literal' | 'object-literal';
|
|
38
|
+
type JsxFramework = 'react' | 'solid' | 'preact' | 'vue' | (string & {});
|
|
40
39
|
interface Matchers {
|
|
41
40
|
css: Matcher;
|
|
42
41
|
recipe: Matcher;
|
|
@@ -51,8 +50,6 @@ interface Matchers {
|
|
|
51
50
|
tokenDictionary?: TokenDictionary;
|
|
52
51
|
/** Resolved JSX factory names that accept member-chain tags (`<styled.div>`). */
|
|
53
52
|
jsxFactories?: string[];
|
|
54
|
-
/** CSS authoring syntax preference. Omit for object-literal mode. */
|
|
55
|
-
syntax?: CssSyntax;
|
|
56
53
|
}
|
|
57
54
|
/** Two parallel `path → string` maps backing `token()` resolution.
|
|
58
55
|
* - `values['colors.red.500']` → raw value, e.g. `'#ef4444'`
|
|
@@ -128,13 +125,13 @@ interface RawSourceTransformBinding {
|
|
|
128
125
|
* methods the facade hides. */
|
|
129
126
|
interface RawCompiler extends NativeCompiler, RawSourceTransformBinding, BuildInfoNative, RawDesignSystemBinding, RawFileSystemBinding, RawPathBinding {
|
|
130
127
|
inspectFileSource(path: string, source: string): Omit<FileInspectionResult, 'path'>;
|
|
131
|
-
|
|
128
|
+
tokenDictionary?(): TokenDictionary | undefined;
|
|
132
129
|
registerUtilityTransform?(id: string, callback: (resolved: unknown, original: unknown) => unknown): void;
|
|
133
130
|
registerPatternTransform?(id: string, callback: (props: unknown, helpers: Record<string, unknown>) => unknown): void;
|
|
134
131
|
registerSourceTransform?(id: string, filter: SerializedHookFilter | undefined, callback: (filePath: string, content: string) => string | undefined): void;
|
|
135
132
|
}
|
|
136
133
|
interface CompilerConstructor {
|
|
137
|
-
fromConfig(config: SerializedConfig, options?: NativeCompilerOptions, utilityValuesCallbacks?: Record<string, (
|
|
134
|
+
fromConfig(config: SerializedConfig, options?: NativeCompilerOptions, utilityValuesCallbacks?: Record<string, (theme: (category: string) => Record<string, string> | undefined) => unknown>): RawCompiler;
|
|
138
135
|
}
|
|
139
136
|
interface NativeBinding {
|
|
140
137
|
startTracing?(options?: TraceOptions): boolean;
|
|
@@ -152,4 +149,4 @@ interface NativeBinding {
|
|
|
152
149
|
Compiler: CompilerConstructor;
|
|
153
150
|
}
|
|
154
151
|
|
|
155
|
-
export type { CompileInput as C, ExtractedCallsResult as E, ImportSpecifierKind as I, JsxFramework as J, Matcher as M, NativeCompiler as N, RawSourceTransformBinding as R, TraceOptions as T, ImportSpecifier as a, ImportKind as b, ImportRecord as c, ImportScanResult as d,
|
|
152
|
+
export type { CompileInput as C, ExtractedCallsResult as E, ImportSpecifierKind as I, JsxFramework as J, Matcher as M, NativeCompiler as N, RawSourceTransformBinding as R, TraceOptions as T, ImportSpecifier as a, ImportKind as b, ImportRecord as c, ImportScanResult as d, Matchers as e, TokenDictionary as f, MatchedImport as g, ExtractedJsxResult as h, ExtractDebugResult as i, ExtractorSession as j, ExtractorSessionConstructor as k, NativeCompilerOptions as l, RawCompiler as m, CompilerConstructor as n, NativeBinding as o };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/compiler",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Native Rust binding for the Panda compiler engine",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -56,29 +56,32 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@napi-rs/wasm-runtime": "^1.1.6",
|
|
59
|
-
"@pandacss/compiler-shared": "2.0.
|
|
60
|
-
"@pandacss/config": "2.0.
|
|
61
|
-
"@pandacss/types": "2.0.
|
|
59
|
+
"@pandacss/compiler-shared": "2.0.1",
|
|
60
|
+
"@pandacss/config": "2.0.1",
|
|
61
|
+
"@pandacss/types": "2.0.1"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@
|
|
65
|
-
"
|
|
66
|
-
"@
|
|
67
|
-
"@pandacss/preset-
|
|
64
|
+
"@emnapi/core": "1.11.2",
|
|
65
|
+
"@emnapi/runtime": "1.11.2",
|
|
66
|
+
"@napi-rs/cli": "3.9.0",
|
|
67
|
+
"@pandacss/preset-base": "2.0.1",
|
|
68
|
+
"@pandacss/preset-panda": "2.0.1",
|
|
69
|
+
"emnapi": "1.11.2",
|
|
70
|
+
"lightningcss": "1.33.0",
|
|
71
|
+
"rolldown": "1.2.7"
|
|
68
72
|
},
|
|
69
73
|
"engines": {
|
|
70
74
|
"node": ">=22"
|
|
71
75
|
},
|
|
72
76
|
"optionalDependencies": {
|
|
73
|
-
"@pandacss/compiler-darwin-arm64": "2.0.
|
|
74
|
-
"@pandacss/compiler-darwin-x64": "2.0.
|
|
75
|
-
"@pandacss/compiler-linux-x64-gnu": "2.0.
|
|
76
|
-
"@pandacss/compiler-linux-arm64-gnu": "2.0.
|
|
77
|
-
"@pandacss/compiler-linux-x64-musl": "2.0.
|
|
78
|
-
"@pandacss/compiler-linux-arm64-musl": "2.0.
|
|
79
|
-
"@pandacss/compiler-win32-x64-msvc": "2.0.
|
|
80
|
-
"@pandacss/compiler-win32-arm64-msvc": "2.0.
|
|
81
|
-
"@pandacss/compiler-wasm32-wasi": "2.0.0-beta.9"
|
|
77
|
+
"@pandacss/compiler-darwin-arm64": "2.0.1",
|
|
78
|
+
"@pandacss/compiler-darwin-x64": "2.0.1",
|
|
79
|
+
"@pandacss/compiler-linux-x64-gnu": "2.0.1",
|
|
80
|
+
"@pandacss/compiler-linux-arm64-gnu": "2.0.1",
|
|
81
|
+
"@pandacss/compiler-linux-x64-musl": "2.0.1",
|
|
82
|
+
"@pandacss/compiler-linux-arm64-musl": "2.0.1",
|
|
83
|
+
"@pandacss/compiler-win32-x64-msvc": "2.0.1",
|
|
84
|
+
"@pandacss/compiler-win32-arm64-msvc": "2.0.1"
|
|
82
85
|
},
|
|
83
86
|
"scripts": {
|
|
84
87
|
"build": "pnpm build:native && pnpm build:js",
|
|
@@ -87,6 +90,7 @@
|
|
|
87
90
|
"build:native": "napi build --platform --release --manifest-path crate/Cargo.toml --output-dir . --js binding.cjs --dts native.d.ts",
|
|
88
91
|
"dev": "pnpm build:fast --watch",
|
|
89
92
|
"test": "vitest run",
|
|
93
|
+
"test:native": "pnpm build:native && vitest run",
|
|
90
94
|
"verify:webcontainer": "node scripts/verify-webcontainer-api.mjs"
|
|
91
95
|
}
|
|
92
96
|
}
|