@pandacss/compiler-wasm 2.0.0-beta.2 → 2.0.0-beta.20
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-R2J25HLY.js → chunk-ZARW4JPN.js} +43 -17
- package/dist/index.d.ts +26 -17
- package/dist/index.js +16 -7
- package/dist/{web-Z44NGLTK.js → web-JSAD2QZX.js} +3 -1
- package/dist/web.d.ts +26 -17
- package/dist/web.js +43 -17
- package/package.json +5 -3
- package/pkg-node/compiler_wasm.d.ts +67 -35
- package/pkg-node/compiler_wasm.js +290 -74
- package/pkg-node/compiler_wasm_bg.wasm +0 -0
- package/pkg-node/compiler_wasm_bg.wasm.d.ts +15 -4
- package/pkg-web/compiler_wasm.d.ts +82 -39
- package/pkg-web/compiler_wasm.js +290 -74
- package/pkg-web/compiler_wasm_bg.wasm +0 -0
- package/pkg-web/compiler_wasm_bg.wasm.d.ts +15 -4
|
@@ -19,6 +19,11 @@ export class WasmCompiler {
|
|
|
19
19
|
private constructor();
|
|
20
20
|
free(): void;
|
|
21
21
|
[Symbol.dispose](): void;
|
|
22
|
+
/**
|
|
23
|
+
* Files whose folded imports changed since the last call. Clears on read.
|
|
24
|
+
* Re-parse each via `refreshFile`, then call again until empty.
|
|
25
|
+
*/
|
|
26
|
+
affectedFiles(): string[];
|
|
22
27
|
/**
|
|
23
28
|
* Hydrate an external build info into this project (additive), optionally
|
|
24
29
|
* restricted to imported modules (tree-shaking). Returns `false` on a
|
|
@@ -65,6 +70,26 @@ export class WasmCompiler {
|
|
|
65
70
|
* stamped into build info as `configFingerprint`.
|
|
66
71
|
*/
|
|
67
72
|
configFingerprint(): string;
|
|
73
|
+
/**
|
|
74
|
+
* Build a `panda/lib.json` value from host-supplied fields, stamping the
|
|
75
|
+
* engine-owned schema version. Backs the `designSystem.create` JS namespace.
|
|
76
|
+
*
|
|
77
|
+
* # Errors
|
|
78
|
+
* Returns a JS error if `input` is invalid or the manifest fails to serialize.
|
|
79
|
+
*/
|
|
80
|
+
createDesignSystemManifest(input: any): any;
|
|
81
|
+
/**
|
|
82
|
+
* Per-package import selections from one scan. Each entry is `null` = all,
|
|
83
|
+
* or export names to narrow.
|
|
84
|
+
*
|
|
85
|
+
* # Errors
|
|
86
|
+
* Returns a JS error when the scan fails or serialization fails.
|
|
87
|
+
*/
|
|
88
|
+
designSystemImportSelections(packages: any): any;
|
|
89
|
+
/**
|
|
90
|
+
* The manifest wire-format version this binding reads/writes.
|
|
91
|
+
*/
|
|
92
|
+
designSystemManifestSchemaVersion(): number;
|
|
68
93
|
/**
|
|
69
94
|
* Config validation diagnostics from construction.
|
|
70
95
|
*
|
|
@@ -105,23 +130,14 @@ export class WasmCompiler {
|
|
|
105
130
|
static fromConfig(fs: WasmFileSystem, config: any, options: any): WasmCompiler;
|
|
106
131
|
/**
|
|
107
132
|
* Generate artifacts affected by the provided config dependency names.
|
|
108
|
-
*
|
|
109
|
-
* # Errors
|
|
110
|
-
* Returns a JS error if dependencies/options are invalid or serializing fails.
|
|
111
133
|
*/
|
|
112
134
|
generateAffectedArtifacts(dependencies: any, options: any): any;
|
|
113
135
|
/**
|
|
114
136
|
* Generate one codegen artifact by id.
|
|
115
|
-
*
|
|
116
|
-
* # Errors
|
|
117
|
-
* Returns a JS error if the id/options are invalid or serializing fails.
|
|
118
137
|
*/
|
|
119
138
|
generateArtifact(id: string, options: any): any;
|
|
120
139
|
/**
|
|
121
140
|
* Generate every codegen artifact from the resolved project state.
|
|
122
|
-
*
|
|
123
|
-
* # Errors
|
|
124
|
-
* Returns a JS error if options are invalid or serializing fails.
|
|
125
141
|
*/
|
|
126
142
|
generateArtifacts(options: any): any;
|
|
127
143
|
/**
|
|
@@ -131,6 +147,23 @@ export class WasmCompiler {
|
|
|
131
147
|
* Returns a JS error if serializing fails.
|
|
132
148
|
*/
|
|
133
149
|
getFile(path: string): any;
|
|
150
|
+
/**
|
|
151
|
+
* Theme `@keyframes` CSS only (no token vars or other layers).
|
|
152
|
+
*/
|
|
153
|
+
getKeyframeCss(options?: any | null): any;
|
|
154
|
+
/**
|
|
155
|
+
* CSS for the named cascade layers, concatenated in order. Sliced in Rust
|
|
156
|
+
* (byte offsets stay valid); unknown layer names are skipped.
|
|
157
|
+
*/
|
|
158
|
+
getLayerCss(options: any): any;
|
|
159
|
+
/**
|
|
160
|
+
* Split the stylesheet into per-file outputs (one per layer + per recipe,
|
|
161
|
+
* plus `recipes.css` / `styles.css` index files) for `--splitting`.
|
|
162
|
+
*
|
|
163
|
+
* # Errors
|
|
164
|
+
* Returns a JS error if serializing fails.
|
|
165
|
+
*/
|
|
166
|
+
getSplitCss(options?: any | null): any;
|
|
134
167
|
/**
|
|
135
168
|
* Whether `css` declares Panda's cascade layers (`@layer reset, base, …;`),
|
|
136
169
|
* marking it as the stylesheet root to inject the compiled CSS into.
|
|
@@ -154,11 +187,6 @@ export class WasmCompiler {
|
|
|
154
187
|
*/
|
|
155
188
|
isSourceFile(path: string): boolean;
|
|
156
189
|
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
190
|
/**
|
|
163
191
|
* The resolved cascade-layer names (config overrides merged over defaults).
|
|
164
192
|
*
|
|
@@ -182,8 +210,8 @@ export class WasmCompiler {
|
|
|
182
210
|
*/
|
|
183
211
|
parseFileSource(path: string, source: string): any;
|
|
184
212
|
/**
|
|
185
|
-
* Read + parse source paths
|
|
186
|
-
*
|
|
213
|
+
* Read + parse source paths from `scan()`. One report per requested path;
|
|
214
|
+
* a read miss keeps last-good state and reports a warning diagnostic.
|
|
187
215
|
*
|
|
188
216
|
* # Errors
|
|
189
217
|
* Returns a JS error when `paths` is malformed or serializing the report fails.
|
|
@@ -212,18 +240,15 @@ export class WasmCompiler {
|
|
|
212
240
|
*/
|
|
213
241
|
refreshFileSource(path: string, source: string): boolean;
|
|
214
242
|
/**
|
|
215
|
-
* Register a JS-backed pattern transform callback.
|
|
216
|
-
* installs callbacks referenced by the serialized config snapshot.
|
|
243
|
+
* Register a JS-backed pattern transform callback.
|
|
217
244
|
*/
|
|
218
245
|
registerPatternTransform(id: string, callback: Function): void;
|
|
219
246
|
/**
|
|
220
|
-
* Register a JS-backed `parser:before` source transform
|
|
221
|
-
* filter. The filter is evaluated before calling into JS.
|
|
247
|
+
* Register a JS-backed `parser:before` source transform.
|
|
222
248
|
*/
|
|
223
249
|
registerSourceTransform(id: string, filter: any, callback: Function): void;
|
|
224
250
|
/**
|
|
225
|
-
* Register a JS-backed utility transform callback.
|
|
226
|
-
* the user callback so Rust only has to pass the raw value.
|
|
251
|
+
* Register a JS-backed utility transform callback.
|
|
227
252
|
*/
|
|
228
253
|
registerUtilityTransform(id: string, callback: Function): void;
|
|
229
254
|
/**
|
|
@@ -255,7 +280,7 @@ export class WasmCompiler {
|
|
|
255
280
|
* # Errors
|
|
256
281
|
* Returns a JS error if serializing the build info fails.
|
|
257
282
|
*/
|
|
258
|
-
serializeBuildInfo(panda: string): any;
|
|
283
|
+
serializeBuildInfo(panda: string, dependencies: any): any;
|
|
259
284
|
/**
|
|
260
285
|
* Every `sva()` slot-recipe entry.
|
|
261
286
|
*
|
|
@@ -278,20 +303,30 @@ export class WasmCompiler {
|
|
|
278
303
|
*/
|
|
279
304
|
spec(): any;
|
|
280
305
|
/**
|
|
281
|
-
*
|
|
282
|
-
* plus `recipes.css` / `styles.css` index files) for `--splitting`.
|
|
306
|
+
* `staticCss.patterns` expansion as raw atoms, without compiling.
|
|
283
307
|
*
|
|
284
308
|
* # Errors
|
|
285
309
|
* Returns a JS error if serializing fails.
|
|
286
310
|
*/
|
|
287
|
-
|
|
311
|
+
staticPatternAtoms(): any;
|
|
312
|
+
/**
|
|
313
|
+
* Remove Panda `@layer a, b;` order statements; leave unrelated ones.
|
|
314
|
+
*/
|
|
315
|
+
stripLayerOrderStatements(css: string): string;
|
|
288
316
|
/**
|
|
289
|
-
*
|
|
317
|
+
* Semantic tokens that carry the same value as a token path.
|
|
290
318
|
*
|
|
291
319
|
* # Errors
|
|
292
|
-
* Returns a JS error if
|
|
320
|
+
* Returns a JS error if serialization fails.
|
|
293
321
|
*/
|
|
294
|
-
|
|
322
|
+
suggestSemanticTokens(path: string): any;
|
|
323
|
+
/**
|
|
324
|
+
* Tokens that carry a hardcoded value, ranked (safe equivalents first).
|
|
325
|
+
*
|
|
326
|
+
* # Errors
|
|
327
|
+
* Returns a JS error if serialization fails.
|
|
328
|
+
*/
|
|
329
|
+
suggestTokens(prop: string, value: string): any;
|
|
295
330
|
/**
|
|
296
331
|
* Aggregate counts.
|
|
297
332
|
*
|
|
@@ -302,16 +337,13 @@ export class WasmCompiler {
|
|
|
302
337
|
/**
|
|
303
338
|
* Rust-built token dictionary projected into the small JS interop shape.
|
|
304
339
|
*/
|
|
305
|
-
|
|
340
|
+
tokenDictionary(): any;
|
|
306
341
|
/**
|
|
307
|
-
* Generate artifacts and write them under `outdir
|
|
308
|
-
* Returns the written paths.
|
|
309
|
-
*
|
|
310
|
-
* # Errors
|
|
311
|
-
* Returns a JS error if a file fails to write or results fail to serialize.
|
|
342
|
+
* Generate artifacts and write them under `outdir`.
|
|
312
343
|
*/
|
|
313
344
|
writeArtifacts(options: any): any;
|
|
314
345
|
writeCss(options: any): any;
|
|
346
|
+
writeLayerCss(options: any): any;
|
|
315
347
|
writeSplitCss(options: any): any;
|
|
316
348
|
}
|
|
317
349
|
|
|
@@ -394,6 +426,7 @@ export interface InitOutput {
|
|
|
394
426
|
readonly __wbg_wasmcompiler_free: (a: number, b: number) => void;
|
|
395
427
|
readonly __wbg_wasmextractor_free: (a: number, b: number) => void;
|
|
396
428
|
readonly __wbg_wasmfilesystem_free: (a: number, b: number) => void;
|
|
429
|
+
readonly wasmcompiler_affectedFiles: (a: number, b: number) => void;
|
|
397
430
|
readonly wasmcompiler_applyBuildInfo: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
398
431
|
readonly wasmcompiler_atoms: (a: number, b: number) => void;
|
|
399
432
|
readonly wasmcompiler_buildInfoSchemaVersion: (a: number) => number;
|
|
@@ -401,6 +434,9 @@ export interface InitOutput {
|
|
|
401
434
|
readonly wasmcompiler_compile: (a: number, b: number, c: number) => void;
|
|
402
435
|
readonly wasmcompiler_config: (a: number, b: number) => void;
|
|
403
436
|
readonly wasmcompiler_configFingerprint: (a: number, b: number) => void;
|
|
437
|
+
readonly wasmcompiler_createDesignSystemManifest: (a: number, b: number, c: number) => void;
|
|
438
|
+
readonly wasmcompiler_designSystemImportSelections: (a: number, b: number, c: number) => void;
|
|
439
|
+
readonly wasmcompiler_designSystemManifestSchemaVersion: (a: number) => number;
|
|
404
440
|
readonly wasmcompiler_diagnostics: (a: number, b: number) => void;
|
|
405
441
|
readonly wasmcompiler_dirname: (a: number, b: number, c: number, d: number) => void;
|
|
406
442
|
readonly wasmcompiler_encodedRecipes: (a: number, b: number) => void;
|
|
@@ -411,12 +447,14 @@ export interface InitOutput {
|
|
|
411
447
|
readonly wasmcompiler_generateArtifact: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
412
448
|
readonly wasmcompiler_generateArtifacts: (a: number, b: number, c: number) => void;
|
|
413
449
|
readonly wasmcompiler_getFile: (a: number, b: number, c: number, d: number) => void;
|
|
450
|
+
readonly wasmcompiler_getKeyframeCss: (a: number, b: number, c: number) => void;
|
|
451
|
+
readonly wasmcompiler_getLayerCss: (a: number, b: number, c: number) => void;
|
|
452
|
+
readonly wasmcompiler_getSplitCss: (a: number, b: number, c: number) => void;
|
|
414
453
|
readonly wasmcompiler_hasLayerDeclaration: (a: number, b: number, c: number) => number;
|
|
415
454
|
readonly wasmcompiler_inspectFileSource: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
416
455
|
readonly wasmcompiler_isEmpty: (a: number) => number;
|
|
417
456
|
readonly wasmcompiler_isSourceFile: (a: number, b: number, c: number) => number;
|
|
418
457
|
readonly wasmcompiler_joinPath: (a: number, b: number, c: number) => void;
|
|
419
|
-
readonly wasmcompiler_layerCss: (a: number, b: number, c: number, d: number) => void;
|
|
420
458
|
readonly wasmcompiler_layers: (a: number, b: number) => void;
|
|
421
459
|
readonly wasmcompiler_parseFile: (a: number, b: number, c: number, d: number) => void;
|
|
422
460
|
readonly wasmcompiler_parseFileSource: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
@@ -432,16 +470,19 @@ export interface InitOutput {
|
|
|
432
470
|
readonly wasmcompiler_resolvePath: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
433
471
|
readonly wasmcompiler_resolveUtilityValue: (a: number, b: number, c: number) => void;
|
|
434
472
|
readonly wasmcompiler_scan: (a: number, b: number, c: number) => void;
|
|
435
|
-
readonly wasmcompiler_serializeBuildInfo: (a: number, b: number, c: number, d: number) => void;
|
|
473
|
+
readonly wasmcompiler_serializeBuildInfo: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
436
474
|
readonly wasmcompiler_slotRecipes: (a: number, b: number) => void;
|
|
437
475
|
readonly wasmcompiler_sources: (a: number, b: number) => void;
|
|
438
476
|
readonly wasmcompiler_spec: (a: number, b: number) => void;
|
|
439
|
-
readonly wasmcompiler_splitCss: (a: number, b: number) => void;
|
|
440
477
|
readonly wasmcompiler_staticPatternAtoms: (a: number, b: number) => void;
|
|
478
|
+
readonly wasmcompiler_stripLayerOrderStatements: (a: number, b: number, c: number, d: number) => void;
|
|
479
|
+
readonly wasmcompiler_suggestSemanticTokens: (a: number, b: number, c: number, d: number) => void;
|
|
480
|
+
readonly wasmcompiler_suggestTokens: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
441
481
|
readonly wasmcompiler_summary: (a: number, b: number) => void;
|
|
442
|
-
readonly
|
|
482
|
+
readonly wasmcompiler_tokenDictionary: (a: number, b: number) => void;
|
|
443
483
|
readonly wasmcompiler_writeArtifacts: (a: number, b: number, c: number) => void;
|
|
444
484
|
readonly wasmcompiler_writeCss: (a: number, b: number, c: number) => void;
|
|
485
|
+
readonly wasmcompiler_writeLayerCss: (a: number, b: number, c: number) => void;
|
|
445
486
|
readonly wasmcompiler_writeSplitCss: (a: number, b: number, c: number) => void;
|
|
446
487
|
readonly wasmextractor_new: (a: number, b: number, c: number) => void;
|
|
447
488
|
readonly wasmextractor_parseFile: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
@@ -452,10 +493,12 @@ export interface InitOutput {
|
|
|
452
493
|
readonly wasmfilesystem_readFile: (a: number, b: number, c: number, d: number) => void;
|
|
453
494
|
readonly wasmfilesystem_removeFile: (a: number, b: number, c: number) => number;
|
|
454
495
|
readonly installPanicHook: () => void;
|
|
496
|
+
readonly __wasm_bindgen_func_elem_504: (a: number, b: number, c: number, d: number) => number;
|
|
455
497
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
456
498
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
457
499
|
readonly __wbindgen_export3: (a: number) => void;
|
|
458
500
|
readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
|
|
501
|
+
readonly __wbindgen_export5: (a: number, b: number) => void;
|
|
459
502
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
460
503
|
}
|
|
461
504
|
|