@ckeditor/ckeditor5-html-support 48.2.0 → 48.3.0-alpha.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.
@@ -1,76 +1,76 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module html-support/htmlcomment
7
- */
8
- import type { ModelPosition, ModelRange } from '@ckeditor/ckeditor5-engine';
9
- import { Plugin } from '@ckeditor/ckeditor5-core';
6
+ * @module html-support/htmlcomment
7
+ */
8
+ import type { ModelPosition, ModelRange } from "@ckeditor/ckeditor5-engine";
9
+ import { Plugin } from "@ckeditor/ckeditor5-core";
10
10
  /**
11
- * The HTML comment feature. It preserves the HTML comments (`<!-- -->`) in the editor data.
12
- *
13
- * For a detailed overview, check the {@glink features/html/html-comments HTML comment feature documentation}.
14
- */
11
+ * The HTML comment feature. It preserves the HTML comments (`<!-- -->`) in the editor data.
12
+ *
13
+ * For a detailed overview, check the {@glink features/html/html-comments HTML comment feature documentation}.
14
+ */
15
15
  export declare class HtmlComment extends Plugin {
16
- /**
17
- * @inheritDoc
18
- */
19
- static get pluginName(): "HtmlComment";
20
- /**
21
- * @inheritDoc
22
- */
23
- static get isOfficialPlugin(): true;
24
- /**
25
- * @inheritDoc
26
- */
27
- init(): void;
28
- /**
29
- * Creates an HTML comment on the specified position and returns its ID.
30
- *
31
- * *Note*: If two comments are created at the same position, the second comment will be inserted before the first one.
32
- *
33
- * @returns Comment ID. This ID can be later used to e.g. remove the comment from the content.
34
- */
35
- createHtmlComment(position: ModelPosition, content: string): string;
36
- /**
37
- * Removes an HTML comment with the given comment ID.
38
- *
39
- * It does nothing and returns `false` if the comment with the given ID does not exist.
40
- * Otherwise it removes the comment and returns `true`.
41
- *
42
- * Note that a comment can be removed also by removing the content around the comment.
43
- *
44
- * @param commentID The ID of the comment to be removed.
45
- * @returns `true` when the comment with the given ID was removed, `false` otherwise.
46
- */
47
- removeHtmlComment(commentID: string): boolean;
48
- /**
49
- * Gets the HTML comment data for the comment with a given ID.
50
- *
51
- * Returns `null` if the comment does not exist.
52
- */
53
- getHtmlCommentData(commentID: string): HtmlCommentData | null;
54
- /**
55
- * Gets all HTML comments in the given range.
56
- *
57
- * By default, it includes comments at the range boundaries.
58
- *
59
- * @param range The range to search for HTML comments.
60
- * @param options Additional options.
61
- * @param options.skipBoundaries When set to `true` the range boundaries will be skipped.
62
- * @returns HTML comment IDs
63
- */
64
- getHtmlCommentsInRange(range: ModelRange, { skipBoundaries }?: {
65
- skipBoundaries?: boolean | undefined;
66
- }): Array<string>;
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ static get pluginName(): "HtmlComment";
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ static override get isOfficialPlugin(): true;
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ init(): void;
28
+ /**
29
+ * Creates an HTML comment on the specified position and returns its ID.
30
+ *
31
+ * *Note*: If two comments are created at the same position, the second comment will be inserted before the first one.
32
+ *
33
+ * @returns Comment ID. This ID can be later used to e.g. remove the comment from the content.
34
+ */
35
+ createHtmlComment(position: ModelPosition, content: string): string;
36
+ /**
37
+ * Removes an HTML comment with the given comment ID.
38
+ *
39
+ * It does nothing and returns `false` if the comment with the given ID does not exist.
40
+ * Otherwise it removes the comment and returns `true`.
41
+ *
42
+ * Note that a comment can be removed also by removing the content around the comment.
43
+ *
44
+ * @param commentID The ID of the comment to be removed.
45
+ * @returns `true` when the comment with the given ID was removed, `false` otherwise.
46
+ */
47
+ removeHtmlComment(commentID: string): boolean;
48
+ /**
49
+ * Gets the HTML comment data for the comment with a given ID.
50
+ *
51
+ * Returns `null` if the comment does not exist.
52
+ */
53
+ getHtmlCommentData(commentID: string): HtmlCommentData | null;
54
+ /**
55
+ * Gets all HTML comments in the given range.
56
+ *
57
+ * By default, it includes comments at the range boundaries.
58
+ *
59
+ * @param range The range to search for HTML comments.
60
+ * @param options Additional options.
61
+ * @param options.skipBoundaries When set to `true` the range boundaries will be skipped.
62
+ * @returns HTML comment IDs
63
+ */
64
+ getHtmlCommentsInRange(range: ModelRange, { skipBoundaries }?: {
65
+ skipBoundaries?: boolean;
66
+ }): Array<string>;
67
67
  }
