@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 +10 -10
- package/bundler/wasm_bg.js +5 -5
- package/bundler/wasm_bg.wasm +0 -0
- package/package.json +1 -1
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
|
|
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
|
|
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
|
|
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
|
|
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 `
|
|
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
|
|
139
|
-
|
|
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
|
|
462
|
+
* A blank form for a card of the given kind — no document values supplied.
|
|
463
463
|
*
|
|
464
|
-
* Returns `null` if `
|
|
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(
|
|
470
|
+
blankCard(card_kind: string): FormCard | null;
|
|
471
471
|
/**
|
|
472
472
|
* A blank form for the main card — no document values supplied.
|
|
473
473
|
*
|
package/bundler/wasm_bg.js
CHANGED
|
@@ -523,20 +523,20 @@ export class Quill {
|
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
/**
|
|
526
|
-
* A blank form for a card of the given
|
|
526
|
+
* A blank form for a card of the given kind — no document values supplied.
|
|
527
527
|
*
|
|
528
|
-
* Returns `null` if `
|
|
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}
|
|
533
|
+
* @param {string} card_kind
|
|
534
534
|
* @returns {FormCard | null}
|
|
535
535
|
*/
|
|
536
|
-
blankCard(
|
|
536
|
+
blankCard(card_kind) {
|
|
537
537
|
try {
|
|
538
538
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
539
|
-
const ptr0 = passStringToWasm0(
|
|
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);
|
package/bundler/wasm_bg.wasm
CHANGED
|
Binary file
|