@ckeditor/ckeditor5-media-embed 37.0.0-alpha.0 → 37.0.0-alpha.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-media-embed",
3
- "version": "37.0.0-alpha.0",
3
+ "version": "37.0.0-alpha.2",
4
4
  "description": "Media embed feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,26 +12,26 @@
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.2",
16
+ "ckeditor5": "^37.0.0-alpha.2"
17
17
  },
18
18
  "devDependencies": {
19
- "@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.0",
20
- "@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.0",
21
- "@ckeditor/ckeditor5-core": "^37.0.0-alpha.0",
22
- "@ckeditor/ckeditor5-dev-utils": "^34.0.0",
23
- "@ckeditor/ckeditor5-editor-balloon": "^37.0.0-alpha.0",
24
- "@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.0",
25
- "@ckeditor/ckeditor5-engine": "^37.0.0-alpha.0",
26
- "@ckeditor/ckeditor5-image": "^37.0.0-alpha.0",
27
- "@ckeditor/ckeditor5-link": "^37.0.0-alpha.0",
28
- "@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.0",
29
- "@ckeditor/ckeditor5-table": "^37.0.0-alpha.0",
30
- "@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.0",
31
- "@ckeditor/ckeditor5-typing": "^37.0.0-alpha.0",
32
- "@ckeditor/ckeditor5-undo": "^37.0.0-alpha.0",
33
- "@ckeditor/ckeditor5-utils": "^37.0.0-alpha.0",
34
- "@ckeditor/ckeditor5-widget": "^37.0.0-alpha.0",
19
+ "@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.2",
20
+ "@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.2",
21
+ "@ckeditor/ckeditor5-core": "^37.0.0-alpha.2",
22
+ "@ckeditor/ckeditor5-dev-utils": "^35.0.0",
23
+ "@ckeditor/ckeditor5-editor-balloon": "^37.0.0-alpha.2",
24
+ "@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.2",
25
+ "@ckeditor/ckeditor5-engine": "^37.0.0-alpha.2",
26
+ "@ckeditor/ckeditor5-image": "^37.0.0-alpha.2",
27
+ "@ckeditor/ckeditor5-link": "^37.0.0-alpha.2",
28
+ "@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.2",
29
+ "@ckeditor/ckeditor5-table": "^37.0.0-alpha.2",
30
+ "@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.2",
31
+ "@ckeditor/ckeditor5-typing": "^37.0.0-alpha.2",
32
+ "@ckeditor/ckeditor5-undo": "^37.0.0-alpha.2",
33
+ "@ckeditor/ckeditor5-utils": "^37.0.0-alpha.2",
34
+ "@ckeditor/ckeditor5-widget": "^37.0.0-alpha.2",
35
35
  "typescript": "^4.8.4",
36
36
  "webpack": "^5.58.1",
37
37
  "webpack-cli": "^4.9.0",
@@ -61,7 +61,7 @@
61
61
  ],
62
62
  "scripts": {
63
63
  "dll:build": "webpack",
64
- "build": "tsc -p ./tsconfig.release.json",
64
+ "build": "tsc -p ./tsconfig.json",
65
65
  "postversion": "npm run build"
66
66
  },
67
67
  "types": "src/index.d.ts"
@@ -0,0 +1,25 @@
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 { MediaEmbedConfig, AutoMediaEmbed, MediaEmbed, MediaEmbedEditing, MediaEmbedToolbar, MediaEmbedUI, MediaEmbedCommand } from './index';
6
+ declare module '@ckeditor/ckeditor5-core' {
7
+ interface EditorConfig {
8
+ /**
9
+ * The configuration of the {@link module:media-embed/mediaembed~MediaEmbed} feature.
10
+ *
11
+ * Read more in {@link module:media-embed/mediaembedconfig~MediaEmbedConfig}.
12
+ */
13
+ mediaEmbed?: MediaEmbedConfig;
14
+ }
15
+ interface PluginsMap {
16
+ [AutoMediaEmbed.pluginName]: AutoMediaEmbed;
17
+ [MediaEmbed.pluginName]: MediaEmbed;
18
+ [MediaEmbedEditing.pluginName]: MediaEmbedEditing;
19
+ [MediaEmbedToolbar.pluginName]: MediaEmbedToolbar;
20
+ [MediaEmbedUI.pluginName]: MediaEmbedUI;
21
+ }
22
+ interface CommandsMap {
23
+ mediaEmbed: MediaEmbedCommand;
24
+ }
25
+ }
@@ -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 AutoMediaEmbed extends Plugin {
46
46
  */
47
47
  private _embedMediaBetweenPositions;
48
48
  }
