@ckeditor/ckeditor5-media-embed 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 (86) hide show
  1. package/LICENSE.md +1 -1
  2. package/build/media-embed.js +2 -2
  3. package/lang/translations/ar.po +1 -1
  4. package/lang/translations/az.po +1 -1
  5. package/lang/translations/bg.po +1 -1
  6. package/lang/translations/bn.po +1 -1
  7. package/lang/translations/ca.po +1 -1
  8. package/lang/translations/cs.po +1 -1
  9. package/lang/translations/da.po +1 -1
  10. package/lang/translations/de-ch.po +1 -1
  11. package/lang/translations/de.po +1 -1
  12. package/lang/translations/el.po +1 -1
  13. package/lang/translations/en-au.po +1 -1
  14. package/lang/translations/en-gb.po +1 -1
  15. package/lang/translations/en.po +1 -1
  16. package/lang/translations/es.po +1 -1
  17. package/lang/translations/et.po +1 -1
  18. package/lang/translations/fa.po +1 -1
  19. package/lang/translations/fi.po +1 -1
  20. package/lang/translations/fr.po +1 -1
  21. package/lang/translations/gl.po +1 -1
  22. package/lang/translations/he.po +1 -1
  23. package/lang/translations/hi.po +1 -1
  24. package/lang/translations/hr.po +1 -1
  25. package/lang/translations/hu.po +1 -1
  26. package/lang/translations/id.po +1 -1
  27. package/lang/translations/it.po +1 -1
  28. package/lang/translations/ja.po +1 -1
  29. package/lang/translations/ko.po +1 -1
  30. package/lang/translations/ku.po +1 -1
  31. package/lang/translations/lt.po +1 -1
  32. package/lang/translations/lv.po +1 -1
  33. package/lang/translations/ms.po +1 -1
  34. package/lang/translations/ne.po +1 -1
  35. package/lang/translations/nl.po +1 -1
  36. package/lang/translations/no.po +1 -1
  37. package/lang/translations/pl.po +1 -1
  38. package/lang/translations/pt-br.po +1 -1
  39. package/lang/translations/pt.po +1 -1
  40. package/lang/translations/ro.po +1 -1
  41. package/lang/translations/ru.po +1 -1
  42. package/lang/translations/sk.po +1 -1
  43. package/lang/translations/sq.po +1 -1
  44. package/lang/translations/sr-latn.po +1 -1
  45. package/lang/translations/sr.po +1 -1
  46. package/lang/translations/sv.po +1 -1
  47. package/lang/translations/th.po +1 -1
  48. package/lang/translations/tk.po +1 -1
  49. package/lang/translations/tr.po +1 -1
  50. package/lang/translations/uk.po +1 -1
  51. package/lang/translations/ur.po +1 -1
  52. package/lang/translations/uz.po +1 -1
  53. package/lang/translations/vi.po +1 -1
  54. package/lang/translations/zh-cn.po +1 -1
  55. package/lang/translations/zh.po +1 -1
  56. package/package.json +4 -3
  57. package/src/augmentation.d.ts +2 -2
  58. package/src/augmentation.js +1 -1
  59. package/src/automediaembed.d.ts +5 -5
  60. package/src/automediaembed.js +9 -9
  61. package/src/converters.d.ts +4 -4
  62. package/src/converters.js +1 -1
  63. package/src/index.d.ts +9 -9
  64. package/src/index.js +7 -7
  65. package/src/mediaembed.d.ts +6 -6
  66. package/src/mediaembed.js +6 -6
  67. package/src/mediaembedcommand.d.ts +2 -2
  68. package/src/mediaembedcommand.js +4 -4
  69. package/src/mediaembedconfig.d.ts +3 -3
  70. package/src/mediaembedconfig.js +1 -1
  71. package/src/mediaembedediting.d.ts +3 -3
  72. package/src/mediaembedediting.js +7 -7
  73. package/src/mediaembedtoolbar.d.ts +4 -4
  74. package/src/mediaembedtoolbar.js +5 -5
  75. package/src/mediaembedui.d.ts +3 -3
  76. package/src/mediaembedui.js +5 -5
  77. package/src/mediaregistry.d.ts +5 -5
  78. package/src/mediaregistry.js +3 -3
  79. package/src/ui/mediaformview.d.ts +3 -3
  80. package/src/ui/mediaformview.js +4 -4
  81. package/src/utils.d.ts +3 -3
  82. package/src/utils.js +2 -2
  83. package/theme/icons/media.svg +1 -1
  84. package/theme/mediaembed.css +1 -1
  85. package/theme/mediaembedediting.css +1 -1
  86. package/theme/mediaform.css +1 -1
