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/fesm2022/croco-html.mjs +47 -37
- package/fesm2022/croco-html.mjs.map +1 -1
- package/package.json +1 -1
- package/types/croco-html.d.ts +11 -10
package/package.json
CHANGED
package/types/croco-html.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
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
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
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>;
|