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