@vector-im/matrix-wysiwyg 2.39.0 → 2.42.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/dist/lib/constants.d.ts +2 -0
- package/dist/lib/conversion.d.ts +4 -0
- package/dist/lib/types.d.ts +36 -0
- package/dist/lib/useComposerModel.d.ts +11 -0
- package/dist/lib/useListeners/types.d.ts +27 -0
- package/dist/lib/useTestCases/types.d.ts +5 -0
- package/dist/lib/useWysiwyg.d.ts +26 -0
- package/dist/matrix-wysiwyg.js +814 -990
- package/dist/matrix-wysiwyg.umd.cjs +4 -11
- package/node_modules/@vector-im/matrix-wysiwyg-wasm/package.json +7 -6
- package/node_modules/@vector-im/matrix-wysiwyg-wasm/pkg/wysiwyg.d.ts +56 -55
- package/node_modules/@vector-im/matrix-wysiwyg-wasm/pkg/wysiwyg_bg.cjs +303 -301
- package/node_modules/@vector-im/matrix-wysiwyg-wasm/pkg/wysiwyg_bg.js +303 -301
- package/node_modules/@vector-im/matrix-wysiwyg-wasm/pkg/wysiwyg_bg.wasm +0 -0
- package/node_modules/@vector-im/matrix-wysiwyg-wasm/pkg/wysiwyg_bg.wasm.d.ts +103 -103
- package/package.json +22 -21
- package/dist/index.d.ts +0 -97
|
@@ -110,6 +110,18 @@ function handleError(f, args) {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
function takeFromExternrefTable0(idx) {
|
|
114
|
+
const value = wasm.__wbindgen_export_1.get(idx);
|
|
115
|
+
wasm.__externref_table_dealloc(idx);
|
|
116
|
+
return value;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function _assertClass(instance, klass) {
|
|
120
|
+
if (!(instance instanceof klass)) {
|
|
121
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
113
125
|
export function start() {
|
|
114
126
|
wasm.start();
|
|
115
127
|
}
|
|
@@ -135,23 +147,12 @@ export function new_composer_model_from_html(html, start_utf16_codeunit, end_utf
|
|
|
135
147
|
return ComposerModel.__wrap(ret);
|
|
136
148
|
}
|
|
137
149
|
|
|
138
|
-
function
|
|
139
|
-
|
|
140
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
function takeFromExternrefTable0(idx) {
|
|
145
|
-
const value = wasm.__wbindgen_export_1.get(idx);
|
|
146
|
-
wasm.__externref_table_dealloc(idx);
|
|
147
|
-
return value;
|
|
148
|
-
}
|
|
149
|
-
function __wbg_adapter_124(arg0, arg1, arg2, arg3, arg4) {
|
|
150
|
-
wasm.closure102_externref_shim(arg0, arg1, arg2, arg3, arg4);
|
|
150
|
+
function __wbg_adapter_124(arg0, arg1, arg2, arg3) {
|
|
151
|
+
wasm.closure84_externref_shim(arg0, arg1, arg2, arg3);
|
|
151
152
|
}
|
|
152
153
|
|
|
153
|
-
function
|
|
154
|
-
wasm.
|
|
154
|
+
function __wbg_adapter_131(arg0, arg1, arg2, arg3, arg4) {
|
|
155
|
+
wasm.closure78_externref_shim(arg0, arg1, arg2, arg3, arg4);
|
|
155
156
|
}
|
|
156
157
|
|
|
157
158
|
/**
|
|
@@ -208,13 +209,14 @@ export const HtmlSource = Object.freeze({
|
|
|
208
209
|
UnknownExternal: 2, "2": "UnknownExternal",
|
|
209
210
|
});
|
|
210
211
|
/**
|
|
211
|
-
* @enum {0 | 1 | 2 | 3}
|
|
212
|
+
* @enum {0 | 1 | 2 | 3 | 4}
|
|
212
213
|
*/
|
|
213
214
|
export const PatternKeyType = Object.freeze({
|
|
214
215
|
At: 0, "0": "At",
|
|
215
216
|
Hash: 1, "1": "Hash",
|
|
216
217
|
Slash: 2, "2": "Slash",
|
|
217
218
|
Custom: 3, "3": "Custom",
|
|
219
|
+
Colon: 4, "4": "Colon",
|
|
218
220
|
});
|
|
219
221
|
|
|
220
222
|
const __wbindgen_enum_SupportedType = ["text/html", "text/xml", "application/xml", "application/xhtml+xml", "image/svg+xml"];
|
|
@@ -245,118 +247,60 @@ export class ComposerModel {
|
|
|
245
247
|
wasm.__wbg_composermodel_free(ptr, 0);
|
|
246
248
|
}
|
|
247
249
|
/**
|
|
248
|
-
* @returns {
|
|
249
|
-
*/
|
|
250
|
-
static new() {
|
|
251
|
-
const ret = wasm.composermodel_new();
|
|
252
|
-
return ComposerModel.__wrap(ret);
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
* @param {string} text
|
|
256
|
-
* @returns {ComposerModel}
|
|
257
|
-
*/
|
|
258
|
-
static from_example_format(text) {
|
|
259
|
-
const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
260
|
-
const len0 = WASM_VECTOR_LEN;
|
|
261
|
-
const ret = wasm.composermodel_from_example_format(ptr0, len0);
|
|
262
|
-
return ComposerModel.__wrap(ret);
|
|
263
|
-
}
|
|
264
|
-
/**
|
|
265
|
-
* @returns {string}
|
|
250
|
+
* @returns {ComposerUpdate}
|
|
266
251
|
*/
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
try {
|
|
271
|
-
const ret = wasm.composermodel_to_example_format(this.__wbg_ptr);
|
|
272
|
-
deferred1_0 = ret[0];
|
|
273
|
-
deferred1_1 = ret[1];
|
|
274
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
275
|
-
} finally {
|
|
276
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
277
|
-
}
|
|
252
|
+
code_block() {
|
|
253
|
+
const ret = wasm.composermodel_code_block(this.__wbg_ptr);
|
|
254
|
+
return ComposerUpdate.__wrap(ret);
|
|
278
255
|
}
|
|
279
256
|
/**
|
|
280
|
-
* @returns {
|
|
257
|
+
* @returns {ComposerUpdate}
|
|
281
258
|
*/
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
try {
|
|
286
|
-
const ret = wasm.composermodel_get_content_as_html(this.__wbg_ptr);
|
|
287
|
-
deferred1_0 = ret[0];
|
|
288
|
-
deferred1_1 = ret[1];
|
|
289
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
290
|
-
} finally {
|
|
291
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
292
|
-
}
|
|
259
|
+
delete_word() {
|
|
260
|
+
const ret = wasm.composermodel_delete_word(this.__wbg_ptr);
|
|
261
|
+
return ComposerUpdate.__wrap(ret);
|
|
293
262
|
}
|
|
294
263
|
/**
|
|
295
|
-
* @returns {
|
|
264
|
+
* @returns {ComposerUpdate}
|
|
296
265
|
*/
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
try {
|
|
301
|
-
const ret = wasm.composermodel_get_content_as_message_html(this.__wbg_ptr);
|
|
302
|
-
deferred1_0 = ret[0];
|
|
303
|
-
deferred1_1 = ret[1];
|
|
304
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
305
|
-
} finally {
|
|
306
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
307
|
-
}
|
|
266
|
+
inline_code() {
|
|
267
|
+
const ret = wasm.composermodel_inline_code(this.__wbg_ptr);
|
|
268
|
+
return ComposerUpdate.__wrap(ret);
|
|
308
269
|
}
|
|
309
270
|
/**
|
|
310
|
-
* @returns {
|
|
271
|
+
* @returns {ComposerUpdate}
|
|
311
272
|
*/
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
try {
|
|
316
|
-
const ret = wasm.composermodel_get_content_as_markdown(this.__wbg_ptr);
|
|
317
|
-
deferred1_0 = ret[0];
|
|
318
|
-
deferred1_1 = ret[1];
|
|
319
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
320
|
-
} finally {
|
|
321
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
322
|
-
}
|
|
273
|
+
ordered_list() {
|
|
274
|
+
const ret = wasm.composermodel_ordered_list(this.__wbg_ptr);
|
|
275
|
+
return ComposerUpdate.__wrap(ret);
|
|
323
276
|
}
|
|
324
277
|
/**
|
|
325
|
-
* @returns {
|
|
278
|
+
* @returns {ComposerUpdate}
|
|
326
279
|
*/
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
try {
|
|
331
|
-
const ret = wasm.composermodel_get_content_as_message_markdown(this.__wbg_ptr);
|
|
332
|
-
deferred1_0 = ret[0];
|
|
333
|
-
deferred1_1 = ret[1];
|
|
334
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
335
|
-
} finally {
|
|
336
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
337
|
-
}
|
|
280
|
+
remove_links() {
|
|
281
|
+
const ret = wasm.composermodel_remove_links(this.__wbg_ptr);
|
|
282
|
+
return ComposerUpdate.__wrap(ret);
|
|
338
283
|
}
|
|
339
284
|
/**
|
|
340
|
-
* @
|
|
285
|
+
* @param {string} new_html
|
|
286
|
+
* @param {HtmlSource} external_source
|
|
287
|
+
* @returns {ComposerUpdate}
|
|
341
288
|
*/
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
deferred1_0 = ret[0];
|
|
348
|
-
deferred1_1 = ret[1];
|
|
349
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
350
|
-
} finally {
|
|
351
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
352
|
-
}
|
|
289
|
+
replace_html(new_html, external_source) {
|
|
290
|
+
const ptr0 = passStringToWasm0(new_html, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
291
|
+
const len0 = WASM_VECTOR_LEN;
|
|
292
|
+
const ret = wasm.composermodel_replace_html(this.__wbg_ptr, ptr0, len0, external_source);
|
|
293
|
+
return ComposerUpdate.__wrap(ret);
|
|
353
294
|
}
|
|
354
295
|
/**
|
|
355
|
-
* @
|
|
296
|
+
* @param {string} new_text
|
|
297
|
+
* @returns {ComposerUpdate}
|
|
356
298
|
*/
|
|
357
|
-
|
|
358
|
-
const
|
|
359
|
-
|
|
299
|
+
replace_text(new_text) {
|
|
300
|
+
const ptr0 = passStringToWasm0(new_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
301
|
+
const len0 = WASM_VECTOR_LEN;
|
|
302
|
+
const ret = wasm.composermodel_replace_text(this.__wbg_ptr, ptr0, len0);
|
|
303
|
+
return ComposerUpdate.__wrap(ret);
|
|
360
304
|
}
|
|
361
305
|
/**
|
|
362
306
|
* @returns {Map<any, any>}
|
|
@@ -365,185 +309,273 @@ export class ComposerModel {
|
|
|
365
309
|
const ret = wasm.composermodel_action_states(this.__wbg_ptr);
|
|
366
310
|
return ret;
|
|
367
311
|
}
|
|
368
|
-
/**
|
|
369
|
-
* @param {number} start_utf16_codeunit
|
|
370
|
-
* @param {number} end_utf16_codeunit
|
|
371
|
-
* @returns {ComposerUpdate}
|
|
372
|
-
*/
|
|
373
|
-
select(start_utf16_codeunit, end_utf16_codeunit) {
|
|
374
|
-
const ret = wasm.composermodel_select(this.__wbg_ptr, start_utf16_codeunit, end_utf16_codeunit);
|
|
375
|
-
return ComposerUpdate.__wrap(ret);
|
|
376
|
-
}
|
|
377
312
|
/**
|
|
378
313
|
* @returns {number}
|
|
379
314
|
*/
|
|
380
|
-
|
|
381
|
-
const ret = wasm.
|
|
315
|
+
selection_end() {
|
|
316
|
+
const ret = wasm.composermodel_selection_end(this.__wbg_ptr);
|
|
382
317
|
return ret >>> 0;
|
|
383
318
|
}
|
|
384
319
|
/**
|
|
385
|
-
* @returns {
|
|
320
|
+
* @returns {ComposerUpdate}
|
|
386
321
|
*/
|
|
387
|
-
|
|
388
|
-
const ret = wasm.
|
|
389
|
-
return ret
|
|
322
|
+
backspace_word() {
|
|
323
|
+
const ret = wasm.composermodel_backspace_word(this.__wbg_ptr);
|
|
324
|
+
return ComposerUpdate.__wrap(ret);
|
|
390
325
|
}
|
|
391
326
|
/**
|
|
392
|
-
*
|
|
327
|
+
* Creates a mention node and inserts it into the composer at the current selection
|
|
328
|
+
* @param {string} url
|
|
329
|
+
* @param {string} text
|
|
330
|
+
* @param {Map<any, any>} attributes
|
|
393
331
|
* @returns {ComposerUpdate}
|
|
394
332
|
*/
|
|
395
|
-
|
|
396
|
-
const ptr0 = passStringToWasm0(
|
|
333
|
+
insert_mention(url, text, attributes) {
|
|
334
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
397
335
|
const len0 = WASM_VECTOR_LEN;
|
|
398
|
-
const
|
|
336
|
+
const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
337
|
+
const len1 = WASM_VECTOR_LEN;
|
|
338
|
+
const ret = wasm.composermodel_insert_mention(this.__wbg_ptr, ptr0, len0, ptr1, len1, attributes);
|
|
399
339
|
return ComposerUpdate.__wrap(ret);
|
|
400
340
|
}
|
|
401
341
|
/**
|
|
402
|
-
* @param {string} new_html
|
|
403
|
-
* @param {HtmlSource} external_source
|
|
404
342
|
* @returns {ComposerUpdate}
|
|
405
343
|
*/
|
|
406
|
-
|
|
407
|
-
const
|
|
408
|
-
const len0 = WASM_VECTOR_LEN;
|
|
409
|
-
const ret = wasm.composermodel_replace_html(this.__wbg_ptr, ptr0, len0, external_source);
|
|
344
|
+
strike_through() {
|
|
345
|
+
const ret = wasm.composermodel_strike_through(this.__wbg_ptr);
|
|
410
346
|
return ComposerUpdate.__wrap(ret);
|
|
411
347
|
}
|
|
412
348
|
/**
|
|
413
|
-
* @param {string} new_text
|
|
414
|
-
* @param {SuggestionPattern} suggestion
|
|
415
|
-
* @param {boolean} append_space
|
|
416
349
|
* @returns {ComposerUpdate}
|
|
417
350
|
*/
|
|
418
|
-
|
|
419
|
-
const
|
|
420
|
-
const len0 = WASM_VECTOR_LEN;
|
|
421
|
-
_assertClass(suggestion, SuggestionPattern);
|
|
422
|
-
const ret = wasm.composermodel_replace_text_suggestion(this.__wbg_ptr, ptr0, len0, suggestion.__wbg_ptr, append_space);
|
|
351
|
+
unordered_list() {
|
|
352
|
+
const ret = wasm.composermodel_unordered_list(this.__wbg_ptr);
|
|
423
353
|
return ComposerUpdate.__wrap(ret);
|
|
424
354
|
}
|
|
425
355
|
/**
|
|
356
|
+
* @returns {LinkAction}
|
|
357
|
+
*/
|
|
358
|
+
get_link_action() {
|
|
359
|
+
const ret = wasm.composermodel_get_link_action(this.__wbg_ptr);
|
|
360
|
+
return LinkAction.__wrap(ret);
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* @returns {number}
|
|
364
|
+
*/
|
|
365
|
+
selection_start() {
|
|
366
|
+
const ret = wasm.composermodel_selection_start(this.__wbg_ptr);
|
|
367
|
+
return ret >>> 0;
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* @returns {string}
|
|
371
|
+
*/
|
|
372
|
+
to_example_format() {
|
|
373
|
+
let deferred1_0;
|
|
374
|
+
let deferred1_1;
|
|
375
|
+
try {
|
|
376
|
+
const ret = wasm.composermodel_to_example_format(this.__wbg_ptr);
|
|
377
|
+
deferred1_0 = ret[0];
|
|
378
|
+
deferred1_1 = ret[1];
|
|
379
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
380
|
+
} finally {
|
|
381
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* @param {string} url
|
|
426
386
|
* @param {string} text
|
|
387
|
+
* @param {Map<any, any>} attributes
|
|
427
388
|
* @returns {ComposerUpdate}
|
|
428
389
|
*/
|
|
429
|
-
|
|
430
|
-
const ptr0 = passStringToWasm0(
|
|
390
|
+
set_link_with_text(url, text, attributes) {
|
|
391
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
431
392
|
const len0 = WASM_VECTOR_LEN;
|
|
432
|
-
const
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
return ComposerUpdate.__wrap(ret[0]);
|
|
393
|
+
const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
394
|
+
const len1 = WASM_VECTOR_LEN;
|
|
395
|
+
const ret = wasm.composermodel_set_link_with_text(this.__wbg_ptr, ptr0, len0, ptr1, len1, attributes);
|
|
396
|
+
return ComposerUpdate.__wrap(ret);
|
|
437
397
|
}
|
|
438
398
|
/**
|
|
439
399
|
* @param {string} text
|
|
440
|
-
* @returns {
|
|
400
|
+
* @returns {ComposerModel}
|
|
441
401
|
*/
|
|
442
|
-
|
|
402
|
+
static from_example_format(text) {
|
|
443
403
|
const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
444
404
|
const len0 = WASM_VECTOR_LEN;
|
|
445
|
-
const ret = wasm.
|
|
446
|
-
|
|
447
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
448
|
-
}
|
|
449
|
-
return ComposerUpdate.__wrap(ret[0]);
|
|
405
|
+
const ret = wasm.composermodel_from_example_format(ptr0, len0);
|
|
406
|
+
return ComposerModel.__wrap(ret);
|
|
450
407
|
}
|
|
451
408
|
/**
|
|
452
|
-
* @returns {
|
|
409
|
+
* @returns {string}
|
|
453
410
|
*/
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
411
|
+
get_content_as_html() {
|
|
412
|
+
let deferred1_0;
|
|
413
|
+
let deferred1_1;
|
|
414
|
+
try {
|
|
415
|
+
const ret = wasm.composermodel_get_content_as_html(this.__wbg_ptr);
|
|
416
|
+
deferred1_0 = ret[0];
|
|
417
|
+
deferred1_1 = ret[1];
|
|
418
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
419
|
+
} finally {
|
|
420
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
421
|
+
}
|
|
457
422
|
}
|
|
458
423
|
/**
|
|
424
|
+
* @param {string} text
|
|
459
425
|
* @returns {ComposerUpdate}
|
|
460
426
|
*/
|
|
461
|
-
|
|
462
|
-
const
|
|
463
|
-
|
|
427
|
+
set_content_from_html(text) {
|
|
428
|
+
const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
429
|
+
const len0 = WASM_VECTOR_LEN;
|
|
430
|
+
const ret = wasm.composermodel_set_content_from_html(this.__wbg_ptr, ptr0, len0);
|
|
431
|
+
if (ret[2]) {
|
|
432
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
433
|
+
}
|
|
434
|
+
return ComposerUpdate.__wrap(ret[0]);
|
|
464
435
|
}
|
|
465
436
|
/**
|
|
437
|
+
* Creates an at-room mention node and inserts it into the composer at the current selection
|
|
438
|
+
* @param {Map<any, any>} attributes
|
|
466
439
|
* @returns {ComposerUpdate}
|
|
467
440
|
*/
|
|
468
|
-
|
|
469
|
-
const ret = wasm.
|
|
441
|
+
insert_at_room_mention(attributes) {
|
|
442
|
+
const ret = wasm.composermodel_insert_at_room_mention(this.__wbg_ptr, attributes);
|
|
470
443
|
return ComposerUpdate.__wrap(ret);
|
|
471
444
|
}
|
|
472
445
|
/**
|
|
473
|
-
* @returns {
|
|
446
|
+
* @returns {string}
|
|
474
447
|
*/
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
448
|
+
get_content_as_markdown() {
|
|
449
|
+
let deferred1_0;
|
|
450
|
+
let deferred1_1;
|
|
451
|
+
try {
|
|
452
|
+
const ret = wasm.composermodel_get_content_as_markdown(this.__wbg_ptr);
|
|
453
|
+
deferred1_0 = ret[0];
|
|
454
|
+
deferred1_1 = ret[1];
|
|
455
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
456
|
+
} finally {
|
|
457
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
458
|
+
}
|
|
478
459
|
}
|
|
479
460
|
/**
|
|
461
|
+
* @param {string} new_text
|
|
462
|
+
* @param {SuggestionPattern} suggestion
|
|
463
|
+
* @param {boolean} append_space
|
|
480
464
|
* @returns {ComposerUpdate}
|
|
481
465
|
*/
|
|
482
|
-
|
|
483
|
-
const
|
|
466
|
+
replace_text_suggestion(new_text, suggestion, append_space) {
|
|
467
|
+
const ptr0 = passStringToWasm0(new_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
468
|
+
const len0 = WASM_VECTOR_LEN;
|
|
469
|
+
_assertClass(suggestion, SuggestionPattern);
|
|
470
|
+
const ret = wasm.composermodel_replace_text_suggestion(this.__wbg_ptr, ptr0, len0, suggestion.__wbg_ptr, append_space);
|
|
484
471
|
return ComposerUpdate.__wrap(ret);
|
|
485
472
|
}
|
|
486
473
|
/**
|
|
487
|
-
* @returns {
|
|
474
|
+
* @returns {string}
|
|
488
475
|
*/
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
476
|
+
get_content_as_plain_text() {
|
|
477
|
+
let deferred1_0;
|
|
478
|
+
let deferred1_1;
|
|
479
|
+
try {
|
|
480
|
+
const ret = wasm.composermodel_get_content_as_plain_text(this.__wbg_ptr);
|
|
481
|
+
deferred1_0 = ret[0];
|
|
482
|
+
deferred1_1 = ret[1];
|
|
483
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
484
|
+
} finally {
|
|
485
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
486
|
+
}
|
|
492
487
|
}
|
|
493
488
|
/**
|
|
489
|
+
* @param {string} text
|
|
494
490
|
* @returns {ComposerUpdate}
|
|
495
491
|
*/
|
|
496
|
-
|
|
497
|
-
const
|
|
498
|
-
|
|
492
|
+
set_content_from_markdown(text) {
|
|
493
|
+
const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
494
|
+
const len0 = WASM_VECTOR_LEN;
|
|
495
|
+
const ret = wasm.composermodel_set_content_from_markdown(this.__wbg_ptr, ptr0, len0);
|
|
496
|
+
if (ret[2]) {
|
|
497
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
498
|
+
}
|
|
499
|
+
return ComposerUpdate.__wrap(ret[0]);
|
|
499
500
|
}
|
|
500
501
|
/**
|
|
501
|
-
* @returns {
|
|
502
|
+
* @returns {string}
|
|
502
503
|
*/
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
504
|
+
get_content_as_message_html() {
|
|
505
|
+
let deferred1_0;
|
|
506
|
+
let deferred1_1;
|
|
507
|
+
try {
|
|
508
|
+
const ret = wasm.composermodel_get_content_as_message_html(this.__wbg_ptr);
|
|
509
|
+
deferred1_0 = ret[0];
|
|
510
|
+
deferred1_1 = ret[1];
|
|
511
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
512
|
+
} finally {
|
|
513
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
514
|
+
}
|
|
506
515
|
}
|
|
507
516
|
/**
|
|
517
|
+
* Creates a mention node and inserts it into the composer, replacing the
|
|
518
|
+
* text content defined by the suggestion
|
|
519
|
+
* @param {string} url
|
|
520
|
+
* @param {string} text
|
|
521
|
+
* @param {SuggestionPattern} suggestion
|
|
522
|
+
* @param {Map<any, any>} attributes
|
|
508
523
|
* @returns {ComposerUpdate}
|
|
509
524
|
*/
|
|
510
|
-
|
|
511
|
-
const
|
|
525
|
+
insert_mention_at_suggestion(url, text, suggestion, attributes) {
|
|
526
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
527
|
+
const len0 = WASM_VECTOR_LEN;
|
|
528
|
+
const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
529
|
+
const len1 = WASM_VECTOR_LEN;
|
|
530
|
+
_assertClass(suggestion, SuggestionPattern);
|
|
531
|
+
const ret = wasm.composermodel_insert_mention_at_suggestion(this.__wbg_ptr, ptr0, len0, ptr1, len1, suggestion.__wbg_ptr, attributes);
|
|
512
532
|
return ComposerUpdate.__wrap(ret);
|
|
513
533
|
}
|
|
514
534
|
/**
|
|
515
|
-
* @
|
|
535
|
+
* @param {Array<any>} custom_suggestion_patterns
|
|
516
536
|
*/
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
return ComposerUpdate.__wrap(ret);
|
|
537
|
+
set_custom_suggestion_patterns(custom_suggestion_patterns) {
|
|
538
|
+
wasm.composermodel_set_custom_suggestion_patterns(this.__wbg_ptr, custom_suggestion_patterns);
|
|
520
539
|
}
|
|
521
540
|
/**
|
|
522
|
-
* @returns {
|
|
541
|
+
* @returns {string}
|
|
523
542
|
*/
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
543
|
+
get_content_as_message_markdown() {
|
|
544
|
+
let deferred1_0;
|
|
545
|
+
let deferred1_1;
|
|
546
|
+
try {
|
|
547
|
+
const ret = wasm.composermodel_get_content_as_message_markdown(this.__wbg_ptr);
|
|
548
|
+
deferred1_0 = ret[0];
|
|
549
|
+
deferred1_1 = ret[1];
|
|
550
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
551
|
+
} finally {
|
|
552
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
553
|
+
}
|
|
527
554
|
}
|
|
528
555
|
/**
|
|
556
|
+
* Creates an at-room mention node and inserts it into the composer, replacing the
|
|
557
|
+
* text content defined by the suggestion
|
|
558
|
+
* @param {SuggestionPattern} suggestion
|
|
559
|
+
* @param {Map<any, any>} attributes
|
|
529
560
|
* @returns {ComposerUpdate}
|
|
530
561
|
*/
|
|
531
|
-
|
|
532
|
-
|
|
562
|
+
insert_at_room_mention_at_suggestion(suggestion, attributes) {
|
|
563
|
+
_assertClass(suggestion, SuggestionPattern);
|
|
564
|
+
const ret = wasm.composermodel_insert_at_room_mention_at_suggestion(this.__wbg_ptr, suggestion.__wbg_ptr, attributes);
|
|
533
565
|
return ComposerUpdate.__wrap(ret);
|
|
534
566
|
}
|
|
535
567
|
/**
|
|
536
|
-
* @returns {
|
|
568
|
+
* @returns {ComposerModel}
|
|
537
569
|
*/
|
|
538
|
-
|
|
539
|
-
const ret = wasm.
|
|
540
|
-
return
|
|
570
|
+
static new() {
|
|
571
|
+
const ret = wasm.composermodel_new();
|
|
572
|
+
return ComposerModel.__wrap(ret);
|
|
541
573
|
}
|
|
542
574
|
/**
|
|
543
575
|
* @returns {ComposerUpdate}
|
|
544
576
|
*/
|
|
545
|
-
|
|
546
|
-
const ret = wasm.
|
|
577
|
+
bold() {
|
|
578
|
+
const ret = wasm.composermodel_bold(this.__wbg_ptr);
|
|
547
579
|
return ComposerUpdate.__wrap(ret);
|
|
548
580
|
}
|
|
549
581
|
/**
|
|
@@ -556,128 +588,98 @@ export class ComposerModel {
|
|
|
556
588
|
/**
|
|
557
589
|
* @returns {ComposerUpdate}
|
|
558
590
|
*/
|
|
559
|
-
|
|
560
|
-
const ret = wasm.
|
|
591
|
+
undo() {
|
|
592
|
+
const ret = wasm.composermodel_undo(this.__wbg_ptr);
|
|
561
593
|
return ComposerUpdate.__wrap(ret);
|
|
562
594
|
}
|
|
563
595
|
/**
|
|
564
596
|
* @returns {ComposerUpdate}
|
|
565
597
|
*/
|
|
566
|
-
|
|
567
|
-
const ret = wasm.
|
|
598
|
+
clear() {
|
|
599
|
+
const ret = wasm.composermodel_clear(this.__wbg_ptr);
|
|
568
600
|
return ComposerUpdate.__wrap(ret);
|
|
569
601
|
}
|
|
570
602
|
/**
|
|
571
603
|
* @returns {ComposerUpdate}
|
|
572
604
|
*/
|
|
573
|
-
|
|
574
|
-
const ret = wasm.
|
|
605
|
+
enter() {
|
|
606
|
+
const ret = wasm.composermodel_enter(this.__wbg_ptr);
|
|
575
607
|
return ComposerUpdate.__wrap(ret);
|
|
576
608
|
}
|
|
577
609
|
/**
|
|
578
610
|
* @returns {ComposerUpdate}
|
|
579
611
|
*/
|
|
580
|
-
|
|
581
|
-
const ret = wasm.
|
|
612
|
+
quote() {
|
|
613
|
+
const ret = wasm.composermodel_quote(this.__wbg_ptr);
|
|
582
614
|
return ComposerUpdate.__wrap(ret);
|
|
583
615
|
}
|
|
584
616
|
/**
|
|
585
|
-
* @returns {
|
|
617
|
+
* @returns {ComposerUpdate}
|
|
586
618
|
*/
|
|
587
|
-
|
|
588
|
-
const ret = wasm.
|
|
589
|
-
return
|
|
619
|
+
delete() {
|
|
620
|
+
const ret = wasm.composermodel_delete(this.__wbg_ptr);
|
|
621
|
+
return ComposerUpdate.__wrap(ret);
|
|
590
622
|
}
|
|
591
623
|
/**
|
|
592
|
-
* @param {string} url
|
|
593
|
-
* @param {Map<any, any>} attributes
|
|
594
624
|
* @returns {ComposerUpdate}
|
|
595
625
|
*/
|
|
596
|
-
|
|
597
|
-
const
|
|
598
|
-
const len0 = WASM_VECTOR_LEN;
|
|
599
|
-
const ret = wasm.composermodel_set_link(this.__wbg_ptr, ptr0, len0, attributes);
|
|
626
|
+
indent() {
|
|
627
|
+
const ret = wasm.composermodel_indent(this.__wbg_ptr);
|
|
600
628
|
return ComposerUpdate.__wrap(ret);
|
|
601
629
|
}
|
|
602
630
|
/**
|
|
603
|
-
* @param {string} url
|
|
604
|
-
* @param {string} text
|
|
605
|
-
* @param {Map<any, any>} attributes
|
|
606
631
|
* @returns {ComposerUpdate}
|
|
607
632
|
*/
|
|
608
|
-
|
|
609
|
-
const
|
|
610
|
-
const len0 = WASM_VECTOR_LEN;
|
|
611
|
-
const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
612
|
-
const len1 = WASM_VECTOR_LEN;
|
|
613
|
-
const ret = wasm.composermodel_set_link_with_text(this.__wbg_ptr, ptr0, len0, ptr1, len1, attributes);
|
|
633
|
+
italic() {
|
|
634
|
+
const ret = wasm.composermodel_italic(this.__wbg_ptr);
|
|
614
635
|
return ComposerUpdate.__wrap(ret);
|
|
615
636
|
}
|
|
616
637
|
/**
|
|
617
|
-
* @param {
|
|
638
|
+
* @param {number} start_utf16_codeunit
|
|
639
|
+
* @param {number} end_utf16_codeunit
|
|
640
|
+
* @returns {ComposerUpdate}
|
|
618
641
|
*/
|
|
619
|
-
|
|
620
|
-
wasm.
|
|
642
|
+
select(start_utf16_codeunit, end_utf16_codeunit) {
|
|
643
|
+
const ret = wasm.composermodel_select(this.__wbg_ptr, start_utf16_codeunit, end_utf16_codeunit);
|
|
644
|
+
return ComposerUpdate.__wrap(ret);
|
|
621
645
|
}
|
|
622
646
|
/**
|
|
623
|
-
*
|
|
624
|
-
* @param {Map<any, any>} attributes
|
|
625
|
-
* @returns {ComposerUpdate}
|
|
647
|
+
* @returns {DomHandle}
|
|
626
648
|
*/
|
|
627
|
-
|
|
628
|
-
const ret = wasm.
|
|
629
|
-
return
|
|
649
|
+
document() {
|
|
650
|
+
const ret = wasm.composermodel_document(this.__wbg_ptr);
|
|
651
|
+
return DomHandle.__wrap(ret);
|
|
630
652
|
}
|
|
631
653
|
/**
|
|
632
|
-
* Creates a mention node and inserts it into the composer at the current selection
|
|
633
654
|
* @param {string} url
|
|
634
|
-
* @param {string} text
|
|
635
655
|
* @param {Map<any, any>} attributes
|
|
636
656
|
* @returns {ComposerUpdate}
|
|
637
657
|
*/
|
|
638
|
-
|
|
658
|
+
set_link(url, attributes) {
|
|
639
659
|
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
640
660
|
const len0 = WASM_VECTOR_LEN;
|
|
641
|
-
const
|
|
642
|
-
const len1 = WASM_VECTOR_LEN;
|
|
643
|
-
const ret = wasm.composermodel_insert_mention(this.__wbg_ptr, ptr0, len0, ptr1, len1, attributes);
|
|
661
|
+
const ret = wasm.composermodel_set_link(this.__wbg_ptr, ptr0, len0, attributes);
|
|
644
662
|
return ComposerUpdate.__wrap(ret);
|
|
645
663
|
}
|
|
646
664
|
/**
|
|
647
|
-
* Creates an at-room mention node and inserts it into the composer, replacing the
|
|
648
|
-
* text content defined by the suggestion
|
|
649
|
-
* @param {SuggestionPattern} suggestion
|
|
650
|
-
* @param {Map<any, any>} attributes
|
|
651
665
|
* @returns {ComposerUpdate}
|
|
652
666
|
*/
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
const ret = wasm.composermodel_insert_at_room_mention_at_suggestion(this.__wbg_ptr, suggestion.__wbg_ptr, attributes);
|
|
667
|
+
unindent() {
|
|
668
|
+
const ret = wasm.composermodel_unindent(this.__wbg_ptr);
|
|
656
669
|
return ComposerUpdate.__wrap(ret);
|
|
657
670
|
}
|
|
658
671
|
/**
|
|
659
|
-
* Creates a mention node and inserts it into the composer, replacing the
|
|
660
|
-
* text content defined by the suggestion
|
|
661
|
-
* @param {string} url
|
|
662
|
-
* @param {string} text
|
|
663
|
-
* @param {SuggestionPattern} suggestion
|
|
664
|
-
* @param {Map<any, any>} attributes
|
|
665
672
|
* @returns {ComposerUpdate}
|
|
666
673
|
*/
|
|
667
|
-
|
|
668
|
-
const
|
|
669
|
-
const len0 = WASM_VECTOR_LEN;
|
|
670
|
-
const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
671
|
-
const len1 = WASM_VECTOR_LEN;
|
|
672
|
-
_assertClass(suggestion, SuggestionPattern);
|
|
673
|
-
const ret = wasm.composermodel_insert_mention_at_suggestion(this.__wbg_ptr, ptr0, len0, ptr1, len1, suggestion.__wbg_ptr, attributes);
|
|
674
|
+
backspace() {
|
|
675
|
+
const ret = wasm.composermodel_backspace(this.__wbg_ptr);
|
|
674
676
|
return ComposerUpdate.__wrap(ret);
|
|
675
677
|
}
|
|
676
678
|
/**
|
|
677
679
|
* @returns {ComposerUpdate}
|
|
678
680
|
*/
|
|
679
|
-
|
|
680
|
-
const ret = wasm.
|
|
681
|
+
underline() {
|
|
682
|
+
const ret = wasm.composermodel_underline(this.__wbg_ptr);
|
|
681
683
|
return ComposerUpdate.__wrap(ret);
|
|
682
684
|
}
|
|
683
685
|
}
|
|
@@ -707,13 +709,6 @@ export class ComposerUpdate {
|
|
|
707
709
|
const ptr = this.__destroy_into_raw();
|
|
708
710
|
wasm.__wbg_composerupdate_free(ptr, 0);
|
|
709
711
|
}
|
|
710
|
-
/**
|
|
711
|
-
* @returns {TextUpdate}
|
|
712
|
-
*/
|
|
713
|
-
text_update() {
|
|
714
|
-
const ret = wasm.composerupdate_text_update(this.__wbg_ptr);
|
|
715
|
-
return TextUpdate.__wrap(ret);
|
|
716
|
-
}
|
|
717
712
|
/**
|
|
718
713
|
* @returns {MenuState}
|
|
719
714
|
*/
|
|
@@ -728,6 +723,13 @@ export class ComposerUpdate {
|
|
|
728
723
|
const ret = wasm.composerupdate_menu_action(this.__wbg_ptr);
|
|
729
724
|
return MenuAction.__wrap(ret);
|
|
730
725
|
}
|
|
726
|
+
/**
|
|
727
|
+
* @returns {TextUpdate}
|
|
728
|
+
*/
|
|
729
|
+
text_update() {
|
|
730
|
+
const ret = wasm.composerupdate_text_update(this.__wbg_ptr);
|
|
731
|
+
return TextUpdate.__wrap(ret);
|
|
732
|
+
}
|
|
731
733
|
}
|
|
732
734
|
|
|
733
735
|
const CreateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -876,20 +878,19 @@ export class DomHandle {
|
|
|
876
878
|
wasm.__wbg_domhandle_free(ptr, 0);
|
|
877
879
|
}
|
|
878
880
|
/**
|
|
879
|
-
* Returns
|
|
880
|
-
* node we refer to.
|
|
881
|
+
* Returns our tagname, or "-text-"/"-zwsp-" if we are a text/zwsp node.
|
|
881
882
|
* Panics if we are not a valid reference (because the model has changed
|
|
882
883
|
* since we were created, or because you passed in a different model
|
|
883
884
|
* from the one that created us.)
|
|
884
885
|
* @param {ComposerModel} model
|
|
885
886
|
* @returns {string}
|
|
886
887
|
*/
|
|
887
|
-
|
|
888
|
+
tag(model) {
|
|
888
889
|
let deferred1_0;
|
|
889
890
|
let deferred1_1;
|
|
890
891
|
try {
|
|
891
892
|
_assertClass(model, ComposerModel);
|
|
892
|
-
const ret = wasm.
|
|
893
|
+
const ret = wasm.domhandle_tag(this.__wbg_ptr, model.__wbg_ptr);
|
|
893
894
|
deferred1_0 = ret[0];
|
|
894
895
|
deferred1_1 = ret[1];
|
|
895
896
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -897,20 +898,6 @@ export class DomHandle {
|
|
|
897
898
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
898
899
|
}
|
|
899
900
|
}
|
|
900
|
-
/**
|
|
901
|
-
* Returns a list of our children nodes, or an empty list if we refer
|
|
902
|
-
* to a text or line break node.
|
|
903
|
-
* Panics if we are not a valid reference (because the model has changed
|
|
904
|
-
* since we were created, or because you passed in a different model
|
|
905
|
-
* from the one that created us.)
|
|
906
|
-
* @param {ComposerModel} model
|
|
907
|
-
* @returns {DomChildren}
|
|
908
|
-
*/
|
|
909
|
-
children(model) {
|
|
910
|
-
_assertClass(model, ComposerModel);
|
|
911
|
-
const ret = wasm.domhandle_children(this.__wbg_ptr, model.__wbg_ptr);
|
|
912
|
-
return DomChildren.__wrap(ret);
|
|
913
|
-
}
|
|
914
901
|
/**
|
|
915
902
|
* Returns the text of this node, or an empty string if this is a
|
|
916
903
|
* container or line break.
|
|
@@ -934,19 +921,34 @@ export class DomHandle {
|
|
|
934
921
|
}
|
|
935
922
|
}
|
|
936
923
|
/**
|
|
937
|
-
* Returns our
|
|
924
|
+
* Returns a list of our children nodes, or an empty list if we refer
|
|
925
|
+
* to a text or line break node.
|
|
926
|
+
* Panics if we are not a valid reference (because the model has changed
|
|
927
|
+
* since we were created, or because you passed in a different model
|
|
928
|
+
* from the one that created us.)
|
|
929
|
+
* @param {ComposerModel} model
|
|
930
|
+
* @returns {DomChildren}
|
|
931
|
+
*/
|
|
932
|
+
children(model) {
|
|
933
|
+
_assertClass(model, ComposerModel);
|
|
934
|
+
const ret = wasm.domhandle_children(this.__wbg_ptr, model.__wbg_ptr);
|
|
935
|
+
return DomChildren.__wrap(ret);
|
|
936
|
+
}
|
|
937
|
+
/**
|
|
938
|
+
* Returns "container", "line_break", "text" or "zwsp" depending on the type of
|
|
939
|
+
* node we refer to.
|
|
938
940
|
* Panics if we are not a valid reference (because the model has changed
|
|
939
941
|
* since we were created, or because you passed in a different model
|
|
940
942
|
* from the one that created us.)
|
|
941
943
|
* @param {ComposerModel} model
|
|
942
944
|
* @returns {string}
|
|
943
945
|
*/
|
|
944
|
-
|
|
946
|
+
node_type(model) {
|
|
945
947
|
let deferred1_0;
|
|
946
948
|
let deferred1_1;
|
|
947
949
|
try {
|
|
948
950
|
_assertClass(model, ComposerModel);
|
|
949
|
-
const ret = wasm.
|
|
951
|
+
const ret = wasm.domhandle_node_type(this.__wbg_ptr, model.__wbg_ptr);
|
|
950
952
|
deferred1_0 = ret[0];
|
|
951
953
|
deferred1_1 = ret[1];
|
|
952
954
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -1157,6 +1159,13 @@ export class MenuAction {
|
|
|
1157
1159
|
const ptr = this.__destroy_into_raw();
|
|
1158
1160
|
wasm.__wbg_menuaction_free(ptr, 0);
|
|
1159
1161
|
}
|
|
1162
|
+
/**
|
|
1163
|
+
* @returns {MenuActionSuggestion | undefined}
|
|
1164
|
+
*/
|
|
1165
|
+
suggestion() {
|
|
1166
|
+
const ret = wasm.menuaction_suggestion(this.__wbg_ptr);
|
|
1167
|
+
return ret === 0 ? undefined : MenuActionSuggestion.__wrap(ret);
|
|
1168
|
+
}
|
|
1160
1169
|
/**
|
|
1161
1170
|
* @returns {boolean}
|
|
1162
1171
|
*/
|
|
@@ -1171,13 +1180,6 @@ export class MenuAction {
|
|
|
1171
1180
|
const ret = wasm.menuaction_none(this.__wbg_ptr);
|
|
1172
1181
|
return ret !== 0;
|
|
1173
1182
|
}
|
|
1174
|
-
/**
|
|
1175
|
-
* @returns {MenuActionSuggestion | undefined}
|
|
1176
|
-
*/
|
|
1177
|
-
suggestion() {
|
|
1178
|
-
const ret = wasm.menuaction_suggestion(this.__wbg_ptr);
|
|
1179
|
-
return ret === 0 ? undefined : MenuActionSuggestion.__wrap(ret);
|
|
1180
|
-
}
|
|
1181
1183
|
}
|
|
1182
1184
|
|
|
1183
1185
|
const MenuActionSuggestionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1693,7 +1695,7 @@ export function __wbg_forEach_d6a05ca96422eff9(arg0, arg1, arg2) {
|
|
|
1693
1695
|
const a = state0.a;
|
|
1694
1696
|
state0.a = 0;
|
|
1695
1697
|
try {
|
|
1696
|
-
return
|
|
1698
|
+
return __wbg_adapter_131(a, state0.b, arg0, arg1, arg2);
|
|
1697
1699
|
} finally {
|
|
1698
1700
|
state0.a = a;
|
|
1699
1701
|
}
|
|
@@ -1711,7 +1713,7 @@ export function __wbg_forEach_e1cf6f7c8ecb7dae(arg0, arg1, arg2) {
|
|
|
1711
1713
|
const a = state0.a;
|
|
1712
1714
|
state0.a = 0;
|
|
1713
1715
|
try {
|
|
1714
|
-
return
|
|
1716
|
+
return __wbg_adapter_124(a, state0.b, arg0, arg1);
|
|
1715
1717
|
} finally {
|
|
1716
1718
|
state0.a = a;
|
|
1717
1719
|
}
|