@quillmark/wasm 0.15.1 → 0.16.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 CHANGED
@@ -104,16 +104,18 @@ export class Quillmark {
104
104
  * surface input errors quickly. Returns successfully on valid input,
105
105
  * or throws an error with diagnostic payload on failure.
106
106
  *
107
+ * The quill name is inferred from the markdown's QUILL tag (or defaults to "__default__").
108
+ *
107
109
  * This is useful for fast feedback loops in LLM-driven document generation.
108
110
  */
109
- dryRun(quill_name: string, markdown: string): void;
111
+ dryRun(markdown: string): void;
110
112
  /**
111
113
  * Render a ParsedDocument to final artifacts (PDF, SVG, TXT)
112
114
  *
113
115
  * Uses the Quill specified in options.quill_name if provided,
114
116
  * otherwise infers it from the ParsedDocument's quill_tag field.
115
117
  */
116
- render(parsed_wasm: ParsedDocument, opts: RenderOptions): RenderResult;
118
+ render(parsed: ParsedDocument, opts: RenderOptions): RenderResult;
117
119
  /**
118
120
  * List registered Quill names
119
121
  */
@@ -370,18 +370,17 @@ export class Quillmark {
370
370
  * surface input errors quickly. Returns successfully on valid input,
371
371
  * or throws an error with diagnostic payload on failure.
372
372
  *
373
+ * The quill name is inferred from the markdown's QUILL tag (or defaults to "__default__").
374
+ *
373
375
  * This is useful for fast feedback loops in LLM-driven document generation.
374
- * @param {string} quill_name
375
376
  * @param {string} markdown
376
377
  */
377
- dryRun(quill_name, markdown) {
378
+ dryRun(markdown) {
378
379
  try {
379
380
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
380
- const ptr0 = passStringToWasm0(quill_name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
381
+ const ptr0 = passStringToWasm0(markdown, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
381
382
  const len0 = WASM_VECTOR_LEN;
382
- const ptr1 = passStringToWasm0(markdown, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
383
- const len1 = WASM_VECTOR_LEN;
384
- wasm.quillmark_dryRun(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
383
+ wasm.quillmark_dryRun(retptr, this.__wbg_ptr, ptr0, len0);
385
384
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
386
385
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
387
386
  if (r1) {
@@ -396,14 +395,14 @@ export class Quillmark {
396
395
  *
397
396
  * Uses the Quill specified in options.quill_name if provided,
398
397
  * otherwise infers it from the ParsedDocument's quill_tag field.
399
- * @param {ParsedDocument} parsed_wasm
398
+ * @param {ParsedDocument} parsed
400
399
  * @param {RenderOptions} opts
401
400
  * @returns {RenderResult}
402
401
  */
403
- render(parsed_wasm, opts) {
402
+ render(parsed, opts) {
404
403
  try {
405
404
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
406
- wasm.quillmark_render(retptr, this.__wbg_ptr, addHeapObject(parsed_wasm), addHeapObject(opts));
405
+ wasm.quillmark_render(retptr, this.__wbg_ptr, addHeapObject(parsed), addHeapObject(opts));
407
406
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
408
407
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
409
408
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
Binary file
@@ -7,7 +7,7 @@ export const quillmark_parseMarkdown: (a: number, b: number, c: number) => void;
7
7
  export const quillmark_registerQuill: (a: number, b: number, c: number) => void;
8
8
  export const quillmark_getQuillInfo: (a: number, b: number, c: number, d: number) => void;
9
9
  export const quillmark_processPlate: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
10
- export const quillmark_dryRun: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
10
+ export const quillmark_dryRun: (a: number, b: number, c: number, d: number) => void;
11
11
  export const quillmark_render: (a: number, b: number, c: number, d: number) => void;
12
12
  export const quillmark_listQuills: (a: number, b: number) => void;
13
13
  export const quillmark_unregisterQuill: (a: number, b: number, c: number) => void;
@@ -104,16 +104,18 @@ export class Quillmark {
104
104
  * surface input errors quickly. Returns successfully on valid input,
105
105
  * or throws an error with diagnostic payload on failure.
106
106
  *
107
+ * The quill name is inferred from the markdown's QUILL tag (or defaults to "__default__").
108
+ *
107
109
  * This is useful for fast feedback loops in LLM-driven document generation.
108
110
  */
109
- dryRun(quill_name: string, markdown: string): void;
111
+ dryRun(markdown: string): void;
110
112
  /**
111
113
  * Render a ParsedDocument to final artifacts (PDF, SVG, TXT)
112
114
  *
113
115
  * Uses the Quill specified in options.quill_name if provided,
114
116
  * otherwise infers it from the ParsedDocument's quill_tag field.
115
117
  */
116
- render(parsed_wasm: ParsedDocument, opts: RenderOptions): RenderResult;
118
+ render(parsed: ParsedDocument, opts: RenderOptions): RenderResult;
117
119
  /**
118
120
  * List registered Quill names
119
121
  */
@@ -364,18 +364,17 @@ export class Quillmark {
364
364
  * surface input errors quickly. Returns successfully on valid input,
365
365
  * or throws an error with diagnostic payload on failure.
366
366
  *
367
+ * The quill name is inferred from the markdown's QUILL tag (or defaults to "__default__").
368
+ *
367
369
  * This is useful for fast feedback loops in LLM-driven document generation.
368
- * @param {string} quill_name
369
370
  * @param {string} markdown
370
371
  */
371
- dryRun(quill_name, markdown) {
372
+ dryRun(markdown) {
372
373
  try {
373
374
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
374
- const ptr0 = passStringToWasm0(quill_name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
375
+ const ptr0 = passStringToWasm0(markdown, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
375
376
  const len0 = WASM_VECTOR_LEN;
376
- const ptr1 = passStringToWasm0(markdown, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
377
- const len1 = WASM_VECTOR_LEN;
378
- wasm.quillmark_dryRun(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
377
+ wasm.quillmark_dryRun(retptr, this.__wbg_ptr, ptr0, len0);
379
378
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
380
379
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
381
380
  if (r1) {
@@ -390,14 +389,14 @@ export class Quillmark {
390
389
  *
391
390
  * Uses the Quill specified in options.quill_name if provided,
392
391
  * otherwise infers it from the ParsedDocument's quill_tag field.
393
- * @param {ParsedDocument} parsed_wasm
392
+ * @param {ParsedDocument} parsed
394
393
  * @param {RenderOptions} opts
395
394
  * @returns {RenderResult}
396
395
  */
397
- render(parsed_wasm, opts) {
396
+ render(parsed, opts) {
398
397
  try {
399
398
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
400
- wasm.quillmark_render(retptr, this.__wbg_ptr, addHeapObject(parsed_wasm), addHeapObject(opts));
399
+ wasm.quillmark_render(retptr, this.__wbg_ptr, addHeapObject(parsed), addHeapObject(opts));
401
400
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
402
401
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
403
402
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
Binary file
@@ -7,7 +7,7 @@ export const quillmark_parseMarkdown: (a: number, b: number, c: number) => void;
7
7
  export const quillmark_registerQuill: (a: number, b: number, c: number) => void;
8
8
  export const quillmark_getQuillInfo: (a: number, b: number, c: number, d: number) => void;
9
9
  export const quillmark_processPlate: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
10
- export const quillmark_dryRun: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
10
+ export const quillmark_dryRun: (a: number, b: number, c: number, d: number) => void;
11
11
  export const quillmark_render: (a: number, b: number, c: number, d: number) => void;
12
12
  export const quillmark_listQuills: (a: number, b: number) => void;
13
13
  export const quillmark_unregisterQuill: (a: number, b: number, c: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillmark/wasm",
3
- "version": "0.15.1",
3
+ "version": "0.16.0",
4
4
  "description": "WebAssembly bindings for quillmark",
5
5
  "type": "module",
6
6
  "license": "MIT OR Apache-2.0",