@ckeditor/ckeditor5-html-support 40.1.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 +38 -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 +27 -17
  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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-html-support",
3
- "version": "40.1.0",
3
+ "version": "41.0.0",
4
4
  "description": "HTML Support feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -14,9 +14,10 @@
14
14
  "generic html support",
15
15
  "ckeditor5-dll"
16
16
  ],
17
+ "type": "module",
17
18
  "main": "src/index.js",
18
19
  "dependencies": {
19
- "ckeditor5": "40.1.0",
20
+ "ckeditor5": "41.0.0",
20
21
  "lodash-es": "4.17.21"
21
22
  },
22
23
  "author": "CKSource (http://cksource.com/)",
@@ -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 { GeneralHtmlSupport, DataFilter, DataSchema, GeneralHtmlSupportConfig, CodeBlockElementSupport, CustomElementSupport, DocumentListElementSupport, DualContentModelElementSupport, HeadingElementSupport, ImageElementSupport, MediaEmbedElementSupport, ScriptElementSupport, StyleElementSupport, TableElementSupport, HtmlComment, FullPage } from './index';
5
+ import type { GeneralHtmlSupport, DataFilter, DataSchema, GeneralHtmlSupportConfig, CodeBlockElementSupport, CustomElementSupport, ListElementSupport, DualContentModelElementSupport, HeadingElementSupport, ImageElementSupport, MediaEmbedElementSupport, ScriptElementSupport, StyleElementSupport, TableElementSupport, HtmlComment, FullPage } from './index.js';
6
6
  declare module '@ckeditor/ckeditor5-core' {
7
7
  interface EditorConfig {
8
8
  /**
@@ -19,7 +19,7 @@ declare module '@ckeditor/ckeditor5-core' {
19
19
  [DataSchema.pluginName]: DataSchema;
20
20
  [CodeBlockElementSupport.pluginName]: CodeBlockElementSupport;
21
21
  [CustomElementSupport.pluginName]: CustomElementSupport;
22
- [DocumentListElementSupport.pluginName]: DocumentListElementSupport;
22
+ [ListElementSupport.pluginName]: ListElementSupport;
23
23
  [DualContentModelElementSupport.pluginName]: DualContentModelElementSupport;
24
24
  [HeadingElementSupport.pluginName]: HeadingElementSupport;
25
25
  [ImageElementSupport.pluginName]: ImageElementSupport;
@@ -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
  export {};
@@ -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/converters
7
7
  */
8
- import type { Editor } from 'ckeditor5/src/core';
9
- import type { AttributeElement, DowncastConversionApi, DowncastDispatcher, DowncastWriter, Element, ElementCreatorFunction, UpcastConversionApi, UpcastDispatcher, ViewElement } from 'ckeditor5/src/engine';
10
- import type DataFilter from './datafilter';
11
- import type { DataSchemaBlockElementDefinition, DataSchemaDefinition, DataSchemaInlineElementDefinition } from './dataschema';
8
+ import type { Editor } from 'ckeditor5/src/core.js';
9
+ import type { AttributeElement, DowncastConversionApi, DowncastDispatcher, DowncastWriter, Element, ElementCreatorFunction, UpcastConversionApi, UpcastDispatcher, ViewElement } from 'ckeditor5/src/engine.js';
10
+ import type DataFilter from './datafilter.js';
11
+ import type { DataSchemaBlockElementDefinition, DataSchemaDefinition, DataSchemaInlineElementDefinition } from './dataschema.js';
12
12
  /**
13
13
  * View-to-model conversion helper for object elements.
14
14
  *
package/src/converters.js CHANGED
@@ -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 { toWidget } from 'ckeditor5/src/widget';
6
- import { setViewAttributes, mergeViewElementAttributes, updateViewAttributes, getHtmlAttributeName } from './utils';
5
+ import { toWidget } from 'ckeditor5/src/widget.js';
6
+ import { setViewAttributes, mergeViewElementAttributes, updateViewAttributes, getHtmlAttributeName } from './utils.js';
7
7
  /**
8
8
  * View-to-model conversion helper for object elements.
9
9
  *
@@ -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/datafilter
7
7
  */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- import { type MatcherPattern, type UpcastConversionApi, type ViewElement, type MatcherObjectPattern } from 'ckeditor5/src/engine';
10
- import { Widget } from 'ckeditor5/src/widget';
11
- import { default as DataSchema, type DataSchemaDefinition } from './dataschema';
12
- import { type GHSViewAttributes } from './utils';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
+ import { type MatcherPattern, type UpcastConversionApi, type ViewElement, type MatcherObjectPattern } from 'ckeditor5/src/engine.js';
10
+ import { Widget } from 'ckeditor5/src/widget.js';
11
+ import { default as DataSchema, type DataSchemaDefinition } from './dataschema.js';
12
+ import { type GHSViewAttributes } from './utils.js';
13
13
  import '../theme/datafilter.css';
14
14
  /**
15
15
  * Allows to validate elements and element attributes registered by {@link module:html-support/dataschema~DataSchema}.
package/src/datafilter.js CHANGED
@@ -1,17 +1,17 @@
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/datafilter
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { Matcher } from 'ckeditor5/src/engine';
10
- import { CKEditorError, priorities, isValidAttributeName } from 'ckeditor5/src/utils';
11
- import { Widget } from 'ckeditor5/src/widget';
12
- import { viewToModelObjectConverter, toObjectWidgetConverter, createObjectView, viewToAttributeInlineConverter, attributeToViewInlineConverter, emptyInlineModelElementToViewConverter, viewToModelBlockAttributeConverter, modelToViewBlockAttributeConverter } from './converters';
13
- import { default as DataSchema } from './dataschema';
14
- import { getHtmlAttributeName } from './utils';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { Matcher } from 'ckeditor5/src/engine.js';
10
+ import { CKEditorError, priorities, isValidAttributeName } from 'ckeditor5/src/utils.js';
11
+ import { Widget } from 'ckeditor5/src/widget.js';
12
+ import { viewToModelObjectConverter, toObjectWidgetConverter, createObjectView, viewToAttributeInlineConverter, attributeToViewInlineConverter, emptyInlineModelElementToViewConverter, viewToModelBlockAttributeConverter, modelToViewBlockAttributeConverter } from './converters.js';
13
+ import { default as DataSchema } from './dataschema.js';
14
+ import { getHtmlAttributeName } from './utils.js';
15
15
  import { isPlainObject, pull as removeItemFromArray } from 'lodash-es';
16
16
  import '../theme/datafilter.css';
17
17
  /**
@@ -329,6 +329,7 @@ export default class DataFilter extends Plugin {
329
329
  */
330
330
  _registerCoupledAttributesPostFixer() {
331
331
  const model = this.editor.model;
332
+ const selection = model.document.selection;
332
333
  model.document.registerPostFixer(writer => {
333
334
  const changes = model.document.differ.getChanges();
334
335
  let changed = false;
@@ -344,7 +345,7 @@ export default class DataFilter extends Plugin {
344
345
  continue;
345
346
  }
346
347
  // Remove the coupled GHS attributes on the same range as the feature attribute was removed.
347
- for (const { item } of change.range.getWalker({ shallow: true })) {
348
+ for (const { item } of change.range.getWalker()) {
348
349
  for (const attributeKey of attributeKeys) {
349
350
  if (item.hasAttribute(attributeKey)) {
350
351
  writer.removeAttribute(attributeKey, item);
@@ -355,6 +356,34 @@ export default class DataFilter extends Plugin {
355
356
  }
356
357
  return changed;
357
358
  });
359
+ this.listenTo(selection, 'change:attribute', (evt, { attributeKeys }) => {
360
+ const removeAttributes = new Set();
361
+ const coupledAttributes = this._getCoupledAttributesMap();
362
+ for (const attributeKey of attributeKeys) {
363
+ // Handle only attribute removals.
364
+ if (selection.hasAttribute(attributeKey)) {
365
+ continue;
366
+ }
367
+ // Find a list of coupled GHS attributes.
368
+ const coupledAttributeKeys = coupledAttributes.get(attributeKey);
369
+ if (!coupledAttributeKeys) {
370
+ continue;
371
+ }
372
+ for (const coupledAttributeKey of coupledAttributeKeys) {
373
+ if (selection.hasAttribute(coupledAttributeKey)) {
374
+ removeAttributes.add(coupledAttributeKey);
375
+ }
376
+ }
377
+ }
378
+ if (removeAttributes.size == 0) {
379
+ return;
380
+ }
381
+ model.change(writer => {
382
+ for (const attributeKey of removeAttributes) {
383
+ writer.removeSelectionAttribute(attributeKey);
384
+ }
385
+ });
386
+ });
358
387
  }
359
388
  /**
360
389
  * Removes `html*Attributes` attributes from incompatible elements.
@@ -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/dataschema
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import type { AttributeProperties, SchemaItemDefinition } from 'ckeditor5/src/engine';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import type { AttributeProperties, SchemaItemDefinition } from 'ckeditor5/src/engine.js';
10
10
  /**
11
11
  * Holds representation of the extended HTML document type definitions to be used by the
12
12
  * editor in HTML support.
package/src/dataschema.js CHANGED
@@ -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/dataschema
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { toArray } from 'ckeditor5/src/utils';
10
- import defaultConfig from './schemadefinitions';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { toArray } from 'ckeditor5/src/utils.js';
10
+ import defaultConfig from './schemadefinitions.js';
11
11
  import { mergeWith } from 'lodash-es';
12
12
  /**
13
13
  * Holds representation of the extended HTML document type definitions to be used by the
package/src/fullpage.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/fullpage
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The full page editing feature. It preserves the whole HTML page in the editor data.
11
11
  */
package/src/fullpage.js CHANGED
@@ -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/fullpage
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { UpcastWriter } from 'ckeditor5/src/engine';
10
- import HtmlPageDataProcessor from './htmlpagedataprocessor';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { UpcastWriter } from 'ckeditor5/src/engine.js';
10
+ import HtmlPageDataProcessor from './htmlpagedataprocessor.js';
11
11
  /**
12
12
  * The full page editing feature. It preserves the whole HTML page in the editor data.
13
13
  */
@@ -1,24 +1,24 @@
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/generalhtmlsupport
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
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';
21
- import type { Selectable } from 'ckeditor5/src/engine';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { type ArrayOrItem } from 'ckeditor5/src/utils.js';
10
+ import DataFilter from './datafilter.js';
11
+ import CodeBlockElementSupport from './integrations/codeblock.js';
12
+ import DualContentModelElementSupport from './integrations/dualcontent.js';
13
+ import HeadingElementSupport from './integrations/heading.js';
14
+ import ImageElementSupport from './integrations/image.js';
15
+ import MediaEmbedElementSupport from './integrations/mediaembed.js';
16
+ import ScriptElementSupport from './integrations/script.js';
17
+ import TableElementSupport from './integrations/table.js';
18
+ import StyleElementSupport from './integrations/style.js';
19
+ import ListElementSupport from './integrations/list.js';
20
+ import CustomElementSupport from './integrations/customelement.js';
21
+ import type { Selectable } from 'ckeditor5/src/engine.js';
22
22
  /**
23
23
  * The General HTML Support feature.
24
24
  *
@@ -33,7 +33,7 @@ export default class GeneralHtmlSupport extends Plugin {
33
33
  /**
34
34
  * @inheritDoc
35
35
  */
36
- 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];
36
+ static get requires(): readonly [typeof DataFilter, typeof CodeBlockElementSupport, typeof DualContentModelElementSupport, typeof HeadingElementSupport, typeof ImageElementSupport, typeof MediaEmbedElementSupport, typeof ScriptElementSupport, typeof TableElementSupport, typeof StyleElementSupport, typeof ListElementSupport, typeof CustomElementSupport];
37
37
  /**
38
38
  * @inheritDoc
39
39
  */
@@ -1,24 +1,24 @@
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/generalhtmlsupport
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { toArray } 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';
21
- import { getHtmlAttributeName, modifyGhsAttribute } from './utils';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { toArray } from 'ckeditor5/src/utils.js';
10
+ import DataFilter from './datafilter.js';
11
+ import CodeBlockElementSupport from './integrations/codeblock.js';
12
+ import DualContentModelElementSupport from './integrations/dualcontent.js';
13
+ import HeadingElementSupport from './integrations/heading.js';
14
+ import ImageElementSupport from './integrations/image.js';
15
+ import MediaEmbedElementSupport from './integrations/mediaembed.js';
16
+ import ScriptElementSupport from './integrations/script.js';
17
+ import TableElementSupport from './integrations/table.js';
18
+ import StyleElementSupport from './integrations/style.js';
19
+ import ListElementSupport from './integrations/list.js';
20
+ import CustomElementSupport from './integrations/customelement.js';
21
+ import { getHtmlAttributeName, modifyGhsAttribute } from './utils.js';
22
22
  /**
23
23
  * The General HTML Support feature.
24
24
  *
@@ -46,7 +46,7 @@ export default class GeneralHtmlSupport extends Plugin {
46
46
  ScriptElementSupport,
47
47
  TableElementSupport,
48
48
  StyleElementSupport,
49
- DocumentListElementSupport,
49
+ ListElementSupport,
50
50
  CustomElementSupport
51
51
  ];
52
52
  }
@@ -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/generalhtmlsupportconfig
7
7
  */
8
- import type { MatcherObjectPattern } from 'ckeditor5/src/engine';
8
+ import type { MatcherObjectPattern } from 'ckeditor5/src/engine.js';
9
9
  /**
10
10
  * The configuration of the General HTML Support feature.
11
11
  * The option is used by the {@link module:html-support/generalhtmlsupport~GeneralHtmlSupport} feature.
@@ -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
  export {};
@@ -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/htmlcomment
7
7
  */
8
- import type { Position, Range } from 'ckeditor5/src/engine';
9
- import { Plugin } from 'ckeditor5/src/core';
8
+ import type { Position, Range } from 'ckeditor5/src/engine.js';
9
+ import { Plugin } from 'ckeditor5/src/core.js';
10
10
  /**
11
11
  * The HTML comment feature. It preserves the HTML comments (`<!-- -->`) in the editor data.
12
12
  *
@@ -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 { uid } from 'ckeditor5/src/utils';
5
+ import { Plugin } from 'ckeditor5/src/core.js';
6
+ import { uid } from 'ckeditor5/src/utils.js';
7
7
  /**
8
8
  * The HTML comment feature. It preserves the HTML comments (`<!-- -->`) in the editor data.
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
5
  /**
6
6
  * @module html-support/htmlpagedataprocessor
7
7
  */
8
- import { HtmlDataProcessor, type ViewDocumentFragment } from 'ckeditor5/src/engine';
8
+ import { HtmlDataProcessor, type ViewDocumentFragment } from 'ckeditor5/src/engine.js';
9
9
  /**
10
10
  * The full page HTML data processor class.
11
11
  * This data processor implementation uses HTML as input and output data.
@@ -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/htmlpagedataprocessor
7
7
  */
8
- import { HtmlDataProcessor, UpcastWriter } from 'ckeditor5/src/engine';
8
+ import { HtmlDataProcessor, UpcastWriter } from 'ckeditor5/src/engine.js';
9
9
  /**
10
10
  * The full page HTML data processor class.
11
11
  * This data processor implementation uses HTML as input and output data.