49
- declare module '@ckeditor/ckeditor5-core' {
50
- interface PluginsMap {
51
- [AutoMediaEmbed.pluginName]: AutoMediaEmbed;
52
- }
53
- }
package/src/index.d.ts CHANGED
@@ -10,3 +10,6 @@ export { default as MediaEmbedEditing } from './mediaembedediting';
10
10
  export { default as MediaEmbedUI } from './mediaembedui';
11
11
  export { default as AutoMediaEmbed } from './automediaembed';
12
12
  export { default as MediaEmbedToolbar } from './mediaembedtoolbar';
13
+ export type { MediaEmbedConfig } from './mediaembedconfig';
14
+ export type { default as MediaEmbedCommand } from './mediaembedcommand';
15
+ import './augmentation';
package/src/index.js CHANGED
@@ -10,3 +10,4 @@ export { default as MediaEmbedEditing } from './mediaembedediting';
10
10
  export { default as MediaEmbedUI } from './mediaembedui';
11
11
  export { default as AutoMediaEmbed } from './automediaembed';
12
12
  export { default as MediaEmbedToolbar } from './mediaembedtoolbar';
13
+ import './augmentation';
@@ -28,8 +28,3 @@ export default class MediaEmbed extends Plugin {
28
28
  */
29
29
  static get pluginName(): 'MediaEmbed';
30
30
  }
31
- declare module '@ckeditor/ckeditor5-core' {
32
- interface PluginsMap {
33
- [MediaEmbed.pluginName]: MediaEmbed;
34
- }
35
- }
@@ -34,8 +34,3 @@ export default class MediaEmbedCommand extends Command {
34
34
  */
35
35
  execute(url: string): void;
36
36
  }
