croco-html 3.3.1 → 3.3.4

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 (22) hide show
  1. package/esm2022/lib/components/add-files-btn/add-files-btn.component.mjs +1 -3
  2. package/esm2022/lib/components/editor/external-video-editor/youtube-video-player/youtube-video-player.component.mjs +1 -1
  3. package/esm2022/lib/components/editor/main-editor/main-editor.component.mjs +1 -1
  4. package/esm2022/lib/components/editor/main-editor-block/main-editor-block.component.mjs +1 -5
  5. package/esm2022/lib/components/editor/visual-editor/visual-editor.component.mjs +12 -9
  6. package/esm2022/lib/components/file-id-select/file-id-select.component.mjs +3 -3
  7. package/esm2022/lib/components/upload-files-btn/upload-files-btn.component.mjs +1 -1
  8. package/esm2022/lib/components/xml-tags/file-image-tag-view/file-image-tag-view.component.mjs +2 -2
  9. package/esm2022/lib/components/xml-tags/html-raw-view/html-raw-view.component.mjs +1 -1
  10. package/esm2022/lib/components/xml-tags/xml-tag-custom-button/xml-tag-button.component.mjs +1 -3
  11. package/esm2022/lib/components/xml-tags/xml-tag-custom-widget/xml-tag-custom-widget.component.mjs +1 -1
  12. package/esm2022/lib/components/xml-tags/xml-tag-download-file-button/xml-tag-download-file-button.component.mjs +1 -5
  13. package/esm2022/lib/components/xml-tags/xml-tag-html-view/xml-tag-html-view.component.mjs +2 -2
  14. package/esm2022/lib/components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component.mjs +2 -2
  15. package/esm2022/lib/services/blob-create.service.mjs +1 -1
  16. package/fesm2022/croco-html.mjs +16 -21
  17. package/fesm2022/croco-html.mjs.map +1 -1
  18. package/lib/components/add-files-btn/add-files-btn.component.d.ts +2 -3
  19. package/lib/components/editor/main-editor-block/main-editor-block.component.d.ts +2 -3
  20. package/lib/components/editor/visual-editor/visual-editor.component.d.ts +1 -2
  21. package/lib/index.d.ts +2 -2
  22. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { EventEmitter } from '@angular/core';
2
2
  import { HtmlBodyTag } from '../../models/models';
3
3
  import { FilePostingStarted, UploadFilesBtnComponent } from '../upload-files-btn/upload-files-btn.component';
4
4
  import { PublicFilesUploadResponse } from '../../services/PublicFileUploadService';
5
5
  import { PrivateFilesCreatedResult } from "../../services/PrivateFileUploadService";
6
6
  import * as i0 from "@angular/core";
