@quillmark/wasm 0.116.0 → 0.118.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/CHANGELOG.md CHANGED
@@ -1,5 +1,115 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.118.0 - 2026-09-30
4
+
5
+ Upgrade path: [0.117 → 0.118](docs/migrations/0.117-to-0.118.md).
6
+
7
+ ### Kind seeds
8
+
9
+ - feat(core,wasm,python)!: **a card kind declares `seed:`**, what
10
+ `seed_card` writes into a new card of that kind: the `$seed.<kind>` shape,
11
+ fields plus an optional `$body`. `seed_document()` carries each kind's seed,
12
+ and `schema()` emits it (WASM `QuillCardSchema.seed`). `CardSchema` gains a
13
+ public `seed` field. A document's `$seed.<kind>` replaces the kind's seed
14
+ whole, `$body` included, and `$seed.<kind>: {}` seeds nothing. A kind's
15
+ seed is checked as the card it makes and fails the load under
16
+ `quill::seed_*`, plus `quill::seed_redundant` for a seed that renders as the
17
+ unanswered field does; `main` declares none (`quill::invalid_card_schema`).
18
+ (#2016)
19
+
20
+ ### Document `$seed`
21
+
22
+ - feat(core)!: **a document's `$seed` warns wherever the card it seeds
23
+ would**: an undeclared key below a seeded field
24
+ (`validation::unknown_field`), a cell outside its variant world
25
+ (`validation::out_of_variant`), a `$body` that is not a markdown string or
26
+ does not import (`validation::seed_overlay_shape`), and a seeded array past
27
+ its `max:` (`validation::cardinality`). `quillmark validate` fails a quill
28
+ whose `example.md` carries one. A `null` in `$seed.<kind>` commits nothing,
29
+ where the new card carried `field:`. (#2016)
30
+ - refactor(cli): `quillmark validate` names `seed_document`'s output
31
+ `seeded` in its render report, where it said `seed`. (#2014)
32
+
33
+
34
+ ## v0.117.0 - 2026-09-29
35
+
36
+ Upgrade path: [0.116 → 0.117](docs/migrations/0.116-to-0.117.md).
37
+
38
+ ### `example:` leaves the quill schema
39
+
40
+ - feat(core,wasm,python)!: **a `Quill.yaml` declaring `example:` fails to
41
+ load.** A slot declares one value, its `default:`. `example:` on a field at
42
+ any depth fails `quill::field_parse_error`, hinted to `description:`, and
43
+ `body.example` fails `quill::invalid_body`. The `quill::example_*` checks
44
+ and `quill::body_example_*` codes are deleted, and
45
+ `quill::richtext_example_import` is `quill::richtext_default_import`. The
46
+ blueprint drops its `# e.g.` and `# body e.g.` lines but a matrix's member
47
+ hint, `schema()` carries no `example`, and `FieldSchema::example`,
48
+ `BodyCardSchema::example`, WASM `QuillFieldSchema.example` and
49
+ `QuillCardBody.example` are deleted. (#1999)
50
+
51
+ ### The example document
52
+
53
+ - feat(core,cli,wasm,python)!: **`example.md` at the quill root is the
54
+ quill's example**, a filled-in page whose values are made up.
55
+ `Quill.yaml` declares nothing about it and the load never reads it.
56
+ `Quill::example_document()`, WASM `Quill.exampleDocument()` and Python
57
+ `Quill.example_document()` hand it out pinned to the quill's
58
+ `name@version`, or `None` without one; a `$quill` other than the quill's
59
+ bare name fails `quill::example_reference`. `quillmark` re-exports
60
+ `EXAMPLE_FILE`. `quillmark validate` reads, validates and renders it, and
61
+ fails the quill on any diagnostic it carries, a warning included
62
+ (`cli::example_not_clean`, `cli::example_render_failed`): a quill keeping a
63
+ root `example.md` for another purpose renames it. `status_report` and
64
+ `usaf_memo` ship one. (#2002, #2007, #2009)
65
+
66
+ ### Quill references
67
+
68
+ - refactor(core)!: **`$quill: name@latest` fails as
69
+ `parse::invalid_quill_reference`.** It was a second spelling of the bare
70
+ `name`, which matches the same versions. A selector is `MAJOR`,
71
+ `MAJOR.MINOR` or `MAJOR.MINOR.PATCH`, digits only, the grammar
72
+ `@quillmark/quiver`'s `parseQuillRef` enforces. `VersionSelector::Latest`
73
+ is `VersionSelector::Any`, and `QuillReference::latest` is deleted.
74
+ (#2000)
75
+ - refactor(core)!: `VersionSelector` has no `Display`: `Any` has no written
76
+ form outside a reference. `QuillReference`'s `Display` still writes `name`
77
+ or `name@selector`. (#2008)
78
+
79
+ ### Quill headers the load refuses
80
+
81
+ - fix(core)!: **`version: ""`, a tagged version such as `!!float 1.10`, and
82
+ a card kind named `main` fail to load**, as `quill::invalid_version` and
83
+ `quill::invalid_card_name`. None could hold what it seemed to. (#1994)
84
+ - fix(core)!: a `title` key on a matrix member in a document warns
85
+ `validation::unknown_field` at `<field>.<member>.title`: the member's title
86
+ is the quill's, and `quillmark check --strict` fails such a document.
87
+ (#1994)
88
+
89
+ ### Rendering
90
+
91
+ - fix(typst)!: **a quill shipping no fonts renders in Roboto**, where it
92
+ rendered in Figtree, which has no prime: a `"` or `'` after a digit in
93
+ richtext rendered as an empty box. The faces are variable Roboto, upright
94
+ and italic, weights 100 to 900. A font-less quill's text reflows, a plate
95
+ naming an unshipped `"Figtree"` warns `unknown font family`, and
96
+ `quillmark workspace` exports `fonts/Roboto.ttf` and
97
+ `fonts/Roboto-Italic.ttf`. (#2010)
98
+
99
+ ### The CLI
100
+
101
+ - fix(cli): `quillmark check` locates a diagnostic in the file it came from,
102
+ where every location read `input.md`; `quillmark` re-exports
103
+ `DOCUMENT_FILE`. (#1995)
104
+ - fix(cli): a missing path given to `quillmark check` draws
105
+ `cli::unreadable_document`, as an unreadable one does, where it stopped
106
+ the run; the remaining paths are still checked. (#1994)
107
+
108
+ ### Fixes
109
+
110
+ - fix(core): a field parse hint answers the key serde refused, at every
111
+ depth. (#1999)
112
+
3
113
  ## v0.116.0 - 2026-09-26
4
114
 
5
115
  Upgrade path: [0.115 → 0.116](docs/migrations/0.115-to-0.116.md).
package/README.md CHANGED
@@ -219,8 +219,12 @@ To render a form editor, read field definitions from `quill.schema` (walk
219
219
  values from the `Document` payload: there is no separate form-view projection.
220
220
  `quill.validate(doc)` scores it without invoking the backend.
221
221
 
222
- `quill.seedDocument()` returns a starter document: one card per kind, each body
223
- empty, every field absent (no `example:` is committed);
222
+ `quill.exampleDocument()` returns the quill's example, a filled-in page whose
223
+ values are made up, pinned to the quill's `name@version`; `undefined` when
224
+ the quill has no `example.md` at its root.
225
+
226
+ `quill.seedDocument()` returns a starter document: one card per kind, each
227
+ carrying the kind's `seed` from `Quill.yaml` and no other field;
224
228
  `quill.seedMain()` and `quill.seedCard(kind)` seed one card. All
225
229
  return the read `Card` shape of `doc.main` / `doc.cards`, which `doc.insertCard`
226
230
  accepts directly:
@@ -423,10 +427,6 @@ renders that value under a type-only `# <type>` annotation and the render path
423
427
  uses it when the document omits the field. Without one, the blueprint leaves the
424
428
  cell empty and an absent field blank-fills.
425
429
 
426
- **`example:`** — the schema's illustration of the field's shape.
427
- `quill.blueprint` shows it on a `# e.g.` line above the field; it never takes a
428
- cell and never renders.
429
-
430
430
  An unanswered field draws no diagnostic. Partial documents are accepted, and
431
431
  `engine.render(quill, doc)` throws only for malformed input.
432
432
 
package/core/wasm.d.ts CHANGED
@@ -407,16 +407,14 @@ export interface QuillCardUi {
407
407
  export interface QuillCardBody {
408
408
  /** When false, consumers must not accept or store body content for this card kind. Defaults to true. */
409
409
  enabled?: boolean;
410
- /** Example body content, shown on the blueprint's `# body e.g.` line above the body. */
411
- example?: string;
412
410
  }
413
411
 
414
412
  export type QuillFieldType = "string" | "number" | "integer" | "boolean" | "array" | "object" | "date" | "datetime" | "richtext" | "plaintext" | "enum" | "matrix";
415
413
 
416
414
  /** Schema entry for a single field declared in a quill's `Quill.yaml`.
417
415
  *
418
- * `default` is the value an unanswered cell renders; `example` documents shape
419
- * and never renders. An absent field without a `default` blank-fills.
416
+ * `default` is the value an unanswered cell renders. An absent field without a
417
+ * `default` blank-fills.
420
418
  */
421
419
  export interface QuillFieldSchema {
422
420
  /** A trailing `?` marks the cell optional: unanswered, it renders `none`
@@ -428,7 +426,6 @@ export interface QuillFieldSchema {
428
426
  title?: string;
429
427
  description?: string;
430
428
  default?: unknown;
431
- example?: unknown;
432
429
  /** The closed set of allowed values. Required on `type: "enum"`, and valid
433
430
  * nowhere else. */
434
431
  values?: string[];
@@ -464,6 +461,10 @@ export interface QuillCardSchema {
464
461
  fields: Record<string, QuillFieldSchema>;
465
462
  ui?: QuillCardUi;
466
463
  body?: QuillCardBody;
464
+ /** What `seedCard` writes into a new card of this kind where the
465
+ * document's `$seed` carries no entry for it: the `$seed[kind]` shape, fields plus
466
+ * an optional `$body`. Never present on `main`. */
467
+ seed?: Record<string, unknown>;
467
468
  }
468
469
 
469
470
  /**
@@ -813,6 +814,15 @@ export class Quill {
813
814
  * reached by spelling the reference.
814
815
  */
815
816
  emptyDocument(): Document;
817
+ /**
818
+ * The quill's example document, `undefined` when the quill has no
819
+ * `example.md` at its root: a filled-in page whose values are made up to show the
820
+ * quill in use, never kept. It comes back pinned to this quill's
821
+ * `name@version` and conformed as `parse` conforms, its parse and
822
+ * `conform::*` warnings on `doc.warnings`. Throws when the file does not
823
+ * parse or its `$quill` is not this quill's bare name.
824
+ */
825
+ exampleDocument(): Document | undefined;
816
826
  /**
817
827
  * Build a quill from a file tree. Pure: the declared backend is resolved
818
828
  * later, at render time. Accepts a `Map<string, Uint8Array>` or a plain
@@ -834,20 +844,20 @@ export class Quill {
834
844
  parse(markdown: string): Document;
835
845
  /**
836
846
  * Seed a starter composable `Card` of the given kind (carries `$kind`),
837
- * committing an optional per-kind seed `overlay`'s fields and `$body`
838
- * (`overlay › absent`, body `overlay › empty`). `undefined` when
839
- * `cardKind` is not declared in this quill's schema.
847
+ * committing an optional per-kind seed `overlay`'s fields and `$body` in
848
+ * place of the kind's own `seed`, else that seed's. `undefined` when `cardKind` is
849
+ * not declared in this quill's schema.
840
850
  *
841
851
  * Pass `document.seedOverlay(cardKind)` as `overlay` so a card added to a
842
852
  * template-derived document inherits its curated starting values; omit it
843
- * for the bare schema seed.
853
+ * for a card carrying the kind's seed alone.
844
854
  */
845
855
  seedCard(card_kind: string, overlay: Record<string, unknown> | undefined): Card | undefined;
846
856
  /**
847
857
  * Seed a starter `Document` from the schema: the main card plus one instance
848
- * of each composable card kind, each body empty and every field absent
849
- * (interpolated at render as `default:`, else the field's blank). No
850
- * `example:` is committed (a field's or `body.example`).
858
+ * of each composable card kind, each carrying its kind's `seed` and every
859
+ * other field absent (interpolated at render as `default:`, else the
860
+ * field's blank).
851
861
  */
852
862
  seedDocument(): Document;
853
863
  /**
@@ -1062,6 +1072,7 @@ export interface InitOutput {
1062
1072
  readonly quill_blueprint: (a: number, b: number) => void;
1063
1073
  readonly quill_conform: (a: number, b: number, c: number) => void;
1064
1074
  readonly quill_emptyDocument: (a: number) => number;
1075
+ readonly quill_exampleDocument: (a: number, b: number) => void;
1065
1076
  readonly quill_fromTree: (a: number, b: number) => void;
1066
1077
  readonly quill_metadata: (a: number, b: number) => void;
1067
1078
  readonly quill_parse: (a: number, b: number, c: number, d: number) => void;
package/core/wasm.js CHANGED
@@ -1246,6 +1246,30 @@ export class Quill {
1246
1246
  const ret = wasm.quill_emptyDocument(this.__wbg_ptr);
1247
1247
  return Document.__wrap(ret);
1248
1248
  }
1249
+ /**
1250
+ * The quill's example document, `undefined` when the quill has no
1251
+ * `example.md` at its root: a filled-in page whose values are made up to show the
1252
+ * quill in use, never kept. It comes back pinned to this quill's
1253
+ * `name@version` and conformed as `parse` conforms, its parse and
1254
+ * `conform::*` warnings on `doc.warnings`. Throws when the file does not
1255
+ * parse or its `$quill` is not this quill's bare name.
1256
+ * @returns {Document | undefined}
1257
+ */
1258
+ exampleDocument() {
1259
+ try {
1260
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1261
+ wasm.quill_exampleDocument(retptr, this.__wbg_ptr);
1262
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1263
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1264
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1265
+ if (r2) {
1266
+ throw takeObject(r1);
1267
+ }
1268
+ return r0 === 0 ? undefined : Document.__wrap(r0);
1269
+ } finally {
1270
+ wasm.__wbindgen_add_to_stack_pointer(16);
1271
+ }
1272
+ }
1249
1273
  /**
1250
1274
  * Build a quill from a file tree. Pure: the declared backend is resolved
1251
1275
  * later, at render time. Accepts a `Map<string, Uint8Array>` or a plain
@@ -1343,13 +1367,13 @@ export class Quill {
1343
1367
  }
1344
1368
  /**
1345
1369
  * Seed a starter composable `Card` of the given kind (carries `$kind`),
1346
- * committing an optional per-kind seed `overlay`'s fields and `$body`
1347
- * (`overlay › absent`, body `overlay › empty`). `undefined` when
1348
- * `cardKind` is not declared in this quill's schema.
1370
+ * committing an optional per-kind seed `overlay`'s fields and `$body` in
1371
+ * place of the kind's own `seed`, else that seed's. `undefined` when `cardKind` is
1372
+ * not declared in this quill's schema.
1349
1373
  *
1350
1374
  * Pass `document.seedOverlay(cardKind)` as `overlay` so a card added to a
1351
1375
  * template-derived document inherits its curated starting values; omit it
1352
- * for the bare schema seed.
1376
+ * for a card carrying the kind's seed alone.
1353
1377
  * @param {string} card_kind
1354
1378
  * @param {Record<string, unknown> | undefined} overlay
1355
1379
  * @returns {Card | undefined}
@@ -1373,9 +1397,9 @@ export class Quill {
1373
1397
  }
1374
1398
  /**
1375
1399
  * Seed a starter `Document` from the schema: the main card plus one instance
1376
- * of each composable card kind, each body empty and every field absent
1377
- * (interpolated at render as `default:`, else the field's blank). No
1378
- * `example:` is committed (a field's or `body.example`).
1400
+ * of each composable card kind, each carrying its kind's `seed` and every
1401
+ * other field absent (interpolated at render as `default:`, else the
1402
+ * field's blank).
1379
1403
  * @returns {Document}
1380
1404
  */
1381
1405
  seedDocument() {
package/core/wasm_bg.wasm CHANGED
Binary file
@@ -62,6 +62,7 @@ export const quill_backendId: (a: number, b: number) => void;
62
62
  export const quill_blueprint: (a: number, b: number) => void;
63
63
  export const quill_conform: (a: number, b: number, c: number) => void;
64
64
  export const quill_emptyDocument: (a: number) => number;
65
+ export const quill_exampleDocument: (a: number, b: number) => void;
65
66
  export const quill_fromTree: (a: number, b: number) => void;
66
67
  export const quill_metadata: (a: number, b: number) => void;
67
68
  export const quill_parse: (a: number, b: number, c: number, d: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillmark/wasm",
3
- "version": "0.116.0",
3
+ "version": "0.118.0",
4
4
  "description": "WebAssembly bindings for Quillmark, a schema-driven document engine",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
package/render/wasm.d.ts CHANGED
@@ -418,16 +418,14 @@ export interface QuillCardUi {
418
418
  export interface QuillCardBody {
419
419
  /** When false, consumers must not accept or store body content for this card kind. Defaults to true. */
420
420
  enabled?: boolean;
421
- /** Example body content, shown on the blueprint's `# body e.g.` line above the body. */
422
- example?: string;
423
421
  }
424
422
 
425
423
  export type QuillFieldType = "string" | "number" | "integer" | "boolean" | "array" | "object" | "date" | "datetime" | "richtext" | "plaintext" | "enum" | "matrix";
426
424
 
427
425
  /** Schema entry for a single field declared in a quill's `Quill.yaml`.
428
426
  *
429
- * `default` is the value an unanswered cell renders; `example` documents shape
430
- * and never renders. An absent field without a `default` blank-fills.
427
+ * `default` is the value an unanswered cell renders. An absent field without a
428
+ * `default` blank-fills.
431
429
  */
432
430
  export interface QuillFieldSchema {
433
431
  /** A trailing `?` marks the cell optional: unanswered, it renders `none`
@@ -439,7 +437,6 @@ export interface QuillFieldSchema {
439
437
  title?: string;
440
438
  description?: string;
441
439
  default?: unknown;
442
- example?: unknown;
443
440
  /** The closed set of allowed values. Required on `type: "enum"`, and valid
444
441
  * nowhere else. */
445
442
  values?: string[];
@@ -475,6 +472,10 @@ export interface QuillCardSchema {
475
472
  fields: Record<string, QuillFieldSchema>;
476
473
  ui?: QuillCardUi;
477
474
  body?: QuillCardBody;
475
+ /** What `seedCard` writes into a new card of this kind where the
476
+ * document's `$seed` carries no entry for it: the `$seed[kind]` shape, fields plus
477
+ * an optional `$body`. Never present on `main`. */
478
+ seed?: Record<string, unknown>;
478
479
  }
479
480
 
480
481
  /**
@@ -1046,6 +1047,15 @@ export class Quill {
1046
1047
  * reached by spelling the reference.
1047
1048
  */
1048
1049
  emptyDocument(): Document;
1050
+ /**
1051
+ * The quill's example document, `undefined` when the quill has no
1052
+ * `example.md` at its root: a filled-in page whose values are made up to show the
1053
+ * quill in use, never kept. It comes back pinned to this quill's
1054
+ * `name@version` and conformed as `parse` conforms, its parse and
1055
+ * `conform::*` warnings on `doc.warnings`. Throws when the file does not
1056
+ * parse or its `$quill` is not this quill's bare name.
1057
+ */
1058
+ exampleDocument(): Document | undefined;
1049
1059
  /**
1050
1060
  * Build a quill from a file tree. Pure: the declared backend is resolved
1051
1061
  * later, at render time. Accepts a `Map<string, Uint8Array>` or a plain
@@ -1067,20 +1077,20 @@ export class Quill {
1067
1077
  parse(markdown: string): Document;
1068
1078
  /**
1069
1079
  * Seed a starter composable `Card` of the given kind (carries `$kind`),
1070
- * committing an optional per-kind seed `overlay`'s fields and `$body`
1071
- * (`overlay › absent`, body `overlay › empty`). `undefined` when
1072
- * `cardKind` is not declared in this quill's schema.
1080
+ * committing an optional per-kind seed `overlay`'s fields and `$body` in
1081
+ * place of the kind's own `seed`, else that seed's. `undefined` when `cardKind` is
1082
+ * not declared in this quill's schema.
1073
1083
  *
1074
1084
  * Pass `document.seedOverlay(cardKind)` as `overlay` so a card added to a
1075
1085
  * template-derived document inherits its curated starting values; omit it
1076
- * for the bare schema seed.
1086
+ * for a card carrying the kind's seed alone.
1077
1087
  */
1078
1088
  seedCard(card_kind: string, overlay: Record<string, unknown> | undefined): Card | undefined;
1079
1089
  /**
1080
1090
  * Seed a starter `Document` from the schema: the main card plus one instance
1081
- * of each composable card kind, each body empty and every field absent
1082
- * (interpolated at render as `default:`, else the field's blank). No
1083
- * `example:` is committed (a field's or `body.example`).
1091
+ * of each composable card kind, each carrying its kind's `seed` and every
1092
+ * other field absent (interpolated at render as `default:`, else the
1093
+ * field's blank).
1084
1094
  */
1085
1095
  seedDocument(): Document;
1086
1096
  /**
@@ -1337,6 +1347,7 @@ export interface InitOutput {
1337
1347
  readonly quill_blueprint: (a: number, b: number) => void;
1338
1348
  readonly quill_conform: (a: number, b: number, c: number) => void;
1339
1349
  readonly quill_emptyDocument: (a: number) => number;
1350
+ readonly quill_exampleDocument: (a: number, b: number) => void;
1340
1351
  readonly quill_fromTree: (a: number, b: number) => void;
1341
1352
  readonly quill_metadata: (a: number, b: number) => void;
1342
1353
  readonly quill_parse: (a: number, b: number, c: number, d: number) => void;
package/render/wasm.js CHANGED
@@ -1567,6 +1567,30 @@ export class Quill {
1567
1567
  const ret = wasm.quill_emptyDocument(this.__wbg_ptr);
1568
1568
  return Document.__wrap(ret);
1569
1569
  }
1570
+ /**
1571
+ * The quill's example document, `undefined` when the quill has no
1572
+ * `example.md` at its root: a filled-in page whose values are made up to show the
1573
+ * quill in use, never kept. It comes back pinned to this quill's
1574
+ * `name@version` and conformed as `parse` conforms, its parse and
1575
+ * `conform::*` warnings on `doc.warnings`. Throws when the file does not
1576
+ * parse or its `$quill` is not this quill's bare name.
1577
+ * @returns {Document | undefined}
1578
+ */
1579
+ exampleDocument() {
1580
+ try {
1581
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1582
+ wasm.quill_exampleDocument(retptr, this.__wbg_ptr);
1583
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1584
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1585
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1586
+ if (r2) {
1587
+ throw takeObject(r1);
1588
+ }
1589
+ return r0 === 0 ? undefined : Document.__wrap(r0);
1590
+ } finally {
1591
+ wasm.__wbindgen_add_to_stack_pointer(16);
1592
+ }
1593
+ }
1570
1594
  /**
1571
1595
  * Build a quill from a file tree. Pure: the declared backend is resolved
1572
1596
  * later, at render time. Accepts a `Map<string, Uint8Array>` or a plain
@@ -1664,13 +1688,13 @@ export class Quill {
1664
1688
  }
1665
1689
  /**
1666
1690
  * Seed a starter composable `Card` of the given kind (carries `$kind`),
1667
- * committing an optional per-kind seed `overlay`'s fields and `$body`
1668
- * (`overlay › absent`, body `overlay › empty`). `undefined` when
1669
- * `cardKind` is not declared in this quill's schema.
1691
+ * committing an optional per-kind seed `overlay`'s fields and `$body` in
1692
+ * place of the kind's own `seed`, else that seed's. `undefined` when `cardKind` is
1693
+ * not declared in this quill's schema.
1670
1694
  *
1671
1695
  * Pass `document.seedOverlay(cardKind)` as `overlay` so a card added to a
1672
1696
  * template-derived document inherits its curated starting values; omit it
1673
- * for the bare schema seed.
1697
+ * for a card carrying the kind's seed alone.
1674
1698
  * @param {string} card_kind
1675
1699
  * @param {Record<string, unknown> | undefined} overlay
1676
1700
  * @returns {Card | undefined}
@@ -1694,9 +1718,9 @@ export class Quill {
1694
1718
  }
1695
1719
  /**
1696
1720
  * Seed a starter `Document` from the schema: the main card plus one instance
1697
- * of each composable card kind, each body empty and every field absent
1698
- * (interpolated at render as `default:`, else the field's blank). No
1699
- * `example:` is committed (a field's or `body.example`).
1721
+ * of each composable card kind, each carrying its kind's `seed` and every
1722
+ * other field absent (interpolated at render as `default:`, else the
1723
+ * field's blank).
1700
1724
  * @returns {Document}
1701
1725
  */
1702
1726
  seedDocument() {
Binary file
@@ -76,6 +76,7 @@ export const quill_backendId: (a: number, b: number) => void;
76
76
  export const quill_blueprint: (a: number, b: number) => void;
77
77
  export const quill_conform: (a: number, b: number, c: number) => void;
78
78
  export const quill_emptyDocument: (a: number) => number;
79
+ export const quill_exampleDocument: (a: number, b: number) => void;
79
80
  export const quill_fromTree: (a: number, b: number) => void;
80
81
  export const quill_metadata: (a: number, b: number) => void;
81
82
  export const quill_parse: (a: number, b: number, c: number, d: number) => void;