vix-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/LICENSE +21 -0
- package/README.md +122 -0
- package/README.zh-CN.md +121 -0
- package/lib/en_Us-CzkSpEfR.mjs +214 -0
- package/lib/index.d.ts +3 -0
- package/lib/src/components/ActionButton.vue.d.ts +86 -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/EchoEditor.vue.d.ts +99 -0
- package/lib/src/components/FindAndReplace.vue.d.ts +43 -0
- package/lib/src/components/Menubars.vue.d.ts +31 -0
- package/lib/src/components/Preview.vue.d.ts +31 -0
- package/lib/src/components/Printer.vue.d.ts +31 -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 +116 -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/AIMenu.vue.d.ts +31 -0
- package/lib/src/components/menus/BasicBubble.d.ts +59 -0
- package/lib/src/components/menus/BasicBubbleMenu.vue.d.ts +31 -0
- package/lib/src/components/menus/ColumnsBubbleMenu.vue.d.ts +31 -0
- package/lib/src/components/menus/ContentMenu.vue.d.ts +40 -0
- package/lib/src/components/menus/ImageBubbleMenu.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/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/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 +57 -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 +57 -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/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 +69 -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 +59 -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/menu/MenuCheckboxItem.vue.d.ts +33 -0
- package/lib/src/components/ui/menu/MenuItem.vue.d.ts +29 -0
- package/lib/src/components/ui/menu/MenuSeparator.vue.d.ts +17 -0
- package/lib/src/components/ui/menu/MenuShortcut.vue.d.ts +26 -0
- package/lib/src/components/ui/menu/index.d.ts +5 -0
- package/lib/src/components/ui/menu.vue.d.ts +28 -0
- package/lib/src/components/ui/menubar/Menubar.vue.d.ts +31 -0
- package/lib/src/components/ui/menubar/MenubarCheckboxItem.vue.d.ts +33 -0
- package/lib/src/components/ui/menubar/MenubarContent.vue.d.ts +47 -0
- package/lib/src/components/ui/menubar/MenubarGroup.vue.d.ts +22 -0
- package/lib/src/components/ui/menubar/MenubarItem.vue.d.ts +33 -0
- package/lib/src/components/ui/menubar/MenubarLabel.vue.d.ts +29 -0
- package/lib/src/components/ui/menubar/MenubarMenu.vue.d.ts +22 -0
- package/lib/src/components/ui/menubar/MenubarRadioGroup.vue.d.ts +26 -0
- package/lib/src/components/ui/menubar/MenubarRadioItem.vue.d.ts +31 -0
- package/lib/src/components/ui/menubar/MenubarSeparator.vue.d.ts +18 -0
- package/lib/src/components/ui/menubar/MenubarShortcut.vue.d.ts +26 -0
- package/lib/src/components/ui/menubar/MenubarSub.vue.d.ts +28 -0
- package/lib/src/components/ui/menubar/MenubarSubContent.vue.d.ts +59 -0
- package/lib/src/components/ui/menubar/MenubarSubTrigger.vue.d.ts +29 -0
- package/lib/src/components/ui/menubar/MenubarTrigger.vue.d.ts +27 -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 +74 -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 +53 -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 +20 -0
- package/lib/src/components/ui/separator/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/toast/Toast.vue.d.ts +104 -0
- package/lib/src/components/ui/toast/ToastAction.vue.d.ts +27 -0
- package/lib/src/components/ui/toast/ToastClose.vue.d.ts +18 -0
- package/lib/src/components/ui/toast/ToastDescription.vue.d.ts +27 -0
- package/lib/src/components/ui/toast/ToastProvider.vue.d.ts +22 -0
- package/lib/src/components/ui/toast/ToastTitle.vue.d.ts +27 -0
- package/lib/src/components/ui/toast/ToastViewport.vue.d.ts +18 -0
- package/lib/src/components/ui/toast/Toaster.vue.d.ts +2 -0
- package/lib/src/components/ui/toast/index.d.ts +22 -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/ToggleGroup.vue.d.ts +38 -0
- package/lib/src/components/ui/toggle-group/ToggleGroupItem.vue.d.ts +34 -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-en.d.ts +41 -0
- package/lib/src/constants/index.d.ts +41 -0
- package/lib/src/extensions/AI/AI.d.ts +27 -0
- package/lib/src/extensions/AI/components/AIButton.vue.d.ts +74 -0
- package/lib/src/extensions/AI/constants.d.ts +7 -0
- package/lib/src/extensions/AI/index.d.ts +1 -0
- package/lib/src/extensions/BaseKit.d.ts +113 -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/Card/card.d.ts +16 -0
- package/lib/src/extensions/Card/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 +21 -0
- package/lib/src/extensions/CodeBlock/components/NodeView.vue.d.ts +93 -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/EChartsView/EChartsView.d.ts +3 -0
- package/lib/src/extensions/EChartsView/components/ChartView.vue.d.ts +2 -0
- package/lib/src/extensions/EChartsView/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 +43 -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 +13 -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 +52 -0
- package/lib/src/extensions/Heading/index.d.ts +1 -0
- package/lib/src/extensions/Heading/types.d.ts +15 -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/HighlightParagraph/HighlightParagraph.d.ts +19 -0
- package/lib/src/extensions/HighlightParagraph/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/Iframe/Iframe.d.ts +23 -0
- package/lib/src/extensions/Iframe/IframeNodeView.vue.d.ts +92 -0
- package/lib/src/extensions/Iframe/embed.d.ts +120 -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 +92 -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 +92 -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/Mention/index.d.ts +1 -0
- package/lib/src/extensions/Mention/mention.d.ts +108 -0
- package/lib/src/extensions/Mention/utils/get-default-suggestion-attributes.d.ts +38 -0
- package/lib/src/extensions/MoreMark/MoreMark.d.ts +20 -0
- package/lib/src/extensions/MoreMark/components/ActionMoreButton.vue.d.ts +52 -0
- package/lib/src/extensions/MoreMark/index.d.ts +1 -0
- package/lib/src/extensions/MoreMark/types.d.ts +15 -0
- package/lib/src/extensions/MultiColumn/Column.d.ts +4 -0
- package/lib/src/extensions/MultiColumn/Columns.d.ts +26 -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/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/ReferenceDot/ReferenceDot.d.ts +4 -0
- package/lib/src/extensions/ReferenceDot/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/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/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 +92 -0
- package/lib/src/extensions/VideoUpload/index.d.ts +1 -0
- package/lib/src/extensions/index.d.ts +80 -0
- package/lib/src/hooks/index.d.ts +4 -0
- package/lib/src/hooks/useAIConversation.d.ts +19 -0
- package/lib/src/hooks/useContext.d.ts +21 -0
- package/lib/src/hooks/useEditorFocus.d.ts +17 -0
- package/lib/src/hooks/useHotkeys.d.ts +4 -0
- package/lib/src/hooks/useStore.d.ts +50 -0
- package/lib/src/index.d.ts +14 -0
- package/lib/src/lib/utils.d.ts +7 -0
- package/lib/src/locales/index.d.ts +31 -0
- package/lib/src/locales/locales/en.d.ts +2 -0
- package/lib/src/locales/locales/zh.d.ts +2 -0
- package/lib/src/plugins/DragHandle/index.d.ts +20 -0
- package/lib/src/plugins/DragHandle/range.d.ts +32 -0
- package/lib/src/plugins/DragHandle/utils.d.ts +17 -0
- package/lib/src/plugins/image-upload.d.ts +12 -0
- package/lib/src/type.d.ts +172 -0
- package/lib/src/utils/content.d.ts +3 -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/mitt.d.ts +24 -0
- package/lib/src/utils/plateform.d.ts +11 -0
- package/lib/src/utils/themeIcons.d.ts +6 -0
- package/lib/src/utils/utils.d.ts +21 -0
- package/lib/src/utils.d.ts +3 -0
- package/lib/style.css +1 -0
- package/lib/vite.config.d.ts +2 -0
- package/lib/vix-editor.mjs +98018 -0
- package/lib/zh_CN-3QknuiII.mjs +212 -0
- package/package.json +157 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 SEED
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# Echo Editor
|
|
2
|
+
|
|
3
|
+
A modern AI-powered WYSIWYG rich-text editor for Vue, based on [tiptap](https://tiptap.dev) and [shadcn-vue](https://www.shadcn-vue.com/).
|
|
4
|
+
|
|
5
|
+
[](https://choosealicense.com/licenses/mit/) [](https://www.npmjs.com/package/echo-editor) [](https://www.npmjs.com/package/echo-editor)
|
|
6
|
+
|
|
7
|
+
English | [中文](./README.zh-CN.md)
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
## Demo
|
|
12
|
+
|
|
13
|
+
[Live Demo](https://echo-editor.jzcloud.site/)
|
|
14
|
+
|
|
15
|
+
## Features
|
|
16
|
+
|
|
17
|
+
- 🎨 Beautiful UI with [shadcn-vue](https://www.shadcn-vue.com/) components
|
|
18
|
+
- ✨ AI-powered writing assistance
|
|
19
|
+
- 📝 Markdown support with real-time preview
|
|
20
|
+
- 🔤 Rich text formatting (headings, lists, quotes, etc.)
|
|
21
|
+
- 📊 Tables and code blocks
|
|
22
|
+
- 🎯 Custom font sizes and styles
|
|
23
|
+
- 📄 Import from Word documents
|
|
24
|
+
- 🌍 I18n support (`en_US`, `zh_CN`)
|
|
25
|
+
- 🧩 Extensible architecture - create your own extensions
|
|
26
|
+
- 🎭 TypeScript support
|
|
27
|
+
- 🎨 Tailwind CSS support
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npm install echo-editor
|
|
33
|
+
# or
|
|
34
|
+
pnpm install echo-editor
|
|
35
|
+
# or
|
|
36
|
+
yarn add echo-editor
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Usage
|
|
40
|
+
|
|
41
|
+
### Method 1: Global Registration
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
// main.ts
|
|
45
|
+
import { createApp } from 'vue';
|
|
46
|
+
import App from './App.vue';
|
|
47
|
+
import EchoEditor from 'echo-editor';
|
|
48
|
+
import 'echo-editor/style.css';
|
|
49
|
+
|
|
50
|
+
const app = createApp(App);
|
|
51
|
+
app.use(EchoEditor);
|
|
52
|
+
app.mount('#app');
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
<script setup>
|
|
57
|
+
import { ref } from 'vue'
|
|
58
|
+
import { BaseKit } from 'echo-editor'
|
|
59
|
+
|
|
60
|
+
const content = ref('')
|
|
61
|
+
const extensions = [
|
|
62
|
+
BaseKit.configure({
|
|
63
|
+
placeholder: {
|
|
64
|
+
placeholder: 'Start writing...',
|
|
65
|
+
},
|
|
66
|
+
}),
|
|
67
|
+
]
|
|
68
|
+
</script>
|
|
69
|
+
|
|
70
|
+
<template>
|
|
71
|
+
<echo-editor :extensions="extensions" v-model="content" />
|
|
72
|
+
</template>
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Method 2: Direct Usage
|
|
76
|
+
|
|
77
|
+
```ts
|
|
78
|
+
<script setup>
|
|
79
|
+
import { EchoEditor, BaseKit } from 'echo-editor'
|
|
80
|
+
import 'echo-editor/style.css'
|
|
81
|
+
|
|
82
|
+
const content = ref('')
|
|
83
|
+
const extensions = [
|
|
84
|
+
BaseKit.configure({
|
|
85
|
+
placeholder: {
|
|
86
|
+
placeholder: 'Start writing...',
|
|
87
|
+
},
|
|
88
|
+
}),
|
|
89
|
+
]
|
|
90
|
+
</script>
|
|
91
|
+
|
|
92
|
+
<template>
|
|
93
|
+
<echo-editor :extensions="extensions" v-model="content" />
|
|
94
|
+
</template>
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Development
|
|
98
|
+
|
|
99
|
+
1. Install [pnpm](https://pnpm.io/installation)
|
|
100
|
+
2. Clone the repository
|
|
101
|
+
3. Run `pnpm install`
|
|
102
|
+
4. Start development server with `pnpm dev`
|
|
103
|
+
|
|
104
|
+
To test the build version:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
pnpm examples
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Contributing
|
|
111
|
+
|
|
112
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
113
|
+
|
|
114
|
+
## Related Projects
|
|
115
|
+
|
|
116
|
+
- [shadcn-vue](https://www.shadcn-vue.com/)
|
|
117
|
+
- [tiptap](https://tiptap.dev)
|
|
118
|
+
- [iconify](https://icon-sets.iconify.design)
|
|
119
|
+
|
|
120
|
+
## License
|
|
121
|
+
|
|
122
|
+
[MIT](https://choosealicense.com/licenses/mit/)
|
package/README.zh-CN.md
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# Echo Editor
|
|
2
|
+
|
|
3
|
+
一款基于 [tiptap](https://tiptap.dev) 和 [shadcn-vue](https://www.shadcn-vue.com/) 的新一代 AI 富文本编辑器。
|
|
4
|
+
|
|
5
|
+
[](https://choosealicense.com/licenses/mit/) [](https://www.npmjs.com/package/echo-editor) [](https://www.npmjs.com/package/echo-editor)
|
|
6
|
+
|
|
7
|
+
[English](./README.md) | 中文
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
## 在线演示
|
|
12
|
+
|
|
13
|
+
[查看演示](https://echo-editor.jzcloud.site/)
|
|
14
|
+
|
|
15
|
+
## 特性
|
|
16
|
+
|
|
17
|
+
- 🎨 使用 [shadcn-vue](https://www.shadcn-vue.com/) 精美组件
|
|
18
|
+
- ✨ AI 智能写作辅助
|
|
19
|
+
- 📝 支持 Markdown 及实时预览
|
|
20
|
+
- 🔤 丰富的文本格式化功能(标题、列表、引用等)
|
|
21
|
+
- 📊 表格和代码块支持
|
|
22
|
+
- 🎯 自定义字体大小和样式
|
|
23
|
+
- 📄 支持导入 Word 文档
|
|
24
|
+
- 🌍 国际化支持(`en_US`、`zh_CN`)
|
|
25
|
+
- 🧩 可扩展架构 - 支持自定义扩展
|
|
26
|
+
- 🎭 TypeScript 支持
|
|
27
|
+
- 🎨 Tailwind CSS 支持
|
|
28
|
+
|
|
29
|
+
## 安装
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npm install echo-editor
|
|
33
|
+
# 或
|
|
34
|
+
pnpm install echo-editor
|
|
35
|
+
# 或
|
|
36
|
+
yarn add echo-editor
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## 使用方法
|
|
40
|
+
|
|
41
|
+
### 方式一:全局注册
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
// main.ts
|
|
45
|
+
import { createApp } from 'vue';
|
|
46
|
+
import App from './App.vue';
|
|
47
|
+
import EchoEditor from 'echo-editor';
|
|
48
|
+
import 'echo-editor/style.css';
|
|
49
|
+
|
|
50
|
+
const app = createApp(App);
|
|
51
|
+
app.use(EchoEditor);
|
|
52
|
+
app.mount('#app');
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
<script setup>
|
|
57
|
+
import { BaseKit } from 'echo-editor'
|
|
58
|
+
|
|
59
|
+
const content = ref('')
|
|
60
|
+
const extensions = [
|
|
61
|
+
BaseKit.configure({
|
|
62
|
+
placeholder: {
|
|
63
|
+
placeholder: '开始写作...',
|
|
64
|
+
},
|
|
65
|
+
}),
|
|
66
|
+
]
|
|
67
|
+
</script>
|
|
68
|
+
|
|
69
|
+
<template>
|
|
70
|
+
<echo-editor :extensions="extensions" v-model="content" />
|
|
71
|
+
</template>
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### 方式二:直接使用
|
|
75
|
+
|
|
76
|
+
```ts
|
|
77
|
+
<script setup>
|
|
78
|
+
import { EchoEditor, BaseKit } from 'echo-editor'
|
|
79
|
+
import 'echo-editor/style.css'
|
|
80
|
+
|
|
81
|
+
const content = ref('')
|
|
82
|
+
const extensions = [
|
|
83
|
+
BaseKit.configure({
|
|
84
|
+
placeholder: {
|
|
85
|
+
placeholder: '开始写作...',
|
|
86
|
+
},
|
|
87
|
+
}),
|
|
88
|
+
]
|
|
89
|
+
</script>
|
|
90
|
+
|
|
91
|
+
<template>
|
|
92
|
+
<echo-editor :extensions="extensions" v-model="content" />
|
|
93
|
+
</template>
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## 开发
|
|
97
|
+
|
|
98
|
+
1. 安装 [pnpm](https://pnpm.io/installation)
|
|
99
|
+
2. 克隆仓库
|
|
100
|
+
3. 运行 `pnpm install`
|
|
101
|
+
4. 使用 `pnpm dev` 启动开发服务器
|
|
102
|
+
|
|
103
|
+
测试构建版本:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
pnpm examples
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## 贡献
|
|
110
|
+
|
|
111
|
+
欢迎提交 Pull Request 来帮助改进项目!
|
|
112
|
+
|
|
113
|
+
## 相关项目
|
|
114
|
+
|
|
115
|
+
- [shadcn-vue](https://www.shadcn-vue.com/)
|
|
116
|
+
- [tiptap](https://tiptap.dev)
|
|
117
|
+
- [iconify](https://icon-sets.iconify.design)
|
|
118
|
+
|
|
119
|
+
## 许可证
|
|
120
|
+
|
|
121
|
+
[MIT](https://choosealicense.com/licenses/mit/)
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
"editor.remove": "Remove",
|
|
3
|
+
"editor.copy": "Copy",
|
|
4
|
+
"editor.words": "WORDS",
|
|
5
|
+
"editor.characters": "CHARACTERS",
|
|
6
|
+
"editor.default": "Default",
|
|
7
|
+
"editor.recent": "Recently Used",
|
|
8
|
+
"editor.nofill": "Remove Color",
|
|
9
|
+
"editor.format": "Format Painter",
|
|
10
|
+
"editor.close": "Close",
|
|
11
|
+
"editor.modify": "Modify",
|
|
12
|
+
"editor.preview.tooltip": "Preview",
|
|
13
|
+
"editor.draghandle.tooltip": "Click And Drag",
|
|
14
|
+
"editor.copyToClipboard": "CopyToClipboard",
|
|
15
|
+
"editor.importWord.tooltip": "Import from Word",
|
|
16
|
+
"editor.importWord.success": "Import Success",
|
|
17
|
+
"editor.importWord.fileTooLarge": "File is Too large",
|
|
18
|
+
"editor.importWord.error": "Import Failed, File not supported",
|
|
19
|
+
"editor.slash": "Press '/' for commands",
|
|
20
|
+
"editor.slash.empty": "No Result",
|
|
21
|
+
"editor.slash.format": "Format",
|
|
22
|
+
"editor.slash.insert": "Insert",
|
|
23
|
+
"editor.slash.embed": "Embed Services",
|
|
24
|
+
"editor.content": "Please input content",
|
|
25
|
+
"editor.moremark": "More Text Styles",
|
|
26
|
+
"editor.size.small.tooltip": "Small",
|
|
27
|
+
"editor.size.medium.tooltip": "Medium",
|
|
28
|
+
"editor.size.large.tooltip": "Cover",
|
|
29
|
+
"editor.bold.tooltip": "Bold",
|
|
30
|
+
"editor.italic.tooltip": "Italic",
|
|
31
|
+
"editor.underline.tooltip": "Underline",
|
|
32
|
+
"editor.strike.tooltip": "Strike",
|
|
33
|
+
"editor.color.tooltip": "Color",
|
|
34
|
+
"editor.color.more": "Color Picker",
|
|
35
|
+
"editor.highlight.tooltip": "Highlight",
|
|
36
|
+
"editor.lineheight.tooltip": "Line Height",
|
|
37
|
+
"editor.heading.tooltip": "Headings",
|
|
38
|
+
"editor.heading.h1.tooltip": "Heading 1",
|
|
39
|
+
"editor.heading.h2.tooltip": "Heading 2",
|
|
40
|
+
"editor.heading.h3.tooltip": "Heading 3",
|
|
41
|
+
"editor.heading.h4.tooltip": "Heading 4",
|
|
42
|
+
"editor.heading.h5.tooltip": "Heading 5",
|
|
43
|
+
"editor.heading.h6.tooltip": "Heading 6",
|
|
44
|
+
"editor.paragraph.tooltip": "Paragraph",
|
|
45
|
+
"editor.textalign.tooltip": "Align",
|
|
46
|
+
"editor.textalign.left.tooltip": "Left",
|
|
47
|
+
"editor.textalign.center.tooltip": "Center",
|
|
48
|
+
"editor.textalign.right.tooltip": "Right",
|
|
49
|
+
"editor.textalign.justify.tooltip": "Justify",
|
|
50
|
+
"editor.indent": "Indent",
|
|
51
|
+
"editor.indent.indent": "Increase Indent",
|
|
52
|
+
"editor.indent.outdent": "Decrease Indent",
|
|
53
|
+
"editor.fontFamily.tooltip": "Font family",
|
|
54
|
+
"editor.fontFamily.default": "Default",
|
|
55
|
+
"editor.fontSize.tooltip": "Font size",
|
|
56
|
+
"editor.fontSize.default.tooltip": "Default",
|
|
57
|
+
"editor.superscript.tooltip": "Superscript",
|
|
58
|
+
"editor.subscript.tooltip": "Subscript",
|
|
59
|
+
"editor.bulletlist.tooltip": "Bullet List",
|
|
60
|
+
"editor.bulletlist.disc.tooltip": "Disc",
|
|
61
|
+
"editor.bulletlist.circle.tooltip": "Circle",
|
|
62
|
+
"editor.bulletlist.square.tooltip": "Square",
|
|
63
|
+
"editor.orderedlist.tooltip": "Ordered List",
|
|
64
|
+
"editor.orderedlist.decimal.tooltip": "Decimal",
|
|
65
|
+
"editor.orderedlist.decimalLeadingZero.tooltip": "Decimal with leading zero",
|
|
66
|
+
"editor.orderedlist.lowerRoman.tooltip": "Lower Roman",
|
|
67
|
+
"editor.orderedlist.upperRoman.tooltip": "Upper Roman",
|
|
68
|
+
"editor.orderedlist.lowerLatin.tooltip": "Lower Latin",
|
|
69
|
+
"editor.orderedlist.upperLatin.tooltip": "Upper Latin",
|
|
70
|
+
"editor.orderedlist.tradChineseInformal.tooltip": "Trad Chinese Informal",
|
|
71
|
+
"editor.orderedlist.simpChineseFormal.tooltip": "Simp Chinese Informal",
|
|
72
|
+
"editor.tasklist.tooltip": "Task List",
|
|
73
|
+
"editor.indent.tooltip": "Indent",
|
|
74
|
+
"editor.outdent.tooltip": "Outdent",
|
|
75
|
+
"editor.columns.tooltip": "Two Columns",
|
|
76
|
+
"editor.threeColumns.tooltip": "Three Columns",
|
|
77
|
+
"editor.fourColumns.tooltip": "Four Columns",
|
|
78
|
+
"editor.link.tooltip": "Link",
|
|
79
|
+
"editor.link.unlink.tooltip": "UnLink",
|
|
80
|
+
"editor.link.open.tooltip": "Open Link",
|
|
81
|
+
"editor.link.edit.tooltip": "Edit Link",
|
|
82
|
+
"editor.link.dialog.title": "Insert Link",
|
|
83
|
+
"editor.link.dialog.link": "Link",
|
|
84
|
+
"editor.link.dialog.text": "Text",
|
|
85
|
+
"editor.link.dialog.openInNewTab": "Open In New Tab",
|
|
86
|
+
"editor.link.dialog.link.placeholder": "Link Address",
|
|
87
|
+
"editor.link.dialog.text.placeholder": "Add Description",
|
|
88
|
+
"editor.link.dialog.button.apply": "Apply",
|
|
89
|
+
"editor.image.tooltip": "Image",
|
|
90
|
+
"editor.image.menu.flipX": "Flip vertical",
|
|
91
|
+
"editor.image.menu.flipY": "Flip horizontal",
|
|
92
|
+
"editor.image.menu.size": "Set Size",
|
|
93
|
+
"editor.image.menu.size.width": "Width",
|
|
94
|
+
"editor.image.menu.size.height": "Height",
|
|
95
|
+
"editor.image.dragger.tooltip": "Click or drag the image to the area to upload",
|
|
96
|
+
"editor.image.float.left.tooltip": "Float left",
|
|
97
|
+
"editor.image.float.none.tooltip": "Float none",
|
|
98
|
+
"editor.image.float.right.tooltip": "Float right",
|
|
99
|
+
"editor.image.dialog.title": "Add an image",
|
|
100
|
+
"editor.image.dialog.tab.url": "Url",
|
|
101
|
+
"editor.image.dialog.tab.upload": "Upload",
|
|
102
|
+
"editor.image.dialog.uploading": "Uploading",
|
|
103
|
+
"editor.image.dialog.form.link": "Link",
|
|
104
|
+
"editor.image.dialog.placeholder": "Link",
|
|
105
|
+
"editor.image.dialog.form.alt": "Alt",
|
|
106
|
+
"editor.image.dialog.form.aspectRatio": "Lock original aspect ratio",
|
|
107
|
+
"editor.image.dialog.form.file": "File",
|
|
108
|
+
"editor.image.dialog.button.apply": "apply",
|
|
109
|
+
"editor.video.tooltip": "Video",
|
|
110
|
+
"editor.video.dialog.tab.upload": "Upload",
|
|
111
|
+
"editor.video.dialog.uploading": "Uploading",
|
|
112
|
+
"editor.video.dialog.title": "Embed or upload a video",
|
|
113
|
+
"editor.video.dialog.link": "link",
|
|
114
|
+
"editor.video.dialog.placeholder": "Link",
|
|
115
|
+
"editor.video.dialog.button.apply": "apply",
|
|
116
|
+
"editor.table.tooltip": "Table",
|
|
117
|
+
"editor.table.menu.insert_table": "Insert Table",
|
|
118
|
+
"editor.table.menu.insert_table.with_header_row": "With header row",
|
|
119
|
+
"editor.table.menu.insertColumnBefore": "Insert Column Before",
|
|
120
|
+
"editor.table.menu.insertColumnAfter": "Insert Column After",
|
|
121
|
+
"editor.table.menu.deleteColumn": "Delete Column",
|
|
122
|
+
"editor.table.menu.insertRowAbove": "Insert Row Above",
|
|
123
|
+
"editor.table.menu.insertRowBelow": "Insert Row Below",
|
|
124
|
+
"editor.table.menu.deleteRow": "Delete Row",
|
|
125
|
+
"editor.table.menu.mergeCells": "Merge Cells",
|
|
126
|
+
"editor.table.menu.splitCells": "Split Cells",
|
|
127
|
+
"editor.table.menu.deleteTable": "Delete Table",
|
|
128
|
+
"editor.table.menu.setCellsBgColor": "Cell Background Color",
|
|
129
|
+
"editor.blockquote.tooltip": "Blockquote",
|
|
130
|
+
"editor.horizontalrule.tooltip": "Horizontal Rule",
|
|
131
|
+
"editor.code.tooltip": "Code",
|
|
132
|
+
"editor.codeblock.tooltip": "Code Block",
|
|
133
|
+
"editor.clear.tooltip": "Clear Format",
|
|
134
|
+
"editor.undo.tooltip": "Undo",
|
|
135
|
+
"editor.redo.tooltip": "Redo",
|
|
136
|
+
"editor.fullscreen.tooltip.fullscreen": "Fullscreen",
|
|
137
|
+
"editor.fullscreen.tooltip.exit": "Fullscreen Exit",
|
|
138
|
+
"editor.imageUpload.fileTypeNotSupported": "File type not supported",
|
|
139
|
+
"editor.imageUpload.fileSizeTooBig": "File size too big, Maximum size is",
|
|
140
|
+
"editor.AI.placeholder": "Input text optimization instructions",
|
|
141
|
+
"editor.AI.generating": "Writing in progress",
|
|
142
|
+
"editor.AI.insert": "Insert below selection",
|
|
143
|
+
"editor.AI.replace": "Replace selected content",
|
|
144
|
+
"editor.AI.regenerate": "Regenerate",
|
|
145
|
+
"editor.AI.close": "Close",
|
|
146
|
+
"editor.AI.stop": "Stop",
|
|
147
|
+
"editor.AI.ask": "Ask AI",
|
|
148
|
+
"editor.AI.error": "AI Error",
|
|
149
|
+
"editor.AI.editorNotFound": "Editor not found",
|
|
150
|
+
"editor.AI.noSelection": "Please select some text first",
|
|
151
|
+
"editor.AI.unknownError": "An unknown error occurred",
|
|
152
|
+
"editor.AI.noCachedPrompt": "No cached prompt found",
|
|
153
|
+
"editor.AI.regenerateError": "Failed to regenerate response",
|
|
154
|
+
"editor.AI.shortcutError": "Failed to execute shortcut",
|
|
155
|
+
"editor.menubar.file": "File",
|
|
156
|
+
"editor.menubar.edit": "Edit",
|
|
157
|
+
"editor.menubar.view": "View",
|
|
158
|
+
"editor.menubar.insert": "Insert",
|
|
159
|
+
"editor.menubar.format": "Format",
|
|
160
|
+
"editor.menubar.menu.newDoc": "New Document",
|
|
161
|
+
"editor.menubar.menu.restoreLastDraft": "Restore last draft",
|
|
162
|
+
"editor.menubar.menu.print": "Print",
|
|
163
|
+
"editor.menubar.menu.cut": "Cut",
|
|
164
|
+
"editor.menubar.menu.copy": "Copy",
|
|
165
|
+
"editor.menubar.menu.paste": "Paste",
|
|
166
|
+
"editor.menubar.menu.pasteAsText": "Paste as text",
|
|
167
|
+
"editor.menubar.menu.selectAll": "Select all",
|
|
168
|
+
"editor.menubar.menu.preview": "Preview",
|
|
169
|
+
"editor.menubar.menu.spellCheck": "Spell check",
|
|
170
|
+
"editor.findAndReplace.tooltip": "Find and replace",
|
|
171
|
+
"editor.findAndReplace.find": "Find",
|
|
172
|
+
"editor.findAndReplace.replace": "Replace",
|
|
173
|
+
"editor.findAndReplace.replaceAll": "Replace All",
|
|
174
|
+
"editor.findAndReplace.caseSensitive": "Case Sensitive",
|
|
175
|
+
"editor.printer.tooltip": "Print",
|
|
176
|
+
"editor.AI.shortcuts.generate.title": "Generate from selection",
|
|
177
|
+
"editor.AI.shortcuts.generate.improve": "Improve writing",
|
|
178
|
+
"editor.AI.shortcuts.generate.shorter": "Make shorter",
|
|
179
|
+
"editor.AI.shortcuts.generate.longer": "Make longer",
|
|
180
|
+
"editor.AI.shortcuts.generate.summarize": "Summarize",
|
|
181
|
+
"editor.AI.shortcuts.generate.continue": "Continue",
|
|
182
|
+
"editor.AI.shortcuts.tone.title": "Change Tone",
|
|
183
|
+
"editor.AI.shortcuts.tone.professional": "Professional",
|
|
184
|
+
"editor.AI.shortcuts.tone.casual": "Casual",
|
|
185
|
+
"editor.AI.shortcuts.tone.direct": "Direct",
|
|
186
|
+
"editor.AI.shortcuts.tone.confident": "Confident",
|
|
187
|
+
"editor.AI.shortcuts.tone.friendly": "Friendly",
|
|
188
|
+
"editor.AI.shortcuts.translate.title": "Translate",
|
|
189
|
+
"editor.AI.shortcuts.translate.english": "English",
|
|
190
|
+
"editor.AI.shortcuts.translate.chinese": "Simplified Chinese",
|
|
191
|
+
"editor.AI.shortcuts.translate.spanish": "Spanish",
|
|
192
|
+
"editor.AI.shortcuts.translate.german": "German",
|
|
193
|
+
"editor.AI.shortcuts.translate.french": "French",
|
|
194
|
+
"editor.AI.shortcuts.translate.portuguese": "Portuguese",
|
|
195
|
+
"editor.AI.shortcuts.translate.korean": "Korean",
|
|
196
|
+
"editor.AI.shortcuts.translate.japanese": "Japanese",
|
|
197
|
+
"editor.AI.shortcuts.translate.hindi": "Hindi",
|
|
198
|
+
"editor.AI.shortcuts.translate.russian": "Russian",
|
|
199
|
+
"editor.AI.shortcuts.translate.arabic": "Arabic",
|
|
200
|
+
"editor.AI.shortcuts.style.title": "Change Style",
|
|
201
|
+
"editor.AI.shortcuts.style.business": "Business",
|
|
202
|
+
"editor.AI.shortcuts.style.legal": "Legal",
|
|
203
|
+
"editor.AI.shortcuts.style.journalism": "Journalism",
|
|
204
|
+
"editor.AI.shortcuts.style.medical": "Medical",
|
|
205
|
+
"editor.AI.shortcuts.style.poetic": "Poetic",
|
|
206
|
+
"editor.codeblock.selectLang": "Select Language",
|
|
207
|
+
"editor.codeblock.copy": "Copy Code",
|
|
208
|
+
"editor.codeblock.lineNumbers": "Toggle Line Numbers",
|
|
209
|
+
"editor.codeblock.wordWrap": "Toggle Word Wrap",
|
|
210
|
+
"editor.codeblock.tabSize": "Tab Size"
|
|
211
|
+
};
|
|
212
|
+
export {
|
|
213
|
+
e as l
|
|
214
|
+
};
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { ButtonViewReturnComponentProps } from '../type';
|
|
2
|
+
import { TooltipContentProps } from 'reka-ui';
|
|
3
|
+
import { icons } from './icons';
|
|
4
|
+
import { Editor } from '@tiptap/core';
|
|
5
|
+
import { HTMLAttributes } from 'vue';
|
|
6
|
+
|
|
7
|
+
interface Props {
|
|
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
|
+
editor?: Editor;
|
|
20
|
+
class?: HTMLAttributes['class'];
|
|
21
|
+
}
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
icon?(_: {}): any;
|
|
24
|
+
default?(_: {}): any;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
27
|
+
icon: undefined;
|
|
28
|
+
title: undefined;
|
|
29
|
+
tooltip: undefined;
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
customClass: string;
|
|
32
|
+
color: undefined;
|
|
33
|
+
loading: boolean;
|
|
34
|
+
shortcutKeys: undefined;
|
|
35
|
+
tooltipOptions: undefined;
|
|
36
|
+
action: undefined;
|
|
37
|
+
isActive: undefined;
|
|
38
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
39
|
+
icon: undefined;
|
|
40
|
+
title: undefined;
|
|
41
|
+
tooltip: undefined;
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
customClass: string;
|
|
44
|
+
color: undefined;
|
|
45
|
+
loading: boolean;
|
|
46
|
+
shortcutKeys: undefined;
|
|
47
|
+
tooltipOptions: undefined;
|
|
48
|
+
action: undefined;
|
|
49
|
+
isActive: undefined;
|
|
50
|
+
}>>> & Readonly<{}>, {
|
|
51
|
+
icon: keyof typeof icons;
|
|
52
|
+
color: string;
|
|
53
|
+
disabled: boolean;
|
|
54
|
+
action: (value?: any) => void;
|
|
55
|
+
isActive: () => boolean;
|
|
56
|
+
tooltip: string;
|
|
57
|
+
title: string;
|
|
58
|
+
shortcutKeys: string[];
|
|
59
|
+
customClass: string;
|
|
60
|
+
loading: boolean;
|
|
61
|
+
tooltipOptions: TooltipContentProps;
|
|
62
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
63
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
64
|
+
export default _default;
|
|
65
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
66
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
67
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
68
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
69
|
+
} : {
|
|
70
|
+
type: import('vue').PropType<T[K]>;
|
|
71
|
+
required: true;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
type __VLS_WithDefaults<P, D> = {
|
|
75
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
76
|
+
default: D[K];
|
|
77
|
+
}> : P[K];
|
|
78
|
+
};
|
|
79
|
+
type __VLS_Prettify<T> = {
|
|
80
|
+
[K in keyof T]: T[K];
|
|
81
|
+
} & {};
|
|
82
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
83
|
+
new (): {
|
|
84
|
+
$slots: S;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ButtonViewReturnComponentProps } from '../type';
|
|
2
|
+
|
|
3
|
+
interface Props {
|
|
4
|
+
icon?: any;
|
|
5
|
+
title?: string;
|
|
6
|
+
tooltip?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
class?: string;
|
|
9
|
+
btn_class?: string;
|
|
10
|
+
action?: ButtonViewReturnComponentProps['action'];
|
|
11
|
+
isActive?: ButtonViewReturnComponentProps['isActive'];
|
|
12
|
+
}
|
|
13
|
+
declare function __VLS_template(): {
|
|
14
|
+
default?(_: {}): any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
17
|
+
icon: undefined;
|
|
18
|
+
title: undefined;
|
|
19
|
+
tooltip: undefined;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
action: undefined;
|
|
22
|
+
isActive: undefined;
|
|
23
|
+
class: string;
|
|
24
|
+
btn_class: string;
|
|
25
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
26
|
+
icon: undefined;
|
|
27
|
+
title: undefined;
|
|
28
|
+
tooltip: undefined;
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
action: undefined;
|
|
31
|
+
isActive: undefined;
|
|
32
|
+
class: string;
|
|
33
|
+
btn_class: string;
|
|
34
|
+
}>>> & Readonly<{}>, {
|
|
35
|
+
class: string;
|
|
36
|
+
icon: any;
|
|
37
|
+
disabled: boolean;
|
|
38
|
+
action: (value?: any) => void;
|
|
39
|
+
isActive: () => boolean;
|
|
40
|
+
tooltip: string;
|
|
41
|
+
title: string;
|
|
42
|
+
btn_class: string;
|
|
43
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
44
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
47
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
48
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
49
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
50
|
+
} : {
|
|
51
|
+
type: import('vue').PropType<T[K]>;
|
|
52
|
+
required: true;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
type __VLS_WithDefaults<P, D> = {
|
|
56
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
57
|
+
default: D[K];
|
|
58
|
+
}> : P[K];
|
|
59
|
+
};
|
|
60
|
+
type __VLS_Prettify<T> = {
|
|
61
|
+
[K in keyof T]: T[K];
|
|
62
|
+
} & {};
|
|
63
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
64
|
+
new (): {
|
|
65
|
+
$slots: S;
|
|
66
|
+
};
|
|
67
|
+
};
|