@quillmark/wasm 0.72.0 → 0.74.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 +12 -9
- package/bundler/wasm_bg.js +0 -8
- package/bundler/wasm_bg.wasm +0 -0
- package/bundler/wasm_bg.wasm.d.ts +0 -1
- package/package.json +1 -1
package/bundler/wasm.d.ts
CHANGED
|
@@ -96,7 +96,14 @@ export interface QuillFieldUi {
|
|
|
96
96
|
/** UI layout hints for a card (main or named card type). */
|
|
97
97
|
export interface QuillCardUi {
|
|
98
98
|
title?: string;
|
|
99
|
-
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/** Body namespace for a card (main or named card type). */
|
|
102
|
+
export interface QuillCardBody {
|
|
103
|
+
/** When false, consumers must not accept or store body content for this card type. Defaults to true. */
|
|
104
|
+
enabled?: boolean;
|
|
105
|
+
/** Description shown in the body editor placeholder area when the body is empty. */
|
|
106
|
+
description?: string;
|
|
100
107
|
}
|
|
101
108
|
|
|
102
109
|
/** Schema entry for a single field declared in a quill's `Quill.yaml`. */
|
|
@@ -117,11 +124,11 @@ export interface QuillCardSchema {
|
|
|
117
124
|
description?: string;
|
|
118
125
|
fields: Record<string, QuillFieldSchema>;
|
|
119
126
|
ui?: QuillCardUi;
|
|
127
|
+
body?: QuillCardBody;
|
|
120
128
|
}
|
|
121
129
|
|
|
122
130
|
/**
|
|
123
|
-
* Document schema
|
|
124
|
-
* `Quill.formSchema` (with ui hints) — same shape, optional `ui` keys.
|
|
131
|
+
* Document schema returned by `Quill.schema`. Includes optional `ui` keys.
|
|
125
132
|
*
|
|
126
133
|
* `main.fields.QUILL` and `card_types[name].fields.CARD` are required
|
|
127
134
|
* sentinels with `const` values telling consumers what to write.
|
|
@@ -134,8 +141,8 @@ export interface QuillSchema {
|
|
|
134
141
|
|
|
135
142
|
/**
|
|
136
143
|
* Identity snapshot mirroring the `quill:` section of `Quill.yaml`.
|
|
137
|
-
*
|
|
138
|
-
*
|
|
144
|
+
* The schema lives on `Quill.schema`; the example on `Quill.example`.
|
|
145
|
+
* Extra `quill:` keys appear as `unknown`.
|
|
139
146
|
*/
|
|
140
147
|
export interface QuillMetadata {
|
|
141
148
|
name: string;
|
|
@@ -510,10 +517,6 @@ export class Quill {
|
|
|
510
517
|
* Bundled example document, or `undefined` if none was declared.
|
|
511
518
|
*/
|
|
512
519
|
readonly example: string | undefined;
|
|
513
|
-
/**
|
|
514
|
-
* Document schema with `ui` hints — for form builders.
|
|
515
|
-
*/
|
|
516
|
-
readonly formSchema: QuillSchema;
|
|
517
520
|
/**
|
|
518
521
|
* Identity snapshot of the `quill:` section of `Quill.yaml`, plus
|
|
519
522
|
* `supportedFormats` and any custom `quill:` keys.
|
package/bundler/wasm_bg.js
CHANGED
|
@@ -652,14 +652,6 @@ export class Quill {
|
|
|
652
652
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
|
-
/**
|
|
656
|
-
* Document schema with `ui` hints — for form builders.
|
|
657
|
-
* @returns {QuillSchema}
|
|
658
|
-
*/
|
|
659
|
-
get formSchema() {
|
|
660
|
-
const ret = wasm.quill_formSchema(this.__wbg_ptr);
|
|
661
|
-
return takeObject(ret);
|
|
662
|
-
}
|
|
663
655
|
/**
|
|
664
656
|
* Identity snapshot of the `quill:` section of `Quill.yaml`, plus
|
|
665
657
|
* `supportedFormats` and any custom `quill:` keys.
|
package/bundler/wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -34,7 +34,6 @@ export const quill_blankMain: (a: number, b: number) => void;
|
|
|
34
34
|
export const quill_blueprint: (a: number, b: number) => void;
|
|
35
35
|
export const quill_example: (a: number, b: number) => void;
|
|
36
36
|
export const quill_form: (a: number, b: number, c: number) => void;
|
|
37
|
-
export const quill_formSchema: (a: number) => number;
|
|
38
37
|
export const quill_metadata: (a: number) => number;
|
|
39
38
|
export const quill_open: (a: number, b: number, c: number) => void;
|
|
40
39
|
export const quill_render: (a: number, b: number, c: number, d: number) => void;
|