eddyter 1.3.30
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 +444 -0
- package/dist/App.d.ts +3 -0
- package/dist/Provider/EditorProvider.d.ts +27 -0
- package/dist/Provider/LexicalProvider.d.ts +6 -0
- package/dist/api/ai/index.d.ts +31 -0
- package/dist/api/auth.d.ts +108 -0
- package/dist/api/config/axios.d.ts +2 -0
- package/dist/api/config/endpoints.d.ts +21 -0
- package/dist/api/featureSuggestion.d.ts +23 -0
- package/dist/api/linkPreview.d.ts +15 -0
- package/dist/api/transcript/index.d.ts +1 -0
- package/dist/assets/style.css +7990 -0
- package/dist/babel-d3085146.js +7776 -0
- package/dist/babel-d3085146.js.map +1 -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/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 +24 -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/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 +9 -0
- package/dist/components/InsertMenu/InsertMenuDrop.d.ts +9 -0
- package/dist/components/InsertMenu/index.d.ts +1 -0
- package/dist/components/LanguageSelectorDialog/index.d.ts +8 -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 +48 -0
- package/dist/estree-164983f6.js +4691 -0
- package/dist/estree-164983f6.js.map +1 -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/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 +11 -0
- package/dist/hooks/useVoiceToText.d.ts +15 -0
- package/dist/html-5586dbf6.js +2930 -0
- package/dist/html-5586dbf6.js.map +1 -0
- package/dist/html2pdf.bundle-8d3a50b2.js +46128 -0
- package/dist/html2pdf.bundle-8d3a50b2.js.map +1 -0
- package/dist/html2pdf.bundle.min-d80d5aa7.js +21987 -0
- package/dist/html2pdf.bundle.min-d80d5aa7.js.map +1 -0
- package/dist/index-68349a2f.js +1286 -0
- package/dist/index-68349a2f.js.map +1 -0
- package/dist/index-e6dfde84.js +41188 -0
- package/dist/index-e6dfde84.js.map +1 -0
- package/dist/index-e7705f79.js +190 -0
- package/dist/index-e7705f79.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +50 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/main.d.ts +0 -0
- package/dist/markdown-d513479b.js +3806 -0
- package/dist/markdown-d513479b.js.map +1 -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/FloatingEnhanceButton/index.d.ts +4 -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 +21 -0
- package/dist/plugins/WordCountPlugin.d.ts +3 -0
- package/dist/postcss-f084f74d.js +5420 -0
- package/dist/postcss-f084f74d.js.map +1 -0
- package/dist/standalone-5a8c6b7e.js +2518 -0
- package/dist/standalone-5a8c6b7e.js.map +1 -0
- package/dist/styles/PlaygroundEditorTheme.d.ts +3 -0
- package/dist/types.d.ts +155 -0
- package/dist/typescript-b1005db4.js +13705 -0
- package/dist/typescript-b1005db4.js.map +1 -0
- package/dist/ui/ColorPicker.d.ts +14 -0
- package/dist/ui/Icons.d.ts +48 -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 +127 -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,24 @@
|
|
|
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
|
+
declare const ConfigurableEditorWithAuth: React.FC<ConfigurableEditorWithAuthProps>;
|
|
24
|
+
export default ConfigurableEditorWithAuth;
|
|
@@ -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,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,9 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
export type ModalState = {
|
|
3
|
+
show: (renderModal: (onClose: () => void) => ReactNode) => void;
|
|
4
|
+
hide: () => void;
|
|
5
|
+
activeModal: ReactNode | null;
|
|
6
|
+
};
|
|
7
|
+
export declare const useModal: () => ModalState;
|
|
8
|
+
declare const InsertMenu: FC;
|
|
9
|
+
export default InsertMenu;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
export type ModalState = {
|
|
3
|
+
show: (renderModal: (onClose: () => void) => ReactNode) => void;
|
|
4
|
+
hide: () => void;
|
|
5
|
+
activeModal: ReactNode | null;
|
|
6
|
+
};
|
|
7
|
+
export declare const useModal: () => ModalState;
|
|
8
|
+
declare const InsertMenuDrop: FC;
|
|
9
|
+
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 @@
|
|
|
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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Toolbar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VoiceTranscriptIcon } from './VoiceTranscriptIcon';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
5
|
+
declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
6
|
+
export { Avatar, AvatarFallback, AvatarImage };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
6
|
+
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7
|
+
}
|
|
8
|
+
declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "link" | "default" | "toolbar" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
|
+
size?: "default" | "sm" | "md" | "lg" | "icon" | "icon-sm" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
7
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
export { Checkbox };
|