@quillmark/wasm 0.39.0 → 0.40.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 CHANGED
@@ -4,14 +4,9 @@
4
4
  * Initialize the WASM module with panic hooks for better error messages
5
5
  */
6
6
  export function init(): void;
7
- export type OutputFormat = "pdf" | "svg" | "txt";
8
-
9
- export type Severity = "error" | "warning" | "note";
10
-
11
- export interface Location {
12
- file: string;
13
- line: number;
14
- column: number;
7
+ export interface ParsedDocument {
8
+ fields: Record<string, any>;
9
+ quillRef: string;
15
10
  }
16
11
 
17
12
  export interface Diagnostic {
@@ -23,17 +18,12 @@ export interface Diagnostic {
23
18
  sourceChain: string[];
24
19
  }
25
20
 
26
- export interface Artifact {
27
- format: OutputFormat;
28
- bytes: Uint8Array;
29
- mimeType: string;
30
- }
21
+ export type Severity = "error" | "warning" | "note";
31
22
 
32
- export interface RenderResult {
33
- artifacts: Artifact[];
34
- warnings: Diagnostic[];
35
- outputFormat: OutputFormat;
36
- renderTimeMs: number;
23
+ export interface Location {
24
+ file: string;
25
+ line: number;
26
+ column: number;
37
27
  }
38
28
 
39
29
  export interface QuillInfo {
@@ -47,9 +37,19 @@ export interface QuillInfo {
47
37
  supportedFormats: OutputFormat[];
48
38
  }
49
39
 
50
- export interface ParsedDocument {
51
- fields: Record<string, any>;
52
- quillRef: string;
40
+ export interface RenderResult {
41
+ artifacts: Artifact[];
42
+ warnings: Diagnostic[];
43
+ outputFormat: OutputFormat;
44
+ renderTimeMs: number;
45
+ }
46
+
47
+ export type OutputFormat = "pdf" | "svg" | "txt";
48
+
49
+ export interface Artifact {
50
+ format: OutputFormat;
51
+ bytes: Uint8Array;
52
+ mimeType: string;
53
53
  }
54
54
 
55
55
  export interface RenderOptions {
@@ -67,9 +67,33 @@ export class Quillmark {
67
67
  free(): void;
68
68
  [Symbol.dispose](): void;
69
69
  /**
70
- * JavaScript constructor: `new Quillmark()`
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
- constructor();
74
+ listQuills(): string[];
75
+ /**
76
+ * Compile markdown to JSON data without rendering artifacts.
77
+ *
78
+ * This exposes the intermediate data structure that would be passed to the backend.
79
+ * Useful for debugging and validation.
80
+ */
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;
90
+ /**
91
+ * Get shallow information about a registered Quill
92
+ *
93
+ * This returns metadata, backend info, field schemas, and supported formats
94
+ * that consumers need to configure render options for the next step.
95
+ */
96
+ getQuillInfo(name: string): QuillInfo;
73
97
  /**
74
98
  * Parse markdown into a ParsedDocument
75
99
  *
@@ -85,12 +109,13 @@ export class Quillmark {
85
109
  */
86
110
  registerQuill(quill_json: any): QuillInfo;
87
111
  /**
88
- * Get shallow information about a registered Quill
112
+ * Unregister a Quill by name or specific version
89
113
  *
90
- * This returns metadata, backend info, field schemas, and supported formats
91
- * that consumers need to configure render options for the next step.
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.
92
117
  */
93
- getQuillInfo(name: string): QuillInfo;
118
+ unregisterQuill(name_or_ref: string): boolean;
94
119
  /**
95
120
  * Get the stripped JSON schema of a Quill (removes UI metadata)
96
121
  *
@@ -99,24 +124,9 @@ export class Quillmark {
99
124
  */
100
125
  getStrippedSchema(name: string): any;
101
126
  /**
102
- * Perform a dry run validation without backend compilation.
103
- *
104
- * Executes parsing, schema validation, and template composition to
105
- * surface input errors quickly. Returns successfully on valid input,
106
- * or throws an error with diagnostic payload on failure.
107
- *
108
- * The quill name is inferred from the markdown's QUILL tag (or defaults to "__default__").
109
- *
110
- * This is useful for fast feedback loops in LLM-driven document generation.
111
- */
112
- dryRun(markdown: string): void;
113
- /**
114
- * Compile markdown to JSON data without rendering artifacts.
115
- *
116
- * This exposes the intermediate data structure that would be passed to the backend.
117
- * Useful for debugging and validation.
127
+ * JavaScript constructor: `new Quillmark()`
118
128
  */
119
- compileData(markdown: string): any;
129
+ constructor();
120
130
  /**
121
131
  * Render a ParsedDocument to final artifacts (PDF, SVG, TXT)
122
132
  *
@@ -126,25 +136,15 @@ export class Quillmark {
126
136
  */
127
137
  render(parsed: ParsedDocument, opts: RenderOptions): RenderResult;
128
138
  /**
129
- * Resolve a Quill reference to a registered Quill, or null if not available
139
+ * Perform a dry run validation without backend compilation.
130
140
  *
131
- * Accepts a quill reference string like "resume-template", "resume-template@2",
132
- * or "resume-template@2.1.0". Returns QuillInfo if the engine can resolve it
133
- * locally, or null if an external fetch is needed.
134
- */
135
- resolveQuill(quill_ref: string): any;
136
- /**
137
- * List registered Quills with their exact versions
141
+ * Executes parsing, schema validation, and template composition to
142
+ * surface input errors quickly. Returns successfully on valid input,
143
+ * or throws an error with diagnostic payload on failure.
138
144
  *
139
- * Returns strings in the format "name@version" (e.g. "resume-template@2.1.0")
140
- */
141
- listQuills(): string[];
142
- /**
143
- * Unregister a Quill by name or specific version
145
+ * The quill name is inferred from the markdown's QUILL tag (or defaults to "__default__").
144
146
  *
145
- * If a base name is provided (e.g., "my-quill"), all versions of that quill are freed.
146
- * If a versioned name is provided (e.g., "my-quill@2.1.0"), only that specific version is freed.
147
- * Returns true if something was unregistered, false if not found.
147
+ * This is useful for fast feedback loops in LLM-driven document generation.
148
148
  */
149
- unregisterQuill(name_or_ref: string): boolean;
149
+ dryRun(markdown: string): void;
150
150
  }
@@ -207,6 +207,12 @@ function debugString(val) {
207
207
  // TODO we could test for more things here, like `Set`s and `Map`s.
208
208
  return className;
209
209
  }
210
+ /**
211
+ * Initialize the WASM module with panic hooks for better error messages
212
+ */
213
+ export function init() {
214
+ wasm.init();
215
+ }
210
216
 
211
217
  function getArrayJsValueFromWasm0(ptr, len) {
212
218
  ptr = ptr >>> 0;
@@ -217,12 +223,6 @@ function getArrayJsValueFromWasm0(ptr, len) {
217
223
  }
218
224
  return result;
219
225
  }
220
- /**
221
- * Initialize the WASM module with panic hooks for better error messages
222
- */
223
- export function init() {
224
- wasm.init();
225
- }
226
226
 
227
227
  const QuillmarkFinalization = (typeof FinalizationRegistry === 'undefined')
228
228
  ? { register: () => {}, unregister: () => {} }
@@ -246,51 +246,38 @@ export class Quillmark {
246
246
  wasm.__wbg_quillmark_free(ptr, 0);
247
247
  }
248
248
  /**
249
- * JavaScript constructor: `new Quillmark()`
250
- */
251
- constructor() {
252
- const ret = wasm.quillmark_new();
253
- this.__wbg_ptr = ret >>> 0;
254
- QuillmarkFinalization.register(this, this.__wbg_ptr, this);
255
- return this;
256
- }
257
- /**
258
- * Parse markdown into a ParsedDocument
249
+ * List registered Quills with their exact versions
259
250
  *
260
- * This is the first step in the workflow. The returned ParsedDocument contains
261
- * the parsed YAML frontmatter fields and the quill_ref (from QUILL field or "__default__").
262
- * @param {string} markdown
263
- * @returns {ParsedDocument}
251
+ * Returns strings in the format "name@version" (e.g. "resume-template@2.1.0")
252
+ * @returns {string[]}
264
253
  */
265
- static parseMarkdown(markdown) {
254
+ listQuills() {
266
255
  try {
267
256
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
268
- const ptr0 = passStringToWasm0(markdown, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
269
- const len0 = WASM_VECTOR_LEN;
270
- wasm.quillmark_parseMarkdown(retptr, ptr0, len0);
257
+ wasm.quillmark_listQuills(retptr, this.__wbg_ptr);
271
258
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
272
259
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
273
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
274
- if (r2) {
275
- throw takeObject(r1);
276
- }
277
- return takeObject(r0);
260
+ var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
261
+ wasm.__wbindgen_export_3(r0, r1 * 4, 4);
262
+ return v1;
278
263
  } finally {
279
264
  wasm.__wbindgen_add_to_stack_pointer(16);
280
265
  }
281
266
  }
282
267
  /**
283
- * Register a Quill template bundle
268
+ * Compile markdown to JSON data without rendering artifacts.
284
269
  *
285
- * Accepts either a JSON string or a JsValue object representing the Quill file tree.
286
- * Validation happens automatically on registration.
287
- * @param {any} quill_json
288
- * @returns {QuillInfo}
270
+ * This exposes the intermediate data structure that would be passed to the backend.
271
+ * Useful for debugging and validation.
272
+ * @param {string} markdown
273
+ * @returns {any}
289
274
  */
290
- registerQuill(quill_json) {
275
+ compileData(markdown) {
291
276
  try {
292
277
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
293
- wasm.quillmark_registerQuill(retptr, this.__wbg_ptr, addHeapObject(quill_json));
278
+ const ptr0 = passStringToWasm0(markdown, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
279
+ const len0 = WASM_VECTOR_LEN;
280
+ wasm.quillmark_compileData(retptr, this.__wbg_ptr, ptr0, len0);
294
281
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
295
282
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
296
283
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -302,6 +289,21 @@ export class Quillmark {
302
289
  wasm.__wbindgen_add_to_stack_pointer(16);
303
290
  }
304
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
+ }
305
307
  /**
306
308
  * Get shallow information about a registered Quill
307
309
  *
@@ -328,19 +330,19 @@ export class Quillmark {
328
330
  }
329
331
  }
330
332
  /**
331
- * Get the stripped JSON schema of a Quill (removes UI metadata)
333
+ * Parse markdown into a ParsedDocument
332
334
  *
333
- * This returns the schema in a format suitable for feeding to LLMs or
334
- * other consumers that don't need the UI configuration "x-ui" fields.
335
- * @param {string} name
336
- * @returns {any}
335
+ * This is the first step in the workflow. The returned ParsedDocument contains
336
+ * the parsed YAML frontmatter fields and the quill_ref (from QUILL field or "__default__").
337
+ * @param {string} markdown
338
+ * @returns {ParsedDocument}
337
339
  */
338
- getStrippedSchema(name) {
340
+ static parseMarkdown(markdown) {
339
341
  try {
340
342
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
341
- const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
343
+ const ptr0 = passStringToWasm0(markdown, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
342
344
  const len0 = WASM_VECTOR_LEN;
343
- wasm.quillmark_getStrippedSchema(retptr, this.__wbg_ptr, ptr0, len0);
345
+ wasm.quillmark_parseMarkdown(retptr, ptr0, len0);
344
346
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
345
347
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
346
348
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -353,46 +355,57 @@ export class Quillmark {
353
355
  }
354
356
  }
355
357
  /**
356
- * Perform a dry run validation without backend compilation.
357
- *
358
- * Executes parsing, schema validation, and template composition to
359
- * surface input errors quickly. Returns successfully on valid input,
360
- * or throws an error with diagnostic payload on failure.
361
- *
362
- * The quill name is inferred from the markdown's QUILL tag (or defaults to "__default__").
358
+ * Register a Quill template bundle
363
359
  *
364
- * This is useful for fast feedback loops in LLM-driven document generation.
365
- * @param {string} markdown
360
+ * Accepts either a JSON string or a JsValue object representing the Quill file tree.
361
+ * Validation happens automatically on registration.
362
+ * @param {any} quill_json
363
+ * @returns {QuillInfo}
366
364
  */
367
- dryRun(markdown) {
365
+ registerQuill(quill_json) {
368
366
  try {
369
367
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
370
- const ptr0 = passStringToWasm0(markdown, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
371
- const len0 = WASM_VECTOR_LEN;
372
- wasm.quillmark_dryRun(retptr, this.__wbg_ptr, ptr0, len0);
368
+ wasm.quillmark_registerQuill(retptr, this.__wbg_ptr, addHeapObject(quill_json));
373
369
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
374
370
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
375
- if (r1) {
376
- throw takeObject(r0);
371
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
372
+ if (r2) {
373
+ throw takeObject(r1);
377
374
  }
375
+ return takeObject(r0);
378
376
  } finally {
379
377
  wasm.__wbindgen_add_to_stack_pointer(16);
380
378
  }
381
379
  }
382
380
  /**
383
- * Compile markdown to JSON data without rendering artifacts.
381
+ * Unregister a Quill by name or specific version
384
382
  *
385
- * This exposes the intermediate data structure that would be passed to the backend.
386
- * Useful for debugging and validation.
387
- * @param {string} markdown
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}
388
+ */
389
+ unregisterQuill(name_or_ref) {
390
+ const ptr0 = passStringToWasm0(name_or_ref, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
391
+ const len0 = WASM_VECTOR_LEN;
392
+ const ret = wasm.quillmark_unregisterQuill(this.__wbg_ptr, ptr0, len0);
393
+ return ret !== 0;
394
+ }
395
+ /**
396
+ * Get the stripped JSON schema of a Quill (removes UI metadata)
397
+ *
398
+ * This returns the schema in a format suitable for feeding to LLMs or
399
+ * other consumers that don't need the UI configuration "x-ui" fields.
400
+ * @param {string} name
388
401
  * @returns {any}
389
402
  */
390
- compileData(markdown) {
403
+ getStrippedSchema(name) {
391
404
  try {
392
405
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
393
- const ptr0 = passStringToWasm0(markdown, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
406
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
394
407
  const len0 = WASM_VECTOR_LEN;
395
- wasm.quillmark_compileData(retptr, this.__wbg_ptr, ptr0, len0);
408
+ wasm.quillmark_getStrippedSchema(retptr, this.__wbg_ptr, ptr0, len0);
396
409
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
397
410
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
398
411
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -404,6 +417,15 @@ export class Quillmark {
404
417
  wasm.__wbindgen_add_to_stack_pointer(16);
405
418
  }
406
419
  }
420
+ /**
421
+ * JavaScript constructor: `new Quillmark()`
422
+ */
423
+ constructor() {
424
+ const ret = wasm.quillmark_new();
425
+ this.__wbg_ptr = ret >>> 0;
426
+ QuillmarkFinalization.register(this, this.__wbg_ptr, this);
427
+ return this;
428
+ }
407
429
  /**
408
430
  * Render a ParsedDocument to final artifacts (PDF, SVG, TXT)
409
431
  *
@@ -430,54 +452,32 @@ export class Quillmark {
430
452
  }
431
453
  }
432
454
  /**
433
- * Resolve a Quill reference to a registered Quill, or null if not available
455
+ * Perform a dry run validation without backend compilation.
434
456
  *
435
- * Accepts a quill reference string like "resume-template", "resume-template@2",
436
- * or "resume-template@2.1.0". Returns QuillInfo if the engine can resolve it
437
- * locally, or null if an external fetch is needed.
438
- * @param {string} quill_ref
439
- * @returns {any}
440
- */
441
- resolveQuill(quill_ref) {
442
- const ptr0 = passStringToWasm0(quill_ref, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
443
- const len0 = WASM_VECTOR_LEN;
444
- const ret = wasm.quillmark_resolveQuill(this.__wbg_ptr, ptr0, len0);
445
- return takeObject(ret);
446
- }
447
- /**
448
- * List registered Quills with their exact versions
457
+ * Executes parsing, schema validation, and template composition to
458
+ * surface input errors quickly. Returns successfully on valid input,
459
+ * or throws an error with diagnostic payload on failure.
449
460
  *
450
- * Returns strings in the format "name@version" (e.g. "resume-template@2.1.0")
451
- * @returns {string[]}
461
+ * The quill name is inferred from the markdown's QUILL tag (or defaults to "__default__").
462
+ *
463
+ * This is useful for fast feedback loops in LLM-driven document generation.
464
+ * @param {string} markdown
452
465
  */
453
- listQuills() {
466
+ dryRun(markdown) {
454
467
  try {
455
468
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
456
- wasm.quillmark_listQuills(retptr, this.__wbg_ptr);
469
+ const ptr0 = passStringToWasm0(markdown, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
470
+ const len0 = WASM_VECTOR_LEN;
471
+ wasm.quillmark_dryRun(retptr, this.__wbg_ptr, ptr0, len0);
457
472
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
458
473
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
459
- var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
460
- wasm.__wbindgen_export_3(r0, r1 * 4, 4);
461
- return v1;
474
+ if (r1) {
475
+ throw takeObject(r0);
476
+ }
462
477
  } finally {
463
478
  wasm.__wbindgen_add_to_stack_pointer(16);
464
479
  }
465
480
  }
466
- /**
467
- * Unregister a Quill by name or specific version
468
- *
469
- * If a base name is provided (e.g., "my-quill"), all versions of that quill are freed.
470
- * If a versioned name is provided (e.g., "my-quill@2.1.0"), only that specific version is freed.
471
- * Returns true if something was unregistered, false if not found.
472
- * @param {string} name_or_ref
473
- * @returns {boolean}
474
- */
475
- unregisterQuill(name_or_ref) {
476
- const ptr0 = passStringToWasm0(name_or_ref, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
477
- const len0 = WASM_VECTOR_LEN;
478
- const ret = wasm.quillmark_unregisterQuill(this.__wbg_ptr, ptr0, len0);
479
- return ret !== 0;
480
- }
481
481
  }
482
482
  if (Symbol.dispose) Quillmark.prototype[Symbol.dispose] = Quillmark.prototype.free;
483
483
 
Binary file
@@ -2,31 +2,31 @@
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const __wbg_quillmark_free: (a: number, b: number) => void;
5
+ export const init: () => void;
6
+ export const quillmark_compileData: (a: number, b: number, c: number, d: number) => void;
7
+ export const quillmark_dryRun: (a: number, b: number, c: number, d: number) => void;
8
+ export const quillmark_getQuillInfo: (a: number, b: number, c: number, d: number) => void;
9
+ export const quillmark_getStrippedSchema: (a: number, b: number, c: number, d: number) => void;
10
+ export const quillmark_listQuills: (a: number, b: number) => void;
5
11
  export const quillmark_new: () => number;
6
12
  export const quillmark_parseMarkdown: (a: number, b: number, c: number) => void;
7
13
  export const quillmark_registerQuill: (a: number, b: number, c: number) => void;
8
- export const quillmark_getQuillInfo: (a: number, b: number, c: number, d: number) => void;
9
- export const quillmark_getStrippedSchema: (a: number, b: number, c: number, d: number) => void;
10
- export const quillmark_dryRun: (a: number, b: number, c: number, d: number) => void;
11
- export const quillmark_compileData: (a: number, b: number, c: number, d: number) => void;
12
14
  export const quillmark_render: (a: number, b: number, c: number, d: number) => void;
13
15
  export const quillmark_resolveQuill: (a: number, b: number, c: number) => number;
14
- export const quillmark_listQuills: (a: number, b: number) => void;
15
16
  export const quillmark_unregisterQuill: (a: number, b: number, c: number) => number;
16
- export const init: () => void;
17
- export const qcms_profile_is_bogus: (a: number) => number;
18
- export const qcms_white_point_sRGB: (a: number) => void;
17
+ export const lut_inverse_interp16: (a: number, b: number, c: number) => number;
19
18
  export const qcms_profile_precache_output_transform: (a: number) => void;
20
- export const qcms_transform_data_rgb_out_lut_precache: (a: number, b: number, c: number, d: number) => void;
21
- export const qcms_transform_data_rgba_out_lut_precache: (a: number, b: number, c: number, d: number) => void;
22
- export const qcms_transform_data_bgra_out_lut_precache: (a: number, b: number, c: number, d: number) => void;
19
+ export const qcms_white_point_sRGB: (a: number) => void;
23
20
  export const qcms_transform_data_rgb_out_lut: (a: number, b: number, c: number, d: number) => void;
24
21
  export const qcms_transform_data_rgba_out_lut: (a: number, b: number, c: number, d: number) => void;
25
22
  export const qcms_transform_data_bgra_out_lut: (a: number, b: number, c: number, d: number) => void;
26
- export const qcms_transform_release: (a: number) => void;
27
- export const qcms_enable_iccv4: () => void;
23
+ export const qcms_transform_data_rgb_out_lut_precache: (a: number, b: number, c: number, d: number) => void;
24
+ export const qcms_transform_data_rgba_out_lut_precache: (a: number, b: number, c: number, d: number) => void;
25
+ export const qcms_transform_data_bgra_out_lut_precache: (a: number, b: number, c: number, d: number) => void;
28
26
  export const lut_interp_linear16: (a: number, b: number, c: number) => number;
29
- export const lut_inverse_interp16: (a: number, b: number, c: number) => number;
27
+ export const qcms_enable_iccv4: () => void;
28
+ export const qcms_profile_is_bogus: (a: number) => number;
29
+ export const qcms_transform_release: (a: number) => void;
30
30
  export const __wbindgen_export_0: (a: number, b: number) => number;
31
31
  export const __wbindgen_export_1: (a: number, b: number, c: number, d: number) => number;
32
32
  export const __wbindgen_export_2: (a: number) => void;
@@ -4,14 +4,9 @@
4
4
  * Initialize the WASM module with panic hooks for better error messages
5
5
  */
6
6
  export function init(): void;
7
- export type OutputFormat = "pdf" | "svg" | "txt";
8
-
9
- export type Severity = "error" | "warning" | "note";
10
-
11
- export interface Location {
12
- file: string;
13
- line: number;
14
- column: number;
7
+ export interface ParsedDocument {
8
+ fields: Record<string, any>;
9
+ quillRef: string;
15
10
  }
16
11
 
17
12
  export interface Diagnostic {
@@ -23,17 +18,12 @@ export interface Diagnostic {
23
18
  sourceChain: string[];
24
19
  }
25
20
 
26
- export interface Artifact {
27
- format: OutputFormat;
28
- bytes: Uint8Array;
29
- mimeType: string;
30
- }
21
+ export type Severity = "error" | "warning" | "note";
31
22
 
32
- export interface RenderResult {
33
- artifacts: Artifact[];
34
- warnings: Diagnostic[];
35
- outputFormat: OutputFormat;
36
- renderTimeMs: number;
23
+ export interface Location {
24
+ file: string;
25
+ line: number;
26
+ column: number;
37
27
  }
38
28
 
39
29
  export interface QuillInfo {
@@ -47,9 +37,19 @@ export interface QuillInfo {
47
37
  supportedFormats: OutputFormat[];
48
38
  }
49
39
 
50
- export interface ParsedDocument {
51
- fields: Record<string, any>;
52
- quillRef: string;
40
+ export interface RenderResult {
41
+ artifacts: Artifact[];
42
+ warnings: Diagnostic[];
43
+ outputFormat: OutputFormat;
44
+ renderTimeMs: number;
45
+ }
46
+
47
+ export type OutputFormat = "pdf" | "svg" | "txt";
48
+
49
+ export interface Artifact {
50
+ format: OutputFormat;
51
+ bytes: Uint8Array;
52
+ mimeType: string;
53
53
  }
54
54
 
55
55
  export interface RenderOptions {
@@ -67,9 +67,33 @@ export class Quillmark {
67
67
  free(): void;
68
68
  [Symbol.dispose](): void;
69
69
  /**
70
- * JavaScript constructor: `new Quillmark()`
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
- constructor();
74
+ listQuills(): string[];
75
+ /**
76
+ * Compile markdown to JSON data without rendering artifacts.
77
+ *
78
+ * This exposes the intermediate data structure that would be passed to the backend.
79
+ * Useful for debugging and validation.
80
+ */
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;
90
+ /**
91
+ * Get shallow information about a registered Quill
92
+ *
93
+ * This returns metadata, backend info, field schemas, and supported formats
94
+ * that consumers need to configure render options for the next step.
95
+ */
96
+ getQuillInfo(name: string): QuillInfo;
73
97
  /**
74
98
  * Parse markdown into a ParsedDocument
75
99
  *
@@ -85,12 +109,13 @@ export class Quillmark {
85
109
  */
86
110
  registerQuill(quill_json: any): QuillInfo;
87
111
  /**
88
- * Get shallow information about a registered Quill
112
+ * Unregister a Quill by name or specific version
89
113
  *
90
- * This returns metadata, backend info, field schemas, and supported formats
91
- * that consumers need to configure render options for the next step.
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.
92
117
  */
93
- getQuillInfo(name: string): QuillInfo;
118
+ unregisterQuill(name_or_ref: string): boolean;
94
119
  /**
95
120
  * Get the stripped JSON schema of a Quill (removes UI metadata)
96
121
  *
@@ -99,24 +124,9 @@ export class Quillmark {
99
124
  */
100
125
  getStrippedSchema(name: string): any;
101
126
  /**
102
- * Perform a dry run validation without backend compilation.
103
- *
104
- * Executes parsing, schema validation, and template composition to
105
- * surface input errors quickly. Returns successfully on valid input,
106
- * or throws an error with diagnostic payload on failure.
107
- *
108
- * The quill name is inferred from the markdown's QUILL tag (or defaults to "__default__").
109
- *
110
- * This is useful for fast feedback loops in LLM-driven document generation.
111
- */
112
- dryRun(markdown: string): void;
113
- /**
114
- * Compile markdown to JSON data without rendering artifacts.
115
- *
116
- * This exposes the intermediate data structure that would be passed to the backend.
117
- * Useful for debugging and validation.
127
+ * JavaScript constructor: `new Quillmark()`
118
128
  */
119
- compileData(markdown: string): any;
129
+ constructor();
120
130
  /**
121
131
  * Render a ParsedDocument to final artifacts (PDF, SVG, TXT)
122
132
  *
@@ -126,25 +136,15 @@ export class Quillmark {
126
136
  */
127
137
  render(parsed: ParsedDocument, opts: RenderOptions): RenderResult;
128
138
  /**
129
- * Resolve a Quill reference to a registered Quill, or null if not available
139
+ * Perform a dry run validation without backend compilation.
130
140
  *
131
- * Accepts a quill reference string like "resume-template", "resume-template@2",
132
- * or "resume-template@2.1.0". Returns QuillInfo if the engine can resolve it
133
- * locally, or null if an external fetch is needed.
134
- */
135
- resolveQuill(quill_ref: string): any;
136
- /**
137
- * List registered Quills with their exact versions
141
+ * Executes parsing, schema validation, and template composition to
142
+ * surface input errors quickly. Returns successfully on valid input,
143
+ * or throws an error with diagnostic payload on failure.
138
144
  *
139
- * Returns strings in the format "name@version" (e.g. "resume-template@2.1.0")
140
- */
141
- listQuills(): string[];
142
- /**
143
- * Unregister a Quill by name or specific version
145
+ * The quill name is inferred from the markdown's QUILL tag (or defaults to "__default__").
144
146
  *
145
- * If a base name is provided (e.g., "my-quill"), all versions of that quill are freed.
146
- * If a versioned name is provided (e.g., "my-quill@2.1.0"), only that specific version is freed.
147
- * Returns true if something was unregistered, false if not found.
147
+ * This is useful for fast feedback loops in LLM-driven document generation.
148
148
  */
149
- unregisterQuill(name_or_ref: string): boolean;
149
+ dryRun(markdown: string): void;
150
150
  }
@@ -201,6 +201,12 @@ function debugString(val) {
201
201
  // TODO we could test for more things here, like `Set`s and `Map`s.
202
202
  return className;
203
203
  }
204
+ /**
205
+ * Initialize the WASM module with panic hooks for better error messages
206
+ */
207
+ export function init() {
208
+ wasm.init();
209
+ }
204
210
 
205
211
  function getArrayJsValueFromWasm0(ptr, len) {
206
212
  ptr = ptr >>> 0;
@@ -211,12 +217,6 @@ function getArrayJsValueFromWasm0(ptr, len) {
211
217
  }
212
218
  return result;
213
219
  }
214
- /**
215
- * Initialize the WASM module with panic hooks for better error messages
216
- */
217
- export function init() {
218
- wasm.init();
219
- }
220
220
 
221
221
  const QuillmarkFinalization = (typeof FinalizationRegistry === 'undefined')
222
222
  ? { register: () => {}, unregister: () => {} }
@@ -240,51 +240,38 @@ export class Quillmark {
240
240
  wasm.__wbg_quillmark_free(ptr, 0);
241
241
  }
242
242
  /**
243
- * JavaScript constructor: `new Quillmark()`
244
- */
245
- constructor() {
246
- const ret = wasm.quillmark_new();
247
- this.__wbg_ptr = ret >>> 0;
248
- QuillmarkFinalization.register(this, this.__wbg_ptr, this);
249
- return this;
250
- }
251
- /**
252
- * Parse markdown into a ParsedDocument
243
+ * List registered Quills with their exact versions
253
244
  *
254
- * This is the first step in the workflow. The returned ParsedDocument contains
255
- * the parsed YAML frontmatter fields and the quill_ref (from QUILL field or "__default__").
256
- * @param {string} markdown
257
- * @returns {ParsedDocument}
245
+ * Returns strings in the format "name@version" (e.g. "resume-template@2.1.0")
246
+ * @returns {string[]}
258
247
  */
259
- static parseMarkdown(markdown) {
248
+ listQuills() {
260
249
  try {
261
250
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
262
- const ptr0 = passStringToWasm0(markdown, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
263
- const len0 = WASM_VECTOR_LEN;
264
- wasm.quillmark_parseMarkdown(retptr, ptr0, len0);
251
+ wasm.quillmark_listQuills(retptr, this.__wbg_ptr);
265
252
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
266
253
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
267
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
268
- if (r2) {
269
- throw takeObject(r1);
270
- }
271
- return takeObject(r0);
254
+ var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
255
+ wasm.__wbindgen_export_3(r0, r1 * 4, 4);
256
+ return v1;
272
257
  } finally {
273
258
  wasm.__wbindgen_add_to_stack_pointer(16);
274
259
  }
275
260
  }
276
261
  /**
277
- * Register a Quill template bundle
262
+ * Compile markdown to JSON data without rendering artifacts.
278
263
  *
279
- * Accepts either a JSON string or a JsValue object representing the Quill file tree.
280
- * Validation happens automatically on registration.
281
- * @param {any} quill_json
282
- * @returns {QuillInfo}
264
+ * This exposes the intermediate data structure that would be passed to the backend.
265
+ * Useful for debugging and validation.
266
+ * @param {string} markdown
267
+ * @returns {any}
283
268
  */
284
- registerQuill(quill_json) {
269
+ compileData(markdown) {
285
270
  try {
286
271
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
287
- wasm.quillmark_registerQuill(retptr, this.__wbg_ptr, addHeapObject(quill_json));
272
+ const ptr0 = passStringToWasm0(markdown, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
273
+ const len0 = WASM_VECTOR_LEN;
274
+ wasm.quillmark_compileData(retptr, this.__wbg_ptr, ptr0, len0);
288
275
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
289
276
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
290
277
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -296,6 +283,21 @@ export class Quillmark {
296
283
  wasm.__wbindgen_add_to_stack_pointer(16);
297
284
  }
298
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
+ }
299
301
  /**
300
302
  * Get shallow information about a registered Quill
301
303
  *
@@ -322,19 +324,19 @@ export class Quillmark {
322
324
  }
323
325
  }
324
326
  /**
325
- * Get the stripped JSON schema of a Quill (removes UI metadata)
327
+ * Parse markdown into a ParsedDocument
326
328
  *
327
- * This returns the schema in a format suitable for feeding to LLMs or
328
- * other consumers that don't need the UI configuration "x-ui" fields.
329
- * @param {string} name
330
- * @returns {any}
329
+ * This is the first step in the workflow. The returned ParsedDocument contains
330
+ * the parsed YAML frontmatter fields and the quill_ref (from QUILL field or "__default__").
331
+ * @param {string} markdown
332
+ * @returns {ParsedDocument}
331
333
  */
332
- getStrippedSchema(name) {
334
+ static parseMarkdown(markdown) {
333
335
  try {
334
336
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
335
- const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
337
+ const ptr0 = passStringToWasm0(markdown, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
336
338
  const len0 = WASM_VECTOR_LEN;
337
- wasm.quillmark_getStrippedSchema(retptr, this.__wbg_ptr, ptr0, len0);
339
+ wasm.quillmark_parseMarkdown(retptr, ptr0, len0);
338
340
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
339
341
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
340
342
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -347,46 +349,57 @@ export class Quillmark {
347
349
  }
348
350
  }
349
351
  /**
350
- * Perform a dry run validation without backend compilation.
351
- *
352
- * Executes parsing, schema validation, and template composition to
353
- * surface input errors quickly. Returns successfully on valid input,
354
- * or throws an error with diagnostic payload on failure.
355
- *
356
- * The quill name is inferred from the markdown's QUILL tag (or defaults to "__default__").
352
+ * Register a Quill template bundle
357
353
  *
358
- * This is useful for fast feedback loops in LLM-driven document generation.
359
- * @param {string} markdown
354
+ * Accepts either a JSON string or a JsValue object representing the Quill file tree.
355
+ * Validation happens automatically on registration.
356
+ * @param {any} quill_json
357
+ * @returns {QuillInfo}
360
358
  */
361
- dryRun(markdown) {
359
+ registerQuill(quill_json) {
362
360
  try {
363
361
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
364
- const ptr0 = passStringToWasm0(markdown, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
365
- const len0 = WASM_VECTOR_LEN;
366
- wasm.quillmark_dryRun(retptr, this.__wbg_ptr, ptr0, len0);
362
+ wasm.quillmark_registerQuill(retptr, this.__wbg_ptr, addHeapObject(quill_json));
367
363
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
368
364
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
369
- if (r1) {
370
- throw takeObject(r0);
365
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
366
+ if (r2) {
367
+ throw takeObject(r1);
371
368
  }
369
+ return takeObject(r0);
372
370
  } finally {
373
371
  wasm.__wbindgen_add_to_stack_pointer(16);
374
372
  }
375
373
  }
376
374
  /**
377
- * Compile markdown to JSON data without rendering artifacts.
375
+ * Unregister a Quill by name or specific version
378
376
  *
379
- * This exposes the intermediate data structure that would be passed to the backend.
380
- * Useful for debugging and validation.
381
- * @param {string} markdown
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}
382
+ */
383
+ unregisterQuill(name_or_ref) {
384
+ const ptr0 = passStringToWasm0(name_or_ref, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
385
+ const len0 = WASM_VECTOR_LEN;
386
+ const ret = wasm.quillmark_unregisterQuill(this.__wbg_ptr, ptr0, len0);
387
+ return ret !== 0;
388
+ }
389
+ /**
390
+ * Get the stripped JSON schema of a Quill (removes UI metadata)
391
+ *
392
+ * This returns the schema in a format suitable for feeding to LLMs or
393
+ * other consumers that don't need the UI configuration "x-ui" fields.
394
+ * @param {string} name
382
395
  * @returns {any}
383
396
  */
384
- compileData(markdown) {
397
+ getStrippedSchema(name) {
385
398
  try {
386
399
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
387
- const ptr0 = passStringToWasm0(markdown, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
400
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
388
401
  const len0 = WASM_VECTOR_LEN;
389
- wasm.quillmark_compileData(retptr, this.__wbg_ptr, ptr0, len0);
402
+ wasm.quillmark_getStrippedSchema(retptr, this.__wbg_ptr, ptr0, len0);
390
403
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
391
404
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
392
405
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -398,6 +411,15 @@ export class Quillmark {
398
411
  wasm.__wbindgen_add_to_stack_pointer(16);
399
412
  }
400
413
  }
414
+ /**
415
+ * JavaScript constructor: `new Quillmark()`
416
+ */
417
+ constructor() {
418
+ const ret = wasm.quillmark_new();
419
+ this.__wbg_ptr = ret >>> 0;
420
+ QuillmarkFinalization.register(this, this.__wbg_ptr, this);
421
+ return this;
422
+ }
401
423
  /**
402
424
  * Render a ParsedDocument to final artifacts (PDF, SVG, TXT)
403
425
  *
@@ -424,54 +446,32 @@ export class Quillmark {
424
446
  }
425
447
  }
426
448
  /**
427
- * Resolve a Quill reference to a registered Quill, or null if not available
449
+ * Perform a dry run validation without backend compilation.
428
450
  *
429
- * Accepts a quill reference string like "resume-template", "resume-template@2",
430
- * or "resume-template@2.1.0". Returns QuillInfo if the engine can resolve it
431
- * locally, or null if an external fetch is needed.
432
- * @param {string} quill_ref
433
- * @returns {any}
434
- */
435
- resolveQuill(quill_ref) {
436
- const ptr0 = passStringToWasm0(quill_ref, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
437
- const len0 = WASM_VECTOR_LEN;
438
- const ret = wasm.quillmark_resolveQuill(this.__wbg_ptr, ptr0, len0);
439
- return takeObject(ret);
440
- }
441
- /**
442
- * List registered Quills with their exact versions
451
+ * Executes parsing, schema validation, and template composition to
452
+ * surface input errors quickly. Returns successfully on valid input,
453
+ * or throws an error with diagnostic payload on failure.
443
454
  *
444
- * Returns strings in the format "name@version" (e.g. "resume-template@2.1.0")
445
- * @returns {string[]}
455
+ * The quill name is inferred from the markdown's QUILL tag (or defaults to "__default__").
456
+ *
457
+ * This is useful for fast feedback loops in LLM-driven document generation.
458
+ * @param {string} markdown
446
459
  */
447
- listQuills() {
460
+ dryRun(markdown) {
448
461
  try {
449
462
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
450
- wasm.quillmark_listQuills(retptr, this.__wbg_ptr);
463
+ const ptr0 = passStringToWasm0(markdown, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
464
+ const len0 = WASM_VECTOR_LEN;
465
+ wasm.quillmark_dryRun(retptr, this.__wbg_ptr, ptr0, len0);
451
466
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
452
467
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
453
- var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
454
- wasm.__wbindgen_export_3(r0, r1 * 4, 4);
455
- return v1;
468
+ if (r1) {
469
+ throw takeObject(r0);
470
+ }
456
471
  } finally {
457
472
  wasm.__wbindgen_add_to_stack_pointer(16);
458
473
  }
459
474
  }
460
- /**
461
- * Unregister a Quill by name or specific version
462
- *
463
- * If a base name is provided (e.g., "my-quill"), all versions of that quill are freed.
464
- * If a versioned name is provided (e.g., "my-quill@2.1.0"), only that specific version is freed.
465
- * Returns true if something was unregistered, false if not found.
466
- * @param {string} name_or_ref
467
- * @returns {boolean}
468
- */
469
- unregisterQuill(name_or_ref) {
470
- const ptr0 = passStringToWasm0(name_or_ref, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
471
- const len0 = WASM_VECTOR_LEN;
472
- const ret = wasm.quillmark_unregisterQuill(this.__wbg_ptr, ptr0, len0);
473
- return ret !== 0;
474
- }
475
475
  }
476
476
  if (Symbol.dispose) Quillmark.prototype[Symbol.dispose] = Quillmark.prototype.free;
477
477
 
Binary file
@@ -2,31 +2,31 @@
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const __wbg_quillmark_free: (a: number, b: number) => void;
5
+ export const init: () => void;
6
+ export const quillmark_compileData: (a: number, b: number, c: number, d: number) => void;
7
+ export const quillmark_dryRun: (a: number, b: number, c: number, d: number) => void;
8
+ export const quillmark_getQuillInfo: (a: number, b: number, c: number, d: number) => void;
9
+ export const quillmark_getStrippedSchema: (a: number, b: number, c: number, d: number) => void;
10
+ export const quillmark_listQuills: (a: number, b: number) => void;
5
11
  export const quillmark_new: () => number;
6
12
  export const quillmark_parseMarkdown: (a: number, b: number, c: number) => void;
7
13
  export const quillmark_registerQuill: (a: number, b: number, c: number) => void;
8
- export const quillmark_getQuillInfo: (a: number, b: number, c: number, d: number) => void;
9
- export const quillmark_getStrippedSchema: (a: number, b: number, c: number, d: number) => void;
10
- export const quillmark_dryRun: (a: number, b: number, c: number, d: number) => void;
11
- export const quillmark_compileData: (a: number, b: number, c: number, d: number) => void;
12
14
  export const quillmark_render: (a: number, b: number, c: number, d: number) => void;
13
15
  export const quillmark_resolveQuill: (a: number, b: number, c: number) => number;
14
- export const quillmark_listQuills: (a: number, b: number) => void;
15
16
  export const quillmark_unregisterQuill: (a: number, b: number, c: number) => number;
16
- export const init: () => void;
17
- export const qcms_profile_is_bogus: (a: number) => number;
18
- export const qcms_white_point_sRGB: (a: number) => void;
17
+ export const lut_inverse_interp16: (a: number, b: number, c: number) => number;
19
18
  export const qcms_profile_precache_output_transform: (a: number) => void;
20
- export const qcms_transform_data_rgb_out_lut_precache: (a: number, b: number, c: number, d: number) => void;
21
- export const qcms_transform_data_rgba_out_lut_precache: (a: number, b: number, c: number, d: number) => void;
22
- export const qcms_transform_data_bgra_out_lut_precache: (a: number, b: number, c: number, d: number) => void;
19
+ export const qcms_white_point_sRGB: (a: number) => void;
23
20
  export const qcms_transform_data_rgb_out_lut: (a: number, b: number, c: number, d: number) => void;
24
21
  export const qcms_transform_data_rgba_out_lut: (a: number, b: number, c: number, d: number) => void;
25
22
  export const qcms_transform_data_bgra_out_lut: (a: number, b: number, c: number, d: number) => void;
26
- export const qcms_transform_release: (a: number) => void;
27
- export const qcms_enable_iccv4: () => void;
23
+ export const qcms_transform_data_rgb_out_lut_precache: (a: number, b: number, c: number, d: number) => void;
24
+ export const qcms_transform_data_rgba_out_lut_precache: (a: number, b: number, c: number, d: number) => void;
25
+ export const qcms_transform_data_bgra_out_lut_precache: (a: number, b: number, c: number, d: number) => void;
28
26
  export const lut_interp_linear16: (a: number, b: number, c: number) => number;
29
- export const lut_inverse_interp16: (a: number, b: number, c: number) => number;
27
+ export const qcms_enable_iccv4: () => void;
28
+ export const qcms_profile_is_bogus: (a: number) => number;
29
+ export const qcms_transform_release: (a: number) => void;
30
30
  export const __wbindgen_export_0: (a: number, b: number) => number;
31
31
  export const __wbindgen_export_1: (a: number, b: number, c: number, d: number) => number;
32
32
  export const __wbindgen_export_2: (a: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillmark/wasm",
3
- "version": "0.39.0",
3
+ "version": "0.40.2",
4
4
  "description": "WebAssembly bindings for quillmark",
5
5
  "type": "module",
6
6
  "license": "MIT OR Apache-2.0",