@ckeditor/ckeditor5-image 40.2.0 → 41.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.
Files changed (187) hide show
  1. package/LICENSE.md +1 -1
  2. package/build/image.js +2 -2
  3. package/lang/translations/ar.po +1 -1
  4. package/lang/translations/ast.po +1 -1
  5. package/lang/translations/az.po +1 -1
  6. package/lang/translations/bg.po +1 -1
  7. package/lang/translations/bn.po +1 -1
  8. package/lang/translations/bs.po +1 -1
  9. package/lang/translations/ca.po +1 -1
  10. package/lang/translations/cs.po +1 -1
  11. package/lang/translations/da.po +1 -1
  12. package/lang/translations/de-ch.po +1 -1
  13. package/lang/translations/de.po +1 -1
  14. package/lang/translations/el.po +1 -1
  15. package/lang/translations/en-au.po +1 -1
  16. package/lang/translations/en-gb.po +1 -1
  17. package/lang/translations/en.po +1 -1
  18. package/lang/translations/eo.po +1 -1
  19. package/lang/translations/es.po +1 -1
  20. package/lang/translations/et.po +1 -1
  21. package/lang/translations/eu.po +1 -1
  22. package/lang/translations/fa.po +1 -1
  23. package/lang/translations/fi.po +1 -1
  24. package/lang/translations/fr.po +1 -1
  25. package/lang/translations/gl.po +1 -1
  26. package/lang/translations/he.po +1 -1
  27. package/lang/translations/hi.po +1 -1
  28. package/lang/translations/hr.po +1 -1
  29. package/lang/translations/hu.po +1 -1
  30. package/lang/translations/id.po +1 -1
  31. package/lang/translations/it.po +1 -1
  32. package/lang/translations/ja.po +1 -1
  33. package/lang/translations/jv.po +1 -1
  34. package/lang/translations/km.po +1 -1
  35. package/lang/translations/kn.po +1 -1
  36. package/lang/translations/ko.po +1 -1
  37. package/lang/translations/ku.po +1 -1
  38. package/lang/translations/lt.po +1 -1
  39. package/lang/translations/lv.po +1 -1
  40. package/lang/translations/ms.po +1 -1
  41. package/lang/translations/nb.po +1 -1
  42. package/lang/translations/ne.po +1 -1
  43. package/lang/translations/nl.po +1 -1
  44. package/lang/translations/no.po +1 -1
  45. package/lang/translations/pl.po +1 -1
  46. package/lang/translations/pt-br.po +1 -1
  47. package/lang/translations/pt.po +1 -1
  48. package/lang/translations/ro.po +1 -1
  49. package/lang/translations/ru.po +1 -1
  50. package/lang/translations/si.po +1 -1
  51. package/lang/translations/sk.po +1 -1
  52. package/lang/translations/sq.po +1 -1
  53. package/lang/translations/sr-latn.po +1 -1
  54. package/lang/translations/sr.po +1 -1
  55. package/lang/translations/sv.po +1 -1
  56. package/lang/translations/th.po +1 -1
  57. package/lang/translations/tk.po +1 -1
  58. package/lang/translations/tr.po +1 -1
  59. package/lang/translations/tt.po +1 -1
  60. package/lang/translations/ug.po +1 -1
  61. package/lang/translations/uk.po +1 -1
  62. package/lang/translations/ur.po +1 -1
  63. package/lang/translations/uz.po +1 -1
  64. package/lang/translations/vi.po +1 -1
  65. package/lang/translations/zh-cn.po +1 -1
  66. package/lang/translations/zh.po +1 -1
  67. package/package.json +4 -3
  68. package/src/augmentation.d.ts +1 -1
  69. package/src/augmentation.js +1 -1
  70. package/src/autoimage.d.ts +6 -6
  71. package/src/autoimage.js +8 -8
  72. package/src/image/converters.d.ts +3 -3
  73. package/src/image/converters.js +2 -2
  74. package/src/image/imageblockediting.d.ts +7 -7
  75. package/src/image/imageblockediting.js +11 -11
  76. package/src/image/imageediting.d.ts +3 -3
  77. package/src/image/imageediting.js +6 -6
  78. package/src/image/imageinlineediting.d.ts +7 -7
  79. package/src/image/imageinlineediting.js +11 -11
  80. package/src/image/imageloadobserver.d.ts +2 -2
  81. package/src/image/imageloadobserver.js +2 -2
  82. package/src/image/imageplaceholder.d.ts +3 -3
  83. package/src/image/imageplaceholder.js +4 -4
  84. package/src/image/imagetypecommand.d.ts +3 -3
  85. package/src/image/imagetypecommand.js +2 -2
  86. package/src/image/insertimagecommand.d.ts +3 -3
  87. package/src/image/insertimagecommand.js +3 -3
  88. package/src/image/replaceimagesourcecommand.d.ts +3 -3
  89. package/src/image/replaceimagesourcecommand.js +2 -2
  90. package/src/image/ui/utils.d.ts +3 -3
  91. package/src/image/ui/utils.js +2 -2
  92. package/src/image/utils.d.ts +3 -3
  93. package/src/image/utils.js +2 -2
  94. package/src/image.d.ts +4 -4
  95. package/src/image.js +4 -4
  96. package/src/imageblock.d.ts +6 -6
  97. package/src/imageblock.js +6 -6
  98. package/src/imagecaption/imagecaptionediting.d.ts +5 -5
  99. package/src/imagecaption/imagecaptionediting.js +7 -7
  100. package/src/imagecaption/imagecaptionui.d.ts +3 -3
  101. package/src/imagecaption/imagecaptionui.js +4 -4
  102. package/src/imagecaption/imagecaptionutils.d.ts +4 -4
  103. package/src/imagecaption/imagecaptionutils.js +3 -3
  104. package/src/imagecaption/toggleimagecaptioncommand.d.ts +2 -2
  105. package/src/imagecaption/toggleimagecaptioncommand.js +3 -3
  106. package/src/imagecaption.d.ts +4 -4
  107. package/src/imagecaption.js +4 -4
  108. package/src/imageconfig.d.ts +1 -1
  109. package/src/imageconfig.js +1 -1
  110. package/src/imageinline.d.ts +6 -6
  111. package/src/imageinline.js +6 -6
  112. package/src/imageinsert/imageinsertui.d.ts +5 -5
  113. package/src/imageinsert/imageinsertui.js +6 -6
  114. package/src/imageinsert/imageinsertviaurlui.d.ts +3 -3
  115. package/src/imageinsert/imageinsertviaurlui.js +5 -5
  116. package/src/imageinsert/ui/imageinsertformview.d.ts +5 -5
  117. package/src/imageinsert/ui/imageinsertformview.js +3 -3
  118. package/src/imageinsert/ui/imageinserturlview.d.ts +3 -3
  119. package/src/imageinsert/ui/imageinserturlview.js +4 -4
  120. package/src/imageinsert.d.ts +5 -5
  121. package/src/imageinsert.js +5 -5
  122. package/src/imageinsertviaurl.d.ts +4 -4
  123. package/src/imageinsertviaurl.js +4 -4
  124. package/src/imageresize/imageresizebuttons.d.ts +3 -3
  125. package/src/imageresize/imageresizebuttons.js +6 -6
  126. package/src/imageresize/imageresizeediting.d.ts +3 -3
  127. package/src/imageresize/imageresizeediting.js +5 -5
  128. package/src/imageresize/imageresizehandles.d.ts +4 -4
  129. package/src/imageresize/imageresizehandles.js +5 -5
  130. package/src/imageresize/resizeimagecommand.d.ts +2 -2
  131. package/src/imageresize/resizeimagecommand.js +2 -2
  132. package/src/imageresize.d.ts +5 -5
  133. package/src/imageresize.js +5 -5
  134. package/src/imagesizeattributes.d.ts +3 -3
  135. package/src/imagesizeattributes.js +4 -4
  136. package/src/imagestyle/converters.d.ts +4 -4
  137. package/src/imagestyle/converters.js +2 -2
  138. package/src/imagestyle/imagestylecommand.d.ts +4 -4
  139. package/src/imagestyle/imagestylecommand.js +2 -2
  140. package/src/imagestyle/imagestyleediting.d.ts +4 -4
  141. package/src/imagestyle/imagestyleediting.js +6 -6
  142. package/src/imagestyle/imagestyleui.d.ts +3 -3
  143. package/src/imagestyle/imagestyleui.js +5 -5
  144. package/src/imagestyle/utils.d.ts +3 -3
  145. package/src/imagestyle/utils.js +3 -3
  146. package/src/imagestyle.d.ts +4 -4
  147. package/src/imagestyle.js +4 -4
  148. package/src/imagetextalternative/imagetextalternativecommand.d.ts +2 -2
  149. package/src/imagetextalternative/imagetextalternativecommand.js +2 -2
  150. package/src/imagetextalternative/imagetextalternativeediting.d.ts +3 -3
  151. package/src/imagetextalternative/imagetextalternativeediting.js +4 -4
  152. package/src/imagetextalternative/imagetextalternativeui.d.ts +3 -3
  153. package/src/imagetextalternative/imagetextalternativeui.js +5 -5
  154. package/src/imagetextalternative/ui/textalternativeformview.d.ts +4 -4
  155. package/src/imagetextalternative/ui/textalternativeformview.js +4 -4
  156. package/src/imagetextalternative.d.ts +4 -4
  157. package/src/imagetextalternative.js +4 -4
  158. package/src/imagetoolbar.d.ts +4 -4
  159. package/src/imagetoolbar.js +4 -4
  160. package/src/imageupload/imageuploadediting.d.ts +7 -7
  161. package/src/imageupload/imageuploadediting.js +11 -11
  162. package/src/imageupload/imageuploadprogress.d.ts +2 -2
  163. package/src/imageupload/imageuploadprogress.js +3 -3
  164. package/src/imageupload/imageuploadui.d.ts +2 -2
  165. package/src/imageupload/imageuploadui.js +4 -4
  166. package/src/imageupload/uploadimagecommand.d.ts +3 -3
  167. package/src/imageupload/uploadimagecommand.js +4 -4
  168. package/src/imageupload/utils.d.ts +3 -3
  169. package/src/imageupload/utils.js +2 -2
  170. package/src/imageupload.d.ts +5 -5
  171. package/src/imageupload.js +5 -5
  172. package/src/imageutils.d.ts +3 -3
  173. package/src/imageutils.js +5 -5
  174. package/src/index.d.ts +42 -42
  175. package/src/index.js +33 -33
  176. package/src/pictureediting.d.ts +4 -4
  177. package/src/pictureediting.js +5 -5
  178. package/theme/image.css +1 -1
  179. package/theme/imagecaption.css +1 -1
  180. package/theme/imageinsert.css +1 -1
  181. package/theme/imageplaceholder.css +1 -1
  182. package/theme/imageresize.css +1 -1
  183. package/theme/imagestyle.css +1 -1
  184. package/theme/imageuploadicon.css +1 -1
  185. package/theme/imageuploadloader.css +1 -1
  186. package/theme/imageuploadprogress.css +1 -1
  187. package/theme/textalternativeform.css +1 -1
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module image/imagetextalternative/imagetextalternativecommand
7
7
  */
