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,74 @@
|
|
|
1
|
+
import { ButtonViewReturnComponentProps } from '../../../type';
|
|
2
|
+
import { TooltipContentProps } from 'radix-vue';
|
|
3
|
+
import { icons } from '../../../components/icons';
|
|
4
|
+
import { Editor } from '@tiptap/vue-3';
|
|
5
|
+
|
|
6
|
+
interface Props {
|
|
7
|
+
editor: Editor;
|
|
8
|
+
icon?: keyof typeof icons;
|
|
9
|
+
title?: string;
|
|
10
|
+
tooltip?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
shortcutKeys?: string[];
|
|
13
|
+
customClass?: string;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
tooltipOptions?: TooltipContentProps;
|
|
16
|
+
color?: string;
|
|
17
|
+
action?: ButtonViewReturnComponentProps['action'];
|
|
18
|
+
isActive?: ButtonViewReturnComponentProps['isActive'];
|
|
19
|
+
}
|
|
20
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
21
|
+
icon: undefined;
|
|
22
|
+
title: undefined;
|
|
23
|
+
tooltip: undefined;
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
customClass: string;
|
|
26
|
+
color: undefined;
|
|
27
|
+
loading: boolean;
|
|
28
|
+
shortcutKeys: undefined;
|
|
29
|
+
tooltipOptions: undefined;
|
|
30
|
+
action: undefined;
|
|
31
|
+
isActive: undefined;
|
|
32
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
33
|
+
icon: undefined;
|
|
34
|
+
title: undefined;
|
|
35
|
+
tooltip: undefined;
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
customClass: string;
|
|
38
|
+
color: undefined;
|
|
39
|
+
loading: boolean;
|
|
40
|
+
shortcutKeys: undefined;
|
|
41
|
+
tooltipOptions: undefined;
|
|
42
|
+
action: undefined;
|
|
43
|
+
isActive: undefined;
|
|
44
|
+
}>>> & Readonly<{}>, {
|
|
45
|
+
icon: keyof typeof icons;
|
|
46
|
+
color: string;
|
|
47
|
+
disabled: boolean;
|
|
48
|
+
title: string;
|
|
49
|
+
tooltip: string;
|
|
50
|
+
shortcutKeys: string[];
|
|
51
|
+
customClass: string;
|
|
52
|
+
loading: boolean;
|
|
53
|
+
tooltipOptions: TooltipContentProps;
|
|
54
|
+
action: (value?: any) => void;
|
|
55
|
+
isActive: () => boolean;
|
|
56
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
57
|
+
export default _default;
|
|
58
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
59
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
60
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
61
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
62
|
+
} : {
|
|
63
|
+
type: import('vue').PropType<T[K]>;
|
|
64
|
+
required: true;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
type __VLS_WithDefaults<P, D> = {
|
|
68
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
69
|
+
default: D[K];
|
|
70
|
+
}> : P[K];
|
|
71
|
+
};
|
|
72
|
+
type __VLS_Prettify<T> = {
|
|
73
|
+
[K in keyof T]: T[K];
|
|
74
|
+
} & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AI';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AttributesSetup';
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
import { CharacterCountOptions } from '@tiptap/extension-character-count';
|
|
3
|
+
import { DropcursorOptions } from '@tiptap/extension-dropcursor';
|
|
4
|
+
import { FocusOptions } from '@tiptap/extension-focus';
|
|
5
|
+
import { HardBreakOptions } from '@tiptap/extension-hard-break';
|
|
6
|
+
import { ListItemOptions } from '@tiptap/extension-list-item';
|
|
7
|
+
import { ParagraphOptions } from '@tiptap/extension-paragraph';
|
|
8
|
+
import { PlaceholderOptions } from '@tiptap/extension-placeholder';
|
|
9
|
+
import { FontFamilyOptions } from '@tiptap/extension-font-family';
|
|
10
|
+
import { TextStyleOptions } from '@tiptap/extension-text-style';
|
|
11
|
+
import { IframeOptions } from './Iframe/Iframe';
|
|
12
|
+
import { TrailingNodeOptions } from './TrailingNode/TrailingNode';
|
|
13
|
+
import { BubbleOptions } from '../components/menus/BasicBubble';
|
|
14
|
+
import { TextBubbleOptions } from './TextBubble';
|
|
15
|
+
import { PageOption } from '../type';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Represents the interface for options in the base toolkit.
|
|
19
|
+
*/
|
|
20
|
+
export interface BaseKitOptions {
|
|
21
|
+
/**
|
|
22
|
+
* Whether to enable the document option
|
|
23
|
+
*
|
|
24
|
+
* @default true
|
|
25
|
+
*/
|
|
26
|
+
document: false;
|
|
27
|
+
/**
|
|
28
|
+
* Whether to enable the text option
|
|
29
|
+
*
|
|
30
|
+
* @default true
|
|
31
|
+
*/
|
|
32
|
+
text: false;
|
|
33
|
+
/**
|
|
34
|
+
* Whether to enable the Gapcursor
|
|
35
|
+
*
|
|
36
|
+
* @default true
|
|
37
|
+
*/
|
|
38
|
+
gapcursor: false;
|
|
39
|
+
/**
|
|
40
|
+
* Dropcursor options or false, indicating whether to enable the drop cursor
|
|
41
|
+
*
|
|
42
|
+
* @default true
|
|
43
|
+
*/
|
|
44
|
+
dropcursor: Partial<DropcursorOptions> | false;
|
|
45
|
+
/**
|
|
46
|
+
* character count options or false, indicating whether to enable character count
|
|
47
|
+
*
|
|
48
|
+
* @default true
|
|
49
|
+
*/
|
|
50
|
+
characterCount: Partial<CharacterCountOptions> | false;
|
|
51
|
+
/**
|
|
52
|
+
* HardBreak options or false, indicating whether to enable hard breaks
|
|
53
|
+
*
|
|
54
|
+
* @default true
|
|
55
|
+
*/
|
|
56
|
+
hardBreak: Partial<HardBreakOptions> | false;
|
|
57
|
+
/**
|
|
58
|
+
* Placeholder options or false, indicating whether to enable placeholders
|
|
59
|
+
*
|
|
60
|
+
* @default true
|
|
61
|
+
*/
|
|
62
|
+
placeholder: Partial<PlaceholderOptions> | false;
|
|
63
|
+
/**
|
|
64
|
+
* Paragraph options or false, indicating whether to enable paragraph functionality
|
|
65
|
+
*
|
|
66
|
+
* @default true
|
|
67
|
+
*/
|
|
68
|
+
paragraph: Partial<ParagraphOptions> | false;
|
|
69
|
+
/**
|
|
70
|
+
* Focus options or false, indicating whether to enable focus functionality
|
|
71
|
+
*
|
|
72
|
+
* @default true
|
|
73
|
+
*/
|
|
74
|
+
focus: Partial<FocusOptions> | false;
|
|
75
|
+
/**
|
|
76
|
+
* ListItem options or false, indicating whether to enable list item functionality
|
|
77
|
+
*
|
|
78
|
+
* @default true
|
|
79
|
+
*/
|
|
80
|
+
listItem: Partial<ListItemOptions> | false;
|
|
81
|
+
/**
|
|
82
|
+
* Text Style options or false, indicating whether to enable text style functionality
|
|
83
|
+
*
|
|
84
|
+
* @default true
|
|
85
|
+
*/
|
|
86
|
+
textStyle: Partial<TextStyleOptions> | false;
|
|
87
|
+
/**
|
|
88
|
+
* Bubble options, taking `BubbleOptions<BaseKitOptions>` as parameters, indicating whether to enable the bubble functionality
|
|
89
|
+
*/
|
|
90
|
+
bubble: Partial<BubbleOptions<BaseKitOptions>>;
|
|
91
|
+
/**
|
|
92
|
+
* Iframe options or false, indicating whether to enable the iframe
|
|
93
|
+
*
|
|
94
|
+
* @default true
|
|
95
|
+
*/
|
|
96
|
+
iframe: Partial<IframeOptions> | false;
|
|
97
|
+
/**
|
|
98
|
+
* Trailing node options or false, indicating whether to enable the trailing node
|
|
99
|
+
*
|
|
100
|
+
* @default true
|
|
101
|
+
*/
|
|
102
|
+
trailingNode: Partial<TrailingNodeOptions> | false;
|
|
103
|
+
/**
|
|
104
|
+
* textBubble options or false, indicating whether to enable the textBubble
|
|
105
|
+
*
|
|
106
|
+
* @default true
|
|
107
|
+
*/
|
|
108
|
+
textBubble: Partial<TextBubbleOptions> | false;
|
|
109
|
+
/**
|
|
110
|
+
* selection options or false, indicating whether to enable the selection
|
|
111
|
+
*
|
|
112
|
+
* @default true
|
|
113
|
+
*/
|
|
114
|
+
selection: any | false;
|
|
115
|
+
fontFamily: Partial<FontFamilyOptions> | false;
|
|
116
|
+
page?: PageOption;
|
|
117
|
+
}
|
|
118
|
+
export declare const BaseKit: Extension<BaseKitOptions, any>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BlockquoteOptions as TiptapBlockquoteOptions } from '@tiptap/extension-blockquote';
|
|
2
|
+
import { GeneralOptions } from '../../type';
|
|
3
|
+
|
|
4
|
+
export interface BlockquoteOptions extends TiptapBlockquoteOptions, GeneralOptions<BlockquoteOptions> {
|
|
5
|
+
}
|
|
6
|
+
export declare const Blockquote: import('@tiptap/core').Node<BlockquoteOptions, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Blockquote';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BoldOptions as TiptapImageOptions } from '@tiptap/extension-bold';
|
|
2
|
+
import { GeneralOptions } from '../../type';
|
|
3
|
+
|
|
4
|
+
export interface BoldOptions extends TiptapImageOptions, GeneralOptions<BoldOptions> {
|
|
5
|
+
}
|
|
6
|
+
export declare const Bold: import('@tiptap/core').Mark<BoldOptions, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Bold';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BulletListOptions as TiptapBulletListOptions } from '@tiptap/extension-bullet-list';
|
|
2
|
+
import { GeneralOptions } from '../../type';
|
|
3
|
+
|
|
4
|
+
export interface BulletListOptions extends TiptapBulletListOptions, GeneralOptions<BulletListOptions> {
|
|
5
|
+
}
|
|
6
|
+
export declare const BulletList: import('@tiptap/core').Node<BulletListOptions, any>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/vue-3';
|
|
2
|
+
|
|
3
|
+
interface Props {
|
|
4
|
+
editor: Editor;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
tooltip?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
tooltip: string;
|
|
11
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
tooltip: string;
|
|
14
|
+
}>>> & Readonly<{}>, {
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
tooltip: string;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: import('vue').PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
type __VLS_WithDefaults<P, D> = {
|
|
29
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
30
|
+
default: D[K];
|
|
31
|
+
}> : P[K];
|
|
32
|
+
};
|
|
33
|
+
type __VLS_Prettify<T> = {
|
|
34
|
+
[K in keyof T]: T[K];
|
|
35
|
+
} & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BulletList';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Clear';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CodeOptions as TiptapCodeOptions } from '@tiptap/extension-code';
|
|
2
|
+
import { GeneralOptions } from '../../type';
|
|
3
|
+
|
|
4
|
+
export interface CodeOptions extends TiptapCodeOptions, GeneralOptions<CodeOptions> {
|
|
5
|
+
}
|
|
6
|
+
export declare const Code: import('@tiptap/core').Mark<CodeOptions, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Code';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CodeBlockLowlightOptions as TiptapCodeBlockOptions } from '@tiptap/extension-code-block-lowlight';
|
|
2
|
+
import { GeneralOptions } from '../../type';
|
|
3
|
+
|
|
4
|
+
export interface CodeBlockOptions extends TiptapCodeBlockOptions, GeneralOptions<CodeBlockOptions> {
|
|
5
|
+
}
|
|
6
|
+
export declare const CodeBlock: import('@tiptap/vue-3').Node<CodeBlockOptions, any>;
|
|
@@ -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 './CodeBlock';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ColorOptions as TiptapColorOptions } from '@tiptap/extension-color';
|
|
2
|
+
import { GeneralOptions } from '../../type';
|
|
3
|
+
|
|
4
|
+
export interface ColorOptions extends TiptapColorOptions, GeneralOptions<ColorOptions> {
|
|
5
|
+
}
|
|
6
|
+
export declare const Color: import('@tiptap/core').Extension<ColorOptions, any>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/vue-3';
|
|
2
|
+
import { ButtonViewReturnComponentProps } from '../../../type';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
editor: Editor;
|
|
6
|
+
icon?: any;
|
|
7
|
+
tooltip?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
action?: ButtonViewReturnComponentProps['action'];
|
|
10
|
+
isActive?: ButtonViewReturnComponentProps['isActive'];
|
|
11
|
+
}
|
|
12
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
13
|
+
icon: undefined;
|
|
14
|
+
tooltip: undefined;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
action: undefined;
|
|
17
|
+
isActive: undefined;
|
|
18
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
19
|
+
icon: undefined;
|
|
20
|
+
tooltip: undefined;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
action: undefined;
|
|
23
|
+
isActive: undefined;
|
|
24
|
+
}>>> & Readonly<{}>, {
|
|
25
|
+
icon: any;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
tooltip: string;
|
|
28
|
+
action: (value?: any) => void;
|
|
29
|
+
isActive: () => boolean;
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
34
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
35
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
36
|
+
} : {
|
|
37
|
+
type: import('vue').PropType<T[K]>;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
type __VLS_WithDefaults<P, D> = {
|
|
42
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
43
|
+
default: D[K];
|
|
44
|
+
}> : P[K];
|
|
45
|
+
};
|
|
46
|
+
type __VLS_Prettify<T> = {
|
|
47
|
+
[K in keyof T]: T[K];
|
|
48
|
+
} & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Color';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Document';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Extension, Range } from '@tiptap/core';
|
|
2
|
+
import { PluginKey } from '@tiptap/pm/state';
|
|
3
|
+
import { GeneralOptions } from '../../type';
|
|
4
|
+
|
|
5
|
+
declare module '@tiptap/core' {
|
|
6
|
+
interface Commands<ReturnType> {
|
|
7
|
+
search: {
|
|
8
|
+
/**
|
|
9
|
+
* @description Set search term in extension.
|
|
10
|
+
*/
|
|
11
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
12
|
+
/**
|
|
13
|
+
* @description Set replace term in extension.
|
|
14
|
+
*/
|
|
15
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
16
|
+
/**
|
|
17
|
+
* @description Set case sensitivity in extension.
|
|
18
|
+
*/
|
|
19
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
20
|
+
/**
|
|
21
|
+
* @description Reset current search result to first instance.
|
|
22
|
+
*/
|
|
23
|
+
resetIndex: () => ReturnType;
|
|
24
|
+
/**
|
|
25
|
+
* @description Find next instance of search result.
|
|
26
|
+
*/
|
|
27
|
+
nextSearchResult: () => ReturnType;
|
|
28
|
+
/**
|
|
29
|
+
* @description Find previous instance of search result.
|
|
30
|
+
*/
|
|
31
|
+
previousSearchResult: () => ReturnType;
|
|
32
|
+
/**
|
|
33
|
+
* @description Replace first instance of search result with given replace term.
|
|
34
|
+
*/
|
|
35
|
+
replace: () => ReturnType;
|
|
36
|
+
/**
|
|
37
|
+
* @description Replace all instances of search result with given replace term.
|
|
38
|
+
*/
|
|
39
|
+
replaceAll: () => ReturnType;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
export declare const findAndReplacePluginKey: PluginKey<any>;
|
|
44
|
+
export interface FindAndReplaceOptions extends GeneralOptions<FindAndReplaceOptions> {
|
|
45
|
+
searchResultClass: string;
|
|
46
|
+
disableRegex: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface FindAndReplaceStorage {
|
|
49
|
+
searchTerm: string;
|
|
50
|
+
replaceTerm: string;
|
|
51
|
+
results: Range[];
|
|
52
|
+
lastSearchTerm: string;
|
|
53
|
+
caseSensitive: boolean;
|
|
54
|
+
lastCaseSensitive: boolean;
|
|
55
|
+
resultIndex: number;
|
|
56
|
+
lastResultIndex: number;
|
|
57
|
+
}
|
|
58
|
+
export declare const FindAndReplace: Extension<FindAndReplaceOptions, FindAndReplaceStorage>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FindAndReplace';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FontFamilyOptions as TiptapFontFamilyOptions } from '@tiptap/extension-font-family';
|
|
2
|
+
import { GeneralOptions } from '../../type';
|
|
3
|
+
|
|
4
|
+
export interface FontFamilyOptions extends TiptapFontFamilyOptions, GeneralOptions<FontFamilyOptions> {
|
|
5
|
+
fontFamilyMap: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
declare module '@tiptap/core' {
|
|
10
|
+
interface Commands<ReturnType> {
|
|
11
|
+
fontFamily: {
|
|
12
|
+
/**
|
|
13
|
+
* Set the text font family.
|
|
14
|
+
* CSS font-size
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
setFontFamily: (fontFamily: string) => ReturnType;
|
|
18
|
+
/**
|
|
19
|
+
* Unset the font family
|
|
20
|
+
*/
|
|
21
|
+
unsetFontFamily: () => ReturnType;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export declare const FontFamily: import('@tiptap/core').Extension<FontFamilyOptions, 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 './FontFamily';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
import { GeneralOptions } from '../../type';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Represents the interface for font size options, extending GeneralOptions.
|
|
6
|
+
*/
|
|
7
|
+
export interface FontSizeOptions extends GeneralOptions<FontSizeOptions> {
|
|
8
|
+
types: string[];
|
|
9
|
+
/**
|
|
10
|
+
* List of available font size values
|
|
11
|
+
*
|
|
12
|
+
* @default DEFAULT_FONT_SIZE_LIST
|
|
13
|
+
*/
|
|
14
|
+
fontSizes: string[];
|
|
15
|
+
}
|
|
16
|
+
declare module '@tiptap/core' {
|
|
17
|
+
interface Commands<ReturnType> {
|
|
18
|
+
fontSize: {
|
|
19
|
+
/**
|
|
20
|
+
* Set the text font size. ex: "12px", "2em", or "small". Must be a valid
|
|
21
|
+
* CSS font-size
|
|
22
|
+
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
23
|
+
*/
|
|
24
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
25
|
+
/**
|
|
26
|
+
* Unset the font size
|
|
27
|
+
*/
|
|
28
|
+
unsetFontSize: () => ReturnType;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export declare const FontSize: Extension<FontSizeOptions, any>;
|