@pi-oxide/extension-js 0.12.4 → 0.13.2
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/content-script.js +3 -3
- package/extension_js.d.ts +55 -44
- package/extension_js.js +103789 -16743
- package/index.js +2631 -2060
- package/package.json +1 -1
- package/worker.js +1834 -1685
package/extension_js.d.ts
CHANGED
|
@@ -273,6 +273,7 @@ export class ExtensionSession {
|
|
|
273
273
|
* Generate API documentation for every registered public API.
|
|
274
274
|
*/
|
|
275
275
|
apiDocs(format: string): string;
|
|
276
|
+
csvParse(params: FsPathParams): Promise<FsStringResult>;
|
|
276
277
|
fsAppend(params: FsWriteParams): Promise<FsWriteResult>;
|
|
277
278
|
fsAppendBase64(params: FsWriteParams): Promise<FsWriteResult>;
|
|
278
279
|
fsAppendText(params: FsWriteParams): Promise<FsWriteResult>;
|
|
@@ -309,6 +310,7 @@ export class ExtensionSession {
|
|
|
309
310
|
* Create a new extension session.
|
|
310
311
|
*/
|
|
311
312
|
constructor();
|
|
313
|
+
pdfText(params: FsPathParams): Promise<FsStringResult>;
|
|
312
314
|
/**
|
|
313
315
|
* Reset the session, clearing all JS state.
|
|
314
316
|
*/
|
|
@@ -330,6 +332,8 @@ export class ExtensionSession {
|
|
|
330
332
|
* Clean up the session and release resources.
|
|
331
333
|
*/
|
|
332
334
|
stopWith(): void;
|
|
335
|
+
xlsxRead(params: FsPathParams): Promise<FsStringResult>;
|
|
336
|
+
zipList(params: FsPathParams): Promise<FsStringResult>;
|
|
333
337
|
}
|
|
334
338
|
|
|
335
339
|
export function clearVfsWriteCache(): void;
|
|
@@ -370,58 +374,65 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
370
374
|
|
|
371
375
|
export interface InitOutput {
|
|
372
376
|
readonly memory: WebAssembly.Memory;
|
|
377
|
+
readonly extensionsession_csvParse: (a: number, b: any) => any;
|
|
378
|
+
readonly setLogLevel: (a: number) => void;
|
|
373
379
|
readonly __wbg_extensionsession_free: (a: number, b: number) => void;
|
|
374
|
-
readonly
|
|
375
|
-
readonly
|
|
376
|
-
readonly
|
|
377
|
-
readonly
|
|
378
|
-
readonly
|
|
379
|
-
readonly
|
|
380
|
-
readonly
|
|
381
|
-
readonly
|
|
382
|
-
readonly
|
|
383
|
-
readonly
|
|
384
|
-
readonly
|
|
385
|
-
readonly
|
|
386
|
-
readonly
|
|
387
|
-
readonly
|
|
388
|
-
readonly
|
|
389
|
-
readonly
|
|
390
|
-
readonly
|
|
391
|
-
readonly
|
|
392
|
-
readonly
|
|
393
|
-
readonly
|
|
394
|
-
readonly extensionsession_fsWriteText: (a: number, b: number) => number;
|
|
380
|
+
readonly extensionsession_apiDocs: (a: number, b: number, c: number) => [number, number, number, number];
|
|
381
|
+
readonly extensionsession_fsAppend: (a: number, b: any) => any;
|
|
382
|
+
readonly extensionsession_fsAppendBase64: (a: number, b: any) => any;
|
|
383
|
+
readonly extensionsession_fsAppendText: (a: number, b: any) => any;
|
|
384
|
+
readonly extensionsession_fsCopy: (a: number, b: any) => any;
|
|
385
|
+
readonly extensionsession_fsDelete: (a: number, b: any) => any;
|
|
386
|
+
readonly extensionsession_fsExists: (a: number, b: any) => any;
|
|
387
|
+
readonly extensionsession_fsHash: (a: number, b: any) => any;
|
|
388
|
+
readonly extensionsession_fsList: (a: number, b: any) => any;
|
|
389
|
+
readonly extensionsession_fsMkdir: (a: number, b: any) => any;
|
|
390
|
+
readonly extensionsession_fsMove: (a: number, b: any) => any;
|
|
391
|
+
readonly extensionsession_fsRead: (a: number, b: any) => any;
|
|
392
|
+
readonly extensionsession_fsReadBase64: (a: number, b: any) => any;
|
|
393
|
+
readonly extensionsession_fsReadRange: (a: number, b: any) => any;
|
|
394
|
+
readonly extensionsession_fsReadText: (a: number, b: any) => any;
|
|
395
|
+
readonly extensionsession_fsStat: (a: number, b: any) => any;
|
|
396
|
+
readonly extensionsession_fsUpdate: (a: number, b: any) => any;
|
|
397
|
+
readonly extensionsession_fsWrite: (a: number, b: any) => any;
|
|
398
|
+
readonly extensionsession_fsWriteBase64: (a: number, b: any) => any;
|
|
399
|
+
readonly extensionsession_fsWriteText: (a: number, b: any) => any;
|
|
395
400
|
readonly extensionsession_injectRegistryBindings: (a: number) => void;
|
|
396
|
-
readonly extensionsession_inspect_globals: (a: number) =>
|
|
397
|
-
readonly extensionsession_load_library: (a: number, b: number, c: number) =>
|
|
401
|
+
readonly extensionsession_inspect_globals: (a: number) => any;
|
|
402
|
+
readonly extensionsession_load_library: (a: number, b: number, c: number) => any;
|
|
398
403
|
readonly extensionsession_new: () => number;
|
|
399
404
|
readonly extensionsession_reset: (a: number) => void;
|
|
400
|
-
readonly extensionsession_runCellAsync: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) =>
|
|
405
|
+
readonly extensionsession_runCellAsync: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
|
|
401
406
|
readonly extensionsession_setAborted: (a: number, b: number) => void;
|
|
402
407
|
readonly extensionsession_set_fuel_limit: (a: number, b: number) => void;
|
|
403
408
|
readonly extensionsession_stopWith: (a: number) => void;
|
|
404
|
-
readonly
|
|
405
|
-
readonly
|
|
409
|
+
readonly extensionsession_xlsxRead: (a: number, b: any) => any;
|
|
410
|
+
readonly extensionsession_zipList: (a: number, b: any) => any;
|
|
411
|
+
readonly clearVfsWriteCache: () => void;
|
|
412
|
+
readonly freezeManifest: () => [number, number];
|
|
413
|
+
readonly importManifestEntries: (a: any) => [number, number];
|
|
406
414
|
readonly main: () => void;
|
|
407
|
-
readonly registerJsCall: (a:
|
|
408
|
-
readonly registerJsCallBatch: (a: number,
|
|
409
|
-
readonly registerSharedDispatch: (a: number,
|
|
410
|
-
readonly
|
|
411
|
-
readonly
|
|
412
|
-
readonly
|
|
413
|
-
readonly collect_document: (a:
|
|
414
|
-
readonly collect_element: (a:
|
|
415
|
-
readonly format_snapshot_js: (a:
|
|
416
|
-
readonly
|
|
417
|
-
readonly
|
|
418
|
-
readonly
|
|
419
|
-
readonly
|
|
420
|
-
readonly
|
|
421
|
-
readonly
|
|
422
|
-
readonly
|
|
423
|
-
readonly
|
|
424
|
-
readonly
|
|
415
|
+
readonly registerJsCall: (a: any, b: any) => [number, number];
|
|
416
|
+
readonly registerJsCallBatch: (a: any) => [number, number];
|
|
417
|
+
readonly registerSharedDispatch: (a: any) => [number, number];
|
|
418
|
+
readonly takeCachedVfsWriteBase64: (a: number, b: number) => [number, number];
|
|
419
|
+
readonly webFsReadBase64: (a: number, b: number) => any;
|
|
420
|
+
readonly extensionsession_pdfText: (a: number, b: any) => any;
|
|
421
|
+
readonly collect_document: (a: any) => any;
|
|
422
|
+
readonly collect_element: (a: any, b: any) => any;
|
|
423
|
+
readonly format_snapshot_js: (a: any, b: number) => [number, number];
|
|
424
|
+
readonly wasm_bindgen__convert__closures_____invoke__hf36df3e7437ee619: (a: number, b: number, c: any) => [number, number];
|
|
425
|
+
readonly wasm_bindgen__convert__closures_____invoke__hbd2dbf3af6cf9460: (a: number, b: number, c: any, d: any) => void;
|
|
426
|
+
readonly wasm_bindgen__convert__closures_____invoke__h743f9b1cf9ebb73a: (a: number, b: number) => number;
|
|
427
|
+
readonly wasm_bindgen__convert__closures_____invoke__h35a41f4d0f49ac76: (a: number, b: number) => void;
|
|
428
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
429
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
430
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
|
431
|
+
readonly __externref_table_alloc: () => number;
|
|
432
|
+
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
433
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
434
|
+
readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
|
|
435
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
425
436
|
readonly __wbindgen_start: () => void;
|
|
426
437
|
}
|
|
427
438
|
|