@vaadin/rich-text-editor 22.0.12 → 22.0.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/rich-text-editor",
3
- "version": "22.0.12",
3
+ "version": "22.0.15",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,14 +37,14 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@polymer/polymer": "^3.0.0",
40
- "@vaadin/button": "^22.0.12",
41
- "@vaadin/component-base": "^22.0.12",
42
- "@vaadin/confirm-dialog": "^22.0.12",
43
- "@vaadin/text-field": "^22.0.12",
40
+ "@vaadin/button": "^22.0.15",
41
+ "@vaadin/component-base": "^22.0.15",
42
+ "@vaadin/confirm-dialog": "^22.0.15",
43
+ "@vaadin/text-field": "^22.0.15",
44
44
  "@vaadin/vaadin-license-checker": "^2.1.0",
45
- "@vaadin/vaadin-lumo-styles": "^22.0.12",
46
- "@vaadin/vaadin-material-styles": "^22.0.12",
47
- "@vaadin/vaadin-themable-mixin": "^22.0.12"
45
+ "@vaadin/vaadin-lumo-styles": "^22.0.15",
46
+ "@vaadin/vaadin-material-styles": "^22.0.15",
47
+ "@vaadin/vaadin-themable-mixin": "^22.0.15"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@esm-bundle/chai": "^4.3.4",
@@ -54,5 +54,5 @@
54
54
  "gulp-iconfont": "^11.0.0",
55
55
  "sinon": "^9.2.1"
56
56
  },
57
- "gitHead": "ba1b2b04365d6cc9d5c05376b6d1f1402bc314ec"
57
+ "gitHead": "bba021b56ba45da93d2bb980242956ad929ecfe2"
58
58
  }
@@ -172,13 +172,13 @@ declare class RichTextEditor extends ElementMixin(ThemableMixin(HTMLElement)) {
172
172
  addEventListener<K extends keyof RichTextEditorEventMap>(
173
173
  type: K,
174
174
  listener: (this: RichTextEditor, ev: RichTextEditorEventMap[K]) => void,
175
- options?: boolean | AddEventListenerOptions
175
+ options?: boolean | AddEventListenerOptions,
176
176
  ): void;
177
177
 
178
178
  removeEventListener<K extends keyof RichTextEditorEventMap>(
179
179
  type: K,
180
180
  listener: (this: RichTextEditor, ev: RichTextEditorEventMap[K]) => void,
181
- options?: boolean | EventListenerOptions
181
+ options?: boolean | EventListenerOptions,
182
182
  ): void;
183
183
  }
184
184
 
@@ -32,19 +32,19 @@ const HANDLERS = [
32
32
  'list',
33
33
  'align',
34
34
  'blockquote',
35
- 'code-block'
35
+ 'code-block',
36
36
  ];
37
37
 
38
38
  const SOURCE = {
39
39
  API: 'api',
40
40
  USER: 'user',
41
- SILENT: 'silent'
41
+ SILENT: 'silent',
42
42
  };
43
43
 
44
44
  const STATE = {
45
45
  DEFAULT: 0,
46
46
  FOCUSED: 1,
47
- CLICKED: 2
47
+ CLICKED: 2,
48
48
  };
49
49
 
50
50
  const TAB_KEY = 9;
@@ -383,7 +383,7 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
383
383
  value: {
384
384
  type: String,
385
385
  notify: true,
386
- value: ''
386
+ value: '',
387
387
  },
388
388
 
389
389
  /**
@@ -392,7 +392,7 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
392
392
  htmlValue: {
393
393
  type: String,
394
394
  notify: true,
395
- readOnly: true
395
+ readOnly: true,
396
396
  },
397
397
 
398
398
  /**
@@ -402,7 +402,7 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
402
402
  disabled: {
403
403
  type: Boolean,
404
404
  value: false,
405
- reflectToAttribute: true
405
+ reflectToAttribute: true,
406
406
  },
407
407
 
408
408
  /**
@@ -412,7 +412,7 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
412
412
  readonly: {
413
413
  type: Boolean,
414
414
  value: false,
415
- reflectToAttribute: true
415
+ reflectToAttribute: true,
416
416
  },
417
417
 
418
418
  /**
@@ -450,14 +450,14 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
450
450
  linkDialogTitle: 'Link address',
451
451
  ok: 'OK',
452
452
  cancel: 'Cancel',
453
- remove: 'Remove'
453
+ remove: 'Remove',
454
454
  };
455
- }
455
+ },
456
456
  },
457
457
 
458
458
  /** @private */
