croco-html 2.28.0 → 2.29.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.
@@ -10,7 +10,7 @@ export declare class ImageEditorComponent implements OnInit, OnDestroy {
10
10
  hasImageError: boolean;
11
11
  searchOrEdit: string;
12
12
  requests: IMediaRequest[];
13
- imageMaxHeight: any;
13
+ imageMaxHeight: number;
14
14
  isShowMediaRequest: boolean;
15
15
  private unsubscribe;
16
16
  tag: HtmlBodyTag;
@@ -11,7 +11,7 @@ export declare class FileImageTagViewComponent implements OnInit, OnDestroy {
11
11
  imageSrc: string;
12
12
  requests: IMediaRequest[];
13
13
  private unsubscribe;
14
- imageMaxHeight: any;
14
+ imageMaxHeight: number;
15
15
  constructor(screenWidthService: ScreenWidthService, _options: CrocoHtmlOptions);
16
16
  getMediaRequests(screenMediaRequest: string): IMediaRequest[];
17
17
  ngOnInit(): void;
@@ -30,5 +30,5 @@ export declare class ImageMethods {
30
30
  static mediaRequestStringToArrayParser: (data: string) => IMediaRequest[];
31
31
  static createMediaRequestValue(arr: string[], attribute: string): number;
32
32
  static mediaRequestsArrayToStringParser: (data: IMediaRequest[]) => string;
33
- static screenSizeChanged: (screenSize: number, requests: IMediaRequest[]) => void;
33
+ static getMaxImageHeightByScreenSize(screenSize: number, requests: IMediaRequest[]): number | null;
34
34
  }
package/lib/index.d.ts CHANGED
@@ -2,7 +2,8 @@ import { ImageEditorComponent } from "./components";
2
2
  import { MainEditorBlockComponent } from "./components";
3
3
  import { MainEditorComponent } from "./components";
4
4
  import { FileIdSelectComponent } from "./components";
5
- import { XmlTagHeaderTextViewComponent } from "./components";
5
+ import { XmlTagHeaderInnerTextViewComponent } from "./components";
6
+ import { XmlTagHtmlViewComponent } from "./components";
6
7
  import { XmlTagRichTextViewComponent } from "./components";
7
8
  import { XmlTagTableViewComponent } from "./components";
8
9
  import { XmlTagViewComponent } from "./components";
@@ -10,13 +11,12 @@ import { VisualEditorComponent } from './components';
10
11
  import { AddFilesBtnComponent } from './components';
11
12
  import { XmlTagExternalVideoComponent } from "./components";
12
13
  import { HtmlRawEditorComponent } from "./components";
13
- import { MatTabsModule } from '@angular/material/tabs';
14
+ import { MatFormFieldModule } from '@angular/material/form-field';
14
15
  import { RichTextToHtmlPipe, TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe } from "./pipes";
15
16
  import { FileImageTagViewComponent, UploadFilesBtnComponent } from "./components";
16
17
  import { HtmlRawViewComponent } from "./components";
17
- import { HtmlViewComponent } from "./components";
18
- export declare const EditorComponents: (typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof MainEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof HtmlRawEditorComponent)[];
19
- export declare const XmlComponents: (typeof XmlTagViewComponent | typeof HtmlViewComponent | typeof XmlTagExternalVideoComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagHeaderTextViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent)[];
20
- export declare const CrocoPipes: (typeof ToPreviewHtmlPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewPipe | typeof RichTextToHtmlPipe | typeof TagToSpanPipe)[];
21
- export declare const CrocoHtmlDeclarations: (typeof ToPreviewHtmlPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewPipe | typeof XmlTagViewComponent | typeof HtmlViewComponent | typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof MainEditorComponent | typeof FileIdSelectComponent | typeof XmlTagExternalVideoComponent | typeof ImageEditorComponent | typeof HtmlRawEditorComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagHeaderTextViewComponent | typeof UploadFilesBtnComponent | typeof RichTextToHtmlPipe | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof TagToSpanPipe)[];
22
- export declare const MaterialModules: (typeof MatTabsModule)[];
18
+ export declare const EditorComponents: (typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof MainEditorComponent)[];
19
+ export declare const XmlComponents: (typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof FileImageTagViewComponent | 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 UploadFilesBtnComponent | typeof AddFilesBtnComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof RichTextToHtmlPipe | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagViewComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof ToPreviewPipe | typeof MainEditorComponent | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
22
+ export declare const MaterialModules: (typeof MatFormFieldModule)[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "croco-html",
3
- "version": "2.28.0",
3
+ "version": "2.29.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.4",
6
6
  "@angular/core": "^17.3.4",