croco-html 2.1.1 → 2.3.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.
Files changed (38) hide show
  1. package/esm2022/lib/components/editor/image-editor/image-editor.component.mjs +11 -6
  2. package/esm2022/lib/components/editor/main-editor/main-editor.component.mjs +1 -1
  3. package/esm2022/lib/components/editor/visual-editor/visual-editor.component.mjs +11 -6
  4. package/esm2022/lib/components/file-id-select/file-id-select.component.mjs +11 -6
  5. package/esm2022/lib/components/html-view/html-view.component.mjs +3 -11
  6. package/esm2022/lib/components/xml-tags/file-image-tag-view/file-image-tag-view.component.mjs +3 -16
  7. package/esm2022/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.mjs +3 -11
  8. package/esm2022/lib/consts/index.mjs +2 -0
  9. package/esm2022/lib/extensions/BodyTagsExtensions.mjs +1 -1
  10. package/esm2022/lib/extensions/HtmlExtractionMethods.mjs +1 -1
  11. package/esm2022/lib/extensions/ImageMethods.mjs +10 -13
  12. package/esm2022/lib/extensions/TableMethods.mjs +1 -1
  13. package/esm2022/lib/extensions/index.mjs +1 -3
  14. package/esm2022/lib/models/models.mjs +1 -1
  15. package/esm2022/lib/pipes/ToHtmlBodyTagsPipe.mjs +12 -5
  16. package/esm2022/lib/pipes/ToPreviewHtmlPipe.mjs +13 -6
  17. package/esm2022/lib/pipes/to-preview.pipe.mjs +12 -8
  18. package/esm2022/public-api.mjs +2 -1
  19. package/fesm2022/croco-html.mjs +71 -74
  20. package/fesm2022/croco-html.mjs.map +1 -1
  21. package/lib/components/editor/image-editor/image-editor.component.d.ts +3 -1
  22. package/lib/components/editor/visual-editor/visual-editor.component.d.ts +4 -2
  23. package/lib/components/file-id-select/file-id-select.component.d.ts +4 -2
  24. package/lib/components/html-view/html-view.component.d.ts +1 -3
  25. package/lib/components/xml-tags/file-image-tag-view/file-image-tag-view.component.d.ts +1 -3
  26. package/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.d.ts +1 -3
  27. package/lib/consts/index.d.ts +1 -0
  28. package/lib/extensions/BodyTagsExtensions.d.ts +2 -2
  29. package/lib/extensions/HtmlExtractionMethods.d.ts +18 -19
  30. package/lib/extensions/ImageMethods.d.ts +5 -4
  31. package/lib/extensions/TableMethods.d.ts +3 -3
  32. package/lib/index.d.ts +9 -8
  33. package/lib/models/models.d.ts +0 -4
  34. package/lib/pipes/ToHtmlBodyTagsPipe.d.ts +3 -0
  35. package/lib/pipes/ToPreviewHtmlPipe.d.ts +4 -2
  36. package/lib/pipes/to-preview.pipe.d.ts +3 -0
  37. package/package.json +1 -1
  38. package/public-api.d.ts +1 -0
@@ -1,13 +1,15 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { HtmlBodyTag } from '../../../models/models';
3
+ import { CrocoHtmlOptions } from '../../../extensions/HtmlExtractionMethods';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class ImageEditorComponent implements OnInit {
6
+ private readonly _options;
5
7
  hasImageError: boolean;
6
8
  searchOrEdit: string;
7
9
  tag: HtmlBodyTag;
8
10
  onErrorHandler(): void;
9
11
  onTagUpdated: EventEmitter<HtmlBodyTag>;
10
- constructor();
12
+ constructor(_options: CrocoHtmlOptions);
11
13
  getSrc(): string;
12
14
  hasFileId(): boolean;
13
15
  onFileIdChanged(fileId: number): void;
@@ -3,9 +3,11 @@ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnInit } fr
3
3
  import { TagItem, HtmlBodyTag } from '../../../models/models';
4
4
  import { FilePostingStarted } from '../../upload-files-btn/upload-files-btn.component';
5
5
  import { EAlignments } from "./DefaultAligments";
