@ckeditor/ckeditor5-paragraph 35.3.2 → 36.0.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/LICENSE.md CHANGED
@@ -2,7 +2,7 @@ Software License Agreement
2
2
  ==========================
3
3
 
4
4
  **CKEditor 5 paragraph feature** – https://github.com/ckeditor/ckeditor5-paragraph <br>
5
- Copyright (c) 2003-2022, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
5
+ Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
6
6
 
7
7
  Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html).
8
8
 
@@ -9,7 +9,7 @@
9
9
  {
10
10
  "elements": "p",
11
11
  "implements": "$block",
12
- "_comment": "The HTML element may contain classes, styles or attributes that are created by other plugins, which alter the <code>`$block`</code> element."
12
+ "_comment": "This element inherits all attributes, classes and styles that are allowed on the `<$block>` element by other features."
13
13
  }
14
14
  ]
15
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-paragraph",
3
- "version": "35.3.2",
3
+ "version": "36.0.0",
4
4
  "description": "Paragraph feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,20 +12,20 @@
12
12
  ],
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "@ckeditor/ckeditor5-core": "^35.3.2",
16
- "@ckeditor/ckeditor5-ui": "^35.3.2",
17
- "@ckeditor/ckeditor5-utils": "^35.3.2"
15
+ "@ckeditor/ckeditor5-core": "^36.0.0",
16
+ "@ckeditor/ckeditor5-ui": "^36.0.0",
17
+ "@ckeditor/ckeditor5-utils": "^36.0.0"
18
18
  },
19
19
  "devDependencies": {
20
- "@ckeditor/ckeditor5-basic-styles": "^35.3.2",
21
- "@ckeditor/ckeditor5-clipboard": "^35.3.2",
22
- "@ckeditor/ckeditor5-editor-classic": "^35.3.2",
23
- "@ckeditor/ckeditor5-engine": "^35.3.2",
24
- "@ckeditor/ckeditor5-enter": "^35.3.2",
25
- "@ckeditor/ckeditor5-heading": "^35.3.2",
26
- "@ckeditor/ckeditor5-link": "^35.3.2",
27
- "@ckeditor/ckeditor5-typing": "^35.3.2",
28
- "@ckeditor/ckeditor5-undo": "^35.3.2",
20
+ "@ckeditor/ckeditor5-basic-styles": "^36.0.0",
21
+ "@ckeditor/ckeditor5-clipboard": "^36.0.0",
22
+ "@ckeditor/ckeditor5-editor-classic": "^36.0.0",
23
+ "@ckeditor/ckeditor5-engine": "^36.0.0",
24
+ "@ckeditor/ckeditor5-enter": "^36.0.0",
25
+ "@ckeditor/ckeditor5-heading": "^36.0.0",
26
+ "@ckeditor/ckeditor5-link": "^36.0.0",
27
+ "@ckeditor/ckeditor5-typing": "^36.0.0",
28
+ "@ckeditor/ckeditor5-undo": "^36.0.0",
29
29
  "typescript": "^4.8.4",
30
30
  "webpack": "^5.58.1",
31
31
  "webpack-cli": "^4.9.0"
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module paragraph/insertparagraphcommand
7
7
  */
8
- import Command from '@ckeditor/ckeditor5-core/src/command';
8
+ import { Command } from '@ckeditor/ckeditor5-core';
9
9
  /**
10
10
  * The insert paragraph command. It inserts a new paragraph at a specific
11
11
  * {@link module:engine/model/position~Position document position}.
package/src/paragraph.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import ParagraphCommand from './paragraphcommand';
9
9
  import InsertParagraphCommand from './insertparagraphcommand';
10
- import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
10
+ import { Plugin } from '@ckeditor/ckeditor5-core';
11
11
  /**
12
12
  * The paragraph feature for the editor.
13
13
  *
@@ -1,13 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module paragraph/paragraphbuttonui
7
7
  */
8
- import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
9
- import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
10
- import icon from '@ckeditor/ckeditor5-core/theme/icons/paragraph.svg';
8
+ import { Plugin, icons } from '@ckeditor/ckeditor5-core';
9
+ import { ButtonView } from '@ckeditor/ckeditor5-ui';
10
+ import Paragraph from './paragraph';
11
+ const icon = icons.paragraph;
11
12
  /**
12
13
  * This plugin defines the `'paragraph'` button. It can be used together with
13
14
  * {@link module:heading/headingbuttonsui~HeadingButtonsUI} to replace the standard heading dropdown.
@@ -26,6 +27,15 @@ import icon from '@ckeditor/ckeditor5-core/theme/icons/paragraph.svg';
26
27
  * @extends module:core/plugin~Plugin
27
28
  */
28
29
  export default class ParagraphButtonUI extends Plugin {
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ static get requires() {
34
+ return [Paragraph];
35
+ }
36
+ /**
37
+ * @inheritDoc
38
+ */
29
39
  init() {
30
40
  const editor = this.editor;
31
41
  const t = editor.t;
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module paragraph/paragraphcommand
7
7
  */
8
- import Command from '@ckeditor/ckeditor5-core/src/command';
9
- import first from '@ckeditor/ckeditor5-utils/src/first';
8
+ import { Command } from '@ckeditor/ckeditor5-core';
9
+ import { first } from '@ckeditor/ckeditor5-utils';
10
10
  /**
11
11
  * The paragraph command.
12
12
  *