@quillmark/wasm 0.70.0 → 0.71.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/bundler/wasm.d.ts CHANGED
@@ -95,17 +95,16 @@ export interface QuillFieldUi {
95
95
 
96
96
  /** UI layout hints for a card (main or named card type). */
97
97
  export interface QuillCardUi {
98
+ title?: string;
98
99
  hide_body?: boolean;
99
- default_title?: string;
100
100
  }
101
101
 
102
102
  /** Schema entry for a single field declared in a quill's `Quill.yaml`. */
103
103
  export interface QuillFieldSchema {
104
104
  type: "string" | "number" | "integer" | "boolean" | "array" | "object" | "date" | "datetime" | "markdown";
105
- title?: string;
106
105
  description?: string;
107
106
  default?: unknown;
108
- examples?: unknown;
107
+ example?: unknown;
109
108
  required?: boolean;
110
109
  enum?: string[];
111
110
  ui?: QuillFieldUi;
@@ -115,7 +114,6 @@ export interface QuillFieldSchema {
115
114
 
116
115
  /** Schema entry for the main card or a named card type. */
117
116
  export interface QuillCardSchema {
118
- title?: string;
119
117
  description?: string;
120
118
  fields: Record<string, QuillFieldSchema>;
121
119
  ui?: QuillCardUi;
@@ -230,7 +228,7 @@ export interface RenderResult {
230
228
  renderTimeMs: number;
231
229
  }
232
230
 
233
- export type FrontmatterItem = { kind: "field"; key: string; value: unknown; fill?: boolean } | { kind: "comment"; text: string };
231
+ export type FrontmatterItem = { kind: "field"; key: string; value: unknown; fill?: boolean } | { kind: "comment"; text: string; inline?: boolean };
234
232
 
235
233
  export type OutputFormat = "pdf" | "svg" | "txt" | "png";
236
234
 
@@ -504,6 +502,10 @@ export class Quill {
504
502
  * The resolved backend identifier (e.g. `"typst"`).
505
503
  */
506
504
  readonly backendId: string;
505
+ /**
506
+ * Auto-generated annotated Markdown blueprint for LLM consumers.
507
+ */
508
+ readonly blueprint: string;
507
509
  /**
508
510
  * Bundled example document, or `undefined` if none was declared.
509
511
  */
@@ -575,6 +575,26 @@ export class Quill {
575
575
  wasm.__wbindgen_add_to_stack_pointer(16);
576
576
  }
577
577
  }
578
+ /**
579
+ * Auto-generated annotated Markdown blueprint for LLM consumers.
580
+ * @returns {string}
581
+ */
582
+ get blueprint() {
583
+ let deferred1_0;
584
+ let deferred1_1;
585
+ try {
586
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
587
+ wasm.quill_blueprint(retptr, this.__wbg_ptr);
588
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
589
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
590
+ deferred1_0 = r0;
591
+ deferred1_1 = r1;
592
+ return getStringFromWasm0(r0, r1);
593
+ } finally {
594
+ wasm.__wbindgen_add_to_stack_pointer(16);
595
+ wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
596
+ }
597
+ }
578
598
  /**
579
599
  * Bundled example document, or `undefined` if none was declared.
580
600
  * @returns {string | undefined}
Binary file
@@ -31,6 +31,7 @@ export const init: () => void;
31
31
  export const quill_backendId: (a: number, b: number) => void;
32
32
  export const quill_blankCard: (a: number, b: number, c: number, d: number) => void;
33
33
  export const quill_blankMain: (a: number, b: number) => void;
34
+ export const quill_blueprint: (a: number, b: number) => void;
34
35
  export const quill_example: (a: number, b: number) => void;
35
36
  export const quill_form: (a: number, b: number, c: number) => void;
36
37
  export const quill_formSchema: (a: number) => number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillmark/wasm",
3
- "version": "0.70.0",
3
+ "version": "0.71.1",
4
4
  "description": "WebAssembly bindings for quillmark",
5
5
  "type": "module",
6
6
  "license": "MIT OR Apache-2.0",