@quillmark/wasm 0.79.0 → 0.80.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
@@ -93,14 +93,14 @@ export interface QuillFieldUi {
93
93
  multiline?: boolean;
94
94
  }
95
95
 
96
- /** UI layout hints for a card (main or named card type). */
96
+ /** UI layout hints for a card (main or named card kind). */
97
97
  export interface QuillCardUi {
98
98
  title?: string;
99
99
  }
100
100
 
101
- /** Body namespace for a card (main or named card type). */
101
+ /** Body namespace for a card (main or named card kind). */
102
102
  export interface QuillCardBody {
103
- /** When false, consumers must not accept or store body content for this card type. Defaults to true. */
103
+ /** When false, consumers must not accept or store body content for this card kind. Defaults to true. */
104
104
  enabled?: boolean;
105
105
  /** Example body content embedded verbatim in the blueprint body region. Fallback is "Write <card> body here." */
106
106
  example?: string;
@@ -119,7 +119,7 @@ export interface QuillFieldSchema {
119
119
  items?: QuillFieldSchema;
120
120
  }
121
121
 
122
- /** Schema entry for the main card or a named card type. */
122
+ /** Schema entry for the main card or a named card kind. */
123
123
  export interface QuillCardSchema {
124
124
  description?: string;
125
125
  fields: Record<string, QuillFieldSchema>;
@@ -130,13 +130,13 @@ export interface QuillCardSchema {
130
130
  /**
131
131
  * Document schema returned by `Quill.schema`. Includes optional `ui` keys.
132
132
  *
133
- * `main.fields.QUILL` and `card_types[name].fields.CARD` are required
133
+ * `main.fields.QUILL` and `card_kinds[name].fields.CARD` are required
134
134
  * sentinels with `const` values telling consumers what to write.
135
135
  */
136
136
  export interface QuillSchema {
137
137
  main: QuillCardSchema;
138
- /** Present only when the quill declares at least one named card type. */
139
- card_types?: Record<string, QuillCardSchema>;
138
+ /** Present only when the quill declares at least one named card kind. */
139
+ card_kinds?: Record<string, QuillCardSchema>;
140
140
  }
141
141
 
142
142
  /**
@@ -459,15 +459,15 @@ export class Quill {
459
459
  free(): void;
460
460
  [Symbol.dispose](): void;
461
461
  /**
462
- * A blank form for a card of the given type — no document values supplied.
462
+ * A blank form for a card of the given kind — no document values supplied.
463
463
  *
464
- * Returns `null` if `cardType` is not declared in this quill's schema.
464
+ * Returns `null` if `cardKind` is not declared in this quill's schema.
465
465
  * Otherwise returns a plain JS object shaped like a single entry in
466
466
  * [`Form::cards`].
467
467
  *
468
468
  * [`Form::cards`]: quillmark::form::Form::cards
469
469
  */
470
- blankCard(card_type: string): FormCard | null;
470
+ blankCard(card_kind: string): FormCard | null;
471
471
  /**
472
472
  * A blank form for the main card — no document values supplied.
473
473
  *
@@ -523,20 +523,20 @@ export class Quill {
523
523
  }
524
524
  }
525
525
  /**
526
- * A blank form for a card of the given type — no document values supplied.
526
+ * A blank form for a card of the given kind — no document values supplied.
527
527
  *
528
- * Returns `null` if `cardType` is not declared in this quill's schema.
528
+ * Returns `null` if `cardKind` is not declared in this quill's schema.
529
529
  * Otherwise returns a plain JS object shaped like a single entry in
530
530
  * [`Form::cards`].
531
531
  *
532
532
  * [`Form::cards`]: quillmark::form::Form::cards
533
- * @param {string} card_type
533
+ * @param {string} card_kind
534
534
  * @returns {FormCard | null}
535
535
  */
536
- blankCard(card_type) {
536
+ blankCard(card_kind) {
537
537
  try {
538
538
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
539
- const ptr0 = passStringToWasm0(card_type, wasm.__wbindgen_export, wasm.__wbindgen_export2);
539
+ const ptr0 = passStringToWasm0(card_kind, wasm.__wbindgen_export, wasm.__wbindgen_export2);
540
540
  const len0 = WASM_VECTOR_LEN;
541
541
  wasm.quill_blankCard(retptr, this.__wbg_ptr, ptr0, len0);
542
542
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillmark/wasm",
3
- "version": "0.79.0",
3
+ "version": "0.80.0",
4
4
  "description": "WebAssembly bindings for quillmark",
5
5
  "type": "module",
6
6
  "license": "MIT OR Apache-2.0",