@ckeditor/ckeditor5-typing 37.0.0-alpha.0 → 37.0.0-alpha.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/package.json +22 -22
- package/src/augmentation.d.ts +27 -0
- package/src/augmentation.js +5 -0
- package/src/delete.d.ts +0 -5
- package/src/deletecommand.d.ts +0 -7
- package/src/deletecommand.js +0 -2
- package/src/deleteobserver.d.ts +1 -1
- package/src/index.d.ts +2 -0
- package/src/index.js +1 -0
- package/src/input.d.ts +0 -6
- package/src/input.js +0 -2
- package/src/inserttextcommand.d.ts +0 -5
- package/src/inserttextobserver.d.ts +1 -1
- package/src/texttransformation.d.ts +0 -5
- package/src/textwatcher.d.ts +3 -3
- package/src/twostepcaretmovement.d.ts +0 -5
- package/src/typing.d.ts +0 -5
- package/src/typingconfig.d.ts +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-typing",
|
|
3
|
-
"version": "37.0.0-alpha.
|
|
3
|
+
"version": "37.0.0-alpha.1",
|
|
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": "^37.0.0-alpha.
|
|
16
|
-
"@ckeditor/ckeditor5-engine": "^37.0.0-alpha.
|
|
17
|
-
"@ckeditor/ckeditor5-utils": "^37.0.0-alpha.
|
|
15
|
+
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.1",
|
|
16
|
+
"@ckeditor/ckeditor5-engine": "^37.0.0-alpha.1",
|
|
17
|
+
"@ckeditor/ckeditor5-utils": "^37.0.0-alpha.1",
|
|
18
18
|
"lodash-es": "^4.17.15"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@ckeditor/ckeditor5-autoformat": "^37.0.0-alpha.
|
|
22
|
-
"@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.
|
|
23
|
-
"@ckeditor/ckeditor5-block-quote": "^37.0.0-alpha.
|
|
24
|
-
"@ckeditor/ckeditor5-code-block": "^37.0.0-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-enter": "^37.0.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-essentials": "^37.0.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-heading": "^37.0.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-image": "^37.0.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-indent": "^37.0.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-link": "^37.0.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-list": "^37.0.0-alpha.
|
|
33
|
-
"@ckeditor/ckeditor5-media-embed": "^37.0.0-alpha.
|
|
34
|
-
"@ckeditor/ckeditor5-mention": "^37.0.0-alpha.
|
|
35
|
-
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-table": "^37.0.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-undo": "^37.0.0-alpha.
|
|
21
|
+
"@ckeditor/ckeditor5-autoformat": "^37.0.0-alpha.1",
|
|
22
|
+
"@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.1",
|
|
23
|
+
"@ckeditor/ckeditor5-block-quote": "^37.0.0-alpha.1",
|
|
24
|
+
"@ckeditor/ckeditor5-code-block": "^37.0.0-alpha.1",
|
|
25
|
+
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.1",
|
|
26
|
+
"@ckeditor/ckeditor5-enter": "^37.0.0-alpha.1",
|
|
27
|
+
"@ckeditor/ckeditor5-essentials": "^37.0.0-alpha.1",
|
|
28
|
+
"@ckeditor/ckeditor5-heading": "^37.0.0-alpha.1",
|
|
29
|
+
"@ckeditor/ckeditor5-image": "^37.0.0-alpha.1",
|
|
30
|
+
"@ckeditor/ckeditor5-indent": "^37.0.0-alpha.1",
|
|
31
|
+
"@ckeditor/ckeditor5-link": "^37.0.0-alpha.1",
|
|
32
|
+
"@ckeditor/ckeditor5-list": "^37.0.0-alpha.1",
|
|
33
|
+
"@ckeditor/ckeditor5-media-embed": "^37.0.0-alpha.1",
|
|
34
|
+
"@ckeditor/ckeditor5-mention": "^37.0.0-alpha.1",
|
|
35
|
+
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.1",
|
|
36
|
+
"@ckeditor/ckeditor5-table": "^37.0.0-alpha.1",
|
|
37
|
+
"@ckeditor/ckeditor5-undo": "^37.0.0-alpha.1",
|
|
38
38
|
"typescript": "^4.8.4",
|
|
39
39
|
"webpack": "^5.58.1",
|
|
40
40
|
"webpack-cli": "^4.9.0"
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"CHANGELOG.md"
|
|
62
62
|
],
|
|
63
63
|
"scripts": {
|
|
64
|
-
"build": "tsc -p ./tsconfig.
|
|
64
|
+
"build": "tsc -p ./tsconfig.json",
|
|
65
65
|
"postversion": "npm run build"
|
|
66
66
|
},
|
|
67
67
|
"types": "src/index.d.ts"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
import type { Delete, DeleteCommand, Input, InsertTextCommand, TextTransformation, TwoStepCaretMovement, Typing, TypingConfig } from './index';
|
|
6
|
+
declare module '@ckeditor/ckeditor5-core' {
|
|
7
|
+
interface EditorConfig {
|
|
8
|
+
/**
|
|
9
|
+
* The configuration of the typing features. Used by the features from the `@ckeditor/ckeditor5-typing` package.
|
|
10
|
+
*
|
|
11
|
+
* Read more in {@link module:typing/typingconfig~TypingConfig}.
|
|
12
|
+
*/
|
|
13
|
+
typing?: TypingConfig;
|
|
14
|
+
}
|
|
15
|
+
interface CommandsMap {
|
|
16
|
+
deleteForward: DeleteCommand;
|
|
17
|
+
delete: DeleteCommand;
|
|
18
|
+
insertText: InsertTextCommand;
|
|
19
|
+
}
|
|
20
|
+
interface PluginsMap {
|
|
21
|
+
[Delete.pluginName]: Delete;
|
|
22
|
+
[Input.pluginName]: Input;
|
|
23
|
+
[TextTransformation.pluginName]: TextTransformation;
|
|
24
|
+
[TwoStepCaretMovement.pluginName]: TwoStepCaretMovement;
|
|
25
|
+
[Typing.pluginName]: Typing;
|
|
26
|
+
}
|
|
27
|
+
}
|
package/src/delete.d.ts
CHANGED
package/src/deletecommand.d.ts
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
import { Command, type Editor } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
import type { DocumentSelection, Selection } from '@ckeditor/ckeditor5-engine';
|
|
10
10
|
import ChangeBuffer from './utils/changebuffer';
|
|
11
|
-
import './typingconfig';
|
|
12
11
|
/**
|
|
13
12
|
* The delete command. Used by the {@link module:typing/delete~Delete delete feature} to handle the <kbd>Delete</kbd> and
|
|
14
13
|
* <kbd>Backspace</kbd> keys.
|
|
@@ -82,9 +81,3 @@ export default class DeleteCommand extends Command {
|
|
|
82
81
|
*/
|
|
83
82
|
private _shouldReplaceFirstBlockWithParagraph;
|
|
84
83
|
}
|
|
85
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
86
|
-
interface CommandsMap {
|
|
87
|
-
deleteForward: DeleteCommand;
|
|
88
|
-
delete: DeleteCommand;
|
|
89
|
-
}
|
|
90
|
-
}
|
package/src/deletecommand.js
CHANGED
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
import { Command } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
import { count } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
import ChangeBuffer from './utils/changebuffer';
|
|
11
|
-
// Import config.typing declaration.
|
|
12
|
-
import './typingconfig';
|
|
13
11
|
/**
|
|
14
12
|
* The delete command. Used by the {@link module:typing/delete~Delete delete feature} to handle the <kbd>Delete</kbd> and
|
|
15
13
|
* <kbd>Backspace</kbd> keys.
|
package/src/deleteobserver.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export default class DeleteObserver extends Observer {
|
|
|
22
22
|
* Note: This event is fired by the {@link module:typing/deleteobserver~DeleteObserver delete observer}
|
|
23
23
|
* (usually registered by the {@link module:typing/delete~Delete delete feature}).
|
|
24
24
|
*
|
|
25
|
-
* @eventName delete
|
|
25
|
+
* @eventName module:engine/view/document~Document#delete
|
|
26
26
|
* @param data The event data.
|
|
27
27
|
*/
|
|
28
28
|
export type ViewDocumentDeleteEvent = BubblingEvent<{
|
package/src/index.d.ts
CHANGED
|
@@ -15,8 +15,10 @@ export { default as inlineHighlight } from './utils/inlinehighlight';
|
|
|
15
15
|
export { default as findAttributeRange } from './utils/findattributerange';
|
|
16
16
|
export { default as getLastTextLine, type LastTextLineData } from './utils/getlasttextline';
|
|
17
17
|
export { default as InsertTextCommand, type InsertTextCommandExecuteEvent } from './inserttextcommand';
|
|
18
|
+
export type { default as DeleteCommand } from './deletecommand';
|
|
18
19
|
export type { TypingConfig } from './typingconfig';
|
|
19
20
|
export type { ViewDocumentDeleteEvent } from './deleteobserver';
|
|
20
21
|
export type { ViewDocumentInsertTextEvent, InsertTextEventData } from './inserttextobserver';
|
|
21
22
|
export type { TextWatcherMatchedEvent } from './textwatcher';
|
|
22
23
|
export type { TextWatcherMatchedDataEvent } from './textwatcher';
|
|
24
|
+
import './augmentation';
|
package/src/index.js
CHANGED
|
@@ -15,3 +15,4 @@ export { default as inlineHighlight } from './utils/inlinehighlight';
|
|
|
15
15
|
export { default as findAttributeRange } from './utils/findattributerange';
|
|
16
16
|
export { default as getLastTextLine } from './utils/getlasttextline';
|
|
17
17
|
export { default as InsertTextCommand } from './inserttextcommand';
|
|
18
|
+
import './augmentation';
|
package/src/input.d.ts
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* @module typing/input
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
|
-
import './typingconfig';
|
|
10
9
|
/**
|
|
11
10
|
* Handles text input coming from the keyboard or other input methods.
|
|
12
11
|
*/
|
|
@@ -20,8 +19,3 @@ export default class Input extends Plugin {
|
|
|
20
19
|
*/
|
|
21
20
|
init(): void;
|
|
22
21
|
}
|
|
23
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
24
|
-
interface PluginsMap {
|
|
25
|
-
[Input.pluginName]: Input;
|
|
26
|
-
}
|
|
27
|
-
}
|
package/src/input.js
CHANGED
|
@@ -9,8 +9,6 @@ import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
|
9
9
|
import { env } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
import InsertTextCommand from './inserttextcommand';
|
|
11
11
|
import InsertTextObserver from './inserttextobserver';
|
|
12
|
-
// Import config.typing declaration.
|
|
13
|
-
import './typingconfig';
|
|
14
12
|
/**
|
|
15
13
|
* Handles text input coming from the keyboard or other input methods.
|
|
16
14
|
*/
|
|
@@ -26,7 +26,7 @@ export default class InsertTextObserver extends Observer {
|
|
|
26
26
|
*
|
|
27
27
|
* **Note**: This event is fired by the {@link module:typing/inserttextobserver~InsertTextObserver input feature}.
|
|
28
28
|
*
|
|
29
|
-
* @eventName module:engine/view/document~Document#
|
|
29
|
+
* @eventName module:engine/view/document~Document#insertText
|
|
30
30
|
* @param data The event data.
|
|
31
31
|
*/
|
|
32
32
|
export type ViewDocumentInsertTextEvent = {
|
package/src/textwatcher.d.ts
CHANGED
|
@@ -86,7 +86,7 @@ export type TextWatcherMatchedEvent<TCallbackResult extends Record<string, unkno
|
|
|
86
86
|
/**
|
|
87
87
|
* Fired whenever the text watcher found a match for data changes.
|
|
88
88
|
*
|
|
89
|
-
* @eventName matched:data
|
|
89
|
+
* @eventName ~TextWatcher#matched:data
|
|
90
90
|
* @param data Event data.
|
|
91
91
|
* @param data.testResult The additional data returned from the {@link module:typing/textwatcher~TextWatcher#testCallback}.
|
|
92
92
|
*/
|
|
@@ -108,7 +108,7 @@ export interface TextWatcherMatchedDataEventData {
|
|
|
108
108
|
/**
|
|
109
109
|
* Fired whenever the text watcher found a match for selection changes.
|
|
110
110
|
*
|
|
111
|
-
* @eventName matched:selection
|
|
111
|
+
* @eventName ~TextWatcher#matched:selection
|
|
112
112
|
* @param data Event data.
|
|
113
113
|
* @param data.testResult The additional data returned from the {@link module:typing/textwatcher~TextWatcher#testCallback}.
|
|
114
114
|
*/
|
|
@@ -129,7 +129,7 @@ export interface TextWatcherMatchedSelectionEventData {
|
|
|
129
129
|
/**
|
|
130
130
|
* Fired whenever the text does not match anymore. Fired only when the text watcher found a match.
|
|
131
131
|
*
|
|
132
|
-
* @eventName unmatched
|
|
132
|
+
* @eventName ~TextWatcher#unmatched
|
|
133
133
|
*/
|
|
134
134
|
export type TextWatcherUnmatchedEvent = {
|
|
135
135
|
name: 'unmatched';
|
package/src/typing.d.ts
CHANGED
package/src/typingconfig.d.ts
CHANGED
|
@@ -202,13 +202,3 @@ export interface TextTransformationDescription {
|
|
|
202
202
|
*/
|
|
203
203
|
to: string | Array<string | null> | ((matches: Array<string>) => Array<string | null>);
|
|
204
204
|
}
|
|
205
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
206
|
-
interface EditorConfig {
|
|
207
|
-
/**
|
|
208
|
-
* The configuration of the typing features. Used by the features from the `@ckeditor/ckeditor5-typing` package.
|
|
209
|
-
*
|
|
210
|
-
* Read more in {@link module:typing/typingconfig~TypingConfig}.
|
|
211
|
-
*/
|
|
212
|
-
typing?: TypingConfig;
|
|
213
|
-
}
|
|
214
|
-
}
|