@quillmark/wasm 0.31.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/README.md +3 -3
- package/bundler/wasm.d.ts +23 -23
- package/bundler/wasm_bg.wasm +0 -0
- package/node-esm/wasm.d.ts +23 -23
- package/node-esm/wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -69,8 +69,8 @@ const engine = new Quillmark();
|
|
|
69
69
|
|
|
70
70
|
const quillJson = {
|
|
71
71
|
files: {
|
|
72
|
-
'Quill.
|
|
73
|
-
contents: '
|
|
72
|
+
'Quill.yaml': {
|
|
73
|
+
contents: 'Quill:\n name: my_quill\n version: "1.0"\n backend: typst\n plate_file: plate.typ\n description: My template\n'
|
|
74
74
|
},
|
|
75
75
|
'plate.typ': {
|
|
76
76
|
contents: '= {{ title }}\n\n{{ body | Content }}'
|
|
@@ -146,7 +146,7 @@ Returned by `getQuillInfo()`:
|
|
|
146
146
|
{
|
|
147
147
|
name: string,
|
|
148
148
|
backend: string, // e.g., "typst"
|
|
149
|
-
metadata: object, // Quill metadata from Quill.
|
|
149
|
+
metadata: object, // Quill metadata from Quill.yaml
|
|
150
150
|
example?: string, // Example markdown (if available)
|
|
151
151
|
fieldSchemas: object, // Field schema definitions
|
|
152
152
|
supportedFormats: Array<'pdf' | 'svg' | 'txt'> // Formats this backend supports
|
package/bundler/wasm.d.ts
CHANGED
|
@@ -4,7 +4,18 @@
|
|
|
4
4
|
* Initialize the WASM module with panic hooks for better error messages
|
|
5
5
|
*/
|
|
6
6
|
export function init(): void;
|
|
7
|
-
export
|
|
7
|
+
export interface ParsedDocument {
|
|
8
|
+
fields: Record<string, any>;
|
|
9
|
+
quillName: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type OutputFormat = "pdf" | "svg" | "txt";
|
|
13
|
+
|
|
14
|
+
export interface RenderOptions {
|
|
15
|
+
format?: OutputFormat;
|
|
16
|
+
assets?: Record<string, Uint8Array | number[]>;
|
|
17
|
+
quillName?: string;
|
|
18
|
+
}
|
|
8
19
|
|
|
9
20
|
export interface Artifact {
|
|
10
21
|
format: OutputFormat;
|
|
@@ -12,13 +23,14 @@ export interface Artifact {
|
|
|
12
23
|
mimeType: string;
|
|
13
24
|
}
|
|
14
25
|
|
|
15
|
-
export interface
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
renderTimeMs: number;
|
|
26
|
+
export interface Location {
|
|
27
|
+
file: string;
|
|
28
|
+
line: number;
|
|
29
|
+
column: number;
|
|
20
30
|
}
|
|
21
31
|
|
|
32
|
+
export type Severity = "error" | "warning" | "note";
|
|
33
|
+
|
|
22
34
|
export interface Diagnostic {
|
|
23
35
|
severity: Severity;
|
|
24
36
|
code?: string;
|
|
@@ -28,19 +40,6 @@ export interface Diagnostic {
|
|
|
28
40
|
sourceChain: string[];
|
|
29
41
|
}
|
|
30
42
|
|
|
31
|
-
export type OutputFormat = "pdf" | "svg" | "txt";
|
|
32
|
-
|
|
33
|
-
export interface Location {
|
|
34
|
-
file: string;
|
|
35
|
-
line: number;
|
|
36
|
-
column: number;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface ParsedDocument {
|
|
40
|
-
fields: Record<string, any>;
|
|
41
|
-
quillName: string;
|
|
42
|
-
}
|
|
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,7 +4,18 @@
|
|
|
4
4
|
* Initialize the WASM module with panic hooks for better error messages
|
|
5
5
|
*/
|
|
6
6
|
export function init(): void;
|
|
7
|
-
export
|
|
7
|
+
export interface ParsedDocument {
|
|
8
|
+
fields: Record<string, any>;
|
|
9
|
+
quillName: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type OutputFormat = "pdf" | "svg" | "txt";
|
|
13
|
+
|
|
14
|
+
export interface RenderOptions {
|
|
15
|
+
format?: OutputFormat;
|
|
16
|
+
assets?: Record<string, Uint8Array | number[]>;
|
|
17
|
+
quillName?: string;
|
|
18
|
+
}
|
|
8
19
|
|
|
9
20
|
export interface Artifact {
|
|
10
21
|
format: OutputFormat;
|
|
@@ -12,13 +23,14 @@ export interface Artifact {
|
|
|
12
23
|
mimeType: string;
|
|
13
24
|
}
|
|
14
25
|
|
|
15
|
-
export interface
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
renderTimeMs: number;
|
|
26
|
+
export interface Location {
|
|
27
|
+
file: string;
|
|
28
|
+
line: number;
|
|
29
|
+
column: number;
|
|
20
30
|
}
|
|
21
31
|
|
|
32
|
+
export type Severity = "error" | "warning" | "note";
|
|
33
|
+
|
|
22
34
|
export interface Diagnostic {
|
|
23
35
|
severity: Severity;
|
|
24
36
|
code?: string;
|
|
@@ -28,19 +40,6 @@ export interface Diagnostic {
|
|
|
28
40
|
sourceChain: string[];
|
|
29
41
|
}
|
|
30
42
|
|
|
31
|
-
export type OutputFormat = "pdf" | "svg" | "txt";
|
|
32
|
-
|
|
33
|
-
export interface Location {
|
|
34
|
-
file: string;
|
|
35
|
-
line: number;
|
|
36
|
-
column: number;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface ParsedDocument {
|
|
40
|
-
fields: Record<string, any>;
|
|
41
|
-
quillName: string;
|
|
42
|
-
}
|
|
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
|