@ckeditor/ckeditor5-html-support 40.2.0 → 41.0.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 (96) hide show
  1. package/LICENSE.md +1 -1
  2. package/build/html-support.js +2 -2
  3. package/lang/translations/ar.po +1 -1
  4. package/lang/translations/bg.po +1 -1
  5. package/lang/translations/bn.po +1 -1
  6. package/lang/translations/ca.po +1 -1
  7. package/lang/translations/cs.po +1 -1
  8. package/lang/translations/da.po +1 -1
  9. package/lang/translations/de.po +1 -1
  10. package/lang/translations/el.po +1 -1
  11. package/lang/translations/en-au.po +1 -1
  12. package/lang/translations/en.po +1 -1
  13. package/lang/translations/es.po +1 -1
  14. package/lang/translations/et.po +1 -1
  15. package/lang/translations/fi.po +1 -1
  16. package/lang/translations/fr.po +1 -1
  17. package/lang/translations/gl.po +1 -1
  18. package/lang/translations/he.po +1 -1
  19. package/lang/translations/hi.po +1 -1
  20. package/lang/translations/hr.po +1 -1
  21. package/lang/translations/hu.po +1 -1
  22. package/lang/translations/id.po +1 -1
  23. package/lang/translations/it.po +1 -1
  24. package/lang/translations/ja.po +1 -1
  25. package/lang/translations/jv.po +1 -1
  26. package/lang/translations/ko.po +1 -1
  27. package/lang/translations/lt.po +1 -1
  28. package/lang/translations/lv.po +1 -1
  29. package/lang/translations/ms.po +1 -1
  30. package/lang/translations/nl.po +1 -1
  31. package/lang/translations/no.po +1 -1
  32. package/lang/translations/pl.po +1 -1
  33. package/lang/translations/pt-br.po +1 -1
  34. package/lang/translations/pt.po +1 -1
  35. package/lang/translations/ro.po +1 -1
  36. package/lang/translations/ru.po +1 -1
  37. package/lang/translations/sk.po +1 -1
  38. package/lang/translations/sr-latn.po +1 -1
  39. package/lang/translations/sr.po +1 -1
  40. package/lang/translations/sv.po +1 -1
  41. package/lang/translations/th.po +1 -1
  42. package/lang/translations/tr.po +1 -1
  43. package/lang/translations/ug.po +1 -1
  44. package/lang/translations/uk.po +1 -1
  45. package/lang/translations/ur.po +1 -1
  46. package/lang/translations/vi.po +1 -1
  47. package/lang/translations/zh-cn.po +1 -1
  48. package/lang/translations/zh.po +1 -1
  49. package/package.json +3 -2
  50. package/src/augmentation.d.ts +3 -3
  51. package/src/augmentation.js +1 -1
  52. package/src/converters.d.ts +5 -5
  53. package/src/converters.js +3 -3
  54. package/src/datafilter.d.ts +6 -6
  55. package/src/datafilter.js +9 -9
  56. package/src/dataschema.d.ts +3 -3
  57. package/src/dataschema.js +4 -4
  58. package/src/fullpage.d.ts +2 -2
  59. package/src/fullpage.js +4 -4
  60. package/src/generalhtmlsupport.d.ts +16 -16
  61. package/src/generalhtmlsupport.js +16 -16
  62. package/src/generalhtmlsupportconfig.d.ts +2 -2
  63. package/src/generalhtmlsupportconfig.js +1 -1
  64. package/src/htmlcomment.d.ts +3 -3
  65. package/src/htmlcomment.js +3 -3
  66. package/src/htmlpagedataprocessor.d.ts +2 -2
  67. package/src/htmlpagedataprocessor.js +2 -2
  68. package/src/index.d.ts +19 -19
  69. package/src/index.js +8 -8
  70. package/src/integrations/codeblock.d.ts +3 -3
  71. package/src/integrations/codeblock.js +4 -4
  72. package/src/integrations/customelement.d.ts +4 -4
  73. package/src/integrations/customelement.js +6 -6
  74. package/src/integrations/dualcontent.d.ts +3 -3
  75. package/src/integrations/dualcontent.js +6 -6
  76. package/src/integrations/heading.d.ts +4 -4
  77. package/src/integrations/heading.js +4 -4
  78. package/src/integrations/image.d.ts +3 -3
  79. package/src/integrations/image.js +5 -5
  80. package/src/integrations/integrationutils.d.ts +2 -2
  81. package/src/integrations/integrationutils.js +1 -1
  82. package/src/integrations/{documentlist.d.ts → list.d.ts} +6 -6
  83. package/src/integrations/{documentlist.js → list.js} +15 -15
  84. package/src/integrations/mediaembed.d.ts +3 -3
  85. package/src/integrations/mediaembed.js +6 -6
  86. package/src/integrations/script.d.ts +3 -3
  87. package/src/integrations/script.js +4 -4
  88. package/src/integrations/style.d.ts +3 -3
  89. package/src/integrations/style.js +4 -4
  90. package/src/integrations/table.d.ts +3 -3
  91. package/src/integrations/table.js +5 -5
  92. package/src/schemadefinitions.d.ts +2 -2
  93. package/src/schemadefinitions.js +1 -1
  94. package/src/utils.d.ts +2 -2
  95. package/src/utils.js +1 -1
  96. package/theme/datafilter.css +1 -1
