eddyter 1.3.5
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/LICENSE +24 -0
- package/README.md +489 -0
- package/dist/App.d.ts +3 -0
- package/dist/Provider/EditorProvider.d.ts +32 -0
- package/dist/Provider/LexicalProvider.d.ts +6 -0
- package/dist/api/ai/index.d.ts +83 -0
- package/dist/api/analytics.d.ts +21 -0
- package/dist/api/auth.d.ts +108 -0
- package/dist/api/bugReport.d.ts +27 -0
- package/dist/api/config/axios.d.ts +2 -0
- package/dist/api/config/endpoints.d.ts +24 -0
- package/dist/api/featureSuggestion.d.ts +23 -0
- package/dist/api/feedback.d.ts +26 -0
- package/dist/api/linkPreview.d.ts +15 -0
- package/dist/api/transcript/index.d.ts +21 -0
- package/dist/assets/style.css +1 -0
- package/dist/babel-44680aef.js +7744 -0
- package/dist/components/AiPlugin/index.d.ts +6 -0
- package/dist/components/AlignMenu/AlignMenu.d.ts +9 -0
- package/dist/components/AlignMenu/AlignMenuDrop.d.ts +3 -0
- package/dist/components/AlignMenu/index.d.ts +1 -0
- package/dist/components/AutoExpandingDemo.d.ts +6 -0
- package/dist/components/BlockFormatMenu/BlockFormatMenu.d.ts +4 -0
- package/dist/components/BlockFormatMenu/constants.d.ts +14 -0
- package/dist/components/BlockFormatMenu/index.d.ts +1 -0
- package/dist/components/BugReportDialog/index.d.ts +6 -0
- package/dist/components/ChartEditDialog.d.ts +9 -0
- package/dist/components/ChartInsertDialog.d.ts +8 -0
- package/dist/components/CodeActionMenuPlugin/components/CopyButton/index.d.ts +7 -0
- package/dist/components/CodeActionMenuPlugin/components/PrettierButton/index.d.ts +9 -0
- package/dist/components/CodeActionMenuPlugin/index.d.ts +4 -0
- package/dist/components/CodeActionMenuPlugin/utils.d.ts +1 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +4 -0
- package/dist/components/ColorPicker/index.d.ts +1 -0
- package/dist/components/CommentSidebar/CommentSidebar.d.ts +8 -0
- package/dist/components/CommentSidebar/index.d.ts +1 -0
- package/dist/components/CommentToggle/CommentToggle.d.ts +8 -0
- package/dist/components/CommentToggle/index.d.ts +1 -0
- package/dist/components/CommentView/CommentView.d.ts +9 -0
- package/dist/components/CommentView/index.d.ts +1 -0
- package/dist/components/ConfigurableEditorWithAuth.d.ts +36 -0
- package/dist/components/ContentPreview/index.d.ts +37 -0
- package/dist/components/DatePicker/DatePickerWidget.d.ts +8 -0
- package/dist/components/EmojiPickerWidget/EmojiPickerWidget.d.ts +4 -0
- package/dist/components/EmojiPickerWidget/index.d.ts +1 -0
- package/dist/components/FeatureSuggestionDialog/index.d.ts +6 -0
- package/dist/components/FeedbackDialog/index.d.ts +7 -0
- package/dist/components/FileUpload/InsertFileDialog.d.ts +7 -0
- package/dist/components/FileUpload/InsertFileUploadedDialogBody.d.ts +5 -0
- package/dist/components/FileView/index.d.ts +9 -0
- package/dist/components/FontFamilySelect/FontFamilyMenu.d.ts +8 -0
- package/dist/components/FontSizePicker/FontSizeControl.d.ts +3 -0
- package/dist/components/FormatTextMenu/FormatTextMenu.d.ts +4 -0
- package/dist/components/FormatTextMenu/FormatTextMenuDrop.d.ts +4 -0
- package/dist/components/FormatTextMenu/index.d.ts +1 -0
- package/dist/components/HighlightColorPicker/HighlightColorPicker.d.ts +7 -0
- package/dist/components/HtmlViewDisplay.d.ts +3 -0
- package/dist/components/ImageComparisonDialog/index.d.ts +11 -0
- package/dist/components/ImageGenerationDialog/ImageGenerationManager.d.ts +11 -0
- package/dist/components/ImageGenerationDialog/index.d.ts +11 -0
- package/dist/components/ImageInsertTest.d.ts +3 -0
- package/dist/components/ImageView/ImageDialog/ImageUploadDialogBody.d.ts +9 -0
- package/dist/components/ImageView/ImageDialog/index.d.ts +6 -0
- package/dist/components/ImageView/ImageResizer.d.ts +16 -0
- package/dist/components/ImageView/index.d.ts +18 -0
- package/dist/components/InsertMenu/InsertMenu.d.ts +10 -0
- package/dist/components/InsertMenu/InsertMenuDrop.d.ts +10 -0
- package/dist/components/InsertMenu/index.d.ts +1 -0
- package/dist/components/LanguageSelectorDialog/index.d.ts +8 -0
- package/dist/components/LinkPreviewHover/index.d.ts +40 -0
- package/dist/components/NotePanelMenu/NotePanelMenu.d.ts +6 -0
- package/dist/components/NotePanelMenu/index.d.ts +1 -0
- package/dist/components/NotePanelView/NotePanelView.d.ts +10 -0
- package/dist/components/NotePanelView/index.d.ts +1 -0
- package/dist/components/Placeholder/Placeholder.d.ts +4 -0
- package/dist/components/Placeholder/index.d.ts +1 -0
- package/dist/components/Placeholder/styles.d.ts +1 -0
- package/dist/components/ScopedEditor.d.ts +8 -0
- package/dist/components/SignatureCaption/index.d.ts +6 -0
- package/dist/components/TableColorPicker/index.d.ts +8 -0
- package/dist/components/TableModal/TableModal.d.ts +10 -0
- package/dist/components/TextEnhanceDialog/index.d.ts +10 -0
- package/dist/components/ToneAdjustDialog/index.d.ts +8 -0
- package/dist/components/Toolbar/Toolbar.d.ts +4 -0
- package/dist/components/Toolbar/index.d.ts +1 -0
- package/dist/components/Toolbar/styles.d.ts +6 -0
- package/dist/components/VoiceTranscriptIcon/VoiceTranscriptIcon.d.ts +2 -0
- package/dist/components/VoiceTranscriptIcon/index.d.ts +1 -0
- package/dist/components/ui/avatar.d.ts +6 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/calendar.d.ts +8 -0
- package/dist/components/ui/card.d.ts +8 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/dialog.d.ts +19 -0
- package/dist/components/ui/dropdown-menu.d.ts +27 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/popover.d.ts +7 -0
- package/dist/components/ui/select.d.ts +13 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/sheet.d.ts +25 -0
- package/dist/components/ui/skeleton.d.ts +3 -0
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/constants.d.ts +40 -0
- package/dist/context/CommentContext.d.ts +43 -0
- package/dist/context/HtmlViewContext.d.ts +17 -0
- package/dist/context/ToolbarContext.d.ts +57 -0
- package/dist/editorConfig.d.ts +70 -0
- package/dist/estree-a7dc9ac5.js +4647 -0
- package/dist/hooks/useAutoExpandingHeight.d.ts +15 -0
- package/dist/hooks/useBlockFormat.d.ts +20 -0
- package/dist/hooks/useColorPicker.d.ts +6 -0
- package/dist/hooks/useCustomCommands.d.ts +3 -0
- package/dist/hooks/useDebounce.d.ts +1 -0
- package/dist/hooks/useEditorToolbar.d.ts +10 -0
- package/dist/hooks/useFeedbackEligibility.d.ts +18 -0
- package/dist/hooks/useInsertMenu.d.ts +9 -0
- package/dist/hooks/useModal.d.ts +5 -0
- package/dist/hooks/useReactNativeBridge.d.ts +54 -0
- package/dist/hooks/useS3Uploader.d.ts +21 -0
- package/dist/hooks/useVoiceToText.d.ts +20 -0
- package/dist/html-f2fcab26.js +2882 -0
- package/dist/html2pdf.bundle-e489c7ca.js +34001 -0
- package/dist/html2pdf.bundle.min-1a7f5c4e.js +21964 -0
- package/dist/index-87b1c23b.js +111 -0
- package/dist/index-8ec718de.js +1002 -0
- package/dist/index-ce18ac94.js +35387 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +46 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/main.d.ts +0 -0
- package/dist/markdown-48d2f5f1.js +3592 -0
- package/dist/nodes/ChartNode.d.ts +41 -0
- package/dist/nodes/CommentNode.d.ts +34 -0
- package/dist/nodes/CommentedTextNode.d.ts +29 -0
- package/dist/nodes/EmbedNode.d.ts +32 -0
- package/dist/nodes/FileNode.d.ts +32 -0
- package/dist/nodes/ImageNode.d.ts +65 -0
- package/dist/nodes/MentionNode.d.ts +75 -0
- package/dist/nodes/NotePanelNode.d.ts +31 -0
- package/dist/pages/ConfigurableEditor/ConfigurableEditor.d.ts +26 -0
- package/dist/pages/ConfigurableEditor/index.d.ts +2 -0
- package/dist/pages/NotFound.d.ts +2 -0
- package/dist/pages/RichTextEditor.d.ts +6 -0
- package/dist/pages/TextareaEditor.d.ts +6 -0
- package/dist/pages/styles.d.ts +5 -0
- package/dist/pcm-processor.js +50 -0
- package/dist/plugins/AIChatPlugin.d.ts +11 -0
- package/dist/plugins/AndroidKeyboardFixPlugin.d.ts +16 -0
- package/dist/plugins/AutocompletePlugin.d.ts +22 -0
- package/dist/plugins/CodeBlockNormalizerPlugin.d.ts +8 -0
- package/dist/plugins/CodeBlockSelectAllPlugin.d.ts +8 -0
- package/dist/plugins/CodeHighlightPlugin.d.ts +3 -0
- package/dist/plugins/CombinedAutocompletGrammarPlugin.d.ts +20 -0
- package/dist/plugins/CommentBubblePlugin.d.ts +3 -0
- package/dist/plugins/CommentPlugin.d.ts +8 -0
- package/dist/plugins/CustomHorizontalRulePlugin/CustomHorizontalRuleNode.d.ts +30 -0
- package/dist/plugins/CustomHorizontalRulePlugin/CustomHorizontalRulePlugin.d.ts +3 -0
- package/dist/plugins/CustomHorizontalRulePlugin/HorizontalRuleCustomizationDialog.d.ts +8 -0
- package/dist/plugins/CustomHorizontalRulePlugin/index.d.ts +3 -0
- package/dist/plugins/DragDropPastePlugin/index.d.ts +8 -0
- package/dist/plugins/EmbedPreviewPlugin/FloatingEmbedMenuPlugin.d.ts +3 -0
- package/dist/plugins/EmbedPreviewPlugin/index.d.ts +6 -0
- package/dist/plugins/FilePlugin.d.ts +8 -0
- package/dist/plugins/FloatingLinkEditorPlugin/index.d.ts +6 -0
- package/dist/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +27 -0
- package/dist/plugins/GrammarCheckPlugin.d.ts +1 -0
- package/dist/plugins/HtmlCodeViewPlugin/index.d.ts +2 -0
- package/dist/plugins/HtmlImportPlugin.d.ts +5 -0
- package/dist/plugins/HtmlSyncPlugin.d.ts +3 -0
- package/dist/plugins/ImagePlugin.d.ts +9 -0
- package/dist/plugins/LinkPlugin/index.d.ts +6 -0
- package/dist/plugins/LinkPreviewPlugin/index.d.ts +4 -0
- package/dist/plugins/LocalStoragePlugin.d.ts +8 -0
- package/dist/plugins/MarkdownShortcutsPlugin/index.d.ts +20 -0
- package/dist/plugins/MentionsPlugin/index.d.ts +7 -0
- package/dist/plugins/NotePanelPlugin.d.ts +7 -0
- package/dist/plugins/PasteOptionsPlugin/index.d.ts +17 -0
- package/dist/plugins/RichTextPastePlugin/index.d.ts +6 -0
- package/dist/plugins/SignatureCanvasPlugin/SignatureCanvasDialog.d.ts +6 -0
- package/dist/plugins/SignatureCanvasPlugin/SignatureCanvasPlugin.d.ts +9 -0
- package/dist/plugins/SignatureCanvasPlugin/index.d.ts +2 -0
- package/dist/plugins/SlashCommandPlugin/index.d.ts +2 -0
- package/dist/plugins/TableActionMenuPlugin/index.d.ts +6 -0
- package/dist/plugins/TableCellResizer/index.d.ts +2 -0
- package/dist/plugins/TableHoverActionsPlugin/index.d.ts +4 -0
- package/dist/plugins/TablePlugin.d.ts +5 -0
- package/dist/plugins/Tableimageautoresizeplugin.d.ts +1 -0
- package/dist/plugins/TextEnhancePlugin.d.ts +6 -0
- package/dist/plugins/TreeViewPlugin.d.ts +3 -0
- package/dist/plugins/UsageTrackingPlugin.d.ts +15 -0
- package/dist/plugins/VoiceTranscriptPlugin.d.ts +22 -0
- package/dist/plugins/WordCountPlugin.d.ts +3 -0
- package/dist/postcss-9ac167c3.js +5172 -0
- package/dist/services/chartService.d.ts +19 -0
- package/dist/standalone-2029bc8b.js +2467 -0
- package/dist/styles/PlaygroundEditorTheme.d.ts +3 -0
- package/dist/types.d.ts +207 -0
- package/dist/typescript-bd1bb88f.js +13632 -0
- package/dist/ui/ColorPicker.d.ts +14 -0
- package/dist/ui/Icons.d.ts +80 -0
- package/dist/ui/TextInput.d.ts +11 -0
- package/dist/utils/dateFormats.d.ts +33 -0
- package/dist/utils/debounce.d.ts +6 -0
- package/dist/utils/editorStyleConverter.d.ts +17 -0
- package/dist/utils/export.d.ts +2 -0
- package/dist/utils/getDOMRangeRect.d.ts +13 -0
- package/dist/utils/getSelectedNode.d.ts +3 -0
- package/dist/utils/helper.d.ts +3 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/invarient.d.ts +1 -0
- package/dist/utils/setFloatingElemPosition.d.ts +8 -0
- package/dist/utils/setFloatingElemPositionForLinkEditor.d.ts +1 -0
- package/dist/utils/url.d.ts +9 -0
- package/dist/vite.svg +1 -0
- package/package.json +150 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const AI_REPHRASE_COMMAND: import('../../../node_modules/lexical').LexicalCommand<unknown>;
|
|
2
|
+
export declare const AI_IMAGE_COMMAND: import('../../../node_modules/lexical').LexicalCommand<string | undefined>;
|
|
3
|
+
export declare const AI_TRANSLATE_COMMAND: import('../../../node_modules/lexical').LexicalCommand<string | undefined>;
|
|
4
|
+
export declare const AI_ADJUST_TONE_COMMAND: import('../../../node_modules/lexical').LexicalCommand<string | undefined>;
|
|
5
|
+
declare const AIRephrasePlugin: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default AIRephrasePlugin;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './AlignMenu';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './BlockFormatMenu';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChartMetadata } from '../nodes/ChartNode';
|
|
2
|
+
interface ChartEditDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onOpenChange: (open: boolean) => void;
|
|
5
|
+
metadata: ChartMetadata;
|
|
6
|
+
onSave: (metadata: ChartMetadata) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function ChartEditDialog({ open, onOpenChange, metadata, onSave, }: ChartEditDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ChartMetadata } from '../nodes/ChartNode';
|
|
2
|
+
interface ChartInsertDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onOpenChange: (open: boolean) => void;
|
|
5
|
+
onInsert: (metadata: ChartMetadata) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function ChartInsertDialog({ open, onOpenChange, onInsert, }: ChartInsertDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LexicalEditor } from '../../../../../node_modules/lexical';
|
|
2
|
+
interface Props {
|
|
3
|
+
editor: LexicalEditor;
|
|
4
|
+
getCodeDOMNode: () => HTMLElement | null;
|
|
5
|
+
}
|
|
6
|
+
export declare function CopyButton({ editor, getCodeDOMNode }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LexicalEditor } from '../../../../../node_modules/lexical';
|
|
2
|
+
interface Props {
|
|
3
|
+
lang: string;
|
|
4
|
+
editor: LexicalEditor;
|
|
5
|
+
getCodeDOMNode: () => HTMLElement | null;
|
|
6
|
+
}
|
|
7
|
+
export declare function canBePrettier(lang: string): boolean;
|
|
8
|
+
export declare function PrettierButton({ lang, editor, getCodeDOMNode }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useDebounce<T extends (...args: never[]) => void>(fn: T, ms: number, maxWait?: number): import('lodash').DebouncedFunc<(...args: Parameters<T>) => void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ColorPicker';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface CommentSidebarProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onCommentCountChange?: (count: number) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const CommentSidebar: React.FC<CommentSidebarProps>;
|
|
8
|
+
export default CommentSidebar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CommentSidebar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CommentToggle';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CommentView';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ApiResponse } from '../api/auth';
|
|
3
|
+
interface ConfigurableEditorWithAuthProps {
|
|
4
|
+
apiKey: string;
|
|
5
|
+
initialContent?: string;
|
|
6
|
+
onChange?: (html: string) => void;
|
|
7
|
+
defaultFontFamilies?: string[];
|
|
8
|
+
mentionUserList?: string[];
|
|
9
|
+
onAuthSuccess?: () => void;
|
|
10
|
+
onAuthError?: (error: string) => void;
|
|
11
|
+
customVerifyKey?: (apiKey: string) => Promise<ApiResponse>;
|
|
12
|
+
/** Enable React Native bridge for WebView communication */
|
|
13
|
+
enableReactNativeBridge?: boolean;
|
|
14
|
+
/** Called when editor is fully loaded and ready (React Native bridge) */
|
|
15
|
+
onEditorReady?: () => void;
|
|
16
|
+
/** Called on editor focus (React Native bridge) */
|
|
17
|
+
onFocus?: () => void;
|
|
18
|
+
/** Called on editor blur (React Native bridge) */
|
|
19
|
+
onBlur?: () => void;
|
|
20
|
+
/** Called when editor height changes (React Native bridge) */
|
|
21
|
+
onHeightChange?: (height: number) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Editor mode:
|
|
24
|
+
* - "edit" (default): Full editor with all editing capabilities
|
|
25
|
+
* - "preview": Read-only preview with interactive features (link preview, etc.)
|
|
26
|
+
*/
|
|
27
|
+
mode?: "edit" | "preview";
|
|
28
|
+
/** Additional class name for the preview container (only used in preview mode) */
|
|
29
|
+
previewClassName?: string;
|
|
30
|
+
/** Additional styles for the preview container (only used in preview mode) */
|
|
31
|
+
previewStyle?: React.CSSProperties;
|
|
32
|
+
/** Click handler for preview mode (useful for switching to edit mode) */
|
|
33
|
+
onPreviewClick?: () => void;
|
|
34
|
+
}
|
|
35
|
+
declare const ConfigurableEditorWithAuth: React.FC<ConfigurableEditorWithAuthProps>;
|
|
36
|
+
export default ConfigurableEditorWithAuth;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* ContentPreview - A component for displaying saved editor content with all interactive features
|
|
4
|
+
* (like link previews) enabled automatically.
|
|
5
|
+
*
|
|
6
|
+
* This is the recommended way to display content that was created with ConfigurableEditor.
|
|
7
|
+
* When used within EditorProvider, it automatically enables:
|
|
8
|
+
* - Link preview on hover (handled by EditorProvider)
|
|
9
|
+
* - Proper styling
|
|
10
|
+
* - All interactive features
|
|
11
|
+
*
|
|
12
|
+
* Note: Link preview is now automatically handled by EditorProvider.
|
|
13
|
+
* Just wrap your app with EditorProvider and link preview works everywhere!
|
|
14
|
+
*
|
|
15
|
+
* Usage:
|
|
16
|
+
* ```tsx
|
|
17
|
+
* import { ContentPreview, EditorProvider } from "@craxinno/cteditor";
|
|
18
|
+
*
|
|
19
|
+
* <EditorProvider>
|
|
20
|
+
* <ConfigurableEditorWithAuth apiKey={apiKey} ... />
|
|
21
|
+
* {/* Content preview also gets link preview automatically! *\/}
|
|
22
|
+
* <ContentPreview content={savedHtmlContent} />
|
|
23
|
+
* </EditorProvider>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
interface ContentPreviewProps {
|
|
27
|
+
/** The HTML content to display (from editor's onChange) */
|
|
28
|
+
content: string;
|
|
29
|
+
/** Additional CSS class names */
|
|
30
|
+
className?: string;
|
|
31
|
+
/** Additional inline styles */
|
|
32
|
+
style?: React.CSSProperties;
|
|
33
|
+
/** Click handler for the content area */
|
|
34
|
+
onClick?: () => void;
|
|
35
|
+
}
|
|
36
|
+
export default function ContentPreview({ content, className, style, onClick, }: ContentPreviewProps): JSX.Element;
|
|
37
|
+
export type { ContentPreviewProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LexicalEditor } from '../../../node_modules/lexical';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
interface DatePickerWidgetProps {
|
|
4
|
+
editor: LexicalEditor;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const DatePickerWidget: React.FC<DatePickerWidgetProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './EmojiPickerWidget';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface FeedbackDialogProps {
|
|
2
|
+
open: boolean;
|
|
3
|
+
onOpenChange: (open: boolean) => void;
|
|
4
|
+
onFeedbackSubmitted?: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function FeedbackDialog({ open, onOpenChange, onFeedbackSubmitted }: FeedbackDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LexicalEditor } from '../../../node_modules/lexical';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
interface FontFamilyMenuProps {
|
|
4
|
+
fonts?: string[];
|
|
5
|
+
activeEditor: LexicalEditor;
|
|
6
|
+
}
|
|
7
|
+
declare const FontFamilyMenu: FC<FontFamilyMenuProps>;
|
|
8
|
+
export default FontFamilyMenu;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './FormatTextMenu';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ImageComparisonDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onOpenChange: (open: boolean) => void;
|
|
5
|
+
oldImageUrl: string;
|
|
6
|
+
newImageUrl: string;
|
|
7
|
+
onReplace: () => void;
|
|
8
|
+
onCancel: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const ImageComparisonDialog: React.FC<ImageComparisonDialogProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface ImageGenerationManagerRef {
|
|
3
|
+
openDialog: (initialText?: string) => void;
|
|
4
|
+
setGenerating: (generating: boolean) => void;
|
|
5
|
+
}
|
|
6
|
+
interface ImageGenerationManagerProps {
|
|
7
|
+
onGenerate: (prompt: string) => Promise<string>;
|
|
8
|
+
onInsertImage: (imageUrl: string, prompt: string) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const ImageGenerationManager: React.ForwardRefExoticComponent<ImageGenerationManagerProps & React.RefAttributes<ImageGenerationManagerRef>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ImageGenerationDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onOpenChange: (open: boolean) => void;
|
|
5
|
+
onGenerate: (prompt: string) => Promise<string>;
|
|
6
|
+
onInsertImage: (imageUrl: string, prompt: string) => void;
|
|
7
|
+
isGenerating: boolean;
|
|
8
|
+
initialText?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const ImageGenerationDialog: React.FC<ImageGenerationDialogProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InsertImagePayload } from '../../../types';
|
|
2
|
+
declare const InsertImageUploadedDialogBody: ({ onClick, }: {
|
|
3
|
+
onClick: (payload: InsertImagePayload) => void;
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare const InsertImageUrlDialogBody: ({ onClick, }: {
|
|
6
|
+
onClick: (payload: InsertImagePayload) => void;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default InsertImageUploadedDialogBody;
|
|
9
|
+
export { InsertImageUrlDialogBody };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LexicalEditor } from '../../../node_modules/lexical';
|
|
2
|
+
export default function ImageResizer({ onResizeStart, onResizeEnd, buttonRef, imageRef, maxWidth, editor, showCaption, setShowCaption, captionsEnabled, }: {
|
|
3
|
+
editor: LexicalEditor;
|
|
4
|
+
buttonRef: {
|
|
5
|
+
current: null | HTMLButtonElement;
|
|
6
|
+
};
|
|
7
|
+
imageRef: {
|
|
8
|
+
current: null | HTMLElement;
|
|
9
|
+
};
|
|
10
|
+
maxWidth?: number;
|
|
11
|
+
onResizeEnd: (width: "inherit" | number, height: "inherit" | number) => void;
|
|
12
|
+
onResizeStart: () => void;
|
|
13
|
+
setShowCaption: (show: boolean) => void;
|
|
14
|
+
showCaption: boolean;
|
|
15
|
+
captionsEnabled: boolean;
|
|
16
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LexicalCommand, LexicalEditor, NodeKey } from '../../../node_modules/lexical';
|
|
2
|
+
import { ImagePosition } from '../../nodes/ImageNode';
|
|
3
|
+
export declare const RIGHT_CLICK_IMAGE_COMMAND: LexicalCommand<MouseEvent>;
|
|
4
|
+
export default function ImageComponent({ src, altText, nodeKey, width, height, maxWidth, resizable, showCaption, caption, captionsEnabled, originalPrompt, position, linkUrl, }: {
|
|
5
|
+
altText: string;
|
|
6
|
+
caption: LexicalEditor;
|
|
7
|
+
height: "inherit" | number;
|
|
8
|
+
maxWidth: number;
|
|
9
|
+
nodeKey: NodeKey;
|
|
10
|
+
resizable: boolean;
|
|
11
|
+
showCaption: boolean;
|
|
12
|
+
src: string;
|
|
13
|
+
width: "inherit" | number;
|
|
14
|
+
captionsEnabled: boolean;
|
|
15
|
+
originalPrompt?: string;
|
|
16
|
+
position?: ImagePosition;
|
|
17
|
+
linkUrl?: string;
|
|
18
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { InsertMenuProps } from '../../types';
|
|
3
|
+
export type ModalState = {
|
|
4
|
+
show: (renderModal: (onClose: () => void) => ReactNode) => void;
|
|
5
|
+
hide: () => void;
|
|
6
|
+
activeModal: ReactNode | null;
|
|
7
|
+
};
|
|
8
|
+
export declare const useModal: () => ModalState;
|
|
9
|
+
declare const InsertMenu: FC<InsertMenuProps>;
|
|
10
|
+
export default InsertMenu;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { InsertMenuProps } from '../../types';
|
|
3
|
+
export type ModalState = {
|
|
4
|
+
show: (renderModal: (onClose: () => void) => ReactNode) => void;
|
|
5
|
+
hide: () => void;
|
|
6
|
+
activeModal: ReactNode | null;
|
|
7
|
+
};
|
|
8
|
+
export declare const useModal: () => ModalState;
|
|
9
|
+
declare const InsertMenuDrop: FC<InsertMenuProps>;
|
|
10
|
+
export default InsertMenuDrop;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './InsertMenu';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface LanguageSelectorDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onOpenChange: (open: boolean) => void;
|
|
5
|
+
onLanguageSelect: (language: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const LanguageSelectorDialog: React.FC<LanguageSelectorDialogProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* LinkPreviewHover - A standalone component that provides link preview on hover
|
|
4
|
+
* Can be used with any HTML container (not dependent on Lexical editor)
|
|
5
|
+
*
|
|
6
|
+
* Usage:
|
|
7
|
+
* <LinkPreviewHover containerRef={myContainerRef} apiKey={apiKey} />
|
|
8
|
+
*
|
|
9
|
+
* Or wrap content:
|
|
10
|
+
* <LinkPreviewHover apiKey={apiKey}>
|
|
11
|
+
* <div dangerouslySetInnerHTML={{ __html: htmlContent }} />
|
|
12
|
+
* </LinkPreviewHover>
|
|
13
|
+
*/
|
|
14
|
+
interface LinkPreviewHoverProps {
|
|
15
|
+
/** Reference to the container element to attach hover listeners */
|
|
16
|
+
containerRef?: React.RefObject<HTMLElement>;
|
|
17
|
+
/** Children to wrap (alternative to containerRef) */
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
/** API key for authentication */
|
|
20
|
+
apiKey?: string;
|
|
21
|
+
/** Delay before showing preview (ms) */
|
|
22
|
+
showDelay?: number;
|
|
23
|
+
/** Delay before hiding preview (ms) */
|
|
24
|
+
hideDelay?: number;
|
|
25
|
+
/** Enable/disable the preview */
|
|
26
|
+
enabled?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export default function LinkPreviewHover({ containerRef, children, apiKey, showDelay, hideDelay, enabled, }: LinkPreviewHoverProps): JSX.Element;
|
|
29
|
+
interface LinkPreviewCardProps {
|
|
30
|
+
url: string;
|
|
31
|
+
rect: DOMRect;
|
|
32
|
+
apiKey?: string;
|
|
33
|
+
onClose: () => void;
|
|
34
|
+
}
|
|
35
|
+
declare function LinkPreviewCard({ url, rect, apiKey, onClose }: LinkPreviewCardProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
declare function TypeIcon({ type }: {
|
|
37
|
+
type: string;
|
|
38
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export { LinkPreviewCard, TypeIcon };
|
|
40
|
+
export type { LinkPreviewHoverProps, LinkPreviewCardProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './NotePanelMenu';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { NotePanelType } from '../../nodes/NotePanelNode';
|
|
3
|
+
interface NotePanelViewProps {
|
|
4
|
+
type: NotePanelType;
|
|
5
|
+
title: string;
|
|
6
|
+
content: any;
|
|
7
|
+
nodeKey: string;
|
|
8
|
+
}
|
|
9
|
+
declare const NotePanelView: React.FC<NotePanelViewProps>;
|
|
10
|
+
export default NotePanelView;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './NotePanelView';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Placeholder';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PlaceholderContainer: any;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface CustomModalProps {
|
|
3
|
+
title: string;
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
footer: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export default function TableModal({ title, isOpen, onClose, children, footer, }: CustomModalProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface TextEnhanceDialogRef {
|
|
3
|
+
openDialog: (selectedText: string, onInsert: (enhancedText: string) => void) => void;
|
|
4
|
+
closeDialog: () => void;
|
|
5
|
+
}
|
|
6
|
+
interface TextEnhanceDialogProps {
|
|
7
|
+
onEnhance: (selectedText: string, prompt: string) => Promise<string>;
|
|
8
|
+
}
|
|
9
|
+
export declare const TextEnhanceDialog: React.ForwardRefExoticComponent<TextEnhanceDialogProps & React.RefAttributes<TextEnhanceDialogRef>>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ToneAdjustDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onOpenChange: (open: boolean) => void;
|
|
5
|
+
onToneSelect: (tone: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const ToneAdjustDialog: React.FC<ToneAdjustDialogProps>;
|
|
8
|
+
export {};
|