@ckeditor/ckeditor5-link 40.0.0 → 40.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 link feature** – https://github.com/ckeditor/ckeditor5-link <br>
5
- Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
5
+ Copyright (c) 20032023, [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
 
@@ -13,9 +13,9 @@ Where not otherwise indicated, all CKEditor content is authored by CKSource engi
13
13
 
14
14
  The following libraries are included in CKEditor under the [MIT license](https://opensource.org/licenses/MIT):
15
15
 
16
- * lodash - Copyright (c) JS Foundation and other contributors https://js.foundation/. Based on Underscore.js, copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors http://underscorejs.org/.
16
+ * Lodash - Copyright (c) JS Foundation and other contributors https://js.foundation/. Based on Underscore.js, copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors http://underscorejs.org/.
17
17
 
18
18
  Trademarks
19
19
  ----------
20
20
 
21
- **CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
21
+ **CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks, or service marks of their respective holders.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-link",
3
- "version": "40.0.0",
3
+ "version": "40.1.0",
4
4
  "description": "Link feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,8 +12,8 @@
12
12
  ],
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "@ckeditor/ckeditor5-ui": "40.0.0",
16
- "ckeditor5": "40.0.0",
15
+ "@ckeditor/ckeditor5-ui": "40.1.0",
16
+ "ckeditor5": "40.1.0",
17
17
  "lodash-es": "4.17.21"
18
18
  },
19
19
  "author": "CKSource (http://cksource.com/)",
@@ -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
+ }
@@ -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(): "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
- }
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
+ }