@ckeditor/ckeditor5-typing 35.3.2 → 35.4.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/package.json +21 -21
- package/src/delete.js +1 -1
- package/src/deletecommand.js +2 -2
- package/src/deleteobserver.js +2 -4
- package/src/input.js +2 -2
- package/src/inserttextcommand.js +1 -1
- package/src/inserttextobserver.js +2 -4
- package/src/texttransformation.js +1 -1
- package/src/textwatcher.js +2 -2
- package/src/twostepcaretmovement.js +2 -2
- package/src/typing.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-typing",
|
|
3
|
-
"version": "35.
|
|
3
|
+
"version": "35.4.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": "^35.
|
|
16
|
-
"@ckeditor/ckeditor5-engine": "^35.
|
|
17
|
-
"@ckeditor/ckeditor5-utils": "^35.
|
|
15
|
+
"@ckeditor/ckeditor5-core": "^35.4.0",
|
|
16
|
+
"@ckeditor/ckeditor5-engine": "^35.4.0",
|
|
17
|
+
"@ckeditor/ckeditor5-utils": "^35.4.0",
|
|
18
18
|
"lodash-es": "^4.17.15"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@ckeditor/ckeditor5-autoformat": "^35.
|
|
22
|
-
"@ckeditor/ckeditor5-basic-styles": "^35.
|
|
23
|
-
"@ckeditor/ckeditor5-block-quote": "^35.
|
|
24
|
-
"@ckeditor/ckeditor5-code-block": "^35.
|
|
25
|
-
"@ckeditor/ckeditor5-editor-classic": "^35.
|
|
26
|
-
"@ckeditor/ckeditor5-enter": "^35.
|
|
27
|
-
"@ckeditor/ckeditor5-essentials": "^35.
|
|
28
|
-
"@ckeditor/ckeditor5-heading": "^35.
|
|
29
|
-
"@ckeditor/ckeditor5-image": "^35.
|
|
30
|
-
"@ckeditor/ckeditor5-indent": "^35.
|
|
31
|
-
"@ckeditor/ckeditor5-link": "^35.
|
|
32
|
-
"@ckeditor/ckeditor5-list": "^35.
|
|
33
|
-
"@ckeditor/ckeditor5-media-embed": "^35.
|
|
34
|
-
"@ckeditor/ckeditor5-mention": "^35.
|
|
35
|
-
"@ckeditor/ckeditor5-paragraph": "^35.
|
|
36
|
-
"@ckeditor/ckeditor5-table": "^35.
|
|
37
|
-
"@ckeditor/ckeditor5-undo": "^35.
|
|
21
|
+
"@ckeditor/ckeditor5-autoformat": "^35.4.0",
|
|
22
|
+
"@ckeditor/ckeditor5-basic-styles": "^35.4.0",
|
|
23
|
+
"@ckeditor/ckeditor5-block-quote": "^35.4.0",
|
|
24
|
+
"@ckeditor/ckeditor5-code-block": "^35.4.0",
|
|
25
|
+
"@ckeditor/ckeditor5-editor-classic": "^35.4.0",
|
|
26
|
+
"@ckeditor/ckeditor5-enter": "^35.4.0",
|
|
27
|
+
"@ckeditor/ckeditor5-essentials": "^35.4.0",
|
|
28
|
+
"@ckeditor/ckeditor5-heading": "^35.4.0",
|
|
29
|
+
"@ckeditor/ckeditor5-image": "^35.4.0",
|
|
30
|
+
"@ckeditor/ckeditor5-indent": "^35.4.0",
|
|
31
|
+
"@ckeditor/ckeditor5-link": "^35.4.0",
|
|
32
|
+
"@ckeditor/ckeditor5-list": "^35.4.0",
|
|
33
|
+
"@ckeditor/ckeditor5-media-embed": "^35.4.0",
|
|
34
|
+
"@ckeditor/ckeditor5-mention": "^35.4.0",
|
|
35
|
+
"@ckeditor/ckeditor5-paragraph": "^35.4.0",
|
|
36
|
+
"@ckeditor/ckeditor5-table": "^35.4.0",
|
|
37
|
+
"@ckeditor/ckeditor5-undo": "^35.4.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
package/src/deletecommand.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
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
|
@@ -5,10 +5,8 @@
|
|
|
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/input.js
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
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
|
@@ -5,7 +5,7 @@
|
|
|
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.
|
|
@@ -5,10 +5,8 @@
|
|
|
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).
|
|
@@ -5,7 +5,7 @@
|
|
|
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
|
@@ -5,7 +5,7 @@
|
|
|
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
|
*
|
|
@@ -5,8 +5,8 @@
|
|
|
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}
|