croco-html 2.31.0 → 2.33.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.
@@ -1,10 +1,19 @@
1
+ import { ComponentRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
1
2
  import { CustomWidgetTagData } from "../../../extensions";
3
+ import { CrocoHtmlOptions } from "../../../options";
2
4
  import * as i0 from "@angular/core";
3
- export declare class XmlTagCustomWidgetComponent {
5
+ export declare class XmlTagCustomWidgetComponent implements OnInit, OnDestroy {
6
+ private readonly _options;
7
+ viewContainerRef: ViewContainerRef;
4
8
  set tagData(value: CustomWidgetTagData);
5
9
  get tagData(): CustomWidgetTagData;
6
10
  _tagData: CustomWidgetTagData;
7
11
  tooltipData: string;
12
+ useDynamicComponent: boolean;
13
+ dynamicContainerRef: ComponentRef<any>;
14
+ constructor(_options: CrocoHtmlOptions);
15
+ ngOnInit(): void;
16
+ ngOnDestroy(): void;
8
17
  static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagCustomWidgetComponent, never>;
9
18
  static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagCustomWidgetComponent, "croco-html-xml-tag-custom-widget", never, { "tagData": { "alias": "tagData"; "required": false; }; }, {}, never, never, true, never>;
10
19
  }
package/lib/index.d.ts CHANGED
@@ -16,8 +16,8 @@ import { RichTextToHtmlPipe, TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPip
16
16
  import { FileImageTagViewComponent, UploadFilesBtnComponent } from "./components";
17
17
  import { HtmlRawViewComponent } from "./components";
18
18
  import { XmlTagCustomWidgetComponent } from "./components";
19
- export declare const EditorComponents: (typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof ImageEditorComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof MainEditorComponent)[];
20
- export declare const XmlComponents: (typeof XmlTagCustomWidgetComponent | typeof XmlTagExternalVideoComponent | typeof HtmlRawViewComponent | typeof XmlTagHeaderTextViewComponent | typeof FileImageTagViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagViewComponent | typeof XmlTagTableViewComponent | typeof XmlTagRichTextViewComponent)[];
21
- export declare const CrocoPipes: (typeof ToPreviewHtmlPipe | typeof ToPreviewPipe | typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe)[];
22
- export declare const CrocoHtmlDeclarations: (typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof XmlTagCustomWidgetComponent | typeof ImageEditorComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof XmlTagExternalVideoComponent | typeof HtmlRawViewComponent | typeof XmlTagHeaderTextViewComponent | typeof FileImageTagViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagViewComponent | typeof UploadFilesBtnComponent | typeof ToPreviewHtmlPipe | typeof ToPreviewPipe | typeof MainEditorComponent | typeof XmlTagTableViewComponent | typeof XmlTagRichTextViewComponent | typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe)[];
19
+ export declare const EditorComponents: (typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof MainEditorComponent)[];
20
+ export declare const XmlComponents: (typeof XmlTagCustomWidgetComponent | typeof HtmlRawViewComponent | typeof XmlTagHeaderTextViewComponent | typeof FileImageTagViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent)[];
21
+ export declare const CrocoPipes: (typeof RichTextToHtmlPipe | typeof ToPreviewPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
22
+ export declare const CrocoHtmlDeclarations: (typeof XmlTagCustomWidgetComponent | typeof HtmlRawViewComponent | typeof XmlTagHeaderTextViewComponent | typeof FileImageTagViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagViewComponent | typeof UploadFilesBtnComponent | typeof AddFilesBtnComponent | typeof RichTextToHtmlPipe | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof ToPreviewPipe | typeof MainEditorComponent | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
23
23
  export declare const MaterialModules: (typeof MatFormFieldModule)[];
@@ -1,5 +1,10 @@
1
1
  import { IMediaRequest } from "../extensions";
2
+ import { Type } from "@angular/core";
2
3
  export interface CrocoHtmlOptions {
3
4
  publicImageResizedUrlFormat: string;
4
5
  globalMediaRequests?: IMediaRequest[];
6
+ /**
7
+ * Компонент для рендера кастомных виджетов
8
+ */
9
+ customWidgetRendererComponent?: Type<any>;
5
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "croco-html",
3
- "version": "2.31.0",
3
+ "version": "2.33.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.4",
6
6
  "@angular/core": "^17.3.4",