@ckeditor/ckeditor5-image 37.0.0-alpha.0 → 37.0.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 (56) hide show
  1. package/package.json +33 -33
  2. package/src/augmentation.d.ts +55 -0
  3. package/src/augmentation.js +5 -0
  4. package/src/autoimage.d.ts +0 -5
  5. package/src/image/imageblockediting.d.ts +0 -5
  6. package/src/image/imageediting.d.ts +0 -5
  7. package/src/image/imageloadobserver.d.ts +1 -1
  8. package/src/image/imagetypecommand.d.ts +0 -6
  9. package/src/image/insertimagecommand.d.ts +0 -6
  10. package/src/image/insertimagecommand.js +0 -1
  11. package/src/image/replaceimagesourcecommand.d.ts +0 -5
  12. package/src/image.d.ts +0 -6
  13. package/src/image.js +0 -1
  14. package/src/imageblock.d.ts +0 -5
  15. package/src/imagecaption/imagecaptionediting.d.ts +0 -5
  16. package/src/imagecaption/imagecaptionui.d.ts +0 -5
  17. package/src/imagecaption/imagecaptionutils.d.ts +1 -6
  18. package/src/imagecaption/toggleimagecaptioncommand.d.ts +0 -5
  19. package/src/imagecaption.d.ts +0 -5
  20. package/src/imageconfig.d.ts +15 -25
  21. package/src/imageinline.d.ts +0 -5
  22. package/src/imageinsert/imageinsertui.d.ts +0 -5
  23. package/src/imageinsert/ui/imageinsertpanelview.d.ts +4 -4
  24. package/src/imageinsert/utils.d.ts +0 -1
  25. package/src/imageinsert/utils.js +0 -1
  26. package/src/imageinsert.d.ts +0 -5
  27. package/src/imageinsertviaurl.d.ts +0 -5
  28. package/src/imageresize/imageresizeediting.d.ts +0 -6
  29. package/src/imageresize/imageresizeediting.js +0 -1
  30. package/src/imageresize/imageresizehandles.d.ts +0 -1
  31. package/src/imageresize/imageresizehandles.js +0 -1
  32. package/src/imageresize/resizeimagecommand.d.ts +0 -5
  33. package/src/imageresize.d.ts +0 -5
  34. package/src/imagestyle/imagestylecommand.d.ts +0 -5
  35. package/src/imagestyle/imagestyleediting.d.ts +0 -5
  36. package/src/imagestyle/imagestyleui.d.ts +2 -7
  37. package/src/imagestyle/imagestyleui.js +2 -2
  38. package/src/imagestyle/utils.d.ts +41 -1
  39. package/src/imagestyle/utils.js +4 -4
  40. package/src/imagestyle.d.ts +0 -5
  41. package/src/imagetextalternative/imagetextalternativecommand.d.ts +0 -5
  42. package/src/imagetextalternative/imagetextalternativeediting.d.ts +0 -5
  43. package/src/imagetextalternative/imagetextalternativeui.d.ts +0 -5
  44. package/src/imagetextalternative.d.ts +0 -5
  45. package/src/imagetoolbar.d.ts +0 -5
  46. package/src/imageupload/imageuploadediting.d.ts +1 -7
  47. package/src/imageupload/imageuploadediting.js +0 -1
  48. package/src/imageupload/imageuploadprogress.d.ts +0 -5
  49. package/src/imageupload/imageuploadui.d.ts +0 -6
  50. package/src/imageupload/imageuploadui.js +0 -1
  51. package/src/imageupload/uploadimagecommand.d.ts +0 -5
  52. package/src/imageupload.d.ts +0 -5
  53. package/src/imageutils.d.ts +0 -6
  54. package/src/imageutils.js +0 -1
  55. package/src/index.d.ts +16 -0
  56. package/src/index.js +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-image",
3
- "version": "37.0.0-alpha.0",
3
+ "version": "37.0.0-alpha.1",
4
4
  "description": "Image feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,40 +12,40 @@
12
12
  ],
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "@ckeditor/ckeditor5-ui": "^37.0.0-alpha.0",
16
- "ckeditor5": "^37.0.0-alpha.0",
15
+ "@ckeditor/ckeditor5-ui": "^37.0.0-alpha.1",
16
+ "ckeditor5": "^37.0.0-alpha.1",
17
17
  "lodash-es": "^4.17.15"
18
18
  },
