@pandacss/compiler-wasm 2.0.0-beta.7 → 2.0.0-beta.9
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-5E5JPQ3B.js → chunk-I5FPBHZT.js} +1 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/{web-2ZQDOLGS.js → web-T6POKIJL.js} +1 -1
- package/dist/web.d.ts +2 -2
- package/dist/web.js +1 -2
- package/package.json +3 -3
- package/pkg-node/compiler_wasm.d.ts +7 -9
- package/pkg-node/compiler_wasm.js +25 -25
- package/pkg-node/compiler_wasm_bg.wasm +0 -0
- package/pkg-node/compiler_wasm_bg.wasm.d.ts +1 -1
- package/pkg-web/compiler_wasm.d.ts +8 -10
- package/pkg-web/compiler_wasm.js +25 -25
- package/pkg-web/compiler_wasm_bg.wasm +0 -0
- package/pkg-web/compiler_wasm_bg.wasm.d.ts +1 -1
|
@@ -112,8 +112,7 @@ function wasmPathSystem(compiler) {
|
|
|
112
112
|
function toDesignSystemBinding(compiler) {
|
|
113
113
|
return {
|
|
114
114
|
createManifest: (input) => compiler.createDesignSystemManifest(input),
|
|
115
|
-
manifestSchemaVersion: () => compiler.designSystemManifestSchemaVersion()
|
|
116
|
-
resolveChain: (manifests) => compiler.resolveDesignSystemChain(manifests)
|
|
115
|
+
manifestSchemaVersion: () => compiler.designSystemManifestSchemaVersion()
|
|
117
116
|
};
|
|
118
117
|
}
|
|
119
118
|
function buildFromConfigOptions(callbacks) {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ParseFileReport, ScanOptions, LayerNames, Spec, SourceEntry, FileInspectionResult, ResolveUtilityValueInput, ResolvedUtilityValue, TokenSuggestion, WriteArtifactsOptions, WriteCssOptions, WriteCssResult, WriteLayerCssOptions, WriteSplitCssOptions, WriteFilesResult, SerializedHookFilter, Atom, RecipeEntry, EncodedRecipeStyles, ProjectSummary, CompileOptions, CompileOutput, LayerCssOptions, SplitCssOptions, CssFile, GenerateArtifactOptions, CodegenArtifact, CodegenArtifactId, CodegenDependency, Diagnostic, CompileFileManifest, ParsedFileView, StaticPatternResult, BuildInfoArtifact, DesignSystemManifestInput, DesignSystemManifest,
|
|
1
|
+
import { ParseFileReport, ScanOptions, LayerNames, Spec, SourceEntry, FileInspectionResult, ResolveUtilityValueInput, ResolvedUtilityValue, TokenSuggestion, WriteArtifactsOptions, WriteCssOptions, WriteCssResult, WriteLayerCssOptions, WriteSplitCssOptions, WriteFilesResult, SerializedHookFilter, Atom, RecipeEntry, EncodedRecipeStyles, ProjectSummary, CompileOptions, CompileOutput, LayerCssOptions, SplitCssOptions, CssFile, GenerateArtifactOptions, CodegenArtifact, CodegenArtifactId, CodegenDependency, Diagnostic, CompileFileManifest, ParsedFileView, StaticPatternResult, BuildInfoArtifact, DesignSystemManifestInput, DesignSystemManifest, SerializedConfig, CompilerOptions, Compiler, ProjectCallbacks, ProjectHooks, ConfigSnapshot, Driver } from '@pandacss/compiler-shared';
|
|
2
2
|
export * from '@pandacss/compiler-shared';
|
|
3
3
|
export { PatternHelpers, createUsageReport, mergeCallbacks } from '@pandacss/compiler-shared';
|
|
4
4
|
|
|
@@ -89,6 +89,7 @@ declare class WasmCompiler {
|
|
|
89
89
|
inspectFileSource(path: string, source: string): Omit<FileInspectionResult, 'path'>;
|
|
90
90
|
resolveUtilityValue(input: ResolveUtilityValueInput): ResolvedUtilityValue | null;
|
|
91
91
|
suggestTokens(prop: string, value: string): TokenSuggestion[];
|
|
92
|
+
suggestSemanticTokens(path: string): TokenSuggestion[];
|
|
92
93
|
writeArtifacts(options: WriteArtifactsOptions): string[];
|
|
93
94
|
writeCss(options: WriteCssOptions): WriteCssResult;
|
|
94
95
|
writeLayerCss(options: WriteLayerCssOptions): WriteCssResult;
|
|
@@ -119,7 +120,6 @@ declare class WasmCompiler {
|
|
|
119
120
|
configFingerprint(): string;
|
|
120
121
|
createDesignSystemManifest(input: DesignSystemManifestInput): DesignSystemManifest;
|
|
121
122
|
designSystemManifestSchemaVersion(): number;
|
|
122
|
-
resolveDesignSystemChain(manifests: DesignSystemManifest[]): DesignSystemChainPlan;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
/**
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
createCompilerFromWasmModule,
|
|
5
5
|
createUsageReport,
|
|
6
6
|
mergeCallbacks
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I5FPBHZT.js";
|
|
8
8
|
|
|
9
9
|
// src/index.ts
|
|
10
10
|
import { createRequire } from "module";
|
|
@@ -74,7 +74,7 @@ async function loadWasm() {
|
|
|
74
74
|
return mod;
|
|
75
75
|
}
|
|
76
76
|
async function createCompiler(config, options) {
|
|
77
|
-
const { createCompilerFromWasmModule: createCompilerFromWasmModule2 } = await import("./web-
|
|
77
|
+
const { createCompilerFromWasmModule: createCompilerFromWasmModule2 } = await import("./web-T6POKIJL.js");
|
|
78
78
|
return createCompilerFromWasmModule2(await loadWasm(), config, options);
|
|
79
79
|
}
|
|
80
80
|
async function createCompilerFromSnapshot(snapshot, options) {
|
package/dist/web.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ParseFileReport, ScanOptions, LayerNames, Spec, SourceEntry, FileInspectionResult, ResolveUtilityValueInput, ResolvedUtilityValue, TokenSuggestion, WriteArtifactsOptions, WriteCssOptions, WriteCssResult, WriteLayerCssOptions, WriteSplitCssOptions, WriteFilesResult, SerializedHookFilter, Atom, RecipeEntry, EncodedRecipeStyles, ProjectSummary, CompileOptions, CompileOutput, LayerCssOptions, SplitCssOptions, CssFile, GenerateArtifactOptions, CodegenArtifact, CodegenArtifactId, CodegenDependency, Diagnostic, CompileFileManifest, ParsedFileView, StaticPatternResult, BuildInfoArtifact, DesignSystemManifestInput, DesignSystemManifest,
|
|
1
|
+
import { ParseFileReport, ScanOptions, LayerNames, Spec, SourceEntry, FileInspectionResult, ResolveUtilityValueInput, ResolvedUtilityValue, TokenSuggestion, WriteArtifactsOptions, WriteCssOptions, WriteCssResult, WriteLayerCssOptions, WriteSplitCssOptions, WriteFilesResult, SerializedHookFilter, Atom, RecipeEntry, EncodedRecipeStyles, ProjectSummary, CompileOptions, CompileOutput, LayerCssOptions, SplitCssOptions, CssFile, GenerateArtifactOptions, CodegenArtifact, CodegenArtifactId, CodegenDependency, Diagnostic, CompileFileManifest, ParsedFileView, StaticPatternResult, BuildInfoArtifact, DesignSystemManifestInput, DesignSystemManifest, SerializedConfig, CompilerOptions, Compiler, ProjectCallbacks, ProjectHooks } from '@pandacss/compiler-shared';
|
|
2
2
|
export * from '@pandacss/compiler-shared';
|
|
3
3
|
export { PatternHelpers, createUsageReport, mergeCallbacks } from '@pandacss/compiler-shared';
|
|
4
4
|
|
|
@@ -89,6 +89,7 @@ declare class WasmCompiler {
|
|
|
89
89
|
inspectFileSource(path: string, source: string): Omit<FileInspectionResult, 'path'>;
|
|
90
90
|
resolveUtilityValue(input: ResolveUtilityValueInput): ResolvedUtilityValue | null;
|
|
91
91
|
suggestTokens(prop: string, value: string): TokenSuggestion[];
|
|
92
|
+
suggestSemanticTokens(path: string): TokenSuggestion[];
|
|
92
93
|
writeArtifacts(options: WriteArtifactsOptions): string[];
|
|
93
94
|
writeCss(options: WriteCssOptions): WriteCssResult;
|
|
94
95
|
writeLayerCss(options: WriteLayerCssOptions): WriteCssResult;
|
|
@@ -119,7 +120,6 @@ declare class WasmCompiler {
|
|
|
119
120
|
configFingerprint(): string;
|
|
120
121
|
createDesignSystemManifest(input: DesignSystemManifestInput): DesignSystemManifest;
|
|
121
122
|
designSystemManifestSchemaVersion(): number;
|
|
122
|
-
resolveDesignSystemChain(manifests: DesignSystemManifest[]): DesignSystemChainPlan;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
/**
|
package/dist/web.js
CHANGED
|
@@ -112,8 +112,7 @@ function wasmPathSystem(compiler) {
|
|
|
112
112
|
function toDesignSystemBinding(compiler) {
|
|
113
113
|
return {
|
|
114
114
|
createManifest: (input) => compiler.createDesignSystemManifest(input),
|
|
115
|
-
manifestSchemaVersion: () => compiler.designSystemManifestSchemaVersion()
|
|
116
|
-
resolveChain: (manifests) => compiler.resolveDesignSystemChain(manifests)
|
|
115
|
+
manifestSchemaVersion: () => compiler.designSystemManifestSchemaVersion()
|
|
117
116
|
};
|
|
118
117
|
}
|
|
119
118
|
function buildFromConfigOptions(callbacks) {
|
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.9",
|
|
4
4
|
"description": "WebAssembly binding for the Panda compiler engine (browser/playground target)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"pkg-web"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@pandacss/compiler-shared": "2.0.0-beta.
|
|
41
|
+
"@pandacss/compiler-shared": "2.0.0-beta.9"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@pandacss/config": "2.0.0-beta.
|
|
44
|
+
"@pandacss/config": "2.0.0-beta.9"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=22"
|
|
@@ -247,15 +247,6 @@ export class WasmCompiler {
|
|
|
247
247
|
* Drop a file's contribution. Returns `true` if the path was known.
|
|
248
248
|
*/
|
|
249
249
|
removeFile(path: string): boolean;
|
|
250
|
-
/**
|
|
251
|
-
* Order already-read manifests by their `designSystem` parent links into a
|
|
252
|
-
* root-first hydrate/merge plan (or report a cycle). Backs the
|
|
253
|
-
* `designSystem.resolveChain` JS namespace. Pure — the host did the reads.
|
|
254
|
-
*
|
|
255
|
-
* # Errors
|
|
256
|
-
* Returns a JS error if `manifests` is invalid or the plan fails to serialize.
|
|
257
|
-
*/
|
|
258
|
-
resolveDesignSystemChain(manifests: any): any;
|
|
259
250
|
resolvePath(path: string, cwd?: string | null): string;
|
|
260
251
|
/**
|
|
261
252
|
* Resolve selector and CSS metadata for one utility value.
|
|
@@ -310,6 +301,13 @@ export class WasmCompiler {
|
|
|
310
301
|
* Returns a JS error if serializing fails.
|
|
311
302
|
*/
|
|
312
303
|
staticPatternAtoms(): any;
|
|
304
|
+
/**
|
|
305
|
+
* Semantic tokens that carry the same value as a token path.
|
|
306
|
+
*
|
|
307
|
+
* # Errors
|
|
308
|
+
* Returns a JS error if serialization fails.
|
|
309
|
+
*/
|
|
310
|
+
suggestSemanticTokens(path: string): any;
|
|
313
311
|
/**
|
|
314
312
|
* Tokens that carry a hardcoded value, ranked (safe equivalents first).
|
|
315
313
|
*
|
|
@@ -813,31 +813,6 @@ class WasmCompiler {
|
|
|
813
813
|
const ret = wasm.wasmcompiler_removeFile(this.__wbg_ptr, ptr0, len0);
|
|
814
814
|
return ret !== 0;
|
|
815
815
|
}
|
|
816
|
-
/**
|
|
817
|
-
* Order already-read manifests by their `designSystem` parent links into a
|
|
818
|
-
* root-first hydrate/merge plan (or report a cycle). Backs the
|
|
819
|
-
* `designSystem.resolveChain` JS namespace. Pure — the host did the reads.
|
|
820
|
-
*
|
|
821
|
-
* # Errors
|
|
822
|
-
* Returns a JS error if `manifests` is invalid or the plan fails to serialize.
|
|
823
|
-
* @param {any} manifests
|
|
824
|
-
* @returns {any}
|
|
825
|
-
*/
|
|
826
|
-
resolveDesignSystemChain(manifests) {
|
|
827
|
-
try {
|
|
828
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
829
|
-
wasm.wasmcompiler_resolveDesignSystemChain(retptr, this.__wbg_ptr, addHeapObject(manifests));
|
|
830
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
831
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
832
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
833
|
-
if (r2) {
|
|
834
|
-
throw takeObject(r1);
|
|
835
|
-
}
|
|
836
|
-
return takeObject(r0);
|
|
837
|
-
} finally {
|
|
838
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
816
|
/**
|
|
842
817
|
* @param {string} path
|
|
843
818
|
* @param {string | null} [cwd]
|
|
@@ -1026,6 +1001,31 @@ class WasmCompiler {
|
|
|
1026
1001
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1027
1002
|
}
|
|
1028
1003
|
}
|
|
1004
|
+
/**
|
|
1005
|
+
* Semantic tokens that carry the same value as a token path.
|
|
1006
|
+
*
|
|
1007
|
+
* # Errors
|
|
1008
|
+
* Returns a JS error if serialization fails.
|
|
1009
|
+
* @param {string} path
|
|
1010
|
+
* @returns {any}
|
|
1011
|
+
*/
|
|
1012
|
+
suggestSemanticTokens(path) {
|
|
1013
|
+
try {
|
|
1014
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1015
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1016
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1017
|
+
wasm.wasmcompiler_suggestSemanticTokens(retptr, this.__wbg_ptr, ptr0, len0);
|
|
1018
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1019
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1020
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1021
|
+
if (r2) {
|
|
1022
|
+
throw takeObject(r1);
|
|
1023
|
+
}
|
|
1024
|
+
return takeObject(r0);
|
|
1025
|
+
} finally {
|
|
1026
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
1029
|
/**
|
|
1030
1030
|
* Tokens that carry a hardcoded value, ranked (safe equivalents first).
|
|
1031
1031
|
*
|
|
Binary file
|
|
@@ -42,7 +42,6 @@ export const wasmcompiler_registerPatternTransform: (a: number, b: number, c: nu
|
|
|
42
42
|
export const wasmcompiler_registerSourceTransform: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
43
43
|
export const wasmcompiler_registerUtilityTransform: (a: number, b: number, c: number, d: number) => void;
|
|
44
44
|
export const wasmcompiler_removeFile: (a: number, b: number, c: number) => number;
|
|
45
|
-
export const wasmcompiler_resolveDesignSystemChain: (a: number, b: number, c: number) => void;
|
|
46
45
|
export const wasmcompiler_resolvePath: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
47
46
|
export const wasmcompiler_resolveUtilityValue: (a: number, b: number, c: number) => void;
|
|
48
47
|
export const wasmcompiler_scan: (a: number, b: number, c: number) => void;
|
|
@@ -51,6 +50,7 @@ export const wasmcompiler_slotRecipes: (a: number, b: number) => void;
|
|
|
51
50
|
export const wasmcompiler_sources: (a: number, b: number) => void;
|
|
52
51
|
export const wasmcompiler_spec: (a: number, b: number) => void;
|
|
53
52
|
export const wasmcompiler_staticPatternAtoms: (a: number, b: number) => void;
|
|
53
|
+
export const wasmcompiler_suggestSemanticTokens: (a: number, b: number, c: number, d: number) => void;
|
|
54
54
|
export const wasmcompiler_suggestTokens: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
55
55
|
export const wasmcompiler_summary: (a: number, b: number) => void;
|
|
56
56
|
export const wasmcompiler_token_dictionary: (a: number, b: number) => void;
|
|
@@ -247,15 +247,6 @@ export class WasmCompiler {
|
|
|
247
247
|
* Drop a file's contribution. Returns `true` if the path was known.
|
|
248
248
|
*/
|
|
249
249
|
removeFile(path: string): boolean;
|
|
250
|
-
/**
|
|
251
|
-
* Order already-read manifests by their `designSystem` parent links into a
|
|
252
|
-
* root-first hydrate/merge plan (or report a cycle). Backs the
|
|
253
|
-
* `designSystem.resolveChain` JS namespace. Pure — the host did the reads.
|
|
254
|
-
*
|
|
255
|
-
* # Errors
|
|
256
|
-
* Returns a JS error if `manifests` is invalid or the plan fails to serialize.
|
|
257
|
-
*/
|
|
258
|
-
resolveDesignSystemChain(manifests: any): any;
|
|
259
250
|
resolvePath(path: string, cwd?: string | null): string;
|
|
260
251
|
/**
|
|
261
252
|
* Resolve selector and CSS metadata for one utility value.
|
|
@@ -310,6 +301,13 @@ export class WasmCompiler {
|
|
|
310
301
|
* Returns a JS error if serializing fails.
|
|
311
302
|
*/
|
|
312
303
|
staticPatternAtoms(): any;
|
|
304
|
+
/**
|
|
305
|
+
* Semantic tokens that carry the same value as a token path.
|
|
306
|
+
*
|
|
307
|
+
* # Errors
|
|
308
|
+
* Returns a JS error if serialization fails.
|
|
309
|
+
*/
|
|
310
|
+
suggestSemanticTokens(path: string): any;
|
|
313
311
|
/**
|
|
314
312
|
* Tokens that carry a hardcoded value, ranked (safe equivalents first).
|
|
315
313
|
*
|
|
@@ -457,7 +455,6 @@ export interface InitOutput {
|
|
|
457
455
|
readonly wasmcompiler_registerSourceTransform: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
458
456
|
readonly wasmcompiler_registerUtilityTransform: (a: number, b: number, c: number, d: number) => void;
|
|
459
457
|
readonly wasmcompiler_removeFile: (a: number, b: number, c: number) => number;
|
|
460
|
-
readonly wasmcompiler_resolveDesignSystemChain: (a: number, b: number, c: number) => void;
|
|
461
458
|
readonly wasmcompiler_resolvePath: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
462
459
|
readonly wasmcompiler_resolveUtilityValue: (a: number, b: number, c: number) => void;
|
|
463
460
|
readonly wasmcompiler_scan: (a: number, b: number, c: number) => void;
|
|
@@ -466,6 +463,7 @@ export interface InitOutput {
|
|
|
466
463
|
readonly wasmcompiler_sources: (a: number, b: number) => void;
|
|
467
464
|
readonly wasmcompiler_spec: (a: number, b: number) => void;
|
|
468
465
|
readonly wasmcompiler_staticPatternAtoms: (a: number, b: number) => void;
|
|
466
|
+
readonly wasmcompiler_suggestSemanticTokens: (a: number, b: number, c: number, d: number) => void;
|
|
469
467
|
readonly wasmcompiler_suggestTokens: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
470
468
|
readonly wasmcompiler_summary: (a: number, b: number) => void;
|
|
471
469
|
readonly wasmcompiler_token_dictionary: (a: number, b: number) => void;
|
package/pkg-web/compiler_wasm.js
CHANGED
|
@@ -813,31 +813,6 @@ export class WasmCompiler {
|
|
|
813
813
|
const ret = wasm.wasmcompiler_removeFile(this.__wbg_ptr, ptr0, len0);
|
|
814
814
|
return ret !== 0;
|
|
815
815
|
}
|
|
816
|
-
/**
|
|
817
|
-
* Order already-read manifests by their `designSystem` parent links into a
|
|
818
|
-
* root-first hydrate/merge plan (or report a cycle). Backs the
|
|
819
|
-
* `designSystem.resolveChain` JS namespace. Pure — the host did the reads.
|
|
820
|
-
*
|
|
821
|
-
* # Errors
|
|
822
|
-
* Returns a JS error if `manifests` is invalid or the plan fails to serialize.
|
|
823
|
-
* @param {any} manifests
|
|
824
|
-
* @returns {any}
|
|
825
|
-
*/
|
|
826
|
-
resolveDesignSystemChain(manifests) {
|
|
827
|
-
try {
|
|
828
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
829
|
-
wasm.wasmcompiler_resolveDesignSystemChain(retptr, this.__wbg_ptr, addHeapObject(manifests));
|
|
830
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
831
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
832
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
833
|
-
if (r2) {
|
|
834
|
-
throw takeObject(r1);
|
|
835
|
-
}
|
|
836
|
-
return takeObject(r0);
|
|
837
|
-
} finally {
|
|
838
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
816
|
/**
|
|
842
817
|
* @param {string} path
|
|
843
818
|
* @param {string | null} [cwd]
|
|
@@ -1026,6 +1001,31 @@ export class WasmCompiler {
|
|
|
1026
1001
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1027
1002
|
}
|
|
1028
1003
|
}
|
|
1004
|
+
/**
|
|
1005
|
+
* Semantic tokens that carry the same value as a token path.
|
|
1006
|
+
*
|
|
1007
|
+
* # Errors
|
|
1008
|
+
* Returns a JS error if serialization fails.
|
|
1009
|
+
* @param {string} path
|
|
1010
|
+
* @returns {any}
|
|
1011
|
+
*/
|
|
1012
|
+
suggestSemanticTokens(path) {
|
|
1013
|
+
try {
|
|
1014
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1015
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1016
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1017
|
+
wasm.wasmcompiler_suggestSemanticTokens(retptr, this.__wbg_ptr, ptr0, len0);
|
|
1018
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1019
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1020
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1021
|
+
if (r2) {
|
|
1022
|
+
throw takeObject(r1);
|
|
1023
|
+
}
|
|
1024
|
+
return takeObject(r0);
|
|
1025
|
+
} finally {
|
|
1026
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
1029
|
/**
|
|
1030
1030
|
* Tokens that carry a hardcoded value, ranked (safe equivalents first).
|
|
1031
1031
|
*
|
|
Binary file
|
|
@@ -42,7 +42,6 @@ export const wasmcompiler_registerPatternTransform: (a: number, b: number, c: nu
|
|
|
42
42
|
export const wasmcompiler_registerSourceTransform: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
43
43
|
export const wasmcompiler_registerUtilityTransform: (a: number, b: number, c: number, d: number) => void;
|
|
44
44
|
export const wasmcompiler_removeFile: (a: number, b: number, c: number) => number;
|
|
45
|
-
export const wasmcompiler_resolveDesignSystemChain: (a: number, b: number, c: number) => void;
|
|
46
45
|
export const wasmcompiler_resolvePath: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
47
46
|
export const wasmcompiler_resolveUtilityValue: (a: number, b: number, c: number) => void;
|
|
48
47
|
export const wasmcompiler_scan: (a: number, b: number, c: number) => void;
|
|
@@ -51,6 +50,7 @@ export const wasmcompiler_slotRecipes: (a: number, b: number) => void;
|
|
|
51
50
|
export const wasmcompiler_sources: (a: number, b: number) => void;
|
|
52
51
|
export const wasmcompiler_spec: (a: number, b: number) => void;
|
|
53
52
|
export const wasmcompiler_staticPatternAtoms: (a: number, b: number) => void;
|
|
53
|
+
export const wasmcompiler_suggestSemanticTokens: (a: number, b: number, c: number, d: number) => void;
|
|
54
54
|
export const wasmcompiler_suggestTokens: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
55
55
|
export const wasmcompiler_summary: (a: number, b: number) => void;
|
|
56
56
|
export const wasmcompiler_token_dictionary: (a: number, b: number) => void;
|