croco-html 2.16.0 → 2.18.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.
@@ -6,6 +6,7 @@ import { ScreenWidthService } from "../../../services/screen-width.service";
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class ImageEditorComponent implements OnInit, OnDestroy {
8
8
  private readonly _options;
9
+ private readonly screenWidthService;
9
10
  hasImageError: boolean;
10
11
  searchOrEdit: string;
11
12
  requests: IMediaRequest[];
@@ -15,7 +16,7 @@ export declare class ImageEditorComponent implements OnInit, OnDestroy {
15
16
  tag: HtmlBodyTag;
16
17
  onErrorHandler(): void;
17
18
  onTagUpdated: EventEmitter<HtmlBodyTag>;
18
- constructor(_options: CrocoHtmlOptions, screenWidth: ScreenWidthService);
19
+ constructor(_options: CrocoHtmlOptions, screenWidthService: ScreenWidthService);
19
20
  getSrc(): string;
20
21
  hasFileId(): boolean;
21
22
  onFileIdChanged(fileId: number): void;
@@ -1,10 +1,18 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { InterfaceBlock } from '../../../extensions/InterfaceBlock';
3
+ import { IMediaRequest } from '../../../extensions';
4
+ import { ScreenWidthService } from "../../../services/screen-width.service";
3
5
  import * as i0 from "@angular/core";
4
- export declare class FileImageTagViewComponent implements OnInit {
5
- item: InterfaceBlock;
6
+ export declare class FileImageTagViewComponent implements OnInit, OnDestroy {
7
+ private readonly screenWidthService;
8
+ set item(item: InterfaceBlock);
6
9
  imageSrc: string;
10
+ requests: IMediaRequest[];
11
+ private unsubscribe;
12
+ imageMaxHeight: any;
13
+ constructor(screenWidthService: ScreenWidthService);
7
14
  ngOnInit(): void;
15
+ ngOnDestroy(): void;
8
16
  static ɵfac: i0.ɵɵFactoryDeclaration<FileImageTagViewComponent, never>;
9
17
  static ɵcmp: i0.ɵɵComponentDeclaration<FileImageTagViewComponent, "croco-html-file-image-tag-view", never, { "item": { "alias": "item"; "required": false; }; }, {}, never, never, true, never>;
10
18
  }
package/lib/index.d.ts CHANGED
@@ -15,8 +15,8 @@ import { MatBadgeModule } from '@angular/material/badge';
15
15
  import { RichTextToHtmlPipe, TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe } from "./pipes";
16
16
  import { FileImageTagViewComponent, UploadFilesBtnComponent } from "./components";
17
17
  import { HtmlRawViewComponent } from "./components/xml-tags/html-raw-view/html-raw-view.component";
18
- export declare const EditorComponents: (typeof FileIdSelectComponent | typeof AddFilesBtnComponent | typeof ImageEditorComponent | typeof MainEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof HtmlRawEditorComponent)[];
19
- export declare const XmlComponents: (typeof XmlTagExternalVideoComponent | typeof XmlTagTableViewComponent | typeof XmlTagViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagHeaderTextViewComponent | typeof HtmlRawViewComponent | typeof FileImageTagViewComponent)[];
18
+ export declare const EditorComponents: (typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof MainEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent)[];
19
+ export declare const XmlComponents: (typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagHeaderTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagViewComponent | typeof XmlTagTableViewComponent | typeof XmlTagRichTextViewComponent)[];
20
20
  export declare const CrocoPipes: (typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToPreviewPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
21
- export declare const CrocoHtmlDeclarations: (typeof FileIdSelectComponent | typeof UploadFilesBtnComponent | typeof AddFilesBtnComponent | typeof XmlTagExternalVideoComponent | typeof ImageEditorComponent | typeof MainEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof HtmlRawEditorComponent | typeof XmlTagTableViewComponent | typeof XmlTagViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagHeaderTextViewComponent | typeof HtmlRawViewComponent | typeof FileImageTagViewComponent | typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToPreviewPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
21
+ export declare const CrocoHtmlDeclarations: (typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagHeaderTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagViewComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof MainEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof XmlTagTableViewComponent | typeof XmlTagRichTextViewComponent | typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToPreviewPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe | typeof UploadFilesBtnComponent)[];
22
22
  export declare const MaterialModules: (typeof MatBadgeModule)[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "croco-html",
3
- "version": "2.16.0",
3
+ "version": "2.18.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.4",
6
6
  "@angular/core": "^17.3.4",