croco-html 20.4.0 → 20.4.1
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 +56 -18
- package/fesm2022/croco-html.mjs.map +1 -1
- package/index.d.ts +23 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -903,6 +903,12 @@ declare class ImageEditorComponent implements OnInit, OnDestroy {
|
|
|
903
903
|
|
|
904
904
|
type SpriteIdsType = 'align-center' | 'align-left' | 'align-right' | 'move-icon' | 'source-code-tab' | 'tag-button-audio-player' | 'tag-button-button' | 'tag-button-croco-link' | 'tag-button-custom-widget' | 'tag-button-download-file-button' | 'tag-button-external-video' | 'tag-button-file-image' | 'tag-button-html-raw' | 'tag-button-text' | 'viewer-tab' | 'visual-editor-tab';
|
|
905
905
|
|
|
906
|
+
interface IVisualEditorLogger {
|
|
907
|
+
onAdd(tags: HtmlBodyTag[]): void;
|
|
908
|
+
onChange(tag: HtmlBodyTag, index: number): void;
|
|
909
|
+
onRemove(index: number): void;
|
|
910
|
+
}
|
|
911
|
+
|
|
906
912
|
declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
907
913
|
private readonly _cdr;
|
|
908
914
|
private readonly _options;
|
|
@@ -921,6 +927,7 @@ declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
|
921
927
|
}[];
|
|
922
928
|
isTagAdditionStarted: boolean;
|
|
923
929
|
showMarkUp: boolean;
|
|
930
|
+
logger: IVisualEditorLogger;
|
|
924
931
|
tags: TagItem[];
|
|
925
932
|
videoPlayers: {
|
|
926
933
|
type: string;
|
|
@@ -948,6 +955,7 @@ declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
|
948
955
|
resetTextStyle(): void;
|
|
949
956
|
drop(event: CdkDragDrop<HtmlBodyTag[]>): void;
|
|
950
957
|
addTag(tag: HtmlBodyTag): void;
|
|
958
|
+
addTags(tags: HtmlBodyTag[]): void;
|
|
951
959
|
onTagChangedHandler(data: HtmlBodyTag, index: number): void;
|
|
952
960
|
onTagRemovedHandler(index: number): void;
|
|
953
961
|
recalculateHtml(): void;
|
|
@@ -969,7 +977,7 @@ declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
|
969
977
|
setTagButton(tagName: string): SpriteIdsType;
|
|
970
978
|
setAlignButton(type: string): SpriteIdsType;
|
|
971
979
|
static ɵfac: i0.ɵɵFactoryDeclaration<VisualEditorComponent, never>;
|
|
972
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VisualEditorComponent, "croco-visual-editor", never, { "showMarkUp": { "alias": "showMarkUp"; "required": false; }; "useHtmlRaw": { "alias": "useHtmlRaw"; "required": false; }; "html": { "alias": "html"; "required": false; }; }, { "html": "html"; "onHtmlChanged": "onHtmlChanged"; "rendered": "rendered"; }, never, never, true, never>;
|
|
980
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VisualEditorComponent, "croco-visual-editor", never, { "showMarkUp": { "alias": "showMarkUp"; "required": false; }; "logger": { "alias": "logger"; "required": false; }; "useHtmlRaw": { "alias": "useHtmlRaw"; "required": false; }; "html": { "alias": "html"; "required": false; }; }, { "html": "html"; "onHtmlChanged": "onHtmlChanged"; "rendered": "rendered"; }, never, never, true, never>;
|
|
973
981
|
}
|
|
974
982
|
|
|
975
983
|
declare class MainEditorComponent implements OnInit, AfterContentChecked, AfterViewInit {
|
|
@@ -1236,6 +1244,18 @@ declare class HtmlPageDataController {
|
|
|
1236
1244
|
set(name: string, data: object): void;
|
|
1237
1245
|
}
|
|
1238
1246
|
|
|
1247
|
+
declare class NullVisualEditorLogger implements IVisualEditorLogger {
|
|
1248
|
+
onAdd(_: HtmlBodyTag[]): void;
|
|
1249
|
+
onChange(_: HtmlBodyTag, _2: number): void;
|
|
1250
|
+
onRemove(_: number): void;
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
declare class ConsoleVisualEditorLogger implements IVisualEditorLogger {
|
|
1254
|
+
onAdd(tags: HtmlBodyTag[]): void;
|
|
1255
|
+
onChange(tag: HtmlBodyTag, index: number): void;
|
|
1256
|
+
onRemove(index: number): void;
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1239
1259
|
declare class XmlTagViewComponent {
|
|
1240
1260
|
private readonly _options;
|
|
1241
1261
|
data: InterfaceBlock[];
|
|
@@ -1418,5 +1438,5 @@ declare class CrocoHtmlModule {
|
|
|
1418
1438
|
|
|
1419
1439
|
declare const CrocoHtmlOptionsToken = "croco-html-options";
|
|
1420
1440
|
|
|
1421
|
-
export { AddFilesBtnComponent, AngularMaterialTableMethods, AudioEditorComponent, AudioMethods, AudioPlayerTagViewComponent, BodyTagsExtensions, BootstrapTableMethods, ButtonTagDataConsts, ButtonTagService, CrocoHtmlFileOptionsService, CrocoHtmlModule, CrocoHtmlOptionsToken, CustomWidgetEditorComponent, CustomWidgetIconComponent, CustomWidgetTagDataConsts, CustomWidgetTagService, DefinedCustomEditorBlockComponent, DefinedCustomTagViewComponent, DownloadButtonTagDataConsts, DownloadButtonTagService, ExternalVideoEditorComponent, ExternalVideoPlayers, ExternalVideoSupportedTypes, ExternalVideoTagDataConsts, ExternalVideoTagService, FileAudioTagDataConsts, FileIdSelectComponent, FileImageTagDataConsts, FileImageTagService, FileImageTagViewComponent, FileType, HtmlPageDataController, HtmlRawEditorComponent, HtmlRawTagDataConsts, HtmlRawTagService, HtmlRawViewComponent, HtmlViewComponent, HtmlViewController, ImageEditorComponent, ImageMethods, LinkEditorComponent, LinkTagAttrs, LinkTagConsts, LinkTagService, MainEditorBlockComponent, MainEditorComponent, TableBuilder, TableMethods, TableTypes, TagBuildExtensions, TagEditorService, TagToSpanPipe, TextAlignment, TextEditorComponent, TextSimpleMethods, TextTag, TextTagDataConsts, TextTagHtmlMarkupTagService, TextTags, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe, UploadFilesBtnComponent, VisualEditorComponent, XmlExtensions, XmlTagCustomWidgetComponent, XmlTagExternalVideoComponent, XmlTagHeaderInnerTextViewComponent, XmlTagHeaderTextViewComponent, XmlTagHtmlViewComponent, XmlTagTextViewComponent, XmlTagViewComponent };
|
|
1422
|
-
export type { AngularMaterialTableData, BaseApiResponse, ButtonTag, ButtonTagData, CommonFileInfoResultModel, CrocoHtmlEditorFileOptions, CrocoHtmlImageOptions, CrocoHtmlOptions, CustomWidgetTag, CustomWidgetTagData, DownloadButtonTag, DownloadButtonTagData, ExternalVideoTag, ExternalVideoTagData, FileAudioTag, FileAudioTagData, FileImageTag, FileImageTagData, FileInfoModel, FilePostingStarted, FileRelationModel, FileSimpleModel, FileUnifiedModel, GenericTextTag, GetListResult, GetListSearchModel, HtmlBodyTag, HtmlRawTag, HtmlRawTagData, IHorizontalAlignmentExtractionResult, IImageMediaRequest, IMarkUpTagService, ITagEditorViewRender, ITagViewViewRender, IVisualEditorProps, ImageRestrictions, InterfaceBlock, LinkTagData, SearchFilesRequest, SearchQuestionsFormData, SimpleTextTagData, TableData, TableHeaderData, TableRowColumnData, TableRowData, TableTagData, TagItem };
|
|
1441
|
+
export { AddFilesBtnComponent, AngularMaterialTableMethods, AudioEditorComponent, AudioMethods, AudioPlayerTagViewComponent, BodyTagsExtensions, BootstrapTableMethods, ButtonTagDataConsts, ButtonTagService, ConsoleVisualEditorLogger, CrocoHtmlFileOptionsService, CrocoHtmlModule, CrocoHtmlOptionsToken, CustomWidgetEditorComponent, CustomWidgetIconComponent, CustomWidgetTagDataConsts, CustomWidgetTagService, DefinedCustomEditorBlockComponent, DefinedCustomTagViewComponent, DownloadButtonTagDataConsts, DownloadButtonTagService, ExternalVideoEditorComponent, ExternalVideoPlayers, ExternalVideoSupportedTypes, ExternalVideoTagDataConsts, ExternalVideoTagService, FileAudioTagDataConsts, FileIdSelectComponent, FileImageTagDataConsts, FileImageTagService, FileImageTagViewComponent, FileType, HtmlPageDataController, HtmlRawEditorComponent, HtmlRawTagDataConsts, HtmlRawTagService, HtmlRawViewComponent, HtmlViewComponent, HtmlViewController, ImageEditorComponent, ImageMethods, LinkEditorComponent, LinkTagAttrs, LinkTagConsts, LinkTagService, MainEditorBlockComponent, MainEditorComponent, NullVisualEditorLogger, TableBuilder, TableMethods, TableTypes, TagBuildExtensions, TagEditorService, TagToSpanPipe, TextAlignment, TextEditorComponent, TextSimpleMethods, TextTag, TextTagDataConsts, TextTagHtmlMarkupTagService, TextTags, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe, UploadFilesBtnComponent, VisualEditorComponent, XmlExtensions, XmlTagCustomWidgetComponent, XmlTagExternalVideoComponent, XmlTagHeaderInnerTextViewComponent, XmlTagHeaderTextViewComponent, XmlTagHtmlViewComponent, XmlTagTextViewComponent, XmlTagViewComponent };
|
|
1442
|
+
export type { AngularMaterialTableData, BaseApiResponse, ButtonTag, ButtonTagData, CommonFileInfoResultModel, CrocoHtmlEditorFileOptions, CrocoHtmlImageOptions, CrocoHtmlOptions, CustomWidgetTag, CustomWidgetTagData, DownloadButtonTag, DownloadButtonTagData, ExternalVideoTag, ExternalVideoTagData, FileAudioTag, FileAudioTagData, FileImageTag, FileImageTagData, FileInfoModel, FilePostingStarted, FileRelationModel, FileSimpleModel, FileUnifiedModel, GenericTextTag, GetListResult, GetListSearchModel, HtmlBodyTag, HtmlRawTag, HtmlRawTagData, IHorizontalAlignmentExtractionResult, IImageMediaRequest, IMarkUpTagService, ITagEditorViewRender, ITagViewViewRender, IVisualEditorLogger, IVisualEditorProps, ImageRestrictions, InterfaceBlock, LinkTagData, SearchFilesRequest, SearchQuestionsFormData, SimpleTextTagData, TableData, TableHeaderData, TableRowColumnData, TableRowData, TableTagData, TagItem };
|