@ckeditor/ckeditor5-link 38.0.1 → 38.1.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/build/link.js +1 -1
- package/build/link.js.map +1 -0
- package/package.json +3 -32
- package/src/augmentation.d.ts +30 -30
- package/src/augmentation.js +5 -5
- package/src/autolink.d.ts +60 -60
- package/src/autolink.js +216 -216
- package/src/index.d.ts +18 -18
- package/src/index.js +17 -17
- package/src/link.d.ts +27 -27
- package/src/link.js +31 -31
- package/src/linkcommand.d.ts +132 -132
- package/src/linkcommand.js +285 -285
- package/src/linkconfig.d.ts +251 -251
- package/src/linkconfig.js +5 -5
- package/src/linkediting.d.ts +106 -106
- package/src/linkediting.js +547 -547
- package/src/linkimage.d.ts +27 -27
- package/src/linkimage.js +31 -31
- package/src/linkimageediting.d.ts +39 -39
- package/src/linkimageediting.js +245 -245
- package/src/linkimageui.d.ts +40 -40
- package/src/linkimageui.js +96 -96
- package/src/linkui.d.ts +165 -165
- package/src/linkui.js +581 -581
- package/src/ui/linkactionsview.d.ts +101 -101
- package/src/ui/linkactionsview.js +156 -156
- package/src/ui/linkformview.d.ts +141 -141
- package/src/ui/linkformview.js +232 -232
- package/src/unlinkcommand.d.ts +31 -31
- package/src/unlinkcommand.js +66 -66
- package/src/utils/automaticdecorators.d.ts +45 -45
- package/src/utils/automaticdecorators.js +140 -140
- package/src/utils/manualdecorator.d.ts +72 -72
- package/src/utils/manualdecorator.js +47 -47
- package/src/utils.d.ts +80 -80
- package/src/utils.js +128 -128
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-link",
|
|
3
|
-
"version": "38.
|
|
3
|
+
"version": "38.1.1",
|
|
4
4
|
"description": "Link feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,34 +12,10 @@
|
|
|
12
12
|
],
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@ckeditor/ckeditor5-ui": "
|
|
16
|
-
"ckeditor5": "
|
|
15
|
+
"@ckeditor/ckeditor5-ui": "38.1.1",
|
|
16
|
+
"ckeditor5": "38.1.1",
|
|
17
17
|
"lodash-es": "^4.17.15"
|
|
18
18
|
},
|
|
19
|
-
"devDependencies": {
|
|
20
|
-
"@ckeditor/ckeditor5-basic-styles": "^38.0.1",
|
|
21
|
-
"@ckeditor/ckeditor5-block-quote": "^38.0.1",
|
|
22
|
-
"@ckeditor/ckeditor5-clipboard": "^38.0.1",
|
|
23
|
-
"@ckeditor/ckeditor5-cloud-services": "^38.0.1",
|
|
24
|
-
"@ckeditor/ckeditor5-code-block": "^38.0.1",
|
|
25
|
-
"@ckeditor/ckeditor5-core": "^38.0.1",
|
|
26
|
-
"@ckeditor/ckeditor5-dev-utils": "^37.0.0",
|
|
27
|
-
"@ckeditor/ckeditor5-easy-image": "^38.0.1",
|
|
28
|
-
"@ckeditor/ckeditor5-editor-classic": "^38.0.1",
|
|
29
|
-
"@ckeditor/ckeditor5-engine": "^38.0.1",
|
|
30
|
-
"@ckeditor/ckeditor5-enter": "^38.0.1",
|
|
31
|
-
"@ckeditor/ckeditor5-image": "^38.0.1",
|
|
32
|
-
"@ckeditor/ckeditor5-paragraph": "^38.0.1",
|
|
33
|
-
"@ckeditor/ckeditor5-table": "^38.0.1",
|
|
34
|
-
"@ckeditor/ckeditor5-theme-lark": "^38.0.1",
|
|
35
|
-
"@ckeditor/ckeditor5-typing": "^38.0.1",
|
|
36
|
-
"@ckeditor/ckeditor5-undo": "^38.0.1",
|
|
37
|
-
"@ckeditor/ckeditor5-utils": "^38.0.1",
|
|
38
|
-
"@ckeditor/ckeditor5-widget": "^38.0.1",
|
|
39
|
-
"typescript": "^4.8.4",
|
|
40
|
-
"webpack": "^5.58.1",
|
|
41
|
-
"webpack-cli": "^4.9.0"
|
|
42
|
-
},
|
|
43
19
|
"engines": {
|
|
44
20
|
"node": ">=16.0.0",
|
|
45
21
|
"npm": ">=5.7.1"
|
|
@@ -62,10 +38,5 @@
|
|
|
62
38
|
"ckeditor5-metadata.json",
|
|
63
39
|
"CHANGELOG.md"
|
|
64
40
|
],
|
|
65
|
-
"scripts": {
|
|
66
|
-
"dll:build": "webpack",
|
|
67
|
-
"build": "tsc -p ./tsconfig.json",
|
|
68
|
-
"postversion": "npm run build"
|
|
69
|
-
},
|
|
70
41
|
"types": "src/index.d.ts"
|
|
71
42
|
}
|
package/src/augmentation.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
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 { LinkConfig, AutoLink, Link, LinkEditing, LinkImage, LinkImageEditing, LinkImageUI, LinkUI, LinkCommand, UnlinkCommand } from './index';
|
|
6
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
7
|
-
interface EditorConfig {
|
|
8
|
-
/**
|
|
9
|
-
* The configuration of the {@link module:link/link~Link} feature.
|
|
10
|
-
*
|
|
11
|
-
* Read more in {@link module:link/linkconfig~LinkConfig}.
|
|
12
|
-
*/
|
|
13
|
-
link?: LinkConfig;
|
|
14
|
-
}
|
|
15
|
-
interface PluginsMap {
|
|
16
|
-
[AutoLink.pluginName]: AutoLink;
|
|
17
|
-
[Link.pluginName]: Link;
|
|
18
|
-
[LinkEditing.pluginName]: LinkEditing;
|
|
19
|
-
[LinkImage.pluginName]: LinkImage;
|
|
20
|
-
[LinkImageEditing.pluginName]: LinkImageEditing;
|
|
21
|
-
[LinkImageUI.pluginName]: LinkImageUI;
|
|
22
|
-
[LinkUI.pluginName]: LinkUI;
|
|
23
|
-
}
|
|
24
|
-
interface CommandsMap {
|
|
25
|
-
link: LinkCommand;
|
|
26
|
-
}
|
|
27
|
-
interface CommandsMap {
|
|
28
|
-
unlink: UnlinkCommand;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
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 { LinkConfig, AutoLink, Link, LinkEditing, LinkImage, LinkImageEditing, LinkImageUI, LinkUI, LinkCommand, UnlinkCommand } from './index';
|
|
6
|
+
declare module '@ckeditor/ckeditor5-core' {
|
|
7
|
+
interface EditorConfig {
|
|
8
|
+
/**
|
|
9
|
+
* The configuration of the {@link module:link/link~Link} feature.
|
|
10
|
+
*
|
|
11
|
+
* Read more in {@link module:link/linkconfig~LinkConfig}.
|
|
12
|
+
*/
|
|
13
|
+
link?: LinkConfig;
|
|
14
|
+
}
|
|
15
|
+
interface PluginsMap {
|
|
16
|
+
[AutoLink.pluginName]: AutoLink;
|
|
17
|
+
[Link.pluginName]: Link;
|
|
18
|
+
[LinkEditing.pluginName]: LinkEditing;
|
|
19
|
+
[LinkImage.pluginName]: LinkImage;
|
|
20
|
+
[LinkImageEditing.pluginName]: LinkImageEditing;
|
|
21
|
+
[LinkImageUI.pluginName]: LinkImageUI;
|
|
22
|
+
[LinkUI.pluginName]: LinkUI;
|
|
23
|
+
}
|
|
24
|
+
interface CommandsMap {
|
|
25
|
+
link: LinkCommand;
|
|
26
|
+
}
|
|
27
|
+
interface CommandsMap {
|
|
28
|
+
unlink: UnlinkCommand;
|
|
29
|
+
}
|
|
30
|
+
}
|
package/src/augmentation.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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
|
-
export {};
|
|
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
|
+
export {};
|
package/src/autolink.d.ts
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
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
|
-
/**
|
|
6
|
-
* @module link/autolink
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { Delete } from 'ckeditor5/src/typing';
|
|
10
|
-
/**
|
|
11
|
-
* The autolink plugin.
|
|
12
|
-
*/
|
|
13
|
-
export default class AutoLink extends Plugin {
|
|
14
|
-
/**
|
|
15
|
-
* @inheritDoc
|
|
16
|
-
*/
|
|
17
|
-
static get requires(): readonly [typeof Delete];
|
|
18
|
-
/**
|
|
19
|
-
* @inheritDoc
|
|
20
|
-
*/
|
|
21
|
-
static get pluginName():
|
|
22
|
-
/**
|
|
23
|
-
* @inheritDoc
|
|
24
|
-
*/
|
|
25
|
-
init(): void;
|
|
26
|
-
/**
|
|
27
|
-
* @inheritDoc
|
|
28
|
-
*/
|
|
29
|
-
afterInit(): void;
|
|
30
|
-
/**
|
|
31
|
-
* Enables autolinking on typing.
|
|
32
|
-
*/
|
|
33
|
-
private _enableTypingHandling;
|
|
34
|
-
/**
|
|
35
|
-
* Enables autolinking on the <kbd>Enter</kbd> key.
|
|
36
|
-
*/
|
|
37
|
-
private _enableEnterHandling;
|
|
38
|
-
/**
|
|
39
|
-
* Enables autolinking on the <kbd>Shift</kbd>+<kbd>Enter</kbd> keyboard shortcut.
|
|
40
|
-
*/
|
|
41
|
-
private _enableShiftEnterHandling;
|
|
42
|
-
/**
|
|
43
|
-
* Checks if the passed range contains a linkable text.
|
|
44
|
-
*/
|
|
45
|
-
private _checkAndApplyAutoLinkOnRange;
|
|
46
|
-
/**
|
|
47
|
-
* Applies a link on a given range if the link should be applied.
|
|
48
|
-
*
|
|
49
|
-
* @param url The URL to link.
|
|
50
|
-
* @param range The text range to apply the link attribute to.
|
|
51
|
-
*/
|
|
52
|
-
private _applyAutoLink;
|
|
53
|
-
/**
|
|
54
|
-
* Enqueues autolink changes in the model.
|
|
55
|
-
*
|
|
56
|
-
* @param url The URL to link.
|
|
57
|
-
* @param range The text range to apply the link attribute to.
|
|
58
|
-
*/
|
|
59
|
-
private _persistAutoLink;
|
|
60
|
-
}
|
|
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
|
+
/**
|
|
6
|
+
* @module link/autolink
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { Delete } from 'ckeditor5/src/typing';
|
|
10
|
+
/**
|
|
11
|
+
* The autolink plugin.
|
|
12
|
+
*/
|
|
13
|
+
export default class AutoLink extends Plugin {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static get requires(): readonly [typeof Delete];
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "AutoLink";
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
init(): void;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
afterInit(): void;
|
|
30
|
+
/**
|
|
31
|
+
* Enables autolinking on typing.
|
|
32
|
+
*/
|
|
33
|
+
private _enableTypingHandling;
|
|
34
|
+
/**
|
|
35
|
+
* Enables autolinking on the <kbd>Enter</kbd> key.
|
|
36
|
+
*/
|
|
37
|
+
private _enableEnterHandling;
|
|
38
|
+
/**
|
|
39
|
+
* Enables autolinking on the <kbd>Shift</kbd>+<kbd>Enter</kbd> keyboard shortcut.
|
|
40
|
+
*/
|
|
41
|
+
private _enableShiftEnterHandling;
|
|
42
|
+
/**
|
|
43
|
+
* Checks if the passed range contains a linkable text.
|
|
44
|
+
*/
|
|
45
|
+
private _checkAndApplyAutoLinkOnRange;
|
|
46
|
+
/**
|
|
47
|
+
* Applies a link on a given range if the link should be applied.
|
|
48
|
+
*
|
|
49
|
+
* @param url The URL to link.
|
|
50
|
+
* @param range The text range to apply the link attribute to.
|
|
51
|
+
*/
|
|
52
|
+
private _applyAutoLink;
|
|
53
|
+
/**
|
|
54
|
+
* Enqueues autolink changes in the model.
|
|
55
|
+
*
|
|
56
|
+
* @param url The URL to link.
|
|
57
|
+
* @param range The text range to apply the link attribute to.
|
|
58
|
+
*/
|
|
59
|
+
private _persistAutoLink;
|
|
60
|
+
}
|