19
19
  "devDependencies": {
20
- "@ckeditor/ckeditor5-adapter-ckfinder": "^37.0.0-alpha.0",
21
- "@ckeditor/ckeditor5-autoformat": "^37.0.0-alpha.0",
22
- "@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.0",
23
- "@ckeditor/ckeditor5-block-quote": "^37.0.0-alpha.0",
24
- "@ckeditor/ckeditor5-ckfinder": "^37.0.0-alpha.0",
25
- "@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.0",
26
- "@ckeditor/ckeditor5-cloud-services": "^37.0.0-alpha.0",
27
- "@ckeditor/ckeditor5-core": "^37.0.0-alpha.0",
28
- "@ckeditor/ckeditor5-dev-utils": "^34.0.0",
29
- "@ckeditor/ckeditor5-easy-image": "^37.0.0-alpha.0",
30
- "@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.0",
31
- "@ckeditor/ckeditor5-engine": "^37.0.0-alpha.0",
32
- "@ckeditor/ckeditor5-enter": "^37.0.0-alpha.0",
33
- "@ckeditor/ckeditor5-essentials": "^37.0.0-alpha.0",
34
- "@ckeditor/ckeditor5-heading": "^37.0.0-alpha.0",
35
- "@ckeditor/ckeditor5-html-embed": "^37.0.0-alpha.0",
36
- "@ckeditor/ckeditor5-indent": "^37.0.0-alpha.0",
37
- "@ckeditor/ckeditor5-link": "^37.0.0-alpha.0",
38
- "@ckeditor/ckeditor5-list": "^37.0.0-alpha.0",
39
- "@ckeditor/ckeditor5-media-embed": "^37.0.0-alpha.0",
40
- "@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.0",
41
- "@ckeditor/ckeditor5-table": "^37.0.0-alpha.0",
42
- "@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.0",
43
- "@ckeditor/ckeditor5-typing": "^37.0.0-alpha.0",
44
- "@ckeditor/ckeditor5-undo": "^37.0.0-alpha.0",
45
- "@ckeditor/ckeditor5-upload": "^37.0.0-alpha.0",
46
- "@ckeditor/ckeditor5-utils": "^37.0.0-alpha.0",
47
- "@ckeditor/ckeditor5-watchdog": "^37.0.0-alpha.0",
48
- "@ckeditor/ckeditor5-widget": "^37.0.0-alpha.0",
20
+ "@ckeditor/ckeditor5-adapter-ckfinder": "^37.0.0-alpha.1",
21
+ "@ckeditor/ckeditor5-autoformat": "^37.0.0-alpha.1",
22
+ "@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.1",
23
+ "@ckeditor/ckeditor5-block-quote": "^37.0.0-alpha.1",
24
+ "@ckeditor/ckeditor5-ckfinder": "^37.0.0-alpha.1",
25
+ "@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.1",
26
+ "@ckeditor/ckeditor5-cloud-services": "^37.0.0-alpha.1",
27
+ "@ckeditor/ckeditor5-core": "^37.0.0-alpha.1",
28
+ "@ckeditor/ckeditor5-dev-utils": "^35.0.0",
29
+ "@ckeditor/ckeditor5-easy-image": "^37.0.0-alpha.1",
30
+ "@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.1",
31
+ "@ckeditor/ckeditor5-engine": "^37.0.0-alpha.1",
32
+ "@ckeditor/ckeditor5-enter": "^37.0.0-alpha.1",
33
+ "@ckeditor/ckeditor5-essentials": "^37.0.0-alpha.1",
34
+ "@ckeditor/ckeditor5-heading": "^37.0.0-alpha.1",
35
+ "@ckeditor/ckeditor5-html-embed": "^37.0.0-alpha.1",
36
+ "@ckeditor/ckeditor5-indent": "^37.0.0-alpha.1",
37
+ "@ckeditor/ckeditor5-link": "^37.0.0-alpha.1",
38
+ "@ckeditor/ckeditor5-list": "^37.0.0-alpha.1",
39
+ "@ckeditor/ckeditor5-media-embed": "^37.0.0-alpha.1",
40
+ "@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.1",
41
+ "@ckeditor/ckeditor5-table": "^37.0.0-alpha.1",
42
+ "@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.1",
43
+ "@ckeditor/ckeditor5-typing": "^37.0.0-alpha.1",
44
+ "@ckeditor/ckeditor5-undo": "^37.0.0-alpha.1",
45
+ "@ckeditor/ckeditor5-upload": "^37.0.0-alpha.1",
46
+ "@ckeditor/ckeditor5-utils": "^37.0.0-alpha.1",
47
+ "@ckeditor/ckeditor5-watchdog": "^37.0.0-alpha.1",
48
+ "@ckeditor/ckeditor5-widget": "^37.0.0-alpha.1",
49
49
  "typescript": "^4.8.4",
50
50
  "webpack": "^5.58.1",
51
51
  "webpack-cli": "^4.9.0"
@@ -74,7 +74,7 @@
74
74
  ],
75
75
  "scripts": {
76
76
  "dll:build": "webpack",
77
- "build": "tsc -p ./tsconfig.release.json",
77
+ "build": "tsc -p ./tsconfig.json",
78
78
  "postversion": "npm run build"
79
79
  },
80
80
  "types": "src/index.d.ts"
@@ -0,0 +1,55 @@
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 { ImageConfig, AutoImage, Image, ImageBlock, ImageCaption, ImageInline, ImageInsert, ImageInsertViaUrl, ImageResize, ImageStyle, ImageTextAlternative, ImageToolbar, ImageUpload, ImageUtils, ImageBlockEditing, ImageEditing, ImageCaptionEditing, ImageCaptionUI, ImageCaptionUtils, ImageInsertUI, ImageResizeEditing, ImageStyleEditing, ImageStyleUI, ImageTextAlternativeEditing, ImageTextAlternativeUI, ImageUploadEditing, ImageUploadProgress, ImageUploadUI, ImageTypeCommand, InsertImageCommand, ReplaceImageSourceCommand, ToggleImageCaptionCommand, ResizeImageCommand, ImageStyleCommand, ImageTextAlternativeCommand, UploadImageCommand } from '.';
6
+ declare module '@ckeditor/ckeditor5-core' {
7
+ interface EditorConfig {
8
+ /**
9
+ * The configuration of the image features. Used by the image features in the `@ckeditor/ckeditor5-image` package.
10
+ *
11
+ * Read more in {@link module:image/imageconfig~ImageConfig}.
12
+ */
13
+ image?: ImageConfig;
14
+ }
15
+ interface PluginsMap {
16
+ [AutoImage.pluginName]: AutoImage;
17
+ [Image.pluginName]: Image;
18
+ [ImageBlock.pluginName]: ImageBlock;
19
+ [ImageCaption.pluginName]: ImageCaption;
20
+ [ImageInline.pluginName]: ImageInline;
21
+ [ImageInsert.pluginName]: ImageInsert;
22
+ [ImageInsertViaUrl.pluginName]: ImageInsertViaUrl;
23
+ [ImageResize.pluginName]: ImageResize;
24
+ [ImageStyle.pluginName]: ImageStyle;
25
+ [ImageTextAlternative.pluginName]: ImageTextAlternative;
26
+ [ImageToolbar.pluginName]: ImageToolbar;
27
+ [ImageUpload.pluginName]: ImageUpload;
28
+ [ImageUtils.pluginName]: ImageUtils;
29
+ [ImageBlockEditing.pluginName]: ImageBlockEditing;
30
+ [ImageEditing.pluginName]: ImageEditing;
31
+ [ImageCaptionEditing.pluginName]: ImageCaptionEditing;
32
+ [ImageCaptionUI.pluginName]: ImageCaptionUI;
33
+ [ImageCaptionUtils.pluginName]: ImageCaptionUtils;
34
+ [ImageInsertUI.pluginName]: ImageInsertUI;
35
+ [ImageResizeEditing.pluginName]: ImageResizeEditing;
36
+ [ImageStyleEditing.pluginName]: ImageStyleEditing;
37
+ [ImageStyleUI.pluginName]: ImageStyleUI;
38
+ [ImageTextAlternativeEditing.pluginName]: ImageTextAlternativeEditing;
39
+ [ImageTextAlternativeUI.pluginName]: ImageTextAlternativeUI;
40
+ [ImageUploadEditing.pluginName]: ImageUploadEditing;
41
+ [ImageUploadProgress.pluginName]: ImageUploadProgress;
42
+ [ImageUploadUI.pluginName]: ImageUploadUI;
43
+ }
44
+ interface CommandsMap {
45
+ imageTypeBlock: ImageTypeCommand;
46
+ imageTypeInline: ImageTypeCommand;
47
+ insertImage: InsertImageCommand;
48
+ replaceImageSource: ReplaceImageSourceCommand;
49
+ toggleImageCaption: ToggleImageCaptionCommand;
50
+ resizeImage: ResizeImageCommand;
51
+ imageStyle: ImageStyleCommand;
52
+ imageTextAlternative: ImageTextAlternativeCommand;
53
+ uploadImage: UploadImageCommand;
54
+ }
55
+ }
@@ -0,0 +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 {};
@@ -46,8 +46,3 @@ export default class AutoImage extends Plugin {
46
46
  */
47
47
  private _embedImageBetweenPositions;
48
48
  }
