@phuong-tran-redoc/document-engine-angular 0.0.14 → 0.0.16
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 * as i0 from '@angular/core';
|
|
2
2
|
import { OnInit, OnChanges, OnDestroy, EventEmitter, SimpleChanges, Type, Injector, ElementRef, AfterViewInit, Renderer2, ChangeDetectorRef, AfterContentInit, QueryList } from '@angular/core';
|
|
3
|
-
import { IndentOptions, DynamicFieldOptions, DynamicFieldCategory as DynamicFieldCategory$1, RestrictedEditingOptions, Color, TextCaseType, ListStyleType, DynamicFieldItem as DynamicFieldItem$1 } from '@phuong-tran-redoc/document-engine-core';
|
|
3
|
+
import { IndentOptions, DynamicFieldOptions, DynamicFieldCategory as DynamicFieldCategory$1, RestrictedEditingOptions, Editor as Editor$1, BubbleMenuPluginProps as BubbleMenuPluginProps$1, Content, EditorEvents, Extension, Color, TextCaseType, ListStyleType, DynamicFieldItem as DynamicFieldItem$1 } from '@phuong-tran-redoc/document-engine-core';
|
|
4
4
|
import { BlockquoteOptions } from '@tiptap/extension-blockquote';
|
|
5
5
|
import { BoldOptions } from '@tiptap/extension-bold';
|
|
6
6
|
import { CodeOptions } from '@tiptap/extension-code';
|
|
@@ -17,7 +17,7 @@ import { TextAlignOptions } from '@tiptap/extension-text-align';
|
|
|
17
17
|
import { TextStyleKitOptions } from '@tiptap/extension-text-style';
|
|
18
18
|
import { UnderlineOptions } from '@tiptap/extension-underline';
|
|
19
19
|
import { UndoRedoOptions, PlaceholderOptions, CharacterCountOptions } from '@tiptap/extensions';
|
|
20
|
-
import { Editor
|
|
20
|
+
import { Editor } from '@tiptap/core';
|
|
21
21
|
export { Editor } from '@tiptap/core';
|
|
22
22
|
import { BubbleMenuPluginProps } from '@tiptap/extension-bubble-menu';
|
|
23
23
|
import * as _angular_forms from '@angular/forms';
|
|
@@ -508,9 +508,9 @@ interface ToolbarBubbleMenuConfig {
|
|
|
508
508
|
declare class TiptapBubbleMenuDirective implements OnInit, OnDestroy {
|
|
509
509
|
private elRef;
|
|
510
510
|
props: BubbleMenuProps;
|
|
511
|
-
editor: Editor;
|
|
512
|
-
mountTo?: BubbleMenuPluginProps['getReferencedVirtualElement'];
|
|
513
|
-
shouldShow?: BubbleMenuPluginProps['shouldShow'];
|
|
511
|
+
editor: Editor$1;
|
|
512
|
+
mountTo?: BubbleMenuPluginProps$1['getReferencedVirtualElement'];
|
|
513
|
+
shouldShow?: BubbleMenuPluginProps$1['shouldShow'];
|
|
514
514
|
ngOnInit(): void;
|
|
515
515
|
ngOnDestroy(): void;
|
|
516
516
|
preventDefault(event: MouseEvent): void;
|
|
@@ -602,8 +602,8 @@ declare class TiptapEditorDirective implements OnInit, AfterViewInit, ControlVal
|
|
|
602
602
|
protected changeDetectorRef: ChangeDetectorRef;
|
|
603
603
|
private _editor?;
|
|
604
604
|
private initialEditableState?;
|
|
605
|
-
set editor(editor: Editor);
|
|
606
|
-
get editor(): Editor;
|
|
605
|
+
set editor(editor: Editor$1);
|
|
606
|
+
get editor(): Editor$1;
|
|
607
607
|
outputFormat: 'json' | 'html';
|
|
608
608
|
protected onChange: (value: Content) => void;
|
|
609
609
|
protected onTouched: () => void;
|
|
@@ -925,7 +925,7 @@ interface ToolbarState {
|
|
|
925
925
|
canClearContent: boolean;
|
|
926
926
|
}
|
|
927
927
|
declare const DEFAULT_TOOLBAR_STATE: ToolbarState;
|
|
928
|
-
declare function buildToolbarState(editor: Editor, config?: Partial<DocumentEngineConfig>): ToolbarState;
|
|
928
|
+
declare function buildToolbarState(editor: Editor$1, config?: Partial<DocumentEngineConfig>): ToolbarState;
|
|
929
929
|
|
|
930
930
|
/**
|
|
931
931
|
* Toolbar component for document editor
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phuong-tran-redoc/document-engine-angular",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Duc Phuong (Jack) <tdp99.business@gmail.com>",
|
|
@@ -26,37 +26,11 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"tslib": "^2.3.0",
|
|
28
28
|
"@floating-ui/dom": "^1.7.4",
|
|
29
|
-
"@
|
|
30
|
-
"@tiptap/extension-floating-menu": "^3.10.5",
|
|
31
|
-
"@tiptap/extension-image": "^3.10.5",
|
|
32
|
-
"@tiptap/extension-subscript": "^3.10.5",
|
|
33
|
-
"@tiptap/extension-superscript": "^3.10.5",
|
|
34
|
-
"@tiptap/extension-text-align": "^3.10.5",
|
|
35
|
-
"@tiptap/extension-text-style": "^3.10.5",
|
|
36
|
-
"@tiptap/extensions": "^3.10.5",
|
|
37
|
-
"@tiptap/extension-blockquote": "^3.10.5",
|
|
38
|
-
"@tiptap/extension-bold": "^3.10.5",
|
|
39
|
-
"@tiptap/extension-code": "^3.10.5",
|
|
40
|
-
"@tiptap/extension-code-block": "^3.10.5",
|
|
41
|
-
"@tiptap/extension-document": "^3.10.5",
|
|
42
|
-
"@tiptap/extension-hard-break": "^3.10.5",
|
|
43
|
-
"@tiptap/extension-horizontal-rule": "^3.10.5",
|
|
44
|
-
"@tiptap/extension-italic": "^3.10.5",
|
|
45
|
-
"@tiptap/extension-link": "^3.10.5",
|
|
46
|
-
"@tiptap/extension-strike": "^3.10.5",
|
|
47
|
-
"@tiptap/extension-text": "^3.10.5",
|
|
48
|
-
"@tiptap/extension-underline": "^3.10.5",
|
|
49
|
-
"@phuong-tran-redoc/document-engine-core": "0.0.14"
|
|
29
|
+
"@phuong-tran-redoc/document-engine-core": "0.0.16"
|
|
50
30
|
},
|
|
51
31
|
"peerDependencies": {
|
|
52
32
|
"rxjs": "^7.5.0",
|
|
53
33
|
"lodash-es": "^4.17.10",
|
|
54
|
-
"@tiptap/core": "^3.10.5",
|
|
55
|
-
"@tiptap/pm": "^3.10.5",
|
|
56
|
-
"@tiptap/extension-heading": "^3.10.5",
|
|
57
|
-
"@tiptap/extension-table": "^3.10.5",
|
|
58
|
-
"@tiptap/extension-list": "^3.10.5",
|
|
59
|
-
"@tiptap/extension-paragraph": "^3.10.5",
|
|
60
34
|
"@angular/core": ">=14.0.0 <21.0.0",
|
|
61
35
|
"@angular/common": ">=14.0.0 <21.0.0",
|
|
62
36
|
"@angular/forms": ">=14.0.0 <21.0.0",
|