@devup-ui/wasm 1.0.54 → 1.0.56
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/package.json +9 -9
- package/pkg/index.d.ts +2 -0
- package/pkg/index.js +18 -0
- package/pkg/index_bg.wasm +0 -0
- package/pkg/index_bg.wasm.d.ts +1 -0
package/package.json
CHANGED
|
@@ -17,7 +17,11 @@
|
|
|
17
17
|
"react",
|
|
18
18
|
"wasm"
|
|
19
19
|
],
|
|
20
|
-
"version": "1.0.
|
|
20
|
+
"version": "1.0.56",
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "wasm-pack build --target nodejs --out-dir ./pkg --out-name index && node script.js",
|
|
23
|
+
"test": "wasm-pack test --node"
|
|
24
|
+
},
|
|
21
25
|
"publishConfig": {
|
|
22
26
|
"access": "public"
|
|
23
27
|
},
|
|
@@ -34,14 +38,10 @@
|
|
|
34
38
|
"type": "module",
|
|
35
39
|
"exports": {
|
|
36
40
|
".": {
|
|
41
|
+
"types": "./pkg/index.d.ts",
|
|
37
42
|
"import": "./pkg/index.js",
|
|
38
|
-
"require": "./pkg/index.js"
|
|
39
|
-
"types": "./pkg/index.d.ts"
|
|
43
|
+
"require": "./pkg/index.js"
|
|
40
44
|
}
|
|
41
45
|
},
|
|
42
|
-
"types": "./pkg/index.d.ts"
|
|
43
|
-
|
|
44
|
-
"build": "wasm-pack build --target nodejs --out-dir ./pkg --out-name index && node script.js",
|
|
45
|
-
"test": "wasm-pack test --node"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
46
|
+
"types": "./pkg/index.d.ts"
|
|
47
|
+
}
|
package/pkg/index.d.ts
CHANGED
|
@@ -34,6 +34,8 @@ export function getPrefix(): string | undefined;
|
|
|
34
34
|
|
|
35
35
|
export function getThemeInterface(package_name: string, color_interface_name: string, typography_interface_name: string, theme_interface_name: string): string;
|
|
36
36
|
|
|
37
|
+
export function hasDevupUI(filename: string, code: string, _package: string): boolean;
|
|
38
|
+
|
|
37
39
|
export function importClassMap(sheet_object: any): void;
|
|
38
40
|
|
|
39
41
|
export function importFileMap(sheet_object: any): void;
|
package/pkg/index.js
CHANGED
|
@@ -443,6 +443,24 @@ function getThemeInterface(package_name, color_interface_name, typography_interf
|
|
|
443
443
|
}
|
|
444
444
|
exports.getThemeInterface = getThemeInterface;
|
|
445
445
|
|
|
446
|
+
/**
|
|
447
|
+
* @param {string} filename
|
|
448
|
+
* @param {string} code
|
|
449
|
+
* @param {string} _package
|
|
450
|
+
* @returns {boolean}
|
|
451
|
+
*/
|
|
452
|
+
function hasDevupUI(filename, code, _package) {
|
|
453
|
+
const ptr0 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
454
|
+
const len0 = WASM_VECTOR_LEN;
|
|
455
|
+
const ptr1 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
456
|
+
const len1 = WASM_VECTOR_LEN;
|
|
457
|
+
const ptr2 = passStringToWasm0(_package, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
458
|
+
const len2 = WASM_VECTOR_LEN;
|
|
459
|
+
const ret = wasm.hasDevupUI(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
460
|
+
return ret !== 0;
|
|
461
|
+
}
|
|
462
|
+
exports.hasDevupUI = hasDevupUI;
|
|
463
|
+
|
|
446
464
|
/**
|
|
447
465
|
* @param {any} sheet_object
|
|
448
466
|
*/
|
package/pkg/index_bg.wasm
CHANGED
|
Binary file
|
package/pkg/index_bg.wasm.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export const getCss: (a: number, b: number) => [number, number, number, number];
|
|
|
10
10
|
export const getDefaultTheme: () => [number, number, number, number];
|
|
11
11
|
export const getPrefix: () => [number, number];
|
|
12
12
|
export const getThemeInterface: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number];
|
|
13
|
+
export const hasDevupUI: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
13
14
|
export const importClassMap: (a: any) => [number, number];
|
|
14
15
|
export const importFileMap: (a: any) => [number, number];
|
|
15
16
|
export const importSheet: (a: any) => [number, number];
|