49
- declare module '@ckeditor/ckeditor5-core' {
50
- interface PluginsMap {
51
- [AutoImage.pluginName]: AutoImage;
52
- }
53
- }
@@ -50,8 +50,3 @@ export default class ImageBlockEditing extends Plugin {
50
50
  */
51
51
  private _setupClipboardIntegration;
52
52
  }
53
- declare module '@ckeditor/ckeditor5-core' {
54
- interface PluginsMap {
55
- [ImageBlockEditing.pluginName]: ImageBlockEditing;
56
- }
57
- }
@@ -27,8 +27,3 @@ export default class ImageEditing extends Plugin {
27
27
  */
28
28
  init(): void;
29
29
  }
30
- declare module '@ckeditor/ckeditor5-core' {
31
- interface PluginsMap {
32
- [ImageEditing.pluginName]: ImageEditing;
33
- }
34
- }
@@ -35,7 +35,7 @@ export default class ImageLoadObserver extends Observer {
35
35
  *
36
36
  * @see module:image/image/imageloadobserver~ImageLoadObserver
37
37
  *
38
- * @eventName imageLoaded
38
+ * @eventName module:engine/view/document~Document#imageLoaded
39
39
  * @param data Event data.
40
40
  */
41
41
  export type ImageLoadedEvent = {
@@ -38,9 +38,3 @@ export default class ImageTypeCommand extends Command {
38
38
  newElement: Element;
39
39
  } | null;
40
40
  }
41
- declare module '@ckeditor/ckeditor5-core' {
42
- interface CommandsMap {
43
- imageTypeBlock: ImageTypeCommand;
44
- imageTypeInline: ImageTypeCommand;
45
- }
46
- }
@@ -7,7 +7,6 @@
7
7
  */
8
8
  import { Command, type Editor } from 'ckeditor5/src/core';
9
9
  import { type ArrayOrItem } from 'ckeditor5/src/utils';
10
- import '../imageconfig';
11
10
  /**
12
11
  * Insert image command.
13
12
  *
@@ -65,8 +64,3 @@ export default class InsertImageCommand extends Command {
65
64
  source: ArrayOrItem<string | Record<string, unknown>>;
66
65
  }): void;
67
66
  }
68
- declare module '@ckeditor/ckeditor5-core' {
69
- interface CommandsMap {
70
- insertImage: InsertImageCommand;
71
- }
72
- }
@@ -7,7 +7,6 @@
7
7
  */
8
8
  import { Command } from 'ckeditor5/src/core';
9
9
  import { logWarning, toArray } from 'ckeditor5/src/utils';
10
- import '../imageconfig';
11
10
  /**
12
11
  * Insert image command.
13
12
  *
@@ -32,8 +32,3 @@ export default class ReplaceImageSourceCommand extends Command {
32
32
  source: string;
33
33
  }): void;
34
34
  }
35
- declare module '@ckeditor/ckeditor5-core' {
36
- interface CommandsMap {
37
- replaceImageSource: ReplaceImageSourceCommand;
38
- }
39
- }
package/src/image.d.ts CHANGED
@@ -7,7 +7,6 @@
7
7
  */
8
8
  import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
9
9
  import '../theme/image.css';
10
- import './imageconfig';
11
10
  /**
12
11
  * The image plugin.
13
12
  *
@@ -31,8 +30,3 @@ export default class Image extends Plugin {
31
30
  */
32
31
  static get pluginName(): 'Image';
33
32
  }
34
- declare module '@ckeditor/ckeditor5-core' {
35
- interface PluginsMap {
36
- [Image.pluginName]: Image;
37
- }
38
- }
package/src/image.js CHANGED
@@ -9,7 +9,6 @@ import { Plugin } from 'ckeditor5/src/core';
9
9
  import ImageBlock from './imageblock';
10
10
  import ImageInline from './imageinline';
11
11
  import '../theme/image.css';
12
- import './imageconfig';
13
12
  /**
14
13
  * The image plugin.
15
14
  *
@@ -28,8 +28,3 @@ export default class ImageBlock extends Plugin {
28
28
  */
29
29
  static get pluginName(): 'ImageBlock';
30
30
  }
31
- declare module '@ckeditor/ckeditor5-core' {
32
- interface PluginsMap {
33
- [ImageBlock.pluginName]: ImageBlock;
34
- }
35
- }
@@ -85,8 +85,3 @@ export default class ImageCaptionEditing extends Plugin {
85
85
  */
86
86
  private _registerCaptionReconversion;
87
87
  }
88
- declare module '@ckeditor/ckeditor5-core' {
89
- interface PluginsMap {
90
- [ImageCaptionEditing.pluginName]: ImageCaptionEditing;
91
- }
92
- }
@@ -23,8 +23,3 @@ export default class ImageCaptionUI extends Plugin {
23
23
  */
24
24
  init(): void;
25
25
  }
26
- declare module '@ckeditor/ckeditor5-core' {
27
- interface PluginsMap {
28
- [ImageCaptionUI.pluginName]: ImageCaptionUI;
29
- }
30
- }
@@ -3,7 +3,7 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
- * @module image/imagecaptionutils/utils
6
+ * @module image/imagecaption/imagecaptionutils
7
7
  */
8
8
  import type { DocumentSelection, Element, Selection, ViewElement, Match } from 'ckeditor5/src/engine';
9
9
  import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
@@ -35,8 +35,3 @@ export default class ImageCaptionUtils extends Plugin {
35
35
  */
36
36
  matchImageCaptionViewElement(element: ViewElement): Match | null;
37
37
  }
38
- declare module '@ckeditor/ckeditor5-core' {
39
- interface PluginsMap {
40
- [ImageCaptionUtils.pluginName]: ImageCaptionUtils;
41
- }
42
- }
@@ -64,8 +64,3 @@ export default class ToggleImageCaptionCommand extends Command {
64
64
  */
65
65
  private _hideImageCaption;
66
66
  }
67
- declare module '@ckeditor/ckeditor5-core' {
68
- interface CommandsMap {
69
- toggleImageCaption: ToggleImageCaptionCommand;
70
- }
71
- }
@@ -22,8 +22,3 @@ export default class ImageCaption extends Plugin {
22
22
  */
23
23
  static get pluginName(): 'ImageCaption';
24
24
  }
