croco-html 20.2.1 → 20.2.3

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/index.d.ts CHANGED
@@ -375,6 +375,11 @@ interface CrocoHtmlOptions {
375
375
  * Кастомные кнопки для добавления тега
376
376
  */
377
377
  editorCustomAddTagButtons?: TagItem[] | null | undefined;
378
+ /**
379
+ * Функция обратного вызова когда теги в редакторе перерасчитаны.
380
+ * @returns
381
+ */
382
+ onBodyTagsRecalculated?: (data: HtmlBodyTag[]) => void;
378
383
  }
379
384
  interface ITagEditorViewRender {
380
385
  /**
@@ -998,7 +1003,7 @@ declare class MainEditorBlockComponent implements OnDestroy {
998
1003
  constructor(_options: CrocoHtmlOptions);
999
1004
  save(): void;
1000
1005
  cancelSave(): void;
1001
- isDefinedCustomTag(): boolean;
1006
+ isEditorDefined(): boolean;
1002
1007
  deleteItem(): void;
1003
1008
  ngOnDestroy(): void;
1004
1009
  static ɵfac: i0.ɵɵFactoryDeclaration<MainEditorBlockComponent, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "croco-html",
3
- "version": "20.2.1",
3
+ "version": "20.2.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.3.15",
6
6
  "@angular/core": "^20.3.15",