ct-rich-text-editor 1.3.21 → 1.3.23
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/README.md +233 -233
- package/dist/App.d.ts +3 -2
- package/dist/Provider/EditorProvider.d.ts +27 -26
- package/dist/Provider/LexicalProvider.d.ts +6 -5
- package/dist/api/ai/index.d.ts +31 -31
- package/dist/api/auth.d.ts +108 -108
- package/dist/api/config/axios.d.ts +2 -1
- package/dist/api/config/endpoints.d.ts +18 -18
- package/dist/api/featureSuggestion.d.ts +23 -23
- package/dist/api/transcript/index.d.ts +1 -1
- package/dist/assets/style.css +5211 -5194
- package/dist/{babel-d3085146.js → babel-d155920e.js} +3278 -3551
- package/dist/babel-d155920e.js.map +1 -0
- package/dist/components/AiPlugin/index.d.ts +6 -6
- package/dist/components/AlignMenu/AlignMenu.d.ts +9 -8
- package/dist/components/AlignMenu/AlignMenuDrop.d.ts +3 -2
- package/dist/components/AlignMenu/index.d.ts +1 -1
- package/dist/components/AutoExpandingDemo.d.ts +6 -5
- package/dist/components/BlockFormatMenu/BlockFormatMenu.d.ts +3 -2
- package/dist/components/BlockFormatMenu/constants.d.ts +14 -14
- package/dist/components/BlockFormatMenu/index.d.ts +1 -1
- package/dist/components/ChartEditDialog.d.ts +9 -8
- package/dist/components/ChartInsertDialog.d.ts +8 -7
- package/dist/components/CodeActionMenuPlugin/components/CopyButton/index.d.ts +7 -6
- package/dist/components/CodeActionMenuPlugin/components/PrettierButton/index.d.ts +9 -8
- package/dist/components/CodeActionMenuPlugin/index.d.ts +5 -4
- package/dist/components/CodeActionMenuPlugin/utils.d.ts +1 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +3 -2
- package/dist/components/ColorPicker/index.d.ts +1 -1
- package/dist/components/CommentSidebar/CommentSidebar.d.ts +8 -7
- package/dist/components/CommentSidebar/index.d.ts +1 -1
- package/dist/components/CommentToggle/CommentToggle.d.ts +8 -7
- package/dist/components/CommentToggle/index.d.ts +1 -1
- package/dist/components/CommentView/CommentView.d.ts +9 -8
- package/dist/components/CommentView/index.d.ts +1 -1
- package/dist/components/ConfigurableEditorWithAuth.d.ts +13 -12
- package/dist/components/DatePicker/DatePickerWidget.d.ts +7 -6
- package/dist/components/EmojiPickerWidget/EmojiPickerWidget.d.ts +3 -2
- package/dist/components/EmojiPickerWidget/index.d.ts +1 -1
- package/dist/components/FeatureSuggestionDialog/index.d.ts +6 -6
- package/dist/components/FileUpload/InsertFileDialog.d.ts +7 -7
- package/dist/components/FileUpload/InsertFileUploadedDialogBody.d.ts +5 -4
- package/dist/components/FileView/index.d.ts +9 -8
- package/dist/components/FontFamilySelect/FontFamilyMenu.d.ts +7 -6
- package/dist/components/FontSizePicker/FontSizeControl.d.ts +3 -2
- package/dist/components/FormatTextMenu/FormatTextMenu.d.ts +3 -2
- package/dist/components/FormatTextMenu/FormatTextMenuDrop.d.ts +3 -2
- package/dist/components/FormatTextMenu/index.d.ts +1 -1
- package/dist/components/HighlightColorPicker/HighlightColorPicker.d.ts +7 -6
- package/dist/components/HtmlViewDisplay.d.ts +3 -2
- package/dist/components/ImageComparisonDialog/index.d.ts +11 -10
- package/dist/components/ImageGenerationDialog/ImageGenerationManager.d.ts +11 -10
- package/dist/components/ImageGenerationDialog/index.d.ts +11 -10
- package/dist/components/ImageInsertTest.d.ts +3 -2
- package/dist/components/ImageView/ImageDialog/ImageUploadDialogBody.d.ts +9 -8
- package/dist/components/ImageView/ImageDialog/index.d.ts +6 -5
- package/dist/components/ImageView/ImageResizer.d.ts +16 -15
- package/dist/components/ImageView/index.d.ts +16 -15
- package/dist/components/InsertMenu/InsertMenu.d.ts +9 -8
- package/dist/components/InsertMenu/InsertMenuDrop.d.ts +9 -8
- package/dist/components/InsertMenu/index.d.ts +1 -1
- package/dist/components/LanguageSelectorDialog/index.d.ts +8 -7
- package/dist/components/NotePanelMenu/NotePanelMenu.d.ts +6 -5
- package/dist/components/NotePanelMenu/index.d.ts +1 -1
- package/dist/components/NotePanelView/NotePanelView.d.ts +9 -8
- package/dist/components/NotePanelView/index.d.ts +1 -1
- package/dist/components/Placeholder/Placeholder.d.ts +3 -2
- package/dist/components/Placeholder/index.d.ts +1 -1
- package/dist/components/Placeholder/styles.d.ts +1 -1
- package/dist/components/ScopedEditor.d.ts +8 -8
- package/dist/components/SignatureCaption/index.d.ts +6 -5
- package/dist/components/TableColorPicker/index.d.ts +8 -7
- package/dist/components/TableModal/TableModal.d.ts +10 -9
- package/dist/components/TextEnhanceDialog/index.d.ts +10 -9
- package/dist/components/ToneAdjustDialog/index.d.ts +8 -7
- package/dist/components/Toolbar/Toolbar.d.ts +3 -2
- package/dist/components/Toolbar/index.d.ts +1 -1
- package/dist/components/Toolbar/styles.d.ts +6 -6
- package/dist/components/ui/avatar.d.ts +6 -6
- package/dist/components/ui/badge.d.ts +9 -8
- package/dist/components/ui/button.d.ts +11 -10
- package/dist/components/ui/calendar.d.ts +8 -7
- package/dist/components/ui/card.d.ts +8 -8
- package/dist/components/ui/checkbox.d.ts +4 -4
- package/dist/components/ui/dialog.d.ts +19 -19
- package/dist/components/ui/dropdown-menu.d.ts +27 -27
- package/dist/components/ui/input.d.ts +3 -3
- package/dist/components/ui/label.d.ts +4 -4
- package/dist/components/ui/popover.d.ts +7 -7
- package/dist/components/ui/select.d.ts +13 -13
- package/dist/components/ui/separator.d.ts +4 -4
- package/dist/components/ui/sheet.d.ts +24 -24
- package/dist/components/ui/skeleton.d.ts +3 -3
- package/dist/components/ui/tabs.d.ts +7 -7
- package/dist/components/ui/textarea.d.ts +3 -3
- package/dist/components/ui/tooltip.d.ts +7 -7
- package/dist/constants.d.ts +22 -21
- package/dist/context/CommentContext.d.ts +43 -42
- package/dist/context/HtmlViewContext.d.ts +17 -16
- package/dist/context/ToolbarContext.d.ts +56 -55
- package/dist/editorConfig.d.ts +48 -48
- package/dist/{estree-164983f6.js → estree-b1fff53b.js} +1778 -1763
- package/dist/estree-b1fff53b.js.map +1 -0
- package/dist/hooks/useAutoExpandingHeight.d.ts +15 -15
- package/dist/hooks/useBlockFormat.d.ts +17 -16
- package/dist/hooks/useColorPicker.d.ts +6 -6
- package/dist/hooks/useCustomCommands.d.ts +3 -2
- package/dist/hooks/useDebounce.d.ts +1 -1
- package/dist/hooks/useEditorToolbar.d.ts +10 -9
- package/dist/hooks/useInsertMenu.d.ts +9 -9
- package/dist/hooks/useModal.d.ts +5 -5
- package/dist/hooks/useS3Uploader.d.ts +11 -11
- package/dist/hooks/useVoiceToText.d.ts +15 -15
- package/dist/{html-5586dbf6.js → html-f95ee5dc.js} +656 -701
- package/dist/html-f95ee5dc.js.map +1 -0
- package/dist/{html2pdf.bundle-0b180070.js → html2pdf.bundle-026397bd.js} +2 -2
- package/dist/html2pdf.bundle-026397bd.js.map +1 -0
- package/dist/{html2pdf.bundle.min-08b31c1f.js → html2pdf.bundle.min-49ff1939.js} +2 -2
- package/dist/html2pdf.bundle.min-49ff1939.js.map +1 -0
- package/dist/{index-68135c09.js → index-b8db2529.js} +2 -2
- package/dist/index-b8db2529.js.map +1 -0
- package/dist/{index-6360d552.js → index-b9ad2974.js} +469 -825
- package/dist/index-b9ad2974.js.map +1 -0
- package/dist/{index-8bcb5b47.js → index-cea164e5.js} +4 -4
- package/dist/index-cea164e5.js.map +1 -0
- package/dist/index.d.ts +8 -8
- package/dist/index.js +1 -1
- package/dist/lib/utils.d.ts +2 -1
- package/dist/main.d.ts +1 -0
- package/dist/{markdown-d513479b.js → markdown-1d9e6c3f.js} +1789 -1836
- package/dist/markdown-1d9e6c3f.js.map +1 -0
- package/dist/nodes/ChartNode.d.ts +41 -40
- package/dist/nodes/CommentNode.d.ts +34 -33
- package/dist/nodes/CommentedTextNode.d.ts +29 -28
- package/dist/nodes/EmbedNode.d.ts +26 -25
- package/dist/nodes/FileNode.d.ts +32 -31
- package/dist/nodes/ImageNode.d.ts +59 -58
- package/dist/nodes/MentionNode.d.ts +75 -74
- package/dist/nodes/NotePanelNode.d.ts +31 -30
- package/dist/pages/ConfigurableEditor/ConfigurableEditor.d.ts +25 -24
- package/dist/pages/ConfigurableEditor/index.d.ts +2 -2
- package/dist/pages/NotFound.d.ts +2 -2
- package/dist/pages/RichTextEditor.d.ts +6 -6
- package/dist/pages/TextareaEditor.d.ts +6 -6
- package/dist/pages/styles.d.ts +5 -5
- package/dist/plugins/AIChatPlugin.d.ts +11 -10
- package/dist/plugins/AndroidKeyboardFixPlugin.d.ts +16 -16
- package/dist/plugins/AutocompletePlugin.d.ts +22 -22
- package/dist/plugins/CodeBlockNormalizerPlugin.d.ts +8 -8
- package/dist/plugins/CodeBlockSelectAllPlugin.d.ts +8 -8
- package/dist/plugins/CodeHighlightPlugin.d.ts +3 -2
- package/dist/plugins/CombinedAutocompletGrammarPlugin.d.ts +21 -20
- package/dist/plugins/CommentBubblePlugin.d.ts +3 -2
- package/dist/plugins/CommentPlugin.d.ts +7 -6
- package/dist/plugins/CustomHorizontalRulePlugin/CustomHorizontalRuleNode.d.ts +29 -28
- package/dist/plugins/CustomHorizontalRulePlugin/CustomHorizontalRulePlugin.d.ts +3 -3
- package/dist/plugins/CustomHorizontalRulePlugin/HorizontalRuleCustomizationDialog.d.ts +7 -6
- package/dist/plugins/CustomHorizontalRulePlugin/index.d.ts +3 -3
- package/dist/plugins/DragDropPastePlugin/index.d.ts +8 -8
- package/dist/plugins/EmbedPreviewPlugin/FloatingEmbedMenuPlugin.d.ts +4 -3
- package/dist/plugins/EmbedPreviewPlugin/index.d.ts +6 -5
- package/dist/plugins/FilePlugin.d.ts +8 -7
- package/dist/plugins/FloatingEnhanceButton/index.d.ts +4 -3
- package/dist/plugins/FloatingLinkEditorPlugin/index.d.ts +6 -5
- package/dist/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +26 -25
- package/dist/plugins/GrammarCheckPlugin.d.ts +2 -1
- package/dist/plugins/HtmlCodeViewPlugin/index.d.ts +2 -2
- package/dist/plugins/HtmlImportPlugin.d.ts +5 -5
- package/dist/plugins/HtmlSyncPlugin.d.ts +3 -3
- package/dist/plugins/ImagePlugin.d.ts +7 -6
- package/dist/plugins/LinkPlugin/index.d.ts +6 -5
- package/dist/plugins/LinkPreviewPlugin/index.d.ts +2 -2
- package/dist/plugins/LocalStoragePlugin.d.ts +7 -6
- package/dist/plugins/MentionsPlugin/index.d.ts +7 -6
- package/dist/plugins/NotePanelPlugin.d.ts +7 -6
- package/dist/plugins/RichTextPastePlugin/index.d.ts +15 -15
- package/dist/plugins/SignatureCanvasPlugin/SignatureCanvasDialog.d.ts +6 -5
- package/dist/plugins/SignatureCanvasPlugin/SignatureCanvasPlugin.d.ts +9 -9
- package/dist/plugins/SignatureCanvasPlugin/index.d.ts +2 -2
- package/dist/plugins/SlashCommandPlugin/index.d.ts +2 -2
- package/dist/plugins/TableActionMenuPlugin/index.d.ts +6 -5
- package/dist/plugins/TableCellResizer/index.d.ts +2 -1
- package/dist/plugins/TableHoverActionsPlugin/index.d.ts +4 -4
- package/dist/plugins/TablePlugin.d.ts +3 -2
- package/dist/plugins/Tableimageautoresizeplugin.d.ts +1 -1
- package/dist/plugins/TextEnhancePlugin.d.ts +6 -6
- package/dist/plugins/TreeViewPlugin.d.ts +3 -2
- package/dist/plugins/UsageTrackingPlugin.d.ts +15 -15
- package/dist/plugins/VoiceTranscriptPlugin.d.ts +21 -21
- package/dist/plugins/WordCountPlugin.d.ts +3 -2
- package/dist/{postcss-f084f74d.js → postcss-c2592f3f.js} +1357 -1378
- package/dist/postcss-c2592f3f.js.map +1 -0
- package/dist/standalone-bcc7f37a.js +2649 -0
- package/dist/standalone-bcc7f37a.js.map +1 -0
- package/dist/styles/PlaygroundEditorTheme.d.ts +3 -2
- package/dist/types.d.ts +148 -147
- package/dist/typescript-48c10f50.js +13601 -0
- package/dist/typescript-48c10f50.js.map +1 -0
- package/dist/ui/ColorPicker.d.ts +14 -13
- package/dist/ui/Icons.d.ts +47 -47
- package/dist/ui/TextInput.d.ts +11 -10
- package/dist/utils/dateFormats.d.ts +33 -33
- package/dist/utils/debounce.d.ts +6 -5
- package/dist/utils/editorStyleConverter.d.ts +17 -16
- package/dist/utils/export.d.ts +2 -1
- package/dist/utils/getDOMRangeRect.d.ts +13 -13
- package/dist/utils/getSelectedNode.d.ts +3 -2
- package/dist/utils/helper.d.ts +3 -3
- package/dist/utils/index.d.ts +4 -3
- package/dist/utils/invarient.d.ts +1 -1
- package/dist/utils/setFloatingElemPosition.d.ts +8 -8
- package/dist/utils/setFloatingElemPositionForLinkEditor.d.ts +1 -1
- package/dist/utils/url.d.ts +9 -9
- package/package.json +127 -127
- package/dist/babel-d3085146.js.map +0 -1
- package/dist/estree-164983f6.js.map +0 -1
- package/dist/html-5586dbf6.js.map +0 -1
- package/dist/html2pdf.bundle-0b180070.js.map +0 -1
- package/dist/html2pdf.bundle.min-08b31c1f.js.map +0 -1
- package/dist/index-6360d552.js.map +0 -1
- package/dist/index-68135c09.js.map +0 -1
- package/dist/index-8bcb5b47.js.map +0 -1
- package/dist/markdown-d513479b.js.map +0 -1
- package/dist/postcss-f084f74d.js.map +0 -1
- package/dist/standalone-5a8c6b7e.js +0 -2518
- package/dist/standalone-5a8c6b7e.js.map +0 -1
- package/dist/typescript-b1005db4.js +0 -13705
- package/dist/typescript-b1005db4.js.map +0 -1
package/dist/types.d.ts
CHANGED
|
@@ -4,150 +4,151 @@ import { LucideProps } from 'lucide-react';
|
|
|
4
4
|
import { default as React, Dispatch, MouseEvent, ReactElement } from 'react';
|
|
5
5
|
import { blockTypeToBlockName } from './constants';
|
|
6
6
|
import { ImagePayload } from './nodes/ImageNode';
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
export
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export type
|
|
135
|
-
export type
|
|
136
|
-
export type
|
|
137
|
-
export
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
7
|
+
|
|
8
|
+
export type DebouncedFunctionType = (...params: any[]) => void;
|
|
9
|
+
export interface AlignMenuItem {
|
|
10
|
+
name: string;
|
|
11
|
+
icon: ReactElement<LucideProps>;
|
|
12
|
+
payload: ElementFormatType;
|
|
13
|
+
}
|
|
14
|
+
export interface FormatTextMenuItem {
|
|
15
|
+
name: string;
|
|
16
|
+
icon: ReactElement<LucideProps>;
|
|
17
|
+
payload: FormattingOptions;
|
|
18
|
+
}
|
|
19
|
+
export interface ToolbarProps {
|
|
20
|
+
editable: boolean;
|
|
21
|
+
enableUndoRedo?: boolean;
|
|
22
|
+
enableTextFormatting?: boolean;
|
|
23
|
+
enableAlignment?: boolean;
|
|
24
|
+
enableFontControls?: boolean;
|
|
25
|
+
enableTableOptions?: boolean;
|
|
26
|
+
enableImageOptions?: boolean;
|
|
27
|
+
enableInsertMenu?: boolean;
|
|
28
|
+
enableColorPicker?: boolean;
|
|
29
|
+
enableClearOptions?: boolean;
|
|
30
|
+
enableEmojiPicker?: boolean;
|
|
31
|
+
enableDatePicker?: boolean;
|
|
32
|
+
enableLinks?: boolean;
|
|
33
|
+
enableFormatTextMenu?: boolean;
|
|
34
|
+
enableCodeFormat?: boolean;
|
|
35
|
+
enableAIChat?: boolean;
|
|
36
|
+
enableHtmlView?: boolean;
|
|
37
|
+
enableTodoList?: boolean;
|
|
38
|
+
enableHtmlViewToggle?: boolean;
|
|
39
|
+
enableNotePanels?: boolean;
|
|
40
|
+
enableAutocompleteToggle?: boolean;
|
|
41
|
+
fonts?: string[];
|
|
42
|
+
editor: LexicalEditor;
|
|
43
|
+
activeEditor: LexicalEditor;
|
|
44
|
+
setActiveEditor: Dispatch<LexicalEditor>;
|
|
45
|
+
}
|
|
46
|
+
export interface FormatTextMenuProps {
|
|
47
|
+
hasFormat: Record<TextFormatType, boolean>;
|
|
48
|
+
blockType: keyof typeof blockTypeToBlockName;
|
|
49
|
+
}
|
|
50
|
+
export interface ColorPickerProps {
|
|
51
|
+
title: string;
|
|
52
|
+
onChange: (color: string) => void;
|
|
53
|
+
icon?: React.ReactElement<LucideProps>;
|
|
54
|
+
bgClassName?: string;
|
|
55
|
+
}
|
|
56
|
+
export interface BlockFormatMenuProps {
|
|
57
|
+
blockType: keyof typeof blockTypeToBlockName;
|
|
58
|
+
}
|
|
59
|
+
export interface PlaceholderProps {
|
|
60
|
+
className?: string;
|
|
61
|
+
children?: React.ReactNode;
|
|
62
|
+
}
|
|
63
|
+
export interface IMenuButtonStyle {
|
|
64
|
+
open: boolean;
|
|
65
|
+
isMdViewport: boolean;
|
|
66
|
+
}
|
|
67
|
+
export interface UseBlockFormatProps {
|
|
68
|
+
blockType: keyof typeof blockTypeToBlockName;
|
|
69
|
+
}
|
|
70
|
+
export interface UseCustomCommandsReturn {
|
|
71
|
+
clearEditorContent: () => void;
|
|
72
|
+
}
|
|
73
|
+
export interface LocalStoragePluginProps {
|
|
74
|
+
namespace: string;
|
|
75
|
+
}
|
|
76
|
+
export interface EmojiPluginProps {
|
|
77
|
+
title?: string;
|
|
78
|
+
onChange?: (emoji: EmojiClickData, event?: MouseEvent) => void;
|
|
79
|
+
icon?: React.ReactElement<LucideProps>;
|
|
80
|
+
}
|
|
81
|
+
export interface InsertFilePayload {
|
|
82
|
+
linkText: string;
|
|
83
|
+
src: string;
|
|
84
|
+
}
|
|
85
|
+
export type InsertImagePayload = Readonly<ImagePayload>;
|
|
86
|
+
export interface EditorConfigTypes {
|
|
87
|
+
enableToolbar: boolean;
|
|
88
|
+
toolbarOptions: {
|
|
89
|
+
enableUndoRedo: boolean;
|
|
90
|
+
enableTextFormatting: boolean;
|
|
91
|
+
enableAlignment: boolean;
|
|
92
|
+
enableFontControls: boolean;
|
|
93
|
+
enableTableOptions: boolean;
|
|
94
|
+
enableImageOptions?: boolean;
|
|
95
|
+
enableInsertMenu: boolean;
|
|
96
|
+
enableColorPicker: boolean;
|
|
97
|
+
enableClearOptions: boolean;
|
|
98
|
+
enableEmojiPicker: boolean;
|
|
99
|
+
enableDatePicker: boolean;
|
|
100
|
+
enableLinks: boolean;
|
|
101
|
+
enableFormatTextMenu: boolean;
|
|
102
|
+
enableCodeFormat: boolean;
|
|
103
|
+
enableAIChat: boolean;
|
|
104
|
+
enableHtmlView: boolean;
|
|
105
|
+
enableTodoList: boolean;
|
|
106
|
+
enableHtmlViewToggle: boolean;
|
|
107
|
+
enableNotePanels: boolean;
|
|
108
|
+
enableAutocompleteToggle: boolean;
|
|
109
|
+
};
|
|
110
|
+
enableFloatingMenu: boolean;
|
|
111
|
+
htmlViewOption: boolean;
|
|
112
|
+
floatingMenuOptions: {
|
|
113
|
+
bold: boolean;
|
|
114
|
+
italic: boolean;
|
|
115
|
+
underline: boolean;
|
|
116
|
+
uppercase: boolean;
|
|
117
|
+
lowercase: boolean;
|
|
118
|
+
capitalize: boolean;
|
|
119
|
+
strikethrough: boolean;
|
|
120
|
+
subscript: boolean;
|
|
121
|
+
superscript: boolean;
|
|
122
|
+
code: boolean;
|
|
123
|
+
link: boolean;
|
|
124
|
+
aiChat: boolean;
|
|
125
|
+
comment: boolean;
|
|
126
|
+
improve: boolean;
|
|
127
|
+
};
|
|
128
|
+
enableAutocomplete?: boolean;
|
|
129
|
+
autocompleteOptions?: {
|
|
130
|
+
minMatchLength?: number;
|
|
131
|
+
maxSuggestions?: number;
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
export type EditorActionType = "insert_text" | "create_table" | "change_font" | "apply_formatting" | "change_block_type" | "change_alignment" | "unknown";
|
|
135
|
+
export type FormattingOptions = "bold" | "italic" | "strikethrough" | "underline" | "code" | "highlight" | "subscript" | "superscript" | "bullet" | "number" | "check" | "quote";
|
|
136
|
+
export type BlockType = "paragraph" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bullet" | "number" | "check" | "quote" | "code";
|
|
137
|
+
export type TextAlignment = "left" | "center" | "right" | "justify";
|
|
138
|
+
export interface EditorAction {
|
|
139
|
+
type: EditorActionType;
|
|
140
|
+
parameters: {
|
|
141
|
+
text?: string;
|
|
142
|
+
rows?: number;
|
|
143
|
+
columns?: number;
|
|
144
|
+
font?: string;
|
|
145
|
+
size?: number;
|
|
146
|
+
color?: string;
|
|
147
|
+
format?: FormattingOptions | FormattingOptions[];
|
|
148
|
+
blockType?: BlockType;
|
|
149
|
+
alignment?: TextAlignment;
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
export interface EditorChatHandlerProps {
|
|
153
|
+
content: string;
|
|
154
|
+
}
|