@flogeez/angular-tiptap-editor 0.2.5 → 0.2.7
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Editor } from '@tiptap/core';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { AfterViewInit, OnDestroy, ElementRef } from '@angular/core';
|
|
4
4
|
import { ControlValueAccessor } from '@angular/forms';
|
|
5
5
|
|
|
6
6
|
interface SlashCommandItem {
|
|
@@ -456,11 +456,18 @@ interface ImageBubbleMenuConfig {
|
|
|
456
456
|
separator?: boolean;
|
|
457
457
|
}
|
|
458
458
|
|
|
459
|
+
declare class NoopValueAccessorDirective implements ControlValueAccessor {
|
|
460
|
+
writeValue(obj: any): void;
|
|
461
|
+
registerOnChange(fn: any): void;
|
|
462
|
+
registerOnTouched(fn: any): void;
|
|
463
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NoopValueAccessorDirective, never>;
|
|
464
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NoopValueAccessorDirective, never, never, {}, {}, never, never, true, never>;
|
|
465
|
+
}
|
|
466
|
+
|
|
459
467
|
declare const DEFAULT_TOOLBAR_CONFIG: ToolbarConfig;
|
|
460
468
|
declare const DEFAULT_BUBBLE_MENU_CONFIG: BubbleMenuConfig;
|
|
461
469
|
declare const DEFAULT_IMAGE_BUBBLE_MENU_CONFIG: ImageBubbleMenuConfig;
|
|
462
|
-
declare class AngularTiptapEditorComponent implements
|
|
463
|
-
private imageService;
|
|
470
|
+
declare class AngularTiptapEditorComponent implements AfterViewInit, OnDestroy {
|
|
464
471
|
content: _angular_core.InputSignal<string>;
|
|
465
472
|
placeholder: _angular_core.InputSignal<string>;
|
|
466
473
|
editable: _angular_core.InputSignal<boolean>;
|
|
@@ -518,12 +525,11 @@ declare class AngularTiptapEditorComponent implements OnInit, AfterViewInit, OnD
|
|
|
518
525
|
quality: number;
|
|
519
526
|
}>;
|
|
520
527
|
slashCommandsConfigComputed: _angular_core.Signal<SlashCommandsConfig>;
|
|
521
|
-
private
|
|
522
|
-
private
|
|
523
|
-
private pendingFormValue;
|
|
528
|
+
private _destroyRef;
|
|
529
|
+
private ngControl;
|
|
524
530
|
readonly i18nService: TiptapI18nService;
|
|
525
|
-
|
|
526
|
-
|
|
531
|
+
readonly imageService: ImageService;
|
|
532
|
+
constructor();
|
|
527
533
|
ngAfterViewInit(): void;
|
|
528
534
|
ngOnDestroy(): void;
|
|
529
535
|
private initEditor;
|
|
@@ -541,13 +547,11 @@ declare class AngularTiptapEditorComponent implements OnInit, AfterViewInit, OnD
|
|
|
541
547
|
focus(): void;
|
|
542
548
|
blur(): void;
|
|
543
549
|
clearContent(): void;
|
|
544
|
-
|
|
545
|
-
registerOnChange(fn: (value: string) => void): void;
|
|
546
|
-
registerOnTouched(fn: () => void): void;
|
|
550
|
+
private setupFormControlSubscription;
|
|
547
551
|
setDisabledState(isDisabled: boolean): void;
|
|
548
552
|
onEditorClick(event: MouseEvent): void;
|
|
549
553
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AngularTiptapEditorComponent, never>;
|
|
550
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AngularTiptapEditorComponent, "angular-tiptap-editor", never, { "content": { "alias": "content"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "editable": { "alias": "editable"; "required": false; "isSignal": true; }; "minHeight": { "alias": "minHeight"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "showToolbar": { "alias": "showToolbar"; "required": false; "isSignal": true; }; "showCharacterCount": { "alias": "showCharacterCount"; "required": false; "isSignal": true; }; "maxCharacters": { "alias": "maxCharacters"; "required": false; "isSignal": true; }; "enableOfficePaste": { "alias": "enableOfficePaste"; "required": false; "isSignal": true; }; "enableSlashCommands": { "alias": "enableSlashCommands"; "required": false; "isSignal": true; }; "slashCommandsConfig": { "alias": "slashCommandsConfig"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "showBubbleMenu": { "alias": "showBubbleMenu"; "required": false; "isSignal": true; }; "bubbleMenu": { "alias": "bubbleMenu"; "required": false; "isSignal": true; }; "showImageBubbleMenu": { "alias": "showImageBubbleMenu"; "required": false; "isSignal": true; }; "imageBubbleMenu": { "alias": "imageBubbleMenu"; "required": false; "isSignal": true; }; "toolbar": { "alias": "toolbar"; "required": false; "isSignal": true; }; "imageUpload": { "alias": "imageUpload"; "required": false; "isSignal": true; }; }, { "contentChange": "contentChange"; "editorCreated": "editorCreated"; "editorUpdate": "editorUpdate"; "editorFocus": "editorFocus"; "editorBlur": "editorBlur"; }, never, never, true,
|
|
554
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AngularTiptapEditorComponent, "angular-tiptap-editor", never, { "content": { "alias": "content"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "editable": { "alias": "editable"; "required": false; "isSignal": true; }; "minHeight": { "alias": "minHeight"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "showToolbar": { "alias": "showToolbar"; "required": false; "isSignal": true; }; "showCharacterCount": { "alias": "showCharacterCount"; "required": false; "isSignal": true; }; "maxCharacters": { "alias": "maxCharacters"; "required": false; "isSignal": true; }; "enableOfficePaste": { "alias": "enableOfficePaste"; "required": false; "isSignal": true; }; "enableSlashCommands": { "alias": "enableSlashCommands"; "required": false; "isSignal": true; }; "slashCommandsConfig": { "alias": "slashCommandsConfig"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "showBubbleMenu": { "alias": "showBubbleMenu"; "required": false; "isSignal": true; }; "bubbleMenu": { "alias": "bubbleMenu"; "required": false; "isSignal": true; }; "showImageBubbleMenu": { "alias": "showImageBubbleMenu"; "required": false; "isSignal": true; }; "imageBubbleMenu": { "alias": "imageBubbleMenu"; "required": false; "isSignal": true; }; "toolbar": { "alias": "toolbar"; "required": false; "isSignal": true; }; "imageUpload": { "alias": "imageUpload"; "required": false; "isSignal": true; }; }, { "contentChange": "contentChange"; "editorCreated": "editorCreated"; "editorUpdate": "editorUpdate"; "editorFocus": "editorFocus"; "editorBlur": "editorBlur"; }, never, never, true, [{ directive: typeof NoopValueAccessorDirective; inputs: {}; outputs: {}; }]>;
|
|
551
555
|
}
|
|
552
556
|
|
|
553
557
|
/**
|
|
@@ -561,5 +565,5 @@ type HeightConfig = {
|
|
|
561
565
|
maxHeight?: number;
|
|
562
566
|
};
|
|
563
567
|
|
|
564
|
-
export { AngularTiptapEditorComponent, DEFAULT_BUBBLE_MENU_CONFIG, DEFAULT_IMAGE_BUBBLE_MENU_CONFIG, DEFAULT_SLASH_COMMANDS, DEFAULT_TOOLBAR_CONFIG, TiptapI18nService, createI18nSlashCommands };
|
|
568
|
+
export { AngularTiptapEditorComponent, DEFAULT_BUBBLE_MENU_CONFIG, DEFAULT_IMAGE_BUBBLE_MENU_CONFIG, DEFAULT_SLASH_COMMANDS, DEFAULT_TOOLBAR_CONFIG, NoopValueAccessorDirective, TiptapI18nService, createI18nSlashCommands };
|
|
565
569
|
export type { BubbleMenuConfig, HeightConfig, ImageBubbleMenuConfig, SlashCommandItem, SlashCommandsConfig, SupportedLocale, TiptapTranslations, ToolbarConfig };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flogeez/angular-tiptap-editor",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "A modern, customizable rich-text editor for Angular (
|
|
3
|
+
"version": "0.2.7",
|
|
4
|
+
"description": "A modern, customizable rich-text editor for Angular (18+), built with Tiptap and featuring complete internationalization support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
7
7
|
"tiptap",
|