package/src/index.js CHANGED
@@ -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 html-support
7
7
  */
8
- export { default as GeneralHtmlSupport } from './generalhtmlsupport';
9
- export { default as DataFilter } from './datafilter';
10
- export { default as DataSchema } from './dataschema';
11
- export { default as HtmlComment } from './htmlcomment';
12
- export { default as FullPage } from './fullpage';
13
- export { default as HtmlPageDataProcessor } from './htmlpagedataprocessor';
14
- import './augmentation';
8
+ export { default as GeneralHtmlSupport } from './generalhtmlsupport.js';
9
+ export { default as DataFilter } from './datafilter.js';
10
+ export { default as DataSchema } from './dataschema.js';
11
+ export { default as HtmlComment } from './htmlcomment.js';
12
+ export { default as FullPage } from './fullpage.js';
13
+ export { default as HtmlPageDataProcessor } from './htmlpagedataprocessor.js';
14
+ import './augmentation.js';
@@ -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 { Plugin } from 'ckeditor5/src/core';
6
- import DataFilter from '../datafilter';
5
+ import { Plugin } from 'ckeditor5/src/core.js';
6
+ import DataFilter from '../datafilter.js';
7
7
  /**
8
8
  * Provides the General HTML Support integration with {@link module:code-block/codeblock~CodeBlock Code Block} feature.
9
9
  */
@@ -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 { Plugin } from 'ckeditor5/src/core';
6
- import { updateViewAttributes } from '../utils';
7
- import DataFilter from '../datafilter';
5
+ import { Plugin } from 'ckeditor5/src/core.js';
6
+ import { updateViewAttributes } from '../utils.js';
7
+ import DataFilter from '../datafilter.js';
8
8
  /**
9
9
  * Provides the General HTML Support integration with {@link module:code-block/codeblock~CodeBlock Code Block} feature.
10
10
  */
@@ -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 html-support/integrations/customelement
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import DataSchema from '../dataschema';
10
- import DataFilter from '../datafilter';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import DataSchema from '../dataschema.js';
10
+ import DataFilter from '../datafilter.js';
11
11
  /**
12
12
  * Provides the General HTML Support for custom elements (not registered in the {@link module:html-support/dataschema~DataSchema}).
13
13
  */
@@ -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 html-support/integrations/customelement
7
7
  */
8
8
  /* globals document */
9
- import { Plugin } from 'ckeditor5/src/core';
10
- import { UpcastWriter } from 'ckeditor5/src/engine';
11
- import DataSchema from '../dataschema';
12
- import DataFilter from '../datafilter';
13
- import { setViewAttributes } from '../utils';
9
+ import { Plugin } from 'ckeditor5/src/core.js';
10
+ import { UpcastWriter } from 'ckeditor5/src/engine.js';
11
+ import DataSchema from '../dataschema.js';
12
+ import DataFilter from '../datafilter.js';
13
+ import { setViewAttributes } from '../utils.js';
14
14
  /**
15
15
  * Provides the General HTML Support for custom elements (not registered in the {@link module:html-support/dataschema~DataSchema}).
16
16
  */
