@vector-im/matrix-wysiwyg 2.38.1 → 2.38.2

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vector-im/matrix-wysiwyg-wasm",
3
- "version": "2.38.1",
3
+ "version": "2.38.2",
4
4
  "homepage": "https://gitlab.com/andybalaam/wysiwyg-rust",
5
5
  "description": "WASM bindings for wysiwyg-rust",
6
6
  "license": "SEE LICENSE IN README.md",
@@ -16,21 +16,11 @@ export function new_composer_model(): ComposerModel;
16
16
  export function new_composer_model_from_html(html: string, start_utf16_codeunit: number, end_utf16_codeunit: number): ComposerModel;
17
17
  /**
18
18
  */
19
- export enum ActionState {
20
- /**
21
- * The button can be clicked, and will perform its normal action
22
- * e.g. make something bold
23
- */
24
- Enabled = 0,
25
- /**
26
- * The button can be clicked, and will perform the reverse of its
27
- * normal action e.g. stop something being bold
28
- */
29
- Reversed = 1,
30
- /**
31
- * The button cannot be clicked
32
- */
33
- Disabled = 2,
19
+ export enum PatternKeyType {
20
+ At = 0,
21
+ Hash = 1,
22
+ Slash = 2,
23
+ Custom = 3,
34
24
  }
35
25
  /**
36
26
  */
@@ -40,14 +30,6 @@ export enum DomCreationError {
40
30
  }
41
31
  /**
42
32
  */
43
- export enum PatternKeyType {
44
- At = 0,
45
- Hash = 1,
46
- Slash = 2,
47
- Custom = 3,
48
- }
49
- /**
50
- */
51
33
  export enum ComposerAction {
52
34
  Bold = 0,
53
35
  Italic = 1,
@@ -66,6 +48,24 @@ export enum ComposerAction {
66
48
  }
67
49
  /**
68
50
  */
51
+ export enum ActionState {
52
+ /**
53
+ * The button can be clicked, and will perform its normal action
54
+ * e.g. make something bold
55
+ */
56
+ Enabled = 0,
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,
66
+ }
67
+ /**
68
+ */
69
69
  export class ComposerModel {
70
70
  free(): void;
71
71
  /**
@@ -176,35 +176,6 @@ function handleError(f, args) {
176
176
  }
177
177
  /**
178
178
  */
179
- const ActionState = exports.ActionState = Object.freeze({
180
- /**
181
- * The button can be clicked, and will perform its normal action
182
- * e.g. make something bold
183
- */
184
- Enabled: 0,
185
- "0": "Enabled",
186
- /**
187
- * The button can be clicked, and will perform the reverse of its
188
- * normal action e.g. stop something being bold
189
- */
190
- Reversed: 1,
191
- "1": "Reversed",
192
- /**
193
- * The button cannot be clicked
194
- */
195
- Disabled: 2,
196
- "2": "Disabled"
197
- });
198
- /**
199
- */
200
- const DomCreationError = exports.DomCreationError = Object.freeze({
201
- HtmlParseError: 0,
202
- "0": "HtmlParseError",
203
- MarkdownParseError: 1,
204
- "1": "MarkdownParseError"
205
- });
206
- /**
207
- */
208
179
  const PatternKeyType = exports.PatternKeyType = Object.freeze({
209
180
  At: 0,
210
181
  "0": "At",
@@ -217,6 +188,14 @@ const PatternKeyType = exports.PatternKeyType = Object.freeze({
217
188
  });
218
189
  /**
219
190
  */
191
+ const DomCreationError = exports.DomCreationError = Object.freeze({
192
+ HtmlParseError: 0,
193
+ "0": "HtmlParseError",
194
+ MarkdownParseError: 1,
195
+ "1": "MarkdownParseError"
196
+ });
197
+ /**
198
+ */
220
199
  const ComposerAction = exports.ComposerAction = Object.freeze({
221
200
  Bold: 0,
222
201
  "0": "Bold",
@@ -247,6 +226,27 @@ const ComposerAction = exports.ComposerAction = Object.freeze({
247
226
  Quote: 13,
248
227
  "13": "Quote"
249
228
  });
229
+ /**
230
+ */
231
+ const ActionState = exports.ActionState = Object.freeze({
232
+ /**
233
+ * The button can be clicked, and will perform its normal action
234
+ * e.g. make something bold
235
+ */
236
+ Enabled: 0,
237
+ "0": "Enabled",
238
+ /**
239
+ * The button can be clicked, and will perform the reverse of its
240
+ * normal action e.g. stop something being bold
241
+ */
242
+ Reversed: 1,
243
+ "1": "Reversed",
244
+ /**
245
+ * The button cannot be clicked
246
+ */
247
+ Disabled: 2,
248
+ "2": "Disabled"
249
+ });
250
250
  const ComposerModelFinalization = typeof FinalizationRegistry === 'undefined' ? {
251
251
  register: () => {},
252
252
  unregister: () => {}
@@ -173,6 +173,15 @@ function handleError(f, args) {
173
173
  }
174
174
  /**
175
175
  */
176
+ export const PatternKeyType = Object.freeze({ At:0,"0":"At",Hash:1,"1":"Hash",Slash:2,"2":"Slash",Custom:3,"3":"Custom", });
177
+ /**
178
+ */
179
+ export const DomCreationError = Object.freeze({ HtmlParseError:0,"0":"HtmlParseError",MarkdownParseError:1,"1":"MarkdownParseError", });
180
+ /**
181
+ */
182
+ export const ComposerAction = Object.freeze({ Bold:0,"0":"Bold",Italic:1,"1":"Italic",StrikeThrough:2,"2":"StrikeThrough",Underline:3,"3":"Underline",InlineCode:4,"4":"InlineCode",Link:5,"5":"Link",Undo:6,"6":"Undo",Redo:7,"7":"Redo",OrderedList:8,"8":"OrderedList",UnorderedList:9,"9":"UnorderedList",Indent:10,"10":"Indent",Unindent:11,"11":"Unindent",CodeBlock:12,"12":"CodeBlock",Quote:13,"13":"Quote", });
183
+ /**
184
+ */
176
185
  export const ActionState = Object.freeze({
177
186
  /**
178
187
  * The button can be clicked, and will perform its normal action
@@ -188,15 +197,6 @@ Reversed:1,"1":"Reversed",
188
197
  * The button cannot be clicked
189
198
  */
190
199
  Disabled:2,"2":"Disabled", });
191
- /**
192
- */
193
- export const DomCreationError = Object.freeze({ HtmlParseError:0,"0":"HtmlParseError",MarkdownParseError:1,"1":"MarkdownParseError", });
194
- /**
195
- */
196
- export const PatternKeyType = Object.freeze({ At:0,"0":"At",Hash:1,"1":"Hash",Slash:2,"2":"Slash",Custom:3,"3":"Custom", });
197
- /**
198
- */
199
- export const ComposerAction = Object.freeze({ Bold:0,"0":"Bold",Italic:1,"1":"Italic",StrikeThrough:2,"2":"StrikeThrough",Underline:3,"3":"Underline",InlineCode:4,"4":"InlineCode",Link:5,"5":"Link",Undo:6,"6":"Undo",Redo:7,"7":"Redo",OrderedList:8,"8":"OrderedList",UnorderedList:9,"9":"UnorderedList",Indent:10,"10":"Indent",Unindent:11,"11":"Unindent",CodeBlock:12,"12":"CodeBlock",Quote:13,"13":"Quote", });
200
200
 
201
201
  const ComposerModelFinalization = (typeof FinalizationRegistry === 'undefined')
202
202
  ? { register: () => {}, unregister: () => {} }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vector-im/matrix-wysiwyg",
3
- "version": "2.38.1",
3
+ "version": "2.38.2",
4
4
  "type": "module",
5
5
  "description": "Wysiwyg composer for Element Web using React",
6
6
  "author": "New Vector Ltd.",
@@ -71,7 +71,7 @@
71
71
  "react": "^19.0.0",
72
72
  "react-dom": "^19.0.0",
73
73
  "typescript": "^5.0.0",
74
- "vite": "6.0.6",
74
+ "vite": "6.0.9",
75
75
  "vite-plugin-dts": "^4.3.0",
76
76
  "vitest": "^2.1.8",
77
77
  "vitest-sonar-reporter": "^2.0.0"