@quillmark/wasm 0.60.0 → 0.62.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 +24 -13
- package/bundler/wasm_bg.js +48 -13
- package/bundler/wasm_bg.wasm +0 -0
- package/bundler/wasm_bg.wasm.d.ts +1 -0
- package/node-esm/wasm.d.ts +24 -13
- package/node-esm/wasm.js +48 -13
- package/node-esm/wasm_bg.wasm +0 -0
- package/node-esm/wasm_bg.wasm.d.ts +1 -0
- package/package.json +1 -1
package/bundler/wasm.d.ts
CHANGED
|
@@ -129,6 +129,15 @@ export class Document {
|
|
|
129
129
|
* Mutators never modify `warnings`.
|
|
130
130
|
*/
|
|
131
131
|
removeCard(index: number): Card | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* Remove a frontmatter field on the card at `index`, returning the
|
|
134
|
+
* removed value or `undefined` if the field was absent.
|
|
135
|
+
*
|
|
136
|
+
* Throws if `index` is out of range.
|
|
137
|
+
*
|
|
138
|
+
* Mutators never modify `warnings`.
|
|
139
|
+
*/
|
|
140
|
+
removeCardField(index: number, name: string): any;
|
|
132
141
|
/**
|
|
133
142
|
* Remove a frontmatter field on the main card, returning the removed value or `undefined`.
|
|
134
143
|
*
|
|
@@ -264,21 +273,23 @@ export class Quill {
|
|
|
264
273
|
*/
|
|
265
274
|
readonly backendId: string;
|
|
266
275
|
/**
|
|
267
|
-
* Read-only snapshot of the loaded
|
|
268
|
-
*
|
|
269
|
-
* Returns a plain JS object with
|
|
270
|
-
*
|
|
271
|
-
*
|
|
272
|
-
*
|
|
273
|
-
* `
|
|
274
|
-
*
|
|
275
|
-
*
|
|
276
|
-
* `
|
|
277
|
-
*
|
|
278
|
-
*
|
|
276
|
+
* Read-only snapshot of the loaded quill's engine info and declared schema.
|
|
277
|
+
*
|
|
278
|
+
* Returns a plain JS object with:
|
|
279
|
+
* - `schema` — the quill's public schema contract, identical to
|
|
280
|
+
* `QuillConfig::public_schema()`. Top-level keys: `name`, `main`,
|
|
281
|
+
* optional `card_types` (map keyed by card name, omitted when empty),
|
|
282
|
+
* optional `example`. `main` and each card under `card_types` share
|
|
283
|
+
* the same shape: `fields` (map keyed by field name), optional
|
|
284
|
+
* `title`, `description`, `ui`.
|
|
285
|
+
* - `backend`, `version`, `author` — quill identity declared in
|
|
286
|
+
* `Quill.yaml`'s `quill:` section.
|
|
287
|
+
* - `supportedFormats` — output formats the backend produces, as
|
|
288
|
+
* lowercase strings.
|
|
289
|
+
* - Any additional unstructured keys declared under `quill:`.
|
|
279
290
|
*
|
|
280
291
|
* Consumers that need validation run their own validator against
|
|
281
|
-
*
|
|
292
|
+
* `metadata.schema`.
|
|
282
293
|
*
|
|
283
294
|
* Equivalent by value for the lifetime of the handle; the quill is
|
|
284
295
|
* immutable once constructed.
|
package/bundler/wasm_bg.js
CHANGED
|
@@ -189,6 +189,34 @@ export class Document {
|
|
|
189
189
|
const ret = wasm.document_removeCard(this.__wbg_ptr, index);
|
|
190
190
|
return takeObject(ret);
|
|
191
191
|
}
|
|
192
|
+
/**
|
|
193
|
+
* Remove a frontmatter field on the card at `index`, returning the
|
|
194
|
+
* removed value or `undefined` if the field was absent.
|
|
195
|
+
*
|
|
196
|
+
* Throws if `index` is out of range.
|
|
197
|
+
*
|
|
198
|
+
* Mutators never modify `warnings`.
|
|
199
|
+
* @param {number} index
|
|
200
|
+
* @param {string} name
|
|
201
|
+
* @returns {any}
|
|
202
|
+
*/
|
|
203
|
+
removeCardField(index, name) {
|
|
204
|
+
try {
|
|
205
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
206
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
207
|
+
const len0 = WASM_VECTOR_LEN;
|
|
208
|
+
wasm.document_removeCardField(retptr, this.__wbg_ptr, index, ptr0, len0);
|
|
209
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
210
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
211
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
212
|
+
if (r2) {
|
|
213
|
+
throw takeObject(r1);
|
|
214
|
+
}
|
|
215
|
+
return takeObject(r0);
|
|
216
|
+
} finally {
|
|
217
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
192
220
|
/**
|
|
193
221
|
* Remove a frontmatter field on the main card, returning the removed value or `undefined`.
|
|
194
222
|
*
|
|
@@ -420,21 +448,23 @@ export class Quill {
|
|
|
420
448
|
}
|
|
421
449
|
}
|
|
422
450
|
/**
|
|
423
|
-
* Read-only snapshot of the loaded
|
|
451
|
+
* Read-only snapshot of the loaded quill's engine info and declared schema.
|
|
424
452
|
*
|
|
425
|
-
* Returns a plain JS object with
|
|
426
|
-
*
|
|
427
|
-
*
|
|
428
|
-
*
|
|
429
|
-
* `
|
|
430
|
-
*
|
|
431
|
-
*
|
|
432
|
-
* `
|
|
433
|
-
*
|
|
434
|
-
*
|
|
453
|
+
* Returns a plain JS object with:
|
|
454
|
+
* - `schema` — the quill's public schema contract, identical to
|
|
455
|
+
* `QuillConfig::public_schema()`. Top-level keys: `name`, `main`,
|
|
456
|
+
* optional `card_types` (map keyed by card name, omitted when empty),
|
|
457
|
+
* optional `example`. `main` and each card under `card_types` share
|
|
458
|
+
* the same shape: `fields` (map keyed by field name), optional
|
|
459
|
+
* `title`, `description`, `ui`.
|
|
460
|
+
* - `backend`, `version`, `author` — quill identity declared in
|
|
461
|
+
* `Quill.yaml`'s `quill:` section.
|
|
462
|
+
* - `supportedFormats` — output formats the backend produces, as
|
|
463
|
+
* lowercase strings.
|
|
464
|
+
* - Any additional unstructured keys declared under `quill:`.
|
|
435
465
|
*
|
|
436
466
|
* Consumers that need validation run their own validator against
|
|
437
|
-
*
|
|
467
|
+
* `metadata.schema`.
|
|
438
468
|
*
|
|
439
469
|
* Equivalent by value for the lifetime of the handle; the quill is
|
|
440
470
|
* immutable once constructed.
|
|
@@ -934,11 +964,16 @@ export function __wbindgen_cast_0000000000000002(arg0) {
|
|
|
934
964
|
return addHeapObject(ret);
|
|
935
965
|
}
|
|
936
966
|
export function __wbindgen_cast_0000000000000003(arg0, arg1) {
|
|
967
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
968
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
969
|
+
return addHeapObject(ret);
|
|
970
|
+
}
|
|
971
|
+
export function __wbindgen_cast_0000000000000004(arg0, arg1) {
|
|
937
972
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
938
973
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
939
974
|
return addHeapObject(ret);
|
|
940
975
|
}
|
|
941
|
-
export function
|
|
976
|
+
export function __wbindgen_cast_0000000000000005(arg0) {
|
|
942
977
|
// Cast intrinsic for `U64 -> Externref`.
|
|
943
978
|
const ret = BigInt.asUintN(64, arg0);
|
|
944
979
|
return addHeapObject(ret);
|
package/bundler/wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -14,6 +14,7 @@ export const document_moveCard: (a: number, b: number, c: number, d: number) =>
|
|
|
14
14
|
export const document_pushCard: (a: number, b: number, c: number) => void;
|
|
15
15
|
export const document_quillRef: (a: number, b: number) => void;
|
|
16
16
|
export const document_removeCard: (a: number, b: number) => number;
|
|
17
|
+
export const document_removeCardField: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
17
18
|
export const document_removeField: (a: number, b: number, c: number) => number;
|
|
18
19
|
export const document_replaceBody: (a: number, b: number, c: number) => void;
|
|
19
20
|
export const document_setField: (a: number, b: number, c: number, d: number, e: number) => void;
|
package/node-esm/wasm.d.ts
CHANGED
|
@@ -129,6 +129,15 @@ export class Document {
|
|
|
129
129
|
* Mutators never modify `warnings`.
|
|
130
130
|
*/
|
|
131
131
|
removeCard(index: number): Card | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* Remove a frontmatter field on the card at `index`, returning the
|
|
134
|
+
* removed value or `undefined` if the field was absent.
|
|
135
|
+
*
|
|
136
|
+
* Throws if `index` is out of range.
|
|
137
|
+
*
|
|
138
|
+
* Mutators never modify `warnings`.
|
|
139
|
+
*/
|
|
140
|
+
removeCardField(index: number, name: string): any;
|
|
132
141
|
/**
|
|
133
142
|
* Remove a frontmatter field on the main card, returning the removed value or `undefined`.
|
|
134
143
|
*
|
|
@@ -264,21 +273,23 @@ export class Quill {
|
|
|
264
273
|
*/
|
|
265
274
|
readonly backendId: string;
|
|
266
275
|
/**
|
|
267
|
-
* Read-only snapshot of the loaded
|
|
268
|
-
*
|
|
269
|
-
* Returns a plain JS object with
|
|
270
|
-
*
|
|
271
|
-
*
|
|
272
|
-
*
|
|
273
|
-
* `
|
|
274
|
-
*
|
|
275
|
-
*
|
|
276
|
-
* `
|
|
277
|
-
*
|
|
278
|
-
*
|
|
276
|
+
* Read-only snapshot of the loaded quill's engine info and declared schema.
|
|
277
|
+
*
|
|
278
|
+
* Returns a plain JS object with:
|
|
279
|
+
* - `schema` — the quill's public schema contract, identical to
|
|
280
|
+
* `QuillConfig::public_schema()`. Top-level keys: `name`, `main`,
|
|
281
|
+
* optional `card_types` (map keyed by card name, omitted when empty),
|
|
282
|
+
* optional `example`. `main` and each card under `card_types` share
|
|
283
|
+
* the same shape: `fields` (map keyed by field name), optional
|
|
284
|
+
* `title`, `description`, `ui`.
|
|
285
|
+
* - `backend`, `version`, `author` — quill identity declared in
|
|
286
|
+
* `Quill.yaml`'s `quill:` section.
|
|
287
|
+
* - `supportedFormats` — output formats the backend produces, as
|
|
288
|
+
* lowercase strings.
|
|
289
|
+
* - Any additional unstructured keys declared under `quill:`.
|
|
279
290
|
*
|
|
280
291
|
* Consumers that need validation run their own validator against
|
|
281
|
-
*
|
|
292
|
+
* `metadata.schema`.
|
|
282
293
|
*
|
|
283
294
|
* Equivalent by value for the lifetime of the handle; the quill is
|
|
284
295
|
* immutable once constructed.
|
package/node-esm/wasm.js
CHANGED
|
@@ -193,6 +193,34 @@ export class Document {
|
|
|
193
193
|
const ret = wasm.document_removeCard(this.__wbg_ptr, index);
|
|
194
194
|
return takeObject(ret);
|
|
195
195
|
}
|
|
196
|
+
/**
|
|
197
|
+
* Remove a frontmatter field on the card at `index`, returning the
|
|
198
|
+
* removed value or `undefined` if the field was absent.
|
|
199
|
+
*
|
|
200
|
+
* Throws if `index` is out of range.
|
|
201
|
+
*
|
|
202
|
+
* Mutators never modify `warnings`.
|
|
203
|
+
* @param {number} index
|
|
204
|
+
* @param {string} name
|
|
205
|
+
* @returns {any}
|
|
206
|
+
*/
|
|
207
|
+
removeCardField(index, name) {
|
|
208
|
+
try {
|
|
209
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
210
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
211
|
+
const len0 = WASM_VECTOR_LEN;
|
|
212
|
+
wasm.document_removeCardField(retptr, this.__wbg_ptr, index, ptr0, len0);
|
|
213
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
214
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
215
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
216
|
+
if (r2) {
|
|
217
|
+
throw takeObject(r1);
|
|
218
|
+
}
|
|
219
|
+
return takeObject(r0);
|
|
220
|
+
} finally {
|
|
221
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
196
224
|
/**
|
|
197
225
|
* Remove a frontmatter field on the main card, returning the removed value or `undefined`.
|
|
198
226
|
*
|
|
@@ -424,21 +452,23 @@ export class Quill {
|
|
|
424
452
|
}
|
|
425
453
|
}
|
|
426
454
|
/**
|
|
427
|
-
* Read-only snapshot of the loaded
|
|
455
|
+
* Read-only snapshot of the loaded quill's engine info and declared schema.
|
|
428
456
|
*
|
|
429
|
-
* Returns a plain JS object with
|
|
430
|
-
*
|
|
431
|
-
*
|
|
432
|
-
*
|
|
433
|
-
* `
|
|
434
|
-
*
|
|
435
|
-
*
|
|
436
|
-
* `
|
|
437
|
-
*
|
|
438
|
-
*
|
|
457
|
+
* Returns a plain JS object with:
|
|
458
|
+
* - `schema` — the quill's public schema contract, identical to
|
|
459
|
+
* `QuillConfig::public_schema()`. Top-level keys: `name`, `main`,
|
|
460
|
+
* optional `card_types` (map keyed by card name, omitted when empty),
|
|
461
|
+
* optional `example`. `main` and each card under `card_types` share
|
|
462
|
+
* the same shape: `fields` (map keyed by field name), optional
|
|
463
|
+
* `title`, `description`, `ui`.
|
|
464
|
+
* - `backend`, `version`, `author` — quill identity declared in
|
|
465
|
+
* `Quill.yaml`'s `quill:` section.
|
|
466
|
+
* - `supportedFormats` — output formats the backend produces, as
|
|
467
|
+
* lowercase strings.
|
|
468
|
+
* - Any additional unstructured keys declared under `quill:`.
|
|
439
469
|
*
|
|
440
470
|
* Consumers that need validation run their own validator against
|
|
441
|
-
*
|
|
471
|
+
* `metadata.schema`.
|
|
442
472
|
*
|
|
443
473
|
* Equivalent by value for the lifetime of the handle; the quill is
|
|
444
474
|
* immutable once constructed.
|
|
@@ -941,11 +971,16 @@ function __wbg_get_imports() {
|
|
|
941
971
|
return addHeapObject(ret);
|
|
942
972
|
},
|
|
943
973
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
974
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
975
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
976
|
+
return addHeapObject(ret);
|
|
977
|
+
},
|
|
978
|
+
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
944
979
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
945
980
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
946
981
|
return addHeapObject(ret);
|
|
947
982
|
},
|
|
948
|
-
|
|
983
|
+
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
949
984
|
// Cast intrinsic for `U64 -> Externref`.
|
|
950
985
|
const ret = BigInt.asUintN(64, arg0);
|
|
951
986
|
return addHeapObject(ret);
|
package/node-esm/wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -14,6 +14,7 @@ export const document_moveCard: (a: number, b: number, c: number, d: number) =>
|
|
|
14
14
|
export const document_pushCard: (a: number, b: number, c: number) => void;
|
|
15
15
|
export const document_quillRef: (a: number, b: number) => void;
|
|
16
16
|
export const document_removeCard: (a: number, b: number) => number;
|
|
17
|
+
export const document_removeCardField: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
17
18
|
export const document_removeField: (a: number, b: number, c: number) => number;
|
|
18
19
|
export const document_replaceBody: (a: number, b: number, c: number) => void;
|
|
19
20
|
export const document_setField: (a: number, b: number, c: number, d: number, e: number) => void;
|