8
- import { Command } from 'ckeditor5/src/core';
8
+ import { Command } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The image text alternative command. It is used to change the `alt` attribute of `<imageBlock>` and `<imageInline>` model elements.
11
11
  */
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module image/imagetextalternative/imagetextalternativeediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import ImageUtils from '../imageutils';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import ImageUtils from '../imageutils.js';
10
10
  /**
11
11
  * The image text alternative editing plugin.
12
12
  *
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module image/imagetextalternative/imagetextalternativeediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import ImageTextAlternativeCommand from './imagetextalternativecommand';
10
- import ImageUtils from '../imageutils';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import ImageTextAlternativeCommand from './imagetextalternativecommand.js';
10
+ import ImageUtils from '../imageutils.js';
11
11
  /**
12
12
  * The image text alternative editing plugin.
13
13
  *
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module image/imagetextalternative/imagetextalternativeui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { ContextualBalloon } from 'ckeditor5/src/ui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { ContextualBalloon } from 'ckeditor5/src/ui.js';
10
10
  /**
11
11
  * The image text alternative UI plugin.
12
12
  *
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module image/imagetextalternative/imagetextalternativeui
7
7
  */
8
- import { Plugin, icons } from 'ckeditor5/src/core';
9
- import { ButtonView, ContextualBalloon, clickOutsideHandler, CssTransitionDisablerMixin } from 'ckeditor5/src/ui';
10
- import TextAlternativeFormView from './ui/textalternativeformview';
11
- import { repositionContextualBalloon, getBalloonPositionData } from '../image/ui/utils';
8
+ import { Plugin, icons } from 'ckeditor5/src/core.js';
9
+ import { ButtonView, ContextualBalloon, clickOutsideHandler, CssTransitionDisablerMixin } from 'ckeditor5/src/ui.js';
10
+ import TextAlternativeFormView from './ui/textalternativeformview.js';
11
+ import { repositionContextualBalloon, getBalloonPositionData } from '../image/ui/utils.js';
12
12
  /**
13
13
  * The image text alternative UI plugin.
14
14
  *
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module image/imagetextalternative/ui/textalternativeformview
7
7
  */
