@ckeditor/ckeditor5-html-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/README.md CHANGED
@@ -10,11 +10,11 @@ This package implements the HTML embed feature for CKEditor 5. It allows embeddi
10
10
 
11
11
  ## Demo
12
12
 
13
- Check out the demo in the [HTML embed feature guide](https://ckeditor.com/docs/ckeditor5/latest/features/html-embed.html#demo).
13
+ Check out the demo in the [HTML embed feature guide](https://ckeditor.com/docs/ckeditor5/latest/features/html/html-embed.html#demo).
14
14
 
15
15
  ## Documentation
16
16
 
17
- See the [`@ckeditor/ckeditor5-html-embed` package](https://ckeditor.com/docs/ckeditor5/latest/api/html-embed.html) page as well as the [HTML embed feature](https://ckeditor.com/docs/ckeditor5/latest/features/html-embed.html) guide in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/).
17
+ See the [`@ckeditor/ckeditor5-html-embed` package](https://ckeditor.com/docs/ckeditor5/latest/api/html-embed.html) page as well as the [HTML embed feature](https://ckeditor.com/docs/ckeditor5/latest/features/html/html-embed.html) guide in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/).
18
18
 
19
19
  ## License
20
20
 
@@ -4,7 +4,7 @@
4
4
  "name": "HTML embed",
5
5
  "className": "HtmlEmbed",
6
6
  "description": "Allows for embedding an arbitrary HTML snippet in the editor.",
7
- "docs": "features/html-embed.html",
7
+ "docs": "features/html/html-embed.html",
8
8
  "path": "src/htmlembed.js",
9
9
  "uiComponents": [
10
10
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-html-embed",
3
- "version": "37.0.0-alpha.0",
3
+ "version": "37.0.0-alpha.2",
4
4
  "description": "HTML embed feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,21 +12,21 @@
12
12
  ],
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "ckeditor5": "^37.0.0-alpha.0"
15
+ "ckeditor5": "^37.0.0-alpha.2"
16
16
  },
17
17
  "devDependencies": {
18
- "@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.0",
19
- "@ckeditor/ckeditor5-core": "^37.0.0-alpha.0",
20
- "@ckeditor/ckeditor5-dev-utils": "^34.0.0",
21
- "@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.0",
22
- "@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.0",
23
- "@ckeditor/ckeditor5-engine": "^37.0.0-alpha.0",
24
- "@ckeditor/ckeditor5-media-embed": "^37.0.0-alpha.0",
25
- "@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.0",
26
- "@ckeditor/ckeditor5-table": "^37.0.0-alpha.0",
27
- "@ckeditor/ckeditor5-ui": "^37.0.0-alpha.0",
28
- "@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.0",
29
- "@ckeditor/ckeditor5-widget": "^37.0.0-alpha.0",
18
+ "@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.2",
19
+ "@ckeditor/ckeditor5-core": "^37.0.0-alpha.2",
20
+ "@ckeditor/ckeditor5-dev-utils": "^35.0.0",
21
+ "@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.2",
22
+ "@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.2",
23
+ "@ckeditor/ckeditor5-engine": "^37.0.0-alpha.2",
24
+ "@ckeditor/ckeditor5-media-embed": "^37.0.0-alpha.2",
25
+ "@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.2",
26
+ "@ckeditor/ckeditor5-table": "^37.0.0-alpha.2",
27
+ "@ckeditor/ckeditor5-ui": "^37.0.0-alpha.2",
28
+ "@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.2",
29
+ "@ckeditor/ckeditor5-widget": "^37.0.0-alpha.2",
30
30
  "lodash-es": "^4.17.15",
31
31
  "sanitize-html": "^2.1.0",
32
32
  "typescript": "^4.8.4",
@@ -57,7 +57,7 @@
57
57
  ],
58
58
  "scripts": {
59
59
  "dll:build": "webpack",
60
- "build": "tsc -p ./tsconfig.release.json",
60
+ "build": "tsc -p ./tsconfig.json",
61
61
  "postversion": "npm run build"
62
62
  },
63
63
  "types": "src/index.d.ts"
@@ -0,0 +1,24 @@
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 { HtmlEmbed, HtmlEmbedCommand, HtmlEmbedConfig, HtmlEmbedEditing, HtmlEmbedUI } from './index';
6
+ declare module '@ckeditor/ckeditor5-core' {
7
+ interface EditorConfig {
8
+ /**
9
+ * The configuration of the HTML embed feature. Introduced by the {@link module:html-embed/htmlembedediting~HtmlEmbedEditing}
10
+ * feature.
11
+ *
12
+ * Read more in {@link module:core/editor/editorconfig~EditorConfig all editor options}.
13
+ */
14
+ htmlEmbed?: HtmlEmbedConfig;
15
+ }
16
+ interface PluginsMap {
17
+ [HtmlEmbed.pluginName]: HtmlEmbed;
18
+ [HtmlEmbedEditing.pluginName]: HtmlEmbedEditing;
19
+ [HtmlEmbedUI.pluginName]: HtmlEmbedUI;
20
+ }
21
+ interface CommandsMap {
22
+ htmlEmbed: HtmlEmbedCommand;
23
+ }
24
+ }
@@ -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 {};
@@ -23,8 +23,3 @@ export default class HtmlEmbed extends Plugin {
23
23
  */
24
24
  static get pluginName(): 'HtmlEmbed';
25
25
  }
26
- declare module '@ckeditor/ckeditor5-core' {
27
- interface PluginsMap {
28
- [HtmlEmbed.pluginName]: HtmlEmbed;
29
- }
30
- }
@@ -42,8 +42,3 @@ export default class HtmlEmbedCommand extends Command {
42
42
  */
43
43
  execute(value?: string): void;
44
44
  }
45
- declare module '@ckeditor/ckeditor5-core' {
46
- interface CommandsMap {
47
- htmlEmbed: HtmlEmbedCommand;
48
- }
49
- }
@@ -84,13 +84,3 @@ export interface HtmlEmbedSanitizeOutput {
84
84
  */
85
85
  hasChanged: boolean;
86
86
  }
87
- declare module '@ckeditor/ckeditor5-core' {
88
- /**
89
- * The configuration of the HTML embed feature. Introduced by the {@link module:html-embed/htmlembedediting~HtmlEmbedEditing} feature.
90
- *
91
- * Read more in {@link module:core/editor/editorconfig~EditorConfig all editor options}.
92
- */
93
- interface EditorConfig {
94
- htmlEmbed?: HtmlEmbedConfig;
95
- }
96
- }
@@ -38,8 +38,3 @@ export interface RawHtmlApi {
38
38
  save(newValue: string): void;
39
39
  cancel(): void;
40
40
  }
41
- declare module '@ckeditor/ckeditor5-core' {
42
- interface PLuginsMap {
43
- [HtmlEmbedEditing.pluginName]: HtmlEmbedEditing;
44
- }
45
- }
@@ -19,8 +19,3 @@ export default class HtmlEmbedUI extends Plugin {
19
19
  */
20
20
  init(): void;
21
21
  }
22
- declare module '@ckeditor/ckeditor5-core' {
23
- interface PLuginsMap {
24
- [HtmlEmbedUI.pluginName]: HtmlEmbedUI;
25
- }
26
- }
package/src/index.d.ts CHANGED
@@ -8,3 +8,6 @@
8
8
  export { default as HtmlEmbed } from './htmlembed';
9
9
  export { default as HtmlEmbedEditing } from './htmlembedediting';
10
10
  export { default as HtmlEmbedUI } from './htmlembedui';
11
+ export type { default as HtmlEmbedCommand } from './htmlembedcommand';
12
+ export type { HtmlEmbedConfig } from './htmlembedconfig';
13
+ import './augmentation';
package/src/index.js CHANGED
@@ -8,3 +8,4 @@
8
8
  export { default as HtmlEmbed } from './htmlembed';
9
9
  export { default as HtmlEmbedEditing } from './htmlembedediting';
10
10
  export { default as HtmlEmbedUI } from './htmlembedui';
11
+ import './augmentation';