@pandacss/compiler-wasm 2.0.0-beta.16 → 2.0.0-beta.18
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/dist/{chunk-NJUVM3GY.js → chunk-ZARW4JPN.js} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/{web-PCTKJFIY.js → web-JSAD2QZX.js} +1 -1
- package/dist/web.d.ts +2 -2
- package/dist/web.js +1 -1
- package/package.json +4 -4
- package/pkg-node/compiler_wasm.d.ts +1 -1
- package/pkg-node/compiler_wasm.js +6 -6
- package/pkg-node/compiler_wasm_bg.wasm +0 -0
- package/pkg-node/compiler_wasm_bg.wasm.d.ts +2 -2
- package/pkg-web/compiler_wasm.d.ts +3 -3
- package/pkg-web/compiler_wasm.js +6 -6
- package/pkg-web/compiler_wasm_bg.wasm +0 -0
- package/pkg-web/compiler_wasm_bg.wasm.d.ts +2 -2
|
@@ -81,7 +81,7 @@ function build(mod, config, callbacks, hooks) {
|
|
|
81
81
|
assertProjectHooks(hooks, callbacks);
|
|
82
82
|
const prepared = prepareCompilerConfig(config);
|
|
83
83
|
const compiler = mod.WasmCompiler.fromConfig(fs, prepared, buildFromConfigOptions(callbacks));
|
|
84
|
-
registerCallbacks(compiler, callbacks, hooks, compiler.
|
|
84
|
+
registerCallbacks(compiler, callbacks, hooks, compiler.tokenDictionary?.());
|
|
85
85
|
Object.defineProperty(compiler, "fs", { value: fs, enumerable: false });
|
|
86
86
|
Object.defineProperty(compiler, "path", { value: wasmPathSystem(compiler), enumerable: false });
|
|
87
87
|
const buildInfo = new BuildInfo(compiler);
|
package/dist/index.d.ts
CHANGED
|
@@ -151,10 +151,10 @@ interface WasmFromConfigOptions {
|
|
|
151
151
|
}
|
|
152
152
|
/**
|
|
153
153
|
* The raw wasm instance - superset of {@link Compiler} carrying the internal
|
|
154
|
-
* `
|
|
154
|
+
* `tokenDictionary` the facade hides.
|
|
155
155
|
*/
|
|
156
156
|
interface RawWasmCompiler extends WasmCompiler {
|
|
157
|
-
|
|
157
|
+
tokenDictionary?(): TokenDictionaryInput | undefined;
|
|
158
158
|
}
|
|
159
159
|
interface WasmModule {
|
|
160
160
|
WasmFileSystem: new () => WasmFileSystem;
|
package/dist/index.js
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
createCompilerFromWasmModule,
|
|
5
5
|
createUsageReport,
|
|
6
6
|
mergeCallbacks
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZARW4JPN.js";
|
|
8
8
|
|
|
9
9
|
// src/index.ts
|
|
10
|
-
import { createRequire } from "module";
|
|
10
|
+
import { createRequire } from "node:module";
|
|
11
11
|
import { mergeCallbacks as mergeCallbacks2, mergeHooks } from "@pandacss/compiler-shared";
|
|
12
12
|
|
|
13
13
|
// src/driver.ts
|
|
@@ -81,7 +81,7 @@ async function loadWasm() {
|
|
|
81
81
|
return mod;
|
|
82
82
|
}
|
|
83
83
|
async function createCompiler(config, options) {
|
|
84
|
-
const { createCompilerFromWasmModule: createCompilerFromWasmModule2 } = await import("./web-
|
|
84
|
+
const { createCompilerFromWasmModule: createCompilerFromWasmModule2 } = await import("./web-JSAD2QZX.js");
|
|
85
85
|
return createCompilerFromWasmModule2(await loadWasm(), config, options);
|
|
86
86
|
}
|
|
87
87
|
async function createCompilerFromSnapshot(snapshot, options) {
|
package/dist/web.d.ts
CHANGED
|
@@ -151,10 +151,10 @@ interface WasmFromConfigOptions {
|
|
|
151
151
|
}
|
|
152
152
|
/**
|
|
153
153
|
* The raw wasm instance - superset of {@link Compiler} carrying the internal
|
|
154
|
-
* `
|
|
154
|
+
* `tokenDictionary` the facade hides.
|
|
155
155
|
*/
|
|
156
156
|
interface RawWasmCompiler extends WasmCompiler {
|
|
157
|
-
|
|
157
|
+
tokenDictionary?(): TokenDictionaryInput | undefined;
|
|
158
158
|
}
|
|
159
159
|
interface WasmModule {
|
|
160
160
|
WasmFileSystem: new () => WasmFileSystem;
|
package/dist/web.js
CHANGED
|
@@ -81,7 +81,7 @@ function build(mod, config, callbacks, hooks) {
|
|
|
81
81
|
assertProjectHooks(hooks, callbacks);
|
|
82
82
|
const prepared = prepareCompilerConfig(config);
|
|
83
83
|
const compiler = mod.WasmCompiler.fromConfig(fs, prepared, buildFromConfigOptions(callbacks));
|
|
84
|
-
registerCallbacks(compiler, callbacks, hooks, compiler.
|
|
84
|
+
registerCallbacks(compiler, callbacks, hooks, compiler.tokenDictionary?.());
|
|
85
85
|
Object.defineProperty(compiler, "fs", { value: fs, enumerable: false });
|
|
86
86
|
Object.defineProperty(compiler, "path", { value: wasmPathSystem(compiler), enumerable: false });
|
|
87
87
|
const buildInfo = new BuildInfo(compiler);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/compiler-wasm",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.18",
|
|
4
4
|
"description": "WebAssembly binding for the Panda compiler engine (browser/playground target)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"pkg-web"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@pandacss/compiler-shared": "2.0.0-beta.
|
|
42
|
-
"@pandacss/types": "2.0.0-beta.
|
|
41
|
+
"@pandacss/compiler-shared": "2.0.0-beta.18",
|
|
42
|
+
"@pandacss/types": "2.0.0-beta.18"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@pandacss/config": "2.0.0-beta.
|
|
45
|
+
"@pandacss/config": "2.0.0-beta.18"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=22"
|
|
@@ -1165,10 +1165,10 @@ class WasmCompiler {
|
|
|
1165
1165
|
* Rust-built token dictionary projected into the small JS interop shape.
|
|
1166
1166
|
* @returns {any}
|
|
1167
1167
|
*/
|
|
1168
|
-
|
|
1168
|
+
tokenDictionary() {
|
|
1169
1169
|
try {
|
|
1170
1170
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1171
|
-
wasm.
|
|
1171
|
+
wasm.wasmcompiler_tokenDictionary(retptr, this.__wbg_ptr);
|
|
1172
1172
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1173
1173
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1174
1174
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -1721,8 +1721,8 @@ function __wbg_get_imports() {
|
|
|
1721
1721
|
return addHeapObject(ret);
|
|
1722
1722
|
},
|
|
1723
1723
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1724
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [String], shim_idx:
|
|
1725
|
-
const ret = makeClosure(arg0, arg1,
|
|
1724
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [String], shim_idx: 12, ret: Externref, inner_ret: Some(Externref) }, mutable: false }) -> Externref`.
|
|
1725
|
+
const ret = makeClosure(arg0, arg1, __wasm_bindgen_func_elem_514);
|
|
1726
1726
|
return addHeapObject(ret);
|
|
1727
1727
|
},
|
|
1728
1728
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -1759,10 +1759,10 @@ function __wbg_get_imports() {
|
|
|
1759
1759
|
};
|
|
1760
1760
|
}
|
|
1761
1761
|
|
|
1762
|
-
function
|
|
1762
|
+
function __wasm_bindgen_func_elem_514(arg0, arg1, arg2) {
|
|
1763
1763
|
const ptr0 = passStringToWasm0(arg2, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1764
1764
|
const len0 = WASM_VECTOR_LEN;
|
|
1765
|
-
const ret = wasm.
|
|
1765
|
+
const ret = wasm.__wasm_bindgen_func_elem_514(arg0, arg1, ptr0, len0);
|
|
1766
1766
|
return takeObject(ret);
|
|
1767
1767
|
}
|
|
1768
1768
|
|
|
Binary file
|
|
@@ -57,7 +57,7 @@ export const wasmcompiler_stripLayerOrderStatements: (a: number, b: number, c: n
|
|
|
57
57
|
export const wasmcompiler_suggestSemanticTokens: (a: number, b: number, c: number, d: number) => void;
|
|
58
58
|
export const wasmcompiler_suggestTokens: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
59
59
|
export const wasmcompiler_summary: (a: number, b: number) => void;
|
|
60
|
-
export const
|
|
60
|
+
export const wasmcompiler_tokenDictionary: (a: number, b: number) => void;
|
|
61
61
|
export const wasmcompiler_writeArtifacts: (a: number, b: number, c: number) => void;
|
|
62
62
|
export const wasmcompiler_writeCss: (a: number, b: number, c: number) => void;
|
|
63
63
|
export const wasmcompiler_writeLayerCss: (a: number, b: number, c: number) => void;
|
|
@@ -71,7 +71,7 @@ export const wasmfilesystem_new: () => number;
|
|
|
71
71
|
export const wasmfilesystem_readFile: (a: number, b: number, c: number, d: number) => void;
|
|
72
72
|
export const wasmfilesystem_removeFile: (a: number, b: number, c: number) => number;
|
|
73
73
|
export const installPanicHook: () => void;
|
|
74
|
-
export const
|
|
74
|
+
export const __wasm_bindgen_func_elem_514: (a: number, b: number, c: number, d: number) => number;
|
|
75
75
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
76
76
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
77
77
|
export const __wbindgen_export3: (a: number) => void;
|
|
@@ -346,7 +346,7 @@ export class WasmCompiler {
|
|
|
346
346
|
/**
|
|
347
347
|
* Rust-built token dictionary projected into the small JS interop shape.
|
|
348
348
|
*/
|
|
349
|
-
|
|
349
|
+
tokenDictionary(): any;
|
|
350
350
|
/**
|
|
351
351
|
* Generate artifacts and write them under `outdir`.
|
|
352
352
|
*
|
|
@@ -491,7 +491,7 @@ export interface InitOutput {
|
|
|
491
491
|
readonly wasmcompiler_suggestSemanticTokens: (a: number, b: number, c: number, d: number) => void;
|
|
492
492
|
readonly wasmcompiler_suggestTokens: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
493
493
|
readonly wasmcompiler_summary: (a: number, b: number) => void;
|
|
494
|
-
readonly
|
|
494
|
+
readonly wasmcompiler_tokenDictionary: (a: number, b: number) => void;
|
|
495
495
|
readonly wasmcompiler_writeArtifacts: (a: number, b: number, c: number) => void;
|
|
496
496
|
readonly wasmcompiler_writeCss: (a: number, b: number, c: number) => void;
|
|
497
497
|
readonly wasmcompiler_writeLayerCss: (a: number, b: number, c: number) => void;
|
|
@@ -505,7 +505,7 @@ export interface InitOutput {
|
|
|
505
505
|
readonly wasmfilesystem_readFile: (a: number, b: number, c: number, d: number) => void;
|
|
506
506
|
readonly wasmfilesystem_removeFile: (a: number, b: number, c: number) => number;
|
|
507
507
|
readonly installPanicHook: () => void;
|
|
508
|
-
readonly
|
|
508
|
+
readonly __wasm_bindgen_func_elem_514: (a: number, b: number, c: number, d: number) => number;
|
|
509
509
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
510
510
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
511
511
|
readonly __wbindgen_export3: (a: number) => void;
|
package/pkg-web/compiler_wasm.js
CHANGED
|
@@ -1165,10 +1165,10 @@ export class WasmCompiler {
|
|
|
1165
1165
|
* Rust-built token dictionary projected into the small JS interop shape.
|
|
1166
1166
|
* @returns {any}
|
|
1167
1167
|
*/
|
|
1168
|
-
|
|
1168
|
+
tokenDictionary() {
|
|
1169
1169
|
try {
|
|
1170
1170
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1171
|
-
wasm.
|
|
1171
|
+
wasm.wasmcompiler_tokenDictionary(retptr, this.__wbg_ptr);
|
|
1172
1172
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1173
1173
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1174
1174
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -1717,8 +1717,8 @@ function __wbg_get_imports() {
|
|
|
1717
1717
|
return addHeapObject(ret);
|
|
1718
1718
|
},
|
|
1719
1719
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1720
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [String], shim_idx:
|
|
1721
|
-
const ret = makeClosure(arg0, arg1,
|
|
1720
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [String], shim_idx: 12, ret: Externref, inner_ret: Some(Externref) }, mutable: false }) -> Externref`.
|
|
1721
|
+
const ret = makeClosure(arg0, arg1, __wasm_bindgen_func_elem_514);
|
|
1722
1722
|
return addHeapObject(ret);
|
|
1723
1723
|
},
|
|
1724
1724
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -1755,10 +1755,10 @@ function __wbg_get_imports() {
|
|
|
1755
1755
|
};
|
|
1756
1756
|
}
|
|
1757
1757
|
|
|
1758
|
-
function
|
|
1758
|
+
function __wasm_bindgen_func_elem_514(arg0, arg1, arg2) {
|
|
1759
1759
|
const ptr0 = passStringToWasm0(arg2, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1760
1760
|
const len0 = WASM_VECTOR_LEN;
|
|
1761
|
-
const ret = wasm.
|
|
1761
|
+
const ret = wasm.__wasm_bindgen_func_elem_514(arg0, arg1, ptr0, len0);
|
|
1762
1762
|
return takeObject(ret);
|
|
1763
1763
|
}
|
|
1764
1764
|
|
|
Binary file
|
|
@@ -57,7 +57,7 @@ export const wasmcompiler_stripLayerOrderStatements: (a: number, b: number, c: n
|
|
|
57
57
|
export const wasmcompiler_suggestSemanticTokens: (a: number, b: number, c: number, d: number) => void;
|
|
58
58
|
export const wasmcompiler_suggestTokens: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
59
59
|
export const wasmcompiler_summary: (a: number, b: number) => void;
|
|
60
|
-
export const
|
|
60
|
+
export const wasmcompiler_tokenDictionary: (a: number, b: number) => void;
|
|
61
61
|
export const wasmcompiler_writeArtifacts: (a: number, b: number, c: number) => void;
|
|
62
62
|
export const wasmcompiler_writeCss: (a: number, b: number, c: number) => void;
|
|
63
63
|
export const wasmcompiler_writeLayerCss: (a: number, b: number, c: number) => void;
|
|
@@ -71,7 +71,7 @@ export const wasmfilesystem_new: () => number;
|
|
|
71
71
|
export const wasmfilesystem_readFile: (a: number, b: number, c: number, d: number) => void;
|
|
72
72
|
export const wasmfilesystem_removeFile: (a: number, b: number, c: number) => number;
|
|
73
73
|
export const installPanicHook: () => void;
|
|
74
|
-
export const
|
|
74
|
+
export const __wasm_bindgen_func_elem_514: (a: number, b: number, c: number, d: number) => number;
|
|
75
75
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
76
76
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
77
77
|
export const __wbindgen_export3: (a: number) => void;
|