8
- import { ButtonView, FocusCycler, LabeledFieldView, View, ViewCollection, type InputView } from 'ckeditor5/src/ui';
9
- import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
8
+ import { ButtonView, FocusCycler, LabeledFieldView, View, ViewCollection, type InputView, type FocusableView } from 'ckeditor5/src/ui.js';
9
+ import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
10
10
  import '../../../theme/textalternativeform.css';
11
11
  import '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';
12
12
  /**
@@ -36,7 +36,7 @@ export default class TextAlternativeFormView extends View {
36
36
  /**
37
37
  * A collection of views which can be focused in the form.
38
38
  */
39
- protected readonly _focusables: ViewCollection;
39
+ protected readonly _focusables: ViewCollection<FocusableView>;
40
40
  /**
41
41
  * Helps cycling over {@link #_focusables} in the form.
42
42
  */
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module image/imagetextalternative/ui/textalternativeformview
7
7
  */
8
- import { ButtonView, FocusCycler, LabeledFieldView, View, ViewCollection, createLabeledInputText, submitHandler } from 'ckeditor5/src/ui';
9
- import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils';
10
- import { icons } from 'ckeditor5/src/core';
8
+ import { ButtonView, FocusCycler, LabeledFieldView, View, ViewCollection, createLabeledInputText, submitHandler } from 'ckeditor5/src/ui.js';
9
+ import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils.js';
10
+ import { icons } from 'ckeditor5/src/core.js';
11
11
  import '../../../theme/textalternativeform.css';
