croco-html 20.5.0 → 20.5.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "croco-html",
3
- "version": "20.5.0",
3
+ "version": "20.5.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.3.15",
6
6
  "@angular/core": "^20.3.15",
@@ -1328,12 +1328,13 @@ declare class MainEditorBlockComponent implements OnDestroy {
1328
1328
  set tag(data: HtmlBodyTag);
1329
1329
  _tag: HtmlBodyTag | null;
1330
1330
  _tagService: TagEditorService;
1331
- private _originalTagBeforeSet;
1331
+ private _originalSnapshot;
1332
1332
  presentOrEdit: boolean;
1333
1333
  onTagSaved: EventEmitter<HtmlBodyTag>;
1334
1334
  onTagRemoved: EventEmitter<HtmlBodyTag>;
1335
1335
  constructor(_options: CrocoHtmlOptions);
1336
1336
  save(): void;
1337
+ static copyTag(tag: HtmlBodyTag): HtmlBodyTag;
1337
1338
  cancelSave(): void;
1338
1339
  isEditorDefined(): boolean;
1339
1340
  deleteItem(): void;
@@ -1361,16 +1362,16 @@ declare class DefinedCustomEditorBlockComponent implements OnInit, OnDestroy {
1361
1362
  }
1362
1363
 
1363
1364
  declare class TextEditorComponent implements OnDestroy {
1364
- private unsubscribe;
1365
- _tag: HtmlBodyTag;
1366
- _tagService: TagEditorService;
1367
- private readonly _cdr;
1365
+ private readonly _destroy$;
1366
+ private _currentService;
1367
+ readonly tag: i0.WritableSignal<HtmlBodyTag>;
1368
+ readonly presentOrEdit: i0.WritableSignal<boolean>;
1369
+ readonly horizontalAlignment: i0.WritableSignal<TextAlignment>;
1370
+ readonly previewHtml: i0.Signal<string>;
1368
1371
  set tagService(data: TagEditorService);
1369
- presentOrEdit: boolean;
1370
- TextAlignment: typeof TextAlignment;
1371
- _horizontalAlignment: TextAlignment;
1372
- changeData(): void;
1373
- getInnerHtml(): string;
1372
+ readonly TextAlignment: typeof TextAlignment;
1373
+ onInnerHtmlChange(newInnerHtml: string): void;
1374
+ onAlignmentChange(): void;
1374
1375
  ngOnDestroy(): void;
1375
1376
  static ɵfac: i0.ɵɵFactoryDeclaration<TextEditorComponent, never>;
1376
1377
  static ɵcmp: i0.ɵɵComponentDeclaration<TextEditorComponent, "croco-html-text-editor", never, { "tagService": { "alias": "tagService"; "required": true; }; }, {}, never, never, true, never>;