@vaadin/rich-text-editor 22.0.0-beta1 → 22.0.1

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/README.md CHANGED
@@ -1,54 +1,56 @@
1
- # <vaadin-rich-text-editor>
1
+ # @vaadin/rich-text-editor
2
2
 
3
- [Live Demo ↗](https://vaadin.com/components/vaadin-rich-text-editor/html-examples)
4
- |
5
- [API documentation ↗](https://vaadin.com/components/vaadin-rich-text-editor/html-api)
3
+ An input field web component for entering rich text.
6
4
 
7
- [<vaadin-rich-text-editor>](https://vaadin.com/components/vaadin-rich-text-editor) is a Web Component providing rich text editor functionality, part of the [Vaadin components](https://vaadin.com/components).
5
+ > ℹ️  A commercial Vaadin [subscription](https://vaadin.com/pricing) is required to use Rich Text Editor in your project.
6
+
7
+ [Documentation + Live Demo ↗](https://vaadin.com/docs/latest/ds/components/rich-text-editor)
8
8
 
9
9
  [![npm version](https://badgen.net/npm/v/@vaadin/rich-text-editor)](https://www.npmjs.com/package/@vaadin/rich-text-editor)
10
- [![Published on Vaadin Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/vaadinvaadin-rich-text-editor)
11
10
  [![Discord](https://img.shields.io/discord/732335336448852018?label=discord)](https://discord.gg/PHmkCKC)
12
11
 
13
12
  ```html
14
13
  <vaadin-rich-text-editor></vaadin-rich-text-editor>
15
14
  ```
16
15
 
17
- [<img src="https://raw.githubusercontent.com/vaadin/vaadin-rich-text-editor/master/screenshot.png" width="200" alt="Screenshot of vaadin-rich-text-editor">](https://vaadin.com/components/vaadin-rich-text-editor)
16
+ [<img src="https://raw.githubusercontent.com/vaadin/web-components/master/packages/rich-text-editor/screenshot.png" width="656" alt="Screenshot of vaadin-rich-text-editor">](https://vaadin.com/docs/latest/ds/components/rich-text-editor)
18
17
 
19
18
  ## Installation
20
19
 
21
- Install `vaadin-rich-text-editor`:
20
+ Install the component:
22
21
 
23
22
  ```sh
24
- npm i @vaadin/rich-text-editor --save
23
+ npm i @vaadin/rich-text-editor
25
24
  ```
26
25
 
27
- Once installed, import it in your application:
26
+ Once installed, import the component in your application:
28
27
 
29
28
  ```js
30
- import '@vaadin/rich-text-editor/vaadin-rich-text-editor.js';
29
+ import '@vaadin/rich-text-editor';
31
30
  ```
32
31
 
33
- ## Getting started
34
-
35
- Vaadin components use the Lumo theme by default.
36
-
37
- To use the Material theme, import the correspondent file from the `theme/material` folder.
32
+ ## Themes
38
33
 
39
- ## Entry points
34
+ Vaadin components come with two built-in [themes](https://vaadin.com/docs/latest/ds/customization/using-themes), Lumo and Material.
35
+ The [main entrypoint](https://github.com/vaadin/web-components/blob/master/packages/rich-text-editor/vaadin-rich-text-editor.js) of the package uses the Lumo theme.
40
36
 
41
- - The component with the Lumo theme:
37
+ To use the Material theme, import the component from the `theme/material` folder:
42
38
 
43
- `theme/lumo/vaadin-rich-text-editor.js`
39
+ ```js
40
+ import '@vaadin/rich-text-editor/theme/material/vaadin-rich-text-editor.js';
41
+ ```
44
42
 
45
- - The component with the Material theme:
43
+ You can also import the Lumo version of the component explicitly:
46
44
 
47
- `theme/material/vaadin-rich-text-editor.js`
45
+ ```js
46
+ import '@vaadin/rich-text-editor/theme/lumo/vaadin-rich-text-editor.js';
47
+ ```
48
48
 
49
- - Alias for `theme/lumo/vaadin-rich-text-editor.js`:
49
+ Finally, you can import the un-themed component from the `src` folder to get a minimal starting point:
50
50
 
51
- `vaadin-rich-text-editor.js`
51
+ ```js
52
+ import '@vaadin/rich-text-editor/src/vaadin-rich-text-editor.js';
53
+ ```
52
54
 
53
55
  ## Contributing
54
56
 
@@ -58,4 +60,5 @@ Read the [contributing guide](https://vaadin.com/docs/latest/guide/contributing/
58
60
 
59
61
  Commercial Vaadin Developer License 4.0 (CVDLv4). For license terms, see LICENSE.
60
62
 
61
- Vaadin collects development time usage statistics to improve this product. For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.
63
+ Vaadin collects usage statistics at development time to improve this product.
64
+ For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/rich-text-editor",
3
- "version": "22.0.0-beta1",
3
+ "version": "22.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,22 +37,22 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@polymer/polymer": "^3.0.0",
40
- "@vaadin/button": "22.0.0-beta1",
41
- "@vaadin/component-base": "22.0.0-beta1",
42
- "@vaadin/confirm-dialog": "22.0.0-beta1",
43
- "@vaadin/text-field": "22.0.0-beta1",
40
+ "@vaadin/button": "^22.0.1",
41
+ "@vaadin/component-base": "^22.0.1",
42
+ "@vaadin/confirm-dialog": "^22.0.1",
43
+ "@vaadin/text-field": "^22.0.1",
44
44
  "@vaadin/vaadin-license-checker": "^2.1.0",
45
- "@vaadin/vaadin-lumo-styles": "22.0.0-beta1",
46
- "@vaadin/vaadin-material-styles": "22.0.0-beta1",
47
- "@vaadin/vaadin-themable-mixin": "22.0.0-beta1"
45
+ "@vaadin/vaadin-lumo-styles": "^22.0.1",
46
+ "@vaadin/vaadin-material-styles": "^22.0.1",
47
+ "@vaadin/vaadin-themable-mixin": "^22.0.1"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@esm-bundle/chai": "^4.3.4",
51
- "@vaadin/testing-helpers": "^0.3.0",
51
+ "@vaadin/testing-helpers": "^0.3.2",
52
52
  "gulp": "^4.0.2",
53
53
  "gulp-cli": "^2.3.0",
54
54
  "gulp-iconfont": "^11.0.0",
55
55
  "sinon": "^9.2.1"
56
56
  },
57
- "gitHead": "4cf8a9d0504994200c610e44b3676114fef49c1e"
57
+ "gitHead": "2b0a2bff0369d6020f7cc33ad35506aa2d1f6f68"
58
58
  }
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) 2020 Vaadin Ltd
4
4
  * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
5
5
  */
6
- import { registerStyles, css } from '@vaadin/vaadin-themable-mixin/register-styles.js';
6
+ import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
7
7
 
8
8
  export const contentStyles = css`
9
9
  [part='content'] {
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) 2021 Vaadin Ltd
4
4
  * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
5
5
  */
6
- import { registerStyles, css } from '@vaadin/vaadin-themable-mixin/register-styles.js';
6
+ import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
7
7
 
8
8
  const $_documentContainer = document.createElement('template');
9
9
 
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) 2020 Vaadin Ltd
4
4
  * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
5
5
  */
6
- import { css } from '@vaadin/vaadin-themable-mixin/register-styles.js';
6
+ import { css } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
7
7
  import { contentStyles } from './vaadin-rich-text-editor-content-styles.js';
8
8
  import { toolbarStyles } from './vaadin-rich-text-editor-toolbar-styles.js';
9
9
 
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) 2020 Vaadin Ltd
4
4
  * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
5
5
  */
6
- import { registerStyles, css } from '@vaadin/vaadin-themable-mixin/register-styles.js';
6
+ import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
7
7
  import { iconsStyles } from './vaadin-rich-text-editor-icons.js';
8
8
 
9
9
  export const toolbarStyles = css`
@@ -3,20 +3,20 @@
3
3
  * Copyright (c) 2020 Vaadin Ltd
4
4
  * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
5
5
  */
6
- import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
7
- import { resetMouseCanceller } from '@polymer/polymer/lib/utils/gestures.js';
8
- import { timeOut } from '@vaadin/component-base/src/async.js';
9
- import { Debouncer } from '@vaadin/component-base/src/debounce.js';
10
- import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
11
- import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
12
- import { registerStyles } from '@vaadin/vaadin-themable-mixin/register-styles.js';
13
6
  import '@vaadin/button/src/vaadin-button.js';
14
7
  import '@vaadin/confirm-dialog/src/vaadin-confirm-dialog.js';
15
8
  import '@vaadin/text-field/src/vaadin-text-field.js';
16
9
  import '@vaadin/vaadin-license-checker/vaadin-license-checker.js';
17
10
  import '../vendor/vaadin-quill.js';
18
- import { richTextEditorStyles } from './vaadin-rich-text-editor-styles.js';
19
11
  import './vaadin-rich-text-editor-toolbar-styles.js';
12
+ import { resetMouseCanceller } from '@polymer/polymer/lib/utils/gestures.js';
13
+ import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
14
+ import { timeOut } from '@vaadin/component-base/src/async.js';
15
+ import { isFirefox } from '@vaadin/component-base/src/browser-utils.js';
16
+ import { Debouncer } from '@vaadin/component-base/src/debounce.js';
17
+ import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
18
+ import { registerStyles, ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
19
+ import { richTextEditorStyles } from './vaadin-rich-text-editor-styles.js';
20
20
 
21
21
  registerStyles('vaadin-rich-text-editor', richTextEditorStyles, { moduleId: 'vaadin-rich-text-editor-styles' });
22
22
 
@@ -567,7 +567,7 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
567
567
  this.__patchKeyboard();
568
568
 
569
569
  /* istanbul ignore if */
570
- if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1) {
570
+ if (isFirefox) {
571
571
  this.__patchFirefoxFocus();
572
572
  }
573
573
 
@@ -1,10 +1,10 @@
1
- import { registerStyles, css } from '@vaadin/vaadin-themable-mixin/register-styles.js';
2
- import { color } from '@vaadin/vaadin-lumo-styles/color.js';
3
1
  import '@vaadin/vaadin-lumo-styles/font-icons.js';
4
2
  import '@vaadin/vaadin-lumo-styles/sizing.js';
5
3
  import '@vaadin/vaadin-lumo-styles/spacing.js';
6
4
  import '@vaadin/vaadin-lumo-styles/style.js';
5
+ import { color } from '@vaadin/vaadin-lumo-styles/color.js';
7
6
  import { typography } from '@vaadin/vaadin-lumo-styles/typography.js';
7
+ import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
8
8
 
9
9
  const richTextEditor = css`
10
10
  :host {
@@ -1,6 +1,6 @@
1
- import { registerStyles, css } from '@vaadin/vaadin-themable-mixin/register-styles.js';
2
1
  import '@vaadin/vaadin-material-styles/color.js';
3
2
  import { typography } from '@vaadin/vaadin-material-styles/typography.js';
3
+ import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
4
4
 
5
5
  const richTextEditor = css`
6
6
  :host {