@quillmark/wasm 0.32.1 → 0.33.0
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/README.md +2 -0
- package/bundler/wasm.d.ts +21 -21
- package/bundler/wasm_bg.wasm +0 -0
- package/node-esm/wasm.d.ts +21 -21
- package/node-esm/wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
WebAssembly bindings for the Quillmark markdown rendering engine.
|
|
4
4
|
|
|
5
|
+
Maintained by [TTQ](https://tonguetoquill.com).
|
|
6
|
+
|
|
5
7
|
## Overview
|
|
6
8
|
|
|
7
9
|
This crate provides WASM bindings for Quillmark, enabling use in web browsers, Node.js, and other JavaScript/TypeScript environments. All data exchange uses JSON serialization, and JavaScript is responsible for all I/O operations.
|
package/bundler/wasm.d.ts
CHANGED
|
@@ -4,32 +4,25 @@
|
|
|
4
4
|
* Initialize the WASM module with panic hooks for better error messages
|
|
5
5
|
*/
|
|
6
6
|
export function init(): void;
|
|
7
|
-
export interface ParsedDocument {
|
|
8
|
-
fields: Record<string, any>;
|
|
9
|
-
quillName: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type OutputFormat = "pdf" | "svg" | "txt";
|
|
13
|
-
|
|
14
7
|
export interface RenderOptions {
|
|
15
8
|
format?: OutputFormat;
|
|
16
9
|
assets?: Record<string, Uint8Array | number[]>;
|
|
17
10
|
quillName?: string;
|
|
18
11
|
}
|
|
19
12
|
|
|
20
|
-
export interface
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
export interface RenderResult {
|
|
14
|
+
artifacts: Artifact[];
|
|
15
|
+
warnings: Diagnostic[];
|
|
16
|
+
outputFormat: OutputFormat;
|
|
17
|
+
renderTimeMs: number;
|
|
24
18
|
}
|
|
25
19
|
|
|
26
|
-
export interface
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
column: number;
|
|
20
|
+
export interface ParsedDocument {
|
|
21
|
+
fields: Record<string, any>;
|
|
22
|
+
quillName: string;
|
|
30
23
|
}
|
|
31
24
|
|
|
32
|
-
export type
|
|
25
|
+
export type OutputFormat = "pdf" | "svg" | "txt";
|
|
33
26
|
|
|
34
27
|
export interface Diagnostic {
|
|
35
28
|
severity: Severity;
|
|
@@ -51,11 +44,18 @@ export interface QuillInfo {
|
|
|
51
44
|
supportedFormats: OutputFormat[];
|
|
52
45
|
}
|
|
53
46
|
|
|
54
|
-
export
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
47
|
+
export type Severity = "error" | "warning" | "note";
|
|
48
|
+
|
|
49
|
+
export interface Location {
|
|
50
|
+
file: string;
|
|
51
|
+
line: number;
|
|
52
|
+
column: number;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface Artifact {
|
|
56
|
+
format: OutputFormat;
|
|
57
|
+
bytes: Uint8Array;
|
|
58
|
+
mimeType: string;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
package/bundler/wasm_bg.wasm
CHANGED
|
Binary file
|
package/node-esm/wasm.d.ts
CHANGED
|
@@ -4,32 +4,25 @@
|
|
|
4
4
|
* Initialize the WASM module with panic hooks for better error messages
|
|
5
5
|
*/
|
|
6
6
|
export function init(): void;
|
|
7
|
-
export interface ParsedDocument {
|
|
8
|
-
fields: Record<string, any>;
|
|
9
|
-
quillName: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type OutputFormat = "pdf" | "svg" | "txt";
|
|
13
|
-
|
|
14
7
|
export interface RenderOptions {
|
|
15
8
|
format?: OutputFormat;
|
|
16
9
|
assets?: Record<string, Uint8Array | number[]>;
|
|
17
10
|
quillName?: string;
|
|
18
11
|
}
|
|
19
12
|
|
|
20
|
-
export interface
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
export interface RenderResult {
|
|
14
|
+
artifacts: Artifact[];
|
|
15
|
+
warnings: Diagnostic[];
|
|
16
|
+
outputFormat: OutputFormat;
|
|
17
|
+
renderTimeMs: number;
|
|
24
18
|
}
|
|
25
19
|
|
|
26
|
-
export interface
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
column: number;
|
|
20
|
+
export interface ParsedDocument {
|
|
21
|
+
fields: Record<string, any>;
|
|
22
|
+
quillName: string;
|
|
30
23
|
}
|
|
31
24
|
|
|
32
|
-
export type
|
|
25
|
+
export type OutputFormat = "pdf" | "svg" | "txt";
|
|
33
26
|
|
|
34
27
|
export interface Diagnostic {
|
|
35
28
|
severity: Severity;
|
|
@@ -51,11 +44,18 @@ export interface QuillInfo {
|
|
|
51
44
|
supportedFormats: OutputFormat[];
|
|
52
45
|
}
|
|
53
46
|
|
|
54
|
-
export
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
47
|
+
export type Severity = "error" | "warning" | "note";
|
|
48
|
+
|
|
49
|
+
export interface Location {
|
|
50
|
+
file: string;
|
|
51
|
+
line: number;
|
|
52
|
+
column: number;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface Artifact {
|
|
56
|
+
format: OutputFormat;
|
|
57
|
+
bytes: Uint8Array;
|
|
58
|
+
mimeType: string;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
package/node-esm/wasm_bg.wasm
CHANGED
|
Binary file
|