12
12
  // See: #8833.
13
13
  // eslint-disable-next-line ckeditor5-rules/ckeditor-imports
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module image/imagetextalternative
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import ImageTextAlternativeEditing from './imagetextalternative/imagetextalternativeediting';
10
- import ImageTextAlternativeUI from './imagetextalternative/imagetextalternativeui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import ImageTextAlternativeEditing from './imagetextalternative/imagetextalternativeediting.js';
10
+ import ImageTextAlternativeUI from './imagetextalternative/imagetextalternativeui.js';
11
11
  /**
12
12
  * The image text alternative plugin.
13
13
  *
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module image/imagetextalternative
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import ImageTextAlternativeEditing from './imagetextalternative/imagetextalternativeediting';
10
- import ImageTextAlternativeUI from './imagetextalternative/imagetextalternativeui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import ImageTextAlternativeEditing from './imagetextalternative/imagetextalternativeediting.js';
10
+ import ImageTextAlternativeUI from './imagetextalternative/imagetextalternativeui.js';
11
11
  /**
12
12
  * The image text alternative plugin.
13
13
  *
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module image/imagetoolbar
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { WidgetToolbarRepository } from 'ckeditor5/src/widget';
10
- import ImageUtils from './imageutils';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { WidgetToolbarRepository } from 'ckeditor5/src/widget.js';
10
+ import ImageUtils from './imageutils.js';
11
11
  /**
12
12
  * The image toolbar plugin. It creates and manages the image toolbar (the toolbar displayed when an image is selected).
13
13
  *
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module image/imagetoolbar
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { WidgetToolbarRepository } from 'ckeditor5/src/widget';
10
- import ImageUtils from './imageutils';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { WidgetToolbarRepository } from 'ckeditor5/src/widget.js';
10
+ import ImageUtils from './imageutils.js';
11
11
  import { isObject } from 'lodash-es';
12
12
  /**
13
13
  * The image toolbar plugin. It creates and manages the image toolbar (the toolbar displayed when an image is selected).
@@ -1,16 +1,16 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module image/imageupload/imageuploadediting
7
7
  */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- import { type Element, type Writer, type DataTransfer } from 'ckeditor5/src/engine';
