@quillmark/wasm 0.34.0 → 0.36.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/bundler/wasm.d.ts +45 -31
- package/bundler/wasm_bg.js +29 -6
- package/bundler/wasm_bg.wasm +0 -0
- package/bundler/wasm_bg.wasm.d.ts +2 -1
- package/node-esm/wasm.d.ts +45 -31
- package/node-esm/wasm_bg.js +29 -6
- package/node-esm/wasm_bg.wasm +0 -0
- package/node-esm/wasm_bg.wasm.d.ts +2 -1
- package/package.json +1 -1
package/bundler/wasm.d.ts
CHANGED
|
@@ -4,12 +4,36 @@
|
|
|
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 OutputFormat = "pdf" | "svg" | "txt";
|
|
19
|
+
|
|
7
20
|
export interface Location {
|
|
8
21
|
file: string;
|
|
9
22
|
line: number;
|
|
10
23
|
column: number;
|
|
11
24
|
}
|
|
12
25
|
|
|
26
|
+
export interface RenderOptions {
|
|
27
|
+
format?: OutputFormat;
|
|
28
|
+
assets?: Record<string, Uint8Array | number[]>;
|
|
29
|
+
quillName?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface ParsedDocument {
|
|
33
|
+
fields: Record<string, any>;
|
|
34
|
+
quillName: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
13
37
|
export interface RenderResult {
|
|
14
38
|
artifacts: Artifact[];
|
|
15
39
|
warnings: Diagnostic[];
|
|
@@ -17,21 +41,10 @@ export interface RenderResult {
|
|
|
17
41
|
renderTimeMs: number;
|
|
18
42
|
}
|
|
19
43
|
|
|
20
|
-
export interface
|
|
21
|
-
format
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface QuillInfo {
|
|
27
|
-
name: string;
|
|
28
|
-
backend: string;
|
|
29
|
-
metadata: Record<string, any>;
|
|
30
|
-
example?: string;
|
|
31
|
-
schema: Record<string, any>;
|
|
32
|
-
defaults: Record<string, any>;
|
|
33
|
-
examples: Record<string, any[]>;
|
|
34
|
-
supportedFormats: OutputFormat[];
|
|
44
|
+
export interface Artifact {
|
|
45
|
+
format: OutputFormat;
|
|
46
|
+
bytes: Uint8Array;
|
|
47
|
+
mimeType: string;
|
|
35
48
|
}
|
|
36
49
|
|
|
37
50
|
export interface Diagnostic {
|
|
@@ -45,19 +58,6 @@ export interface Diagnostic {
|
|
|
45
58
|
|
|
46
59
|
export type Severity = "error" | "warning" | "note";
|
|
47
60
|
|
|
48
|
-
export interface Artifact {
|
|
49
|
-
format: OutputFormat;
|
|
50
|
-
bytes: Uint8Array;
|
|
51
|
-
mimeType: string;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface ParsedDocument {
|
|
55
|
-
fields: Record<string, any>;
|
|
56
|
-
quillName: string;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export type OutputFormat = "pdf" | "svg" | "txt";
|
|
60
|
-
|
|
61
61
|
/**
|
|
62
62
|
* Quillmark WASM Engine
|
|
63
63
|
*
|
|
@@ -67,7 +67,9 @@ export class Quillmark {
|
|
|
67
67
|
free(): void;
|
|
68
68
|
[Symbol.dispose](): void;
|
|
69
69
|
/**
|
|
70
|
-
* List registered
|
|
70
|
+
* List registered Quills with their exact versions
|
|
71
|
+
*
|
|
72
|
+
* Returns strings in the format "name@version" (e.g. "resume-template@2.1.0")
|
|
71
73
|
*/
|
|
72
74
|
listQuills(): string[];
|
|
73
75
|
/**
|
|
@@ -77,6 +79,14 @@ export class Quillmark {
|
|
|
77
79
|
* Useful for debugging and validation.
|
|
78
80
|
*/
|
|
79
81
|
compileData(markdown: string): any;
|
|
82
|
+
/**
|
|
83
|
+
* Resolve a Quill reference to a registered Quill, or null if not available
|
|
84
|
+
*
|
|
85
|
+
* Accepts a quill reference string like "resume-template", "resume-template@2",
|
|
86
|
+
* or "resume-template@2.1.0". Returns QuillInfo if the engine can resolve it
|
|
87
|
+
* locally, or null if an external fetch is needed.
|
|
88
|
+
*/
|
|
89
|
+
resolveQuill(quill_ref: string): any;
|
|
80
90
|
/**
|
|
81
91
|
* Get shallow information about a registered Quill
|
|
82
92
|
*
|
|
@@ -99,9 +109,13 @@ export class Quillmark {
|
|
|
99
109
|
*/
|
|
100
110
|
registerQuill(quill_json: any): QuillInfo;
|
|
101
111
|
/**
|
|
102
|
-
* Unregister a Quill
|
|
112
|
+
* Unregister a Quill by name or specific version
|
|
113
|
+
*
|
|
114
|
+
* If a base name is provided (e.g., "my-quill"), all versions of that quill are freed.
|
|
115
|
+
* If a versioned name is provided (e.g., "my-quill@2.1.0"), only that specific version is freed.
|
|
116
|
+
* Returns true if something was unregistered, false if not found.
|
|
103
117
|
*/
|
|
104
|
-
unregisterQuill(
|
|
118
|
+
unregisterQuill(name_or_ref: string): boolean;
|
|
105
119
|
/**
|
|
106
120
|
* Get the stripped JSON schema of a Quill (removes UI metadata)
|
|
107
121
|
*
|
package/bundler/wasm_bg.js
CHANGED
|
@@ -246,7 +246,9 @@ export class Quillmark {
|
|
|
246
246
|
wasm.__wbg_quillmark_free(ptr, 0);
|
|
247
247
|
}
|
|
248
248
|
/**
|
|
249
|
-
* List registered
|
|
249
|
+
* List registered Quills with their exact versions
|
|
250
|
+
*
|
|
251
|
+
* Returns strings in the format "name@version" (e.g. "resume-template@2.1.0")
|
|
250
252
|
* @returns {string[]}
|
|
251
253
|
*/
|
|
252
254
|
listQuills() {
|
|
@@ -287,6 +289,21 @@ export class Quillmark {
|
|
|
287
289
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
288
290
|
}
|
|
289
291
|
}
|
|
292
|
+
/**
|
|
293
|
+
* Resolve a Quill reference to a registered Quill, or null if not available
|
|
294
|
+
*
|
|
295
|
+
* Accepts a quill reference string like "resume-template", "resume-template@2",
|
|
296
|
+
* or "resume-template@2.1.0". Returns QuillInfo if the engine can resolve it
|
|
297
|
+
* locally, or null if an external fetch is needed.
|
|
298
|
+
* @param {string} quill_ref
|
|
299
|
+
* @returns {any}
|
|
300
|
+
*/
|
|
301
|
+
resolveQuill(quill_ref) {
|
|
302
|
+
const ptr0 = passStringToWasm0(quill_ref, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
303
|
+
const len0 = WASM_VECTOR_LEN;
|
|
304
|
+
const ret = wasm.quillmark_resolveQuill(this.__wbg_ptr, ptr0, len0);
|
|
305
|
+
return takeObject(ret);
|
|
306
|
+
}
|
|
290
307
|
/**
|
|
291
308
|
* Get shallow information about a registered Quill
|
|
292
309
|
*
|
|
@@ -361,13 +378,19 @@ export class Quillmark {
|
|
|
361
378
|
}
|
|
362
379
|
}
|
|
363
380
|
/**
|
|
364
|
-
* Unregister a Quill
|
|
365
|
-
*
|
|
381
|
+
* Unregister a Quill by name or specific version
|
|
382
|
+
*
|
|
383
|
+
* If a base name is provided (e.g., "my-quill"), all versions of that quill are freed.
|
|
384
|
+
* If a versioned name is provided (e.g., "my-quill@2.1.0"), only that specific version is freed.
|
|
385
|
+
* Returns true if something was unregistered, false if not found.
|
|
386
|
+
* @param {string} name_or_ref
|
|
387
|
+
* @returns {boolean}
|
|
366
388
|
*/
|
|
367
|
-
unregisterQuill(
|
|
368
|
-
const ptr0 = passStringToWasm0(
|
|
389
|
+
unregisterQuill(name_or_ref) {
|
|
390
|
+
const ptr0 = passStringToWasm0(name_or_ref, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
369
391
|
const len0 = WASM_VECTOR_LEN;
|
|
370
|
-
wasm.quillmark_unregisterQuill(this.__wbg_ptr, ptr0, len0);
|
|
392
|
+
const ret = wasm.quillmark_unregisterQuill(this.__wbg_ptr, ptr0, len0);
|
|
393
|
+
return ret !== 0;
|
|
371
394
|
}
|
|
372
395
|
/**
|
|
373
396
|
* Get the stripped JSON schema of a Quill (removes UI metadata)
|
package/bundler/wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -12,7 +12,8 @@ export const quillmark_new: () => number;
|
|
|
12
12
|
export const quillmark_parseMarkdown: (a: number, b: number, c: number) => void;
|
|
13
13
|
export const quillmark_registerQuill: (a: number, b: number, c: number) => void;
|
|
14
14
|
export const quillmark_render: (a: number, b: number, c: number, d: number) => void;
|
|
15
|
-
export const
|
|
15
|
+
export const quillmark_resolveQuill: (a: number, b: number, c: number) => number;
|
|
16
|
+
export const quillmark_unregisterQuill: (a: number, b: number, c: number) => number;
|
|
16
17
|
export const lut_inverse_interp16: (a: number, b: number, c: number) => number;
|
|
17
18
|
export const qcms_profile_precache_output_transform: (a: number) => void;
|
|
18
19
|
export const qcms_white_point_sRGB: (a: number) => void;
|
package/node-esm/wasm.d.ts
CHANGED
|
@@ -4,12 +4,36 @@
|
|
|
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 OutputFormat = "pdf" | "svg" | "txt";
|
|
19
|
+
|
|
7
20
|
export interface Location {
|
|
8
21
|
file: string;
|
|
9
22
|
line: number;
|
|
10
23
|
column: number;
|
|
11
24
|
}
|
|
12
25
|
|
|
26
|
+
export interface RenderOptions {
|
|
27
|
+
format?: OutputFormat;
|
|
28
|
+
assets?: Record<string, Uint8Array | number[]>;
|
|
29
|
+
quillName?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface ParsedDocument {
|
|
33
|
+
fields: Record<string, any>;
|
|
34
|
+
quillName: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
13
37
|
export interface RenderResult {
|
|
14
38
|
artifacts: Artifact[];
|
|
15
39
|
warnings: Diagnostic[];
|
|
@@ -17,21 +41,10 @@ export interface RenderResult {
|
|
|
17
41
|
renderTimeMs: number;
|
|
18
42
|
}
|
|
19
43
|
|
|
20
|
-
export interface
|
|
21
|
-
format
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface QuillInfo {
|
|
27
|
-
name: string;
|
|
28
|
-
backend: string;
|
|
29
|
-
metadata: Record<string, any>;
|
|
30
|
-
example?: string;
|
|
31
|
-
schema: Record<string, any>;
|
|
32
|
-
defaults: Record<string, any>;
|
|
33
|
-
examples: Record<string, any[]>;
|
|
34
|
-
supportedFormats: OutputFormat[];
|
|
44
|
+
export interface Artifact {
|
|
45
|
+
format: OutputFormat;
|
|
46
|
+
bytes: Uint8Array;
|
|
47
|
+
mimeType: string;
|
|
35
48
|
}
|
|
36
49
|
|
|
37
50
|
export interface Diagnostic {
|
|
@@ -45,19 +58,6 @@ export interface Diagnostic {
|
|
|
45
58
|
|
|
46
59
|
export type Severity = "error" | "warning" | "note";
|
|
47
60
|
|
|
48
|
-
export interface Artifact {
|
|
49
|
-
format: OutputFormat;
|
|
50
|
-
bytes: Uint8Array;
|
|
51
|
-
mimeType: string;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface ParsedDocument {
|
|
55
|
-
fields: Record<string, any>;
|
|
56
|
-
quillName: string;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export type OutputFormat = "pdf" | "svg" | "txt";
|
|
60
|
-
|
|
61
61
|
/**
|
|
62
62
|
* Quillmark WASM Engine
|
|
63
63
|
*
|
|
@@ -67,7 +67,9 @@ export class Quillmark {
|
|
|
67
67
|
free(): void;
|
|
68
68
|
[Symbol.dispose](): void;
|
|
69
69
|
/**
|
|
70
|
-
* List registered
|
|
70
|
+
* List registered Quills with their exact versions
|
|
71
|
+
*
|
|
72
|
+
* Returns strings in the format "name@version" (e.g. "resume-template@2.1.0")
|
|
71
73
|
*/
|
|
72
74
|
listQuills(): string[];
|
|
73
75
|
/**
|
|
@@ -77,6 +79,14 @@ export class Quillmark {
|
|
|
77
79
|
* Useful for debugging and validation.
|
|
78
80
|
*/
|
|
79
81
|
compileData(markdown: string): any;
|
|
82
|
+
/**
|
|
83
|
+
* Resolve a Quill reference to a registered Quill, or null if not available
|
|
84
|
+
*
|
|
85
|
+
* Accepts a quill reference string like "resume-template", "resume-template@2",
|
|
86
|
+
* or "resume-template@2.1.0". Returns QuillInfo if the engine can resolve it
|
|
87
|
+
* locally, or null if an external fetch is needed.
|
|
88
|
+
*/
|
|
89
|
+
resolveQuill(quill_ref: string): any;
|
|
80
90
|
/**
|
|
81
91
|
* Get shallow information about a registered Quill
|
|
82
92
|
*
|
|
@@ -99,9 +109,13 @@ export class Quillmark {
|
|
|
99
109
|
*/
|
|
100
110
|
registerQuill(quill_json: any): QuillInfo;
|
|
101
111
|
/**
|
|
102
|
-
* Unregister a Quill
|
|
112
|
+
* Unregister a Quill by name or specific version
|
|
113
|
+
*
|
|
114
|
+
* If a base name is provided (e.g., "my-quill"), all versions of that quill are freed.
|
|
115
|
+
* If a versioned name is provided (e.g., "my-quill@2.1.0"), only that specific version is freed.
|
|
116
|
+
* Returns true if something was unregistered, false if not found.
|
|
103
117
|
*/
|
|
104
|
-
unregisterQuill(
|
|
118
|
+
unregisterQuill(name_or_ref: string): boolean;
|
|
105
119
|
/**
|
|
106
120
|
* Get the stripped JSON schema of a Quill (removes UI metadata)
|
|
107
121
|
*
|
package/node-esm/wasm_bg.js
CHANGED
|
@@ -240,7 +240,9 @@ export class Quillmark {
|
|
|
240
240
|
wasm.__wbg_quillmark_free(ptr, 0);
|
|
241
241
|
}
|
|
242
242
|
/**
|
|
243
|
-
* List registered
|
|
243
|
+
* List registered Quills with their exact versions
|
|
244
|
+
*
|
|
245
|
+
* Returns strings in the format "name@version" (e.g. "resume-template@2.1.0")
|
|
244
246
|
* @returns {string[]}
|
|
245
247
|
*/
|
|
246
248
|
listQuills() {
|
|
@@ -281,6 +283,21 @@ export class Quillmark {
|
|
|
281
283
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
282
284
|
}
|
|
283
285
|
}
|
|
286
|
+
/**
|
|
287
|
+
* Resolve a Quill reference to a registered Quill, or null if not available
|
|
288
|
+
*
|
|
289
|
+
* Accepts a quill reference string like "resume-template", "resume-template@2",
|
|
290
|
+
* or "resume-template@2.1.0". Returns QuillInfo if the engine can resolve it
|
|
291
|
+
* locally, or null if an external fetch is needed.
|
|
292
|
+
* @param {string} quill_ref
|
|
293
|
+
* @returns {any}
|
|
294
|
+
*/
|
|
295
|
+
resolveQuill(quill_ref) {
|
|
296
|
+
const ptr0 = passStringToWasm0(quill_ref, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
297
|
+
const len0 = WASM_VECTOR_LEN;
|
|
298
|
+
const ret = wasm.quillmark_resolveQuill(this.__wbg_ptr, ptr0, len0);
|
|
299
|
+
return takeObject(ret);
|
|
300
|
+
}
|
|
284
301
|
/**
|
|
285
302
|
* Get shallow information about a registered Quill
|
|
286
303
|
*
|
|
@@ -355,13 +372,19 @@ export class Quillmark {
|
|
|
355
372
|
}
|
|
356
373
|
}
|
|
357
374
|
/**
|
|
358
|
-
* Unregister a Quill
|
|
359
|
-
*
|
|
375
|
+
* Unregister a Quill by name or specific version
|
|
376
|
+
*
|
|
377
|
+
* If a base name is provided (e.g., "my-quill"), all versions of that quill are freed.
|
|
378
|
+
* If a versioned name is provided (e.g., "my-quill@2.1.0"), only that specific version is freed.
|
|
379
|
+
* Returns true if something was unregistered, false if not found.
|
|
380
|
+
* @param {string} name_or_ref
|
|
381
|
+
* @returns {boolean}
|
|
360
382
|
*/
|
|
361
|
-
unregisterQuill(
|
|
362
|
-
const ptr0 = passStringToWasm0(
|
|
383
|
+
unregisterQuill(name_or_ref) {
|
|
384
|
+
const ptr0 = passStringToWasm0(name_or_ref, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
363
385
|
const len0 = WASM_VECTOR_LEN;
|
|
364
|
-
wasm.quillmark_unregisterQuill(this.__wbg_ptr, ptr0, len0);
|
|
386
|
+
const ret = wasm.quillmark_unregisterQuill(this.__wbg_ptr, ptr0, len0);
|
|
387
|
+
return ret !== 0;
|
|
365
388
|
}
|
|
366
389
|
/**
|
|
367
390
|
* Get the stripped JSON schema of a Quill (removes UI metadata)
|
package/node-esm/wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -12,7 +12,8 @@ export const quillmark_new: () => number;
|
|
|
12
12
|
export const quillmark_parseMarkdown: (a: number, b: number, c: number) => void;
|
|
13
13
|
export const quillmark_registerQuill: (a: number, b: number, c: number) => void;
|
|
14
14
|
export const quillmark_render: (a: number, b: number, c: number, d: number) => void;
|
|
15
|
-
export const
|
|
15
|
+
export const quillmark_resolveQuill: (a: number, b: number, c: number) => number;
|
|
16
|
+
export const quillmark_unregisterQuill: (a: number, b: number, c: number) => number;
|
|
16
17
|
export const lut_inverse_interp16: (a: number, b: number, c: number) => number;
|
|
17
18
|
export const qcms_profile_precache_output_transform: (a: number) => void;
|
|
18
19
|
export const qcms_white_point_sRGB: (a: number) => void;
|