croco-html 20.0.3 → 20.1.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
@@ -341,6 +341,10 @@ interface CrocoHtmlOptions {
341
341
  * @returns
342
342
  */
343
343
  customWidgetClickHandler: (editor: VisualEditorComponent) => void;
344
+ /**
345
+ * Кастомные кнопки для добавления тега
346
+ */
347
+ editorCustomAddTagButtons: TagItem[] | null | undefined;
344
348
  }
345
349
  interface ICustomTagViewRender {
346
350
  /**
@@ -439,7 +443,6 @@ declare class AddFilesBtnComponent {
439
443
  postFilesStarted: EventEmitter<FilePostingStarted>;
440
444
  fakeBtn: UploadFilesBtnComponent;
441
445
  fileIds: number[];
442
- constructor();
443
446
  filesTagsReady: EventEmitter<HtmlBodyTag[]>;
444
447
  postFilesStartedEventHandler(data: FilePostingStarted): void;
445
448
  filesUploadedPublicHandler(data: PublicFilesUploadResponse): void;
@@ -784,6 +787,7 @@ declare class XmlExtensions {
784
787
  }
785
788
 
786
789
  declare class ExternalVideoEditorComponent implements OnInit {
790
+ private readonly _cdr;
787
791
  tag: HtmlBodyTag;
788
792
  presentOrEdit: boolean;
789
793
  protected readonly ExternalVideoSupportedTypes: typeof ExternalVideoSupportedTypes;
@@ -799,6 +803,7 @@ declare class ExternalVideoEditorComponent implements OnInit {
799
803
 
800
804
  declare class HtmlRawEditorComponent implements OnChanges {
801
805
  private readonly _sanitizer;
806
+ private readonly _cdr;
802
807
  tag: HtmlBodyTag;
803
808
  presentOrEdit: boolean;
804
809
  safeHtml: SafeHtml;
@@ -828,6 +833,7 @@ declare class ImageEditorComponent implements OnInit, OnDestroy {
828
833
  imageMaxWidth: number;
829
834
  isShowMediaRequest: boolean;
830
835
  private unsubscribe;
836
+ private readonly _cdr;
831
837
  tag: HtmlBodyTag;
832
838
  presentOrEdit: boolean;
833
839
  onErrorHandler(): void;
@@ -850,7 +856,7 @@ declare class ImageEditorComponent implements OnInit, OnDestroy {
850
856
  type SpriteIdsType = 'align-center' | 'align-left' | 'align-right' | 'move-icon' | 'source-code-tab' | 'tag-button-audio-player' | 'tag-button-button' | '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';
851
857
 
852
858
  declare class VisualEditorComponent implements OnInit, AfterViewInit {
853
- private readonly _cdref;
859
+ private readonly _cdr;
854
860
  private readonly _options;
855
861
  textArea: ElementRef;
856
862
  imageUploadBtn: UploadFilesBtnComponent;
@@ -889,7 +895,7 @@ declare class VisualEditorComponent implements OnInit, AfterViewInit {
889
895
  bodyTags: HtmlBodyTag[];
890
896
  saveBodyTags: HtmlBodyTag[];
891
897
  useCustomWidgetsButton: boolean;
892
- constructor(_cdref: ChangeDetectorRef, _options: CrocoHtmlOptions);
898
+ constructor(_cdr: ChangeDetectorRef, _options: CrocoHtmlOptions);
893
899
  ngAfterViewInit(): void;
894
900
  resetTextStyle(): void;
895
901
  drop(event: CdkDragDrop<HtmlBodyTag[]>): void;
@@ -950,6 +956,7 @@ declare class MainEditorBlockComponent implements OnDestroy {
950
956
  private readonly _options;
951
957
  textTags: string[];
952
958
  private unsubscribe;
959
+ private readonly _cdr;
953
960
  set tag(data: HtmlBodyTag);
954
961
  _tag: HtmlBodyTag;
955
962
  _tagService: TagEditorService;
@@ -987,6 +994,7 @@ declare class TextEditorComponent implements OnDestroy {
987
994
  private unsubscribe;
988
995
  _tag: HtmlBodyTag;
989
996
  _tagService: TagEditorService;
997
+ private readonly _cdr;
990
998
  set tagService(data: TagEditorService);
991
999
  presentOrEdit: boolean;
992
1000
  TextAlignment: typeof TextAlignment;
@@ -1013,6 +1021,7 @@ declare class CustomWidgetIconComponent implements OnInit {
1013
1021
  viewContainerRef: ViewContainerRef;
1014
1022
  useDynamicComponent: boolean;
1015
1023
  dynamicContainerRef: ComponentRef<any>;
1024
+ private readonly _cdr;
1016
1025
  set tagName(tagName: string);
1017
1026
  constructor(_options: CrocoHtmlOptions);
1018
1027
  getIconComponent(): i0.Type<any>;
@@ -1188,6 +1197,7 @@ declare class HtmlRawViewComponent implements OnChanges {
1188
1197
  declare class FileImageTagViewComponent implements OnInit, OnDestroy {
1189
1198
  private readonly screenWidthService;
1190
1199
  private readonly _options;
1200
+ private readonly _cdr;
1191
1201
  set item(item: InterfaceBlock);
1192
1202
  isEditor: boolean;
1193
1203
  imageSrc: string;
@@ -1283,6 +1293,7 @@ declare class ErrorBannerComponent {
1283
1293
 
1284
1294
  declare class VkVideoPlayerComponent {
1285
1295
  private sanitizer;
1296
+ private readonly _cdr;
1286
1297
  set link(link: string);
1287
1298
  safeUrl: SafeResourceUrl;
1288
1299
  constructor(sanitizer: DomSanitizer);
@@ -1292,6 +1303,7 @@ declare class VkVideoPlayerComponent {
1292
1303
 
1293
1304
  declare class YoutubeVideoPlayerComponent {
1294
1305
  private sanitizer;
1306
+ private readonly _cdr;
1295
1307
  set link(link: string);
1296
1308
  safeUrl: SafeResourceUrl;
1297
1309
  constructor(sanitizer: DomSanitizer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "croco-html",
3
- "version": "20.0.3",
3
+ "version": "20.1.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.3.15",
6
6
  "@angular/core": "^20.3.15",