croco-html 20.4.2 → 20.4.4
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/fesm2022/croco-html.mjs +34 -1
- package/fesm2022/croco-html.mjs.map +1 -1
- package/index.d.ts +8 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -51,6 +51,10 @@ interface TagItem {
|
|
|
51
51
|
isCustom: boolean;
|
|
52
52
|
}
|
|
53
53
|
interface HtmlBodyTag {
|
|
54
|
+
/**
|
|
55
|
+
* Уникальный идентификатор для отслеживания изменений.
|
|
56
|
+
*/
|
|
57
|
+
trackingId: string;
|
|
54
58
|
tagDescription: TagItem;
|
|
55
59
|
innerHtml: string;
|
|
56
60
|
attributes: Object;
|
|
@@ -196,7 +200,7 @@ declare class TextTagHtmlMarkupTagService implements IMarkUpTagService {
|
|
|
196
200
|
bodyTagToHtmlStringConverter(bodyTag: HtmlBodyTag): string;
|
|
197
201
|
extractBlockFromHtmlElement(elem: HTMLElement, options: CrocoHtmlOptions): InterfaceBlock;
|
|
198
202
|
toBodyTag(data: InterfaceBlock): HtmlBodyTag;
|
|
199
|
-
getDefaultValue(
|
|
203
|
+
getDefaultValue(_: IVisualEditorProps): HtmlBodyTag;
|
|
200
204
|
}
|
|
201
205
|
|
|
202
206
|
declare class ExternalVideoTagService implements IMarkUpTagService {
|
|
@@ -907,6 +911,7 @@ interface IVisualEditorLogger {
|
|
|
907
911
|
onAdd(tags: HtmlBodyTag[]): void;
|
|
908
912
|
onChange(tag: HtmlBodyTag, index: number): void;
|
|
909
913
|
onRemove(index: number): void;
|
|
914
|
+
onHtmlChanged(html: string): void;
|
|
910
915
|
}
|
|
911
916
|
|
|
912
917
|
declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
@@ -1012,12 +1017,14 @@ declare class NullVisualEditorLogger implements IVisualEditorLogger {
|
|
|
1012
1017
|
onAdd(_: HtmlBodyTag[]): void;
|
|
1013
1018
|
onChange(_: HtmlBodyTag, _2: number): void;
|
|
1014
1019
|
onRemove(_: number): void;
|
|
1020
|
+
onHtmlChanged(html: string): void;
|
|
1015
1021
|
}
|
|
1016
1022
|
|
|
1017
1023
|
declare class ConsoleVisualEditorLogger implements IVisualEditorLogger {
|
|
1018
1024
|
onAdd(tags: HtmlBodyTag[]): void;
|
|
1019
1025
|
onChange(tag: HtmlBodyTag, index: number): void;
|
|
1020
1026
|
onRemove(index: number): void;
|
|
1027
|
+
onHtmlChanged(html: string): void;
|
|
1021
1028
|
}
|
|
1022
1029
|
|
|
1023
1030
|
declare class MainEditorComponent implements OnInit, AfterContentChecked, AfterViewInit {
|