croco-html 20.2.3 → 20.3.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.
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Type, EventEmitter, OnInit, OnDestroy, ElementRef, OnChanges, SimpleChanges, AfterViewInit, ChangeDetectorRef, AfterContentChecked, ViewContainerRef, ComponentRef, PipeTransform } from '@angular/core';
2
+ import { Type, EventEmitter, OnInit, OnDestroy, ElementRef, AfterViewInit, ChangeDetectorRef, AfterContentChecked, SimpleChanges, ViewContainerRef, ComponentRef, OnChanges, PipeTransform } from '@angular/core';
3
3
  import { HttpClient, HttpEvent } from '@angular/common/http';
4
4
  import * as rxjs from 'rxjs';
5
5
  import { Observable, BehaviorSubject, Subject } from 'rxjs';
@@ -838,17 +838,19 @@ declare class ExternalVideoEditorComponent implements OnInit {
838
838
  static ɵcmp: i0.ɵɵComponentDeclaration<ExternalVideoEditorComponent, "croco-html-external-video-editor", never, { "tag": { "alias": "tag"; "required": true; }; "presentOrEdit": { "alias": "presentOrEdit"; "required": true; }; }, {}, never, never, true, never>;
839
839
  }
840
840
 
841
- declare class HtmlRawEditorComponent implements OnChanges {
842
- private readonly _sanitizer;
841
+ declare class HtmlRawEditorComponent {
843
842
  private readonly _cdr;
844
- tag: HtmlBodyTag;
843
+ private readonly _destroyRef;
844
+ private readonly _sanitizer;
845
+ _data: HtmlBodyTag;
846
+ _tagService: TagEditorService;
845
847
  presentOrEdit: boolean;
846
- safeHtml: SafeHtml;
847
- constructor(_sanitizer: DomSanitizer);
848
- ngOnChanges(changes: SimpleChanges): void;
849
- onSafeHtmlChange(): void;
848
+ safeHtml: SafeHtml | null;
849
+ _tag: HtmlBodyTag;
850
+ set tagService(data: TagEditorService);
851
+ onHtmlChanged(): void;
850
852
  static ɵfac: i0.ɵɵFactoryDeclaration<HtmlRawEditorComponent, never>;
851
- static ɵcmp: i0.ɵɵComponentDeclaration<HtmlRawEditorComponent, "croco-html-html-raw-editor", never, { "tag": { "alias": "tag"; "required": true; }; "presentOrEdit": { "alias": "presentOrEdit"; "required": true; }; }, {}, never, never, true, never>;
853
+ static ɵcmp: i0.ɵɵComponentDeclaration<HtmlRawEditorComponent, "croco-html-html-raw-editor", never, { "tagService": { "alias": "tagService"; "required": true; }; }, {}, never, never, true, never>;
852
854
  }
853
855
 
854
856
  declare class ScreenWidthService {
@@ -1012,7 +1014,8 @@ declare class MainEditorBlockComponent implements OnDestroy {
1012
1014
 
1013
1015
  declare class DefinedCustomEditorBlockComponent implements OnInit, OnDestroy {
1014
1016
  private readonly _options;
1015
- private unsubscribe;
1017
+ private readonly _cdr;
1018
+ private readonly _destroyRef;
1016
1019
  viewContainerRef: ViewContainerRef;
1017
1020
  useDynamicComponent: boolean;
1018
1021
  dynamicContainerRef: ComponentRef<any>;
@@ -1020,7 +1023,6 @@ declare class DefinedCustomEditorBlockComponent implements OnInit, OnDestroy {
1020
1023
  _tag: HtmlBodyTag;
1021
1024
  set tagService(data: TagEditorService);
1022
1025
  constructor(_options: CrocoHtmlOptions);
1023
- getCustomComponent(): i0.Type<any>;
1024
1026
  ngOnInit(): void;
1025
1027
  ngOnDestroy(): void;
1026
1028
  static ɵfac: i0.ɵɵFactoryDeclaration<DefinedCustomEditorBlockComponent, never>;
@@ -1069,6 +1071,22 @@ declare class CustomWidgetIconComponent implements OnInit {
1069
1071
  static ɵcmp: i0.ɵɵComponentDeclaration<CustomWidgetIconComponent, "croco-html-custom-widget-icon", never, { "tagName": { "alias": "tagName"; "required": true; }; }, {}, never, never, true, never>;
1070
1072
  }
1071
1073
 
1074
+ declare class LinkEditorComponent {
1075
+ private readonly _destroyRef;
1076
+ private readonly _cdr;
1077
+ linkData: LinkTagData;
1078
+ isValid: boolean;
1079
+ errorMessage: string;
1080
+ _data: HtmlBodyTag;
1081
+ _tagService: TagEditorService;
1082
+ presentOrEdit: boolean;
1083
+ set tagService(data: TagEditorService);
1084
+ validate(): void;
1085
+ saveTag(): void;
1086
+ static ɵfac: i0.ɵɵFactoryDeclaration<LinkEditorComponent, never>;
1087
+ static ɵcmp: i0.ɵɵComponentDeclaration<LinkEditorComponent, "croco-html-file-link-editor", never, { "tagService": { "alias": "tagService"; "required": true; }; }, {}, never, never, true, never>;
1088
+ }
1089
+
1072
1090
  interface SearchQuestionsFormData {
1073
1091
  q: string;
1074
1092
  }
@@ -1225,11 +1243,13 @@ declare class HtmlRawViewComponent {
1225
1243
  private readonly router;
1226
1244
  private readonly _cdr;
1227
1245
  set data(item: InterfaceBlock);
1246
+ _dataController: HtmlPageDataController;
1247
+ set dataController(controller: HtmlPageDataController);
1228
1248
  safeHtml: SafeHtml | null;
1229
1249
  constructor(_sanitizer: DomSanitizer, router: Router);
1230
1250
  handleLink(event: MouseEvent): void;
1231
1251
  static ɵfac: i0.ɵɵFactoryDeclaration<HtmlRawViewComponent, never>;
1232
- static ɵcmp: i0.ɵɵComponentDeclaration<HtmlRawViewComponent, "croco-html-raw-view", never, { "data": { "alias": "data"; "required": true; }; }, {}, never, never, true, never>;
1252
+ static ɵcmp: i0.ɵɵComponentDeclaration<HtmlRawViewComponent, "croco-html-raw-view", never, { "data": { "alias": "data"; "required": true; }; "dataController": { "alias": "dataController"; "required": true; }; }, {}, never, never, true, never>;
1233
1253
  }
1234
1254
 
1235
1255
  declare class FileImageTagViewComponent implements OnInit, OnDestroy {
@@ -1386,5 +1406,5 @@ declare class CrocoHtmlModule {
1386
1406
 
1387
1407
  declare const CrocoHtmlOptionsToken = "croco-html-options";
1388
1408
 
1389
- 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, LinkTagAttrs, LinkTagConsts, LinkTagService, MainEditorBlockComponent, MainEditorComponent, TableBuilder, TableMethods, TableTypes, TagEditorService, TagToSpanPipe, TextAlignment, TextEditorComponent, TextSimpleMethods, TextTag, TextTagDataConsts, TextTagHtmlMarkupTagService, TextTags, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe, UploadFilesBtnComponent, VisualEditorComponent, XmlExtensions, XmlTagCustomWidgetComponent, XmlTagExternalVideoComponent, XmlTagHeaderInnerTextViewComponent, XmlTagHeaderTextViewComponent, XmlTagHtmlViewComponent, XmlTagTextViewComponent, XmlTagViewComponent };
1409
+ 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, TagEditorService, TagToSpanPipe, TextAlignment, TextEditorComponent, TextSimpleMethods, TextTag, TextTagDataConsts, TextTagHtmlMarkupTagService, TextTags, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe, UploadFilesBtnComponent, VisualEditorComponent, XmlExtensions, XmlTagCustomWidgetComponent, XmlTagExternalVideoComponent, XmlTagHeaderInnerTextViewComponent, XmlTagHeaderTextViewComponent, XmlTagHtmlViewComponent, XmlTagTextViewComponent, XmlTagViewComponent };
1390
1410
  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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "croco-html",
3
- "version": "20.2.3",
3
+ "version": "20.3.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.3.15",
6
6
  "@angular/core": "^20.3.15",