459
459
  _editor: {
460
- type: Object
460
+ type: Object,
461
461
  },
462
462
 
463
463
  /**
@@ -469,31 +469,31 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
469
469
  /** @private */
470
470
  __lastCommittedChange: {
471
471
  type: String,
472
- value: ''
472
+ value: '',
473
473
  },
474
474
 
475
475
  /** @private */
476
476
  _linkEditing: {
477
- type: Boolean
477
+ type: Boolean,
478
478
  },
479
479
 
480
480
  /** @private */
481
481
  _linkRange: {
482
482
  type: Object,
483
- value: null
483
+ value: null,
484
484
  },
485
485
 
486
486
  /** @private */
487
487
  _linkIndex: {
488
488
  type: Number,
489
- value: null
489
+ value: null,
490
490
  },
491
491
 
492
492
  /** @private */
493
493
  _linkUrl: {
494
494
  type: String,
495
- value: ''
496
- }
495
+ value: '',
496
+ },
497
497
  };
498
498
  }
499
499
 
@@ -559,8 +559,8 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
559
559
 
560
560
  this._editor = new Quill(editor, {
561
561
  modules: {
562
- toolbar: toolbarConfig
563
- }
562
+ toolbar: toolbarConfig,
563
+ },
564
564
  });
565
565
 
566
566
  this.__patchToolbar();
@@ -617,8 +617,8 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
617
617
  clean: function () {
618
618
  self._markToolbarClicked();
619
619
  clean.call(this);
620
- }
621
- }
620
+ },
621
+ },
622
622
  };
623
623
 
624
624
  HANDLERS.forEach((handler) => {
@@ -908,7 +908,7 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
908
908
  [this.__dir === 'rtl' ? 'left' : 'right', 'center', 'justify'].forEach((align) => {
909
909
  content = content.replace(
910
910
  new RegExp(` class=[\\\\]?"\\s?ql-align-${align}[\\\\]?"`, 'g'),
911
- ` style="text-align: ${align}"`
911
+ ` style="text-align: ${align}"`,
912
912
  );
913
913
  });
914
914
 
@@ -947,7 +947,7 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
947
947
  .map((button) => button.getAttribute('title'))
948
948
  .join(', ');
949
949
  announcer.textContent = formatting;
950
- }
950
+ },
951
951
  );
952
952
  }
953
953
 
@@ -1022,7 +1022,7 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
1022
1022
  const range = this._editor.getSelection(true);
1023
1023
  this._editor.updateContents(
1024
1024
  new Quill.imports.delta().retain(range.index).delete(range.length).insert({ image }),
1025
- SOURCE.USER
1025
+ SOURCE.USER,
1026
1026
  );
1027
1027
  this._markToolbarClicked();
1028
1028
  this._editor.setSelection(range.index + 1, SOURCE.SILENT);
@@ -217,5 +217,5 @@ const richTextEditor = css`
217
217
  `;
218
218
 
219
219
  registerStyles('vaadin-rich-text-editor', [color, typography, richTextEditor], {
220
- moduleId: 'lumo-rich-text-editor'
220
+ moduleId: 'lumo-rich-text-editor',
221
221
  });
@@ -94,5 +94,5 @@ const richTextEditor = css`
94
94
  `;
95
95
 
96
96
  registerStyles('vaadin-rich-text-editor', [typography, richTextEditor], {
97
- moduleId: 'material-rich-text-editor'
97
+ moduleId: 'material-rich-text-editor',
98
98
  });