@quillmark/wasm 0.95.1 → 0.97.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/core/wasm_bg.js CHANGED
@@ -29,7 +29,7 @@ export class Document {
29
29
  * the document, so a rejected field (or an invalid kind, body, or
30
30
  * out-of-range `at`) leaves the document untouched. Field errors throw the
31
31
  * same per-field diagnostic bundle as [`commitFields`](Self::commit_fields),
32
- * including an `[EditError::UnknownField]` per undeclared name; an invalid
32
+ * including an `edit::unknown_field` per undeclared name; an invalid
33
33
  * kind or body, or an out-of-range position, throws a single-entry bundle
34
34
  * keyed `$kind` / `$body`.
35
35
  * @param {Quill} quill
@@ -72,12 +72,12 @@ export class Document {
72
72
  * address throws — a body has no field schema; write it with `writer.setBody`
73
73
  * / `revise`. A field declared in the schema is strict-committed (a mismatch
74
74
  * throws now, not at render); a name the schema does not declare throws
75
- * `[EditError::UnknownField]` rather than falling to the opaque store — on
75
+ * `edit::unknown_field` rather than falling to the opaque store — on
76
76
  * the typed path it is a typo. Use [`storeField`](Document::store_field) for
77
- * opaque storage. Also throws `[EditError::FieldConform]` /
78
- * `[EditError::FieldRichtextDecode]` / `[EditError::FieldRichtextNotInline]`
79
- * on a typed mismatch, `[EditError::InvalidFieldName]` on a malformed name,
80
- * and `[EditError::IndexOutOfRange]` on an out-of-range card.
77
+ * opaque storage. Also throws `edit::field_conform` /
78
+ * `edit::field_richtext_decode` / `edit::field_richtext_not_inline`
79
+ * on a typed mismatch, `edit::invalid_field_name` on a malformed name,
80
+ * and `edit::index_out_of_range` on an out-of-range card.
81
81
  *
82
82
  * The `quill` handle is passed per call because a `Document` carries only a
83
83
  * `$quill` reference, not the resolved schema.
@@ -107,7 +107,7 @@ export class Document {
107
107
  * the same per-field-diagnostic error contract as
108
108
  * [`storeFields`](Document::store_fields) — nothing is applied on error and
109
109
  * the thrown error's `diagnostics` carry one entry per offending field,
110
- * including an `[EditError::UnknownField]` for any name the schema does not
110
+ * including an `edit::unknown_field` for any name the schema does not
111
111
  * declare, so a whole-form submit sees every typo in one pass. Throws on an
112
112
  * out-of-range card.
113
113
  * @param {Quill} quill
@@ -129,32 +129,34 @@ export class Document {
129
129
  }
130
130
  }
131
131
  /**
132
- * Revise the richtext field at `addr` from markdown, typed *and*
133
- * anchor-preserving — the ABI under `writer.reviseField`. Resolves the
134
- * field's schema from `quill` (main card, or the addressed card's `$kind`)
135
- * and defers to [`TypedWriter::revise_field`](quillmark_core::TypedWriter::revise_field):
136
- * surviving anchors rebase (as [`revise`](Self::revise)), then the diffed
137
- * result is schema-conformed, so a `richtext(inline)` field rejects a
138
- * multi-block result with `[EditError::FieldRichtextNotInline]`. Returns the
139
- * text [`Delta`].
132
+ * Interpreted read at `addr`, resolving the field's declared `type` from
133
+ * `quill` — the stable ABI under the runtime `reader.get` / `reader.card(i).get`.
134
+ * The schema-plane twin of the quill-free [`getStored`](Self::get_stored): a `richtext`
135
+ * field returns its markdown projection, every other declared type its
136
+ * canonical value verbatim, so a consumer holding the quill reads by field
137
+ * meaning rather than by wire shape.
140
138
  *
141
- * `addr` must name a field (a bare string is `{ field }`); a body address
142
- * throws (a body carries no field schema use [`revise`](Self::revise)). A
143
- * name the schema does not declare throws `[EditError::UnknownField]`. Throws
144
- * on an out-of-range card. Hidden from the `.d.ts`; the visible verb is
145
- * `writer.reviseField` in the runtime layer.
139
+ * A bare string is `Addr` shorthand for `{ field }`; `{ card, field }`
140
+ * targets a composable card (its `$kind` resolves the schema). Returns
141
+ * `undefined` for an **absent** field. An absent `addr.field` reads the body
142
+ * markdown quill-free, mirroring [`getMarkdown`](Self::get_markdown), since
143
+ * a body's type is a format fact, not a schema fact. A name the schema does
144
+ * not declare throws `edit::unknown_field` (the authority `getMarkdown`
145
+ * lacks — there an unknown name reads back `undefined`); a `richtext` field
146
+ * holding a value that does not decode throws `edit::field_richtext_decode`;
147
+ * an out-of-range `addr.card` throws.
148
+ *
149
+ * The `quill` handle is passed per call because a `Document` carries only a
150
+ * `$quill` reference, not the resolved schema.
146
151
  * @param {Quill} quill
147
152
  * @param {Addr | string} addr
148
- * @param {string} markdown
149
- * @returns {Delta}
153
+ * @returns {unknown}
150
154
  */
151
- _reviseField(quill, addr, markdown) {
155
+ _readerGet(quill, addr) {
152
156
  try {
153
157
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
154
158
  _assertClass(quill, Quill);
155
- const ptr0 = passStringToWasm0(markdown, wasm.__wbindgen_export, wasm.__wbindgen_export2);
156
- const len0 = WASM_VECTOR_LEN;
157
- wasm.document__reviseField(retptr, this.__wbg_ptr, quill.__wbg_ptr, addHeapObject(addr), ptr0, len0);
159
+ wasm.document__readerGet(retptr, this.__wbg_ptr, quill.__wbg_ptr, addHeapObject(addr));
158
160
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
159
161
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
160
162
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -167,34 +169,32 @@ export class Document {
167
169
  }
168
170
  }
169
171
  /**
170
- * Interpreted read at `addr`, resolving the field's declared `type` from
171
- * `quill` — the stable ABI under the runtime `view.get` / `view.card(i).get`.
172
- * The schema-plane twin of the quill-free [`get`](Self::get): a `richtext`
173
- * field returns its markdown projection, every other declared type its
174
- * canonical value verbatim, so a consumer holding the quill reads by field
175
- * meaning rather than by wire shape.
176
- *
177
- * A bare string is `Addr` shorthand for `{ field }`; `{ card, field }`
178
- * targets a composable card (its `$kind` resolves the schema). Returns
179
- * `undefined` for an **absent** field. An absent `addr.field` reads the body
180
- * markdown — quill-free, mirroring [`getMarkdown`](Self::get_markdown), since
181
- * a body's type is a format fact, not a schema fact. A name the schema does
182
- * not declare throws `[EditError::UnknownField]` (the authority `getMarkdown`
183
- * lacks — there an unknown name reads back `undefined`); a `richtext` field
184
- * holding a value that does not decode throws `[EditError::FieldRichtextDecode]`;
185
- * an out-of-range `addr.card` throws.
172
+ * Revise the richtext field at `addr` from markdown, typed *and*
173
+ * anchor-preserving — the ABI under `writer.reviseField`. Resolves the
174
+ * field's schema from `quill` (main card, or the addressed card's `$kind`)
175
+ * and defers to [`TypedWriter::revise_field`](quillmark_core::TypedWriter::revise_field):
176
+ * surviving anchors rebase (as [`revise`](Self::revise)), then the diffed
177
+ * result is schema-conformed, so a `richtext(inline)` field rejects a
178
+ * multi-block result with `edit::field_richtext_not_inline`. Returns the
179
+ * text `Delta`.
186
180
  *
187
- * The `quill` handle is passed per call because a `Document` carries only a
188
- * `$quill` reference, not the resolved schema.
181
+ * `addr` must name a field (a bare string is `{ field }`); a body address
182
+ * throws (a body carries no field schema — use [`revise`](Self::revise)). A
183
+ * name the schema does not declare throws `edit::unknown_field`. Throws
184
+ * on an out-of-range card. Hidden from the `.d.ts`; the visible verb is
185
+ * `writer.reviseField` in the runtime layer.
189
186
  * @param {Quill} quill
190
187
  * @param {Addr | string} addr
191
- * @returns {unknown}
188
+ * @param {string} markdown
189
+ * @returns {Delta}
192
190
  */
193
- _viewGet(quill, addr) {
191
+ _reviseField(quill, addr, markdown) {
194
192
  try {
195
193
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
196
194
  _assertClass(quill, Quill);
197
- wasm.document__viewGet(retptr, this.__wbg_ptr, quill.__wbg_ptr, addHeapObject(addr));
195
+ const ptr0 = passStringToWasm0(markdown, wasm.__wbindgen_export, wasm.__wbindgen_export2);
196
+ const len0 = WASM_VECTOR_LEN;
197
+ wasm.document__reviseField(retptr, this.__wbg_ptr, quill.__wbg_ptr, addHeapObject(addr), ptr0, len0);
198
198
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
199
199
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
200
200
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -261,7 +261,7 @@ export class Document {
261
261
  * A single composable card by index — the whole `Card`, the card-indexed
262
262
  * twin of the [`main`](Self::main) getter, so reading one card need not
263
263
  * materialize every card via [`cards`](Self::cards). An out-of-range
264
- * `index` throws `[EditError::IndexOutOfRange]`, matching the card write
264
+ * `index` throws `edit::index_out_of_range`, matching the card write
265
265
  * verbs.
266
266
  * @param {number} index
267
267
  * @returns {Card}
@@ -290,10 +290,10 @@ export class Document {
290
290
  return ret >>> 0;
291
291
  }
292
292
  /**
293
- * The index of the first composable card whose `$id` equals `id`, or
294
- * `undefined` when none carries it. Resolves the canonical durable address
293
+ * The index of the composable card whose `$id` equals `id`, or
294
+ * `undefined` when none carries it. Resolves the durable card handle
295
295
  * without a hand-rolled scan over [`cards`](Self::cards); `$id` is
296
- * non-unique by design, so the first match wins.
296
+ * unique per document, so at most one card matches.
297
297
  * @param {string} id
298
298
  * @returns {number | undefined}
299
299
  */
@@ -457,33 +457,6 @@ export class Document {
457
457
  wasm.__wbindgen_add_to_stack_pointer(16);
458
458
  }
459
459
  }
460
- /**
461
- * Read the value at `addr` — the raw stored payload value of a field (a
462
- * content object for a richtext field, a scalar/array/object otherwise), or
463
- * the **body content** when `addr.field` is absent. A bare string is `Addr`
464
- * shorthand for `{ field }`. Reads are total over the field axis: an absent
465
- * field is `undefined`; only an out-of-range `addr.card` throws
466
- * `[EditError::IndexOutOfRange]`. Reads need no schema, so they live on
467
- * `Document`, not the typed writer; for the markdown projection of a
468
- * richtext value use [`getMarkdown`](Self::get_markdown).
469
- * @param {Addr | string} addr
470
- * @returns {unknown}
471
- */
472
- get(addr) {
473
- try {
474
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
475
- wasm.document_get(retptr, this.__wbg_ptr, addHeapObject(addr));
476
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
477
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
478
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
479
- if (r2) {
480
- throw takeObject(r1);
481
- }
482
- return takeObject(r0);
483
- } finally {
484
- wasm.__wbindgen_add_to_stack_pointer(16);
485
- }
486
- }
487
460
  /**
488
461
  * The whole `$ext` map at `addr` (a card address, absent `card` = main), or
489
462
  * `undefined` when the card carries none. The fine-grained `$ext` read —
@@ -541,7 +514,7 @@ export class Document {
541
514
  *
542
515
  * `addr` is an optional **card address** (`{ card }`, absent = main). A
543
516
  * present `field` throws — a field's markdown is read through the
544
- * schema-plane `quill.view(doc).get(field)`, which interprets by declared
517
+ * schema-plane `quill.reader(doc).get(field)`, which interprets by declared
545
518
  * type (#978). An out-of-range `addr.card` throws.
546
519
  * @param {CardAddr} [addr]
547
520
  * @returns {string}
@@ -561,6 +534,35 @@ export class Document {
561
534
  wasm.__wbindgen_add_to_stack_pointer(16);
562
535
  }
563
536
  }
537
+ /**
538
+ * Read the **verbatim stored value** at `addr` — the raw payload value of a
539
+ * field (a content object for a richtext field, a scalar/array/object
540
+ * otherwise), or the **body content** when `addr.field` is absent. A bare
541
+ * string is `Addr` shorthand for `{ field }`. Reads are total over the field
542
+ * axis: an absent field is `undefined`; only an out-of-range `addr.card`
543
+ * throws `edit::index_out_of_range`. Needs no schema, so it lives on
544
+ * `Document` — the read echo of the verbatim `store*` write, distinct from
545
+ * the interpreted schema-plane [`reader.get`](Self::reader_get). For the
546
+ * markdown projection use [`getMarkdown`](Self::get_markdown) (body) or
547
+ * `reader.get` (a field's declared type).
548
+ * @param {Addr | string} addr
549
+ * @returns {unknown}
550
+ */
551
+ getStored(addr) {
552
+ try {
553
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
554
+ wasm.document_getStored(retptr, this.__wbg_ptr, addHeapObject(addr));
555
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
556
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
557
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
558
+ if (r2) {
559
+ throw takeObject(r1);
560
+ }
561
+ return takeObject(r0);
562
+ } finally {
563
+ wasm.__wbindgen_add_to_stack_pointer(16);
564
+ }
565
+ }
564
566
  /**
565
567
  * Insert a card — the single insertion verb: `at` absent appends, a number
566
568
  * inserts at that index (must be in `0..=cards.length`). Accepts a
@@ -917,7 +919,7 @@ export class Document {
917
919
  }
918
920
  /**
919
921
  * **Revise** the richtext value at `addr` from a markdown string — **edit
920
- * semantics**, the default write path, returning the text [`Delta`]. Imports
922
+ * semantics**, the default write path, returning the text `Delta`. Imports
921
923
  * the markdown, diffs it against the current value, rebases surviving
922
924
  * identity anchors, and returns the change an editor bridge maps its own
923
925
  * positions through (`mapPos`). An absent `addr.field` targets the body, an
@@ -1371,6 +1373,35 @@ export class Quill {
1371
1373
  wasm.__wbindgen_add_to_stack_pointer(16);
1372
1374
  }
1373
1375
  }
1376
+ /**
1377
+ * The resolved-value view of `doc` against this quill's schema — for every
1378
+ * declared field the value the render projection would use and the
1379
+ * `FieldSource` rung it came from (`"authored" | "default" | "zero"`), in
1380
+ * one call. The card body is a `body` sibling on its card (row `name`
1381
+ * `"body"`), never a row in `fields` — `null` when the kind enables no body.
1382
+ *
1383
+ * Value and provenance only: completeness and errors stay `validate`'s
1384
+ * (a consumer merges it with its own diagnostic producers regardless), and
1385
+ * schema guidance reads from `Quill.schema`.
1386
+ * @param {Document} doc
1387
+ * @returns {Resolved}
1388
+ */
1389
+ resolve(doc) {
1390
+ try {
1391
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1392
+ _assertClass(doc, Document);
1393
+ wasm.quill_resolve(retptr, this.__wbg_ptr, doc.__wbg_ptr);
1394
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1395
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1396
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1397
+ if (r2) {
1398
+ throw takeObject(r1);
1399
+ }
1400
+ return takeObject(r0);
1401
+ } finally {
1402
+ wasm.__wbindgen_add_to_stack_pointer(16);
1403
+ }
1404
+ }
1374
1405
  /**
1375
1406
  * Document schema for the quill: the user-fillable fields plus their
1376
1407
  * `ui` hints (title / group / compact / multiline). The single
@@ -1542,6 +1573,40 @@ export function exportMarkdown(rt) {
1542
1573
  }
1543
1574
  }
1544
1575
 
1576
+ /**
1577
+ * Serialize structured [`DocPathSeg`] segments back to the canonical path
1578
+ * string — the inverse of `parseDocPath`, for a consumer that builds a path
1579
+ * rather than reads one. Throws on a segment array the deserializer rejects,
1580
+ * and on an empty segment array (symmetric with `parseDocPath("")`, which
1581
+ * throws "empty path").
1582
+ * @param {DocPathSeg[]} segs
1583
+ * @returns {string}
1584
+ */
1585
+ export function formatDocPath(segs) {
1586
+ let deferred2_0;
1587
+ let deferred2_1;
1588
+ try {
1589
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1590
+ wasm.formatDocPath(retptr, addHeapObject(segs));
1591
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1592
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1593
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1594
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
1595
+ var ptr1 = r0;
1596
+ var len1 = r1;
1597
+ if (r3) {
1598
+ ptr1 = 0; len1 = 0;
1599
+ throw takeObject(r2);
1600
+ }
1601
+ deferred2_0 = ptr1;
1602
+ deferred2_1 = len1;
1603
+ return getStringFromWasm0(ptr1, len1);
1604
+ } finally {
1605
+ wasm.__wbindgen_add_to_stack_pointer(16);
1606
+ wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
1607
+ }
1608
+ }
1609
+
1545
1610
  /**
1546
1611
  * Import a markdown string to a canonical `Content` content — the pure,
1547
1612
  * document-free codec. Pair with `install(addr, importMarkdown(md))` to spell
@@ -1576,10 +1641,11 @@ export function init() {
1576
1641
  }
1577
1642
 
1578
1643
  /**
1579
- * Map a base content position through a `delta` to its new position the pure
1580
- * position-mapping codec an editor bridge composes to hold a caret stable
1581
- * across a `revise`. `assoc` decides the side of a same-position insertion
1582
- * (`"after"` moves past it). Throws on a malformed `delta`.
1644
+ * Map a base content position a USV index into `Content.text`, not a UTF-16
1645
+ * offset through a `delta` to its new USV position: the pure position-mapping
1646
+ * codec an editor bridge composes to hold a caret stable across a `revise`.
1647
+ * `assoc` decides the side of a same-position insertion (`"after"` moves past
1648
+ * it). Throws on a malformed `delta`.
1583
1649
  * @param {Delta} delta
1584
1650
  * @param {number} pos
1585
1651
  * @param {Assoc} assoc
@@ -1601,12 +1667,40 @@ export function mapPos(delta, pos, assoc) {
1601
1667
  }
1602
1668
  }
1603
1669
 
1670
+ /**
1671
+ * Parse a canonical document-model `Diagnostic.path`
1672
+ * (`cards.<kind>[<i>].<field>`, `main.body`, `recipients[0].name`) into its
1673
+ * structured [`DocPathSeg`] segments — the exported inverse of the engine's
1674
+ * one path serializer, so a consumer routes on segments instead of regexing
1675
+ * the string. Throws on a malformed path.
1676
+ * @param {string} path
1677
+ * @returns {DocPathSeg[]}
1678
+ */
1679
+ export function parseDocPath(path) {
1680
+ try {
1681
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1682
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1683
+ const len0 = WASM_VECTOR_LEN;
1684
+ wasm.parseDocPath(retptr, ptr0, len0);
1685
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1686
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1687
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1688
+ if (r2) {
1689
+ throw takeObject(r1);
1690
+ }
1691
+ return takeObject(r0);
1692
+ } finally {
1693
+ wasm.__wbindgen_add_to_stack_pointer(16);
1694
+ }
1695
+ }
1696
+
1604
1697
  /**
1605
1698
  * Rebase `markdown` onto a `base` content — the pure, document-free twin of
1606
1699
  * `revise`: cold-import + `diff_import`, returning the new `content` and the
1607
- * text `delta` (surviving anchors rebased). Use it to compute a revise without
1608
- * a document in hand; `revise(addr, md)` fuses this with the store for
1609
- * atomicity. Throws on an over-nested markdown input or a non-content `base`.
1700
+ * text `delta` (its offsets USV indices into `Content.text`, surviving anchors
1701
+ * rebased). Use it to compute a revise without a document in hand; `revise(addr,
1702
+ * md)` fuses this with the store for atomicity. Throws on an over-nested
1703
+ * markdown input or a non-content `base`.
1610
1704
  * @param {Content} base
1611
1705
  * @param {string} markdown
1612
1706
  * @returns {{ content: Content; delta: Delta }}
package/core/wasm_bg.wasm CHANGED
Binary file
@@ -6,8 +6,8 @@ export const __wbg_quill_free: (a: number, b: number) => void;
6
6
  export const document__addCard: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
7
7
  export const document__commitField: (a: number, b: number, c: number, d: number, e: number) => void;
8
8
  export const document__commitFields: (a: number, b: number, c: number, d: number, e: number) => void;
9
+ export const document__readerGet: (a: number, b: number, c: number, d: number) => void;
9
10
  export const document__reviseField: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
10
- export const document__viewGet: (a: number, b: number, c: number, d: number) => void;
11
11
  export const document_applyChange: (a: number, b: number, c: number, d: number) => void;
12
12
  export const document_blueprintInstruction: (a: number, b: number, c: number) => void;
13
13
  export const document_card: (a: number, b: number, c: number) => void;
@@ -21,10 +21,10 @@ export const document_formatDiagnostic: (a: number, b: number) => void;
21
21
  export const document_formatRules: (a: number) => void;
22
22
  export const document_fromJson: (a: number, b: number, c: number) => void;
23
23
  export const document_fromMarkdown: (a: number, b: number, c: number) => void;
24
- export const document_get: (a: number, b: number, c: number) => void;
25
24
  export const document_getExt: (a: number, b: number, c: number) => void;
26
25
  export const document_getExtNamespace: (a: number, b: number, c: number, d: number, e: number) => void;
27
26
  export const document_getMarkdown: (a: number, b: number, c: number) => void;
27
+ export const document_getStored: (a: number, b: number, c: number) => void;
28
28
  export const document_insertCard: (a: number, b: number, c: number, d: number) => void;
29
29
  export const document_install: (a: number, b: number, c: number, d: number) => void;
30
30
  export const document_isFill: (a: number, b: number, c: number) => void;
@@ -56,13 +56,16 @@ export const document_toMarkdown: (a: number, b: number) => void;
56
56
  export const document_tryFromJson: (a: number, b: number) => number;
57
57
  export const document_warnings: (a: number, b: number) => void;
58
58
  export const exportMarkdown: (a: number, b: number) => void;
59
+ export const formatDocPath: (a: number, b: number) => void;
59
60
  export const importMarkdown: (a: number, b: number, c: number) => void;
60
61
  export const init: () => void;
61
62
  export const mapPos: (a: number, b: number, c: number, d: number) => void;
63
+ export const parseDocPath: (a: number, b: number, c: number) => void;
62
64
  export const quill_backendId: (a: number, b: number) => void;
63
65
  export const quill_blueprint: (a: number, b: number) => void;
64
66
  export const quill_fromTree: (a: number, b: number) => void;
65
67
  export const quill_metadata: (a: number, b: number) => void;
68
+ export const quill_resolve: (a: number, b: number, c: number) => void;
66
69
  export const quill_schema: (a: number, b: number) => void;
67
70
  export const quill_seedCard: (a: number, b: number, c: number, d: number, e: number) => void;
68
71
  export const quill_seedDocument: (a: number) => number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillmark/wasm",
3
- "version": "0.95.1",
3
+ "version": "0.97.0",
4
4
  "description": "WebAssembly bindings for Quillmark, a schema-driven document engine",
5
5
  "type": "module",
6
6
  "license": "MIT OR Apache-2.0",