croco-html 2.17.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
@@ -2,7 +2,7 @@ import { ImageEditorComponent } from "./components/editor/image-editor/image-edi
2
2
  import { MainEditorBlockComponent } from "./components/editor/main-editor-block/main-editor-block.component";
3
3
  import { MainEditorComponent } from "./components/editor/main-editor/main-editor.component";
4
4
  import { FileIdSelectComponent } from "./components/file-id-select/file-id-select.component";
5
- import { XmlTagHeaderInnerTextViewComponent } from "./components/xml-tags/xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component";
5
+ import { XmlTagHeaderTextViewComponent } from "./components/xml-tags/xml-tag-header-text-view/xml-tag-header-text-view.component";
6
6
  import { XmlTagHtmlViewComponent } from "./components/xml-tags/xml-tag-html-view/xml-tag-html-view.component";
7
7
  import { XmlTagRichTextViewComponent } from "./components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component";
8
8
  import { XmlTagTableViewComponent } from "./components/xml-tags/xml-tag-table-view/xml-tag-table-view.component";
@@ -11,12 +11,12 @@ import { VisualEditorComponent } from './components/editor/visual-editor/visual-
11
11
  import { AddFilesBtnComponent } from './components/add-files-btn/add-files-btn.component';
12
12
  import { XmlTagExternalVideoComponent } from "./components/xml-tags/xml-tag-external-video/xml-tag-external-video.component";
13
13
  import { HtmlRawEditorComponent } from "./components/editor/html-raw-editor/html-raw-editor.component";
14
- import { MatFormFieldModule } from '@angular/material/form-field';
14
+ 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 ImageEditorComponent | typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof MainEditorComponent)[];
19
- export declare const XmlComponents: (typeof FileImageTagViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof HtmlRawViewComponent | typeof XmlTagViewComponent)[];
20
- export declare const CrocoPipes: (typeof RichTextToHtmlPipe | typeof ToPreviewPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
21
- export declare const CrocoHtmlDeclarations: (typeof FileImageTagViewComponent | typeof FileIdSelectComponent | typeof XmlTagExternalVideoComponent | typeof ImageEditorComponent | typeof UploadFilesBtnComponent | typeof AddFilesBtnComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof RichTextToHtmlPipe | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof HtmlRawViewComponent | typeof XmlTagViewComponent | typeof HtmlRawEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof ToPreviewPipe | typeof MainEditorComponent | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
22
- export declare const MaterialModules: (typeof MatFormFieldModule)[];
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
+ export declare const CrocoPipes: (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
+ export declare const MaterialModules: (typeof MatBadgeModule)[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "croco-html",
3
- "version": "2.17.0",
3
+ "version": "2.18.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.4",
6
6
  "@angular/core": "^17.3.4",