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.
- package/esm2022/lib/components/editor/external-video-block/youtube-video-player/youtube-video-player.component.mjs +3 -3
- package/esm2022/lib/components/editor/image-editor/image-editor.component.mjs +10 -8
- package/esm2022/lib/components/file-id-select/file-id-select.component.mjs +3 -3
- package/esm2022/lib/components/xml-tags/file-image-tag-view/file-image-tag-view.component.mjs +30 -8
- package/esm2022/lib/extensions/BodyTagsExtensions.mjs +7 -5
- package/esm2022/lib/extensions/ImageMethods.mjs +4 -1
- package/fesm2022/croco-html.mjs +70 -45
- package/fesm2022/croco-html.mjs.map +1 -1
- package/lib/components/editor/image-editor/image-editor.component.d.ts +2 -1
- package/lib/components/xml-tags/file-image-tag-view/file-image-tag-view.component.d.ts +11 -3
- package/lib/index.d.ts +3 -3
- package/package.json +1 -1
|
@@ -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,
|
|
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
|
-
|
|
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
|
|
19
|
-
export declare const XmlComponents: (typeof
|
|
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
|
|
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)[];
|