@devup-ui/wasm 1.0.46 → 1.0.48
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 +1 -1
- package/pkg/index.d.ts +9 -9
- package/pkg/index.js +97 -97
- package/pkg/index_bg.wasm +0 -0
package/package.json
CHANGED
package/pkg/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function getCss(file_num: number | null | undefined, import_main_css: boolean): string;
|
|
4
|
-
export function exportSheet(): string;
|
|
5
|
-
export function exportClassMap(): string;
|
|
6
3
|
export function importClassMap(sheet_object: any): void;
|
|
7
|
-
export function importSheet(sheet_object: any): void;
|
|
8
|
-
export function getDefaultTheme(): string | undefined;
|
|
9
|
-
export function codeExtract(filename: string, code: string, _package: string, css_dir: string, single_css: boolean, import_main_css_in_code: boolean, import_main_css_in_css: boolean): Output;
|
|
10
|
-
export function exportFileMap(): string;
|
|
11
|
-
export function registerTheme(theme_object: any): void;
|
|
12
|
-
export function getThemeInterface(package_name: string, color_interface_name: string, typography_interface_name: string, theme_interface_name: string): string;
|
|
13
4
|
export function isDebug(): boolean;
|
|
14
5
|
export function importFileMap(sheet_object: any): void;
|
|
6
|
+
export function getDefaultTheme(): string | undefined;
|
|
7
|
+
export function getCss(file_num: number | null | undefined, import_main_css: boolean): string;
|
|
8
|
+
export function exportFileMap(): string;
|
|
15
9
|
export function setDebug(debug: boolean): void;
|
|
10
|
+
export function exportSheet(): string;
|
|
11
|
+
export function getThemeInterface(package_name: string, color_interface_name: string, typography_interface_name: string, theme_interface_name: string): string;
|
|
12
|
+
export function codeExtract(filename: string, code: string, _package: string, css_dir: string, single_css: boolean, import_main_css_in_code: boolean, import_main_css_in_css: boolean): Output;
|
|
13
|
+
export function importSheet(sheet_object: any): void;
|
|
14
|
+
export function registerTheme(theme_object: any): void;
|
|
15
|
+
export function exportClassMap(): string;
|
|
16
16
|
export class Output {
|
|
17
17
|
private constructor();
|
|
18
18
|
free(): void;
|
package/pkg/index.js
CHANGED
|
@@ -181,6 +181,50 @@ function takeFromExternrefTable0(idx) {
|
|
|
181
181
|
wasm.__externref_table_dealloc(idx);
|
|
182
182
|
return value;
|
|
183
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* @param {any} sheet_object
|
|
186
|
+
*/
|
|
187
|
+
exports.importClassMap = function(sheet_object) {
|
|
188
|
+
const ret = wasm.importClassMap(sheet_object);
|
|
189
|
+
if (ret[1]) {
|
|
190
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @returns {boolean}
|
|
196
|
+
*/
|
|
197
|
+
exports.isDebug = function() {
|
|
198
|
+
const ret = wasm.isDebug();
|
|
199
|
+
return ret !== 0;
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* @param {any} sheet_object
|
|
204
|
+
*/
|
|
205
|
+
exports.importFileMap = function(sheet_object) {
|
|
206
|
+
const ret = wasm.importFileMap(sheet_object);
|
|
207
|
+
if (ret[1]) {
|
|
208
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* @returns {string | undefined}
|
|
214
|
+
*/
|
|
215
|
+
exports.getDefaultTheme = function() {
|
|
216
|
+
const ret = wasm.getDefaultTheme();
|
|
217
|
+
if (ret[3]) {
|
|
218
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
219
|
+
}
|
|
220
|
+
let v1;
|
|
221
|
+
if (ret[0] !== 0) {
|
|
222
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
223
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
224
|
+
}
|
|
225
|
+
return v1;
|
|
226
|
+
};
|
|
227
|
+
|
|
184
228
|
/**
|
|
185
229
|
* @param {number | null | undefined} file_num
|
|
186
230
|
* @param {boolean} import_main_css
|
|
@@ -208,11 +252,11 @@ exports.getCss = function(file_num, import_main_css) {
|
|
|
208
252
|
/**
|
|
209
253
|
* @returns {string}
|
|
210
254
|
*/
|
|
211
|
-
exports.
|
|
255
|
+
exports.exportFileMap = function() {
|
|
212
256
|
let deferred2_0;
|
|
213
257
|
let deferred2_1;
|
|
214
258
|
try {
|
|
215
|
-
const ret = wasm.
|
|
259
|
+
const ret = wasm.exportFileMap();
|
|
216
260
|
var ptr1 = ret[0];
|
|
217
261
|
var len1 = ret[1];
|
|
218
262
|
if (ret[3]) {
|
|
@@ -227,14 +271,21 @@ exports.exportSheet = function() {
|
|
|
227
271
|
}
|
|
228
272
|
};
|
|
229
273
|
|
|
274
|
+
/**
|
|
275
|
+
* @param {boolean} debug
|
|
276
|
+
*/
|
|
277
|
+
exports.setDebug = function(debug) {
|
|
278
|
+
wasm.setDebug(debug);
|
|
279
|
+
};
|
|
280
|
+
|
|
230
281
|
/**
|
|
231
282
|
* @returns {string}
|
|
232
283
|
*/
|
|
233
|
-
exports.
|
|
284
|
+
exports.exportSheet = function() {
|
|
234
285
|
let deferred2_0;
|
|
235
286
|
let deferred2_1;
|
|
236
287
|
try {
|
|
237
|
-
const ret = wasm.
|
|
288
|
+
const ret = wasm.exportSheet();
|
|
238
289
|
var ptr1 = ret[0];
|
|
239
290
|
var len1 = ret[1];
|
|
240
291
|
if (ret[3]) {
|
|
@@ -250,39 +301,31 @@ exports.exportClassMap = function() {
|
|
|
250
301
|
};
|
|
251
302
|
|
|
252
303
|
/**
|
|
253
|
-
* @param {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
259
|
-
}
|
|
260
|
-
};
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* @param {any} sheet_object
|
|
264
|
-
*/
|
|
265
|
-
exports.importSheet = function(sheet_object) {
|
|
266
|
-
const ret = wasm.importSheet(sheet_object);
|
|
267
|
-
if (ret[1]) {
|
|
268
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* @returns {string | undefined}
|
|
304
|
+
* @param {string} package_name
|
|
305
|
+
* @param {string} color_interface_name
|
|
306
|
+
* @param {string} typography_interface_name
|
|
307
|
+
* @param {string} theme_interface_name
|
|
308
|
+
* @returns {string}
|
|
274
309
|
*/
|
|
275
|
-
exports.
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
310
|
+
exports.getThemeInterface = function(package_name, color_interface_name, typography_interface_name, theme_interface_name) {
|
|
311
|
+
let deferred5_0;
|
|
312
|
+
let deferred5_1;
|
|
313
|
+
try {
|
|
314
|
+
const ptr0 = passStringToWasm0(package_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
315
|
+
const len0 = WASM_VECTOR_LEN;
|
|
316
|
+
const ptr1 = passStringToWasm0(color_interface_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
317
|
+
const len1 = WASM_VECTOR_LEN;
|
|
318
|
+
const ptr2 = passStringToWasm0(typography_interface_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
319
|
+
const len2 = WASM_VECTOR_LEN;
|
|
320
|
+
const ptr3 = passStringToWasm0(theme_interface_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
321
|
+
const len3 = WASM_VECTOR_LEN;
|
|
322
|
+
const ret = wasm.getThemeInterface(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
323
|
+
deferred5_0 = ret[0];
|
|
324
|
+
deferred5_1 = ret[1];
|
|
325
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
326
|
+
} finally {
|
|
327
|
+
wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
|
|
284
328
|
}
|
|
285
|
-
return v1;
|
|
286
329
|
};
|
|
287
330
|
|
|
288
331
|
/**
|
|
@@ -312,24 +355,12 @@ exports.codeExtract = function(filename, code, _package, css_dir, single_css, im
|
|
|
312
355
|
};
|
|
313
356
|
|
|
314
357
|
/**
|
|
315
|
-
* @
|
|
358
|
+
* @param {any} sheet_object
|
|
316
359
|
*/
|
|
317
|
-
exports.
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
const ret = wasm.exportFileMap();
|
|
322
|
-
var ptr1 = ret[0];
|
|
323
|
-
var len1 = ret[1];
|
|
324
|
-
if (ret[3]) {
|
|
325
|
-
ptr1 = 0; len1 = 0;
|
|
326
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
327
|
-
}
|
|
328
|
-
deferred2_0 = ptr1;
|
|
329
|
-
deferred2_1 = len1;
|
|
330
|
-
return getStringFromWasm0(ptr1, len1);
|
|
331
|
-
} finally {
|
|
332
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
360
|
+
exports.importSheet = function(sheet_object) {
|
|
361
|
+
const ret = wasm.importSheet(sheet_object);
|
|
362
|
+
if (ret[1]) {
|
|
363
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
333
364
|
}
|
|
334
365
|
};
|
|
335
366
|
|
|
@@ -344,58 +375,27 @@ exports.registerTheme = function(theme_object) {
|
|
|
344
375
|
};
|
|
345
376
|
|
|
346
377
|
/**
|
|
347
|
-
* @param {string} package_name
|
|
348
|
-
* @param {string} color_interface_name
|
|
349
|
-
* @param {string} typography_interface_name
|
|
350
|
-
* @param {string} theme_interface_name
|
|
351
378
|
* @returns {string}
|
|
352
379
|
*/
|
|
353
|
-
exports.
|
|
354
|
-
let
|
|
355
|
-
let
|
|
380
|
+
exports.exportClassMap = function() {
|
|
381
|
+
let deferred2_0;
|
|
382
|
+
let deferred2_1;
|
|
356
383
|
try {
|
|
357
|
-
const
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
deferred5_1 = ret[1];
|
|
368
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
384
|
+
const ret = wasm.exportClassMap();
|
|
385
|
+
var ptr1 = ret[0];
|
|
386
|
+
var len1 = ret[1];
|
|
387
|
+
if (ret[3]) {
|
|
388
|
+
ptr1 = 0; len1 = 0;
|
|
389
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
390
|
+
}
|
|
391
|
+
deferred2_0 = ptr1;
|
|
392
|
+
deferred2_1 = len1;
|
|
393
|
+
return getStringFromWasm0(ptr1, len1);
|
|
369
394
|
} finally {
|
|
370
|
-
wasm.__wbindgen_free(
|
|
371
|
-
}
|
|
372
|
-
};
|
|
373
|
-
|
|
374
|
-
/**
|
|
375
|
-
* @returns {boolean}
|
|
376
|
-
*/
|
|
377
|
-
exports.isDebug = function() {
|
|
378
|
-
const ret = wasm.isDebug();
|
|
379
|
-
return ret !== 0;
|
|
380
|
-
};
|
|
381
|
-
|
|
382
|
-
/**
|
|
383
|
-
* @param {any} sheet_object
|
|
384
|
-
*/
|
|
385
|
-
exports.importFileMap = function(sheet_object) {
|
|
386
|
-
const ret = wasm.importFileMap(sheet_object);
|
|
387
|
-
if (ret[1]) {
|
|
388
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
395
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
389
396
|
}
|
|
390
397
|
};
|
|
391
398
|
|
|
392
|
-
/**
|
|
393
|
-
* @param {boolean} debug
|
|
394
|
-
*/
|
|
395
|
-
exports.setDebug = function(debug) {
|
|
396
|
-
wasm.setDebug(debug);
|
|
397
|
-
};
|
|
398
|
-
|
|
399
399
|
const OutputFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
400
400
|
? { register: () => {}, unregister: () => {} }
|
|
401
401
|
: new FinalizationRegistry(ptr => wasm.__wbg_output_free(ptr >>> 0, 1));
|
package/pkg/index_bg.wasm
CHANGED
|
Binary file
|