10
- import { Notification } from 'ckeditor5/src/ui';
11
- import { ClipboardPipeline } from 'ckeditor5/src/clipboard';
12
- import { FileRepository, type UploadResponse, type FileLoader } from 'ckeditor5/src/upload';
13
- import ImageUtils from '../imageutils';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
+ import { type Element, type Writer, type DataTransfer } from 'ckeditor5/src/engine.js';
10
+ import { Notification } from 'ckeditor5/src/ui.js';
11
+ import { ClipboardPipeline } from 'ckeditor5/src/clipboard.js';
12
+ import { FileRepository, type UploadResponse, type FileLoader } from 'ckeditor5/src/upload.js';
13
+ import ImageUtils from '../imageutils.js';
14
14
  /**
15
15
  * The editing part of the image upload feature. It registers the `'uploadImage'` command
16
16
  * and the `imageUpload` command as an aliased name.
@@ -1,20 +1,20 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module image/imageupload/imageuploadediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { UpcastWriter } from 'ckeditor5/src/engine';
10
- import { Notification } from 'ckeditor5/src/ui';
11
- import { ClipboardPipeline } from 'ckeditor5/src/clipboard';
12
- import { FileRepository } from 'ckeditor5/src/upload';
13
- import { env } from 'ckeditor5/src/utils';
14
- import ImageUtils from '../imageutils';
15
- import UploadImageCommand from './uploadimagecommand';
16
- import { fetchLocalImage, isLocalImage } from '../../src/imageupload/utils';
17
- import { createImageTypeRegExp } from './utils';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { UpcastWriter } from 'ckeditor5/src/engine.js';
10
+ import { Notification } from 'ckeditor5/src/ui.js';
11
+ import { ClipboardPipeline } from 'ckeditor5/src/clipboard.js';
12
+ import { FileRepository } from 'ckeditor5/src/upload.js';
13
+ import { env } from 'ckeditor5/src/utils.js';
14
+ import ImageUtils from '../imageutils.js';
15
+ import UploadImageCommand from './uploadimagecommand.js';
16
+ import { fetchLocalImage, isLocalImage } from '../../src/imageupload/utils.js';
17
+ import { createImageTypeRegExp } from './utils.js';
18
18
  /**
19
19
  * The editing part of the image upload feature. It registers the `'uploadImage'` command
20
20
  * and the `imageUpload` command as an aliased name.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module image/imageupload/imageuploadprogress
7
7
  */
8
- import { type Editor, Plugin } from 'ckeditor5/src/core';
8
+ import { type Editor, Plugin } from 'ckeditor5/src/core.js';
9
9
  import '../../theme/imageuploadprogress.css';
10
10
  import '../../theme/imageuploadicon.css';
