@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.
- package/LICENSE.md +1 -1
- package/build/media-embed.js +2 -2
- package/lang/translations/ar.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +4 -3
- package/src/augmentation.d.ts +2 -2
- package/src/augmentation.js +1 -1
- package/src/automediaembed.d.ts +5 -5
- package/src/automediaembed.js +9 -9
- package/src/converters.d.ts +4 -4
- package/src/converters.js +1 -1
- package/src/index.d.ts +9 -9
- package/src/index.js +7 -7
- package/src/mediaembed.d.ts +6 -6
- package/src/mediaembed.js +6 -6
- package/src/mediaembedcommand.d.ts +2 -2
- package/src/mediaembedcommand.js +4 -4
- package/src/mediaembedconfig.d.ts +3 -3
- package/src/mediaembedconfig.js +1 -1
- package/src/mediaembedediting.d.ts +3 -3
- package/src/mediaembedediting.js +7 -7
- package/src/mediaembedtoolbar.d.ts +4 -4
- package/src/mediaembedtoolbar.js +5 -5
- package/src/mediaembedui.d.ts +3 -3
- package/src/mediaembedui.js +5 -5
- package/src/mediaregistry.d.ts +5 -5
- package/src/mediaregistry.js +3 -3
- package/src/ui/mediaformview.d.ts +3 -3
- package/src/ui/mediaformview.js +4 -4
- package/src/utils.d.ts +3 -3
- package/src/utils.js +2 -2
- package/theme/icons/media.svg +1 -1
- package/theme/mediaembed.css +1 -1
- package/theme/mediaembedediting.css +1 -1
- package/theme/mediaform.css +1 -1
package/src/augmentation.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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
|
/**
|
package/src/augmentation.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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 {};
|
package/src/automediaembed.d.ts
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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.
|
package/src/automediaembed.js
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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
|
package/src/converters.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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-
|
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-
|
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-
|
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';
|
package/src/mediaembed.d.ts
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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-
|
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-
|
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
|
*
|
package/src/mediaembedcommand.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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-
|
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
|
*/
|
package/src/mediaembedconfig.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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-
|
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.
|
package/src/mediaembedediting.js
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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-
|
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
|
*
|
package/src/mediaembedtoolbar.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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
|
*
|
package/src/mediaembedui.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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
|
*/
|
package/src/mediaembedui.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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.
|
package/src/mediaregistry.d.ts
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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
|
*
|
package/src/mediaregistry.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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-
|
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
|
/**
|
package/src/ui/mediaformview.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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-
|
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-
|
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.
|
package/theme/icons/media.svg
CHANGED
@@ -1 +1 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/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>
|
package/theme/mediaembed.css
CHANGED
package/theme/mediaform.css
CHANGED