@ckeditor/ckeditor5-image 38.2.0-alpha.0 → 38.2.0-alpha.1

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/package.json +3 -3
  2. package/src/augmentation.d.ts +1 -1
  3. package/src/autoimage.d.ts +5 -5
  4. package/src/autoimage.js +7 -7
  5. package/src/image/converters.d.ts +2 -2
  6. package/src/image/converters.js +1 -1
  7. package/src/image/imageblockediting.d.ts +4 -4
  8. package/src/image/imageblockediting.js +8 -8
  9. package/src/image/imageediting.d.ts +2 -2
  10. package/src/image/imageediting.js +5 -5
  11. package/src/image/imageinlineediting.d.ts +4 -4
  12. package/src/image/imageinlineediting.js +8 -8
  13. package/src/image/imageloadobserver.d.ts +1 -1
  14. package/src/image/imageloadobserver.js +1 -1
  15. package/src/image/imagetypecommand.d.ts +2 -2
  16. package/src/image/imagetypecommand.js +1 -1
  17. package/src/image/insertimagecommand.d.ts +2 -2
  18. package/src/image/insertimagecommand.js +2 -2
  19. package/src/image/replaceimagesourcecommand.d.ts +1 -1
  20. package/src/image/replaceimagesourcecommand.js +1 -1
  21. package/src/image/ui/utils.d.ts +2 -2
  22. package/src/image/ui/utils.js +1 -1
  23. package/src/image/utils.d.ts +2 -2
  24. package/src/image/utils.js +1 -1
  25. package/src/image.d.ts +3 -3
  26. package/src/image.js +3 -3
  27. package/src/imageblock.d.ts +4 -4
  28. package/src/imageblock.js +4 -4
  29. package/src/imagecaption/imagecaptionediting.d.ts +4 -4
  30. package/src/imagecaption/imagecaptionediting.js +6 -6
  31. package/src/imagecaption/imagecaptionui.d.ts +2 -2
  32. package/src/imagecaption/imagecaptionui.js +3 -3
  33. package/src/imagecaption/imagecaptionutils.d.ts +3 -3
  34. package/src/imagecaption/imagecaptionutils.js +2 -2
  35. package/src/imagecaption/toggleimagecaptioncommand.d.ts +1 -1
  36. package/src/imagecaption/toggleimagecaptioncommand.js +2 -2
  37. package/src/imagecaption.d.ts +3 -3
  38. package/src/imagecaption.js +3 -3
  39. package/src/imageinline.d.ts +4 -4
  40. package/src/imageinline.js +4 -4
  41. package/src/imageinsert/imageinsertui.d.ts +2 -2
  42. package/src/imageinsert/imageinsertui.js +4 -4
  43. package/src/imageinsert/ui/imageinsertformrowview.d.ts +2 -2
  44. package/src/imageinsert/ui/imageinsertformrowview.js +1 -1
  45. package/src/imageinsert/ui/imageinsertpanelview.d.ts +2 -2
  46. package/src/imageinsert/ui/imageinsertpanelview.js +4 -4
  47. package/src/imageinsert/utils.d.ts +3 -3
  48. package/src/imageinsert/utils.js +1 -1
  49. package/src/imageinsert.d.ts +4 -4
  50. package/src/imageinsert.js +4 -4
  51. package/src/imageinsertviaurl.d.ts +2 -2
  52. package/src/imageinsertviaurl.js +2 -2
  53. package/src/imageresize/imageresizebuttons.d.ts +2 -2
  54. package/src/imageresize/imageresizebuttons.js +4 -4
  55. package/src/imageresize/imageresizeediting.d.ts +2 -2
  56. package/src/imageresize/imageresizeediting.js +3 -3
  57. package/src/imageresize/imageresizehandles.d.ts +2 -2
  58. package/src/imageresize/imageresizehandles.js +3 -3
  59. package/src/imageresize/resizeimagecommand.d.ts +1 -1
  60. package/src/imageresize/resizeimagecommand.js +1 -1
  61. package/src/imageresize.d.ts +4 -4
  62. package/src/imageresize.js +4 -4
  63. package/src/imagestyle/converters.d.ts +3 -3
  64. package/src/imagestyle/converters.js +1 -1
  65. package/src/imagestyle/imagestylecommand.d.ts +3 -3
  66. package/src/imagestyle/imagestylecommand.js +1 -1
  67. package/src/imagestyle/imagestyleediting.d.ts +3 -3
  68. package/src/imagestyle/imagestyleediting.js +5 -5
  69. package/src/imagestyle/imagestyleui.d.ts +2 -2
  70. package/src/imagestyle/imagestyleui.js +4 -4
  71. package/src/imagestyle/utils.d.ts +2 -2
  72. package/src/imagestyle/utils.js +2 -2
  73. package/src/imagestyle.d.ts +3 -3
  74. package/src/imagestyle.js +3 -3
  75. package/src/imagetextalternative/imagetextalternativecommand.d.ts +1 -1
  76. package/src/imagetextalternative/imagetextalternativecommand.js +1 -1
  77. package/src/imagetextalternative/imagetextalternativeediting.d.ts +2 -2
  78. package/src/imagetextalternative/imagetextalternativeediting.js +3 -3
  79. package/src/imagetextalternative/imagetextalternativeui.d.ts +2 -2
  80. package/src/imagetextalternative/imagetextalternativeui.js +4 -4
  81. package/src/imagetextalternative/ui/textalternativeformview.d.ts +2 -2
  82. package/src/imagetextalternative/ui/textalternativeformview.js +3 -3
  83. package/src/imagetextalternative.d.ts +3 -3
  84. package/src/imagetextalternative.js +3 -3
  85. package/src/imagetoolbar.d.ts +3 -3
  86. package/src/imagetoolbar.js +3 -3
  87. package/src/imageupload/imageuploadediting.d.ts +6 -6
  88. package/src/imageupload/imageuploadediting.js +10 -10
  89. package/src/imageupload/imageuploadprogress.d.ts +1 -1
  90. package/src/imageupload/imageuploadprogress.js +2 -2
  91. package/src/imageupload/imageuploadui.d.ts +1 -1
  92. package/src/imageupload/imageuploadui.js +3 -3
  93. package/src/imageupload/uploadimagecommand.d.ts +2 -2
  94. package/src/imageupload/uploadimagecommand.js +3 -3
  95. package/src/imageupload/utils.d.ts +2 -2
  96. package/src/imageupload/utils.js +1 -1
  97. package/src/imageupload.d.ts +4 -4
  98. package/src/imageupload.js +4 -4
  99. package/src/imageutils.d.ts +2 -2
  100. package/src/imageutils.js +3 -3
  101. package/src/index.d.ts +40 -40
  102. package/src/index.js +31 -31
  103. package/src/pictureediting.d.ts +3 -3
  104. package/src/pictureediting.js +4 -4
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, 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 { ButtonView, View, ViewCollection, FocusCycler } from 'ckeditor5/src/ui';
6
- import { Collection, FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
5
+ import { ButtonView, View, ViewCollection, FocusCycler } from 'ckeditor5/src/ui.js';
6
+ import { Collection, FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
7
7
  import '../../../theme/imageinsert.css';
8
8
  export type ViewWithName = View & {
9
9
  name: string;
@@ -5,10 +5,10 @@
5
5
  /**
6
6
  * @module image/imageinsert/ui/imageinsertpanelview
7
7
  */
8
- import { icons } from 'ckeditor5/src/core';
9
- import { ButtonView, View, ViewCollection, submitHandler, FocusCycler } from 'ckeditor5/src/ui';
10
- import { Collection, FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils';
11
- import ImageInsertFormRowView from './imageinsertformrowview';
8
+ import { icons } from 'ckeditor5/src/core.js';
9
+ import { ButtonView, View, ViewCollection, submitHandler, FocusCycler } from 'ckeditor5/src/ui.js';
10
+ import { Collection, FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils.js';
11
+ import ImageInsertFormRowView from './imageinsertformrowview.js';
12
12
  import '../../../theme/imageinsert.css';
13
13
  /**
14
14
  * The insert an image via URL view controller class.
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module image/imageinsert/utils
7
7
  */
8
- import type { Locale } from 'ckeditor5/src/utils';
9
- import type { Editor } from 'ckeditor5/src/core';
10
- import { LabeledFieldView, type View } from 'ckeditor5/src/ui';
8
+ import type { Locale } from 'ckeditor5/src/utils.js';
9
+ import type { Editor } from 'ckeditor5/src/core.js';
10
+ import { LabeledFieldView, type View } from 'ckeditor5/src/ui.js';
11
11
  /**
12
12
  * Creates integrations object that will be passed to the
13
13
  * {@link module:image/imageinsert/ui/imageinsertpanelview~ImageInsertPanelView}.
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, 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 { LabeledFieldView, createLabeledInputText } from 'ckeditor5/src/ui';
5
+ import { LabeledFieldView, createLabeledInputText } from 'ckeditor5/src/ui.js';
6
6
  /**
7
7
  * Creates integrations object that will be passed to the
8
8
  * {@link module:image/imageinsert/ui/imageinsertpanelview~ImageInsertPanelView}.
@@ -5,10 +5,10 @@
5
5
  /**
6
6
  * @module image/imageinsert
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import ImageUpload from './imageupload';
10
- import ImageInsertViaUrl from './imageinsertviaurl';
11
- import ImageInsertUI from './imageinsert/imageinsertui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import ImageUpload from './imageupload.js';
10
+ import ImageInsertViaUrl from './imageinsertviaurl.js';
11
+ import ImageInsertUI from './imageinsert/imageinsertui.js';
12
12
  /**
13
13
  * The image insert plugin.
14
14
  *
@@ -5,10 +5,10 @@
5
5
  /**
6
6
  * @module image/imageinsert
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import ImageUpload from './imageupload';
10
- import ImageInsertViaUrl from './imageinsertviaurl';
11
- import ImageInsertUI from './imageinsert/imageinsertui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import ImageUpload from './imageupload.js';
10
+ import ImageInsertViaUrl from './imageinsertviaurl.js';
11
+ import ImageInsertUI from './imageinsert/imageinsertui.js';
12
12
  /**
13
13
  * The image insert plugin.
14
14
  *
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module image/imageinsertviaurl
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import ImageInsertUI from './imageinsert/imageinsertui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import ImageInsertUI from './imageinsert/imageinsertui.js';
10
10
  /**
11
11
  * The image insert via URL plugin.
12
12
  *
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module image/imageinsertviaurl
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import ImageInsertUI from './imageinsert/imageinsertui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import ImageInsertUI from './imageinsert/imageinsertui.js';
10
10
  /**
11
11
  * The image insert via URL plugin.
12
12
  *
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module image/imageresize/imageresizebuttons
7
7
  */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- import ImageResizeEditing from './imageresizeediting';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
+ import ImageResizeEditing from './imageresizeediting.js';
10
10
  /**
11
11
  * The image resize buttons plugin.
12
12
  *
@@ -5,10 +5,10 @@
5
5
  /**
6
6
  * @module image/imageresize/imageresizebuttons
7
7
  */
8
- import { Plugin, icons } from 'ckeditor5/src/core';
9
- import { ButtonView, DropdownButtonView, Model, createDropdown, addListToDropdown } from 'ckeditor5/src/ui';
10
- import { CKEditorError, Collection } from 'ckeditor5/src/utils';
11
- import ImageResizeEditing from './imageresizeediting';
8
+ import { Plugin, icons } from 'ckeditor5/src/core.js';
9
+ import { ButtonView, DropdownButtonView, Model, createDropdown, addListToDropdown } from 'ckeditor5/src/ui.js';
10
+ import { CKEditorError, Collection } from 'ckeditor5/src/utils.js';
11
+ import ImageResizeEditing from './imageresizeediting.js';
12
12
  const RESIZE_ICONS = {
13
13
  small: icons.objectSizeSmall,
14
14
  medium: icons.objectSizeMedium,
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, 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 { type Editor, Plugin } from 'ckeditor5/src/core';
6
- import ImageUtils from '../imageutils';
5
+ import { type Editor, Plugin } from 'ckeditor5/src/core.js';
6
+ import ImageUtils from '../imageutils.js';
7
7
  /**
8
8
  * The image resize editing feature.
9
9
  *
@@ -2,9 +2,9 @@
2
2
  * @license Copyright (c) 2003-2023, 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 ImageUtils from '../imageutils';
7
- import ResizeImageCommand from './resizeimagecommand';
5
+ import { Plugin } from 'ckeditor5/src/core.js';
6
+ import ImageUtils from '../imageutils.js';
7
+ import ResizeImageCommand from './resizeimagecommand.js';
8
8
  /**
9
9
  * The image resize editing feature.
10
10
  *
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, 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 { WidgetResize } from 'ckeditor5/src/widget';
5
+ import { Plugin } from 'ckeditor5/src/core.js';
6
+ import { WidgetResize } from 'ckeditor5/src/widget.js';
7
7
  /**
8
8
  * The image resize by handles feature.
9
9
  *
@@ -2,9 +2,9 @@
2
2
  * @license Copyright (c) 2003-2023, 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 { WidgetResize } from 'ckeditor5/src/widget';
7
- import ImageLoadObserver from '../image/imageloadobserver';
5
+ import { Plugin } from 'ckeditor5/src/core.js';
6
+ import { WidgetResize } from 'ckeditor5/src/widget.js';
7
+ import ImageLoadObserver from '../image/imageloadobserver.js';
8
8
  const RESIZABLE_IMAGES_CSS_SELECTOR = 'figure.image.ck-widget > img,' +
9
9
  'figure.image.ck-widget > picture > img,' +
10
10
  'figure.image.ck-widget > a > img,' +
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module image/imageresize/resizeimagecommand
7
7
  */
8
- import { Command } from 'ckeditor5/src/core';
8
+ import { Command } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The resize image command. Currently, it only supports the width attribute.
11
11
  */
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module image/imageresize/resizeimagecommand
7
7
  */
8
- import { Command } from 'ckeditor5/src/core';
8
+ import { Command } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The resize image command. Currently, it only supports the width attribute.
11
11
  */
@@ -5,10 +5,10 @@
5
5
  /**
6
6
  * @module image/imageresize
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import ImageResizeButtons from './imageresize/imageresizebuttons';
10
- import ImageResizeEditing from './imageresize/imageresizeediting';
11
- import ImageResizeHandles from './imageresize/imageresizehandles';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import ImageResizeButtons from './imageresize/imageresizebuttons.js';
10
+ import ImageResizeEditing from './imageresize/imageresizeediting.js';
11
+ import ImageResizeHandles from './imageresize/imageresizehandles.js';
12
12
  import '../theme/imageresize.css';
13
13
  /**
14
14
  * The image resize plugin.
@@ -5,10 +5,10 @@
5
5
  /**
6
6
  * @module image/imageresize
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import ImageResizeButtons from './imageresize/imageresizebuttons';
10
- import ImageResizeEditing from './imageresize/imageresizeediting';
11
- import ImageResizeHandles from './imageresize/imageresizehandles';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import ImageResizeButtons from './imageresize/imageresizebuttons.js';
10
+ import ImageResizeEditing from './imageresize/imageresizeediting.js';
11
+ import ImageResizeHandles from './imageresize/imageresizehandles.js';
12
12
  import '../theme/imageresize.css';
13
13
  /**
14
14
  * The image resize plugin.
@@ -2,9 +2,9 @@
2
2
  * @license Copyright (c) 2003-2023, 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 type { DowncastAttributeEvent, UpcastElementEvent } from 'ckeditor5/src/engine';
6
- import { type GetCallback } from 'ckeditor5/src/utils';
7
- import type { ImageStyleOptionDefinition } from '../imageconfig';
5
+ import type { DowncastAttributeEvent, UpcastElementEvent } from 'ckeditor5/src/engine.js';
6
+ import { type GetCallback } from 'ckeditor5/src/utils.js';
7
+ import type { ImageStyleOptionDefinition } from '../imageconfig.js';
8
8
  /**
9
9
  * @module image/imagestyle/converters
10
10
  */
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, 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 { first } from 'ckeditor5/src/utils';
5
+ import { first } from 'ckeditor5/src/utils.js';
6
6
  /**
7
7
  * @module image/imagestyle/converters
8
8
  */
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module image/imagestyle/imagestylecommand
7
7
  */
8
- import type { Element } from 'ckeditor5/src/engine';
9
- import { Command, type Editor } from 'ckeditor5/src/core';
10
- import type { ImageStyleOptionDefinition } from '../imageconfig';
8
+ import type { Element } from 'ckeditor5/src/engine.js';
9
+ import { Command, type Editor } from 'ckeditor5/src/core.js';
10
+ import type { ImageStyleOptionDefinition } from '../imageconfig.js';
11
11
  /**
12
12
  * The image style command. It is used to apply {@link module:image/imageconfig~ImageStyleConfig#options image style option}
13
13
  * to a selected image.
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, 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';
5
+ import { Command } from 'ckeditor5/src/core.js';
6
6
  /**
7
7
  * The image style command. It is used to apply {@link module:image/imageconfig~ImageStyleConfig#options image style option}
8
8
  * to a selected image.
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module image/imagestyle/imagestyleediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import ImageUtils from '../imageutils';
10
- import type { ImageStyleOptionDefinition } from '../imageconfig';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import ImageUtils from '../imageutils.js';
10
+ import type { ImageStyleOptionDefinition } from '../imageconfig.js';
11
11
  /**
12
12
  * The image style engine plugin. It sets the default configuration, creates converters and registers
13
13
  * {@link module:image/imagestyle/imagestylecommand~ImageStyleCommand ImageStyleCommand}.
@@ -5,11 +5,11 @@
5
5
  /**
6
6
  * @module image/imagestyle/imagestyleediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import ImageStyleCommand from './imagestylecommand';
10
- import ImageUtils from '../imageutils';
11
- import utils from './utils';
12
- import { viewToModelStyleAttribute, modelToViewStyleAttribute } from './converters';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import ImageStyleCommand from './imagestylecommand.js';
10
+ import ImageUtils from '../imageutils.js';
11
+ import utils from './utils.js';
12
+ import { viewToModelStyleAttribute, modelToViewStyleAttribute } from './converters.js';
13
13
  /**
14
14
  * The image style engine plugin. It sets the default configuration, creates converters and registers
15
15
  * {@link module:image/imagestyle/imagestylecommand~ImageStyleCommand ImageStyleCommand}.
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module image/imagestyle/imagestyleui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import ImageStyleEditing from './imagestyleediting';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import ImageStyleEditing from './imagestyleediting.js';
10
10
  import '../../theme/imagestyle.css';
11
11
  /**
12
12
  * The image style UI plugin.
@@ -5,11 +5,11 @@
5
5
  /**
6
6
  * @module image/imagestyle/imagestyleui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { ButtonView, createDropdown, addToolbarToDropdown, SplitButtonView } from 'ckeditor5/src/ui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { ButtonView, createDropdown, addToolbarToDropdown, SplitButtonView } from 'ckeditor5/src/ui.js';
10
10
  import { isObject, identity } from 'lodash-es';
11
- import ImageStyleEditing from './imagestyleediting';
12
- import utils from './utils';
11
+ import ImageStyleEditing from './imagestyleediting.js';
12
+ import utils from './utils.js';
13
13
  import '../../theme/imagestyle.css';
14
14
  /**
15
15
  * The image style UI plugin.
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module image/imagestyle/utils
7
7
  */
8
- import { type Editor, type PluginCollection } from 'ckeditor5/src/core';
9
- import type { ImageStyleConfig, ImageStyleDropdownDefinition, ImageStyleOptionDefinition } from '../imageconfig';
8
+ import { type Editor, type PluginCollection } from 'ckeditor5/src/core.js';
9
+ import type { ImageStyleConfig, ImageStyleDropdownDefinition, ImageStyleOptionDefinition } from '../imageconfig.js';
10
10
  /**
11
11
  * Default image style options provided by the plugin that can be referred in the {@link module:image/imageconfig~ImageConfig#styles}
12
12
  * configuration.
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module image/imagestyle/utils
7
7
  */
8
- import { icons } from 'ckeditor5/src/core';
9
- import { logWarning } from 'ckeditor5/src/utils';
8
+ import { icons } from 'ckeditor5/src/core.js';
9
+ import { logWarning } from 'ckeditor5/src/utils.js';
10
10
  const { objectFullWidth, objectInline, objectLeft, objectRight, objectCenter, objectBlockLeft, objectBlockRight } = icons;
11
11
  /**
12
12
  * Default image style options provided by the plugin that can be referred in the {@link module:image/imageconfig~ImageConfig#styles}
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module image/imagestyle
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import ImageStyleEditing from './imagestyle/imagestyleediting';
10
- import ImageStyleUI from './imagestyle/imagestyleui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import ImageStyleEditing from './imagestyle/imagestyleediting.js';
10
+ import ImageStyleUI from './imagestyle/imagestyleui.js';
11
11
  /**
12
12
  * The image style plugin.
13
13
  *
package/src/imagestyle.js CHANGED
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module image/imagestyle
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import ImageStyleEditing from './imagestyle/imagestyleediting';
10
- import ImageStyleUI from './imagestyle/imagestyleui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import ImageStyleEditing from './imagestyle/imagestyleediting.js';
10
+ import ImageStyleUI from './imagestyle/imagestyleui.js';
11
11
  /**
12
12
  * The image style plugin.
13
13
  *
@@ -5,7 +5,7 @@
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
  */
@@ -5,7 +5,7 @@
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
  */
@@ -5,8 +5,8 @@
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
  *
@@ -5,9 +5,9 @@
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
  *
@@ -5,8 +5,8 @@
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
  *
@@ -5,10 +5,10 @@
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
  *
@@ -5,8 +5,8 @@
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 } 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
  /**
@@ -5,9 +5,9 @@
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
@@ -5,9 +5,9 @@
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
  *
@@ -5,9 +5,9 @@
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
  *
@@ -5,9 +5,9 @@
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
  *
@@ -5,9 +5,9 @@
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).
@@ -5,12 +5,12 @@
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.
@@ -5,16 +5,16 @@
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.