@ckeditor/ckeditor5-link 39.0.1 → 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 (104) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/LICENSE.md +1 -1
  3. package/README.md +3 -3
  4. package/build/link.js.map +1 -0
  5. package/build/translations/de.js +1 -1
  6. package/build/translations/hy.js +1 -0
  7. package/build/translations/pt-br.js +1 -1
  8. package/lang/translations/ar.po +1 -0
  9. package/lang/translations/ast.po +1 -0
  10. package/lang/translations/az.po +1 -0
  11. package/lang/translations/bg.po +1 -0
  12. package/lang/translations/bn.po +1 -0
  13. package/lang/translations/ca.po +1 -0
  14. package/lang/translations/cs.po +1 -0
  15. package/lang/translations/da.po +1 -0
  16. package/lang/translations/de-ch.po +1 -0
  17. package/lang/translations/de.po +2 -1
  18. package/lang/translations/el.po +1 -0
  19. package/lang/translations/en-au.po +1 -0
  20. package/lang/translations/en-gb.po +1 -0
  21. package/lang/translations/en.po +1 -0
  22. package/lang/translations/eo.po +1 -0
  23. package/lang/translations/es.po +1 -0
  24. package/lang/translations/et.po +1 -0
  25. package/lang/translations/eu.po +1 -0
  26. package/lang/translations/fa.po +1 -0
  27. package/lang/translations/fi.po +1 -0
  28. package/lang/translations/fr.po +1 -0
  29. package/lang/translations/gl.po +1 -0
  30. package/lang/translations/he.po +1 -0
  31. package/lang/translations/hi.po +1 -0
  32. package/lang/translations/hr.po +1 -0
  33. package/lang/translations/hu.po +1 -0
  34. package/lang/translations/hy.po +54 -0
  35. package/lang/translations/id.po +1 -0
  36. package/lang/translations/it.po +1 -0
  37. package/lang/translations/ja.po +1 -0
  38. package/lang/translations/km.po +1 -0
  39. package/lang/translations/kn.po +1 -0
  40. package/lang/translations/ko.po +1 -0
  41. package/lang/translations/ku.po +1 -0
  42. package/lang/translations/lt.po +1 -0
  43. package/lang/translations/lv.po +1 -0
  44. package/lang/translations/ms.po +1 -0
  45. package/lang/translations/nb.po +1 -0
  46. package/lang/translations/ne.po +1 -0
  47. package/lang/translations/nl.po +1 -0
  48. package/lang/translations/no.po +1 -0
  49. package/lang/translations/pl.po +1 -0
  50. package/lang/translations/pt-br.po +3 -2
  51. package/lang/translations/pt.po +1 -0
  52. package/lang/translations/ro.po +1 -0
  53. package/lang/translations/ru.po +1 -0
  54. package/lang/translations/sk.po +1 -0
  55. package/lang/translations/sq.po +1 -0
  56. package/lang/translations/sr-latn.po +1 -0
  57. package/lang/translations/sr.po +1 -0
  58. package/lang/translations/sv.po +1 -0
  59. package/lang/translations/th.po +1 -0
  60. package/lang/translations/tk.po +1 -0
  61. package/lang/translations/tr.po +1 -0
  62. package/lang/translations/tt.po +1 -0
  63. package/lang/translations/ug.po +1 -0
  64. package/lang/translations/uk.po +1 -0
  65. package/lang/translations/ur.po +1 -0
  66. package/lang/translations/uz.po +1 -0
  67. package/lang/translations/vi.po +1 -0
  68. package/lang/translations/zh-cn.po +1 -0
  69. package/lang/translations/zh.po +1 -0
  70. package/package.json +3 -7
  71. package/src/augmentation.d.ts +30 -30
  72. package/src/augmentation.js +5 -5
  73. package/src/autolink.d.ts +60 -60
  74. package/src/autolink.js +216 -216
  75. package/src/index.d.ts +18 -18
  76. package/src/index.js +17 -17
  77. package/src/link.d.ts +27 -27
  78. package/src/link.js +31 -31
  79. package/src/linkcommand.d.ts +132 -132
  80. package/src/linkcommand.js +285 -285
  81. package/src/linkconfig.d.ts +251 -251
  82. package/src/linkconfig.js +5 -5
  83. package/src/linkediting.d.ts +106 -106
  84. package/src/linkediting.js +547 -547
  85. package/src/linkimage.d.ts +27 -27
  86. package/src/linkimage.js +31 -31
  87. package/src/linkimageediting.d.ts +39 -39
  88. package/src/linkimageediting.js +245 -245
  89. package/src/linkimageui.d.ts +40 -40
  90. package/src/linkimageui.js +96 -96
  91. package/src/linkui.d.ts +165 -165
  92. package/src/linkui.js +581 -581
  93. package/src/ui/linkactionsview.d.ts +101 -101
  94. package/src/ui/linkactionsview.js +156 -156
  95. package/src/ui/linkformview.d.ts +141 -141
  96. package/src/ui/linkformview.js +232 -232
  97. package/src/unlinkcommand.d.ts +31 -31
  98. package/src/unlinkcommand.js +66 -66
  99. package/src/utils/automaticdecorators.d.ts +45 -45
  100. package/src/utils/automaticdecorators.js +140 -140
  101. package/src/utils/manualdecorator.d.ts +72 -72
  102. package/src/utils/manualdecorator.js +47 -47
  103. package/src/utils.d.ts +80 -80
  104. package/src/utils.js +128 -128
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Vietnamese (https://app.transifex.com/ckeditor/teams/11143/vi/)\n"
16
16
  "Language: vi\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Unlink feature."
20
21
  msgid "Unlink"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Chinese (China) (https://app.transifex.com/ckeditor/teams/11143/zh_CN/)\n"
16
16
  "Language: zh_CN\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Unlink feature."
20
21
  msgid "Unlink"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Chinese (Taiwan) (https://app.transifex.com/ckeditor/teams/11143/zh_TW/)\n"
16
16
  "Language: zh_TW\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Toolbar button tooltip for the Unlink feature."
20
21
  msgid "Unlink"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-link",
3
- "version": "39.0.1",
3
+ "version": "40.0.0",
4
4
  "description": "Link feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,14 +12,10 @@
12
12
  ],
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "@ckeditor/ckeditor5-ui": "39.0.1",
16
- "ckeditor5": "39.0.1",
15
+ "@ckeditor/ckeditor5-ui": "40.0.0",
16
+ "ckeditor5": "40.0.0",
17
17
  "lodash-es": "4.17.21"
18
18
  },
19
- "engines": {
20
- "node": ">=16.0.0",
21
- "npm": ">=5.7.1"
22
- },
23
19
  "author": "CKSource (http://cksource.com/)",
24
20
  "license": "GPL-2.0-or-later",
25
21
  "homepage": "https://ckeditor.com/ckeditor-5",
@@ -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
+ }