@ckeditor/ckeditor5-html-support 37.0.0-alpha.1 → 37.0.0-alpha.3

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-html-support",
3
- "version": "37.0.0-alpha.1",
3
+ "version": "37.0.0-alpha.3",
4
4
  "description": "HTML Support feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -16,42 +16,42 @@
16
16
  ],
17
17
  "main": "src/index.js",
18
18
  "dependencies": {
19
- "ckeditor5": "^37.0.0-alpha.1",
19
+ "ckeditor5": "^37.0.0-alpha.3",
20
20
  "lodash-es": "^4.17.15"
21
21
  },
22
22
  "devDependencies": {
23
- "@ckeditor/ckeditor5-alignment": "^37.0.0-alpha.1",
24
- "@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.1",
25
- "@ckeditor/ckeditor5-block-quote": "^37.0.0-alpha.1",
26
- "@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.1",
27
- "@ckeditor/ckeditor5-cloud-services": "^37.0.0-alpha.1",
28
- "@ckeditor/ckeditor5-code-block": "^37.0.0-alpha.1",
29
- "@ckeditor/ckeditor5-core": "^37.0.0-alpha.1",
23
+ "@ckeditor/ckeditor5-alignment": "^37.0.0-alpha.3",
24
+ "@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.3",
25
+ "@ckeditor/ckeditor5-block-quote": "^37.0.0-alpha.3",
26
+ "@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.3",
27
+ "@ckeditor/ckeditor5-cloud-services": "^37.0.0-alpha.3",
28
+ "@ckeditor/ckeditor5-code-block": "^37.0.0-alpha.3",
29
+ "@ckeditor/ckeditor5-core": "^37.0.0-alpha.3",
30
30
  "@ckeditor/ckeditor5-dev-utils": "^35.0.0",
31
- "@ckeditor/ckeditor5-easy-image": "^37.0.0-alpha.1",
32
- "@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.1",
33
- "@ckeditor/ckeditor5-engine": "^37.0.0-alpha.1",
34
- "@ckeditor/ckeditor5-enter": "^37.0.0-alpha.1",
35
- "@ckeditor/ckeditor5-essentials": "^37.0.0-alpha.1",
36
- "@ckeditor/ckeditor5-font": "^37.0.0-alpha.1",
37
- "@ckeditor/ckeditor5-heading": "^37.0.0-alpha.1",
38
- "@ckeditor/ckeditor5-highlight": "^37.0.0-alpha.1",
39
- "@ckeditor/ckeditor5-horizontal-line": "^37.0.0-alpha.1",
40
- "@ckeditor/ckeditor5-html-embed": "^37.0.0-alpha.1",
41
- "@ckeditor/ckeditor5-image": "^37.0.0-alpha.1",
42
- "@ckeditor/ckeditor5-indent": "^37.0.0-alpha.1",
43
- "@ckeditor/ckeditor5-link": "^37.0.0-alpha.1",
44
- "@ckeditor/ckeditor5-list": "^37.0.0-alpha.1",
45
- "@ckeditor/ckeditor5-media-embed": "^37.0.0-alpha.1",
46
- "@ckeditor/ckeditor5-page-break": "^37.0.0-alpha.1",
47
- "@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.1",
48
- "@ckeditor/ckeditor5-paste-from-office": "^37.0.0-alpha.1",
49
- "@ckeditor/ckeditor5-remove-format": "^37.0.0-alpha.1",
50
- "@ckeditor/ckeditor5-source-editing": "^37.0.0-alpha.1",
51
- "@ckeditor/ckeditor5-table": "^37.0.0-alpha.1",
52
- "@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.1",
53
- "@ckeditor/ckeditor5-utils": "^37.0.0-alpha.1",
54
- "@ckeditor/ckeditor5-widget": "^37.0.0-alpha.1",
31
+ "@ckeditor/ckeditor5-easy-image": "^37.0.0-alpha.3",
32
+ "@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.3",
33
+ "@ckeditor/ckeditor5-engine": "^37.0.0-alpha.3",
34
+ "@ckeditor/ckeditor5-enter": "^37.0.0-alpha.3",
35
+ "@ckeditor/ckeditor5-essentials": "^37.0.0-alpha.3",
36
+ "@ckeditor/ckeditor5-font": "^37.0.0-alpha.3",
37
+ "@ckeditor/ckeditor5-heading": "^37.0.0-alpha.3",
38
+ "@ckeditor/ckeditor5-highlight": "^37.0.0-alpha.3",
39
+ "@ckeditor/ckeditor5-horizontal-line": "^37.0.0-alpha.3",
40
+ "@ckeditor/ckeditor5-html-embed": "^37.0.0-alpha.3",
41
+ "@ckeditor/ckeditor5-image": "^37.0.0-alpha.3",
42
+ "@ckeditor/ckeditor5-indent": "^37.0.0-alpha.3",
43
+ "@ckeditor/ckeditor5-link": "^37.0.0-alpha.3",
44
+ "@ckeditor/ckeditor5-list": "^37.0.0-alpha.3",
45
+ "@ckeditor/ckeditor5-media-embed": "^37.0.0-alpha.3",
46
+ "@ckeditor/ckeditor5-page-break": "^37.0.0-alpha.3",
47
+ "@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.3",
48
+ "@ckeditor/ckeditor5-paste-from-office": "^37.0.0-alpha.3",
49
+ "@ckeditor/ckeditor5-remove-format": "^37.0.0-alpha.3",
50
+ "@ckeditor/ckeditor5-source-editing": "^37.0.0-alpha.3",
51
+ "@ckeditor/ckeditor5-table": "^37.0.0-alpha.3",
52
+ "@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.3",
53
+ "@ckeditor/ckeditor5-utils": "^37.0.0-alpha.3",
54
+ "@ckeditor/ckeditor5-widget": "^37.0.0-alpha.3",
55
55
  "typescript": "^4.8.4",
56
56
  "webpack": "^5.58.1",
57
57
  "webpack-cli": "^4.9.0"
@@ -5,9 +5,10 @@
5
5
  /**
6
6
  * @module html-support/datafilter
7
7
  */
8
- import { Plugin, type Editor, type PluginDependencies } from 'ckeditor5/src/core';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
9
9
  import { type MatcherPattern, type UpcastConversionApi, type ViewElement } from 'ckeditor5/src/engine';
10
- import { type DataSchemaDefinition } from './dataschema';
10
+ import { Widget } from 'ckeditor5/src/widget';
11
+ import { default as DataSchema, type DataSchemaDefinition } from './dataschema';
11
12
  import type { GHSViewAttributes } from './conversionutils';
12
13
  import '../theme/datafilter.css';
13
14
  /**
@@ -83,7 +84,7 @@ export default class DataFilter extends Plugin {
83
84
  /**
84
85
  * @inheritDoc
85
86
  */
86
- static get requires(): PluginDependencies;
87
+ static get requires(): readonly [typeof DataSchema, typeof Widget];
87
88
  /**
88
89
  * Load a configuration of one or many elements, where their attributes should be allowed.
89
90
  *
@@ -5,8 +5,19 @@
5
5
  /**
6
6
  * @module html-support/generalhtmlsupport
7
7
  */
8
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
9
  import { type ArrayOrItem } from 'ckeditor5/src/utils';
10
+ import DataFilter from './datafilter';
11
+ import CodeBlockElementSupport from './integrations/codeblock';
12
+ import DualContentModelElementSupport from './integrations/dualcontent';
13
+ import HeadingElementSupport from './integrations/heading';
14
+ import ImageElementSupport from './integrations/image';
15
+ import MediaEmbedElementSupport from './integrations/mediaembed';
16
+ import ScriptElementSupport from './integrations/script';
17
+ import TableElementSupport from './integrations/table';
18
+ import StyleElementSupport from './integrations/style';
19
+ import DocumentListElementSupport from './integrations/documentlist';
20
+ import CustomElementSupport from './integrations/customelement';
10
21
  import type { Range, Selectable } from 'ckeditor5/src/engine';
11
22
  type LimitedSelectable = Exclude<Selectable, Iterable<Range> | null>;
12
23
  /**
@@ -23,7 +34,7 @@ export default class GeneralHtmlSupport extends Plugin {
23
34
  /**
24
35
  * @inheritDoc
25
36
  */
26
- static get requires(): PluginDependencies;
37
+ static get requires(): readonly [typeof DataFilter, typeof CodeBlockElementSupport, typeof DualContentModelElementSupport, typeof HeadingElementSupport, typeof ImageElementSupport, typeof MediaEmbedElementSupport, typeof ScriptElementSupport, typeof TableElementSupport, typeof StyleElementSupport, typeof DocumentListElementSupport, typeof CustomElementSupport];
27
38
  /**
28
39
  * @inheritDoc
29
40
  */
@@ -2,7 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, 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 { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
5
+ import { Plugin } from 'ckeditor5/src/core';
6
+ import DataFilter from '../datafilter';
6
7
  /**
7
8
  * Provides the General HTML Support integration with {@link module:code-block/codeblock~CodeBlock Code Block} feature.
8
9
  */
@@ -10,7 +11,7 @@ export default class CodeBlockElementSupport extends Plugin {
10
11
  /**
11
12
  * @inheritDoc
12
13
  */
13
- static get requires(): PluginDependencies;
14
+ static get requires(): readonly [typeof DataFilter];
14
15
  /**
15
16
  * @inheritDoc
16
17
  */
@@ -5,7 +5,9 @@
5
5
  /**
6
6
  * @module html-support/integrations/customelement
7
7
  */
8
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import DataSchema from '../dataschema';
10
+ import DataFilter from '../datafilter';
9
11
  /**
10
12
  * Provides the General HTML Support for custom elements (not registered in the {@link module:html-support/dataschema~DataSchema}).
11
13
  */
@@ -13,7 +15,7 @@ export default class CustomElementSupport extends Plugin {
13
15
  /**
14
16
  * @inheritDoc
15
17
  */
16
- static get requires(): PluginDependencies;
18
+ static get requires(): readonly [typeof DataFilter, typeof DataSchema];
17
19
  /**
18
20
  * @inheritDoc
19
21
  */
@@ -2,7 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, 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 { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
5
+ import { Plugin } from 'ckeditor5/src/core';
6
+ import DataFilter from '../datafilter';
6
7
  /**
7
8
  * Provides the General HTML Support integration with the {@link module:list/documentlist~DocumentList Document List} feature.
8
9
  */
@@ -10,7 +11,7 @@ export default class DocumentListElementSupport extends Plugin {
10
11
  /**
11
12
  * @inheritDoc
12
13
  */
13
- static get requires(): PluginDependencies;
14
+ static get requires(): readonly [typeof DataFilter];
14
15
  /**
15
16
  * @inheritDoc
16
17
  */
@@ -2,7 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, 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 { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
5
+ import { Plugin } from 'ckeditor5/src/core';
6
+ import DataFilter from '../datafilter';
6
7
  /**
7
8
  * Provides the General HTML Support integration for elements which can behave like sectioning element (e.g. article) or
8
9
  * element accepting only inline content (e.g. paragraph).
@@ -24,7 +25,7 @@ export default class DualContentModelElementSupport extends Plugin {
24
25
  /**
25
26
  * @inheritDoc
26
27
  */
27
- static get requires(): PluginDependencies;
28
+ static get requires(): readonly [typeof DataFilter];
28
29
  /**
29
30
  * @inheritDoc
30
31
  */
@@ -5,7 +5,8 @@
5
5
  /**
6
6
  * @module html-support/integrations/heading
7
7
  */
8
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import DataSchema from '../dataschema';
9
10
  /**
10
11
  * Provides the General HTML Support integration with {@link module:heading/heading~Heading Heading} feature.
11
12
  */
@@ -13,7 +14,7 @@ export default class HeadingElementSupport extends Plugin {
13
14
  /**
14
15
  * @inheritDoc
15
16
  */
16
- static get requires(): PluginDependencies;
17
+ static get requires(): readonly [typeof DataSchema];
17
18
  /**
18
19
  * @inheritDoc
19
20
  */
@@ -5,7 +5,8 @@
5
5
  /**
6
6
  * @module html-support/integrations/image
7
7
  */
8
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import DataFilter from '../datafilter';
9
10
  /**
10
11
  * Provides the General HTML Support integration with the {@link module:image/image~Image Image} feature.
11
12
  */
@@ -13,7 +14,7 @@ export default class ImageElementSupport extends Plugin {
13
14
  /**
14
15
  * @inheritDoc
15
16
  */
16
- static get requires(): PluginDependencies;
17
+ static get requires(): readonly [typeof DataFilter];
17
18
  /**
18
19
  * @inheritDoc
19
20
  */
@@ -5,7 +5,8 @@
5
5
  /**
6
6
  * @module html-support/integrations/mediaembed
7
7
  */
8
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import DataFilter from '../datafilter';
9
10
  /**
10
11
  * Provides the General HTML Support integration with {@link module:media-embed/mediaembed~MediaEmbed Media Embed} feature.
11
12
  */
@@ -13,7 +14,7 @@ export default class MediaEmbedElementSupport extends Plugin {
13
14
  /**
14
15
  * @inheritDoc
15
16
  */
16
- static get requires(): PluginDependencies;
17
+ static get requires(): readonly [typeof DataFilter];
17
18
  /**
18
19
  * @inheritDoc
19
20
  */
@@ -5,7 +5,8 @@
5
5
  /**
6
6
  * @module html-support/integrations/script
7
7
  */
8
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import DataFilter from '../datafilter';
9
10
  /**
10
11
  * Provides the General HTML Support for `script` elements.
11
12
  */
@@ -13,7 +14,7 @@ export default class ScriptElementSupport extends Plugin {
13
14
  /**
14
15
  * @inheritDoc
15
16
  */
16
- static get requires(): PluginDependencies;
17
+ static get requires(): readonly [typeof DataFilter];
17
18
  /**
18
19
  * @inheritDoc
19
20
  */
@@ -5,7 +5,8 @@
5
5
  /**
6
6
  * @module html-support/integrations/style
7
7
  */
8
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import DataFilter from '../datafilter';
9
10
  /**
10
11
  * Provides the General HTML Support for `style` elements.
11
12
  */
@@ -13,7 +14,7 @@ export default class StyleElementSupport extends Plugin {
13
14
  /**
14
15
  * @inheritDoc
15
16
  */
16
- static get requires(): PluginDependencies;
17
+ static get requires(): readonly [typeof DataFilter];
17
18
  /**
18
19
  * @inheritDoc
19
20
  */
@@ -2,7 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, 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 { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
5
+ import { Plugin } from 'ckeditor5/src/core';
6
+ import DataFilter from '../datafilter';
6
7
  /**
7
8
  * Provides the General HTML Support integration with {@link module:table/table~Table Table} feature.
8
9
  */
@@ -10,7 +11,7 @@ export default class TableElementSupport extends Plugin {
10
11
  /**
11
12
  * @inheritDoc
12
13
  */
13
- static get requires(): PluginDependencies;
14
+ static get requires(): readonly [typeof DataFilter];
14
15
  /**
15
16
  * @inheritDoc
16
17
  */