@ckeditor/ckeditor5-link 43.2.0 → 43.3.0-alpha.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 (184) hide show
  1. package/build/link.js +1 -1
  2. package/build/translations/af.js +1 -0
  3. package/build/translations/bs.js +1 -0
  4. package/build/translations/es-co.js +1 -0
  5. package/build/translations/gu.js +1 -0
  6. package/build/translations/jv.js +1 -0
  7. package/build/translations/kk.js +1 -0
  8. package/build/translations/oc.js +1 -0
  9. package/build/translations/si.js +1 -0
  10. package/build/translations/sl.js +1 -0
  11. package/dist/autolink.d.ts +4 -0
  12. package/dist/index.css.map +1 -1
  13. package/dist/index.d.ts +2 -0
  14. package/dist/index.js +42 -1
  15. package/dist/index.js.map +1 -1
  16. package/dist/link.d.ts +4 -0
  17. package/dist/linkediting.d.ts +4 -0
  18. package/dist/linkimage.d.ts +4 -0
  19. package/dist/linkimageediting.d.ts +4 -0
  20. package/dist/linkimageui.d.ts +4 -0
  21. package/dist/linkui.d.ts +4 -0
  22. package/dist/translations/af.d.ts +8 -0
  23. package/dist/translations/af.js +5 -0
  24. package/dist/translations/af.umd.js +11 -0
  25. package/dist/translations/ar.js +1 -1
  26. package/dist/translations/ar.umd.js +1 -1
  27. package/dist/translations/bs.d.ts +8 -0
  28. package/dist/translations/bs.js +5 -0
  29. package/dist/translations/bs.umd.js +11 -0
  30. package/dist/translations/cs.js +1 -1
  31. package/dist/translations/cs.umd.js +1 -1
  32. package/dist/translations/en.js +1 -1
  33. package/dist/translations/en.umd.js +1 -1
  34. package/dist/translations/es-co.d.ts +8 -0
  35. package/dist/translations/es-co.js +5 -0
  36. package/dist/translations/es-co.umd.js +11 -0
  37. package/dist/translations/es.js +1 -1
  38. package/dist/translations/es.umd.js +1 -1
  39. package/dist/translations/fa.js +1 -1
  40. package/dist/translations/fa.umd.js +1 -1
  41. package/dist/translations/fr.js +1 -1
  42. package/dist/translations/fr.umd.js +1 -1
  43. package/dist/translations/gu.d.ts +8 -0
  44. package/dist/translations/gu.js +5 -0
  45. package/dist/translations/gu.umd.js +11 -0
  46. package/dist/translations/he.js +1 -1
  47. package/dist/translations/he.umd.js +1 -1
  48. package/dist/translations/hr.js +1 -1
  49. package/dist/translations/hr.umd.js +1 -1
  50. package/dist/translations/it.js +1 -1
  51. package/dist/translations/it.umd.js +1 -1
  52. package/dist/translations/jv.d.ts +8 -0
  53. package/dist/translations/jv.js +5 -0
  54. package/dist/translations/jv.umd.js +11 -0
  55. package/dist/translations/kk.d.ts +8 -0
  56. package/dist/translations/kk.js +5 -0
  57. package/dist/translations/kk.umd.js +11 -0
  58. package/dist/translations/kn.js +1 -1
  59. package/dist/translations/kn.umd.js +1 -1
  60. package/dist/translations/lt.js +1 -1
  61. package/dist/translations/lt.umd.js +1 -1
  62. package/dist/translations/lv.js +1 -1
  63. package/dist/translations/lv.umd.js +1 -1
  64. package/dist/translations/oc.d.ts +8 -0
  65. package/dist/translations/oc.js +5 -0
  66. package/dist/translations/oc.umd.js +11 -0
  67. package/dist/translations/pl.js +1 -1
  68. package/dist/translations/pl.umd.js +1 -1
  69. package/dist/translations/pt-br.js +1 -1
  70. package/dist/translations/pt-br.umd.js +1 -1
  71. package/dist/translations/pt.js +1 -1
  72. package/dist/translations/pt.umd.js +1 -1
  73. package/dist/translations/ro.js +1 -1
  74. package/dist/translations/ro.umd.js +1 -1
  75. package/dist/translations/ru.js +1 -1
  76. package/dist/translations/ru.umd.js +1 -1
  77. package/dist/translations/si.d.ts +8 -0
  78. package/dist/translations/si.js +5 -0
  79. package/dist/translations/si.umd.js +11 -0
  80. package/dist/translations/sk.js +1 -1
  81. package/dist/translations/sk.umd.js +1 -1
  82. package/dist/translations/sl.d.ts +8 -0
  83. package/dist/translations/sl.js +5 -0
  84. package/dist/translations/sl.umd.js +11 -0
  85. package/dist/translations/sr-latn.js +1 -1
  86. package/dist/translations/sr-latn.umd.js +1 -1
  87. package/dist/translations/sr.js +1 -1
  88. package/dist/translations/sr.umd.js +1 -1
  89. package/dist/translations/ug.js +1 -1
  90. package/dist/translations/ug.umd.js +1 -1
  91. package/dist/translations/uk.js +1 -1
  92. package/dist/translations/uk.umd.js +1 -1
  93. package/dist/translations/uz.js +1 -1
  94. package/dist/translations/uz.umd.js +1 -1
  95. package/lang/translations/af.po +60 -0
  96. package/lang/translations/ar.po +4 -10
  97. package/lang/translations/ast.po +3 -9
  98. package/lang/translations/az.po +3 -9
  99. package/lang/translations/bg.po +3 -9
  100. package/lang/translations/bn.po +3 -9
  101. package/lang/translations/bs.po +60 -0
  102. package/lang/translations/ca.po +3 -9
  103. package/lang/translations/cs.po +4 -10
  104. package/lang/translations/da.po +3 -9
  105. package/lang/translations/de-ch.po +3 -9
  106. package/lang/translations/de.po +3 -9
  107. package/lang/translations/el.po +3 -9
  108. package/lang/translations/en-au.po +3 -9
  109. package/lang/translations/en-gb.po +3 -9
  110. package/lang/translations/en.po +5 -11
  111. package/lang/translations/eo.po +3 -9
  112. package/lang/translations/es-co.po +60 -0
  113. package/lang/translations/es.po +4 -10
  114. package/lang/translations/et.po +3 -9
  115. package/lang/translations/eu.po +3 -9
  116. package/lang/translations/fa.po +4 -10
  117. package/lang/translations/fi.po +3 -9
  118. package/lang/translations/fr.po +4 -10
  119. package/lang/translations/gl.po +3 -9
  120. package/lang/translations/gu.po +60 -0
  121. package/lang/translations/he.po +4 -10
  122. package/lang/translations/hi.po +3 -9
  123. package/lang/translations/hr.po +4 -10
  124. package/lang/translations/hu.po +3 -9
  125. package/lang/translations/hy.po +3 -9
  126. package/lang/translations/id.po +3 -9
  127. package/lang/translations/it.po +4 -10
  128. package/lang/translations/ja.po +3 -9
  129. package/lang/translations/jv.po +60 -0
  130. package/lang/translations/kk.po +60 -0
  131. package/lang/translations/km.po +3 -9
  132. package/lang/translations/kn.po +4 -10
  133. package/lang/translations/ko.po +3 -9
  134. package/lang/translations/ku.po +3 -9
  135. package/lang/translations/lt.po +4 -10
  136. package/lang/translations/lv.po +4 -10
  137. package/lang/translations/ms.po +3 -9
  138. package/lang/translations/nb.po +3 -9
  139. package/lang/translations/ne.po +3 -9
  140. package/lang/translations/nl.po +3 -9
  141. package/lang/translations/no.po +3 -9
  142. package/lang/translations/oc.po +60 -0
  143. package/lang/translations/pl.po +4 -10
  144. package/lang/translations/pt-br.po +4 -10
  145. package/lang/translations/pt.po +4 -10
  146. package/lang/translations/ro.po +4 -10
  147. package/lang/translations/ru.po +4 -10
  148. package/lang/translations/si.po +60 -0
  149. package/lang/translations/sk.po +4 -10
  150. package/lang/translations/sl.po +60 -0
  151. package/lang/translations/sq.po +3 -9
  152. package/lang/translations/sr-latn.po +4 -10
  153. package/lang/translations/sr.po +4 -10
  154. package/lang/translations/sv.po +3 -9
  155. package/lang/translations/th.po +3 -9
  156. package/lang/translations/ti.po +3 -9
  157. package/lang/translations/tk.po +3 -9
  158. package/lang/translations/tr.po +3 -9
  159. package/lang/translations/tt.po +3 -9
  160. package/lang/translations/ug.po +4 -10
  161. package/lang/translations/uk.po +4 -10
  162. package/lang/translations/ur.po +3 -9
  163. package/lang/translations/uz.po +4 -10
  164. package/lang/translations/vi.po +3 -9
  165. package/lang/translations/zh-cn.po +3 -9
  166. package/lang/translations/zh.po +3 -9
  167. package/package.json +9 -9
  168. package/src/autolink.d.ts +4 -0
  169. package/src/autolink.js +6 -0
  170. package/src/index.d.ts +2 -0
  171. package/src/index.js +2 -0
  172. package/src/link.d.ts +4 -0
  173. package/src/link.js +6 -0
  174. package/src/linkediting.d.ts +4 -0
  175. package/src/linkediting.js +6 -0
  176. package/src/linkimage.d.ts +4 -0
  177. package/src/linkimage.js +6 -0
  178. package/src/linkimageediting.d.ts +4 -0
  179. package/src/linkimageediting.js +6 -0
  180. package/src/linkimageui.d.ts +4 -0
  181. package/src/linkimageui.js +6 -0
  182. package/src/linkui.d.ts +4 -0
  183. package/src/linkui.js +6 -0
  184. package/src/utils/automaticdecorators.js +6 -0
