@vector-im/matrix-wysiwyg 2.38.2 → 2.38.4
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/node_modules/@vector-im/matrix-wysiwyg-wasm/package.json +1 -1
- package/node_modules/@vector-im/matrix-wysiwyg-wasm/pkg/wysiwyg.d.ts +109 -363
- package/node_modules/@vector-im/matrix-wysiwyg-wasm/pkg/wysiwyg_bg.cjs +592 -705
- package/node_modules/@vector-im/matrix-wysiwyg-wasm/pkg/wysiwyg_bg.js +598 -671
- 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 +132 -130
- package/package.json +1 -1
|
@@ -1,35 +1,24 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
*/
|
|
5
3
|
export function start(): void;
|
|
6
|
-
/**
|
|
7
|
-
* @returns {ComposerModel}
|
|
8
|
-
*/
|
|
9
4
|
export function new_composer_model(): ComposerModel;
|
|
10
|
-
/**
|
|
11
|
-
* @param {string} html
|
|
12
|
-
* @param {number} start_utf16_codeunit
|
|
13
|
-
* @param {number} end_utf16_codeunit
|
|
14
|
-
* @returns {ComposerModel}
|
|
15
|
-
*/
|
|
16
5
|
export function new_composer_model_from_html(html: string, start_utf16_codeunit: number, end_utf16_codeunit: number): ComposerModel;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
6
|
+
export enum ActionState {
|
|
7
|
+
/**
|
|
8
|
+
* The button can be clicked, and will perform its normal action
|
|
9
|
+
* e.g. make something bold
|
|
10
|
+
*/
|
|
11
|
+
Enabled = 0,
|
|
12
|
+
/**
|
|
13
|
+
* The button can be clicked, and will perform the reverse of its
|
|
14
|
+
* normal action e.g. stop something being bold
|
|
15
|
+
*/
|
|
16
|
+
Reversed = 1,
|
|
17
|
+
/**
|
|
18
|
+
* The button cannot be clicked
|
|
19
|
+
*/
|
|
20
|
+
Disabled = 2,
|
|
30
21
|
}
|
|
31
|
-
/**
|
|
32
|
-
*/
|
|
33
22
|
export enum ComposerAction {
|
|
34
23
|
Bold = 0,
|
|
35
24
|
Italic = 1,
|
|
@@ -46,467 +35,224 @@ export enum ComposerAction {
|
|
|
46
35
|
CodeBlock = 12,
|
|
47
36
|
Quote = 13,
|
|
48
37
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
* The button can be clicked, and will perform the reverse of its
|
|
59
|
-
* normal action e.g. stop something being bold
|
|
60
|
-
*/
|
|
61
|
-
Reversed = 1,
|
|
62
|
-
/**
|
|
63
|
-
* The button cannot be clicked
|
|
64
|
-
*/
|
|
65
|
-
Disabled = 2,
|
|
38
|
+
export enum DomCreationError {
|
|
39
|
+
HtmlParseError = 0,
|
|
40
|
+
MarkdownParseError = 1,
|
|
41
|
+
}
|
|
42
|
+
export enum PatternKeyType {
|
|
43
|
+
At = 0,
|
|
44
|
+
Hash = 1,
|
|
45
|
+
Slash = 2,
|
|
46
|
+
Custom = 3,
|
|
66
47
|
}
|
|
67
|
-
/**
|
|
68
|
-
*/
|
|
69
48
|
export class ComposerModel {
|
|
49
|
+
private constructor();
|
|
70
50
|
free(): void;
|
|
71
|
-
/**
|
|
72
|
-
* @returns {ComposerModel}
|
|
73
|
-
*/
|
|
74
51
|
static new(): ComposerModel;
|
|
75
|
-
/**
|
|
76
|
-
* @param {string} text
|
|
77
|
-
* @returns {ComposerModel}
|
|
78
|
-
*/
|
|
79
52
|
static from_example_format(text: string): ComposerModel;
|
|
80
|
-
/**
|
|
81
|
-
* @returns {string}
|
|
82
|
-
*/
|
|
83
53
|
to_example_format(): string;
|
|
84
|
-
/**
|
|
85
|
-
* @returns {string}
|
|
86
|
-
*/
|
|
87
54
|
get_content_as_html(): string;
|
|
88
|
-
/**
|
|
89
|
-
* @returns {string}
|
|
90
|
-
*/
|
|
91
55
|
get_content_as_message_html(): string;
|
|
92
|
-
/**
|
|
93
|
-
* @returns {string}
|
|
94
|
-
*/
|
|
95
56
|
get_content_as_markdown(): string;
|
|
96
|
-
/**
|
|
97
|
-
* @returns {string}
|
|
98
|
-
*/
|
|
99
57
|
get_content_as_message_markdown(): string;
|
|
100
|
-
/**
|
|
101
|
-
* @returns {string}
|
|
102
|
-
*/
|
|
103
58
|
get_content_as_plain_text(): string;
|
|
104
|
-
/**
|
|
105
|
-
* @returns {DomHandle}
|
|
106
|
-
*/
|
|
107
59
|
document(): DomHandle;
|
|
108
|
-
/**
|
|
109
|
-
* @returns {Map<any, any>}
|
|
110
|
-
*/
|
|
111
60
|
action_states(): Map<any, any>;
|
|
112
|
-
/**
|
|
113
|
-
* @param {number} start_utf16_codeunit
|
|
114
|
-
* @param {number} end_utf16_codeunit
|
|
115
|
-
* @returns {ComposerUpdate}
|
|
116
|
-
*/
|
|
117
61
|
select(start_utf16_codeunit: number, end_utf16_codeunit: number): ComposerUpdate;
|
|
118
|
-
/**
|
|
119
|
-
* @returns {number}
|
|
120
|
-
*/
|
|
121
62
|
selection_start(): number;
|
|
122
|
-
/**
|
|
123
|
-
* @returns {number}
|
|
124
|
-
*/
|
|
125
63
|
selection_end(): number;
|
|
126
|
-
/**
|
|
127
|
-
* @param {string} new_text
|
|
128
|
-
* @returns {ComposerUpdate}
|
|
129
|
-
*/
|
|
130
64
|
replace_text(new_text: string): ComposerUpdate;
|
|
131
|
-
/**
|
|
132
|
-
* @param {string} new_text
|
|
133
|
-
* @param {SuggestionPattern} suggestion
|
|
134
|
-
* @param {boolean} append_space
|
|
135
|
-
* @returns {ComposerUpdate}
|
|
136
|
-
*/
|
|
137
65
|
replace_text_suggestion(new_text: string, suggestion: SuggestionPattern, append_space: boolean): ComposerUpdate;
|
|
138
|
-
/**
|
|
139
|
-
* @param {string} text
|
|
140
|
-
* @returns {ComposerUpdate}
|
|
141
|
-
*/
|
|
142
66
|
set_content_from_html(text: string): ComposerUpdate;
|
|
143
|
-
/**
|
|
144
|
-
* @param {string} text
|
|
145
|
-
* @returns {ComposerUpdate}
|
|
146
|
-
*/
|
|
147
67
|
set_content_from_markdown(text: string): ComposerUpdate;
|
|
148
|
-
/**
|
|
149
|
-
* @returns {ComposerUpdate}
|
|
150
|
-
*/
|
|
151
68
|
clear(): ComposerUpdate;
|
|
152
|
-
/**
|
|
153
|
-
* @returns {ComposerUpdate}
|
|
154
|
-
*/
|
|
155
69
|
enter(): ComposerUpdate;
|
|
156
|
-
/**
|
|
157
|
-
* @returns {ComposerUpdate}
|
|
158
|
-
*/
|
|
159
70
|
backspace(): ComposerUpdate;
|
|
160
|
-
/**
|
|
161
|
-
* @returns {ComposerUpdate}
|
|
162
|
-
*/
|
|
163
71
|
backspace_word(): ComposerUpdate;
|
|
164
|
-
/**
|
|
165
|
-
* @returns {ComposerUpdate}
|
|
166
|
-
*/
|
|
167
72
|
delete(): ComposerUpdate;
|
|
168
|
-
/**
|
|
169
|
-
* @returns {ComposerUpdate}
|
|
170
|
-
*/
|
|
171
73
|
delete_word(): ComposerUpdate;
|
|
172
|
-
/**
|
|
173
|
-
* @returns {ComposerUpdate}
|
|
174
|
-
*/
|
|
175
74
|
bold(): ComposerUpdate;
|
|
176
|
-
/**
|
|
177
|
-
* @returns {ComposerUpdate}
|
|
178
|
-
*/
|
|
179
75
|
italic(): ComposerUpdate;
|
|
180
|
-
/**
|
|
181
|
-
* @returns {ComposerUpdate}
|
|
182
|
-
*/
|
|
183
76
|
strike_through(): ComposerUpdate;
|
|
184
|
-
/**
|
|
185
|
-
* @returns {ComposerUpdate}
|
|
186
|
-
*/
|
|
187
77
|
underline(): ComposerUpdate;
|
|
188
|
-
/**
|
|
189
|
-
* @returns {ComposerUpdate}
|
|
190
|
-
*/
|
|
191
78
|
quote(): ComposerUpdate;
|
|
192
|
-
/**
|
|
193
|
-
* @returns {ComposerUpdate}
|
|
194
|
-
*/
|
|
195
79
|
inline_code(): ComposerUpdate;
|
|
196
|
-
/**
|
|
197
|
-
* @returns {ComposerUpdate}
|
|
198
|
-
*/
|
|
199
80
|
code_block(): ComposerUpdate;
|
|
200
|
-
/**
|
|
201
|
-
* @returns {ComposerUpdate}
|
|
202
|
-
*/
|
|
203
81
|
undo(): ComposerUpdate;
|
|
204
|
-
/**
|
|
205
|
-
* @returns {ComposerUpdate}
|
|
206
|
-
*/
|
|
207
82
|
redo(): ComposerUpdate;
|
|
208
|
-
/**
|
|
209
|
-
* @returns {ComposerUpdate}
|
|
210
|
-
*/
|
|
211
83
|
ordered_list(): ComposerUpdate;
|
|
212
|
-
/**
|
|
213
|
-
* @returns {ComposerUpdate}
|
|
214
|
-
*/
|
|
215
84
|
unordered_list(): ComposerUpdate;
|
|
216
|
-
/**
|
|
217
|
-
* @returns {ComposerUpdate}
|
|
218
|
-
*/
|
|
219
85
|
indent(): ComposerUpdate;
|
|
220
|
-
/**
|
|
221
|
-
* @returns {ComposerUpdate}
|
|
222
|
-
*/
|
|
223
86
|
unindent(): ComposerUpdate;
|
|
224
|
-
/**
|
|
225
|
-
* @returns {LinkAction}
|
|
226
|
-
*/
|
|
227
87
|
get_link_action(): LinkAction;
|
|
228
|
-
/**
|
|
229
|
-
* @param {string} url
|
|
230
|
-
* @param {Map<any, any>} attributes
|
|
231
|
-
* @returns {ComposerUpdate}
|
|
232
|
-
*/
|
|
233
88
|
set_link(url: string, attributes: Map<any, any>): ComposerUpdate;
|
|
234
|
-
/**
|
|
235
|
-
* @param {string} url
|
|
236
|
-
* @param {string} text
|
|
237
|
-
* @param {Map<any, any>} attributes
|
|
238
|
-
* @returns {ComposerUpdate}
|
|
239
|
-
*/
|
|
240
89
|
set_link_with_text(url: string, text: string, attributes: Map<any, any>): ComposerUpdate;
|
|
241
|
-
/**
|
|
242
|
-
* @param {Array<any>} custom_suggestion_patterns
|
|
243
|
-
*/
|
|
244
90
|
set_custom_suggestion_patterns(custom_suggestion_patterns: Array<any>): void;
|
|
245
|
-
/**
|
|
246
|
-
* Creates an at-room mention node and inserts it into the composer at the current selection
|
|
247
|
-
|
|
248
|
-
* @returns {ComposerUpdate}
|
|
249
|
-
*/
|
|
91
|
+
/**
|
|
92
|
+
* Creates an at-room mention node and inserts it into the composer at the current selection
|
|
93
|
+
*/
|
|
250
94
|
insert_at_room_mention(attributes: Map<any, any>): ComposerUpdate;
|
|
251
|
-
/**
|
|
252
|
-
* Creates a mention node and inserts it into the composer at the current selection
|
|
253
|
-
|
|
254
|
-
* @param {string} text
|
|
255
|
-
* @param {Map<any, any>} attributes
|
|
256
|
-
* @returns {ComposerUpdate}
|
|
257
|
-
*/
|
|
95
|
+
/**
|
|
96
|
+
* Creates a mention node and inserts it into the composer at the current selection
|
|
97
|
+
*/
|
|
258
98
|
insert_mention(url: string, text: string, attributes: Map<any, any>): ComposerUpdate;
|
|
259
|
-
/**
|
|
260
|
-
* Creates an at-room mention node and inserts it into the composer, replacing the
|
|
261
|
-
* text content defined by the suggestion
|
|
262
|
-
|
|
263
|
-
* @param {Map<any, any>} attributes
|
|
264
|
-
* @returns {ComposerUpdate}
|
|
265
|
-
*/
|
|
99
|
+
/**
|
|
100
|
+
* Creates an at-room mention node and inserts it into the composer, replacing the
|
|
101
|
+
* text content defined by the suggestion
|
|
102
|
+
*/
|
|
266
103
|
insert_at_room_mention_at_suggestion(suggestion: SuggestionPattern, attributes: Map<any, any>): ComposerUpdate;
|
|
267
|
-
/**
|
|
268
|
-
* Creates a mention node and inserts it into the composer, replacing the
|
|
269
|
-
* text content defined by the suggestion
|
|
270
|
-
|
|
271
|
-
* @param {string} text
|
|
272
|
-
* @param {SuggestionPattern} suggestion
|
|
273
|
-
* @param {Map<any, any>} attributes
|
|
274
|
-
* @returns {ComposerUpdate}
|
|
275
|
-
*/
|
|
104
|
+
/**
|
|
105
|
+
* Creates a mention node and inserts it into the composer, replacing the
|
|
106
|
+
* text content defined by the suggestion
|
|
107
|
+
*/
|
|
276
108
|
insert_mention_at_suggestion(url: string, text: string, suggestion: SuggestionPattern, attributes: Map<any, any>): ComposerUpdate;
|
|
277
|
-
/**
|
|
278
|
-
* @returns {ComposerUpdate}
|
|
279
|
-
*/
|
|
280
109
|
remove_links(): ComposerUpdate;
|
|
281
110
|
}
|
|
282
|
-
/**
|
|
283
|
-
*/
|
|
284
111
|
export class ComposerUpdate {
|
|
112
|
+
private constructor();
|
|
285
113
|
free(): void;
|
|
286
|
-
/**
|
|
287
|
-
* @returns {TextUpdate}
|
|
288
|
-
*/
|
|
289
114
|
text_update(): TextUpdate;
|
|
290
|
-
/**
|
|
291
|
-
* @returns {MenuState}
|
|
292
|
-
*/
|
|
293
115
|
menu_state(): MenuState;
|
|
294
|
-
/**
|
|
295
|
-
* @returns {MenuAction}
|
|
296
|
-
*/
|
|
297
116
|
menu_action(): MenuAction;
|
|
298
117
|
}
|
|
299
|
-
/**
|
|
300
|
-
*/
|
|
301
118
|
export class Create {
|
|
119
|
+
private constructor();
|
|
302
120
|
free(): void;
|
|
303
121
|
}
|
|
304
|
-
/**
|
|
305
|
-
*/
|
|
306
122
|
export class CreateWithText {
|
|
123
|
+
private constructor();
|
|
307
124
|
free(): void;
|
|
308
125
|
}
|
|
309
|
-
/**
|
|
310
|
-
*/
|
|
311
126
|
export class Disabled {
|
|
127
|
+
private constructor();
|
|
312
128
|
free(): void;
|
|
313
129
|
}
|
|
314
130
|
/**
|
|
315
|
-
* An iterator-like view of a DomHandle's children, written to work around
|
|
316
|
-
* the lack of support for returning Vec<T> in wasm_bindgen.
|
|
317
|
-
*/
|
|
131
|
+
* An iterator-like view of a DomHandle's children, written to work around
|
|
132
|
+
* the lack of support for returning Vec<T> in wasm_bindgen.
|
|
133
|
+
*/
|
|
318
134
|
export class DomChildren {
|
|
135
|
+
private constructor();
|
|
319
136
|
free(): void;
|
|
320
|
-
/**
|
|
321
|
-
* @returns {DomHandle | undefined}
|
|
322
|
-
*/
|
|
323
137
|
next_child(): DomHandle | undefined;
|
|
324
138
|
}
|
|
325
139
|
/**
|
|
326
|
-
* Refers to a node in the composer model.
|
|
327
|
-
*/
|
|
140
|
+
* Refers to a node in the composer model.
|
|
141
|
+
*/
|
|
328
142
|
export class DomHandle {
|
|
143
|
+
private constructor();
|
|
329
144
|
free(): void;
|
|
330
|
-
/**
|
|
331
|
-
* Returns "container", "line_break", "text" or "zwsp" depending on the type of
|
|
332
|
-
* node we refer to.
|
|
333
|
-
* Panics if we are not a valid reference (because the model has changed
|
|
334
|
-
* since we were created, or because you passed in a different model
|
|
335
|
-
* from the one that created us.)
|
|
336
|
-
|
|
337
|
-
* @returns {string}
|
|
338
|
-
*/
|
|
145
|
+
/**
|
|
146
|
+
* Returns "container", "line_break", "text" or "zwsp" depending on the type of
|
|
147
|
+
* node we refer to.
|
|
148
|
+
* Panics if we are not a valid reference (because the model has changed
|
|
149
|
+
* since we were created, or because you passed in a different model
|
|
150
|
+
* from the one that created us.)
|
|
151
|
+
*/
|
|
339
152
|
node_type(model: ComposerModel): string;
|
|
340
|
-
/**
|
|
341
|
-
* Returns a list of our children nodes, or an empty list if we refer
|
|
342
|
-
* to a text or line break node.
|
|
343
|
-
* Panics if we are not a valid reference (because the model has changed
|
|
344
|
-
* since we were created, or because you passed in a different model
|
|
345
|
-
* from the one that created us.)
|
|
346
|
-
|
|
347
|
-
* @returns {DomChildren}
|
|
348
|
-
*/
|
|
153
|
+
/**
|
|
154
|
+
* Returns a list of our children nodes, or an empty list if we refer
|
|
155
|
+
* to a text or line break node.
|
|
156
|
+
* Panics if we are not a valid reference (because the model has changed
|
|
157
|
+
* since we were created, or because you passed in a different model
|
|
158
|
+
* from the one that created us.)
|
|
159
|
+
*/
|
|
349
160
|
children(model: ComposerModel): DomChildren;
|
|
350
|
-
/**
|
|
351
|
-
* Returns the text of this node, or an empty string if this is a
|
|
352
|
-
* container or line break.
|
|
353
|
-
* Panics if we are not a valid reference (because the model has changed
|
|
354
|
-
* since we were created, or because you passed in a different model
|
|
355
|
-
* from the one that created us.)
|
|
356
|
-
|
|
357
|
-
* @returns {string}
|
|
358
|
-
*/
|
|
161
|
+
/**
|
|
162
|
+
* Returns the text of this node, or an empty string if this is a
|
|
163
|
+
* container or line break.
|
|
164
|
+
* Panics if we are not a valid reference (because the model has changed
|
|
165
|
+
* since we were created, or because you passed in a different model
|
|
166
|
+
* from the one that created us.)
|
|
167
|
+
*/
|
|
359
168
|
text(model: ComposerModel): string;
|
|
360
|
-
/**
|
|
361
|
-
* Returns our tagname, or "-text-"/"-zwsp-" if we are a text/zwsp node.
|
|
362
|
-
* Panics if we are not a valid reference (because the model has changed
|
|
363
|
-
* since we were created, or because you passed in a different model
|
|
364
|
-
* from the one that created us.)
|
|
365
|
-
|
|
366
|
-
* @returns {string}
|
|
367
|
-
*/
|
|
169
|
+
/**
|
|
170
|
+
* Returns our tagname, or "-text-"/"-zwsp-" if we are a text/zwsp node.
|
|
171
|
+
* Panics if we are not a valid reference (because the model has changed
|
|
172
|
+
* since we were created, or because you passed in a different model
|
|
173
|
+
* from the one that created us.)
|
|
174
|
+
*/
|
|
368
175
|
tag(model: ComposerModel): string;
|
|
369
176
|
}
|
|
370
|
-
/**
|
|
371
|
-
*/
|
|
372
177
|
export class Edit {
|
|
178
|
+
private constructor();
|
|
373
179
|
free(): void;
|
|
374
|
-
/**
|
|
375
|
-
*/
|
|
376
180
|
url: string;
|
|
377
181
|
}
|
|
378
|
-
/**
|
|
379
|
-
*/
|
|
380
182
|
export class Keep {
|
|
183
|
+
private constructor();
|
|
381
184
|
free(): void;
|
|
382
185
|
}
|
|
383
|
-
/**
|
|
384
|
-
*/
|
|
385
186
|
export class LinkAction {
|
|
187
|
+
private constructor();
|
|
386
188
|
free(): void;
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
create
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
disabled?: Disabled;
|
|
396
|
-
/**
|
|
397
|
-
*/
|
|
398
|
-
edit_link?: Edit;
|
|
189
|
+
get create_with_text(): CreateWithText | undefined;
|
|
190
|
+
set create_with_text(value: CreateWithText | null | undefined);
|
|
191
|
+
get create(): Create | undefined;
|
|
192
|
+
set create(value: Create | null | undefined);
|
|
193
|
+
get edit_link(): Edit | undefined;
|
|
194
|
+
set edit_link(value: Edit | null | undefined);
|
|
195
|
+
get disabled(): Disabled | undefined;
|
|
196
|
+
set disabled(value: Disabled | null | undefined);
|
|
399
197
|
}
|
|
400
|
-
/**
|
|
401
|
-
*/
|
|
402
198
|
export class MenuAction {
|
|
199
|
+
private constructor();
|
|
403
200
|
free(): void;
|
|
404
|
-
/**
|
|
405
|
-
* @returns {boolean}
|
|
406
|
-
*/
|
|
407
201
|
keep(): boolean;
|
|
408
|
-
/**
|
|
409
|
-
* @returns {boolean}
|
|
410
|
-
*/
|
|
411
202
|
none(): boolean;
|
|
412
|
-
/**
|
|
413
|
-
* @returns {MenuActionSuggestion | undefined}
|
|
414
|
-
*/
|
|
415
203
|
suggestion(): MenuActionSuggestion | undefined;
|
|
416
204
|
}
|
|
417
|
-
/**
|
|
418
|
-
*/
|
|
419
205
|
export class MenuActionSuggestion {
|
|
206
|
+
private constructor();
|
|
420
207
|
free(): void;
|
|
421
|
-
/**
|
|
422
|
-
*/
|
|
423
208
|
suggestion_pattern: SuggestionPattern;
|
|
424
209
|
}
|
|
425
|
-
/**
|
|
426
|
-
*/
|
|
427
210
|
export class MenuState {
|
|
211
|
+
private constructor();
|
|
428
212
|
free(): void;
|
|
429
|
-
/**
|
|
430
|
-
* @returns {boolean}
|
|
431
|
-
*/
|
|
432
213
|
keep(): boolean;
|
|
433
|
-
/**
|
|
434
|
-
* @returns {MenuStateUpdate | undefined}
|
|
435
|
-
*/
|
|
436
214
|
update(): MenuStateUpdate | undefined;
|
|
437
215
|
}
|
|
438
|
-
/**
|
|
439
|
-
*/
|
|
440
216
|
export class MenuStateUpdate {
|
|
217
|
+
private constructor();
|
|
441
218
|
free(): void;
|
|
442
|
-
/**
|
|
443
|
-
*/
|
|
444
219
|
action_states: Map<any, any>;
|
|
445
220
|
}
|
|
446
|
-
/**
|
|
447
|
-
*/
|
|
448
221
|
export class PatternKey {
|
|
222
|
+
private constructor();
|
|
449
223
|
free(): void;
|
|
450
|
-
/**
|
|
451
|
-
*/
|
|
452
|
-
custom_key_value?: string;
|
|
453
|
-
/**
|
|
454
|
-
*/
|
|
455
224
|
key_type: PatternKeyType;
|
|
225
|
+
get custom_key_value(): string | undefined;
|
|
226
|
+
set custom_key_value(value: string | null | undefined);
|
|
456
227
|
}
|
|
457
|
-
/**
|
|
458
|
-
*/
|
|
459
228
|
export class ReplaceAll {
|
|
229
|
+
private constructor();
|
|
460
230
|
free(): void;
|
|
461
|
-
/**
|
|
462
|
-
*/
|
|
463
|
-
end_utf16_codeunit: number;
|
|
464
|
-
/**
|
|
465
|
-
*/
|
|
466
231
|
replacement_html: string;
|
|
467
|
-
/**
|
|
468
|
-
*/
|
|
469
232
|
start_utf16_codeunit: number;
|
|
233
|
+
end_utf16_codeunit: number;
|
|
470
234
|
}
|
|
471
|
-
/**
|
|
472
|
-
*/
|
|
473
235
|
export class Selection {
|
|
236
|
+
private constructor();
|
|
474
237
|
free(): void;
|
|
475
|
-
/**
|
|
476
|
-
*/
|
|
477
|
-
end_utf16_codeunit: number;
|
|
478
|
-
/**
|
|
479
|
-
*/
|
|
480
238
|
start_utf16_codeunit: number;
|
|
239
|
+
end_utf16_codeunit: number;
|
|
481
240
|
}
|
|
482
|
-
/**
|
|
483
|
-
*/
|
|
484
241
|
export class SuggestionPattern {
|
|
242
|
+
private constructor();
|
|
485
243
|
free(): void;
|
|
486
|
-
/**
|
|
487
|
-
*/
|
|
488
|
-
end: number;
|
|
489
|
-
/**
|
|
490
|
-
*/
|
|
491
244
|
key: PatternKey;
|
|
492
|
-
/**
|
|
493
|
-
*/
|
|
494
|
-
start: number;
|
|
495
|
-
/**
|
|
496
|
-
*/
|
|
497
245
|
text: string;
|
|
246
|
+
start: number;
|
|
247
|
+
end: number;
|
|
498
248
|
}
|
|
499
|
-
/**
|
|
500
|
-
*/
|
|
501
249
|
export class TextUpdate {
|
|
250
|
+
private constructor();
|
|
502
251
|
free(): void;
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
/**
|
|
510
|
-
*/
|
|
511
|
-
select?: Selection;
|
|
252
|
+
get keep(): Keep | undefined;
|
|
253
|
+
set keep(value: Keep | null | undefined);
|
|
254
|
+
get replace_all(): ReplaceAll | undefined;
|
|
255
|
+
set replace_all(value: ReplaceAll | null | undefined);
|
|
256
|
+
get select(): Selection | undefined;
|
|
257
|
+
set select(value: Selection | null | undefined);
|
|
512
258
|
}
|