croco-html 4.9.2 → 4.9.6

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.
@@ -28,6 +28,7 @@ export declare class ImageEditorComponent implements OnInit, OnDestroy {
28
28
  requestChanged(): void;
29
29
  addNewMediaRequest(): void;
30
30
  deleteMediaRequest(index: number): void;
31
+ onFilesUploaded(fileIds: string[] | number[]): void;
31
32
  ngOnDestroy(): void;
32
33
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageEditorComponent, never>;
33
34
  static ɵcmp: i0.ɵɵComponentDeclaration<ImageEditorComponent, "croco-html-image-editor", never, { "tag": { "alias": "tag"; "required": true; }; "presentOrEdit": { "alias": "presentOrEdit"; "required": true; }; }, {}, never, never, true, never>;
@@ -22,6 +22,7 @@ export declare class VisualEditorComponent implements OnInit, AfterViewInit {
22
22
  value: TextAlignment;
23
23
  text: string;
24
24
  }[];
25
+ isTagAdditionStarted: boolean;
25
26
  showMarkUp: boolean;
26
27
  tags: TagItem[];
27
28
  videoPlayers: {
@@ -35,9 +36,6 @@ export declare class VisualEditorComponent implements OnInit, AfterViewInit {
35
36
  protected readonly ExternalVideoSupportedTypes: typeof ExternalVideoSupportedTypes;
36
37
  useHtmlRaw: boolean;
37
38
  html: string;
38
- isHtmlSet(): boolean;
39
- clearHtml(): void;
40
- getHtml(): string;
41
39
  onHtmlChanged: EventEmitter<string>;
42
40
  rendered: EventEmitter<boolean>;
43
41
  bodyTags: HtmlBodyTag[];
@@ -45,20 +43,20 @@ export declare class VisualEditorComponent implements OnInit, AfterViewInit {
45
43
  useCustomWidgetsButton: boolean;
46
44
  constructor(_cdref: ChangeDetectorRef, _options: CrocoHtmlOptions);
47
45
  ngAfterViewInit(): void;
48
- ngAfterContentChecked(): void;
49
- addTagClickHandler(): void;
50
- startAddingText(tag?: string): void;
51
46
  resetTextStyle(): void;
52
- addTextTags(): void;
53
- postFilesStartedEventHandler(): void;
54
- addTag(tag: HtmlBodyTag): void;
55
- filesTagsReadyHandler(tags: HtmlBodyTag[]): void;
56
47
  drop(event: CdkDragDrop<HtmlBodyTag[]>): void;
57
48
  onTagChangedHandler(data: HtmlBodyTag, index: number): void;
58
49
  onTagRemovedHandler(index: number): void;
59
50
  recalculateHtml(): void;
60
51
  recalculateBodyTags(): void;
61
52
  selectTag(data: TagItem): void;
53
+ isTagRequiringForm(): boolean;
54
+ addTagWithForm(): void;
55
+ addTextTag(): void;
56
+ addExternalVideoTag(): void;
57
+ addHtmlRawTag(): void;
58
+ resetTagForm(): void;
59
+ addRegularTag(): void;
62
60
  isDefinedCustomWidget(tagName: string): boolean;
63
61
  customWidgetsClickHandler(): void;
64
62
  ngOnInit(): void;
@@ -1,6 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class XmlTagHtmlViewComponent {
3
- constructor();
4
3
  html: string;
5
4
  static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagHtmlViewComponent, never>;
6
5
  static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagHtmlViewComponent, "croco-html-xml-tag-html-view", never, { "html": { "alias": "html"; "required": false; }; }, {}, never, never, true, never>;
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";
6
7
  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 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 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 UploadFilesBtnComponent | typeof TagToSpanPipe)[];
19
+ export declare const EditorComponents: (typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof TextEditorComponent | typeof HtmlRawEditorComponent | typeof CustomWidgetEditorComponent | typeof DefinedCustomEditorBlockComponent | typeof MainEditorBlockComponent | typeof AddFilesBtnComponent | typeof CustomWidgetIconComponent | typeof VisualEditorComponent | typeof MainEditorComponent)[];
20
+ export declare const XmlComponents: (typeof AudioPlayerTagViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagCustomWidgetComponent | typeof DefinedCustomTagViewComponent | typeof XmlTagViewComponent)[];
21
+ export declare const CrocoPipes: (typeof ToPreviewPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
22
+ export declare const CrocoHtmlDeclarations: (typeof FileIdSelectComponent | typeof UploadFilesBtnComponent | typeof ImageEditorComponent | typeof TextEditorComponent | typeof HtmlRawEditorComponent | typeof CustomWidgetEditorComponent | typeof DefinedCustomEditorBlockComponent | typeof MainEditorBlockComponent | typeof AddFilesBtnComponent | typeof CustomWidgetIconComponent | typeof VisualEditorComponent | typeof MainEditorComponent | typeof AudioPlayerTagViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagCustomWidgetComponent | typeof DefinedCustomTagViewComponent | typeof XmlTagViewComponent | typeof ToPreviewPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
23
23
  export declare const MaterialModules: (typeof MatTabsModule)[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "croco-html",
3
- "version": "4.9.2",
3
+ "version": "4.9.6",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.14",
6
6
  "@angular/core": "^19.2.14",