@pandacss/compiler-wasm 2.0.0-beta.17 → 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.
@@ -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.token_dictionary?.());
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
- * `token_dictionary` the facade hides.
154
+ * `tokenDictionary` the facade hides.
155
155
  */
156
156
  interface RawWasmCompiler extends WasmCompiler {
157
- token_dictionary?(): TokenDictionaryInput | undefined;
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-NJUVM3GY.js";
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-PCTKJFIY.js");
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) {
@@ -4,7 +4,7 @@ import {
4
4
  createCompilerFromWasmModule,
5
5
  createUsageReport,
6
6
  mergeCallbacks
7
- } from "./chunk-NJUVM3GY.js";
7
+ } from "./chunk-ZARW4JPN.js";
8
8
  export {
9
9
  build,
10
10
  buildFromConfigOptions,
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
- * `token_dictionary` the facade hides.
154
+ * `tokenDictionary` the facade hides.
155
155
  */
156
156
  interface RawWasmCompiler extends WasmCompiler {
157
- token_dictionary?(): TokenDictionaryInput | undefined;
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.token_dictionary?.());
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.17",
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.17",
42
- "@pandacss/types": "2.0.0-beta.17"
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.17"
45
+ "@pandacss/config": "2.0.0-beta.18"
46
46
  },
47
47
  "engines": {
48
48
  "node": ">=22"
@@ -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
- token_dictionary(): any;
349
+ tokenDictionary(): any;
350
350
  /**
351
351
  * Generate artifacts and write them under `outdir`.
352
352
  *
@@ -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
- token_dictionary() {
1168
+ tokenDictionary() {
1169
1169
  try {
1170
1170
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1171
- wasm.wasmcompiler_token_dictionary(retptr, this.__wbg_ptr);
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);
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 wasmcompiler_token_dictionary: (a: number, b: number) => void;
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;
@@ -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
- token_dictionary(): any;
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 wasmcompiler_token_dictionary: (a: number, b: number) => void;
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;
@@ -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
- token_dictionary() {
1168
+ tokenDictionary() {
1169
1169
  try {
1170
1170
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1171
- wasm.wasmcompiler_token_dictionary(retptr, this.__wbg_ptr);
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);
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 wasmcompiler_token_dictionary: (a: number, b: number) => void;
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;