croco-html 2.33.0 → 2.41.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>;
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 HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof MainEditorComponent)[];
20
- export declare const XmlComponents: (typeof XmlTagCustomWidgetComponent | typeof HtmlRawViewComponent | typeof XmlTagHeaderTextViewComponent | typeof FileImageTagViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent)[];
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
21
  export declare const CrocoPipes: (typeof RichTextToHtmlPipe | typeof ToPreviewPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
22
- export declare const CrocoHtmlDeclarations: (typeof XmlTagCustomWidgetComponent | typeof HtmlRawViewComponent | typeof XmlTagHeaderTextViewComponent | typeof FileImageTagViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagViewComponent | typeof UploadFilesBtnComponent | typeof AddFilesBtnComponent | typeof RichTextToHtmlPipe | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof ToPreviewPipe | typeof MainEditorComponent | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
23
- export declare const MaterialModules: (typeof MatFormFieldModule)[];
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)[];
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from "@angular/core";
2
+ import { SpriteIdsType } from "../../sprites-ids.type";
3
+ import * as i0 from "@angular/core";
4
+ export declare class SpriteIconPathPipe implements PipeTransform {
5
+ transform(id: SpriteIdsType): string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpriteIconPathPipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<SpriteIconPathPipe, "spriteIconPath", true>;
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "croco-html",
3
- "version": "2.33.0",
3
+ "version": "2.41.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.4",
6
6
  "@angular/core": "^17.3.4",
@@ -0,0 +1,3 @@
1
+ export declare const spritesHash: {
2
+ symbol: string;
3
+ };
@@ -0,0 +1 @@
1
+ export type SpriteIdsType = 'source-code-tab' | 'visual-editor-tab';