@quillmark/wasm 0.63.0 → 0.65.1
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 +27 -8
- package/bundler/wasm_bg.js +87 -35
- package/bundler/wasm_bg.wasm +0 -0
- package/bundler/wasm_bg.wasm.d.ts +3 -1
- package/node-esm/wasm.d.ts +27 -8
- package/node-esm/wasm.js +87 -35
- package/node-esm/wasm_bg.wasm +0 -0
- package/node-esm/wasm_bg.wasm.d.ts +3 -1
- package/package.json +1 -1
package/bundler/wasm.d.ts
CHANGED
|
@@ -260,14 +260,30 @@ export class Quill {
|
|
|
260
260
|
free(): void;
|
|
261
261
|
[Symbol.dispose](): void;
|
|
262
262
|
/**
|
|
263
|
-
*
|
|
263
|
+
* A blank form for a card of the given type — no document values supplied.
|
|
264
|
+
*
|
|
265
|
+
* Returns `null` if `cardType` is not declared in this quill's schema.
|
|
266
|
+
* Otherwise returns a plain JS object shaped like a single entry in
|
|
267
|
+
* [`Form::cards`].
|
|
268
|
+
*
|
|
269
|
+
* [`Form::cards`]: quillmark::form::Form::cards
|
|
264
270
|
*/
|
|
265
|
-
|
|
271
|
+
blankCard(card_type: string): any;
|
|
272
|
+
/**
|
|
273
|
+
* A blank form for the main card — no document values supplied.
|
|
274
|
+
*
|
|
275
|
+
* Returns a plain JS object with the same shape as one entry in
|
|
276
|
+
* [`Form::main`]. Every declared field's `source` is `"default"` (when
|
|
277
|
+
* the schema declares a default) or `"missing"`.
|
|
278
|
+
*
|
|
279
|
+
* [`Form::main`]: quillmark::form::Form::main
|
|
280
|
+
*/
|
|
281
|
+
blankMain(): any;
|
|
266
282
|
/**
|
|
267
|
-
*
|
|
283
|
+
* The schema-aware form view of `doc`.
|
|
268
284
|
*
|
|
269
285
|
* Returns a plain JS object (not a class) that is immediately
|
|
270
|
-
* `JSON.stringify`-able. The shape mirrors [`
|
|
286
|
+
* `JSON.stringify`-able. The shape mirrors [`Form`]:
|
|
271
287
|
*
|
|
272
288
|
* ```json
|
|
273
289
|
* {
|
|
@@ -278,12 +294,15 @@ export class Quill {
|
|
|
278
294
|
* ```
|
|
279
295
|
*
|
|
280
296
|
* **Snapshot semantics.** This is a read-only snapshot of the document
|
|
281
|
-
* at call time. Subsequent edits to `doc` require calling `
|
|
282
|
-
* again.
|
|
297
|
+
* at call time. Subsequent edits to `doc` require calling `form` again.
|
|
283
298
|
*
|
|
284
|
-
* [`
|
|
299
|
+
* [`Form`]: quillmark::form::Form
|
|
300
|
+
*/
|
|
301
|
+
form(doc: Document): any;
|
|
302
|
+
/**
|
|
303
|
+
* Open an iterative render session for page-selective rendering.
|
|
285
304
|
*/
|
|
286
|
-
|
|
305
|
+
open(doc: Document): RenderSession;
|
|
287
306
|
/**
|
|
288
307
|
* Render a document to final artifacts.
|
|
289
308
|
*/
|
package/bundler/wasm_bg.js
CHANGED
|
@@ -495,58 +495,63 @@ export class Quill {
|
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
497
|
/**
|
|
498
|
-
*
|
|
499
|
-
*
|
|
500
|
-
* Returns a plain JS object with:
|
|
501
|
-
* - `schema` — the quill's public schema contract, identical to
|
|
502
|
-
* `QuillConfig::public_schema()`. Top-level keys: `name`, `main`,
|
|
503
|
-
* optional `card_types` (map keyed by card name, omitted when empty),
|
|
504
|
-
* optional `example`. `main` and each card under `card_types` share
|
|
505
|
-
* the same shape: `fields` (map keyed by field name), optional
|
|
506
|
-
* `title`, `description`, `ui`.
|
|
507
|
-
* - `backend`, `version`, `author` — quill identity declared in
|
|
508
|
-
* `Quill.yaml`'s `quill:` section.
|
|
509
|
-
* - `supportedFormats` — output formats the backend produces, as
|
|
510
|
-
* lowercase strings.
|
|
511
|
-
* - Any additional unstructured keys declared under `quill:`.
|
|
498
|
+
* A blank form for a card of the given type — no document values supplied.
|
|
512
499
|
*
|
|
513
|
-
*
|
|
514
|
-
*
|
|
500
|
+
* Returns `null` if `cardType` is not declared in this quill's schema.
|
|
501
|
+
* Otherwise returns a plain JS object shaped like a single entry in
|
|
502
|
+
* [`Form::cards`].
|
|
515
503
|
*
|
|
516
|
-
*
|
|
517
|
-
*
|
|
504
|
+
* [`Form::cards`]: quillmark::form::Form::cards
|
|
505
|
+
* @param {string} card_type
|
|
518
506
|
* @returns {any}
|
|
519
507
|
*/
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
508
|
+
blankCard(card_type) {
|
|
509
|
+
try {
|
|
510
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
511
|
+
const ptr0 = passStringToWasm0(card_type, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
512
|
+
const len0 = WASM_VECTOR_LEN;
|
|
513
|
+
wasm.quill_blankCard(retptr, this.__wbg_ptr, ptr0, len0);
|
|
514
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
515
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
516
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
517
|
+
if (r2) {
|
|
518
|
+
throw takeObject(r1);
|
|
519
|
+
}
|
|
520
|
+
return takeObject(r0);
|
|
521
|
+
} finally {
|
|
522
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
523
|
+
}
|
|
523
524
|
}
|
|
524
525
|
/**
|
|
525
|
-
*
|
|
526
|
-
*
|
|
527
|
-
*
|
|
526
|
+
* A blank form for the main card — no document values supplied.
|
|
527
|
+
*
|
|
528
|
+
* Returns a plain JS object with the same shape as one entry in
|
|
529
|
+
* [`Form::main`]. Every declared field's `source` is `"default"` (when
|
|
530
|
+
* the schema declares a default) or `"missing"`.
|
|
531
|
+
*
|
|
532
|
+
* [`Form::main`]: quillmark::form::Form::main
|
|
533
|
+
* @returns {any}
|
|
528
534
|
*/
|
|
529
|
-
|
|
535
|
+
blankMain() {
|
|
530
536
|
try {
|
|
531
537
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
532
|
-
|
|
533
|
-
wasm.quill_open(retptr, this.__wbg_ptr, doc.__wbg_ptr);
|
|
538
|
+
wasm.quill_blankMain(retptr, this.__wbg_ptr);
|
|
534
539
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
535
540
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
536
541
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
537
542
|
if (r2) {
|
|
538
543
|
throw takeObject(r1);
|
|
539
544
|
}
|
|
540
|
-
return
|
|
545
|
+
return takeObject(r0);
|
|
541
546
|
} finally {
|
|
542
547
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
543
548
|
}
|
|
544
549
|
}
|
|
545
550
|
/**
|
|
546
|
-
*
|
|
551
|
+
* The schema-aware form view of `doc`.
|
|
547
552
|
*
|
|
548
553
|
* Returns a plain JS object (not a class) that is immediately
|
|
549
|
-
* `JSON.stringify`-able. The shape mirrors [`
|
|
554
|
+
* `JSON.stringify`-able. The shape mirrors [`Form`]:
|
|
550
555
|
*
|
|
551
556
|
* ```json
|
|
552
557
|
* {
|
|
@@ -557,18 +562,17 @@ export class Quill {
|
|
|
557
562
|
* ```
|
|
558
563
|
*
|
|
559
564
|
* **Snapshot semantics.** This is a read-only snapshot of the document
|
|
560
|
-
* at call time. Subsequent edits to `doc` require calling `
|
|
561
|
-
* again.
|
|
565
|
+
* at call time. Subsequent edits to `doc` require calling `form` again.
|
|
562
566
|
*
|
|
563
|
-
* [`
|
|
567
|
+
* [`Form`]: quillmark::form::Form
|
|
564
568
|
* @param {Document} doc
|
|
565
569
|
* @returns {any}
|
|
566
570
|
*/
|
|
567
|
-
|
|
571
|
+
form(doc) {
|
|
568
572
|
try {
|
|
569
573
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
570
574
|
_assertClass(doc, Document);
|
|
571
|
-
wasm.
|
|
575
|
+
wasm.quill_form(retptr, this.__wbg_ptr, doc.__wbg_ptr);
|
|
572
576
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
573
577
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
574
578
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -580,6 +584,54 @@ export class Quill {
|
|
|
580
584
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
581
585
|
}
|
|
582
586
|
}
|
|
587
|
+
/**
|
|
588
|
+
* Read-only snapshot of the loaded quill's engine info and declared schema.
|
|
589
|
+
*
|
|
590
|
+
* Returns a plain JS object with:
|
|
591
|
+
* - `schema` — the quill's public schema contract, identical to
|
|
592
|
+
* `QuillConfig::public_schema()`. Top-level keys: `name`, `main`,
|
|
593
|
+
* optional `card_types` (map keyed by card name, omitted when empty),
|
|
594
|
+
* optional `example`. `main` and each card under `card_types` share
|
|
595
|
+
* the same shape: `fields` (map keyed by field name), optional
|
|
596
|
+
* `title`, `description`, `ui`.
|
|
597
|
+
* - `backend`, `version`, `author` — quill identity declared in
|
|
598
|
+
* `Quill.yaml`'s `quill:` section.
|
|
599
|
+
* - `supportedFormats` — output formats the backend produces, as
|
|
600
|
+
* lowercase strings.
|
|
601
|
+
* - Any additional unstructured keys declared under `quill:`.
|
|
602
|
+
*
|
|
603
|
+
* Consumers that need validation run their own validator against
|
|
604
|
+
* `metadata.schema`.
|
|
605
|
+
*
|
|
606
|
+
* Equivalent by value for the lifetime of the handle; the quill is
|
|
607
|
+
* immutable once constructed.
|
|
608
|
+
* @returns {any}
|
|
609
|
+
*/
|
|
610
|
+
get metadata() {
|
|
611
|
+
const ret = wasm.quill_metadata(this.__wbg_ptr);
|
|
612
|
+
return takeObject(ret);
|
|
613
|
+
}
|
|
614
|
+
/**
|
|
615
|
+
* Open an iterative render session for page-selective rendering.
|
|
616
|
+
* @param {Document} doc
|
|
617
|
+
* @returns {RenderSession}
|
|
618
|
+
*/
|
|
619
|
+
open(doc) {
|
|
620
|
+
try {
|
|
621
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
622
|
+
_assertClass(doc, Document);
|
|
623
|
+
wasm.quill_open(retptr, this.__wbg_ptr, doc.__wbg_ptr);
|
|
624
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
625
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
626
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
627
|
+
if (r2) {
|
|
628
|
+
throw takeObject(r1);
|
|
629
|
+
}
|
|
630
|
+
return RenderSession.__wrap(r0);
|
|
631
|
+
} finally {
|
|
632
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
633
|
+
}
|
|
634
|
+
}
|
|
583
635
|
/**
|
|
584
636
|
* Render a document to final artifacts.
|
|
585
637
|
* @param {Document} doc
|
package/bundler/wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -27,9 +27,11 @@ export const document_updateCardField: (a: number, b: number, c: number, d: numb
|
|
|
27
27
|
export const document_warnings: (a: number) => number;
|
|
28
28
|
export const init: () => void;
|
|
29
29
|
export const quill_backendId: (a: number, b: number) => void;
|
|
30
|
+
export const quill_blankCard: (a: number, b: number, c: number, d: number) => void;
|
|
31
|
+
export const quill_blankMain: (a: number, b: number) => void;
|
|
32
|
+
export const quill_form: (a: number, b: number, c: number) => void;
|
|
30
33
|
export const quill_metadata: (a: number) => number;
|
|
31
34
|
export const quill_open: (a: number, b: number, c: number) => void;
|
|
32
|
-
export const quill_projectForm: (a: number, b: number, c: number) => void;
|
|
33
35
|
export const quill_render: (a: number, b: number, c: number, d: number) => void;
|
|
34
36
|
export const quillmark_new: () => number;
|
|
35
37
|
export const quillmark_quill: (a: number, b: number, c: number) => void;
|
package/node-esm/wasm.d.ts
CHANGED
|
@@ -260,14 +260,30 @@ export class Quill {
|
|
|
260
260
|
free(): void;
|
|
261
261
|
[Symbol.dispose](): void;
|
|
262
262
|
/**
|
|
263
|
-
*
|
|
263
|
+
* A blank form for a card of the given type — no document values supplied.
|
|
264
|
+
*
|
|
265
|
+
* Returns `null` if `cardType` is not declared in this quill's schema.
|
|
266
|
+
* Otherwise returns a plain JS object shaped like a single entry in
|
|
267
|
+
* [`Form::cards`].
|
|
268
|
+
*
|
|
269
|
+
* [`Form::cards`]: quillmark::form::Form::cards
|
|
264
270
|
*/
|
|
265
|
-
|
|
271
|
+
blankCard(card_type: string): any;
|
|
272
|
+
/**
|
|
273
|
+
* A blank form for the main card — no document values supplied.
|
|
274
|
+
*
|
|
275
|
+
* Returns a plain JS object with the same shape as one entry in
|
|
276
|
+
* [`Form::main`]. Every declared field's `source` is `"default"` (when
|
|
277
|
+
* the schema declares a default) or `"missing"`.
|
|
278
|
+
*
|
|
279
|
+
* [`Form::main`]: quillmark::form::Form::main
|
|
280
|
+
*/
|
|
281
|
+
blankMain(): any;
|
|
266
282
|
/**
|
|
267
|
-
*
|
|
283
|
+
* The schema-aware form view of `doc`.
|
|
268
284
|
*
|
|
269
285
|
* Returns a plain JS object (not a class) that is immediately
|
|
270
|
-
* `JSON.stringify`-able. The shape mirrors [`
|
|
286
|
+
* `JSON.stringify`-able. The shape mirrors [`Form`]:
|
|
271
287
|
*
|
|
272
288
|
* ```json
|
|
273
289
|
* {
|
|
@@ -278,12 +294,15 @@ export class Quill {
|
|
|
278
294
|
* ```
|
|
279
295
|
*
|
|
280
296
|
* **Snapshot semantics.** This is a read-only snapshot of the document
|
|
281
|
-
* at call time. Subsequent edits to `doc` require calling `
|
|
282
|
-
* again.
|
|
297
|
+
* at call time. Subsequent edits to `doc` require calling `form` again.
|
|
283
298
|
*
|
|
284
|
-
* [`
|
|
299
|
+
* [`Form`]: quillmark::form::Form
|
|
300
|
+
*/
|
|
301
|
+
form(doc: Document): any;
|
|
302
|
+
/**
|
|
303
|
+
* Open an iterative render session for page-selective rendering.
|
|
285
304
|
*/
|
|
286
|
-
|
|
305
|
+
open(doc: Document): RenderSession;
|
|
287
306
|
/**
|
|
288
307
|
* Render a document to final artifacts.
|
|
289
308
|
*/
|
package/node-esm/wasm.js
CHANGED
|
@@ -499,58 +499,63 @@ export class Quill {
|
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
/**
|
|
502
|
-
*
|
|
503
|
-
*
|
|
504
|
-
* Returns a plain JS object with:
|
|
505
|
-
* - `schema` — the quill's public schema contract, identical to
|
|
506
|
-
* `QuillConfig::public_schema()`. Top-level keys: `name`, `main`,
|
|
507
|
-
* optional `card_types` (map keyed by card name, omitted when empty),
|
|
508
|
-
* optional `example`. `main` and each card under `card_types` share
|
|
509
|
-
* the same shape: `fields` (map keyed by field name), optional
|
|
510
|
-
* `title`, `description`, `ui`.
|
|
511
|
-
* - `backend`, `version`, `author` — quill identity declared in
|
|
512
|
-
* `Quill.yaml`'s `quill:` section.
|
|
513
|
-
* - `supportedFormats` — output formats the backend produces, as
|
|
514
|
-
* lowercase strings.
|
|
515
|
-
* - Any additional unstructured keys declared under `quill:`.
|
|
502
|
+
* A blank form for a card of the given type — no document values supplied.
|
|
516
503
|
*
|
|
517
|
-
*
|
|
518
|
-
*
|
|
504
|
+
* Returns `null` if `cardType` is not declared in this quill's schema.
|
|
505
|
+
* Otherwise returns a plain JS object shaped like a single entry in
|
|
506
|
+
* [`Form::cards`].
|
|
519
507
|
*
|
|
520
|
-
*
|
|
521
|
-
*
|
|
508
|
+
* [`Form::cards`]: quillmark::form::Form::cards
|
|
509
|
+
* @param {string} card_type
|
|
522
510
|
* @returns {any}
|
|
523
511
|
*/
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
512
|
+
blankCard(card_type) {
|
|
513
|
+
try {
|
|
514
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
515
|
+
const ptr0 = passStringToWasm0(card_type, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
516
|
+
const len0 = WASM_VECTOR_LEN;
|
|
517
|
+
wasm.quill_blankCard(retptr, this.__wbg_ptr, ptr0, len0);
|
|
518
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
519
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
520
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
521
|
+
if (r2) {
|
|
522
|
+
throw takeObject(r1);
|
|
523
|
+
}
|
|
524
|
+
return takeObject(r0);
|
|
525
|
+
} finally {
|
|
526
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
527
|
+
}
|
|
527
528
|
}
|
|
528
529
|
/**
|
|
529
|
-
*
|
|
530
|
-
*
|
|
531
|
-
*
|
|
530
|
+
* A blank form for the main card — no document values supplied.
|
|
531
|
+
*
|
|
532
|
+
* Returns a plain JS object with the same shape as one entry in
|
|
533
|
+
* [`Form::main`]. Every declared field's `source` is `"default"` (when
|
|
534
|
+
* the schema declares a default) or `"missing"`.
|
|
535
|
+
*
|
|
536
|
+
* [`Form::main`]: quillmark::form::Form::main
|
|
537
|
+
* @returns {any}
|
|
532
538
|
*/
|
|
533
|
-
|
|
539
|
+
blankMain() {
|
|
534
540
|
try {
|
|
535
541
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
536
|
-
|
|
537
|
-
wasm.quill_open(retptr, this.__wbg_ptr, doc.__wbg_ptr);
|
|
542
|
+
wasm.quill_blankMain(retptr, this.__wbg_ptr);
|
|
538
543
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
539
544
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
540
545
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
541
546
|
if (r2) {
|
|
542
547
|
throw takeObject(r1);
|
|
543
548
|
}
|
|
544
|
-
return
|
|
549
|
+
return takeObject(r0);
|
|
545
550
|
} finally {
|
|
546
551
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
547
552
|
}
|
|
548
553
|
}
|
|
549
554
|
/**
|
|
550
|
-
*
|
|
555
|
+
* The schema-aware form view of `doc`.
|
|
551
556
|
*
|
|
552
557
|
* Returns a plain JS object (not a class) that is immediately
|
|
553
|
-
* `JSON.stringify`-able. The shape mirrors [`
|
|
558
|
+
* `JSON.stringify`-able. The shape mirrors [`Form`]:
|
|
554
559
|
*
|
|
555
560
|
* ```json
|
|
556
561
|
* {
|
|
@@ -561,18 +566,17 @@ export class Quill {
|
|
|
561
566
|
* ```
|
|
562
567
|
*
|
|
563
568
|
* **Snapshot semantics.** This is a read-only snapshot of the document
|
|
564
|
-
* at call time. Subsequent edits to `doc` require calling `
|
|
565
|
-
* again.
|
|
569
|
+
* at call time. Subsequent edits to `doc` require calling `form` again.
|
|
566
570
|
*
|
|
567
|
-
* [`
|
|
571
|
+
* [`Form`]: quillmark::form::Form
|
|
568
572
|
* @param {Document} doc
|
|
569
573
|
* @returns {any}
|
|
570
574
|
*/
|
|
571
|
-
|
|
575
|
+
form(doc) {
|
|
572
576
|
try {
|
|
573
577
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
574
578
|
_assertClass(doc, Document);
|
|
575
|
-
wasm.
|
|
579
|
+
wasm.quill_form(retptr, this.__wbg_ptr, doc.__wbg_ptr);
|
|
576
580
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
577
581
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
578
582
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -584,6 +588,54 @@ export class Quill {
|
|
|
584
588
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
585
589
|
}
|
|
586
590
|
}
|
|
591
|
+
/**
|
|
592
|
+
* Read-only snapshot of the loaded quill's engine info and declared schema.
|
|
593
|
+
*
|
|
594
|
+
* Returns a plain JS object with:
|
|
595
|
+
* - `schema` — the quill's public schema contract, identical to
|
|
596
|
+
* `QuillConfig::public_schema()`. Top-level keys: `name`, `main`,
|
|
597
|
+
* optional `card_types` (map keyed by card name, omitted when empty),
|
|
598
|
+
* optional `example`. `main` and each card under `card_types` share
|
|
599
|
+
* the same shape: `fields` (map keyed by field name), optional
|
|
600
|
+
* `title`, `description`, `ui`.
|
|
601
|
+
* - `backend`, `version`, `author` — quill identity declared in
|
|
602
|
+
* `Quill.yaml`'s `quill:` section.
|
|
603
|
+
* - `supportedFormats` — output formats the backend produces, as
|
|
604
|
+
* lowercase strings.
|
|
605
|
+
* - Any additional unstructured keys declared under `quill:`.
|
|
606
|
+
*
|
|
607
|
+
* Consumers that need validation run their own validator against
|
|
608
|
+
* `metadata.schema`.
|
|
609
|
+
*
|
|
610
|
+
* Equivalent by value for the lifetime of the handle; the quill is
|
|
611
|
+
* immutable once constructed.
|
|
612
|
+
* @returns {any}
|
|
613
|
+
*/
|
|
614
|
+
get metadata() {
|
|
615
|
+
const ret = wasm.quill_metadata(this.__wbg_ptr);
|
|
616
|
+
return takeObject(ret);
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
* Open an iterative render session for page-selective rendering.
|
|
620
|
+
* @param {Document} doc
|
|
621
|
+
* @returns {RenderSession}
|
|
622
|
+
*/
|
|
623
|
+
open(doc) {
|
|
624
|
+
try {
|
|
625
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
626
|
+
_assertClass(doc, Document);
|
|
627
|
+
wasm.quill_open(retptr, this.__wbg_ptr, doc.__wbg_ptr);
|
|
628
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
629
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
630
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
631
|
+
if (r2) {
|
|
632
|
+
throw takeObject(r1);
|
|
633
|
+
}
|
|
634
|
+
return RenderSession.__wrap(r0);
|
|
635
|
+
} finally {
|
|
636
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
637
|
+
}
|
|
638
|
+
}
|
|
587
639
|
/**
|
|
588
640
|
* Render a document to final artifacts.
|
|
589
641
|
* @param {Document} doc
|
package/node-esm/wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -27,9 +27,11 @@ export const document_updateCardField: (a: number, b: number, c: number, d: numb
|
|
|
27
27
|
export const document_warnings: (a: number) => number;
|
|
28
28
|
export const init: () => void;
|
|
29
29
|
export const quill_backendId: (a: number, b: number) => void;
|
|
30
|
+
export const quill_blankCard: (a: number, b: number, c: number, d: number) => void;
|
|
31
|
+
export const quill_blankMain: (a: number, b: number) => void;
|
|
32
|
+
export const quill_form: (a: number, b: number, c: number) => void;
|
|
30
33
|
export const quill_metadata: (a: number) => number;
|
|
31
34
|
export const quill_open: (a: number, b: number, c: number) => void;
|
|
32
|
-
export const quill_projectForm: (a: number, b: number, c: number) => void;
|
|
33
35
|
export const quill_render: (a: number, b: number, c: number, d: number) => void;
|
|
34
36
|
export const quillmark_new: () => number;
|
|
35
37
|
export const quillmark_quill: (a: number, b: number, c: number) => void;
|