croco-html 4.7.0 → 4.8.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/lib/index.d.ts CHANGED
@@ -3,21 +3,21 @@ 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';
11
11
  import { AddFilesBtnComponent } from './components';
12
12
  import { XmlTagExternalVideoComponent } from "./components";
13
13
  import { HtmlRawEditorComponent } from "./components";
14
- import { MatFormFieldModule } from '@angular/material/form-field';
14
+ import { MatCardModule } from '@angular/material/card';
15
15
  import { TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe } from "./pipes";
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 DefinedCustomEditorBlockComponent | typeof TextEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof CustomWidgetEditorComponent | typeof HtmlRawEditorComponent | typeof MainEditorBlockComponent | typeof AddFilesBtnComponent | typeof CustomWidgetIconComponent | typeof VisualEditorComponent | typeof MainEditorComponent)[];
20
- export declare const XmlComponents: (typeof FileImageTagViewComponent | typeof AudioPlayerTagViewComponent | typeof XmlTagCustomWidgetComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagTextViewComponent | typeof HtmlRawViewComponent | typeof XmlTagHtmlViewComponent | typeof DefinedCustomTagViewComponent | typeof XmlTagViewComponent)[];
21
- export declare const CrocoPipes: (typeof TagToSpanPipe | typeof ToPreviewPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
22
- export declare const CrocoHtmlDeclarations: (typeof DefinedCustomEditorBlockComponent | typeof TextEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof FileImageTagViewComponent | typeof AudioPlayerTagViewComponent | typeof XmlTagCustomWidgetComponent | typeof CustomWidgetEditorComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagTextViewComponent | typeof HtmlRawViewComponent | typeof XmlTagHtmlViewComponent | typeof DefinedCustomTagViewComponent | typeof XmlTagViewComponent | typeof UploadFilesBtnComponent | typeof HtmlRawEditorComponent | typeof MainEditorBlockComponent | typeof AddFilesBtnComponent | typeof CustomWidgetIconComponent | typeof VisualEditorComponent | typeof MainEditorComponent | typeof TagToSpanPipe | typeof ToPreviewPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
23
- export declare const MaterialModules: (typeof MatFormFieldModule)[];
19
+ export declare const EditorComponents: (typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof TextEditorComponent | typeof CustomWidgetEditorComponent | typeof DefinedCustomEditorBlockComponent | typeof MainEditorBlockComponent | 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 UploadFilesBtnComponent | typeof AddFilesBtnComponent | typeof AudioPlayerTagViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagCustomWidgetComponent | typeof DefinedCustomTagViewComponent | typeof XmlTagViewComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof TextEditorComponent | typeof CustomWidgetEditorComponent | typeof DefinedCustomEditorBlockComponent | typeof MainEditorBlockComponent | typeof CustomWidgetIconComponent | typeof VisualEditorComponent | typeof ToPreviewPipe | typeof MainEditorComponent | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
23
+ export declare const MaterialModules: (typeof MatCardModule)[];
@@ -7,6 +7,10 @@ export interface CrocoHtmlOptions {
7
7
  * Опции для отображения изображений.
8
8
  */
9
9
  imageOptions: CrocoHtmlImageOptions;
10
+ /**
11
+ * Формат адреса до оригиналов файлов по идентификатору и имени
12
+ */
13
+ fileIdAndNamePathUrlFormat: string;
10
14
  /**
11
15
  * Компонент для рендера кастомных виджетов
12
16
  */
@@ -56,15 +60,10 @@ export interface ICustomTagViewRender {
56
60
  }
57
61
  export interface CrocoHtmlImageOptions {
58
62
  /**
59
- * Формат сслыки для показа изображений из публичных файлов.
63
+ * Формат сслыки для показа изображений из файлов.
60
64
  * Содержит переменные: {sizeType} - тип размера, {fileId} - идентификатор изображения.
61
65
  */
62
- publicImageResizedUrlFormat: string;
63
- /**
64
- * Формат сслыки для показа изображений из приватный файлов.
65
- * Содержит переменные: {sizeType} - тип размера, {fileId} - идентификатор изображения.
66
- */
67
- privateImageResizedUrlFormat: string;
66
+ sizeTypeAndFileIdImageUrlFormat: string;
68
67
  /**
69
68
  * Медиа запросы для изображений.
70
69
  */
@@ -36,3 +36,13 @@ export interface FileSimpleModel {
36
36
  type: FileType;
37
37
  downloadUrl: string;
38
38
  }
39
+ export interface FileInfoModel {
40
+ type: FileType;
41
+ name: string;
42
+ downloadUrl: string;
43
+ }
44
+ export interface CommonFileInfoResultModel {
45
+ id: string;
46
+ isPrivateId: boolean;
47
+ fileInfo: FileInfoModel;
48
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "croco-html",
3
- "version": "4.7.0",
3
+ "version": "4.8.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.14",
6
6
  "@angular/core": "^19.2.14",