@pandacss/compiler-wasm 2.0.0-beta.1 → 2.0.0-beta.10

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.
@@ -65,6 +65,26 @@ export class WasmCompiler {
65
65
  * stamped into build info as `configFingerprint`.
66
66
  */
67
67
  configFingerprint(): string;
68
+ /**
69
+ * Build a `panda/lib.json` value from host-supplied fields, stamping the
70
+ * engine-owned schema version. Backs the `designSystem.create` JS namespace.
71
+ *
72
+ * # Errors
73
+ * Returns a JS error if `input` is invalid or the manifest fails to serialize.
74
+ */
75
+ createDesignSystemManifest(input: any): any;
76
+ /**
77
+ * Per-package import selections from one scan. Each entry is `null` = all,
78
+ * or export names to narrow.
79
+ *
80
+ * # Errors
81
+ * Returns a JS error when the scan fails or serialization fails.
82
+ */
83
+ designSystemImportSelections(packages: any): any;
84
+ /**
85
+ * The manifest wire-format version this binding reads/writes.
86
+ */
87
+ designSystemManifestSchemaVersion(): number;
68
88
  /**
69
89
  * Config validation diagnostics from construction.
70
90
  *
@@ -131,6 +151,23 @@ export class WasmCompiler {
131
151
  * Returns a JS error if serializing fails.
132
152
  */
133
153
  getFile(path: string): any;
154
+ /**
155
+ * Theme `@keyframes` CSS only (no token vars or other layers).
156
+ */
157
+ getKeyframeCss(options?: any | null): any;
158
+ /**
159
+ * CSS for the named cascade layers, concatenated in order. Sliced in Rust
160
+ * (byte offsets stay valid); unknown layer names are skipped.
161
+ */
162
+ getLayerCss(options: any): any;
163
+ /**
164
+ * Split the stylesheet into per-file outputs (one per layer + per recipe,
165
+ * plus `recipes.css` / `styles.css` index files) for `--splitting`.
166
+ *
167
+ * # Errors
168
+ * Returns a JS error if serializing fails.
169
+ */
170
+ getSplitCss(options?: any | null): any;
134
171
  /**
135
172
  * Whether `css` declares Panda's cascade layers (`@layer reset, base, …;`),
136
173
  * marking it as the stylesheet root to inject the compiled CSS into.
@@ -154,11 +191,6 @@ export class WasmCompiler {
154
191
  */
155
192
  isSourceFile(path: string): boolean;
156
193
  joinPath(parts: any): string;
157
- /**
158
- * CSS for the named cascade layers, concatenated in order. Sliced in Rust
159
- * (byte offsets stay valid); unknown layer names are skipped.
160
- */
161
- layerCss(layers: string[]): string;
162
194
  /**
163
195
  * The resolved cascade-layer names (config overrides merged over defaults).
164
196
  *
@@ -212,18 +244,15 @@ export class WasmCompiler {
212
244
  */
213
245
  refreshFileSource(path: string, source: string): boolean;
214
246
  /**
215
- * Register a JS-backed pattern transform callback. The wrapper package
216
- * installs callbacks referenced by the serialized config snapshot.
247
+ * Register a JS-backed pattern transform callback.
217
248
  */
218
249
  registerPatternTransform(id: string, callback: Function): void;
219
250
  /**
220
- * Register a JS-backed `parser:before` source transform with a Rust-side
221
- * filter. The filter is evaluated before calling into JS.
251
+ * Register a JS-backed `parser:before` source transform.
222
252
  */
223
253
  registerSourceTransform(id: string, filter: any, callback: Function): void;
224
254
  /**
225
- * Register a JS-backed utility transform callback. The JS package wraps
226
- * the user callback so Rust only has to pass the raw value.
255
+ * Register a JS-backed utility transform callback.
227
256
  */
228
257
  registerUtilityTransform(id: string, callback: Function): void;
229
258
  /**
@@ -231,6 +260,13 @@ export class WasmCompiler {
231
260
  */
232
261
  removeFile(path: string): boolean;
233
262
  resolvePath(path: string, cwd?: string | null): string;
263
+ /**
264
+ * Resolve selector and CSS metadata for one utility value.
265
+ *
266
+ * # Errors
267
+ * Returns a JS error if the input or result cannot be serialized.
268
+ */
269
+ resolveUtilityValue(input: any): any;
234
270
  /**
235
271
  * Source paths matching the config's `include`/`exclude` (overridable via
236
272
  * `options`) from the in-memory filesystem. For discovery and the host's
@@ -271,20 +307,30 @@ export class WasmCompiler {
271
307
  */
272
308
  spec(): any;
273
309
  /**
274
- * Split the stylesheet into per-file outputs (one per layer + per recipe,
275
- * plus `recipes.css` / `styles.css` index files) for `--splitting`.
310
+ * `staticCss.patterns` expansion as raw atoms, without compiling.
276
311
  *
277
312
  * # Errors
278
313
  * Returns a JS error if serializing fails.
279
314
  */
280
- splitCss(): any;
315
+ staticPatternAtoms(): any;
281
316
  /**
282
- * `staticCss.patterns` expansion as raw atoms, without compiling.
317
+ * Remove Panda `@layer a, b;` order statements; leave unrelated ones.
318
+ */
319
+ stripLayerOrderStatements(css: string): string;
320
+ /**
321
+ * Semantic tokens that carry the same value as a token path.
283
322
  *
284
323
  * # Errors
285
- * Returns a JS error if serializing fails.
324
+ * Returns a JS error if serialization fails.
286
325
  */
287
- staticPatternAtoms(): any;
326
+ suggestSemanticTokens(path: string): any;
327
+ /**
328
+ * Tokens that carry a hardcoded value, ranked (safe equivalents first).
329
+ *
330
+ * # Errors
331
+ * Returns a JS error if serialization fails.
332
+ */
333
+ suggestTokens(prop: string, value: string): any;
288
334
  /**
289
335
  * Aggregate counts.
290
336
  *
@@ -297,15 +343,15 @@ export class WasmCompiler {
297
343
  */
298
344
  token_dictionary(): any;
299
345
  /**
300
- * Generate artifacts and write them under `outdir` via the in-memory fs.
301
- * Returns the written paths.
346
+ * Generate artifacts and write them under `outdir`.
302
347
  *
303
348
  * # Errors
304
- * Returns a JS error if a file fails to write or results fail to serialize.
349
+ * Returns a JS error if writing or serializing fails.
305
350
  */
306
- writeArtifacts(outdir: string, cwd: string | null | undefined, options: any): any;
307
- writeCss(outfile: string, cwd?: string | null, options?: any | null): any;
308
- writeSplitCss(outdir: string, cwd?: string | null): any;
351
+ writeArtifacts(options: any): any;
352
+ writeCss(options: any): any;
353
+ writeLayerCss(options: any): any;
354
+ writeSplitCss(options: any): any;
309
355
  }
310
356
 
311
357
  /**
@@ -394,6 +440,9 @@ export interface InitOutput {
394
440
  readonly wasmcompiler_compile: (a: number, b: number, c: number) => void;
395
441
  readonly wasmcompiler_config: (a: number, b: number) => void;
396
442
  readonly wasmcompiler_configFingerprint: (a: number, b: number) => void;
443
+ readonly wasmcompiler_createDesignSystemManifest: (a: number, b: number, c: number) => void;
444
+ readonly wasmcompiler_designSystemImportSelections: (a: number, b: number, c: number) => void;
445
+ readonly wasmcompiler_designSystemManifestSchemaVersion: (a: number) => number;
397
446
  readonly wasmcompiler_diagnostics: (a: number, b: number) => void;
398
447
  readonly wasmcompiler_dirname: (a: number, b: number, c: number, d: number) => void;
399
448
  readonly wasmcompiler_encodedRecipes: (a: number, b: number) => void;
@@ -404,12 +453,14 @@ export interface InitOutput {
404
453
  readonly wasmcompiler_generateArtifact: (a: number, b: number, c: number, d: number, e: number) => void;
405
454
  readonly wasmcompiler_generateArtifacts: (a: number, b: number, c: number) => void;
406
455
  readonly wasmcompiler_getFile: (a: number, b: number, c: number, d: number) => void;
456
+ readonly wasmcompiler_getKeyframeCss: (a: number, b: number, c: number) => void;
457
+ readonly wasmcompiler_getLayerCss: (a: number, b: number, c: number) => void;
458
+ readonly wasmcompiler_getSplitCss: (a: number, b: number, c: number) => void;
407
459
  readonly wasmcompiler_hasLayerDeclaration: (a: number, b: number, c: number) => number;
408
460
  readonly wasmcompiler_inspectFileSource: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
409
461
  readonly wasmcompiler_isEmpty: (a: number) => number;
410
462
  readonly wasmcompiler_isSourceFile: (a: number, b: number, c: number) => number;
411
463
  readonly wasmcompiler_joinPath: (a: number, b: number, c: number) => void;
412
- readonly wasmcompiler_layerCss: (a: number, b: number, c: number, d: number) => void;
413
464
  readonly wasmcompiler_layers: (a: number, b: number) => void;
414
465
  readonly wasmcompiler_parseFile: (a: number, b: number, c: number, d: number) => void;
415
466
  readonly wasmcompiler_parseFileSource: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
@@ -423,18 +474,22 @@ export interface InitOutput {
423
474
  readonly wasmcompiler_registerUtilityTransform: (a: number, b: number, c: number, d: number) => void;
424
475
  readonly wasmcompiler_removeFile: (a: number, b: number, c: number) => number;
425
476
  readonly wasmcompiler_resolvePath: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
477
+ readonly wasmcompiler_resolveUtilityValue: (a: number, b: number, c: number) => void;
426
478
  readonly wasmcompiler_scan: (a: number, b: number, c: number) => void;
427
479
  readonly wasmcompiler_serializeBuildInfo: (a: number, b: number, c: number, d: number) => void;
428
480
  readonly wasmcompiler_slotRecipes: (a: number, b: number) => void;
429
481
  readonly wasmcompiler_sources: (a: number, b: number) => void;
430
482
  readonly wasmcompiler_spec: (a: number, b: number) => void;
431
- readonly wasmcompiler_splitCss: (a: number, b: number) => void;
432
483
  readonly wasmcompiler_staticPatternAtoms: (a: number, b: number) => void;
484
+ readonly wasmcompiler_stripLayerOrderStatements: (a: number, b: number, c: number, d: number) => void;
485
+ readonly wasmcompiler_suggestSemanticTokens: (a: number, b: number, c: number, d: number) => void;
486
+ readonly wasmcompiler_suggestTokens: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
433
487
  readonly wasmcompiler_summary: (a: number, b: number) => void;
434
488
  readonly wasmcompiler_token_dictionary: (a: number, b: number) => void;
435
- readonly wasmcompiler_writeArtifacts: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
436
- readonly wasmcompiler_writeCss: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
437
- readonly wasmcompiler_writeSplitCss: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
489
+ readonly wasmcompiler_writeArtifacts: (a: number, b: number, c: number) => void;
490
+ readonly wasmcompiler_writeCss: (a: number, b: number, c: number) => void;
491
+ readonly wasmcompiler_writeLayerCss: (a: number, b: number, c: number) => void;
492
+ readonly wasmcompiler_writeSplitCss: (a: number, b: number, c: number) => void;
438
493
  readonly wasmextractor_new: (a: number, b: number, c: number) => void;
439
494
  readonly wasmextractor_parseFile: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
440
495
  readonly wasmfilesystem_addFile: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -444,10 +499,12 @@ export interface InitOutput {
444
499
  readonly wasmfilesystem_readFile: (a: number, b: number, c: number, d: number) => void;
445
500
  readonly wasmfilesystem_removeFile: (a: number, b: number, c: number) => number;
446
501
  readonly installPanicHook: () => void;
502
+ readonly __wasm_bindgen_func_elem_487: (a: number, b: number, c: number, d: number) => number;
447
503
  readonly __wbindgen_export: (a: number, b: number) => number;
448
504
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
449
505
  readonly __wbindgen_export3: (a: number) => void;
450
506
  readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
507
+ readonly __wbindgen_export5: (a: number, b: number) => void;
451
508
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
452
509
  }
453
510