croco-html 2.32.0 → 2.40.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.
@@ -15,7 +15,6 @@ export declare class VisualEditorComponent implements OnInit, AfterViewInit {
15
15
  textArea: ElementRef;
16
16
  isLoading: boolean;
17
17
  loadingText: string;
18
- isActiveAddText: boolean;
19
18
  text: string;
20
19
  alignment: EAlignments;
21
20
  textTag: string;
@@ -46,10 +45,10 @@ export declare class VisualEditorComponent implements OnInit, AfterViewInit {
46
45
  ngAfterViewInit(): void;
47
46
  ngAfterContentChecked(): void;
48
47
  addTag(): void;
49
- addText(): void;
50
- closeText(): void;
48
+ startAddingText(): void;
49
+ finishAddingText(): void;
51
50
  resetTextStyle(): void;
52
- modelChanged(): void;
51
+ addTextTags(): void;
53
52
  postFilesStartedEventHandler(model: FilePostingStarted): void;
54
53
  addTagCustom(tag: HtmlBodyTag): void;
55
54
  filesTagsReadyHandler(tags: HtmlBodyTag[]): void;
@@ -58,6 +57,7 @@ export declare class VisualEditorComponent implements OnInit, AfterViewInit {
58
57
  onTagRemovedHandler(index: number): void;
59
58
  recalculateHtml(): void;
60
59
  recalculateBodyTags(): void;
60
+ selectTag(data: TagItem): void;
61
61
  ngOnInit(): void;
62
62
  static ɵfac: i0.ɵɵFactoryDeclaration<VisualEditorComponent, never>;
63
63
  static ɵcmp: i0.ɵɵComponentDeclaration<VisualEditorComponent, "croco-visual-editor", never, { "showMarkUp": { "alias": "showMarkUp"; "required": false; }; "useHtmlRaw": { "alias": "useHtmlRaw"; "required": false; }; "html": { "alias": "html"; "required": false; }; }, { "html": "html"; "onHtmlChanged": "onHtmlChanged"; "rendered": "rendered"; }, never, never, true, never>;
@@ -6,7 +6,7 @@ export declare class XmlTagCustomWidgetComponent implements OnInit, OnDestroy {
6
6
  private readonly _options;
7
7
  viewContainerRef: ViewContainerRef;
8
8
  set tagData(value: CustomWidgetTagData);
9
- get tagData(): any;
9
+ get tagData(): CustomWidgetTagData;
10
10
  _tagData: CustomWidgetTagData;
11
11
  tooltipData: string;
12
12
  useDynamicComponent: boolean;
package/lib/index.d.ts CHANGED
@@ -2,8 +2,7 @@ import { ImageEditorComponent } from "./components";
2
2
  import { MainEditorBlockComponent } from "./components";
3
3
  import { MainEditorComponent } from "./components";
4
4
  import { FileIdSelectComponent } from "./components";
5
- import { XmlTagHeaderTextViewComponent } from "./components";
6
- import { XmlTagHtmlViewComponent } from "./components";
5
+ import { XmlTagHeaderInnerTextViewComponent } from "./components";
7
6
  import { XmlTagRichTextViewComponent } from "./components";
8
7
  import { XmlTagTableViewComponent } from "./components";
9
8
  import { XmlTagViewComponent } from "./components";
@@ -11,13 +10,14 @@ import { VisualEditorComponent } from './components';
11
10
  import { AddFilesBtnComponent } from './components';
12
11
  import { XmlTagExternalVideoComponent } from "./components";
13
12
  import { HtmlRawEditorComponent } from "./components";
14
- import { MatFormFieldModule } from '@angular/material/form-field';
13
+ import { MatTabsModule } from '@angular/material/tabs';
15
14
  import { RichTextToHtmlPipe, TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe } from "./pipes";
16
15
  import { FileImageTagViewComponent, UploadFilesBtnComponent } from "./components";
17
16
  import { HtmlRawViewComponent } from "./components";
17
+ import { HtmlViewComponent } from "./components";
18
18
  import { XmlTagCustomWidgetComponent } from "./components";
19
- export declare const EditorComponents: (typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof HtmlRawEditorComponent | typeof MainEditorComponent)[];
20
- export declare const XmlComponents: (typeof XmlTagExternalVideoComponent | typeof XmlTagCustomWidgetComponent | typeof HtmlRawViewComponent | typeof XmlTagHeaderTextViewComponent | typeof FileImageTagViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent)[];
21
- export declare const CrocoPipes: (typeof ToPreviewHtmlPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewPipe | typeof RichTextToHtmlPipe | typeof TagToSpanPipe)[];
22
- export declare const CrocoHtmlDeclarations: (typeof ToPreviewHtmlPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewPipe | typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof FileIdSelectComponent | typeof XmlTagExternalVideoComponent | typeof ImageEditorComponent | typeof XmlTagCustomWidgetComponent | typeof HtmlRawViewComponent | typeof XmlTagHeaderTextViewComponent | typeof FileImageTagViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagViewComponent | typeof UploadFilesBtnComponent | typeof RichTextToHtmlPipe | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof HtmlRawEditorComponent | typeof MainEditorComponent | typeof TagToSpanPipe)[];
23
- export declare const MaterialModules: (typeof MatFormFieldModule)[];
19
+ export declare const EditorComponents: (typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof MainEditorComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent)[];
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 AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof XmlTagViewComponent | typeof HtmlViewComponent | typeof MainEditorComponent | typeof UploadFilesBtnComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof RichTextToHtmlPipe | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagCustomWidgetComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof ToPreviewPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
23
+ export declare const MaterialModules: (typeof MatTabsModule)[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "croco-html",
3
- "version": "2.32.0",
3
+ "version": "2.40.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.4",
6
6
  "@angular/core": "^17.3.4",