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