11
11
  import '../../theme/imageuploadloader.css';
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module image/imageupload/imageuploadprogress
7
7
  */
8
8
  /* globals setTimeout */
9
- import { Plugin } from 'ckeditor5/src/core';
10
- import { FileRepository } from 'ckeditor5/src/upload';
9
+ import { Plugin } from 'ckeditor5/src/core.js';
10
+ import { FileRepository } from 'ckeditor5/src/upload.js';
11
11
  import '../../theme/imageuploadprogress.css';
12
12
  import '../../theme/imageuploadicon.css';
13
13
  import '../../theme/imageuploadloader.css';
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { Plugin } from 'ckeditor5/src/core';
5
+ import { Plugin } from 'ckeditor5/src/core.js';
6
6
  /**
7
7
  * The image upload button plugin.
8
8
  *
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { Plugin, icons } from 'ckeditor5/src/core';
6
- import { FileDialogButtonView } from 'ckeditor5/src/upload';
7
- import { createImageTypeRegExp } from './utils';
5
+ import { Plugin, icons } from 'ckeditor5/src/core.js';
6
+ import { FileDialogButtonView } from 'ckeditor5/src/upload.js';
7
+ import { createImageTypeRegExp } from './utils.js';
8
8
  /**
9
9
  * The image upload button plugin.
10
10
  *
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { Command } from 'ckeditor5/src/core';
6
- import { type ArrayOrItem } from 'ckeditor5/src/utils';
5
+ import { Command } from 'ckeditor5/src/core.js';
6
+ import { type ArrayOrItem } from 'ckeditor5/src/utils.js';
7
7
  /**
8
8
  * @module image/imageupload/uploadimagecommand
9
9
  */
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { FileRepository } from 'ckeditor5/src/upload';
6
- import { Command } from 'ckeditor5/src/core';
7
- import { toArray } from 'ckeditor5/src/utils';
5
+ import { FileRepository } from 'ckeditor5/src/upload.js';
6
+ import { Command } from 'ckeditor5/src/core.js';
7
+ import { toArray } from 'ckeditor5/src/utils.js';
8
8
  /**
9
9
  * @module image/imageupload/uploadimagecommand
10
10
  */
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module image/imageupload/utils
7
7
  */
8
- import type { ViewElement } from 'ckeditor5/src/engine';
9
- import type ImageUtils from '../imageutils';
8
+ import type { ViewElement } from 'ckeditor5/src/engine.js';
9
+ import type ImageUtils from '../imageutils.js';
10
10
  /**
11
11
  * Creates a regular expression used to test for image files.
12
12
  *
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { global } from 'ckeditor5/src/utils';
5
+ import { global } from 'ckeditor5/src/utils.js';
6
6
  /**
7
7
  * Creates a regular expression used to test for image files.
8
8
  *
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module image/imageupload
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import ImageUploadUI from './imageupload/imageuploadui';
10
- import ImageUploadProgress from './imageupload/imageuploadprogress';
11
- import ImageUploadEditing from './imageupload/imageuploadediting';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import ImageUploadUI from './imageupload/imageuploadui.js';
10
+ import ImageUploadProgress from './imageupload/imageuploadprogress.js';
11
+ import ImageUploadEditing from './imageupload/imageuploadediting.js';
12
12
  /**
13
13
  * The image upload plugin.
14
14
  *
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module image/imageupload
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import ImageUploadUI from './imageupload/imageuploadui';
10
- import ImageUploadProgress from './imageupload/imageuploadprogress';
11
- import ImageUploadEditing from './imageupload/imageuploadediting';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import ImageUploadUI from './imageupload/imageuploadui.js';
10
+ import ImageUploadProgress from './imageupload/imageuploadprogress.js';
11
+ import ImageUploadEditing from './imageupload/imageuploadediting.js';
12
12
  /**
13
13
  * The image upload plugin.
14
14
  *
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module image/imageutils
7
7
  */
