@ckeditor/ckeditor5-typing 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 +1 -1
- package/package.json +21 -21
- package/src/delete.js +2 -2
- package/src/deletecommand.js +3 -3
- package/src/deleteobserver.js +3 -5
- package/src/index.js +1 -1
- package/src/input.js +3 -3
- package/src/inserttextcommand.js +2 -2
- package/src/inserttextobserver.js +3 -5
- package/src/texttransformation.js +2 -2
- package/src/textwatcher.js +3 -3
- package/src/twostepcaretmovement.js +3 -3
- package/src/typing.js +2 -2
- package/src/typingconfig.js +1 -1
- package/src/utils/changebuffer.js +1 -1
- package/src/utils/findattributerange.js +1 -1
- package/src/utils/getlasttextline.js +1 -1
- package/src/utils/inlinehighlight.js +1 -1
package/LICENSE.md
CHANGED
|
@@ -2,7 +2,7 @@ Software License Agreement
|
|
|
2
2
|
==========================
|
|
3
3
|
|
|
4
4
|
**CKEditor 5 typing feature** – https://github.com/ckeditor/ckeditor5-typing <br>
|
|
5
|
-
Copyright (c) 2003-
|
|
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
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-typing",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "36.0.0",
|
|
4
4
|
"description": "Typing feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,29 +12,29 @@
|
|
|
12
12
|
],
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@ckeditor/ckeditor5-core": "^
|
|
16
|
-
"@ckeditor/ckeditor5-engine": "^
|
|
17
|
-
"@ckeditor/ckeditor5-utils": "^
|
|
15
|
+
"@ckeditor/ckeditor5-core": "^36.0.0",
|
|
16
|
+
"@ckeditor/ckeditor5-engine": "^36.0.0",
|
|
17
|
+
"@ckeditor/ckeditor5-utils": "^36.0.0",
|
|
18
18
|
"lodash-es": "^4.17.15"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@ckeditor/ckeditor5-autoformat": "^
|
|
22
|
-
"@ckeditor/ckeditor5-basic-styles": "^
|
|
23
|
-
"@ckeditor/ckeditor5-block-quote": "^
|
|
24
|
-
"@ckeditor/ckeditor5-code-block": "^
|
|
25
|
-
"@ckeditor/ckeditor5-editor-classic": "^
|
|
26
|
-
"@ckeditor/ckeditor5-enter": "^
|
|
27
|
-
"@ckeditor/ckeditor5-essentials": "^
|
|
28
|
-
"@ckeditor/ckeditor5-heading": "^
|
|
29
|
-
"@ckeditor/ckeditor5-image": "^
|
|
30
|
-
"@ckeditor/ckeditor5-indent": "^
|
|
31
|
-
"@ckeditor/ckeditor5-link": "^
|
|
32
|
-
"@ckeditor/ckeditor5-list": "^
|
|
33
|
-
"@ckeditor/ckeditor5-media-embed": "^
|
|
34
|
-
"@ckeditor/ckeditor5-mention": "^
|
|
35
|
-
"@ckeditor/ckeditor5-paragraph": "^
|
|
36
|
-
"@ckeditor/ckeditor5-table": "^
|
|
37
|
-
"@ckeditor/ckeditor5-undo": "^
|
|
21
|
+
"@ckeditor/ckeditor5-autoformat": "^36.0.0",
|
|
22
|
+
"@ckeditor/ckeditor5-basic-styles": "^36.0.0",
|
|
23
|
+
"@ckeditor/ckeditor5-block-quote": "^36.0.0",
|
|
24
|
+
"@ckeditor/ckeditor5-code-block": "^36.0.0",
|
|
25
|
+
"@ckeditor/ckeditor5-editor-classic": "^36.0.0",
|
|
26
|
+
"@ckeditor/ckeditor5-enter": "^36.0.0",
|
|
27
|
+
"@ckeditor/ckeditor5-essentials": "^36.0.0",
|
|
28
|
+
"@ckeditor/ckeditor5-heading": "^36.0.0",
|
|
29
|
+
"@ckeditor/ckeditor5-image": "^36.0.0",
|
|
30
|
+
"@ckeditor/ckeditor5-indent": "^36.0.0",
|
|
31
|
+
"@ckeditor/ckeditor5-link": "^36.0.0",
|
|
32
|
+
"@ckeditor/ckeditor5-list": "^36.0.0",
|
|
33
|
+
"@ckeditor/ckeditor5-media-embed": "^36.0.0",
|
|
34
|
+
"@ckeditor/ckeditor5-mention": "^36.0.0",
|
|
35
|
+
"@ckeditor/ckeditor5-paragraph": "^36.0.0",
|
|
36
|
+
"@ckeditor/ckeditor5-table": "^36.0.0",
|
|
37
|
+
"@ckeditor/ckeditor5-undo": "^36.0.0",
|
|
38
38
|
"typescript": "^4.8.4",
|
|
39
39
|
"webpack": "^5.58.1",
|
|
40
40
|
"webpack-cli": "^4.9.0"
|
package/src/delete.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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 typing/delete
|
|
7
7
|
*/
|
|
8
|
-
import Plugin from '@ckeditor/ckeditor5-core
|
|
8
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
import DeleteCommand from './deletecommand';
|
|
10
10
|
import DeleteObserver from './deleteobserver';
|
|
11
11
|
/**
|
package/src/deletecommand.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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 typing/deletecommand
|
|
7
7
|
*/
|
|
8
|
-
import Command from '@ckeditor/ckeditor5-core
|
|
9
|
-
import count from '@ckeditor/ckeditor5-utils
|
|
8
|
+
import { Command } from '@ckeditor/ckeditor5-core';
|
|
9
|
+
import { count } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
import ChangeBuffer from './utils/changebuffer';
|
|
11
11
|
// Import config.typing declaration.
|
|
12
12
|
import './typingconfig';
|
package/src/deleteobserver.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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 typing/deleteobserver
|
|
7
7
|
*/
|
|
8
|
-
import Observer from '@ckeditor/ckeditor5-engine/src/view/observer/observer';
|
|
9
|
-
import DomEventData from '@ckeditor/ckeditor5-engine/src/view/observer/domeventdata';
|
|
10
|
-
import BubblingEventInfo from '@ckeditor/ckeditor5-engine/src/view/observer/bubblingeventinfo';
|
|
11
8
|
import { env, keyCodes } from '@ckeditor/ckeditor5-utils';
|
|
9
|
+
import { BubblingEventInfo, DomEventData, Observer } from '@ckeditor/ckeditor5-engine';
|
|
12
10
|
const DELETE_CHARACTER = 'character';
|
|
13
11
|
const DELETE_WORD = 'word';
|
|
14
12
|
const DELETE_CODE_POINT = 'codePoint';
|
|
@@ -204,7 +202,7 @@ function enableChromeWorkaround(observer) {
|
|
|
204
202
|
if (isMatchingBeforeInput) {
|
|
205
203
|
beforeInputReceived = true;
|
|
206
204
|
}
|
|
207
|
-
});
|
|
205
|
+
}, { priority: 'high' });
|
|
208
206
|
document.on('beforeinput', (evt, { inputType, data }) => {
|
|
209
207
|
const shouldIgnoreBeforeInput = pressedKeyCode == keyCodes.delete &&
|
|
210
208
|
inputType == 'insertText' &&
|
package/src/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
|
/**
|
package/src/input.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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 typing/input
|
|
7
7
|
*/
|
|
8
|
-
import Plugin from '@ckeditor/ckeditor5-core
|
|
8
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
|
+
import { env } from '@ckeditor/ckeditor5-utils';
|
|
9
10
|
import InsertTextCommand from './inserttextcommand';
|
|
10
11
|
import InsertTextObserver from './inserttextobserver';
|
|
11
|
-
import env from '@ckeditor/ckeditor5-utils/src/env';
|
|
12
12
|
// Import config.typing declaration.
|
|
13
13
|
import './typingconfig';
|
|
14
14
|
/**
|
package/src/inserttextcommand.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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 typing/inserttextcommand
|
|
7
7
|
*/
|
|
8
|
-
import Command from '@ckeditor/ckeditor5-core
|
|
8
|
+
import { Command } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
import ChangeBuffer from './utils/changebuffer';
|
|
10
10
|
/**
|
|
11
11
|
* The insert text command. Used by the {@link module:typing/input~Input input feature} to handle typing.
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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 typing/inserttextobserver
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
9
|
-
import Observer from '@ckeditor/ckeditor5-engine
|
|
10
|
-
import EventInfo from '@ckeditor/ckeditor5-utils/src/eventinfo';
|
|
11
|
-
import env from '@ckeditor/ckeditor5-utils/src/env';
|
|
8
|
+
import { env, EventInfo } from '@ckeditor/ckeditor5-utils';
|
|
9
|
+
import { DomEventData, Observer } from '@ckeditor/ckeditor5-engine';
|
|
12
10
|
const TYPING_INPUT_TYPES = [
|
|
13
11
|
// For collapsed range:
|
|
14
12
|
// - This one is a regular typing (all browsers, all systems).
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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 typing/texttransformation
|
|
7
7
|
*/
|
|
8
|
-
import Plugin from '@ckeditor/ckeditor5-core
|
|
8
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
import TextWatcher from './textwatcher';
|
|
10
10
|
import { escapeRegExp } from 'lodash-es';
|
|
11
11
|
// All named transformations.
|
package/src/textwatcher.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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 typing/textwatcher
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { ObservableMixin } from '@ckeditor/ckeditor5-utils';
|
|
9
9
|
import getLastTextLine from './utils/getlasttextline';
|
|
10
10
|
/**
|
|
11
11
|
* The text watcher feature.
|
|
@@ -17,7 +17,7 @@ import getLastTextLine from './utils/getlasttextline';
|
|
|
17
17
|
* @private
|
|
18
18
|
* @mixes module:utils/observablemixin~ObservableMixin
|
|
19
19
|
*/
|
|
20
|
-
export default class TextWatcher extends
|
|
20
|
+
export default class TextWatcher extends ObservableMixin() {
|
|
21
21
|
/**
|
|
22
22
|
* Creates a text watcher instance.
|
|
23
23
|
*
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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 typing/twostepcaretmovement
|
|
7
7
|
*/
|
|
8
|
-
import Plugin from '@ckeditor/ckeditor5-core
|
|
9
|
-
import { keyCodes } from '@ckeditor/ckeditor5-utils
|
|
8
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
|
+
import { keyCodes } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
/**
|
|
11
11
|
* This plugin enables the two-step caret (phantom) movement behavior for
|
|
12
12
|
* {@link module:typing/twostepcaretmovement~TwoStepCaretMovement#registerAttribute registered attributes}
|
package/src/typing.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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 typing/typing
|
|
7
7
|
*/
|
|
8
|
-
import Plugin from '@ckeditor/ckeditor5-core
|
|
8
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
import Input from './input';
|
|
10
10
|
import Delete from './delete';
|
|
11
11
|
/**
|
package/src/typingconfig.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
|
import findAttributeRange from './findattributerange';
|