@@ -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 { Plugin } from 'ckeditor5/src/core';
6
- import DataFilter from '../datafilter';
5
+ import { Plugin } from 'ckeditor5/src/core.js';
6
+ import DataFilter from '../datafilter.js';
7
7
  /**
8
8
  * Provides the General HTML Support integration for elements which can behave like sectioning element (e.g. article) or
9
9
  * element accepting only inline content (e.g. paragraph).
@@ -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
- import { Plugin } from 'ckeditor5/src/core';
6
- import { priorities } from 'ckeditor5/src/utils';
7
- import { modelToViewBlockAttributeConverter, viewToModelBlockAttributeConverter } from '../converters';
8
- import DataFilter from '../datafilter';
9
- import { getHtmlAttributeName } from '../utils';
5
+ import { Plugin } from 'ckeditor5/src/core.js';
6
+ import { priorities } from 'ckeditor5/src/utils.js';
7
+ import { modelToViewBlockAttributeConverter, viewToModelBlockAttributeConverter } from '../converters.js';
8
+ import DataFilter from '../datafilter.js';
9
+ import { getHtmlAttributeName } from '../utils.js';
10
10
  /**
11
11
  * Provides the General HTML Support integration for elements which can behave like sectioning element (e.g. article) or
12
12
  * element accepting only inline content (e.g. paragraph).
@@ -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 html-support/integrations/heading
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { Enter } from 'ckeditor5/src/enter';
10
- import DataSchema from '../dataschema';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { Enter } from 'ckeditor5/src/enter.js';
10
+ import DataSchema from '../dataschema.js';
11
11
  /**
12
12
  * Provides the General HTML Support integration with {@link module:heading/heading~Heading Heading} feature.
13
13
  */
@@ -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 html-support/integrations/heading
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { Enter } from 'ckeditor5/src/enter';
10
- import DataSchema from '../dataschema';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { Enter } from 'ckeditor5/src/enter.js';
10
+ import DataSchema from '../dataschema.js';
11
11
  /**
12
12
  * Provides the General HTML Support integration with {@link module:heading/heading~Heading Heading} feature.
13
13
  */
@@ -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 html-support/integrations/image
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import DataFilter from '../datafilter';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import DataFilter from '../datafilter.js';
10
10
  /**
11
11
  * Provides the General HTML Support integration with the {@link module:image/image~Image Image} feature.
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 html-support/integrations/image
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import DataFilter from '../datafilter';
10
- import { setViewAttributes, updateViewAttributes } from '../utils';
11
- import { getDescendantElement } from './integrationutils';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import DataFilter from '../datafilter.js';
10
+ import { setViewAttributes, updateViewAttributes } from '../utils.js';
11
+ import { getDescendantElement } from './integrationutils.js';
12
12
  /**
13
13
  * Provides the General HTML Support integration with the {@link module:image/image~Image Image} feature.
14
14
  */
@@ -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 { DowncastWriter, ViewElement } from 'ckeditor5/src/engine';
5
+ import type { DowncastWriter, ViewElement } from 'ckeditor5/src/engine.js';
6
6
  /**
7
7
  * @module html-support/integrations/integrationutils
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
  /**
@@ -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
- import { Plugin } from 'ckeditor5/src/core';
6
- import DataFilter from '../datafilter';
5
+ import { Plugin } from 'ckeditor5/src/core.js';
6
+ import DataFilter from '../datafilter.js';
7
7
  /**
8
- * Provides the General HTML Support integration with the {@link module:list/documentlist~DocumentList Document List} feature.
8
+ * Provides the General HTML Support integration with the {@link module:list/list~List List} feature.
9
9
  */
