croco-html 4.2.4 → 4.3.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.
@@ -3,9 +3,9 @@ import { InterfaceBlock } from "./InterfaceBlock";
3
3
  import { CrocoHtmlOptions } from "../options";
4
4
  import { IMarkUpTagService } from "../tag-services/IMarkUpTagService";
5
5
  export declare class BodyTagsExtensions {
6
- static tagServices: {
7
- [id: string]: IMarkUpTagService;
8
- };
6
+ private static tagServices;
7
+ static hasTagService(tagName: string, options: CrocoHtmlOptions): boolean;
8
+ static getTagService(tagName: string, options: CrocoHtmlOptions): IMarkUpTagService;
9
9
  static convertToHtmlString(bodyTag: HtmlBodyTag): string;
10
10
  static bodyTagsToHtml(bodyTags: HtmlBodyTag[]): string;
11
11
  static getBodyTags(html: string, options: CrocoHtmlOptions): HtmlBodyTag[];
@@ -1,6 +1,7 @@
1
1
  import { Type } from "@angular/core";
2
2
  import { IImageMediaRequest } from "../models";
3
3
  import { VisualEditorComponent } from "../components";
4
+ import { IMarkUpTagService } from "../tag-services";
4
5
  export interface CrocoHtmlOptions {
5
6
  /**
6
7
  * Опции для отображения изображений.
@@ -21,7 +22,9 @@ export interface CrocoHtmlOptions {
21
22
  /**
22
23
  * Кастомные объявленные теги
23
24
  */
24
- definedCustomTags: string[];
25
+ definedCustomTags: {
26
+ [id: string]: IMarkUpTagService;
27
+ };
25
28
  /**
26
29
  * Обработчик нажатия на кнопку кастомных виджетов
27
30
  * @returns
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "croco-html",
3
- "version": "4.2.4",
3
+ "version": "4.3.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.14",
6
6
  "@angular/core": "^19.2.14",
package/public-api.d.ts CHANGED
@@ -6,3 +6,4 @@ export * from './lib/models';
6
6
  export * from './lib/consts';
7
7
  export * from './lib/services';
8
8
  export * from './lib/options';
9
+ export * from './lib/tag-services';