@quillmark/wasm 0.32.0 → 0.32.1
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/bundler/wasm.d.ts +13 -13
- package/bundler/wasm_bg.wasm +0 -0
- package/node-esm/wasm.d.ts +13 -13
- package/node-esm/wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/bundler/wasm.d.ts
CHANGED
|
@@ -4,24 +4,23 @@
|
|
|
4
4
|
* Initialize the WASM module with panic hooks for better error messages
|
|
5
5
|
*/
|
|
6
6
|
export function init(): void;
|
|
7
|
-
export type Severity = "error" | "warning" | "note";
|
|
8
|
-
|
|
9
7
|
export interface ParsedDocument {
|
|
10
8
|
fields: Record<string, any>;
|
|
11
9
|
quillName: string;
|
|
12
10
|
}
|
|
13
11
|
|
|
12
|
+
export type OutputFormat = "pdf" | "svg" | "txt";
|
|
13
|
+
|
|
14
14
|
export interface RenderOptions {
|
|
15
15
|
format?: OutputFormat;
|
|
16
16
|
assets?: Record<string, Uint8Array | number[]>;
|
|
17
17
|
quillName?: string;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export interface
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
renderTimeMs: number;
|
|
20
|
+
export interface Artifact {
|
|
21
|
+
format: OutputFormat;
|
|
22
|
+
bytes: Uint8Array;
|
|
23
|
+
mimeType: string;
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
export interface Location {
|
|
@@ -30,6 +29,8 @@ export interface Location {
|
|
|
30
29
|
column: number;
|
|
31
30
|
}
|
|
32
31
|
|
|
32
|
+
export type Severity = "error" | "warning" | "note";
|
|
33
|
+
|
|
33
34
|
export interface Diagnostic {
|
|
34
35
|
severity: Severity;
|
|
35
36
|
code?: string;
|
|
@@ -39,8 +40,6 @@ export interface Diagnostic {
|
|
|
39
40
|
sourceChain: string[];
|
|
40
41
|
}
|
|
41
42
|
|
|
42
|
-
export type OutputFormat = "pdf" | "svg" | "txt";
|
|
43
|
-
|
|
44
43
|
export interface QuillInfo {
|
|
45
44
|
name: string;
|
|
46
45
|
backend: string;
|
|
@@ -52,10 +51,11 @@ export interface QuillInfo {
|
|
|
52
51
|
supportedFormats: OutputFormat[];
|
|
53
52
|
}
|
|
54
53
|
|
|
55
|
-
export interface
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
export interface RenderResult {
|
|
55
|
+
artifacts: Artifact[];
|
|
56
|
+
warnings: Diagnostic[];
|
|
57
|
+
outputFormat: OutputFormat;
|
|
58
|
+
renderTimeMs: number;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
package/bundler/wasm_bg.wasm
CHANGED
|
Binary file
|
package/node-esm/wasm.d.ts
CHANGED
|
@@ -4,24 +4,23 @@
|
|
|
4
4
|
* Initialize the WASM module with panic hooks for better error messages
|
|
5
5
|
*/
|
|
6
6
|
export function init(): void;
|
|
7
|
-
export type Severity = "error" | "warning" | "note";
|
|
8
|
-
|
|
9
7
|
export interface ParsedDocument {
|
|
10
8
|
fields: Record<string, any>;
|
|
11
9
|
quillName: string;
|
|
12
10
|
}
|
|
13
11
|
|
|
12
|
+
export type OutputFormat = "pdf" | "svg" | "txt";
|
|
13
|
+
|
|
14
14
|
export interface RenderOptions {
|
|
15
15
|
format?: OutputFormat;
|
|
16
16
|
assets?: Record<string, Uint8Array | number[]>;
|
|
17
17
|
quillName?: string;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export interface
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
renderTimeMs: number;
|
|
20
|
+
export interface Artifact {
|
|
21
|
+
format: OutputFormat;
|
|
22
|
+
bytes: Uint8Array;
|
|
23
|
+
mimeType: string;
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
export interface Location {
|
|
@@ -30,6 +29,8 @@ export interface Location {
|
|
|
30
29
|
column: number;
|
|
31
30
|
}
|
|
32
31
|
|
|
32
|
+
export type Severity = "error" | "warning" | "note";
|
|
33
|
+
|
|
33
34
|
export interface Diagnostic {
|
|
34
35
|
severity: Severity;
|
|
35
36
|
code?: string;
|
|
@@ -39,8 +40,6 @@ export interface Diagnostic {
|
|
|
39
40
|
sourceChain: string[];
|
|
40
41
|
}
|
|
41
42
|
|
|
42
|
-
export type OutputFormat = "pdf" | "svg" | "txt";
|
|
43
|
-
|
|
44
43
|
export interface QuillInfo {
|
|
45
44
|
name: string;
|
|
46
45
|
backend: string;
|
|
@@ -52,10 +51,11 @@ export interface QuillInfo {
|
|
|
52
51
|
supportedFormats: OutputFormat[];
|
|
53
52
|
}
|
|
54
53
|
|
|
55
|
-
export interface
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
export interface RenderResult {
|
|
55
|
+
artifacts: Artifact[];
|
|
56
|
+
warnings: Diagnostic[];
|
|
57
|
+
outputFormat: OutputFormat;
|
|
58
|
+
renderTimeMs: number;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
package/node-esm/wasm_bg.wasm
CHANGED
|
Binary file
|