10
- export default class DocumentListElementSupport extends Plugin {
10
+ export default class ListElementSupport extends Plugin {
11
11
  /**
12
12
  * @inheritDoc
13
13
  */
@@ -15,7 +15,7 @@ export default class DocumentListElementSupport extends Plugin {
15
15
  /**
16
16
  * @inheritDoc
17
17
  */
18
- static get pluginName(): "DocumentListElementSupport";
18
+ static get pluginName(): "ListElementSupport";
19
19
  /**
20
20
  * @inheritDoc
21
21
  */
@@ -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
- * @module html-support/integrations/documentlist
6
+ * @module html-support/integrations/list
7
7
  */
8
8
  import { isEqual } from 'lodash-es';
9
- import { Plugin } from 'ckeditor5/src/core';
10
- import { getHtmlAttributeName, setViewAttributes } from '../utils';
11
- import DataFilter from '../datafilter';
9
+ import { Plugin } from 'ckeditor5/src/core.js';
10
+ import { getHtmlAttributeName, setViewAttributes } from '../utils.js';
11
+ import DataFilter from '../datafilter.js';
12
12
  /**
13
- * Provides the General HTML Support integration with the {@link module:list/documentlist~DocumentList Document List} feature.
13
+ * Provides the General HTML Support integration with the {@link module:list/list~List List} feature.
14
14
  */
15
- export default class DocumentListElementSupport extends Plugin {
15
+ export default class ListElementSupport extends Plugin {
16
16
  /**
17
17
  * @inheritDoc
18
18
  */
@@ -23,34 +23,34 @@ export default class DocumentListElementSupport extends Plugin {
23
23
  * @inheritDoc
24
24
  */
25
25
  static get pluginName() {
26
- return 'DocumentListElementSupport';
26
+ return 'ListElementSupport';
27
27
  }
28
28
  /**
29
29
  * @inheritDoc
30
30
  */
31
31
  init() {
32
32
  const editor = this.editor;
33
- if (!editor.plugins.has('DocumentListEditing')) {
33
+ if (!editor.plugins.has('ListEditing')) {
34
34
  return;
35
35
  }
36
36
  const schema = editor.model.schema;
37
37
  const conversion = editor.conversion;
38
38
  const dataFilter = editor.plugins.get(DataFilter);
39
- const documentListEditing = editor.plugins.get('DocumentListEditing');
39
+ const listEditing = editor.plugins.get('ListEditing');
40
40
  const viewElements = ['ul', 'ol', 'li'];
41
41
  // Register downcast strategy.
42
42
  // Note that this must be done before document list editing registers conversion in afterInit.
43
- documentListEditing.registerDowncastStrategy({
43
+ listEditing.registerDowncastStrategy({
44
44
  scope: 'item',
45
45
  attributeName: 'htmlLiAttributes',
46
46
  setAttributeOnDowncast: setViewAttributes
47
47
  });
48
- documentListEditing.registerDowncastStrategy({
48
+ listEditing.registerDowncastStrategy({
49
49
  scope: 'list',
50
50
  attributeName: 'htmlUlAttributes',
51
51
  setAttributeOnDowncast: setViewAttributes
52
52
  });
53
- documentListEditing.registerDowncastStrategy({
53
+ listEditing.registerDowncastStrategy({
54
54
  scope: 'list',
55
55
  attributeName: 'htmlOlAttributes',
56
56
  setAttributeOnDowncast: setViewAttributes
@@ -73,7 +73,7 @@ export default class DocumentListElementSupport extends Plugin {
73
73
  });
74
74
  });
75
75
  // Make sure that all items in a single list (items at the same level & listType) have the same properties.
76
- documentListEditing.on('postFixer', (evt, { listNodes, writer }) => {
76
+ listEditing.on('postFixer', (evt, { listNodes, writer }) => {
77
77
  for (const { node, previousNodeInList } of listNodes) {
78
78
  // This is a first item of a nested list.
79
79
  if (!previousNodeInList) {
@@ -99,7 +99,7 @@ export default class DocumentListElementSupport extends Plugin {
99
99
  }
100
100
  });
101
101
  // Remove `ol` attributes from `ul` elements and vice versa.
102
- documentListEditing.on('postFixer', (evt, { listNodes, writer }) => {
102
+ listEditing.on('postFixer', (evt, { listNodes, writer }) => {
103
103
  for (const { node } of listNodes) {
104
104
  const listType = node.getAttribute('listType');
105
105
  if (listType !== 'numbered' && node.getAttribute('htmlOlAttributes')) {
@@ -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 html-support/integrations/mediaembed
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import DataFilter from '../datafilter';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import DataFilter from '../datafilter.js';
10
10
  /**
11
11
  * Provides the General HTML Support integration with {@link module:media-embed/mediaembed~MediaEmbed Media Embed} feature.
12
12
  */
@@ -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 html-support/integrations/mediaembed
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import DataFilter from '../datafilter';
10
- import DataSchema from '../dataschema';
11
- import { updateViewAttributes, getHtmlAttributeName } from '../utils';
12
- import { getDescendantElement } from './integrationutils';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import DataFilter from '../datafilter.js';
10
+ import DataSchema from '../dataschema.js';
11
+ import { updateViewAttributes, getHtmlAttributeName } from '../utils.js';
12
+ import { getDescendantElement } from './integrationutils.js';
13
13
  /**
14
14
  * Provides the General HTML Support integration with {@link module:media-embed/mediaembed~MediaEmbed Media Embed} feature.
15
15
  */
@@ -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 html-support/integrations/script
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import DataFilter from '../datafilter';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import DataFilter from '../datafilter.js';
10
10
  /**
11
11
  * Provides the General HTML Support for `script` elements.
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 html-support/integrations/script
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { createObjectView, modelToViewBlockAttributeConverter, viewToModelBlockAttributeConverter, viewToModelObjectConverter } from '../converters';
10
- import DataFilter from '../datafilter';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { createObjectView, modelToViewBlockAttributeConverter, viewToModelBlockAttributeConverter, viewToModelObjectConverter } from '../converters.js';
10
+ import DataFilter from '../datafilter.js';
11
11
  /**
12
12
  * Provides the General HTML Support for `script` elements.
13
13
  */
@@ -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 html-support/integrations/style
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import DataFilter from '../datafilter';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import DataFilter from '../datafilter.js';
10
10
  /**
11
11
  * Provides the General HTML Support for `style` elements.
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 html-support/integrations/style
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { createObjectView, modelToViewBlockAttributeConverter, viewToModelBlockAttributeConverter, viewToModelObjectConverter } from '../converters';
10
- import DataFilter from '../datafilter';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { createObjectView, modelToViewBlockAttributeConverter, viewToModelBlockAttributeConverter, viewToModelObjectConverter } from '../converters.js';
10
+ import DataFilter from '../datafilter.js';
11
11
  /**
12
12
  * Provides the General HTML Support for `style` elements.
13
13
  */
@@ -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 { Plugin } from 'ckeditor5/src/core';
6
- import DataFilter from '../datafilter';
5
+ import { Plugin } from 'ckeditor5/src/core.js';
6
+ import DataFilter from '../datafilter.js';
7
7
  /**
8
8
  * Provides the General HTML Support integration with {@link module:table/table~Table Table} feature.
9
9
  */
@@ -1,11 +1,11 @@
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 { Plugin } from 'ckeditor5/src/core';
6
- import { updateViewAttributes } from '../utils';
7
- import DataFilter from '../datafilter';
8
- import { getDescendantElement } from './integrationutils';
5
+ import { Plugin } from 'ckeditor5/src/core.js';
6
+ import { updateViewAttributes } from '../utils.js';
7
+ import DataFilter from '../datafilter.js';
8
+ import { getDescendantElement } from './integrationutils.js';
9
9
  /**
10
10
  * Provides the General HTML Support integration with {@link module:table/table~Table Table} feature.
11
11
  */
@@ -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 { DataSchemaBlockElementDefinition, DataSchemaInlineElementDefinition } from './dataschema';
5
+ import type { DataSchemaBlockElementDefinition, DataSchemaInlineElementDefinition } from './dataschema.js';
6
6
  /**
7
7
  * @module html-support/schemadefinitions
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
  /**
package/src/utils.d.ts CHANGED
@@ -1,11 +1,11 @@
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 html-support/utils
7
7
  */
8
- import type { DocumentSelection, DowncastWriter, Item, ViewElement, Writer } from 'ckeditor5/src/engine';
8
+ import type { DocumentSelection, DowncastWriter, Item, ViewElement, Writer } from 'ckeditor5/src/engine.js';
9
9
  export interface GHSViewAttributes {
10
10
  attributes?: Record<string, unknown>;
11
11
  classes?: Array<string>;
package/src/utils.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
  import { startCase, cloneDeep } from 'lodash-es';
@@ -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