package/src/link.d.ts CHANGED
@@ -24,4 +24,8 @@ export default class Link extends Plugin {
24
24
  * @inheritDoc
25
25
  */
26
26
  static get pluginName(): "Link";
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ static get isOfficialPlugin(): true;
27
31
  }
package/src/link.js CHANGED
@@ -28,4 +28,10 @@ export default class Link extends Plugin {
28
28
  static get pluginName() {
29
29
  return 'Link';
30
30
  }
31
+ /**
32
+ * @inheritDoc
33
+ */
34
+ static get isOfficialPlugin() {
35
+ return true;
36
+ }
31
37
  }
@@ -20,6 +20,10 @@ export default class LinkEditing extends Plugin {
20
20
  * @inheritDoc
21
21
  */
22
22
  static get pluginName(): "LinkEditing";
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ static get isOfficialPlugin(): true;
23
27
  /**
24
28
  * @inheritDoc
25
29
  */
@@ -31,6 +31,12 @@ export default class LinkEditing extends Plugin {
31
31
  static get pluginName() {
32
32
  return 'LinkEditing';
33
33
  }
34
+ /**
35
+ * @inheritDoc
36
+ */
37
+ static get isOfficialPlugin() {
38
+ return true;
39
+ }
34
40
  /**
35
41
  * @inheritDoc
36
42
  */
@@ -24,4 +24,8 @@ export default class LinkImage extends Plugin {
24
24
  * @inheritDoc
25
25
  */
26
26
  static get pluginName(): "LinkImage";
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ static get isOfficialPlugin(): true;
27
31
  }
package/src/linkimage.js CHANGED
@@ -28,4 +28,10 @@ export default class LinkImage extends Plugin {
28
28
  static get pluginName() {
29
29
  return 'LinkImage';
30
30
  }
31
+ /**
32
+ * @inheritDoc
33
+ */
34
+ static get isOfficialPlugin() {
35
+ return true;
36
+ }
31
37
  }
@@ -22,6 +22,10 @@ export default class LinkImageEditing extends Plugin {
22
22
  * @inheritDoc
23
23
  */
24
24
  static get pluginName(): "LinkImageEditing";
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ static get isOfficialPlugin(): true;
25
29
  /**
26
30
  * @inheritDoc
27
31
  */
@@ -28,6 +28,12 @@ export default class LinkImageEditing extends Plugin {
28
28
  static get pluginName() {
29
29
  return 'LinkImageEditing';
30
30
  }
31
+ /**
32
+ * @inheritDoc
33
+ */
34
+ static get isOfficialPlugin() {
35
+ return true;
36
+ }
31
37
  /**
32
38
  * @inheritDoc
33
39
  */
@@ -20,6 +20,10 @@ export default class LinkImageUI extends Plugin {
20
20
  * @inheritDoc
21
21
  */
22
22
  static get pluginName(): "LinkImageUI";
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ static get isOfficialPlugin(): true;
23
27
  /**
24
28
  * @inheritDoc
25
29
  */
@@ -30,6 +30,12 @@ export default class LinkImageUI extends Plugin {
30
30
  static get pluginName() {
31
31
  return 'LinkImageUI';
32
32
  }
33
+ /**
34
+ * @inheritDoc
35
+ */
36
+ static get isOfficialPlugin() {
37
+ return true;
38
+ }
33
39
  /**
34
40
  * @inheritDoc
35
41
  */
package/src/linkui.d.ts CHANGED
@@ -36,6 +36,10 @@ export default class LinkUI extends Plugin {
36
36
  * @inheritDoc
37
37
  */
38
38
  static get pluginName(): "LinkUI";
39
+ /**
40
+ * @inheritDoc
41
+ */
42
+ static get isOfficialPlugin(): true;
39
43
  /**
40
44
  * @inheritDoc
41
45
  */
package/src/linkui.js CHANGED
@@ -44,6 +44,12 @@ export default class LinkUI extends Plugin {
44
44
  static get pluginName() {
45
45
  return 'LinkUI';
46
46
  }
47
+ /**
48
+ * @inheritDoc
49
+ */
50
+ static get isOfficialPlugin() {
51
+ return true;
52
+ }
47
53
  /**
48
54
  * @inheritDoc
49
55
  */
@@ -97,6 +97,12 @@ export default class AutomaticDecorators {
97
97
  const viewFigure = mapper.toViewElement(data.item);
98
98
  const linkInImage = Array.from(viewFigure.getChildren())
99
99
  .find((child) => child.is('element', 'a'));
100
+ // It's not guaranteed that the anchor is present in the image block during execution of this dispatcher.
101
+ // It might have been removed during the execution of unlink command that runs the image link downcast dispatcher
102
+ // that is executed before this one and removes the anchor from the image block.
103
+ if (!linkInImage) {
104
+ return;
105
+ }
100
106
  for (const item of this._definitions) {
101
107
  const attributes = toMap(item.attributes);
102
108
  if (item.callback(data.attributeNewValue)) {