25
- declare module '@ckeditor/ckeditor5-core' {
26
- interface PluginsMap {
27
- [ImageCaption.pluginName]: ImageCaption;
28
- }
29
- }
@@ -30,7 +30,7 @@ export interface ImageConfig {
30
30
  * Each option should have at least these two properties:
31
31
  *
32
32
  * * name: The name of the UI component registered in the global
33
- * {@link module:core/editor/editorui~EditorUI#componentFactory component factory} of the editor,
33
+ * {@link module:ui/editorui/editorui~EditorUI#componentFactory component factory} of the editor,
34
34
  * representing the button a user can click to change the size of an image,
35
35
  * * value: An actual image width applied when a user clicks the mentioned button
36
36
  * ({@link module:image/imageresize/resizeimagecommand~ResizeImageCommand} gets executed).
@@ -293,13 +293,13 @@ export interface ImageConfig {
293
293
  * };
294
294
  * ```
295
295
  *
296
- * Read more about the {@link module:image/imagestyle/utils~DEFAULT_OPTIONS default styling options}.
296
+ * Read more about the {@link module:image/imagestyle/utils#DEFAULT_OPTIONS default styling options}.
297
297
  *
298
298
  * # **Custom configuration**
299
299
  *
300
300
  * The image styles configuration can be customized in several ways:
301
301
  *
302
- * * Any of the {@link module:image/imagestyle/utils~DEFAULT_OPTIONS default styling options}
302
+ * * Any of the {@link module:image/imagestyle/utils#DEFAULT_OPTIONS default styling options}
303
303
  * can be loaded by the reference to its name as follows:
304
304
  *
305
305
  * ```ts
@@ -313,9 +313,9 @@ export interface ImageConfig {
313
313
  * } );
314
314
  * ```
315
315
  *
316
- * * Each of the {@link module:image/imagestyle/utils~DEFAULT_OPTIONS default image style options} can be customized,
316
+ * * Each of the {@link module:image/imagestyle/utils#DEFAULT_OPTIONS default image style options} can be customized,
317
317
  * e.g. to change the `icon`, `title` or CSS `className` of the style. The feature also provides several
318
- * {@link module:image/imagestyle/utils~DEFAULT_ICONS default icons} to choose from.
318
+ * {@link module:image/imagestyle/utils#DEFAULT_ICONS default icons} to choose from.
319
319
  *
320
320
  * ```ts
321
321
  * import customIcon from 'custom-icon.svg';
@@ -344,7 +344,7 @@ export interface ImageConfig {
344
344
  * } );
345
345
  * ```
346
346
  *
347
- * * If none of the {@link module:image/imagestyle/utils~DEFAULT_OPTIONS default image style options}
347
+ * * If none of the {@link module:image/imagestyle/utils#DEFAULT_OPTIONS default image style options}
348
348
  * works for the integration, it is possible to define independent custom styles, too.
349
349
  *
350
350
  * See the documentation about the image style {@link module:image/imageconfig~ImageStyleOptionDefinition options}
@@ -399,7 +399,7 @@ export interface ImageConfig {
399
399
  * * `'imageTextAlternative'`,
400
400
  * * `'toggleImageCaption'`,
401
401
  * * {@link module:image/imageconfig~ImageConfig#styles buttons provided by the `ImageStyle` plugin},
402
- * * {@link module:image/imagestyle/utils~DEFAULT_DROPDOWN_DEFINITIONS drop-downs provided by the `ImageStyle` plugin},
402
+ * * {@link module:image/imagestyle/utils#DEFAULT_DROPDOWN_DEFINITIONS drop-downs provided by the `ImageStyle` plugin},
403
403
  *
404
404
  * so you can configure the toolbar like this:
405
405
  *
@@ -588,7 +588,7 @@ export interface ImageStyleConfig {
588
588
  *
589
589
  * This definition should be implemented in the `Image` plugin {@link module:image/imageconfig~ImageConfig#styles configuration} for:
590
590
  *
591
- * * customizing one of the {@link module:image/imagestyle/utils~DEFAULT_OPTIONS default styling options} by providing the proper name
591
+ * * customizing one of the {@link module:image/imagestyle/utils#DEFAULT_OPTIONS default styling options} by providing the proper name
592
592
  * of the default style and the properties that should be overridden,
593
593
  * * or defining a completely custom styling option by providing a custom name and implementing the following properties.
594
594
  *
@@ -612,7 +612,7 @@ export interface ImageStyleOptionDefinition {
612
612
  /**
613
613
  * The unique name of the styling option. It will be used to:
614
614
  *
615
- * * refer to one of the {@link module:image/imagestyle/utils~DEFAULT_OPTIONS default styling options} or define the custom style,
615
+ * * refer to one of the {@link module:image/imagestyle/utils#DEFAULT_OPTIONS default styling options} or define the custom style,
616
616
  * * store the chosen style in the model by setting the `imageStyle` attribute of the model image element,
617
617
  * * as a value of the {@link module:image/imagestyle/imagestylecommand~ImageStyleCommand#execute `imageStyle` command},
618
618
  * * when registering a button for the style in the following manner: (`'imageStyle:{name}'`).
@@ -623,17 +623,17 @@ export interface ImageStyleOptionDefinition {
623
623
  * listed in the `modelElements` property. A default style does not apply any CSS class to the view element.
624
624
  *
625
625
  * If this property is not defined, its value is inherited
626
- * from the {@link module:image/imagestyle/utils~DEFAULT_OPTIONS default styling options} addressed in the name property.
626
+ * from the {@link module:image/imagestyle/utils#DEFAULT_OPTIONS default styling options} addressed in the name property.
627
627
  */
628
628
  isDefault?: boolean;
629
629
  /**
630
630
  * One of the following to be used when creating the styles's button:
631
631
  *
632
632
  * * an SVG icon source (as an XML string),
633
- * * one of the keys in {@link module:image/imagestyle/utils~DEFAULT_ICONS} to use one of default icons provided by the plugin.
633
+ * * one of the keys in {@link module:image/imagestyle/utils#DEFAULT_ICONS} to use one of default icons provided by the plugin.
634
634
  *
635
635
  * If this property is not defined, its value is inherited
636
- * from the {@link module:image/imagestyle/utils~DEFAULT_OPTIONS default styling options} addressed in the name property.
636
+ * from the {@link module:image/imagestyle/utils#DEFAULT_OPTIONS default styling options} addressed in the name property.
637
637
  */
638
638
  icon: string;
639
639
  /**
@@ -642,7 +642,7 @@ export interface ImageStyleOptionDefinition {
642
642
  * will automatically translate it to the language of the editor.
643
643
  *
644
644
  * If this property is not defined, its value is inherited
645
- * from the {@link module:image/imagestyle/utils~DEFAULT_OPTIONS default styling options} addressed in the name property.
645
+ * from the {@link module:image/imagestyle/utils#DEFAULT_OPTIONS default styling options} addressed in the name property.
646
646
  */
647
647
  title: string;
648
648
  /**
@@ -650,7 +650,7 @@ export interface ImageStyleOptionDefinition {
650
650
  * It should be used only for the non-default styles.
651
651
  *
652
652
  * If this property is not defined, its value is inherited
653
- * from the {@link module:image/imagestyle/utils~DEFAULT_OPTIONS default styling options} addressed in the name property.
653
+ * from the {@link module:image/imagestyle/utils#DEFAULT_OPTIONS default styling options} addressed in the name property.
654
654
  */
655
655
  className?: string;
656
656
  /**
@@ -668,7 +668,7 @@ export interface ImageStyleOptionDefinition {
668
668
  * will automatically change.
669
669
  *
670
670
  * If this property is not defined, its value is inherited
671
- * from the {@link module:image/imagestyle/utils~DEFAULT_OPTIONS default styling options} addressed in the name property.
671
+ * from the {@link module:image/imagestyle/utils#DEFAULT_OPTIONS default styling options} addressed in the name property.
672
672
  */
673
673
  modelElements: Array<string>;
674
674
  }
@@ -711,13 +711,3 @@ export interface ImageUploadConfig {
711
711
  */
712
712
  types: Array<string>;
713
713
  }
714
- declare module '@ckeditor/ckeditor5-core' {
715
- interface EditorConfig {
716
- /**
717
- * The configuration of the image features. Used by the image features in the `@ckeditor/ckeditor5-image` package.
718
- *
719
- * Read more in {@link module:image/imageconfig~ImageConfig}.
720
- */
721
- image?: ImageConfig;
722
- }
723
- }
@@ -28,8 +28,3 @@ export default class ImageInline extends Plugin {
28
28
  */
29
29
  static get pluginName(): 'ImageInline';
30
30
  }
31
- declare module '@ckeditor/ckeditor5-core' {
32
- interface PluginsMap {
33
- [ImageInline.pluginName]: ImageInline;
34
- }
35
- }
@@ -42,8 +42,3 @@ export default class ImageInsertUI extends Plugin {
42
42
  */
43
43
  private _setUpDropdown;
44
44
  }
45
- declare module '@ckeditor/ckeditor5-core' {
46
- interface PluginsMap {
47
- [ImageInsertUI.pluginName]: ImageInsertUI;
48
- }
49
- }
@@ -87,18 +87,18 @@ export default class ImageInsertPanelView extends View {
87
87
  }
88
88
  /**
89
89
  * Fired when the form view is submitted (when one of the children triggered the submit event),
90
- * e.g. by a click on {@link #insertButtonView}.
90
+ * e.g. by a click on {@link ~ImageInsertPanelView#insertButtonView}.
91
91
  *
92
- * @eventName submit
92
+ * @eventName ~ImageInsertPanelView#submit
93
93
  */
94
94
  export type SubmitEvent = {
95
95
  name: 'submit';
96
96
  args: [];
97
97
  };
98
98
  /**
99
- * Fired when the form view is canceled, e.g. by a click on {@link #cancelButtonView}.
99
+ * Fired when the form view is canceled, e.g. by a click on {@link ~ImageInsertPanelView#cancelButtonView}.
100
100
  *
101
- * @eventName cancel
101
+ * @eventName ~ImageInsertPanelView#cancel
102
102
  */
103
103
  export type CancelEvent = {
104
104
  name: 'cancel';
@@ -8,7 +8,6 @@
8
8
  import type { Locale } from 'ckeditor5/src/utils';
9
9
  import type { Editor } from 'ckeditor5/src/core';
10
10
  import { LabeledFieldView, type View } from 'ckeditor5/src/ui';
11
- import '../imageconfig';
12
11
  /**
13
12
  * Creates integrations object that will be passed to the
14
13
  * {@link module:image/imageinsert/ui/imageinsertpanelview~ImageInsertPanelView}.
@@ -3,7 +3,6 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  import { LabeledFieldView, createLabeledInputText } from 'ckeditor5/src/ui';
6
- import '../imageconfig';
7
6
  /**
8
7
  * Creates integrations object that will be passed to the
9
8
  * {@link module:image/imageinsert/ui/imageinsertpanelview~ImageInsertPanelView}.
@@ -28,8 +28,3 @@ export default class ImageInsert extends Plugin {
28
28
  */
29
29
  static get requires(): PluginDependencies;
30
30
  }
31
- declare module '@ckeditor/ckeditor5-core' {
32
- interface PluginsMap {
33
- [ImageInsert.pluginName]: ImageInsert;
34
- }
35
- }
@@ -27,8 +27,3 @@ export default class ImageInsertViaUrl extends Plugin {
27
27
  */
28
28
  static get requires(): PluginDependencies;
29
29
  }
30
- declare module '@ckeditor/ckeditor5-core' {
31
- interface PluginsMap {
32
- [ImageInsertViaUrl.pluginName]: ImageInsertViaUrl;
33
- }
34
- }
@@ -3,7 +3,6 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  import { type Editor, Plugin, type PluginDependencies } from 'ckeditor5/src/core';
6
- import '../imageconfig';
7
6
  /**
8
7
  * The image resize editing feature.
9
8
  *
@@ -35,8 +34,3 @@ export default class ImageResizeEditing extends Plugin {
35
34
  */
36
35
  private _registerConverters;
37
36
  }
38
- declare module '@ckeditor/ckeditor5-core' {
39
- interface PluginsMap {
40
- [ImageResizeEditing.pluginName]: ImageResizeEditing;
41
- }
42
- }
@@ -5,7 +5,6 @@
5
5
  import { Plugin } from 'ckeditor5/src/core';
6
6
  import ImageUtils from '../imageutils';
7
7
  import ResizeImageCommand from './resizeimagecommand';
8
- import '../imageconfig';
9
8
  /**
10
9
  * The image resize editing feature.
11
10
  *
@@ -3,7 +3,6 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
6
- import '../imageconfig';
7
6
  /**
8
7
  * The image resize by handles feature.
9
8
  *
@@ -5,7 +5,6 @@
5
5
  import { Plugin } from 'ckeditor5/src/core';
6
6
  import { WidgetResize } from 'ckeditor5/src/widget';
7
7
  import ImageLoadObserver from '../image/imageloadobserver';
8
- import '../imageconfig';
9
8
  const RESIZABLE_IMAGES_CSS_SELECTOR = 'figure.image.ck-widget > img,' +
10
9
  'figure.image.ck-widget > picture > img,' +
11
10
  'figure.image.ck-widget > a > img,' +
@@ -40,8 +40,3 @@ export default class ResizeImageCommand extends Command {
40
40
  width: string | null;
41
41
  }): void;
42
42
  }
43
- declare module '@ckeditor/ckeditor5-core' {
44
- interface CommandsMap {
45
- resizeImage: ResizeImageCommand;
46
- }
47
- }
@@ -22,8 +22,3 @@ export default class ImageResize extends Plugin {
22
22
  */
23
23
  static get pluginName(): 'ImageResize';
24
24
  }
25
- declare module '@ckeditor/ckeditor5-core' {
26
- interface PluginsMap {
27
- [ImageResize.pluginName]: ImageResize;
28
- }
29
- }
@@ -63,8 +63,3 @@ export default class ImageStyleCommand extends Command {
63
63
  */
64
64
  shouldConvertImageType(requestedStyle: string, imageElement: Element): boolean;
65
65
  }
66
- declare module '@ckeditor/ckeditor5-core' {
67
- interface CommandsMap {
68
- imageStyle: ImageStyleCommand;
69
- }
70
- }
@@ -47,8 +47,3 @@ export default class ImageStyleEditing extends Plugin {
47
47
  */
48
48
  private _setupPostFixer;
49
49
  }
50
- declare module '@ckeditor/ckeditor5-core' {
51
- interface PluginsMap {
52
- [ImageStyleEditing.pluginName]: ImageStyleEditing;
53
- }
54
- }
@@ -11,7 +11,7 @@ import '../../theme/imagestyle.css';
11
11
  * The image style UI plugin.
12
12
  *
13
13
  * It registers buttons corresponding to the {@link module:image/imageconfig~ImageConfig#styles} configuration.
14
- * It also registers the {@link module:image/imagestyle/utils~DEFAULT_DROPDOWN_DEFINITIONS default drop-downs} and the
14
+ * It also registers the {@link module:image/imagestyle/utils#DEFAULT_DROPDOWN_DEFINITIONS default drop-downs} and the
15
15
  * custom drop-downs defined by the developer in the {@link module:image/imageconfig~ImageConfig#toolbar} configuration.
16
16
  */
17
17
  export default class ImageStyleUI extends Plugin {
@@ -27,7 +27,7 @@ export default class ImageStyleUI extends Plugin {
27
27
  * Returns the default localized style titles provided by the plugin.
28
28
  *
29
29
  * The following localized titles corresponding with
30
- * {@link module:image/imagestyle/utils~DEFAULT_OPTIONS} are available:
30
+ * {@link module:image/imagestyle/utils#DEFAULT_OPTIONS} are available:
31
31
  *
32
32
  * * `'Wrap text'`,
33
33
  * * `'Break text'`,
@@ -53,8 +53,3 @@ export default class ImageStyleUI extends Plugin {
53
53
  private _createButton;
54
54
  private _executeCommand;
55
55
  }
56
- declare module '@ckeditor/ckeditor5-core' {
57
- interface PluginsMap {
58
- [ImageStyleUI.pluginName]: ImageStyleUI;
59
- }
60
- }
@@ -15,7 +15,7 @@ import '../../theme/imagestyle.css';
15
15
  * The image style UI plugin.
16
16
  *
17
17
  * It registers buttons corresponding to the {@link module:image/imageconfig~ImageConfig#styles} configuration.
18
- * It also registers the {@link module:image/imagestyle/utils~DEFAULT_DROPDOWN_DEFINITIONS default drop-downs} and the
18
+ * It also registers the {@link module:image/imagestyle/utils#DEFAULT_DROPDOWN_DEFINITIONS default drop-downs} and the
19
19
  * custom drop-downs defined by the developer in the {@link module:image/imageconfig~ImageConfig#toolbar} configuration.
20
20
  */
21
21
  export default class ImageStyleUI extends Plugin {
@@ -35,7 +35,7 @@ export default class ImageStyleUI extends Plugin {
35
35
  * Returns the default localized style titles provided by the plugin.
36
36
  *
37
37
  * The following localized titles corresponding with
38
- * {@link module:image/imagestyle/utils~DEFAULT_OPTIONS} are available:
38
+ * {@link module:image/imagestyle/utils#DEFAULT_OPTIONS} are available:
39
39
  *
40
40
  * * `'Wrap text'`,
41
41
  * * `'Break text'`,
@@ -7,6 +7,46 @@
7
7
  */
8
8
  import { type Editor, type PluginCollection } from 'ckeditor5/src/core';
9
9
  import type { ImageStyleConfig, ImageStyleDropdownDefinition, ImageStyleOptionDefinition } from '../imageconfig';
10
+ /**
11
+ * Default image style options provided by the plugin that can be referred in the {@link module:image/imageconfig~ImageConfig#styles}
12
+ * configuration.
13
+ *
14
+ * There are available 5 styles focused on formatting:
15
+ *
16
+ * * **`'alignLeft'`** aligns the inline or block image to the left and wraps it with the text using the `image-style-align-left` class,
17
+ * * **`'alignRight'`** aligns the inline or block image to the right and wraps it with the text using the `image-style-align-right` class,
18
+ * * **`'alignCenter'`** centers the block image using the `image-style-align-center` class,
19
+ * * **`'alignBlockLeft'`** aligns the block image to the left using the `image-style-block-align-left` class,
20
+ * * **`'alignBlockRight'`** aligns the block image to the right using the `image-style-block-align-right` class,
21
+ *
22
+ * and 3 semantic styles:
23
+ *
24
+ * * **`'inline'`** is an inline image without any CSS class,
25
+ * * **`'block'`** is a block image without any CSS class,
26
+ * * **`'side'`** is a block image styled with the `image-style-side` CSS class.
27
+ */
28
+ export declare const DEFAULT_OPTIONS: Record<string, ImageStyleOptionDefinition>;
29
+ /**
30
+ * Default image style icons provided by the plugin that can be referred in the {@link module:image/imageconfig~ImageConfig#styles}
31
+ * configuration.
32
+ *
33
+ * See {@link module:image/imageconfig~ImageStyleOptionDefinition#icon} to learn more.
34
+ *
35
+ * There are 7 default icons available: `'full'`, `'left'`, `'inlineLeft'`, `'center'`, `'right'`, `'inlineRight'`, and `'inline'`.
36
+ */
37
+ export declare const DEFAULT_ICONS: Record<string, string>;
38
+ /**
39
+ * Default drop-downs provided by the plugin that can be referred in the {@link module:image/imageconfig~ImageConfig#toolbar}
40
+ * configuration. The drop-downs are containers for the {@link module:image/imageconfig~ImageStyleConfig#options image style options}.
41
+ *
42
+ * If both of the `ImageEditing` plugins are loaded, there are 2 predefined drop-downs available:
43
+ *
44
+ * * **`'imageStyle:wrapText'`**, which contains the `alignLeft` and `alignRight` options, that is,
45
+ * those that wraps the text around the image,
46
+ * * **`'imageStyle:breakText'`**, which contains the `alignBlockLeft`, `alignCenter` and `alignBlockRight` options, that is,
47
+ * those that breaks the text around the image.
48
+ */
49
+ export declare const DEFAULT_DROPDOWN_DEFINITIONS: Array<ImageStyleDropdownDefinition>;
10
50
  /**
11
51
  * Returns a list of the normalized and validated image style options.
12
52
  *
@@ -38,7 +78,7 @@ declare function normalizeStyles(config: {
38
78
  *
39
79
  * @returns
40
80
  * It returns an object with the lists of the image style options and groups defined as strings related to the
41
- * {@link module:image/imagestyle/utils~DEFAULT_OPTIONS default options}
81
+ * {@link module:image/imagestyle/utils#DEFAULT_OPTIONS default options}
42
82
  */
43
83
  declare function getDefaultStylesConfiguration(isBlockPluginLoaded: boolean, isInlinePluginLoaded: boolean): ImageStyleConfig;
44
84
  /**
@@ -26,7 +26,7 @@ const { objectFullWidth, objectInline, objectLeft, objectRight, objectCenter, ob
26
26
  * * **`'block'`** is a block image without any CSS class,
27
27
  * * **`'side'`** is a block image styled with the `image-style-side` CSS class.
28
28
  */
29
- const DEFAULT_OPTIONS = {
29
+ export const DEFAULT_OPTIONS = {
30
30
  // This style represents an image placed in the line of text.
31
31
  get inline() {
32
32
  return {
@@ -116,7 +116,7 @@ const DEFAULT_OPTIONS = {
116
116
  *
117
117
  * There are 7 default icons available: `'full'`, `'left'`, `'inlineLeft'`, `'center'`, `'right'`, `'inlineRight'`, and `'inline'`.
118
118
  */
119
- const DEFAULT_ICONS = {
119
+ export const DEFAULT_ICONS = {
120
120
  full: objectFullWidth,
121
121
  left: objectBlockLeft,
122
122
  right: objectBlockRight,
@@ -136,7 +136,7 @@ const DEFAULT_ICONS = {
136
136
  * * **`'imageStyle:breakText'`**, which contains the `alignBlockLeft`, `alignCenter` and `alignBlockRight` options, that is,
137
137
  * those that breaks the text around the image.
138
138
  */
139
- const DEFAULT_DROPDOWN_DEFINITIONS = [{
139
+ export const DEFAULT_DROPDOWN_DEFINITIONS = [{
140
140
  name: 'imageStyle:wrapText',
141
141
  title: 'Wrap text',
142
142
  defaultItem: 'imageStyle:alignLeft',
@@ -180,7 +180,7 @@ function normalizeStyles(config) {
180
180
  *
181
181
  * @returns
182
182
  * It returns an object with the lists of the image style options and groups defined as strings related to the
183
- * {@link module:image/imagestyle/utils~DEFAULT_OPTIONS default options}
183
+ * {@link module:image/imagestyle/utils#DEFAULT_OPTIONS default options}
184
184
  */
185
185
  function getDefaultStylesConfiguration(isBlockPluginLoaded, isInlinePluginLoaded) {
186
186
  if (isBlockPluginLoaded && isInlinePluginLoaded) {
@@ -28,8 +28,3 @@ export default class ImageStyle extends Plugin {
28
28
  */
29
29
  static get pluginName(): 'ImageStyle';
30
30
  }
31
- declare module '@ckeditor/ckeditor5-core' {
32
- interface PluginsMap {
33
- [ImageStyle.pluginName]: ImageStyle;
34
- }
35
- }
@@ -32,8 +32,3 @@ export default class ImageTextAlternativeCommand extends Command {
32
32
  newValue: string;
33
33
  }): void;
34
34
  }
35
- declare module '@ckeditor/ckeditor5-core' {
36
- interface CommandsMap {
37
- imageTextAlternative: ImageTextAlternativeCommand;
38
- }
39
- }
@@ -25,8 +25,3 @@ export default class ImageTextAlternativeEditing extends Plugin {
25
25
  */
26
26
  init(): void;
27
27
  }
28
- declare module '@ckeditor/ckeditor5-core' {
29
- interface PluginsMap {
30
- [ImageTextAlternativeEditing.pluginName]: ImageTextAlternativeEditing;
31
- }
32
- }
@@ -65,8 +65,3 @@ export default class ImageTextAlternativeUI extends Plugin {
65
65
  */
66
66
  private get _isInBalloon();
67
67
  }
68
- declare module '@ckeditor/ckeditor5-core' {
69
- interface PluginsMap {
70
- [ImageTextAlternativeUI.pluginName]: ImageTextAlternativeUI;
71
- }
72
- }
@@ -25,8 +25,3 @@ export default class ImageTextAlternative extends Plugin {
25
25
  */
26
26
  static get pluginName(): 'ImageTextAlternative';
27
27
  }
28
- declare module '@ckeditor/ckeditor5-core' {
29
- interface PluginsMap {
30
- [ImageTextAlternative.pluginName]: ImageTextAlternative;
31
- }
32
- }
@@ -31,8 +31,3 @@ export default class ImageToolbar extends Plugin {
31
31
  */
32
32
  afterInit(): void;
33
33
  }
34
- declare module '@ckeditor/ckeditor5-core' {
35
- interface PluginsMap {
36
- [ImageToolbar.pluginName]: ImageToolbar;
37
- }
38
- }
@@ -8,7 +8,6 @@
8
8
  import { Plugin, type PluginDependencies, type Editor } from 'ckeditor5/src/core';
9
9
  import { type Element, type Writer, type DataTransfer } from 'ckeditor5/src/engine';
10
10
  import { type UploadResponse, type FileLoader } from 'ckeditor5/src/upload';
11
- import '../imageconfig';
12
11
  /**
13
12
  * The editing part of the image upload feature. It registers the `'uploadImage'` command
14
13
  * and the `imageUpload` command as an aliased name.
@@ -64,11 +63,6 @@ export default class ImageUploadEditing extends Plugin {
64
63
  * Returns `true` if non-empty `text/html` is included in the data transfer.
65
64
  */
66
65
  export declare function isHtmlIncluded(dataTransfer: DataTransfer): boolean;
67
- declare module '@ckeditor/ckeditor5-core' {
68
- interface PluginsMap {
69
- [ImageUploadEditing.pluginName]: ImageUploadEditing;
70
- }
71
- }
72
66
  /**
73
67
  * An event fired when an image is uploaded. You can hook into this event to provide
74
68
  * custom attributes to the {@link module:engine/model/element~Element image element} based on the data from
@@ -95,7 +89,7 @@ declare module '@ckeditor/ckeditor5-core' {
95
89
  *
96
90
  * **Note**: This event is fired by the {@link module:image/imageupload/imageuploadediting~ImageUploadEditing} plugin.
97
91
  *
98
- * @eventName uploadComplete
92
+ * @eventName ~ImageUploadEditing#uploadComplete
99
93
  * @param data The `uploadComplete` event data.
100
94
  */
101
95
  export type ImageUploadCompleteEvent = {
@@ -15,7 +15,6 @@ import ImageUtils from '../imageutils';
15
15
  import UploadImageCommand from './uploadimagecommand';
16
16
  import { fetchLocalImage, isLocalImage } from '../../src/imageupload/utils';
17
17
  import { createImageTypeRegExp } from './utils';
18
- import '../imageconfig';
19
18
  /**
20
19
  * The editing part of the image upload feature. It registers the `'uploadImage'` command
21
20
  * and the `imageUpload` command as an aliased name.
@@ -40,8 +40,3 @@ export default class ImageUploadProgress extends Plugin {
40
40
  */
41
41
  private uploadStatusChange;
42
42
  }
43
- declare module '@ckeditor/ckeditor5-core' {
44
- interface PluginsMap {
45
- [ImageUploadProgress.pluginName]: ImageUploadProgress;
46
- }
47
- }
@@ -3,7 +3,6 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  import { Plugin } from 'ckeditor5/src/core';
6
- import '../imageconfig';
7
6
  /**
8
7
  * The image upload button plugin.
9
8
  *
@@ -22,8 +21,3 @@ export default class ImageUploadUI extends Plugin {
22
21
  */
23
22
  init(): void;
24
23
  }
25
- declare module '@ckeditor/ckeditor5-core' {
26
- interface PluginsMap {
27
- [ImageUploadUI.pluginName]: ImageUploadUI;
28
- }
29
- }
@@ -5,7 +5,6 @@
5
5
  import { Plugin, icons } from 'ckeditor5/src/core';
6
6
  import { FileDialogButtonView } from 'ckeditor5/src/upload';
7
7
  import { createImageTypeRegExp } from './utils';
8
- import '../imageconfig';
9
8
  /**
10
9
  * The image upload button plugin.
11
10
  *
@@ -58,8 +58,3 @@ export default class UploadImageCommand extends Command {
58
58
  */
59
59
  private _uploadImage;
60
60
  }
61
- declare module '@ckeditor/ckeditor5-core' {
62
- interface CommandsMap {
63
- uploadImage: UploadImageCommand;
64
- }
65
- }
@@ -27,8 +27,3 @@ export default class ImageUpload extends Plugin {
27
27
  */
28
28
  static get requires(): PluginDependencies;
29
29
  }
30
- declare module '@ckeditor/ckeditor5-core' {
31
- interface PluginsMap {
32
- [ImageUpload.pluginName]: ImageUpload;
33
- }
34
- }
@@ -7,7 +7,6 @@
7
7
  */
8
8
  import type { Element, ViewElement, DocumentSelection, ViewDocumentSelection, Selection, ViewSelection, DowncastWriter, Position } from 'ckeditor5/src/engine';
9
9
  import { Plugin } from 'ckeditor5/src/core';
10
- import './imageconfig';
11
10
  /**
12
11
  * A set of helpers related to images.
13
12
  */
@@ -101,8 +100,3 @@ export default class ImageUtils extends Plugin {
101
100
  */
102
101
  findViewImgElement(figureView: ViewElement): ViewElement | undefined;
103
102
  }
104
- declare module '@ckeditor/ckeditor5-core' {
105
- interface PluginsMap {
106
- [ImageUtils.pluginName]: ImageUtils;
107
- }
108
- }
package/src/imageutils.js CHANGED
@@ -5,7 +5,6 @@
5
5
  import { Plugin } from 'ckeditor5/src/core';
6
6
  import { findOptimalInsertionRange, isWidget, toWidget } from 'ckeditor5/src/widget';
7
7
  import { determineImageTypeForInsertionAtSelection } from './image/utils';
8
- import './imageconfig';
9
8
  /**
10
9
  * A set of helpers related to images.
11
10
  */
package/src/index.d.ts CHANGED
@@ -29,3 +29,19 @@ export { default as ImageUploadEditing, ImageUploadCompleteEvent } from './image
29
29
  export { default as ImageUploadProgress } from './imageupload/imageuploadprogress';
30
30
  export { default as ImageUploadUI } from './imageupload/imageuploadui';
31
31
  export { default as PictureEditing } from './pictureediting';
32
+ export type { ImageConfig } from './imageconfig';
33
+ export type { default as ImageBlock } from './imageblock';
34
+ export type { default as ImageInline } from './imageinline';
35
+ export type { default as ImageInsertViaUrl } from './imageinsertviaurl';
36
+ export type { default as ImageUtils } from './imageutils';
37
+ export type { default as ImageBlockEditing } from './image/imageblockediting';
38
+ export type { default as ImageCaptionUI } from './imagecaption/imagecaptionui';
39
+ export type { default as ImageTypeCommand } from './image/imagetypecommand';
40
+ export type { default as InsertImageCommand } from './image/insertimagecommand';
41
+ export type { default as ReplaceImageSourceCommand } from './image/replaceimagesourcecommand';
42
+ export type { default as ToggleImageCaptionCommand } from './imagecaption/toggleimagecaptioncommand';
43
+ export type { default as ResizeImageCommand } from './imageresize/resizeimagecommand';
44
+ export type { default as ImageStyleCommand } from './imagestyle/imagestylecommand';
45
+ export type { default as ImageTextAlternativeCommand } from './imagetextalternative/imagetextalternativecommand';
46
+ export type { default as UploadImageCommand } from './imageupload/uploadimagecommand';
47
+ import './augmentation';
package/src/index.js CHANGED
@@ -29,3 +29,4 @@ export { default as ImageUploadEditing } from './imageupload/imageuploadediting'
29
29
  export { default as ImageUploadProgress } from './imageupload/imageuploadprogress';
30
30
  export { default as ImageUploadUI } from './imageupload/imageuploadui';
31
31
  export { default as PictureEditing } from './pictureediting';
32
+ import './augmentation';