8
- import type { Element, ViewElement, DocumentSelection, ViewDocumentSelection, Selection, ViewSelection, DowncastWriter, Position, ViewContainerElement } from 'ckeditor5/src/engine';
9
- import { Plugin } from 'ckeditor5/src/core';
8
+ import type { Element, ViewElement, DocumentSelection, ViewDocumentSelection, Selection, ViewSelection, DowncastWriter, Position, ViewContainerElement } from 'ckeditor5/src/engine.js';
9
+ import { Plugin } from 'ckeditor5/src/core.js';
10
10
  /**
11
11
  * A set of helpers related to images.
12
12
  */
package/src/imageutils.js CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { Plugin } from 'ckeditor5/src/core';
6
- import { findOptimalInsertionRange, isWidget, toWidget } from 'ckeditor5/src/widget';
7
- import { determineImageTypeForInsertionAtSelection } from './image/utils';
8
- import { DomEmitterMixin, global } from 'ckeditor5/src/utils';
5
+ import { Plugin } from 'ckeditor5/src/core.js';
6
+ import { findOptimalInsertionRange, isWidget, toWidget } from 'ckeditor5/src/widget.js';
7
+ import { determineImageTypeForInsertionAtSelection } from './image/utils.js';
8
+ import { DomEmitterMixin, global } from 'ckeditor5/src/utils.js';
9
9
  const IMAGE_WIDGETS_CLASSES_MATCH_REGEXP = /^(image|image-inline)$/;
10
10
  /**
11
11
  * A set of helpers related to images.
package/src/index.d.ts CHANGED
@@ -1,48 +1,48 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module image
7
7
  */