68
68
  /**
69
- * An interface for the HTML comments data.
70
- *
71
- * It consists of the {@link module:engine/model/position~ModelPosition `position`} and `content`.
72
- */
69
+ * An interface for the HTML comments data.
70
+ *
71
+ * It consists of the {@link module:engine/model/position~ModelPosition `position`} and `content`.
72
+ */
73
73
  export interface HtmlCommentData {
74
- position: ModelPosition;
75
- content: string;
74
+ position: ModelPosition;
75
+ content: string;
76
76
  }
@@ -1,22 +1,22 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module html-support/htmlpagedataprocessor
7
- */
8
- import { HtmlDataProcessor, type ViewDocumentFragment } from '@ckeditor/ckeditor5-engine';
6
+ * @module html-support/htmlpagedataprocessor
7
+ */
8
+ import { HtmlDataProcessor, type ViewDocumentFragment } from "@ckeditor/ckeditor5-engine";
9
9
  /**
10
- * The full page HTML data processor class.
11
- * This data processor implementation uses HTML as input and output data.
12
- */
10
+ * The full page HTML data processor class.
11
+ * This data processor implementation uses HTML as input and output data.
12
+ */
13
13
  export declare class HtmlPageDataProcessor extends HtmlDataProcessor {
14
- /**
15
- * @inheritDoc
16
- */
17
- toView(data: string): ViewDocumentFragment;
18
- /**
19
- * @inheritDoc
20
- */
21
- toData(viewFragment: ViewDocumentFragment): string;
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ override toView(data: string): ViewDocumentFragment;
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ override toData(viewFragment: ViewDocumentFragment): string;
22
22
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../theme/datafilter.css","index.css"],"names":[],"mappings":";;;;AAKA,CAAA,IAAA,CAAA;ACJA,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG;AACrD;;ADOA,CAAA,EAAA,CAAA,MAAA,CAAA,IAAA,CAAA,MAAA,CAAA,KAAA,CAAA;ACJA,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;AACrC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC;AACnD,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;AAClC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AACvE,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AACpD;;ADOC,CAAA,EAAA,CAAA,MAA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CAAC,CAAC,IAAI;AACtB;;ADUA,GAAA,CAAA,EAAA,CAAA,MAAA,CAAA,IAAA,CAAA,MAAA,CAAA,KAAA,CAAA;ACPA,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,IAAI;AAClB;;ADUA,IAAA,CAAA,EAAA,CAAA,MAAA,CAAA,IAAA,CAAA,MAAA,CAAA,KAAA,CAAA;ACPA,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK;AACvB;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index.css.map","sourcesContent":["/*\n * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n:root {\n\t--ck-html-object-embed-unfocused-outline-width: 1px;\n}\n\n.ck-widget.html-object-embed {\n\tfont-size: var(--ck-font-size-base);\n\tbackground-color: var(--ck-color-base-foreground);\n\tpadding: var(--ck-spacing-small);\n\t/* Leave space for label */\n\tpadding-top: calc(var(--ck-font-size-tiny) + var(--ck-spacing-large));\n\tmin-width: calc(76px + var(--ck-spacing-standard));\n\n\t&:not(.ck-widget_selected):not(:hover) {\n\t\toutline: var(--ck-html-object-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border);\n\t}\n\n\t&::before {\n\t\tfont-weight: normal;\n\t\tfont-style: normal;\n\t\tposition: absolute;\n\t\tcontent: attr(data-html-object-embed-label);\n\t\ttop: 0;\n\t\tleft: var(--ck-spacing-standard);\n\t\tbackground: hsl(0deg 0% 60%);\n\t\ttransition: background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\t\tpadding: calc(var(--ck-spacing-tiny) + var(--ck-html-object-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);\n\t\tborder-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\n\t\tcolor: var(--ck-color-base-background);\n\t\tfont-size: var(--ck-font-size-tiny);\n\t\tfont-family: var(--ck-font-face);\n\t}\n\n\t/* Make space for label. */\n\t& .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before {\n\t\tmargin-left: 50px;\n\t}\n\n\t& .html-object-embed__content {\n\t\t/* Disable user interaction with embed content */\n\t\tpointer-events: none;\n\t}\n}\n\ndiv.ck-widget.html-object-embed {\n\tmargin: 1em auto;\n}\n\nspan.ck-widget.html-object-embed {\n\tdisplay: inline-block;\n}\n\n",":root {\n --ck-html-object-embed-unfocused-outline-width: 1px;\n}\n\n.ck-widget.html-object-embed {\n font-size: var(--ck-font-size-base);\n background-color: var(--ck-color-base-foreground);\n padding: var(--ck-spacing-small);\n padding-top: calc(var(--ck-font-size-tiny) + var(--ck-spacing-large));\n min-width: calc(76px + var(--ck-spacing-standard));\n}\n\n.ck-widget.html-object-embed:not(.ck-widget_selected):not(:hover) {\n outline: var(--ck-html-object-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border);\n}\n\n.ck-widget.html-object-embed:before {\n content: attr(data-html-object-embed-label);\n top: 0;\n left: var(--ck-spacing-standard);\n transition: background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n padding: calc(var(--ck-spacing-tiny) + var(--ck-html-object-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);\n border-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\n color: var(--ck-color-base-background);\n font-style: normal;\n font-weight: normal;\n font-size: var(--ck-font-size-tiny);\n font-family: var(--ck-font-face);\n background: #999;\n position: absolute;\n}\n\n.ck-widget.html-object-embed .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before {\n margin-left: 50px;\n}\n\n.ck-widget.html-object-embed .html-object-embed__content {\n pointer-events: none;\n}\n\ndiv.ck-widget.html-object-embed {\n margin: 1em auto;\n}\n\nspan.ck-widget.html-object-embed {\n display: inline-block;\n}\n\n/*# sourceMapp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AA,MAAA,CAAA,IAAA,CAAA,MAAA,CAAA,KAAA,CAAA;ACPA,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK;AACvB;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index.css.map","sourcesContent":["/*\n * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n:root {\n\t--ck-html-object-embed-unfocused-outline-width: 1px;\n}\n\n.ck-widget.html-object-embed {\n\tfont-size: var(--ck-font-size-base);\n\tbackground-color: var(--ck-color-base-foreground);\n\tpadding: var(--ck-spacing-small);\n\t/* Leave space for label */\n\tpadding-top: calc(var(--ck-font-size-tiny) + var(--ck-spacing-large));\n\tmin-width: calc(76px + var(--ck-spacing-standard));\n\n\t&:not(.ck-widget_selected):not(:hover) {\n\t\toutline: var(--ck-html-object-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border);\n\t}\n\n\t&::before {\n\t\tfont-weight: normal;\n\t\tfont-style: normal;\n\t\tposition: absolute;\n\t\tcontent: attr(data-html-object-embed-label);\n\t\ttop: 0;\n\t\tleft: var(--ck-spacing-standard);\n\t\tbackground: hsl(0deg 0% 60%);\n\t\ttransition: background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\t\tpadding: calc(var(--ck-spacing-tiny) + var(--ck-html-object-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);\n\t\tborder-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\n\t\tcolor: var(--ck-color-base-background);\n\t\tfont-size: var(--ck-font-size-tiny);\n\t\tfont-family: var(--ck-font-face);\n\t}\n\n\t/* Make space for label. */\n\t& .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before {\n\t\tmargin-left: 50px;\n\t}\n\n\t& .html-object-embed__content {\n\t\t/* Disable user interaction with embed content */\n\t\tpointer-events: none;\n\t}\n}\n\ndiv.ck-widget.html-object-embed {\n\tmargin: 1em auto;\n}\n\nspan.ck-widget.html-object-embed {\n\tdisplay: inline-block;\n}\n\n",":root {\n --ck-html-object-embed-unfocused-outline-width: 1px;\n}\n\n.ck-widget.html-object-embed {\n font-size: var(--ck-font-size-base);\n background-color: var(--ck-color-base-foreground);\n padding: var(--ck-spacing-small);\n padding-top: calc(var(--ck-font-size-tiny) + var(--ck-spacing-large));\n min-width: calc(76px + var(--ck-spacing-standard));\n}\n\n.ck-widget.html-object-embed:not(.ck-widget_selected):not(:hover) {\n outline: var(--ck-html-object-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border);\n}\n\n.ck-widget.html-object-embed:before {\n content: attr(data-html-object-embed-label);\n top: 0;\n left: var(--ck-spacing-standard);\n transition: background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n padding: calc(var(--ck-spacing-tiny) + var(--ck-html-object-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);\n border-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\n color: var(--ck-color-base-background);\n font-style: normal;\n font-weight: normal;\n font-size: var(--ck-font-size-tiny);\n font-family: var(--ck-font-face);\n background: #999;\n position: absolute;\n}\n\n.ck-widget.html-object-embed .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before {\n margin-left: 50px;\n}\n\n.ck-widget.html-object-embed .html-object-embed__content {\n pointer-events: none;\n}\n\ndiv.ck-widget.html-object-embed {\n margin: 1em auto;\n}\n\nspan.ck-widget.html-object-embed {\n display: inline-block;\n}\n\n/*# sourceMappingURL=index.css.map */"]}
package/dist/index.d.ts CHANGED
@@ -1,32 +1,32 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module html-support
7
- */
8
- export { GeneralHtmlSupport } from './generalhtmlsupport.js';
9
- export { DataFilter, type HtmlSupportDataFilterRegisterEvent } from './datafilter.js';
10
- export { DataSchema, type HtmlSupportDataSchemaBlockElementDefinition, type HtmlSupportDataSchemaDefinition, type HtmlSupportDataSchemaInlineElementDefinition } from './dataschema.js';
11
- export { HtmlComment, type HtmlCommentData } from './htmlcomment.js';
12
- export { FullPage } from './fullpage.js';
13
- export { HtmlPageDataProcessor } from './htmlpagedataprocessor.js';
14
- export { EmptyBlock } from './emptyblock.js';
15
- export type { GeneralHtmlSupportConfig, GHSFullPageConfig, GHSCssSanitizeOutput } from './generalhtmlsupportconfig.js';
16
- export { CodeBlockElementSupport } from './integrations/codeblock.js';
17
- export { CustomElementSupport } from './integrations/customelement.js';
18
- export { ListElementSupport } from './integrations/list.js';
19
- export { DualContentModelElementSupport } from './integrations/dualcontent.js';
20
- export { HeadingElementSupport } from './integrations/heading.js';
21
- export { ImageElementSupport } from './integrations/image.js';
22
- export { MediaEmbedElementSupport } from './integrations/mediaembed.js';
23
- export { ScriptElementSupport } from './integrations/script.js';
24
- export { StyleElementSupport } from './integrations/style.js';
25
- export { TableElementSupport } from './integrations/table.js';
26
- export { IframeElementSupport } from './integrations/iframe.js';
27
- export { HorizontalLineElementSupport } from './integrations/horizontalline.js';
28
- export { viewToModelObjectConverter as _viewToModelObjectContentHtmlSupportConverter, toObjectWidgetConverter as _toObjectWidgetHtmlSupportConverter, createObjectView as _createObjectHtmlSupportView, viewToAttributeInlineConverter as _viewToAttributeInlineHtmlSupportConverter, emptyInlineModelElementToViewConverter as _emptyInlineModelElementToViewHtmlSupportConverter, attributeToViewInlineConverter as _attributeToInlineHtmlSupportConverter, viewToModelBlockAttributeConverter as _viewToModelBlockAttributeHtmlSupportConverter, modelToViewBlockAttributeConverter as _modelToViewBlockAttributeHtmlSupportConverter } from './converters.js';
29
- export { getDescendantElement as _getHtmlSupportDescendantElement } from './integrations/integrationutils.js';
30
- export { defaultConfig as _HTML_SUPPORT_SCHEMA_DEFINITIONS } from './schemadefinitions.js';
31
- export { updateViewAttributes as _updateHtmlSupportViewAttributes, setViewAttributes as _setHtmlSupportViewAttributes, removeViewAttributes as _removeHtmlSupportViewAttributes, mergeViewElementAttributes as _mergeHtmlSupportViewElementAttributes, modifyGhsAttribute as _modifyHtmlSupportGhsAttribute, toPascalCase as _toHtmlSupportPascalCase, getHtmlAttributeName as _getHtmlSupportAttributeName, type GHSViewAttributes } from './utils.js';
32
- import './augmentation.js';
6
+ * @module html-support
7
+ */
8
+ export { GeneralHtmlSupport } from "./generalhtmlsupport.js";
9
+ export { DataFilter, type HtmlSupportDataFilterRegisterEvent } from "./datafilter.js";
10
+ export { DataSchema, type HtmlSupportDataSchemaBlockElementDefinition, type HtmlSupportDataSchemaDefinition, type HtmlSupportDataSchemaInlineElementDefinition } from "./dataschema.js";
11
+ export { HtmlComment, type HtmlCommentData } from "./htmlcomment.js";
12
+ export { FullPage } from "./fullpage.js";
13
+ export { HtmlPageDataProcessor } from "./htmlpagedataprocessor.js";
14
+ export { EmptyBlock } from "./emptyblock.js";
15
+ export type { GeneralHtmlSupportConfig, GHSFullPageConfig, GHSCssSanitizeOutput } from "./generalhtmlsupportconfig.js";
16
+ export { CodeBlockElementSupport } from "./integrations/codeblock.js";
17
+ export { CustomElementSupport } from "./integrations/customelement.js";
18
+ export { ListElementSupport } from "./integrations/list.js";
19
+ export { DualContentModelElementSupport } from "./integrations/dualcontent.js";
20
+ export { HeadingElementSupport } from "./integrations/heading.js";
21
+ export { ImageElementSupport } from "./integrations/image.js";
22
+ export { MediaEmbedElementSupport } from "./integrations/mediaembed.js";
23
+ export { ScriptElementSupport } from "./integrations/script.js";
24
+ export { StyleElementSupport } from "./integrations/style.js";
25
+ export { TableElementSupport } from "./integrations/table.js";
26
+ export { IframeElementSupport } from "./integrations/iframe.js";
27
+ export { HorizontalLineElementSupport } from "./integrations/horizontalline.js";
28
+ export { viewToModelObjectConverter as _viewToModelObjectContentHtmlSupportConverter, toObjectWidgetConverter as _toObjectWidgetHtmlSupportConverter, createObjectView as _createObjectHtmlSupportView, viewToAttributeInlineConverter as _viewToAttributeInlineHtmlSupportConverter, emptyInlineModelElementToViewConverter as _emptyInlineModelElementToViewHtmlSupportConverter, attributeToViewInlineConverter as _attributeToInlineHtmlSupportConverter, viewToModelBlockAttributeConverter as _viewToModelBlockAttributeHtmlSupportConverter, modelToViewBlockAttributeConverter as _modelToViewBlockAttributeHtmlSupportConverter } from "./converters.js";
29
+ export { getDescendantElement as _getHtmlSupportDescendantElement } from "./integrations/integrationutils.js";
30
+ export { defaultConfig as _HTML_SUPPORT_SCHEMA_DEFINITIONS } from "./schemadefinitions.js";
31
+ export { updateViewAttributes as _updateHtmlSupportViewAttributes, setViewAttributes as _setHtmlSupportViewAttributes, removeViewAttributes as _removeHtmlSupportViewAttributes, mergeViewElementAttributes as _mergeHtmlSupportViewElementAttributes, modifyGhsAttribute as _modifyHtmlSupportGhsAttribute, toPascalCase as _toHtmlSupportPascalCase, getHtmlAttributeName as _getHtmlSupportAttributeName, type GHSViewAttributes } from "./utils.js";
32
+ import "./augmentation.js";