@flogeez/angular-tiptap-editor 0.5.2 → 0.5.4
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,4 +1,4 @@
|
|
|
1
|
-
import { Editor,
|
|
1
|
+
import { Editor, Node, Extension, Mark, EditorOptions } from '@tiptap/core';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
3
|
import { AfterViewInit, OnDestroy, ElementRef } from '@angular/core';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
@@ -15,6 +15,7 @@ interface TiptapTranslations {
|
|
|
15
15
|
superscript: string;
|
|
16
16
|
subscript: string;
|
|
17
17
|
highlight: string;
|
|
18
|
+
highlightPicker: string;
|
|
18
19
|
heading1: string;
|
|
19
20
|
heading2: string;
|
|
20
21
|
heading3: string;
|
|
@@ -33,6 +34,8 @@ interface TiptapTranslations {
|
|
|
33
34
|
redo: string;
|
|
34
35
|
clear: string;
|
|
35
36
|
textColor: string;
|
|
37
|
+
customColor: string;
|
|
38
|
+
presets: string;
|
|
36
39
|
};
|
|
37
40
|
bubbleMenu: {
|
|
38
41
|
bold: string;
|
|
@@ -43,6 +46,7 @@ interface TiptapTranslations {
|
|
|
43
46
|
superscript: string;
|
|
44
47
|
subscript: string;
|
|
45
48
|
highlight: string;
|
|
49
|
+
highlightPicker: string;
|
|
46
50
|
textColor: string;
|
|
47
51
|
link: string;
|
|
48
52
|
addLink: string;
|
|
@@ -51,6 +55,8 @@ interface TiptapTranslations {
|
|
|
51
55
|
linkUrl: string;
|
|
52
56
|
linkText: string;
|
|
53
57
|
openLink: string;
|
|
58
|
+
customColor: string;
|
|
59
|
+
presets: string;
|
|
54
60
|
};
|
|
55
61
|
slashCommands: {
|
|
56
62
|
heading1: {
|
|
@@ -178,6 +184,7 @@ declare class TiptapI18nService {
|
|
|
178
184
|
superscript: string;
|
|
179
185
|
subscript: string;
|
|
180
186
|
highlight: string;
|
|
187
|
+
highlightPicker: string;
|
|
181
188
|
heading1: string;
|
|
182
189
|
heading2: string;
|
|
183
190
|
heading3: string;
|
|
@@ -196,6 +203,8 @@ declare class TiptapI18nService {
|
|
|
196
203
|
redo: string;
|
|
197
204
|
clear: string;
|
|
198
205
|
textColor: string;
|
|
206
|
+
customColor: string;
|
|
207
|
+
presets: string;
|
|
199
208
|
}>;
|
|
200
209
|
readonly bubbleMenu: _angular_core.Signal<{
|
|
201
210
|
bold: string;
|
|
@@ -206,6 +215,7 @@ declare class TiptapI18nService {
|
|
|
206
215
|
superscript: string;
|
|
207
216
|
subscript: string;
|
|
208
217
|
highlight: string;
|
|
218
|
+
highlightPicker: string;
|
|
209
219
|
textColor: string;
|
|
210
220
|
link: string;
|
|
211
221
|
addLink: string;
|
|
@@ -214,6 +224,8 @@ declare class TiptapI18nService {
|
|
|
214
224
|
linkUrl: string;
|
|
215
225
|
linkText: string;
|
|
216
226
|
openLink: string;
|
|
227
|
+
customColor: string;
|
|
228
|
+
presets: string;
|
|
217
229
|
}>;
|
|
218
230
|
readonly slashCommands: _angular_core.Signal<{
|
|
219
231
|
heading1: {
|
|
@@ -646,6 +658,7 @@ interface ToolbarConfig {
|
|
|
646
658
|
superscript?: boolean;
|
|
647
659
|
subscript?: boolean;
|
|
648
660
|
highlight?: boolean;
|
|
661
|
+
highlightPicker?: boolean;
|
|
649
662
|
heading1?: boolean;
|
|
650
663
|
heading2?: boolean;
|
|
651
664
|
heading3?: boolean;
|
|
@@ -676,6 +689,7 @@ interface BubbleMenuConfig {
|
|
|
676
689
|
superscript?: boolean;
|
|
677
690
|
subscript?: boolean;
|
|
678
691
|
highlight?: boolean;
|
|
692
|
+
highlightPicker?: boolean;
|
|
679
693
|
textColor?: boolean;
|
|
680
694
|
link?: boolean;
|
|
681
695
|
separator?: boolean;
|
|
@@ -736,8 +750,8 @@ declare class AngularTiptapEditorComponent implements AfterViewInit, OnDestroy {
|
|
|
736
750
|
slashCommands: _angular_core.InputSignal<SlashCommandsConfig>;
|
|
737
751
|
customSlashCommands: _angular_core.InputSignal<CustomSlashCommands | undefined>;
|
|
738
752
|
locale: _angular_core.InputSignal<SupportedLocale | undefined>;
|
|
739
|
-
autofocus: _angular_core.InputSignal<number | boolean | "
|
|
740
|
-
tiptapExtensions: _angular_core.InputSignal<(
|
|
753
|
+
autofocus: _angular_core.InputSignal<number | boolean | "end" | "start" | "all">;
|
|
754
|
+
tiptapExtensions: _angular_core.InputSignal<(Node<any, any> | Extension<any, any> | Mark<any, any>)[]>;
|
|
741
755
|
tiptapOptions: _angular_core.InputSignal<Partial<EditorOptions>>;
|
|
742
756
|
showBubbleMenu: _angular_core.InputSignal<boolean>;
|
|
743
757
|
bubbleMenu: _angular_core.InputSignal<Partial<BubbleMenuConfig>>;
|
|
@@ -780,6 +794,12 @@ declare class AngularTiptapEditorComponent implements AfterViewInit, OnDestroy {
|
|
|
780
794
|
event: FocusEvent;
|
|
781
795
|
}>;
|
|
782
796
|
editorElement: _angular_core.Signal<ElementRef<any>>;
|
|
797
|
+
private textMenuComp;
|
|
798
|
+
private imageMenuComp;
|
|
799
|
+
private tableMenuComp;
|
|
800
|
+
private cellMenuComp;
|
|
801
|
+
hideBubbleMenus(): void;
|
|
802
|
+
showBubbleMenus(): void;
|
|
783
803
|
private _editor;
|
|
784
804
|
private _characterCount;
|
|
785
805
|
private _wordCount;
|
package/package.json
CHANGED