@@ -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 type { MediaEmbedConfig, AutoMediaEmbed, MediaEmbed, MediaEmbedEditing, MediaEmbedToolbar, MediaEmbedUI, MediaEmbedCommand } from './index';
5
+ import type { MediaEmbedConfig, AutoMediaEmbed, MediaEmbed, MediaEmbedEditing, MediaEmbedToolbar, MediaEmbedUI, MediaEmbedCommand } from './index.js';
6
6
  declare module '@ckeditor/ckeditor5-core' {
7
7
  interface EditorConfig {
8
8
  /**
@@ -1,5 +1,5 @@
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
  export {};
@@ -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 media-embed/automediaembed
7
7
  */
8
- import { type Editor, Plugin } from 'ckeditor5/src/core';
9
- import { Clipboard } from 'ckeditor5/src/clipboard';
10
- import { Delete } from 'ckeditor5/src/typing';
11
- import { Undo } from 'ckeditor5/src/undo';
8
+ import { type Editor, Plugin } from 'ckeditor5/src/core.js';
9
+ import { Clipboard } from 'ckeditor5/src/clipboard.js';
10
+ import { Delete } from 'ckeditor5/src/typing.js';
11
+ import { Undo } from 'ckeditor5/src/undo.js';
12
12
  /**
13
13
  * The auto-media embed plugin. It recognizes media links in the pasted content and embeds
14
14
  * them shortly after they are injected into the document.
@@ -1,18 +1,18 @@
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 media-embed/automediaembed
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { LiveRange, LivePosition } from 'ckeditor5/src/engine';
10
- import { Clipboard } from 'ckeditor5/src/clipboard';
11
- import { Delete } from 'ckeditor5/src/typing';
12
- import { Undo } from 'ckeditor5/src/undo';
13
- import { global } from 'ckeditor5/src/utils';
14
- import MediaEmbedEditing from './mediaembedediting';
15
- import { insertMedia } from './utils';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { LiveRange, LivePosition } from 'ckeditor5/src/engine.js';
10
+ import { Clipboard } from 'ckeditor5/src/clipboard.js';
11
+ import { Delete } from 'ckeditor5/src/typing.js';
12
+ import { Undo } from 'ckeditor5/src/undo.js';
13
+ import { global } from 'ckeditor5/src/utils.js';
14
+ import MediaEmbedEditing from './mediaembedediting.js';
15
+ import { insertMedia } from './utils.js';
16
16
  const URL_REGEXP = /^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;
17
17
  /**
18
18
  * The auto-media embed plugin. It recognizes media links in the pasted content and embeds
@@ -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 type { DowncastDispatcher } from 'ckeditor5/src/engine';
6
- import type MediaRegistry from './mediaregistry';
7
- import type { MediaOptions } from './utils';
5
+ import type { DowncastDispatcher } from 'ckeditor5/src/engine.js';
6
+ import type MediaRegistry from './mediaregistry.js';
7
+ import type { MediaOptions } from './utils.js';
8
8
  /**
9
9
  * Returns a function that converts the model "url" attribute to the view representation.
10
10
  *
package/src/converters.js CHANGED
@@ -1,5 +1,5 @@
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
  /**
package/src/index.d.ts CHANGED
@@ -1,15 +1,15 @@
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 media-embed
7
7
  */
8
- export { default as MediaEmbed } from './mediaembed';
9
- export { default as MediaEmbedEditing } from './mediaembedediting';
10
- export { default as MediaEmbedUI } from './mediaembedui';
11
- export { default as AutoMediaEmbed } from './automediaembed';
12
- export { default as MediaEmbedToolbar } from './mediaembedtoolbar';
13
- export type { MediaEmbedConfig } from './mediaembedconfig';
14
- export type { default as MediaEmbedCommand } from './mediaembedcommand';
15
- import './augmentation';
8
+ export { default as MediaEmbed } from './mediaembed.js';
9
+ export { default as MediaEmbedEditing } from './mediaembedediting.js';
10
+ export { default as MediaEmbedUI } from './mediaembedui.js';
11
+ export { default as AutoMediaEmbed } from './automediaembed.js';
12
+ export { default as MediaEmbedToolbar } from './mediaembedtoolbar.js';
13
+ export type { MediaEmbedConfig } from './mediaembedconfig.js';
14
+ export type { default as MediaEmbedCommand } from './mediaembedcommand.js';
15
+ import './augmentation.js';
package/src/index.js CHANGED
@@ -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 media-embed
7
7
  */
8
- export { default as MediaEmbed } from './mediaembed';
9
- export { default as MediaEmbedEditing } from './mediaembedediting';
10
- export { default as MediaEmbedUI } from './mediaembedui';
11
- export { default as AutoMediaEmbed } from './automediaembed';
12
- export { default as MediaEmbedToolbar } from './mediaembedtoolbar';
13
- import './augmentation';
8
+ export { default as MediaEmbed } from './mediaembed.js';
9
+ export { default as MediaEmbedEditing } from './mediaembedediting.js';
10
+ export { default as MediaEmbedUI } from './mediaembedui.js';
11
+ export { default as AutoMediaEmbed } from './automediaembed.js';
12
+ export { default as MediaEmbedToolbar } from './mediaembedtoolbar.js';
13
+ import './augmentation.js';
@@ -1,15 +1,15 @@
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 media-embed/mediaembed
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { Widget } from 'ckeditor5/src/widget';
10
- import MediaEmbedEditing from './mediaembedediting';
11
- import AutoMediaEmbed from './automediaembed';
12
- import MediaEmbedUI from './mediaembedui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { Widget } from 'ckeditor5/src/widget.js';
10
+ import MediaEmbedEditing from './mediaembedediting.js';
11
+ import AutoMediaEmbed from './automediaembed.js';
12
+ import MediaEmbedUI from './mediaembedui.js';
13
13
  import '../theme/mediaembed.css';
14
14
  /**
15
15
  * The media embed plugin.
package/src/mediaembed.js CHANGED
@@ -1,15 +1,15 @@
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 media-embed/mediaembed
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { Widget } from 'ckeditor5/src/widget';
10
- import MediaEmbedEditing from './mediaembedediting';
11
- import AutoMediaEmbed from './automediaembed';
12
- import MediaEmbedUI from './mediaembedui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { Widget } from 'ckeditor5/src/widget.js';
10
+ import MediaEmbedEditing from './mediaembedediting.js';
11
+ import AutoMediaEmbed from './automediaembed.js';
12
+ import MediaEmbedUI from './mediaembedui.js';
13
13
  import '../theme/mediaembed.css';
14
14
  /**
15
15
  * The media embed plugin.
@@ -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 { Command } from 'ckeditor5/src/core';
5
+ import { Command } from 'ckeditor5/src/core.js';
6
6
  /**
7
7
  * The insert media command.
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 { Command } from 'ckeditor5/src/core';
6
- import { findOptimalInsertionRange } from 'ckeditor5/src/widget';
7
- import { getSelectedMediaModelWidget, insertMedia } from './utils';
5
+ import { Command } from 'ckeditor5/src/core.js';
6
+ import { findOptimalInsertionRange } from 'ckeditor5/src/widget.js';
7
+ import { getSelectedMediaModelWidget, insertMedia } from './utils.js';
8
8
  /**
9
9
  * The insert media command.
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 type { ToolbarConfigItem } from 'ckeditor5/src/core';
6
- import type { ArrayOrItem } from 'ckeditor5/src/utils';
5
+ import type { ToolbarConfigItem } from 'ckeditor5/src/core.js';
6
+ import type { ArrayOrItem } from 'ckeditor5/src/utils.js';
7
7
  /**
8
8
  * @module media-embed/mediaembedconfig
9
9
  */
@@ -1,5 +1,5 @@
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
  export {};
@@ -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 media-embed/mediaembedediting
7
7
  */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- import MediaRegistry from './mediaregistry';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
+ import MediaRegistry from './mediaregistry.js';
10
10
  import '../theme/mediaembedediting.css';
11
11
  /**
12
12
  * The media embed editing feature.
@@ -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 media-embed/mediaembedediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { first } from 'ckeditor5/src/utils';
10
- import { modelToViewUrlAttributeConverter } from './converters';
11
- import MediaEmbedCommand from './mediaembedcommand';
12
- import MediaRegistry from './mediaregistry';
13
- import { toMediaWidget, createMediaFigureElement } from './utils';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { first } from 'ckeditor5/src/utils.js';
10
+ import { modelToViewUrlAttributeConverter } from './converters.js';
11
+ import MediaEmbedCommand from './mediaembedcommand.js';
12
+ import MediaRegistry from './mediaregistry.js';
13
+ import { toMediaWidget, createMediaFigureElement } from './utils.js';
14
14
  import '../theme/mediaembedediting.css';
15
15
  /**
16
16
  * The media embed editing feature.
@@ -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 media-embed/mediaembedtoolbar
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { WidgetToolbarRepository } from 'ckeditor5/src/widget';
10
- import './mediaembedconfig';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { WidgetToolbarRepository } from 'ckeditor5/src/widget.js';
10
+ import './mediaembedconfig.js';
11
11
  /**
12
12
  * The media embed toolbar plugin. It creates a toolbar for media embed that shows up when the media element is selected.
13
13
  *
@@ -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 media-embed/mediaembedtoolbar
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { WidgetToolbarRepository } from 'ckeditor5/src/widget';
10
- import { getSelectedMediaViewWidget } from './utils';
11
- import './mediaembedconfig';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { WidgetToolbarRepository } from 'ckeditor5/src/widget.js';
10
+ import { getSelectedMediaViewWidget } from './utils.js';
11
+ import './mediaembedconfig.js';
12
12
  /**
13
13
  * The media embed toolbar plugin. It creates a toolbar for media embed that shows up when the media element is selected.
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 media-embed/mediaembedui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import MediaEmbedEditing from './mediaembedediting';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import MediaEmbedEditing from './mediaembedediting.js';
10
10
  /**
11
11
  * The media embed 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 media-embed/mediaembedui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { createDropdown, CssTransitionDisablerMixin } from 'ckeditor5/src/ui';
10
- import MediaFormView from './ui/mediaformview';
11
- import MediaEmbedEditing from './mediaembedediting';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { createDropdown, CssTransitionDisablerMixin } from 'ckeditor5/src/ui.js';
10
+ import MediaFormView from './ui/mediaformview.js';
11
+ import MediaEmbedEditing from './mediaembedediting.js';
12
12
  import mediaIcon from '../theme/icons/media.svg';
13
13
  /**
14
14
  * The media embed UI plugin.
@@ -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 media-embed/mediaregistry
7
7
  */
8
- import type { DowncastWriter, ViewElement } from 'ckeditor5/src/engine';
9
- import { type Locale } from 'ckeditor5/src/utils';
10
- import type { MediaEmbedConfig, MediaEmbedProvider } from './mediaembedconfig';
11
- import type { MediaOptions } from './utils';
8
+ import type { DowncastWriter, ViewElement } from 'ckeditor5/src/engine.js';
9
+ import { type Locale } from 'ckeditor5/src/utils.js';
10
+ import type { MediaEmbedConfig, MediaEmbedProvider } from './mediaembedconfig.js';
11
+ import type { MediaOptions } from './utils.js';
12
12
  /**
13
13
  * A bridge between the raw media content provider definitions and the editor view content.
14
14
  *
@@ -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 { IconView, Template } from 'ckeditor5/src/ui';
6
- import { logWarning, toArray } from 'ckeditor5/src/utils';
5
+ import { IconView, Template } from 'ckeditor5/src/ui.js';
6
+ import { logWarning, toArray } from 'ckeditor5/src/utils.js';
7
7
  import mediaPlaceholderIcon from '../theme/icons/media-placeholder.svg';
8
8
  const mediaPlaceholderIconViewBox = '0 0 64 42';
9
9
  /**
@@ -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 media-embed/ui/mediaformview
7
7
  */
8
- import { type InputTextView, ButtonView, LabeledFieldView, View } from 'ckeditor5/src/ui';
9
- import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
8
+ import { type InputTextView, ButtonView, LabeledFieldView, View } from 'ckeditor5/src/ui.js';
9
+ import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
10
10
  import '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';
11
11
  import '../../theme/mediaform.css';
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 media-embed/ui/mediaformview
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
  // See: #8833.
12
12
  // eslint-disable-next-line ckeditor5-rules/ckeditor-imports
13
13
  import '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';
package/src/utils.d.ts CHANGED
@@ -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 media-embed/utils
7
7
  */
8
- import type { ViewContainerElement, Element, Model, Selectable, Selection, DowncastWriter, ViewDocumentSelection, ViewElement, DocumentSelection } from 'ckeditor5/src/engine';
9
- import type MediaRegistry from './mediaregistry';
8
+ import type { ViewContainerElement, Element, Model, Selectable, Selection, DowncastWriter, ViewDocumentSelection, ViewElement, DocumentSelection } from 'ckeditor5/src/engine.js';
9
+ import type MediaRegistry from './mediaregistry.js';
10
10
  /**
11
11
  * Converts a given {@link module:engine/view/element~Element} to a media embed widget:
12
12
  * * Adds a {@link module:engine/view/element~Element#_setCustomProperty custom property} allowing to recognize the media widget element.
package/src/utils.js CHANGED
@@ -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 { isWidget, toWidget } from 'ckeditor5/src/widget';
5
+ import { isWidget, toWidget } from 'ckeditor5/src/widget.js';
6
6
  /**
7
7
  * Converts a given {@link module:engine/view/element~Element} to a media embed widget:
8
8
  * * Adds a {@link module:engine/view/element~Element#_setCustomProperty custom property} allowing to recognize the media widget element.
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M18.68 3.03c.6 0 .59-.03.59.55v12.84c0 .59.01.56-.59.56H1.29c-.6 0-.59.03-.59-.56V3.58c0-.58-.01-.55.6-.55h17.38zM15.77 15V5H4.2v10h11.57zM2 4v1h1V4H2zm0 2v1h1V6H2zm0 2v1h1V8H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zM17 4v1h1V4h-1zm0 2v1h1V6h-1zm0 2v1h1V8h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zM7.5 7.177a.4.4 0 0 1 .593-.351l5.133 2.824a.4.4 0 0 1 0 .7l-5.133 2.824a.4.4 0 0 1-.593-.35V7.176v.001z"/></svg>
1
+ <svg viewBox="0 0 22 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.587 1.5c-.612 0-.601-.029-.601.551v14.84c0 .59-.01.559.591.559h18.846c.602 0 .591.03.591-.56V2.052c0-.58.01-.55-.591-.55H1.587Zm.701.971h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-14.24 1h13.008v12H4.467l.029-12Zm-2.208 1h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003l-.029 1h-.974v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h.974v1h-.974v-1Zm16.448 0h1.003v1h-1.003v-1Z"/><path d="M8.374 6.648a.399.399 0 0 1 .395-.4.402.402 0 0 1 .2.049l5.148 2.824a.4.4 0 0 1 0 .7l-5.148 2.824a.403.403 0 0 1-.595-.35V6.648Z"/></svg>
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * 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
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * 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
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * 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