8
- export { default as AutoImage } from './autoimage';
9
- export { default as Image } from './image';
10
- export { default as ImageEditing } from './image/imageediting';
11
- export { default as ImageCaptionUtils } from './imagecaption/imagecaptionutils';
12
- export { default as ImageCaption } from './imagecaption';
13
- export { default as ImageCaptionEditing } from './imagecaption/imagecaptionediting';
14
- export { default as ImageInsert } from './imageinsert';
15
- export { default as ImageInsertUI } from './imageinsert/imageinsertui';
16
- export { default as ImageResize } from './imageresize';
17
- export { default as ImageResizeButtons } from './imageresize/imageresizebuttons';
18
- export { default as ImageResizeEditing } from './imageresize/imageresizeediting';
19
- export { default as ImageResizeHandles } from './imageresize/imageresizehandles';
20
- export { default as ImageSizeAttributes } from './imagesizeattributes';
21
- export { default as ImageStyle } from './imagestyle';
22
- export { default as ImageStyleEditing } from './imagestyle/imagestyleediting';
23
- export { default as ImageStyleUI } from './imagestyle/imagestyleui';
24
- export { default as ImageTextAlternative } from './imagetextalternative';
25
- export { default as ImageTextAlternativeEditing } from './imagetextalternative/imagetextalternativeediting';
26
- export { default as ImageTextAlternativeUI } from './imagetextalternative/imagetextalternativeui';
27
- export { default as ImageToolbar } from './imagetoolbar';
28
- export { default as ImageUpload } from './imageupload';
29
- export { default as ImageUploadEditing, type ImageUploadCompleteEvent } from './imageupload/imageuploadediting';
30
- export { default as ImageUploadProgress } from './imageupload/imageuploadprogress';
31
- export { default as ImageUploadUI } from './imageupload/imageuploadui';
32
- export { default as PictureEditing } from './pictureediting';
33
- export { default as ImageBlock } from './imageblock';
34
- export { default as ImageInline } from './imageinline';
35
- export { default as ImageInsertViaUrl } from './imageinsertviaurl';
36
- export { default as ImageUtils } from './imageutils';
37
- export { default as ImageBlockEditing } from './image/imageblockediting';
38
- export { default as ImageCaptionUI } from './imagecaption/imagecaptionui';
39
- export type { ImageConfig } from './imageconfig';
40
- export type { default as ImageTypeCommand } from './image/imagetypecommand';
41
- export type { default as InsertImageCommand } from './image/insertimagecommand';
42
- export type { default as ReplaceImageSourceCommand } from './image/replaceimagesourcecommand';
43
- export type { default as ToggleImageCaptionCommand } from './imagecaption/toggleimagecaptioncommand';
44
- export type { default as ResizeImageCommand } from './imageresize/resizeimagecommand';
45
- export type { default as ImageStyleCommand } from './imagestyle/imagestylecommand';
46
- export type { default as ImageTextAlternativeCommand } from './imagetextalternative/imagetextalternativecommand';
47
- export type { default as UploadImageCommand } from './imageupload/uploadimagecommand';
48
- import './augmentation';
8
+ export { default as AutoImage } from './autoimage.js';
9
+ export { default as Image } from './image.js';
10
+ export { default as ImageEditing } from './image/imageediting.js';
11
+ export { default as ImageCaptionUtils } from './imagecaption/imagecaptionutils.js';
12
+ export { default as ImageCaption } from './imagecaption.js';
13
+ export { default as ImageCaptionEditing } from './imagecaption/imagecaptionediting.js';
14
+ export { default as ImageInsert } from './imageinsert.js';
15
+ export { default as ImageInsertUI } from './imageinsert/imageinsertui.js';
16
+ export { default as ImageResize } from './imageresize.js';
17
+ export { default as ImageResizeButtons } from './imageresize/imageresizebuttons.js';
18
+ export { default as ImageResizeEditing } from './imageresize/imageresizeediting.js';
19
+ export { default as ImageResizeHandles } from './imageresize/imageresizehandles.js';
20
+ export { default as ImageSizeAttributes } from './imagesizeattributes.js';
21
+ export { default as ImageStyle } from './imagestyle.js';
22
+ export { default as ImageStyleEditing } from './imagestyle/imagestyleediting.js';
23
+ export { default as ImageStyleUI } from './imagestyle/imagestyleui.js';
24
+ export { default as ImageTextAlternative } from './imagetextalternative.js';
25
+ export { default as ImageTextAlternativeEditing } from './imagetextalternative/imagetextalternativeediting.js';
26
+ export { default as ImageTextAlternativeUI } from './imagetextalternative/imagetextalternativeui.js';
27
+ export { default as ImageToolbar } from './imagetoolbar.js';
28
+ export { default as ImageUpload } from './imageupload.js';
29
+ export { default as ImageUploadEditing, type ImageUploadCompleteEvent } from './imageupload/imageuploadediting.js';
30
+ export { default as ImageUploadProgress } from './imageupload/imageuploadprogress.js';
31
+ export { default as ImageUploadUI } from './imageupload/imageuploadui.js';
32
+ export { default as PictureEditing } from './pictureediting.js';
33
+ export { default as ImageBlock } from './imageblock.js';
34
+ export { default as ImageInline } from './imageinline.js';
35
+ export { default as ImageInsertViaUrl } from './imageinsertviaurl.js';
36
+ export { default as ImageUtils } from './imageutils.js';
37
+ export { default as ImageBlockEditing } from './image/imageblockediting.js';
38
+ export { default as ImageCaptionUI } from './imagecaption/imagecaptionui.js';
39
+ export type { ImageConfig } from './imageconfig.js';
40
+ export type { default as ImageTypeCommand } from './image/imagetypecommand.js';
41
+ export type { default as InsertImageCommand } from './image/insertimagecommand.js';
42
+ export type { default as ReplaceImageSourceCommand } from './image/replaceimagesourcecommand.js';
43
+ export type { default as ToggleImageCaptionCommand } from './imagecaption/toggleimagecaptioncommand.js';
44
+ export type { default as ResizeImageCommand } from './imageresize/resizeimagecommand.js';
45
+ export type { default as ImageStyleCommand } from './imagestyle/imagestylecommand.js';
46
+ export type { default as ImageTextAlternativeCommand } from './imagetextalternative/imagetextalternativecommand.js';
47
+ export type { default as UploadImageCommand } from './imageupload/uploadimagecommand.js';
48
+ import './augmentation.js';