croco-html 4.10.1 → 4.10.2
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.
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
3
|
+
import { Router } from "@angular/router";
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class HtmlRawViewComponent implements OnChanges {
|
|
5
6
|
private readonly _sanitizer;
|
|
7
|
+
private readonly router;
|
|
6
8
|
rawHtml: string;
|
|
7
9
|
safeHtml: SafeHtml;
|
|
8
|
-
constructor(_sanitizer: DomSanitizer);
|
|
10
|
+
constructor(_sanitizer: DomSanitizer, router: Router);
|
|
9
11
|
ngOnChanges(changes: SimpleChanges): void;
|
|
12
|
+
handleLink(event: MouseEvent): void;
|
|
10
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlRawViewComponent, never>;
|
|
11
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<HtmlRawViewComponent, "croco-html-raw-view", never, { "rawHtml": { "alias": "rawHtml"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
15
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { MainEditorBlockComponent } from "./components";
|
|
|
3
3
|
import { MainEditorComponent } from "./components";
|
|
4
4
|
import { TextEditorComponent } from "./components";
|
|
5
5
|
import { FileIdSelectComponent } from "./components";
|
|
6
|
-
import { XmlTagHeaderInnerTextViewComponent } from "./components";
|
|
7
6
|
import { XmlTagHtmlViewComponent } from "./components";
|
|
7
|
+
import { XmlTagTextViewComponent } from "./components";
|
|
8
8
|
import { XmlTagViewComponent } from "./components";
|
|
9
9
|
import { CustomWidgetEditorComponent } from "./components";
|
|
10
10
|
import { VisualEditorComponent } from './components';
|
|
@@ -16,8 +16,8 @@ import { TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe } f
|
|
|
16
16
|
import { FileImageTagViewComponent, AudioPlayerTagViewComponent, UploadFilesBtnComponent } from "./components";
|
|
17
17
|
import { HtmlRawViewComponent } from "./components";
|
|
18
18
|
import { XmlTagCustomWidgetComponent } from "./components";
|
|
19
|
-
export declare const EditorComponents: (typeof
|
|
20
|
-
export declare const XmlComponents: (typeof
|
|
21
|
-
export declare const CrocoPipes: (typeof
|
|
22
|
-
export declare const CrocoHtmlDeclarations: (typeof
|
|
19
|
+
export declare const EditorComponents: (typeof VisualEditorComponent | typeof MainEditorComponent | typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof CustomWidgetIconComponent | typeof TextEditorComponent | typeof ImageEditorComponent | typeof HtmlRawEditorComponent | typeof CustomWidgetEditorComponent | typeof DefinedCustomEditorBlockComponent | typeof FileIdSelectComponent)[];
|
|
20
|
+
export declare const XmlComponents: (typeof XmlTagTextViewComponent | typeof HtmlRawViewComponent | typeof FileImageTagViewComponent | typeof AudioPlayerTagViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagCustomWidgetComponent | typeof DefinedCustomTagViewComponent | typeof XmlTagViewComponent)[];
|
|
21
|
+
export declare const CrocoPipes: (typeof ToPreviewHtmlPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewPipe | typeof TagToSpanPipe)[];
|
|
22
|
+
export declare const CrocoHtmlDeclarations: (typeof ToPreviewHtmlPipe | typeof ToHtmlBodyTagsPipe | typeof VisualEditorComponent | typeof MainEditorComponent | typeof ToPreviewPipe | typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof CustomWidgetIconComponent | typeof UploadFilesBtnComponent | typeof TextEditorComponent | typeof ImageEditorComponent | typeof HtmlRawEditorComponent | typeof CustomWidgetEditorComponent | typeof DefinedCustomEditorBlockComponent | typeof FileIdSelectComponent | typeof XmlTagTextViewComponent | typeof HtmlRawViewComponent | typeof FileImageTagViewComponent | typeof AudioPlayerTagViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagCustomWidgetComponent | typeof DefinedCustomTagViewComponent | typeof XmlTagViewComponent | typeof TagToSpanPipe)[];
|
|
23
23
|
export declare const MaterialModules: (typeof MatTabsModule)[];
|
package/lib/options/index.d.ts
CHANGED
|
@@ -73,6 +73,21 @@ export interface CrocoHtmlImageOptions {
|
|
|
73
73
|
* @param imageData - данные изображения
|
|
74
74
|
*/
|
|
75
75
|
onImageClick?: (imageData: FileImageTagData) => void;
|
|
76
|
+
/**
|
|
77
|
+
* Опции для визуального редактора изображений.
|
|
78
|
+
*/
|
|
79
|
+
visualEditorOptions?: {
|
|
80
|
+
/**
|
|
81
|
+
* Максимальная высота изображения в режиме редактора в пикселях (например, 200).
|
|
82
|
+
* Если указано, изображения в ImageEditorComponent не будут превышать эту высоту.
|
|
83
|
+
*/
|
|
84
|
+
editorModeImageMaxHeight?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Максимальная высота изображения в режиме предпросмотра в пикселях (например, 200).
|
|
87
|
+
* Если указано, изображения в FileImageTagViewComponent не будут превышать эту высоту.
|
|
88
|
+
*/
|
|
89
|
+
previewModeImageMaxHeight?: number;
|
|
90
|
+
};
|
|
76
91
|
}
|
|
77
92
|
/**
|
|
78
93
|
* Опции для работы с файлами в редакторе разметки
|