@ckeditor/ckeditor5-link 39.0.2 → 40.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.
Files changed (40) hide show
  1. package/build/link.js.map +1 -0
  2. package/build/translations/hy.js +1 -0
  3. package/build/translations/pt-br.js +1 -1
  4. package/lang/translations/hy.po +54 -0
  5. package/lang/translations/pt-br.po +2 -2
  6. package/package.json +3 -3
  7. package/src/augmentation.d.ts +30 -30
  8. package/src/augmentation.js +5 -5
  9. package/src/autolink.d.ts +60 -60
  10. package/src/autolink.js +216 -216
  11. package/src/index.d.ts +18 -18
  12. package/src/index.js +17 -17
  13. package/src/link.d.ts +27 -27
  14. package/src/link.js +31 -31
  15. package/src/linkcommand.d.ts +132 -132
  16. package/src/linkcommand.js +285 -285
  17. package/src/linkconfig.d.ts +251 -251
  18. package/src/linkconfig.js +5 -5
  19. package/src/linkediting.d.ts +106 -106
  20. package/src/linkediting.js +547 -547
  21. package/src/linkimage.d.ts +27 -27
  22. package/src/linkimage.js +31 -31
  23. package/src/linkimageediting.d.ts +39 -39
  24. package/src/linkimageediting.js +245 -245
  25. package/src/linkimageui.d.ts +40 -40
  26. package/src/linkimageui.js +96 -96
  27. package/src/linkui.d.ts +165 -165
  28. package/src/linkui.js +581 -581
  29. package/src/ui/linkactionsview.d.ts +101 -101
  30. package/src/ui/linkactionsview.js +156 -156
  31. package/src/ui/linkformview.d.ts +141 -141
  32. package/src/ui/linkformview.js +232 -232
  33. package/src/unlinkcommand.d.ts +31 -31
  34. package/src/unlinkcommand.js +66 -66
  35. package/src/utils/automaticdecorators.d.ts +45 -45
  36. package/src/utils/automaticdecorators.js +140 -140
  37. package/src/utils/manualdecorator.d.ts +72 -72
  38. package/src/utils/manualdecorator.js +47 -47
  39. package/src/utils.d.ts +80 -80
  40. package/src/utils.js +128 -128
@@ -0,0 +1,54 @@
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Armenian (https://app.transifex.com/ckeditor/teams/11143/hy/)\n"
16
+ "Language: hy\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
+
20
+ msgctxt "Toolbar button tooltip for the Unlink feature."
21
+ msgid "Unlink"
22
+ msgstr ""
23
+
24
+ msgctxt "Toolbar button tooltip for the Link feature."
25
+ msgid "Link"
26
+ msgstr "Հղում"
27
+
28
+ msgctxt "Label for the URL input in the Link URL editing balloon."
29
+ msgid "Link URL"
30
+ msgstr ""
31
+
32
+ msgctxt "Label for the image link button."
33
+ msgid "Link image"
34
+ msgstr ""
35
+
36
+ msgctxt "Button opening the Link URL editing balloon."
37
+ msgid "Edit link"
38
+ msgstr "Խմբագրել հղումը"
39
+
40
+ msgctxt "Button opening the link in new browser tab."
41
+ msgid "Open link in new tab"
42
+ msgstr ""
43
+
44
+ msgctxt "Label explaining that a link has no URL set (the URL is empty)."
45
+ msgid "This link has no URL"
46
+ msgstr ""
47
+
48
+ msgctxt "The label of the switch button that controls whether the edited link will open in a new tab."
49
+ msgid "Open in a new tab"
50
+ msgstr ""
51
+
52
+ msgctxt "The label of the switch button that controls whether the edited link refers to downloadable resource."
53
+ msgid "Downloadable"
54
+ msgstr ""
@@ -27,11 +27,11 @@ msgstr "Link"
27
27
 
28
28
  msgctxt "Label for the URL input in the Link URL editing balloon."
29
29
  msgid "Link URL"
30
- msgstr "URL"
30
+ msgstr "URL do link"
31
31
 
32
32
  msgctxt "Label for the image link button."
33
33
  msgid "Link image"
34
- msgstr "Link da imagem"
34
+ msgstr "Link com imagem"
35
35
 
36
36
  msgctxt "Button opening the Link URL editing balloon."
37
37
  msgid "Edit link"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-link",
3
- "version": "39.0.2",
3
+ "version": "40.0.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": "39.0.2",
16
- "ckeditor5": "39.0.2",
15
+ "@ckeditor/ckeditor5-ui": "40.0.0",
16
+ "ckeditor5": "40.0.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
+ }