6
+ import { CrocoHtmlOptions } from '../../../extensions/HtmlExtractionMethods';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class VisualEditorComponent implements OnInit, AfterViewInit {
8
- private _cdref;
9
+ private readonly _cdref;
10
+ private readonly _options;
9
11
  textArea: ElementRef;
10
12
  isLoading: boolean;
11
13
  loadingText: string;
@@ -30,7 +32,7 @@ export declare class VisualEditorComponent implements OnInit, AfterViewInit {
30
32
  rendered: EventEmitter<boolean>;
31
33
  bodyTags: HtmlBodyTag[];
32
34
  saveBodyTags: HtmlBodyTag[];
33
- constructor(_cdref: ChangeDetectorRef);
35
+ constructor(_cdref: ChangeDetectorRef, _options: CrocoHtmlOptions);
34
36
  ngAfterViewInit(): void;
35
37
  ngAfterContentChecked(): void;
36
38
  addTag(): void;
@@ -1,18 +1,20 @@
1
1
  import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { FileNameAndIdModel, FilesQueryService } from '../../services/files-query.service';
3
+ import { CrocoHtmlOptions } from '../../extensions/HtmlExtractionMethods';
3
4
  import * as i0 from "@angular/core";
4
5
  export interface SearchQuestionsFormData {
5
6
  q: string;
6
7
  }
7
8
  export declare class FileIdSelectComponent implements OnInit, OnChanges {
8
- private _fileService;
9
+ private readonly _fileService;
10
+ private readonly _options;
9
11
  q: string;
10
12
  labelText: string;
11
13
  fileId: number;
12
14
  loading: boolean;
13
15
  files: FileNameAndIdModel[];
14
16
  onFileIdChanged: EventEmitter<number>;
15
- constructor(_fileService: FilesQueryService);
17
+ constructor(_fileService: FilesQueryService, _options: CrocoHtmlOptions);
16
18
  onModelChanged(fileId: number): void;
17
19
  getSrc(fileId: number): string;
18
20
  ngOnInit(): void;
@@ -1,8 +1,6 @@
1
- import { ITagViewOptions } from '../../models/models';
2
1
  import * as i0 from "@angular/core";
3
2
  export declare class HtmlViewComponent {
4
3
  html: string;
5
- viewOptions: ITagViewOptions;
6
4
  static ɵfac: i0.ɵɵFactoryDeclaration<HtmlViewComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<HtmlViewComponent, "croco-html-view", never, { "html": { "alias": "html"; "required": false; }; "viewOptions": { "alias": "viewOptions"; "required": false; }; }, {}, never, never, false, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<HtmlViewComponent, "croco-html-view", never, { "html": { "alias": "html"; "required": false; }; }, {}, never, never, false, never>;
8
6
  }
@@ -1,12 +1,10 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { InterfaceBlock } from '../../../extensions/InterfaceBlock';
3
- import { ITagViewOptions } from '../../../models/models';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class FileImageTagViewComponent implements OnInit {
6
5
  item: InterfaceBlock;
7
- viewOptions: ITagViewOptions;
8
6
  imageSrc: string;
9
7
  ngOnInit(): void;
10
8
  static ɵfac: i0.ɵɵFactoryDeclaration<FileImageTagViewComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<FileImageTagViewComponent, "croco-html-file-image-tag-view", never, { "item": { "alias": "item"; "required": false; }; "viewOptions": { "alias": "viewOptions"; "required": false; }; }, {}, never, never, false, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileImageTagViewComponent, "croco-html-file-image-tag-view", never, { "item": { "alias": "item"; "required": false; }; }, {}, never, never, false, never>;
12
10
  }
@@ -1,10 +1,8 @@
1
1
  import { InterfaceBlock } from "../../../extensions/InterfaceBlock";
2
- import { ITagViewOptions } from '../../../models/models';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class XmlTagViewComponent {
5
- viewOptions: ITagViewOptions;
6
4
  data: InterfaceBlock[];
7
5
  constructor();
8
6
  static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagViewComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagViewComponent, "croco-html-xml-tag-view", never, { "viewOptions": { "alias": "viewOptions"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagViewComponent, "croco-html-xml-tag-view", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
10
8
  }
@@ -0,0 +1 @@
1
+ export declare const CrocoHtmlOptionsToken = "croco-html-options";
@@ -1,11 +1,11 @@
1
1
  import { HtmlBodyTag } from "../models/models";
2
- import { HtmlExtractionOptions } from "./HtmlExtractionMethods";
2
+ import { CrocoHtmlOptions } from "./HtmlExtractionMethods";
3
3
  import { InterfaceBlock } from "./InterfaceBlock";
4
4
  export declare class BodyTagsExtensions {
5
5
  static getDescription(tagName: string): string;
6
6
  static toHtml(bodyTags: HtmlBodyTag[]): string;
7
7
  static imageTagToHtml(imageTag: HtmlBodyTag): string;
8
- static getBodyTags(html: string, options: HtmlExtractionOptions): HtmlBodyTag[];
8
+ static getBodyTags(html: string, options: CrocoHtmlOptions): HtmlBodyTag[];
9
9
  static sanitizeInnerHtml(html: string): string;
10
10
  static toBodyTag(data: InterfaceBlock): HtmlBodyTag;
11
11
  }
@@ -1,13 +1,12 @@
1
1
  import { InterfaceBlock } from "./InterfaceBlock";
2
2
  import { GenericTextTag } from "./TextSimpleMethods";
3
- export interface HtmlExtractionOptions {
4
- useCustomDomain: boolean;
5
- domain: string;
3
+ export interface CrocoHtmlOptions {
4
+ publicImageResizedUrlFormat: string;
6
5
  }
7
6
  export declare class HtmlExtractionMethods {
8
7
  static ExtractHeaderTag(elem: HTMLElement, tagName: string): GenericTextTag;
9
8
  static Extractors: {
10
- [x: string]: ((elem: HTMLElement, options: HtmlExtractionOptions) => import("./ImageMethods").FileImageTag) | ((elem: HTMLElement, options: HtmlExtractionOptions) => {
9
+ [x: string]: ((elem: HTMLElement, options: CrocoHtmlOptions) => import("./ImageMethods").FileImageTag) | ((elem: HTMLElement, options: CrocoHtmlOptions) => {
11
10
  type: string;
12
11
  data: import("./TableMethods").TableData;
13
12
  validationResult: import("./TableMethods").BaseApiResponse;
@@ -26,15 +25,15 @@ export declare class HtmlExtractionMethods {
26
25
  data: import("./TableMethods").TableData;
27
26
  validationResult: import("./TableMethods").BaseApiResponse;
28
27
  bootstrapHtml: string;
29
- }) | ((elem: HTMLElement, options: HtmlExtractionOptions) => import("./TextMethods").RichTextData) | ((elem: HTMLElement, options: HtmlExtractionOptions) => {
28
+ }) | ((elem: HTMLElement, options: CrocoHtmlOptions) => import("./TextMethods").RichTextData) | ((elem: HTMLElement, options: CrocoHtmlOptions) => {
30
29
  type: string;
31
30
  data: {
32
31
  innerHTML: string;
33
32
  };
34
- }) | ((elem: HTMLElement, options: HtmlExtractionOptions) => GenericTextTag) | ((elem: HTMLElement, options: HtmlExtractionOptions) => import("./VideoMethods").ExternalVideoTag);
35
- TEXT: (elem: HTMLElement, options: HtmlExtractionOptions) => import("./TextSimpleMethods").SimpleTextTag;
36
- "FILE-IMAGE": (elem: HTMLElement, options: HtmlExtractionOptions) => import("./ImageMethods").FileImageTag;
37
- TABLE: (elem: HTMLElement, options: HtmlExtractionOptions) => {
33
+ }) | ((elem: HTMLElement, options: CrocoHtmlOptions) => GenericTextTag) | ((elem: HTMLElement, options: CrocoHtmlOptions) => import("./VideoMethods").ExternalVideoTag);
34
+ TEXT: (elem: HTMLElement, options: CrocoHtmlOptions) => import("./TextSimpleMethods").SimpleTextTag;
35
+ "FILE-IMAGE": (elem: HTMLElement, options: CrocoHtmlOptions) => import("./ImageMethods").FileImageTag;
36
+ TABLE: (elem: HTMLElement, options: CrocoHtmlOptions) => {
38
37
  type: string;
39
38
  data: import("./TableMethods").TableData;
40
39
  validationResult: import("./TableMethods").BaseApiResponse;
@@ -54,20 +53,20 @@ export declare class HtmlExtractionMethods {
54
53
  validationResult: import("./TableMethods").BaseApiResponse;
55
54
  bootstrapHtml: string;
56
55
  };
57
- "RICH-TEXT": (elem: HTMLElement, options: HtmlExtractionOptions) => import("./TextMethods").RichTextData;
58
- "HTML-RAW": (elem: HTMLElement, options: HtmlExtractionOptions) => {
56
+ "RICH-TEXT": (elem: HTMLElement, options: CrocoHtmlOptions) => import("./TextMethods").RichTextData;
57
+ "HTML-RAW": (elem: HTMLElement, options: CrocoHtmlOptions) => {
59
58
  type: string;
60
59
  data: {
61
60
  innerHTML: string;
62
61
  };
63
62
  };
64
- H1: (elem: HTMLElement, options: HtmlExtractionOptions) => GenericTextTag;
65
- H2: (elem: HTMLElement, options: HtmlExtractionOptions) => GenericTextTag;
66
- H3: (elem: HTMLElement, options: HtmlExtractionOptions) => GenericTextTag;
67
- H4: (elem: HTMLElement, options: HtmlExtractionOptions) => GenericTextTag;
68
- H5: (elem: HTMLElement, options: HtmlExtractionOptions) => GenericTextTag;
69
- H6: (elem: HTMLElement, options: HtmlExtractionOptions) => GenericTextTag;
63
+ H1: (elem: HTMLElement, options: CrocoHtmlOptions) => GenericTextTag;
64
+ H2: (elem: HTMLElement, options: CrocoHtmlOptions) => GenericTextTag;
65
+ H3: (elem: HTMLElement, options: CrocoHtmlOptions) => GenericTextTag;
66
+ H4: (elem: HTMLElement, options: CrocoHtmlOptions) => GenericTextTag;
67
+ H5: (elem: HTMLElement, options: CrocoHtmlOptions) => GenericTextTag;
68
+ H6: (elem: HTMLElement, options: CrocoHtmlOptions) => GenericTextTag;
70
69
  };
71
- static transformHtmlElementToBlocks(element: HTMLElement, options: HtmlExtractionOptions): InterfaceBlock[];
72
- static transformHtmlStringToBlocks(value: string, options: HtmlExtractionOptions): InterfaceBlock[];
70
+ static transformHtmlElementToBlocks(element: HTMLElement, options: CrocoHtmlOptions): InterfaceBlock[];
71
+ static transformHtmlStringToBlocks(value: string, options: CrocoHtmlOptions): InterfaceBlock[];
73
72
  }
@@ -1,4 +1,4 @@
1
- import { HtmlExtractionOptions } from "./HtmlExtractionMethods";
1
+ import { CrocoHtmlOptions } from "./HtmlExtractionMethods";
2
2
  export declare class FileImageTagDataConsts {
3
3
  static TagName: string;
4
4
  static FileIdAttrName: string;
@@ -12,7 +12,8 @@ export interface FileImageTagData {
12
12
  fileId: number;
13
13
  }
14
14
  export declare class ImageMethods {
15
- static buildUrl(fileId: number, options: HtmlExtractionOptions): string;
16
- static buildSmallUrl(fileId: number, options: HtmlExtractionOptions): string;
17
- static ExtractImage(elem: HTMLElement, options: HtmlExtractionOptions): FileImageTag;
15
+ static buildUrl(fileId: number, sizeType: string, options: CrocoHtmlOptions): string;
16
+ static buildSmallUrl(fileId: number, options: CrocoHtmlOptions): string;
17
+ static buildMediumUrl(fileId: number, options: CrocoHtmlOptions): string;
18
+ static ExtractImage(elem: HTMLElement, options: CrocoHtmlOptions): FileImageTag;
18
19
  }
@@ -1,4 +1,4 @@
1
- import { HtmlExtractionOptions } from './HtmlExtractionMethods';
1
+ import { CrocoHtmlOptions } from './HtmlExtractionMethods';
2
2
  import { InterfaceBlock } from "./InterfaceBlock";
3
3
  export interface BaseApiResponse {
4
4
  isSucceeded: boolean;
@@ -33,7 +33,7 @@ export declare class TableTypes {
33
33
  static readonly TableRowColumn = "table-row-column";
34
34
  }
35
35
  export declare class TableMethods {
36
- static getTableFromHtmlTag(tableTag: HTMLTableElement, options: HtmlExtractionOptions): {
36
+ static getTableFromHtmlTag(tableTag: HTMLTableElement, options: CrocoHtmlOptions): {
37
37
  type: string;
38
38
  data: TableData;
39
39
  validationResult: BaseApiResponse;
@@ -55,5 +55,5 @@ export declare class TableMethods {
55
55
  };
56
56
  static checkTable(tableData: TableData): BaseApiResponse;
57
57
  static getHeader(tableTag: HTMLTableElement): TableHeaderData;
58
- static getTableRows(tableTag: HTMLTableElement, options: HtmlExtractionOptions): Array<TableRowData>;
58
+ static getTableRows(tableTag: HTMLTableElement, options: CrocoHtmlOptions): Array<TableRowData>;
59
59
  }
package/lib/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
+ import { ImageEditorComponent } from "./components/editor/image-editor/image-editor.component";
1
2
  import { MainEditorBlockComponent } from "./components/editor/main-editor-block/main-editor-block.component";
2
3
  import { MainEditorComponent } from "./components/editor/main-editor/main-editor.component";
3
4
  import { FileIdSelectComponent } from "./components/file-id-select/file-id-select.component";
4
- 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";
5
6
  import { XmlTagHtmlViewComponent } from "./components/xml-tags/xml-tag-html-view/xml-tag-html-view.component";
6
7
  import { XmlTagRichTextViewComponent } from "./components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component";
7
8
  import { XmlTagTableViewComponent } from "./components/xml-tags/xml-tag-table-view/xml-tag-table-view.component";
@@ -10,12 +11,12 @@ import { VisualEditorComponent } from './components/editor/visual-editor/visual-
10
11
  import { AddFilesBtnComponent } from './components/add-files-btn/add-files-btn.component';
11
12
  import { XmlTagExternalVideoComponent } from "./components/xml-tags/xml-tag-external-video/xml-tag-external-video.component";
12
13
  import { HtmlRawEditorComponent } from "./components/editor/html-raw-editor/html-raw-editor.component";
13
- import { MatButtonModule } from '@angular/material/button';
14
- import { RichTextToHtmlPipe, TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe } from "./pipes";
14
+ import { MatBadgeModule } from '@angular/material/badge';
15
+ import { RichTextToHtmlPipe, TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe } from "./pipes";
15
16
  import { FileImageTagViewComponent, UploadFilesBtnComponent } from "./components";
16
17
  import { HtmlRawViewComponent } from "./components/xml-tags/html-raw-view/html-raw-view.component";
17
- export declare const EditorComponents: (typeof VisualEditorComponent | typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof MainEditorComponent | typeof MainEditorBlockComponent | typeof FileIdSelectComponent)[];
18
- export declare const XmlComponents: (typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof XmlTagViewComponent | typeof HtmlRawViewComponent | typeof FileImageTagViewComponent)[];
19
- export declare const CrocoPipes: (typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
20
- export declare const CrocoHtmlDeclarations: (typeof VisualEditorComponent | typeof UploadFilesBtnComponent | typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof MainEditorComponent | typeof MainEditorBlockComponent | typeof FileIdSelectComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof XmlTagViewComponent | typeof HtmlRawViewComponent | typeof FileImageTagViewComponent | typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
21
- export declare const MaterialModules: (typeof MatButtonModule)[];
18
+ export declare const EditorComponents: (typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof ImageEditorComponent | typeof HtmlRawEditorComponent | typeof AddFilesBtnComponent | typeof MainEditorComponent | typeof FileIdSelectComponent)[];
19
+ export declare const XmlComponents: (typeof XmlTagViewComponent | typeof XmlTagTableViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagHeaderTextViewComponent | typeof XmlTagExternalVideoComponent | typeof HtmlRawViewComponent | typeof FileImageTagViewComponent)[];
20
+ export declare const CrocoPipes: (typeof ToHtmlBodyTagsPipe | typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToPreviewPipe | typeof ToPreviewHtmlPipe)[];
21
+ export declare const CrocoHtmlDeclarations: (typeof ToHtmlBodyTagsPipe | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof ImageEditorComponent | typeof HtmlRawEditorComponent | typeof AddFilesBtnComponent | typeof XmlTagViewComponent | typeof MainEditorComponent | typeof FileIdSelectComponent | typeof XmlTagTableViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagHeaderTextViewComponent | typeof XmlTagExternalVideoComponent | typeof HtmlRawViewComponent | typeof FileImageTagViewComponent | typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToPreviewPipe | typeof ToPreviewHtmlPipe | typeof UploadFilesBtnComponent)[];
22
+ export declare const MaterialModules: (typeof MatBadgeModule)[];
@@ -12,7 +12,3 @@ export interface AngularMaterialTableData {
12
12
  displayedColumns: string[];
13
13
  data: object[];
14
14
  }
15
- export interface ITagViewOptions {
16
- useCustomImageUrlRenderer: boolean;
17
- renderImageUrl(fileId: number, sizeType: string): string;
18
- }
@@ -1,7 +1,10 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  import { HtmlBodyTag } from '../models/models';
3
+ import { CrocoHtmlOptions } from '../extensions/HtmlExtractionMethods';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class ToHtmlBodyTagsPipe implements PipeTransform {
6
+ private readonly _options;
7
+ constructor(_options: CrocoHtmlOptions);
5
8
  transform(value: string): HtmlBodyTag[];
6
9
  static ɵfac: i0.ɵɵFactoryDeclaration<ToHtmlBodyTagsPipe, never>;
7
10
  static ɵpipe: i0.ɵɵPipeDeclaration<ToHtmlBodyTagsPipe, "tohtmlbodytags", false>;
@@ -1,9 +1,11 @@
1
1
  import { PipeTransform } from '@angular/core';
2
- import { HtmlExtractionOptions } from '../extensions/HtmlExtractionMethods';
2
+ import { CrocoHtmlOptions } from '../extensions/HtmlExtractionMethods';
3
3
  import { InterfaceBlock } from "../extensions/InterfaceBlock";
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ToPreviewHtmlPipe implements PipeTransform {
6
- transform(value: string, options: HtmlExtractionOptions): InterfaceBlock[];
6
+ private readonly _options;
7
+ constructor(_options: CrocoHtmlOptions);
8
+ transform(value: string): InterfaceBlock[];
7
9
  static ɵfac: i0.ɵɵFactoryDeclaration<ToPreviewHtmlPipe, never>;
8
10
  static ɵpipe: i0.ɵɵPipeDeclaration<ToPreviewHtmlPipe, "topreviewhtml", false>;
9
11
  }
@@ -1,7 +1,10 @@
1
1
  import { PipeTransform } from '@angular/core';
2
+ import { CrocoHtmlOptions } from '../extensions/HtmlExtractionMethods';
2
3
  import { InterfaceBlock } from "../extensions/InterfaceBlock";
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class ToPreviewPipe implements PipeTransform {
6
+ private readonly _options;
7
+ constructor(_options: CrocoHtmlOptions);
5
8
  transform(value: string): InterfaceBlock[];
6
9
  static ɵfac: i0.ɵɵFactoryDeclaration<ToPreviewPipe, never>;
7
10
  static ɵpipe: i0.ɵɵPipeDeclaration<ToPreviewPipe, "topreview", false>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "croco-html",
3
- "version": "2.1.1",
3
+ "version": "2.3.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.4",
6
6
  "@angular/core": "^17.3.4",
package/public-api.d.ts CHANGED
@@ -3,3 +3,4 @@ export * from './lib/pipes';
3
3
  export * from './lib/extensions';
4
4
  export * from './lib/croco-html.module';
5
5
  export * from './lib/models/models';
6
+ export * from './lib/consts';