croco-html 2.41.0 → 2.43.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,5 +1,4 @@
1
- import { BaseApiResponse, TableData, TableRowData } from './TableMethods';
2
- import { AngularMaterialTableData } from "../models/models";
1
+ import { AngularMaterialTableData, BaseApiResponse, TableData, TableRowData } from './TableMethods';
3
2
  export declare class AngularMaterialTableMethods {
4
3
  static getAngularMaterialTableData(columns: string[], rows: TableRowData[]): AngularMaterialTableData;
5
4
  static checkHeaders(tableData: TableData): BaseApiResponse;
@@ -18,7 +18,7 @@ export declare class HtmlExtractionMethods {
18
18
  } | {
19
19
  angularMaterialTableDataCheck: import("./TableMethods").BaseApiResponse;
20
20
  html: string;
21
- angularMaterialTableData: import("croco-html").AngularMaterialTableData;
21
+ angularMaterialTableData: import("./TableMethods").AngularMaterialTableData;
22
22
  type: string;
23
23
  data: import("./TableMethods").TableData;
24
24
  validationResult: import("./TableMethods").BaseApiResponse;
@@ -45,7 +45,7 @@ export declare class HtmlExtractionMethods {
45
45
  } | {
46
46
  angularMaterialTableDataCheck: import("./TableMethods").BaseApiResponse;
47
47
  html: string;
48
- angularMaterialTableData: import("croco-html").AngularMaterialTableData;
48
+ angularMaterialTableData: import("./TableMethods").AngularMaterialTableData;
49
49
  type: string;
50
50
  data: import("./TableMethods").TableData;
51
51
  validationResult: import("./TableMethods").BaseApiResponse;
@@ -32,6 +32,10 @@ export declare class TableTypes {
32
32
  static readonly Table = "table";
33
33
  static readonly TableRowColumn = "table-row-column";
34
34
  }
35
+ export interface AngularMaterialTableData {
36
+ displayedColumns: string[];
37
+ data: object[];
38
+ }
35
39
  export declare class TableMethods {
36
40
  static getTableFromHtmlTag(tableTag: HTMLTableElement, options: CrocoHtmlOptions): {
37
41
  type: string;
@@ -47,7 +51,7 @@ export declare class TableMethods {
47
51
  } | {
48
52
  angularMaterialTableDataCheck: BaseApiResponse;
49
53
  html: string;
50
- angularMaterialTableData: import("croco-html").AngularMaterialTableData;
54
+ angularMaterialTableData: AngularMaterialTableData;
51
55
  type: string;
52
56
  data: TableData;
53
57
  validationResult: BaseApiResponse;
package/lib/index.d.ts CHANGED
@@ -3,6 +3,7 @@ import { MainEditorBlockComponent } from "./components";
3
3
  import { MainEditorComponent } from "./components";
4
4
  import { FileIdSelectComponent } from "./components";
5
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,14 +11,13 @@ 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
18
  import { XmlTagCustomWidgetComponent } from "./components";
19
- export declare const EditorComponents: (typeof VisualEditorComponent | typeof MainEditorComponent | typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof MainEditorBlockComponent)[];
20
- export declare const XmlComponents: (typeof XmlTagViewComponent | typeof HtmlViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagCustomWidgetComponent)[];
21
- export declare const CrocoPipes: (typeof RichTextToHtmlPipe | typeof ToPreviewPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
22
- export declare const CrocoHtmlDeclarations: (typeof VisualEditorComponent | typeof XmlTagViewComponent | typeof HtmlViewComponent | typeof MainEditorComponent | typeof UploadFilesBtnComponent | typeof AddFilesBtnComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof RichTextToHtmlPipe | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagCustomWidgetComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof MainEditorBlockComponent | typeof ToPreviewPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
23
- export declare const MaterialModules: (typeof MatTabsModule)[];
19
+ export declare const EditorComponents: (typeof HtmlRawEditorComponent | typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof ImageEditorComponent | typeof FileIdSelectComponent | typeof MainEditorComponent)[];
20
+ export declare const XmlComponents: (typeof XmlTagCustomWidgetComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagViewComponent)[];
21
+ export declare const CrocoPipes: (typeof ToPreviewHtmlPipe | typeof ToPreviewPipe | typeof ToHtmlBodyTagsPipe | typeof RichTextToHtmlPipe | typeof TagToSpanPipe)[];
22
+ export declare const CrocoHtmlDeclarations: (typeof ToPreviewHtmlPipe | typeof ToPreviewPipe | typeof HtmlRawEditorComponent | typeof ToHtmlBodyTagsPipe | typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof ImageEditorComponent | typeof XmlTagCustomWidgetComponent | typeof FileIdSelectComponent | typeof XmlTagExternalVideoComponent | typeof UploadFilesBtnComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof RichTextToHtmlPipe | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagViewComponent | typeof MainEditorComponent | typeof TagToSpanPipe)[];
23
+ export declare const MaterialModules: (typeof MatFormFieldModule)[];
@@ -8,7 +8,3 @@ export interface HtmlBodyTag {
8
8
  attributes: Object;
9
9
  presentOrEdit: boolean;
10
10
  }
11
- export interface AngularMaterialTableData {
12
- displayedColumns: string[];
13
- data: object[];
14
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "croco-html",
3
- "version": "2.41.0",
3
+ "version": "2.43.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.4",
6
6
  "@angular/core": "^17.3.4",