37
- declare module '@ckeditor/ckeditor5-core' {
38
- interface CommandsMap {
39
- mediaEmbed: MediaEmbedCommand;
40
- }
41
- }
@@ -42,14 +42,14 @@ export interface MediaEmbedConfig {
42
42
  * * "flickr",
43
43
  * * "facebook"
44
44
  *
45
- * See the {@link module:media-embed/mediaembed~MediaEmbedProvider provider syntax} to learn more about
45
+ * See the {@link module:media-embed/mediaembedconfig~MediaEmbedProvider provider syntax} to learn more about
46
46
  * different kinds of media and media providers.
47
47
  *
48
48
  * **Note**: The default media provider configuration may not support all possible media URLs,
49
49
  * only the most common are included.
50
50
  *
51
51
  * Media without rendering functions are always represented in the data using the "semantic" markup. See
52
- * {@link module:media-embed/mediaembed~MediaEmbedConfig#previewsInData `config.mediaEmbed.previewsInData`} to
52
+ * {@link module:media-embed/mediaembedconfig~MediaEmbedConfig#previewsInData `config.mediaEmbed.previewsInData`} to
53
53
  * learn more about possible data outputs.
54
54
  *
55
55
  * The priority of media providers corresponds to the order of configuration. The first provider
@@ -57,7 +57,7 @@ export interface MediaEmbedConfig {
57
57
  * The URL is never matched against the remaining providers.
58
58
  *
59
59
  * To discard **all** default media providers, simply override this configuration with your own
60
- * {@link module:media-embed/mediaembed~MediaEmbedProvider definitions}:
60
+ * {@link module:media-embed/mediaembedconfig~MediaEmbedProvider definitions}:
61
61
  *
62
62
  * ```ts
63
63
  * ClassicEditor
@@ -82,15 +82,15 @@ export interface MediaEmbedConfig {
82
82
  * https://github.com/ckeditor/ckeditor5-media-embed/blob/master/src/mediaembedediting.js
83
83
  *
84
84
  * To **extend** the list of default providers, use
85
- * {@link module:media-embed/mediaembed~MediaEmbedConfig#extraProviders `config.mediaEmbed.extraProviders`}.
85
+ * {@link module:media-embed/mediaembedconfig~MediaEmbedConfig#extraProviders `config.mediaEmbed.extraProviders`}.
86
86
  *
87
87
  * To **remove** certain providers, use
88
- * {@link module:media-embed/mediaembed~MediaEmbedConfig#removeProviders `config.mediaEmbed.removeProviders`}.
88
+ * {@link module:media-embed/mediaembedconfig~MediaEmbedConfig#removeProviders `config.mediaEmbed.removeProviders`}.
89
89
  */
90
90
  providers?: Array<MediaEmbedProvider>;
91
91
  /**
92
92
  * The additional media providers supported by the editor. This configuration helps extend the default
93
- * {@link module:media-embed/mediaembed~MediaEmbedConfig#providers}.
93
+ * {@link module:media-embed/mediaembedconfig~MediaEmbedConfig#providers}.
94
94
  *
95
95
  * ```ts
96
96
  * ClassicEditor
@@ -111,13 +111,13 @@ export interface MediaEmbedConfig {
111
111
  * .catch( ... );
112
112
  * ```
113
113
  *
114
- * See the {@link module:media-embed/mediaembed~MediaEmbedProvider provider syntax} to learn more.
114
+ * See the {@link module:media-embed/mediaembedconfig~MediaEmbedProvider provider syntax} to learn more.
115
115
  */
116
116
  extraProviders?: Array<MediaEmbedProvider>;
117
117
  /**
118
118
  * The list of media providers that should not be used despite being available in
119
- * {@link module:media-embed/mediaembed~MediaEmbedConfig#providers `config.mediaEmbed.providers`} and
120
- * {@link module:media-embed/mediaembed~MediaEmbedConfig#extraProviders `config.mediaEmbed.extraProviders`}
119
+ * {@link module:media-embed/mediaembedconfig~MediaEmbedConfig#providers `config.mediaEmbed.providers`} and
120
+ * {@link module:media-embed/mediaembedconfig~MediaEmbedConfig#extraProviders `config.mediaEmbed.extraProviders`}
121
121
  *
122
122
  * ```ts
123
123
  * mediaEmbed: {
@@ -129,8 +129,8 @@ export interface MediaEmbedConfig {
129
129
  /**
130
130
  * Overrides the element name used for "semantic" data.
131
131
  *
132
- * This is not relevant if {@link module:media-embed/mediaembed~MediaEmbedConfig#previewsInData `config.mediaEmbed.previewsInData`}
133
- * is set to `true`.
132
+ * This is not relevant if
133
+ * {@link module:media-embed/mediaembedconfig~MediaEmbedConfig#previewsInData `config.mediaEmbed.previewsInData`} is set to `true`.
134
134
  *
135
135
  * When not set, the feature produces the `<oembed>` tag:
136
136
  *
@@ -184,7 +184,7 @@ export interface MediaEmbedConfig {
184
184
  *
185
185
  * **Note:** Media without preview are always represented in the data using the "semantic" markup
186
186
  * regardless of the value of the `previewsInData`. Learn more about different kinds of media
187
- * in the {@link module:media-embed/mediaembed~MediaEmbedConfig#providers `config.mediaEmbed.providers`}
187
+ * in the {@link module:media-embed/mediaembedconfig~MediaEmbedConfig#providers `config.mediaEmbed.providers`}
188
188
  * configuration description.
189
189
  *
190
190
  * @defualt false
@@ -200,10 +200,10 @@ export interface MediaEmbedConfig {
200
200
  }
201
201
  /**
202
202
  * The media embed provider descriptor. Used in
203
- * {@link module:media-embed/mediaembed~MediaEmbedConfig#providers `config.mediaEmbed.providers`} and
204
- * {@link module:media-embed/mediaembed~MediaEmbedConfig#extraProviders `config.mediaEmbed.extraProviders`}.
203
+ * {@link module:media-embed/mediaembedconfig~MediaEmbedConfig#providers `config.mediaEmbed.providers`} and
204
+ * {@link module:media-embed/mediaembedconfig~MediaEmbedConfig#extraProviders `config.mediaEmbed.extraProviders`}.
205
205
  *
206
- * See {@link module:media-embed/mediaembed~MediaEmbedConfig} to learn more.
206
+ * See {@link module:media-embed/mediaembedconfig~MediaEmbedConfig} to learn more.
207
207
  *
208
208
  * ```ts
209
209
  * {
@@ -253,7 +253,7 @@ export interface MediaEmbedConfig {
253
253
  export interface MediaEmbedProvider {
254
254
  /**
255
255
  * The name of the provider. Used e.g. when
256
- * {@link module:media-embed/mediaembed~MediaEmbedConfig#removeProviders removing providers}.
256
+ * {@link module:media-embed/mediaembedconfig~MediaEmbedConfig#removeProviders removing providers}.
257
257
  */
258
258
  name: string;
259
259
  /**
@@ -271,18 +271,8 @@ export interface MediaEmbedProvider {
271
271
  * preview of the media identified by a certain ID or a hash. When not defined, the media embed feature
272
272
  * will use a generic media representation in the view and output data.
273
273
  * Note that when
274
- * {@link module:media-embed/mediaembed~MediaEmbedConfig#previewsInData `config.mediaEmbed.previewsInData`}
274
+ * {@link module:media-embed/mediaembedconfig~MediaEmbedConfig#previewsInData `config.mediaEmbed.previewsInData`}
275
275
  * is `true`, the rendering function **will always** be used for the media in the editor data output.
276
276
  */
277
277
  html?: (match: RegExpMatchArray) => string;
278
278
  }
279
- declare module '@ckeditor/ckeditor5-core' {
280
- interface EditorConfig {
281
- /**
282
- * The configuration of the {@link module:media-embed/mediaembed~MediaEmbed} feature.
283
- *
284
- * Read more in {@link module:media-embed/mediaembed~MediaEmbedConfig}.
285
- */
286
- mediaEmbed?: MediaEmbedConfig;
287
- }
288
- }
@@ -29,8 +29,3 @@ export default class MediaEmbedEditing extends Plugin {
29
29
  */
30
30
  init(): void;
31
31
  }
32
- declare module '@ckeditor/ckeditor5-core' {
33
- interface PluginsMap {
34
- [MediaEmbedEditing.pluginName]: MediaEmbedEditing;
35
- }
36
- }
@@ -11,7 +11,7 @@ import './mediaembedconfig';
11
11
  * The media embed toolbar plugin. It creates a toolbar for media embed that shows up when the media element is selected.
12
12
  *
13
13
  * Instances of toolbar components (e.g. buttons) are created based on the
14
- * {@link module:media-embed/mediaembed~MediaEmbedConfig#toolbar `media.toolbar` configuration option}.
14
+ * {@link module:media-embed/mediaembedconfig~MediaEmbedConfig#toolbar `media.toolbar` configuration option}.
15
15
  */
16
16
  export default class MediaEmbedToolbar extends Plugin {
17
17
  /**
@@ -27,8 +27,3 @@ export default class MediaEmbedToolbar extends Plugin {
27
27
  */
28
28
  afterInit(): void;
29
29
  }
30
- declare module '@ckeditor/ckeditor5-core' {
31
- interface PluginsMap {
32
- [MediaEmbedToolbar.pluginName]: MediaEmbedToolbar;
33
- }
34
- }
@@ -13,7 +13,7 @@ import './mediaembedconfig';
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
  *
15
15
  * Instances of toolbar components (e.g. buttons) are created based on the
16
- * {@link module:media-embed/mediaembed~MediaEmbedConfig#toolbar `media.toolbar` configuration option}.
16
+ * {@link module:media-embed/mediaembedconfig~MediaEmbedConfig#toolbar `media.toolbar` configuration option}.
17
17
  */
18
18
  export default class MediaEmbedToolbar extends Plugin {
19
19
  /**
@@ -24,8 +24,3 @@ export default class MediaEmbedUI extends Plugin {
24
24
  init(): void;
25
25
  private _setUpDropdown;
26
26
  }
27
- declare module '@ckeditor/ckeditor5-core' {
28
- interface PluginsMap {
29
- [MediaEmbedUI.pluginName]: MediaEmbedUI;
30
- }
31
- }
@@ -23,7 +23,7 @@ export default class MediaRegistry {
23
23
  locale: Locale;
24
24
  /**
25
25
  * The media provider definitions available for the registry. Usually corresponding with the
26
- * {@link module:media-embed/mediaembed~MediaEmbedConfig media configuration}.
26
+ * {@link module:media-embed/mediaembedconfig~MediaEmbedConfig media configuration}.
27
27
  */
28
28
  providerDefinitions: Array<MediaEmbedProvider>;
29
29
  /**