croco-html 2.27.0 → 2.28.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.
- package/esm2022/lib/components/editor/image-editor/image-editor.component.mjs +19 -2
- package/esm2022/lib/components/editor/visual-editor/visual-editor.component.mjs +1 -1
- package/esm2022/lib/components/file-id-select/file-id-select.component.mjs +1 -1
- package/esm2022/lib/components/xml-tags/file-image-tag-view/file-image-tag-view.component.mjs +18 -6
- package/esm2022/lib/extensions/BodyTagsExtensions.mjs +1 -1
- package/esm2022/lib/extensions/HtmlExtractionMethods.mjs +1 -1
- package/esm2022/lib/extensions/ImageMethods.mjs +1 -1
- package/esm2022/lib/extensions/TableMethods.mjs +1 -1
- package/esm2022/lib/options/index.mjs +2 -0
- package/esm2022/lib/pipes/ToHtmlBodyTagsPipe.mjs +1 -1
- package/esm2022/lib/pipes/ToPreviewHtmlPipe.mjs +1 -1
- package/esm2022/lib/pipes/to-preview.pipe.mjs +1 -1
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/croco-html.mjs +35 -7
- package/fesm2022/croco-html.mjs.map +1 -1
- package/lib/components/editor/image-editor/image-editor.component.d.ts +1 -1
- package/lib/components/editor/visual-editor/visual-editor.component.d.ts +1 -1
- package/lib/components/file-id-select/file-id-select.component.d.ts +1 -1
- package/lib/components/xml-tags/file-image-tag-view/file-image-tag-view.component.d.ts +4 -1
- package/lib/extensions/BodyTagsExtensions.d.ts +1 -1
- package/lib/extensions/HtmlExtractionMethods.d.ts +1 -3
- package/lib/extensions/ImageMethods.d.ts +1 -1
- package/lib/extensions/TableMethods.d.ts +1 -1
- package/lib/index.d.ts +5 -5
- package/lib/options/index.d.ts +5 -0
- package/lib/pipes/ToHtmlBodyTagsPipe.d.ts +1 -1
- package/lib/pipes/ToPreviewHtmlPipe.d.ts +1 -1
- package/lib/pipes/to-preview.pipe.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { IMediaRequest } from '../../../extensions';
|
|
3
3
|
import { HtmlBodyTag } from '../../../models/models';
|
|
4
|
-
import { CrocoHtmlOptions } from '../../../extensions/HtmlExtractionMethods';
|
|
5
4
|
import { ScreenWidthService } from "../../../services/screen-width.service";
|
|
5
|
+
import { CrocoHtmlOptions } from '../../../options';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class ImageEditorComponent implements OnInit, OnDestroy {
|
|
8
8
|
private readonly _options;
|
|
@@ -4,7 +4,7 @@ import { ExternalVideoTagDataConsts } from '../../../extensions';
|
|
|
4
4
|
import { TagItem, HtmlBodyTag } from '../../../models/models';
|
|
5
5
|
import { FilePostingStarted } from '../../upload-files-btn/upload-files-btn.component';
|
|
6
6
|
import { EAlignments } from "./DefaultAligments";
|
|
7
|
-
import { CrocoHtmlOptions } from '../../../
|
|
7
|
+
import { CrocoHtmlOptions } from '../../../options';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare const defaultLinkYouTube = "https://www.youtube.com/embed/4CtSAnJDfsI?si=scyBNJa0Hs2t5aLE";
|
|
10
10
|
export declare const defaultLinkVk = "https://vk.com/video_ext.php?oid=-22822305&id=456241864&hd=2";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FileNameAndIdModel, FilesQueryService } from '../../services/files-query.service';
|
|
3
|
-
import { CrocoHtmlOptions } from '../../
|
|
3
|
+
import { CrocoHtmlOptions } from '../../options';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export interface SearchQuestionsFormData {
|
|
6
6
|
q: string;
|
|
@@ -2,15 +2,18 @@ import { OnDestroy, OnInit } from '@angular/core';
|
|
|
2
2
|
import { InterfaceBlock } from '../../../extensions/InterfaceBlock';
|
|
3
3
|
import { IMediaRequest } from '../../../extensions';
|
|
4
4
|
import { ScreenWidthService } from "../../../services/screen-width.service";
|
|
5
|
+
import { CrocoHtmlOptions } from '../../../options';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class FileImageTagViewComponent implements OnInit, OnDestroy {
|
|
7
8
|
private readonly screenWidthService;
|
|
9
|
+
private readonly _options;
|
|
8
10
|
set item(item: InterfaceBlock);
|
|
9
11
|
imageSrc: string;
|
|
10
12
|
requests: IMediaRequest[];
|
|
11
13
|
private unsubscribe;
|
|
12
14
|
imageMaxHeight: any;
|
|
13
|
-
constructor(screenWidthService: ScreenWidthService);
|
|
15
|
+
constructor(screenWidthService: ScreenWidthService, _options: CrocoHtmlOptions);
|
|
16
|
+
getMediaRequests(screenMediaRequest: string): IMediaRequest[];
|
|
14
17
|
ngOnInit(): void;
|
|
15
18
|
ngOnDestroy(): void;
|
|
16
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileImageTagViewComponent, never>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HtmlBodyTag } from "../models/models";
|
|
2
|
-
import { CrocoHtmlOptions } from "./HtmlExtractionMethods";
|
|
3
2
|
import { InterfaceBlock } from "./InterfaceBlock";
|
|
3
|
+
import { CrocoHtmlOptions } from "../options";
|
|
4
4
|
export declare class BodyTagsExtensions {
|
|
5
5
|
static getDescription(tagName: string): string;
|
|
6
6
|
static toHtml(bodyTags: HtmlBodyTag[]): string;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { InterfaceBlock } from "./InterfaceBlock";
|
|
2
2
|
import { GenericTextTag } from "./TextSimpleMethods";
|
|
3
|
-
|
|
4
|
-
publicImageResizedUrlFormat: string;
|
|
5
|
-
}
|
|
3
|
+
import { CrocoHtmlOptions } from "../options";
|
|
6
4
|
export declare class HtmlExtractionMethods {
|
|
7
5
|
static ExtractHeaderTag(elem: HTMLElement, tagName: string): GenericTextTag;
|
|
8
6
|
static Extractors: {
|
package/lib/index.d.ts
CHANGED
|
@@ -2,7 +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 {
|
|
5
|
+
import { XmlTagHeaderTextViewComponent } from "./components";
|
|
6
6
|
import { XmlTagRichTextViewComponent } from "./components";
|
|
7
7
|
import { XmlTagTableViewComponent } from "./components";
|
|
8
8
|
import { XmlTagViewComponent } from "./components";
|
|
@@ -15,8 +15,8 @@ import { RichTextToHtmlPipe, TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPip
|
|
|
15
15
|
import { FileImageTagViewComponent, UploadFilesBtnComponent } from "./components";
|
|
16
16
|
import { HtmlRawViewComponent } from "./components";
|
|
17
17
|
import { HtmlViewComponent } from "./components";
|
|
18
|
-
export declare const EditorComponents: (typeof
|
|
19
|
-
export declare const XmlComponents: (typeof XmlTagViewComponent | typeof HtmlViewComponent | typeof XmlTagExternalVideoComponent | typeof
|
|
20
|
-
export declare const CrocoPipes: (typeof
|
|
21
|
-
export declare const CrocoHtmlDeclarations: (typeof
|
|
18
|
+
export declare const EditorComponents: (typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof MainEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof HtmlRawEditorComponent)[];
|
|
19
|
+
export declare const XmlComponents: (typeof XmlTagViewComponent | typeof HtmlViewComponent | typeof XmlTagExternalVideoComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagHeaderTextViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent)[];
|
|
20
|
+
export declare const CrocoPipes: (typeof ToPreviewHtmlPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewPipe | typeof RichTextToHtmlPipe | typeof TagToSpanPipe)[];
|
|
21
|
+
export declare const CrocoHtmlDeclarations: (typeof ToPreviewHtmlPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewPipe | typeof XmlTagViewComponent | typeof HtmlViewComponent | typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof MainEditorComponent | typeof FileIdSelectComponent | typeof XmlTagExternalVideoComponent | typeof ImageEditorComponent | typeof HtmlRawEditorComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagHeaderTextViewComponent | typeof UploadFilesBtnComponent | typeof RichTextToHtmlPipe | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof TagToSpanPipe)[];
|
|
22
22
|
export declare const MaterialModules: (typeof MatTabsModule)[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { HtmlBodyTag } from '../models/models';
|
|
3
|
-
import { CrocoHtmlOptions } from '../
|
|
3
|
+
import { CrocoHtmlOptions } from '../options';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ToHtmlBodyTagsPipe implements PipeTransform {
|
|
6
6
|
private readonly _options;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { CrocoHtmlOptions } from '../extensions/HtmlExtractionMethods';
|
|
3
2
|
import { InterfaceBlock } from "../extensions/InterfaceBlock";
|
|
3
|
+
import { CrocoHtmlOptions } from '../options';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ToPreviewHtmlPipe implements PipeTransform {
|
|
6
6
|
private readonly _options;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { CrocoHtmlOptions } from '../extensions/HtmlExtractionMethods';
|
|
3
2
|
import { InterfaceBlock } from "../extensions/InterfaceBlock";
|
|
3
|
+
import { CrocoHtmlOptions } from '../options';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ToPreviewPipe implements PipeTransform {
|
|
6
6
|
private readonly _options;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED