@ckeditor/ckeditor5-enter 40.2.0 → 41.1.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&nbsp;5 enter feature** – https://github.com/ckeditor/ckeditor5-enter <br>
5
- Copyright (c) 2003–2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
5
+ Copyright (c) 2003–2024, [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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-enter",
3
- "version": "40.2.0",
3
+ "version": "41.1.0",
4
4
  "description": "Enter feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -10,11 +10,12 @@
10
10
  "ckeditor5-plugin",
11
11
  "ckeditor5-dll"
12
12
  ],
13
+ "type": "module",
13
14
  "main": "src/index.js",
14
15
  "dependencies": {
15
- "@ckeditor/ckeditor5-core": "40.2.0",
16
- "@ckeditor/ckeditor5-engine": "40.2.0",
17
- "@ckeditor/ckeditor5-utils": "40.2.0"
16
+ "@ckeditor/ckeditor5-core": "41.1.0",
17
+ "@ckeditor/ckeditor5-engine": "41.1.0",
18
+ "@ckeditor/ckeditor5-utils": "41.1.0"
18
19
  },
19
20
  "author": "CKSource (http://cksource.com/)",
20
21
  "license": "GPL-2.0-or-later",
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, 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
- import type { Enter, ShiftEnter, EnterCommand, ShiftEnterCommand } from './index';
5
+ import type { Enter, ShiftEnter, EnterCommand, ShiftEnterCommand } from './index.js';
6
6
  declare module '@ckeditor/ckeditor5-core' {
7
7
  interface PluginsMap {
8
8
  [Enter.pluginName]: Enter;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, 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
  export {};
package/src/enter.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, 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
  /**
package/src/enter.js CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, 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 enter/enter
7
7
  */
8
8
  import { Plugin } from '@ckeditor/ckeditor5-core';
9
- import EnterCommand from './entercommand';
10
- import EnterObserver from './enterobserver';
9
+ import EnterCommand from './entercommand.js';
10
+ import EnterObserver from './enterobserver.js';
11
11
  /**
12
12
  * This plugin handles the <kbd>Enter</kbd> keystroke (hard line break) in the editor.
13
13
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, 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,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, 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 enter/entercommand
7
7
  */
8
8
  import { Command } from '@ckeditor/ckeditor5-core';
9
- import { getCopyOnEnterAttributes } from './utils';
9
+ import { getCopyOnEnterAttributes } from './utils.js';
10
10
  /**
11
11
  * Enter command used by the {@link module:enter/enter~Enter Enter feature} to handle the <kbd>Enter</kbd> keystroke.
12
12
  */
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, 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 enter/enterobserver
7
7
  */
8
- import { Observer, DomEventData, type View, type BubblingEvent } from '@ckeditor/ckeditor5-engine';
8
+ import { Observer, DomEventData, type EditingView, type BubblingEvent } from '@ckeditor/ckeditor5-engine';
9
9
  /**
10
10
  * Enter observer introduces the {@link module:engine/view/document~Document#event:enter `Document#enter`} event.
11
11
  */
@@ -13,7 +13,7 @@ export default class EnterObserver extends Observer {
13
13
  /**
14
14
  * @inheritDoc
15
15
  */
16
- constructor(view: View);
16
+ constructor(view: EditingView);
17
17
  /**
18
18
  * @inheritDoc
19
19
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, 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
  /**
package/src/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, 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 enter
7
7
  */
8
- export { default as Enter } from './enter';
9
- export { default as ShiftEnter } from './shiftenter';
10
- export type { ViewDocumentEnterEvent } from './enterobserver';
11
- export type { default as EnterCommand, EnterCommandAfterExecuteEvent } from './entercommand';
12
- export type { default as ShiftEnterCommand } from './shiftentercommand';
13
- import './augmentation';
8
+ export { default as Enter } from './enter.js';
9
+ export { default as ShiftEnter } from './shiftenter.js';
10
+ export type { ViewDocumentEnterEvent } from './enterobserver.js';
11
+ export type { default as EnterCommand, EnterCommandAfterExecuteEvent } from './entercommand.js';
12
+ export type { default as ShiftEnterCommand } from './shiftentercommand.js';
13
+ import './augmentation.js';
package/src/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, 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 enter
7
7
  */
8
- export { default as Enter } from './enter';
9
- export { default as ShiftEnter } from './shiftenter';
10
- import './augmentation';
8
+ export { default as Enter } from './enter.js';
9
+ export { default as ShiftEnter } from './shiftenter.js';
10
+ import './augmentation.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, 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
  import { Plugin } from '@ckeditor/ckeditor5-core';
package/src/shiftenter.js CHANGED
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, 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 enter/shiftenter
7
7
  */
8
- import ShiftEnterCommand from './shiftentercommand';
9
- import EnterObserver from './enterobserver';
8
+ import ShiftEnterCommand from './shiftentercommand.js';
9
+ import EnterObserver from './enterobserver.js';
10
10
  import { Plugin } from '@ckeditor/ckeditor5-core';
11
11
  /**
12
12
  * This plugin handles the <kbd>Shift</kbd>+<kbd>Enter</kbd> keystroke (soft line break) in the editor.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, 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,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, 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 enter/shiftentercommand
7
7
  */
8
8
  import { Command } from '@ckeditor/ckeditor5-core';
9
- import { getCopyOnEnterAttributes } from './utils';
9
+ import { getCopyOnEnterAttributes } from './utils.js';
10
10
  /**
11
11
  * ShiftEnter command. It is used by the {@link module:enter/shiftenter~ShiftEnter ShiftEnter feature} to handle
12
12
  * the <kbd>Shift</kbd>+<kbd>Enter</kbd> keystroke.
package/src/utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, 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
  /**
package/src/utils.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, 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
  /**