vdc-editor 0.0.1
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 +177 -0
- package/lib/index.d.ts +3 -0
- package/lib/src/components/ActionButton.vue.d.ts +90 -0
- package/lib/src/components/ActionDropdownButton.vue.d.ts +67 -0
- package/lib/src/components/ActionDropdownButtonSplit.vue.d.ts +71 -0
- package/lib/src/components/ActionMenuButton.vue.d.ts +62 -0
- package/lib/src/components/ColorPicker.vue.d.ts +51 -0
- package/lib/src/components/CoreEditor.vue.d.ts +162 -0
- package/lib/src/components/SelectContextMenu.vue.d.ts +28 -0
- package/lib/src/components/SuperTextView.vue.d.ts +2 -0
- package/lib/src/components/Toolbar.vue.d.ts +31 -0
- package/lib/src/components/icons/Icon.vue.d.ts +20 -0
- package/lib/src/components/icons/icons.d.ts +106 -0
- package/lib/src/components/icons/index.d.ts +4 -0
- package/lib/src/components/icons/setupIcon.d.ts +1 -0
- package/lib/src/components/menus/BasicBubble.d.ts +59 -0
- package/lib/src/components/menus/ColumnsBubbleMenu.vue.d.ts +31 -0
- package/lib/src/components/menus/LinkBubbleMenu.vue.d.ts +31 -0
- package/lib/src/components/menus/TableBubbleMenu.vue.d.ts +24 -0
- package/lib/src/components/ui/accordion/index.d.ts +4 -0
- package/lib/src/components/ui/alert/index.d.ts +9 -0
- package/lib/src/components/ui/badge/Badge.vue.d.ts +29 -0
- package/lib/src/components/ui/badge/index.d.ts +7 -0
- package/lib/src/components/ui/button/Button.vue.d.ts +43 -0
- package/lib/src/components/ui/button/index.d.ts +8 -0
- package/lib/src/components/ui/checkbox/Checkbox.vue.d.ts +31 -0
- package/lib/src/components/ui/checkbox/index.d.ts +1 -0
- package/lib/src/components/ui/context-menu/ContextMenu.vue.d.ts +26 -0
- package/lib/src/components/ui/context-menu/ContextMenuCheckboxItem.vue.d.ts +33 -0
- package/lib/src/components/ui/context-menu/ContextMenuContent.vue.d.ts +39 -0
- package/lib/src/components/ui/context-menu/ContextMenuGroup.vue.d.ts +22 -0
- package/lib/src/components/ui/context-menu/ContextMenuItem.vue.d.ts +33 -0
- package/lib/src/components/ui/context-menu/ContextMenuLabel.vue.d.ts +29 -0
- package/lib/src/components/ui/context-menu/ContextMenuRadioGroup.vue.d.ts +26 -0
- package/lib/src/components/ui/context-menu/ContextMenuRadioItem.vue.d.ts +31 -0
- package/lib/src/components/ui/context-menu/ContextMenuSeparator.vue.d.ts +18 -0
- package/lib/src/components/ui/context-menu/ContextMenuShortcut.vue.d.ts +26 -0
- package/lib/src/components/ui/context-menu/ContextMenuSub.vue.d.ts +26 -0
- package/lib/src/components/ui/context-menu/ContextMenuSubContent.vue.d.ts +43 -0
- package/lib/src/components/ui/context-menu/ContextMenuSubTrigger.vue.d.ts +29 -0
- package/lib/src/components/ui/context-menu/ContextMenuTrigger.vue.d.ts +22 -0
- package/lib/src/components/ui/context-menu/index.d.ts +14 -0
- package/lib/src/components/ui/dialog/Dialog.vue.d.ts +26 -0
- package/lib/src/components/ui/dialog/DialogClose.vue.d.ts +22 -0
- package/lib/src/components/ui/dialog/DialogContent.vue.d.ts +41 -0
- package/lib/src/components/ui/dialog/DialogDescription.vue.d.ts +27 -0
- package/lib/src/components/ui/dialog/DialogFooter.vue.d.ts +26 -0
- package/lib/src/components/ui/dialog/DialogHeader.vue.d.ts +26 -0
- package/lib/src/components/ui/dialog/DialogScrollContent.vue.d.ts +41 -0
- package/lib/src/components/ui/dialog/DialogTitle.vue.d.ts +27 -0
- package/lib/src/components/ui/dialog/DialogTrigger.vue.d.ts +22 -0
- package/lib/src/components/ui/dialog/index.d.ts +9 -0
- package/lib/src/components/ui/drawer/index.d.ts +8 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +26 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +33 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +53 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +22 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +29 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +29 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +26 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +31 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +18 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +26 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +26 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +43 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +27 -0
- package/lib/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +22 -0
- package/lib/src/components/ui/dropdown-menu/index.d.ts +15 -0
- package/lib/src/components/ui/input/Input.vue.d.ts +25 -0
- package/lib/src/components/ui/input/index.d.ts +1 -0
- package/lib/src/components/ui/label/Label.vue.d.ts +27 -0
- package/lib/src/components/ui/label/index.d.ts +1 -0
- package/lib/src/components/ui/menubar/index.d.ts +15 -0
- package/lib/src/components/ui/popover/Popover.vue.d.ts +26 -0
- package/lib/src/components/ui/popover/PopoverContent.vue.d.ts +58 -0
- package/lib/src/components/ui/popover/PopoverTrigger.vue.d.ts +22 -0
- package/lib/src/components/ui/popover/index.d.ts +4 -0
- package/lib/src/components/ui/resizable/ResizableHandle.vue.d.ts +24 -0
- package/lib/src/components/ui/resizable/ResizablePanelGroup.vue.d.ts +31 -0
- package/lib/src/components/ui/resizable/index.d.ts +3 -0
- package/lib/src/components/ui/scroll-area/ScrollArea.vue.d.ts +27 -0
- package/lib/src/components/ui/scroll-area/ScrollBar.vue.d.ts +32 -0
- package/lib/src/components/ui/scroll-area/index.d.ts +2 -0
- package/lib/src/components/ui/select/Select.vue.d.ts +28 -0
- package/lib/src/components/ui/select/SelectContent.vue.d.ts +49 -0
- package/lib/src/components/ui/select/SelectGroup.vue.d.ts +27 -0
- package/lib/src/components/ui/select/SelectItem.vue.d.ts +27 -0
- package/lib/src/components/ui/select/SelectItemText.vue.d.ts +22 -0
- package/lib/src/components/ui/select/SelectLabel.vue.d.ts +27 -0
- package/lib/src/components/ui/select/SelectScrollDownButton.vue.d.ts +27 -0
- package/lib/src/components/ui/select/SelectScrollUpButton.vue.d.ts +27 -0
- package/lib/src/components/ui/select/SelectSeparator.vue.d.ts +18 -0
- package/lib/src/components/ui/select/SelectTrigger.vue.d.ts +27 -0
- package/lib/src/components/ui/select/SelectValue.vue.d.ts +22 -0
- package/lib/src/components/ui/select/index.d.ts +11 -0
- package/lib/src/components/ui/separator/Separator.vue.d.ts +18 -0
- package/lib/src/components/ui/separator/index.d.ts +1 -0
- package/lib/src/components/ui/sheet/index.d.ts +14 -0
- package/lib/src/components/ui/slider/index.d.ts +1 -0
- package/lib/src/components/ui/switch/index.d.ts +1 -0
- package/lib/src/components/ui/tabs/Tabs.vue.d.ts +26 -0
- package/lib/src/components/ui/tabs/TabsContent.vue.d.ts +27 -0
- package/lib/src/components/ui/tabs/TabsList.vue.d.ts +27 -0
- package/lib/src/components/ui/tabs/TabsTrigger.vue.d.ts +27 -0
- package/lib/src/components/ui/tabs/index.d.ts +4 -0
- package/lib/src/components/ui/textarea/Textarea.vue.d.ts +25 -0
- package/lib/src/components/ui/textarea/index.d.ts +1 -0
- package/lib/src/components/ui/toast/index.d.ts +22 -0
- package/lib/src/components/ui/toast/use-toast.d.ts +349 -0
- package/lib/src/components/ui/toggle/Toggle.vue.d.ts +56 -0
- package/lib/src/components/ui/toggle/index.d.ts +8 -0
- package/lib/src/components/ui/toggle-group/index.d.ts +2 -0
- package/lib/src/components/ui/tooltip/Tooltip.vue.d.ts +26 -0
- package/lib/src/components/ui/tooltip/TooltipContent.vue.d.ts +47 -0
- package/lib/src/components/ui/tooltip/TooltipProvider.vue.d.ts +22 -0
- package/lib/src/components/ui/tooltip/TooltipTrigger.vue.d.ts +22 -0
- package/lib/src/components/ui/tooltip/index.d.ts +4 -0
- package/lib/src/constants/index.d.ts +55 -0
- package/lib/src/extensions/Ai/AI.d.ts +16 -0
- package/lib/src/extensions/Ai/components/AIButton.vue.d.ts +74 -0
- package/lib/src/extensions/Ai/index.d.ts +1 -0
- package/lib/src/extensions/AttributesSetup/AttributesSetup.d.ts +3 -0
- package/lib/src/extensions/AttributesSetup/index.d.ts +1 -0
- package/lib/src/extensions/BaseKit.d.ts +118 -0
- package/lib/src/extensions/Blockquote/Blockquote.d.ts +6 -0
- package/lib/src/extensions/Blockquote/index.d.ts +1 -0
- package/lib/src/extensions/Bold/Bold.d.ts +6 -0
- package/lib/src/extensions/Bold/index.d.ts +1 -0
- package/lib/src/extensions/BulletList/BulletList.d.ts +6 -0
- package/lib/src/extensions/BulletList/components/BulletListMenuButton.vue.d.ts +35 -0
- package/lib/src/extensions/BulletList/index.d.ts +1 -0
- package/lib/src/extensions/Clear/Clear.d.ts +6 -0
- package/lib/src/extensions/Clear/index.d.ts +1 -0
- package/lib/src/extensions/Code/Code.d.ts +6 -0
- package/lib/src/extensions/Code/index.d.ts +1 -0
- package/lib/src/extensions/CodeBlock/CodeBlock.d.ts +6 -0
- package/lib/src/extensions/CodeBlock/components/CodeBlockView.vue.d.ts +68 -0
- package/lib/src/extensions/CodeBlock/index.d.ts +1 -0
- package/lib/src/extensions/Color/Color.d.ts +6 -0
- package/lib/src/extensions/Color/components/ColorActionButton.vue.d.ts +48 -0
- package/lib/src/extensions/Color/index.d.ts +1 -0
- package/lib/src/extensions/Document/Document.d.ts +2 -0
- package/lib/src/extensions/Document/index.d.ts +1 -0
- package/lib/src/extensions/FindAndReplace/FindAndReplace.d.ts +58 -0
- package/lib/src/extensions/FindAndReplace/index.d.ts +1 -0
- package/lib/src/extensions/FontFamily/FontFamily.d.ts +25 -0
- package/lib/src/extensions/FontFamily/components/FontFamilyMenuButton.vue.d.ts +65 -0
- package/lib/src/extensions/FontFamily/index.d.ts +1 -0
- package/lib/src/extensions/FontSize/FontSize.d.ts +32 -0
- package/lib/src/extensions/FontSize/components/FontSizeMenuButton.vue.d.ts +64 -0
- package/lib/src/extensions/FontSize/index.d.ts +1 -0
- package/lib/src/extensions/FormatPainter/FormatPainter.d.ts +24 -0
- package/lib/src/extensions/FormatPainter/index.d.ts +1 -0
- package/lib/src/extensions/Fullscreen/Fullscreen.d.ts +6 -0
- package/lib/src/extensions/Fullscreen/index.d.ts +1 -0
- package/lib/src/extensions/Heading/Heading.d.ts +6 -0
- package/lib/src/extensions/Heading/components/HeadingButton.vue.d.ts +65 -0
- package/lib/src/extensions/Heading/index.d.ts +1 -0
- package/lib/src/extensions/Highlight/Highlight.d.ts +6 -0
- package/lib/src/extensions/Highlight/components/HighlightActionButton.vue.d.ts +49 -0
- package/lib/src/extensions/Highlight/index.d.ts +1 -0
- package/lib/src/extensions/History/History.d.ts +6 -0
- package/lib/src/extensions/History/index.d.ts +1 -0
- package/lib/src/extensions/HorizontalRule/HorizontalRule.d.ts +6 -0
- package/lib/src/extensions/HorizontalRule/index.d.ts +1 -0
- package/lib/src/extensions/IDAttr/IDPlugin.d.ts +4 -0
- package/lib/src/extensions/IDAttr/index.d.ts +1 -0
- package/lib/src/extensions/Iframe/Iframe.d.ts +24 -0
- package/lib/src/extensions/Iframe/embed.d.ts +113 -0
- package/lib/src/extensions/Iframe/index.d.ts +1 -0
- package/lib/src/extensions/Image/Image.d.ts +29 -0
- package/lib/src/extensions/Image/components/ImageView.vue.d.ts +68 -0
- package/lib/src/extensions/Image/index.d.ts +1 -0
- package/lib/src/extensions/ImageUpload/ImageUpload.d.ts +16 -0
- package/lib/src/extensions/ImageUpload/components/ImageUploader.vue.d.ts +68 -0
- package/lib/src/extensions/ImageUpload/index.d.ts +1 -0
- package/lib/src/extensions/ImportWord/ImportWord.d.ts +28 -0
- package/lib/src/extensions/ImportWord/index.d.ts +1 -0
- package/lib/src/extensions/ImportWord/utils.d.ts +2 -0
- package/lib/src/extensions/Indent/Indent.d.ts +23 -0
- package/lib/src/extensions/Indent/index.d.ts +1 -0
- package/lib/src/extensions/Italic/Italic.d.ts +6 -0
- package/lib/src/extensions/Italic/index.d.ts +1 -0
- package/lib/src/extensions/LineHeight/LineHeight.d.ts +17 -0
- package/lib/src/extensions/LineHeight/components/LineHeightDropdown.vue.d.ts +48 -0
- package/lib/src/extensions/LineHeight/index.d.ts +1 -0
- package/lib/src/extensions/Link/Link.d.ts +6 -0
- package/lib/src/extensions/Link/components/LinkEditBlock.vue.d.ts +30 -0
- package/lib/src/extensions/Link/components/LinkEditPopover.vue.d.ts +56 -0
- package/lib/src/extensions/Link/components/LinkViewBlock.vue.d.ts +37 -0
- package/lib/src/extensions/Link/index.d.ts +1 -0
- package/lib/src/extensions/ListItem/ListItem.d.ts +3 -0
- package/lib/src/extensions/ListItem/index.d.ts +1 -0
- package/lib/src/extensions/MoreMark/MoreMark.d.ts +20 -0
- package/lib/src/extensions/MoreMark/components/ActionMoreButton.vue.d.ts +65 -0
- package/lib/src/extensions/MoreMark/index.d.ts +1 -0
- package/lib/src/extensions/MultiColumn/Column.d.ts +4 -0
- package/lib/src/extensions/MultiColumn/Columns.d.ts +22 -0
- package/lib/src/extensions/MultiColumn/index.d.ts +2 -0
- package/lib/src/extensions/OrderedList/OrderedList.d.ts +6 -0
- package/lib/src/extensions/OrderedList/components/OrderedListMenuButton.vue.d.ts +44 -0
- package/lib/src/extensions/OrderedList/index.d.ts +1 -0
- package/lib/src/extensions/Page/computed.d.ts +122 -0
- package/lib/src/extensions/Page/core.d.ts +79 -0
- package/lib/src/extensions/Page/index.d.ts +23 -0
- package/lib/src/extensions/Page/node-view.vue.d.ts +68 -0
- package/lib/src/extensions/Page/page-plugin.d.ts +7 -0
- package/lib/src/extensions/Page/split-block.d.ts +3 -0
- package/lib/src/extensions/Page/split-list-item.d.ts +7 -0
- package/lib/src/extensions/Page/types.d.ts +40 -0
- package/lib/src/extensions/Page/utils.d.ts +48 -0
- package/lib/src/extensions/Preview/Preview.d.ts +13 -0
- package/lib/src/extensions/Preview/index.d.ts +1 -0
- package/lib/src/extensions/Printer/Printer.d.ts +6 -0
- package/lib/src/extensions/Printer/index.d.ts +1 -0
- package/lib/src/extensions/Selection/Selection.d.ts +4 -0
- package/lib/src/extensions/Selection/index.d.ts +1 -0
- package/lib/src/extensions/SlashCommand/CommandsList.vue.d.ts +35 -0
- package/lib/src/extensions/SlashCommand/SlashCommand.d.ts +4 -0
- package/lib/src/extensions/SlashCommand/groups.d.ts +4 -0
- package/lib/src/extensions/SlashCommand/index.d.ts +1 -0
- package/lib/src/extensions/SlashCommand/types.d.ts +26 -0
- package/lib/src/extensions/SpellChecker/hunspell-proofreader.d.ts +16 -0
- package/lib/src/extensions/SpellChecker/i-proofreader-interface.d.ts +10 -0
- package/lib/src/extensions/SpellChecker/index.d.ts +6 -0
- package/lib/src/extensions/SpellChecker/sapling-proofreader.d.ts +13 -0
- package/lib/src/extensions/SpellChecker/spellchecker-extension.d.ts +27 -0
- package/lib/src/extensions/SpellChecker/spellchecker.d.ts +44 -0
- package/lib/src/extensions/Strike/Strike.d.ts +6 -0
- package/lib/src/extensions/Strike/index.d.ts +1 -0
- package/lib/src/extensions/Subscript/Subscript.d.ts +23 -0
- package/lib/src/extensions/Subscript/index.d.ts +1 -0
- package/lib/src/extensions/SuperText/SuperText.d.ts +11 -0
- package/lib/src/extensions/SuperText/components/SuperText.vue.d.ts +68 -0
- package/lib/src/extensions/SuperText/index.d.ts +1 -0
- package/lib/src/extensions/Table/cell-background.d.ts +19 -0
- package/lib/src/extensions/Table/components/CreateTablePopover.vue.d.ts +32 -0
- package/lib/src/extensions/Table/components/TableActionButton.vue.d.ts +53 -0
- package/lib/src/extensions/Table/index.d.ts +7 -0
- package/lib/src/extensions/Table/table.d.ts +24 -0
- package/lib/src/extensions/TaskList/TaskList.d.ts +12 -0
- package/lib/src/extensions/TaskList/index.d.ts +1 -0
- package/lib/src/extensions/TextAlign/TextAlign.d.ts +18 -0
- package/lib/src/extensions/TextAlign/components/TextAlignMenuButton.vue.d.ts +65 -0
- package/lib/src/extensions/TextAlign/index.d.ts +1 -0
- package/lib/src/extensions/TextBubble/TextBubble.d.ts +7 -0
- package/lib/src/extensions/TextBubble/components/TextDropdown.vue.d.ts +49 -0
- package/lib/src/extensions/TextBubble/index.d.ts +1 -0
- package/lib/src/extensions/TrailingNode/TrailingNode.d.ts +12 -0
- package/lib/src/extensions/TrailingNode/index.d.ts +1 -0
- package/lib/src/extensions/UnderLine/Underline.d.ts +6 -0
- package/lib/src/extensions/UnderLine/index.d.ts +1 -0
- package/lib/src/extensions/Video/Video.d.ts +55 -0
- package/lib/src/extensions/Video/index.d.ts +1 -0
- package/lib/src/extensions/VideoUpload/VideoUpload.d.ts +14 -0
- package/lib/src/extensions/VideoUpload/components/VideoUploader.vue.d.ts +68 -0
- package/lib/src/extensions/VideoUpload/index.d.ts +1 -0
- package/lib/src/extensions/index.d.ts +74 -0
- package/lib/src/hooks/index.d.ts +6 -0
- package/lib/src/hooks/useCheckSpellStore.d.ts +9 -0
- package/lib/src/hooks/useConfigTiptap.d.ts +8 -0
- package/lib/src/hooks/useContext.d.ts +21 -0
- package/lib/src/hooks/useHotkeys.d.ts +4 -0
- package/lib/src/hooks/useNodePosition.d.ts +7 -0
- package/lib/src/hooks/useStore.d.ts +160 -0
- package/lib/src/hooks/useSuperTextStore.d.ts +20 -0
- package/lib/src/i18n.d.ts +337 -0
- package/lib/src/index.d.ts +12 -0
- package/lib/src/plugins/image-upload.d.ts +12 -0
- package/lib/src/type.d.ts +145 -0
- package/lib/src/utils/content.d.ts +4 -0
- package/lib/src/utils/getRenderContainer.d.ts +4 -0
- package/lib/src/utils/indent.d.ts +15 -0
- package/lib/src/utils/is-mobile.d.ts +19 -0
- package/lib/src/utils/line-height.d.ts +7 -0
- package/lib/src/utils/loadFonts.d.ts +1 -0
- package/lib/src/utils/mitt.d.ts +24 -0
- package/lib/src/utils/node-names.d.ts +31 -0
- package/lib/src/utils/plateform.d.ts +11 -0
- package/lib/src/utils/utils.d.ts +18 -0
- package/lib/src/utils.d.ts +3 -0
- package/lib/style.css +1 -0
- package/lib/vdc-editor.mjs +61980 -0
- package/lib/vdc-editor.umd.js +197 -0
- package/lib/vite.config.d.ts +2 -0
- package/package.json +174 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { StyleValue } from 'vue';
|
|
2
|
+
import { Editor } from '@tiptap/vue-3';
|
|
3
|
+
import { ButtonViewReturnComponentProps } from '../../../type';
|
|
4
|
+
|
|
5
|
+
export interface Item {
|
|
6
|
+
title: string;
|
|
7
|
+
isActive: NonNullable<ButtonViewReturnComponentProps['isActive']>;
|
|
8
|
+
action?: ButtonViewReturnComponentProps['action'];
|
|
9
|
+
style?: StyleValue;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
divider?: boolean;
|
|
12
|
+
default?: boolean;
|
|
13
|
+
}
|
|
14
|
+
interface Props {
|
|
15
|
+
editor: Editor;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
color?: string;
|
|
18
|
+
shortcutKeys?: string[];
|
|
19
|
+
maxHeight?: string | number;
|
|
20
|
+
tooltip?: string;
|
|
21
|
+
items?: Item[];
|
|
22
|
+
}
|
|
23
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
color: undefined;
|
|
26
|
+
maxHeight: undefined;
|
|
27
|
+
icon: undefined;
|
|
28
|
+
tooltip: string;
|
|
29
|
+
shortcutKeys: undefined;
|
|
30
|
+
items: () => never[];
|
|
31
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
32
|
+
disabled: boolean;
|
|
33
|
+
color: undefined;
|
|
34
|
+
maxHeight: undefined;
|
|
35
|
+
icon: undefined;
|
|
36
|
+
tooltip: string;
|
|
37
|
+
shortcutKeys: undefined;
|
|
38
|
+
items: () => never[];
|
|
39
|
+
}>>> & Readonly<{}>, {
|
|
40
|
+
color: string;
|
|
41
|
+
disabled: boolean;
|
|
42
|
+
tooltip: string;
|
|
43
|
+
shortcutKeys: string[];
|
|
44
|
+
maxHeight: string | number;
|
|
45
|
+
items: Item[];
|
|
46
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
49
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
50
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
51
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
52
|
+
} : {
|
|
53
|
+
type: import('vue').PropType<T[K]>;
|
|
54
|
+
required: true;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
type __VLS_WithDefaults<P, D> = {
|
|
58
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
59
|
+
default: D[K];
|
|
60
|
+
}> : P[K];
|
|
61
|
+
};
|
|
62
|
+
type __VLS_Prettify<T> = {
|
|
63
|
+
[K in keyof T]: T[K];
|
|
64
|
+
} & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FontSize';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
import { Mark } from '@tiptap/pm/model';
|
|
3
|
+
import { GeneralOptions } from '../../type';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Represents the interface for font size options, extending GeneralOptions.
|
|
7
|
+
*/
|
|
8
|
+
export interface FormatPainterOptions extends GeneralOptions<FormatPainterOptions> {
|
|
9
|
+
}
|
|
10
|
+
declare module '@tiptap/core' {
|
|
11
|
+
interface Commands<ReturnType> {
|
|
12
|
+
painter: {
|
|
13
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export type PainterAction = {
|
|
18
|
+
type: 'start' | 'end';
|
|
19
|
+
marks: Mark[];
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* 格式刷
|
|
23
|
+
*/
|
|
24
|
+
export declare const FormatPainter: Extension<FormatPainterOptions, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FormatPainter';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Fullscreen';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HeadingOptions as TiptapHeadingOptions } from '@tiptap/extension-heading';
|
|
2
|
+
import { GeneralOptions } from '../../type';
|
|
3
|
+
|
|
4
|
+
export interface HeadingOptions extends TiptapHeadingOptions, GeneralOptions<HeadingOptions> {
|
|
5
|
+
}
|
|
6
|
+
export declare const Heading: import('@tiptap/core').Node<HeadingOptions, any>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { StyleValue } from 'vue';
|
|
2
|
+
import { Editor } from '@tiptap/vue-3';
|
|
3
|
+
import { ButtonViewReturnComponentProps } from '../../../type';
|
|
4
|
+
|
|
5
|
+
export interface Item {
|
|
6
|
+
title: string;
|
|
7
|
+
icon?: any;
|
|
8
|
+
level?: number;
|
|
9
|
+
isActive: NonNullable<ButtonViewReturnComponentProps['isActive']>;
|
|
10
|
+
action?: ButtonViewReturnComponentProps['action'];
|
|
11
|
+
style?: StyleValue;
|
|
12
|
+
shortcutKeys?: string[];
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
divider?: boolean;
|
|
15
|
+
default?: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface Props {
|
|
18
|
+
editor: Editor;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
color?: string;
|
|
21
|
+
shortcutKeys?: string[];
|
|
22
|
+
maxHeight?: string | number;
|
|
23
|
+
tooltip?: string;
|
|
24
|
+
items?: Item[];
|
|
25
|
+
}
|
|
26
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
color: undefined;
|
|
29
|
+
maxHeight: undefined;
|
|
30
|
+
tooltip: string;
|
|
31
|
+
shortcutKeys: undefined;
|
|
32
|
+
items: () => never[];
|
|
33
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
color: undefined;
|
|
36
|
+
maxHeight: undefined;
|
|
37
|
+
tooltip: string;
|
|
38
|
+
shortcutKeys: undefined;
|
|
39
|
+
items: () => never[];
|
|
40
|
+
}>>> & Readonly<{}>, {
|
|
41
|
+
color: string;
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
tooltip: string;
|
|
44
|
+
shortcutKeys: string[];
|
|
45
|
+
maxHeight: string | number;
|
|
46
|
+
items: Item[];
|
|
47
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
48
|
+
export default _default;
|
|
49
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
50
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
51
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
52
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
53
|
+
} : {
|
|
54
|
+
type: import('vue').PropType<T[K]>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
type __VLS_WithDefaults<P, D> = {
|
|
59
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
60
|
+
default: D[K];
|
|
61
|
+
}> : P[K];
|
|
62
|
+
};
|
|
63
|
+
type __VLS_Prettify<T> = {
|
|
64
|
+
[K in keyof T]: T[K];
|
|
65
|
+
} & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Heading';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HighlightOptions as TiptapHighlightOptions } from '@tiptap/extension-highlight';
|
|
2
|
+
import { GeneralOptions } from '../../type';
|
|
3
|
+
|
|
4
|
+
export interface HighlightOptions extends TiptapHighlightOptions, GeneralOptions<HighlightOptions> {
|
|
5
|
+
}
|
|
6
|
+
export declare const Highlight: import('@tiptap/core').Mark<HighlightOptions, any>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/vue-3';
|
|
2
|
+
import { ButtonViewReturnComponentProps } from '../../../type';
|
|
3
|
+
import { TooltipContentProps } from 'radix-vue';
|
|
4
|
+
|
|
5
|
+
interface Props {
|
|
6
|
+
editor: Editor;
|
|
7
|
+
tooltip?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
action?: ButtonViewReturnComponentProps['action'];
|
|
10
|
+
isActive?: ButtonViewReturnComponentProps['isActive'];
|
|
11
|
+
tooltipOptions?: TooltipContentProps;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
14
|
+
tooltip: undefined;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
action: undefined;
|
|
17
|
+
tooltipOptions: undefined;
|
|
18
|
+
isActive: undefined;
|
|
19
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
20
|
+
tooltip: undefined;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
action: undefined;
|
|
23
|
+
tooltipOptions: undefined;
|
|
24
|
+
isActive: undefined;
|
|
25
|
+
}>>> & Readonly<{}>, {
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
tooltip: string;
|
|
28
|
+
tooltipOptions: TooltipContentProps;
|
|
29
|
+
action: (value?: any) => void;
|
|
30
|
+
isActive: () => boolean;
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
34
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
35
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
36
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
37
|
+
} : {
|
|
38
|
+
type: import('vue').PropType<T[K]>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
type __VLS_WithDefaults<P, D> = {
|
|
43
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
44
|
+
default: D[K];
|
|
45
|
+
}> : P[K];
|
|
46
|
+
};
|
|
47
|
+
type __VLS_Prettify<T> = {
|
|
48
|
+
[K in keyof T]: T[K];
|
|
49
|
+
} & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Highlight';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HistoryOptions as TiptapHistoryOptions } from '@tiptap/extension-history';
|
|
2
|
+
import { GeneralOptions } from '../../type';
|
|
3
|
+
|
|
4
|
+
export interface HistoryOptions extends TiptapHistoryOptions, GeneralOptions<HistoryOptions> {
|
|
5
|
+
}
|
|
6
|
+
export declare const History: import('@tiptap/core').Extension<HistoryOptions, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './History';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HorizontalRuleOptions as TiptapHorizontalRuleOptions } from '@tiptap/extension-horizontal-rule';
|
|
2
|
+
import { GeneralOptions } from '../../type';
|
|
3
|
+
|
|
4
|
+
export interface HorizontalRuleOptions extends TiptapHorizontalRuleOptions, GeneralOptions<HorizontalRuleOptions> {
|
|
5
|
+
}
|
|
6
|
+
export declare const HorizontalRule: import('@tiptap/core').Node<HorizontalRuleOptions, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './HorizontalRule';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './IDPlugin';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Node } from '@tiptap/core';
|
|
2
|
+
import { GeneralOptions } from '../../type';
|
|
3
|
+
|
|
4
|
+
export interface IframeOptions extends GeneralOptions<IframeOptions> {
|
|
5
|
+
allowFullscreen: boolean;
|
|
6
|
+
HTMLAttributes: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
declare module '@tiptap/core' {
|
|
11
|
+
interface Commands<ReturnType> {
|
|
12
|
+
iframe: {
|
|
13
|
+
/**
|
|
14
|
+
* Add an iframe
|
|
15
|
+
*/
|
|
16
|
+
setIframe: (options: {
|
|
17
|
+
src: string;
|
|
18
|
+
service: string;
|
|
19
|
+
}) => ReturnType;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
declare const _default: Node<IframeOptions, any>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { icons } from '../../components/icons';
|
|
2
|
+
|
|
3
|
+
interface ServiceType {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
icon: keyof typeof icons;
|
|
7
|
+
}
|
|
8
|
+
export declare const VideoServices: ServiceType[];
|
|
9
|
+
export declare const MapServices: ServiceType[];
|
|
10
|
+
export declare const DesignServices: ServiceType[];
|
|
11
|
+
export declare const DevelopServices: ServiceType[];
|
|
12
|
+
export declare const DataServices: ServiceType[];
|
|
13
|
+
export declare const OtherServices: never[];
|
|
14
|
+
export declare const AllEmbedServices: ServiceType[];
|
|
15
|
+
export declare const getEmbedService: (value: any) => {};
|
|
16
|
+
/**
|
|
17
|
+
* Embed service link
|
|
18
|
+
* @id source id
|
|
19
|
+
* @exmplae example link
|
|
20
|
+
* @src source src, used in iframe
|
|
21
|
+
*/
|
|
22
|
+
export declare const EmbedServiceLink: {
|
|
23
|
+
youtube: {
|
|
24
|
+
example: string;
|
|
25
|
+
src: string;
|
|
26
|
+
srcPrefix: string;
|
|
27
|
+
linkRule: string[];
|
|
28
|
+
};
|
|
29
|
+
youku: {
|
|
30
|
+
example: string;
|
|
31
|
+
src: string;
|
|
32
|
+
srcPrefix: string;
|
|
33
|
+
linkRule: string[];
|
|
34
|
+
idRule: string;
|
|
35
|
+
};
|
|
36
|
+
bilibili: {
|
|
37
|
+
example: string;
|
|
38
|
+
src: string;
|
|
39
|
+
srcPrefix: string;
|
|
40
|
+
linkRule: string[];
|
|
41
|
+
};
|
|
42
|
+
qqvideo: {
|
|
43
|
+
example: string;
|
|
44
|
+
src: string;
|
|
45
|
+
srcPrefix: string;
|
|
46
|
+
linkRule: string[];
|
|
47
|
+
};
|
|
48
|
+
amap: {
|
|
49
|
+
example: string;
|
|
50
|
+
src: string;
|
|
51
|
+
srcPrefix: string;
|
|
52
|
+
linkRule: string[];
|
|
53
|
+
};
|
|
54
|
+
baidu_map: {
|
|
55
|
+
example: string;
|
|
56
|
+
src: string;
|
|
57
|
+
srcPrefix: string;
|
|
58
|
+
linkRule: string[];
|
|
59
|
+
};
|
|
60
|
+
modao: {
|
|
61
|
+
example: string;
|
|
62
|
+
src: string;
|
|
63
|
+
srcPrefix: string;
|
|
64
|
+
linkRule: string[];
|
|
65
|
+
tips: string;
|
|
66
|
+
};
|
|
67
|
+
lanhu: {
|
|
68
|
+
example: string;
|
|
69
|
+
src: string;
|
|
70
|
+
srcPrefix: string;
|
|
71
|
+
linkRule: string[];
|
|
72
|
+
tips: string;
|
|
73
|
+
};
|
|
74
|
+
figma: {
|
|
75
|
+
example: string;
|
|
76
|
+
src: string;
|
|
77
|
+
srcPrefix: string;
|
|
78
|
+
linkRule: string[];
|
|
79
|
+
};
|
|
80
|
+
canva: {
|
|
81
|
+
example: string;
|
|
82
|
+
src: string;
|
|
83
|
+
srcPrefix: string;
|
|
84
|
+
linkRule: string[];
|
|
85
|
+
};
|
|
86
|
+
processon: {
|
|
87
|
+
example: string;
|
|
88
|
+
src: string;
|
|
89
|
+
srcPrefix: string;
|
|
90
|
+
linkRule: string[];
|
|
91
|
+
};
|
|
92
|
+
codepen: {
|
|
93
|
+
example: string;
|
|
94
|
+
src: string;
|
|
95
|
+
srcPrefix: string;
|
|
96
|
+
linkRule: string[];
|
|
97
|
+
};
|
|
98
|
+
jinshuju: {
|
|
99
|
+
example: string;
|
|
100
|
+
src: string;
|
|
101
|
+
srcPrefix: string;
|
|
102
|
+
linkRule: string[];
|
|
103
|
+
};
|
|
104
|
+
iframe: {
|
|
105
|
+
example: string;
|
|
106
|
+
src: string;
|
|
107
|
+
srcPrefix: string;
|
|
108
|
+
linkRule: string[];
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
export declare function getExampleUrl(service: string): string;
|
|
112
|
+
export declare const getServiceSrc: (service: any, originalLink: any) => any;
|
|
113
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Iframe';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface SetImageAttrsOptions {
|
|
2
|
+
src?: string;
|
|
3
|
+
/** The alternative text for the image. */
|
|
4
|
+
alt?: string;
|
|
5
|
+
/** The title of the image. */
|
|
6
|
+
title?: string;
|
|
7
|
+
/** The width of the image. */
|
|
8
|
+
width?: number | string | null;
|
|
9
|
+
/** image FlipX */
|
|
10
|
+
flipX?: boolean;
|
|
11
|
+
/** image FlipY */
|
|
12
|
+
flipY?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare module '@tiptap/core' {
|
|
15
|
+
interface Commands<ReturnType> {
|
|
16
|
+
imageResize: {
|
|
17
|
+
/**
|
|
18
|
+
* Add an image
|
|
19
|
+
*/
|
|
20
|
+
setImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
21
|
+
/**
|
|
22
|
+
* Update an image
|
|
23
|
+
*/
|
|
24
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export declare const Image: import('@tiptap/core').Node<import('@tiptap/extension-image').ImageOptions, any>;
|
|
29
|
+
export default Image;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
selected: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
editor: {
|
|
7
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["editor"]>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
node: {
|
|
11
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["node"]>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
decorations: {
|
|
15
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["decorations"]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
extension: {
|
|
19
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["extension"]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
getPos: {
|
|
23
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["getPos"]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
updateAttributes: {
|
|
27
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["updateAttributes"]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
deleteNode: {
|
|
31
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["deleteNode"]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
35
|
+
selected: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
editor: {
|
|
40
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["editor"]>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
node: {
|
|
44
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["node"]>;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
decorations: {
|
|
48
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["decorations"]>;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
extension: {
|
|
52
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["extension"]>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
getPos: {
|
|
56
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["getPos"]>;
|
|
57
|
+
required: true;
|
|
58
|
+
};
|
|
59
|
+
updateAttributes: {
|
|
60
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["updateAttributes"]>;
|
|
61
|
+
required: true;
|
|
62
|
+
};
|
|
63
|
+
deleteNode: {
|
|
64
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["deleteNode"]>;
|
|
65
|
+
required: true;
|
|
66
|
+
};
|
|
67
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
68
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Image';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Node } from '@tiptap/vue-3';
|
|
2
|
+
|
|
3
|
+
export interface ImageUploadOptions {
|
|
4
|
+
upload: (file: File) => Promise<string>;
|
|
5
|
+
acceptMimes: string[];
|
|
6
|
+
maxSize: number;
|
|
7
|
+
}
|
|
8
|
+
declare module '@tiptap/core' {
|
|
9
|
+
interface Commands<ReturnType> {
|
|
10
|
+
imageUpload: {
|
|
11
|
+
setImageUpload: () => ReturnType;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export declare const ImageUpload: Node<ImageUploadOptions, any>;
|
|
16
|
+
export default ImageUpload;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
editor: {
|
|
3
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["editor"]>;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
node: {
|
|
7
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["node"]>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
decorations: {
|
|
11
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["decorations"]>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
selected: {
|
|
15
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["selected"]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
extension: {
|
|
19
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["extension"]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
getPos: {
|
|
23
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["getPos"]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
updateAttributes: {
|
|
27
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["updateAttributes"]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
deleteNode: {
|
|
31
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["deleteNode"]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
35
|
+
editor: {
|
|
36
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["editor"]>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
node: {
|
|
40
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["node"]>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
decorations: {
|
|
44
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["decorations"]>;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
selected: {
|
|
48
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["selected"]>;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
extension: {
|
|
52
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["extension"]>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
getPos: {
|
|
56
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["getPos"]>;
|
|
57
|
+
required: true;
|
|
58
|
+
};
|
|
59
|
+
updateAttributes: {
|
|
60
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["updateAttributes"]>;
|
|
61
|
+
required: true;
|
|
62
|
+
};
|
|
63
|
+
deleteNode: {
|
|
64
|
+
type: PropType<import('@tiptap/vue-3').NodeViewProps["deleteNode"]>;
|
|
65
|
+
required: true;
|
|
66
|
+
};
|
|
67
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
68
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ImageUpload';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
import { GeneralOptions } from '../../type';
|
|
3
|
+
|
|
4
|
+
export interface ImportWordOptions extends GeneralOptions<ImportWordOptions> {
|
|
5
|
+
/**
|
|
6
|
+
* Function for custom wort to html
|
|
7
|
+
*/
|
|
8
|
+
convert?: (file: File) => Promise<string>;
|
|
9
|
+
/** Function for uploading images */
|
|
10
|
+
upload?: (files: File[]) => Promise<unknown>;
|
|
11
|
+
/**
|
|
12
|
+
* File Size limit
|
|
13
|
+
*
|
|
14
|
+
* @default 1024 * 1024 * 10
|
|
15
|
+
*/
|
|
16
|
+
limit: number;
|
|
17
|
+
}
|
|
18
|
+
declare module '@tiptap/core' {
|
|
19
|
+
interface Commands<ReturnType> {
|
|
20
|
+
importWord: {
|
|
21
|
+
/**
|
|
22
|
+
* toggle import from word
|
|
23
|
+
*/
|
|
24
|
+
toggleImportWord: () => ReturnType;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export declare const ImportWord: Extension<ImportWordOptions, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ImportWord';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
import { GeneralOptions } from '../../type';
|
|
3
|
+
|
|
4
|
+
export interface IndentOptions extends GeneralOptions<IndentOptions> {
|
|
5
|
+
types: string[];
|
|
6
|
+
minIndent: number;
|
|
7
|
+
maxIndent: number;
|
|
8
|
+
}
|
|
9
|
+
declare module '@tiptap/core' {
|
|
10
|
+
interface Commands<ReturnType> {
|
|
11
|
+
indent: {
|
|
12
|
+
/**
|
|
13
|
+
* Set the indent attribute
|
|
14
|
+
*/
|
|
15
|
+
indent: () => ReturnType;
|
|
16
|
+
/**
|
|
17
|
+
* Set the outdent attribute
|
|
18
|
+
*/
|
|
19
|
+
outdent: () => ReturnType;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export declare const Indent: Extension<IndentOptions, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Indent';
|