7
- export declare class AddFilesBtnComponent implements OnInit {
7
+ export declare class AddFilesBtnComponent {
8
8
  postFilesStarted: EventEmitter<FilePostingStarted>;
9
9
  fakeBtn: UploadFilesBtnComponent;
10
10
  fileIds: number[];
@@ -15,7 +15,6 @@ export declare class AddFilesBtnComponent implements OnInit {
15
15
  filesUploadedPrivateHandler(data: PrivateFilesCreatedResult): void;
16
16
  private buildFileTags;
17
17
  handleClick(): void;
18
- ngOnInit(): void;
19
18
  static ɵfac: i0.ɵɵFactoryDeclaration<AddFilesBtnComponent, never>;
20
19
  static ɵcmp: i0.ɵɵComponentDeclaration<AddFilesBtnComponent, "croco-html-add-files-btn", never, {}, { "postFilesStarted": "postFilesStarted"; "filesTagsReady": "filesTagsReady"; }, never, never, true, never>;
21
20
  }
@@ -1,7 +1,7 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { EventEmitter } from '@angular/core';
2
2
  import { HtmlBodyTag } from '../../../models/models';
3
3
  import * as i0 from "@angular/core";
4
- export declare class MainEditorBlockComponent implements OnInit {
4
+ export declare class MainEditorBlockComponent {
5
5
  textTags: string[];
6
6
  tag: HtmlBodyTag;
7
7
  onTagSaved: EventEmitter<HtmlBodyTag>;
@@ -9,7 +9,6 @@ export declare class MainEditorBlockComponent implements OnInit {
9
9
  tagUpdatedHandler(tag: HtmlBodyTag): void;
10
10
  save(): void;
11
11
  deleteItem(): void;
12
- ngOnInit(): void;
13
12
  static ɵfac: i0.ɵɵFactoryDeclaration<MainEditorBlockComponent, never>;
14
13
  static ɵcmp: i0.ɵɵComponentDeclaration<MainEditorBlockComponent, "croco-html-main-editor-block", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagSaved": "onTagSaved"; "onTagRemoved": "onTagRemoved"; }, never, never, true, never>;
15
14
  }
@@ -3,7 +3,6 @@ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnInit } fr
3
3
  import { ExternalVideoSupportedTypes } from '../../../extensions';
4
4
  import { ExternalVideoTagDataConsts } from '../../../extensions';
5
5
  import { TagItem, HtmlBodyTag } from '../../../models/models';
6
- import { FilePostingStarted } from '../../upload-files-btn/upload-files-btn.component';
7
6
  import { EAlignments } from "./DefaultAligments";
8
7
  import { CrocoHtmlOptions } from '../../../options';
9
8
  import { HtmlRawTagDataConsts } from "../../../extensions/HtmlRawTagDataConsts";
@@ -55,7 +54,7 @@ export declare class VisualEditorComponent implements OnInit, AfterViewInit {
55
54
  startAddingText(tag?: string): void;
56
55
  resetTextStyle(): void;
57
56
  addTextTags(): void;
58
- postFilesStartedEventHandler(model: FilePostingStarted): void;
57
+ postFilesStartedEventHandler(): void;
59
58
  addTag(tag: HtmlBodyTag): void;
60
59
  filesTagsReadyHandler(tags: HtmlBodyTag[]): void;
61
60
  drop(event: CdkDragDrop<object[]>): void;
package/lib/index.d.ts CHANGED
@@ -18,8 +18,8 @@ import { FileImageTagViewComponent, UploadFilesBtnComponent } from "./components
18
18
  import { HtmlRawViewComponent } from "./components";
19
19
  import { HtmlViewComponent } from "./components";
20
20
  import { XmlTagCustomWidgetComponent } from "./components";
21
- export declare const EditorComponents: (typeof VisualEditorComponent | typeof MainEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof HtmlRawEditorComponent | typeof TextEditorComponent | typeof CustomWidgetEditorComponent)[];
21
+ export declare const EditorComponents: (typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof MainEditorComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof TextEditorComponent | typeof CustomWidgetEditorComponent)[];
22
22
  export declare const XmlComponents: (typeof HtmlViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagCustomWidgetComponent | typeof XmlTagViewComponent)[];
23
23
  export declare const CrocoPipes: (typeof RichTextToHtmlPipe | typeof ToPreviewPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
24
- export declare const CrocoHtmlDeclarations: (typeof VisualEditorComponent | typeof HtmlViewComponent | typeof MainEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof UploadFilesBtnComponent | typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof RichTextToHtmlPipe | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagCustomWidgetComponent | typeof XmlTagViewComponent | typeof HtmlRawEditorComponent | typeof TextEditorComponent | typeof CustomWidgetEditorComponent | typeof ToPreviewPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
24
+ export declare const CrocoHtmlDeclarations: (typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof HtmlViewComponent | typeof MainEditorComponent | typeof UploadFilesBtnComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof RichTextToHtmlPipe | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagCustomWidgetComponent | typeof XmlTagViewComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof TextEditorComponent | typeof CustomWidgetEditorComponent | typeof ToPreviewPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
25
25
  export declare const MaterialModules: (typeof MatTabsModule)[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "croco-html",
3
- "version": "3.3.1",
3
+ "version": "3.3.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.13",
6
6
  "@angular/core": "^18.2.13",