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.
Files changed (299) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +122 -0
  3. package/README.zh-CN.md +121 -0
  4. package/lib/en_Us-CzkSpEfR.mjs +214 -0
  5. package/lib/index.d.ts +3 -0
  6. package/lib/src/components/ActionButton.vue.d.ts +86 -0
  7. package/lib/src/components/ActionDropdownButton.vue.d.ts +67 -0
  8. package/lib/src/components/ActionDropdownButtonSplit.vue.d.ts +71 -0
  9. package/lib/src/components/ActionMenuButton.vue.d.ts +62 -0
  10. package/lib/src/components/ColorPicker.vue.d.ts +51 -0
  11. package/lib/src/components/EchoEditor.vue.d.ts +99 -0
  12. package/lib/src/components/FindAndReplace.vue.d.ts +43 -0
  13. package/lib/src/components/Menubars.vue.d.ts +31 -0
  14. package/lib/src/components/Preview.vue.d.ts +31 -0
  15. package/lib/src/components/Printer.vue.d.ts +31 -0
  16. package/lib/src/components/Toolbar.vue.d.ts +31 -0
  17. package/lib/src/components/icons/Icon.vue.d.ts +20 -0
  18. package/lib/src/components/icons/icons.d.ts +116 -0
  19. package/lib/src/components/icons/index.d.ts +4 -0
  20. package/lib/src/components/icons/setupIcon.d.ts +1 -0
  21. package/lib/src/components/menus/AIMenu.vue.d.ts +31 -0
  22. package/lib/src/components/menus/BasicBubble.d.ts +59 -0
  23. package/lib/src/components/menus/BasicBubbleMenu.vue.d.ts +31 -0
  24. package/lib/src/components/menus/ColumnsBubbleMenu.vue.d.ts +31 -0
  25. package/lib/src/components/menus/ContentMenu.vue.d.ts +40 -0
  26. package/lib/src/components/menus/ImageBubbleMenu.vue.d.ts +31 -0
  27. package/lib/src/components/menus/LinkBubbleMenu.vue.d.ts +31 -0
  28. package/lib/src/components/menus/TableBubbleMenu.vue.d.ts +24 -0
  29. package/lib/src/components/ui/button/Button.vue.d.ts +43 -0
  30. package/lib/src/components/ui/button/index.d.ts +8 -0
  31. package/lib/src/components/ui/checkbox/Checkbox.vue.d.ts +31 -0
  32. package/lib/src/components/ui/checkbox/index.d.ts +1 -0
  33. package/lib/src/components/ui/dialog/Dialog.vue.d.ts +26 -0
  34. package/lib/src/components/ui/dialog/DialogClose.vue.d.ts +22 -0
  35. package/lib/src/components/ui/dialog/DialogContent.vue.d.ts +57 -0
  36. package/lib/src/components/ui/dialog/DialogDescription.vue.d.ts +27 -0
  37. package/lib/src/components/ui/dialog/DialogFooter.vue.d.ts +26 -0
  38. package/lib/src/components/ui/dialog/DialogHeader.vue.d.ts +26 -0
  39. package/lib/src/components/ui/dialog/DialogScrollContent.vue.d.ts +57 -0
  40. package/lib/src/components/ui/dialog/DialogTitle.vue.d.ts +27 -0
  41. package/lib/src/components/ui/dialog/DialogTrigger.vue.d.ts +22 -0
  42. package/lib/src/components/ui/dialog/index.d.ts +9 -0
  43. package/lib/src/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +26 -0
  44. package/lib/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +33 -0
  45. package/lib/src/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +69 -0
  46. package/lib/src/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +22 -0
  47. package/lib/src/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +29 -0
  48. package/lib/src/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +29 -0
  49. package/lib/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +26 -0
  50. package/lib/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +31 -0
  51. package/lib/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +18 -0
  52. package/lib/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +26 -0
  53. package/lib/src/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +26 -0
  54. package/lib/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +59 -0
  55. package/lib/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +27 -0
  56. package/lib/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +22 -0
  57. package/lib/src/components/ui/dropdown-menu/index.d.ts +15 -0
  58. package/lib/src/components/ui/input/Input.vue.d.ts +25 -0
  59. package/lib/src/components/ui/input/index.d.ts +1 -0
  60. package/lib/src/components/ui/label/Label.vue.d.ts +27 -0
  61. package/lib/src/components/ui/label/index.d.ts +1 -0
  62. package/lib/src/components/ui/menu/MenuCheckboxItem.vue.d.ts +33 -0
  63. package/lib/src/components/ui/menu/MenuItem.vue.d.ts +29 -0
  64. package/lib/src/components/ui/menu/MenuSeparator.vue.d.ts +17 -0
  65. package/lib/src/components/ui/menu/MenuShortcut.vue.d.ts +26 -0
  66. package/lib/src/components/ui/menu/index.d.ts +5 -0
  67. package/lib/src/components/ui/menu.vue.d.ts +28 -0
  68. package/lib/src/components/ui/menubar/Menubar.vue.d.ts +31 -0
  69. package/lib/src/components/ui/menubar/MenubarCheckboxItem.vue.d.ts +33 -0
  70. package/lib/src/components/ui/menubar/MenubarContent.vue.d.ts +47 -0
  71. package/lib/src/components/ui/menubar/MenubarGroup.vue.d.ts +22 -0
  72. package/lib/src/components/ui/menubar/MenubarItem.vue.d.ts +33 -0
  73. package/lib/src/components/ui/menubar/MenubarLabel.vue.d.ts +29 -0
  74. package/lib/src/components/ui/menubar/MenubarMenu.vue.d.ts +22 -0
  75. package/lib/src/components/ui/menubar/MenubarRadioGroup.vue.d.ts +26 -0
  76. package/lib/src/components/ui/menubar/MenubarRadioItem.vue.d.ts +31 -0
  77. package/lib/src/components/ui/menubar/MenubarSeparator.vue.d.ts +18 -0
  78. package/lib/src/components/ui/menubar/MenubarShortcut.vue.d.ts +26 -0
  79. package/lib/src/components/ui/menubar/MenubarSub.vue.d.ts +28 -0
  80. package/lib/src/components/ui/menubar/MenubarSubContent.vue.d.ts +59 -0
  81. package/lib/src/components/ui/menubar/MenubarSubTrigger.vue.d.ts +29 -0
  82. package/lib/src/components/ui/menubar/MenubarTrigger.vue.d.ts +27 -0
  83. package/lib/src/components/ui/menubar/index.d.ts +15 -0
  84. package/lib/src/components/ui/popover/Popover.vue.d.ts +26 -0
  85. package/lib/src/components/ui/popover/PopoverContent.vue.d.ts +74 -0
  86. package/lib/src/components/ui/popover/PopoverTrigger.vue.d.ts +22 -0
  87. package/lib/src/components/ui/popover/index.d.ts +4 -0
  88. package/lib/src/components/ui/resizable/ResizableHandle.vue.d.ts +24 -0
  89. package/lib/src/components/ui/resizable/ResizablePanelGroup.vue.d.ts +31 -0
  90. package/lib/src/components/ui/resizable/index.d.ts +3 -0
  91. package/lib/src/components/ui/scroll-area/ScrollArea.vue.d.ts +27 -0
  92. package/lib/src/components/ui/scroll-area/ScrollBar.vue.d.ts +32 -0
  93. package/lib/src/components/ui/scroll-area/index.d.ts +2 -0
  94. package/lib/src/components/ui/select/Select.vue.d.ts +28 -0
  95. package/lib/src/components/ui/select/SelectContent.vue.d.ts +53 -0
  96. package/lib/src/components/ui/select/SelectGroup.vue.d.ts +27 -0
  97. package/lib/src/components/ui/select/SelectItem.vue.d.ts +27 -0
  98. package/lib/src/components/ui/select/SelectItemText.vue.d.ts +22 -0
  99. package/lib/src/components/ui/select/SelectLabel.vue.d.ts +27 -0
  100. package/lib/src/components/ui/select/SelectScrollDownButton.vue.d.ts +27 -0
  101. package/lib/src/components/ui/select/SelectScrollUpButton.vue.d.ts +27 -0
  102. package/lib/src/components/ui/select/SelectSeparator.vue.d.ts +18 -0
  103. package/lib/src/components/ui/select/SelectTrigger.vue.d.ts +27 -0
  104. package/lib/src/components/ui/select/SelectValue.vue.d.ts +22 -0
  105. package/lib/src/components/ui/select/index.d.ts +11 -0
  106. package/lib/src/components/ui/separator/Separator.vue.d.ts +20 -0
  107. package/lib/src/components/ui/separator/index.d.ts +1 -0
  108. package/lib/src/components/ui/switch/index.d.ts +1 -0
  109. package/lib/src/components/ui/tabs/Tabs.vue.d.ts +26 -0
  110. package/lib/src/components/ui/tabs/TabsContent.vue.d.ts +27 -0
  111. package/lib/src/components/ui/tabs/TabsList.vue.d.ts +27 -0
  112. package/lib/src/components/ui/tabs/TabsTrigger.vue.d.ts +27 -0
  113. package/lib/src/components/ui/tabs/index.d.ts +4 -0
  114. package/lib/src/components/ui/toast/Toast.vue.d.ts +104 -0
  115. package/lib/src/components/ui/toast/ToastAction.vue.d.ts +27 -0
  116. package/lib/src/components/ui/toast/ToastClose.vue.d.ts +18 -0
  117. package/lib/src/components/ui/toast/ToastDescription.vue.d.ts +27 -0
  118. package/lib/src/components/ui/toast/ToastProvider.vue.d.ts +22 -0
  119. package/lib/src/components/ui/toast/ToastTitle.vue.d.ts +27 -0
  120. package/lib/src/components/ui/toast/ToastViewport.vue.d.ts +18 -0
  121. package/lib/src/components/ui/toast/Toaster.vue.d.ts +2 -0
  122. package/lib/src/components/ui/toast/index.d.ts +22 -0
  123. package/lib/src/components/ui/toggle/Toggle.vue.d.ts +56 -0
  124. package/lib/src/components/ui/toggle/index.d.ts +8 -0
  125. package/lib/src/components/ui/toggle-group/ToggleGroup.vue.d.ts +38 -0
  126. package/lib/src/components/ui/toggle-group/ToggleGroupItem.vue.d.ts +34 -0
  127. package/lib/src/components/ui/toggle-group/index.d.ts +2 -0
  128. package/lib/src/components/ui/tooltip/Tooltip.vue.d.ts +26 -0
  129. package/lib/src/components/ui/tooltip/TooltipContent.vue.d.ts +47 -0
  130. package/lib/src/components/ui/tooltip/TooltipProvider.vue.d.ts +22 -0
  131. package/lib/src/components/ui/tooltip/TooltipTrigger.vue.d.ts +22 -0
  132. package/lib/src/components/ui/tooltip/index.d.ts +4 -0
  133. package/lib/src/constants/index-en.d.ts +41 -0
  134. package/lib/src/constants/index.d.ts +41 -0
  135. package/lib/src/extensions/AI/AI.d.ts +27 -0
  136. package/lib/src/extensions/AI/components/AIButton.vue.d.ts +74 -0
  137. package/lib/src/extensions/AI/constants.d.ts +7 -0
  138. package/lib/src/extensions/AI/index.d.ts +1 -0
  139. package/lib/src/extensions/BaseKit.d.ts +113 -0
  140. package/lib/src/extensions/Blockquote/Blockquote.d.ts +6 -0
  141. package/lib/src/extensions/Blockquote/index.d.ts +1 -0
  142. package/lib/src/extensions/Bold/Bold.d.ts +6 -0
  143. package/lib/src/extensions/Bold/index.d.ts +1 -0
  144. package/lib/src/extensions/BulletList/BulletList.d.ts +6 -0
  145. package/lib/src/extensions/BulletList/components/BulletListMenuButton.vue.d.ts +35 -0
  146. package/lib/src/extensions/BulletList/index.d.ts +1 -0
  147. package/lib/src/extensions/Card/card.d.ts +16 -0
  148. package/lib/src/extensions/Card/index.d.ts +1 -0
  149. package/lib/src/extensions/Clear/Clear.d.ts +6 -0
  150. package/lib/src/extensions/Clear/index.d.ts +1 -0
  151. package/lib/src/extensions/Code/Code.d.ts +6 -0
  152. package/lib/src/extensions/Code/index.d.ts +1 -0
  153. package/lib/src/extensions/CodeBlock/CodeBlock.d.ts +21 -0
  154. package/lib/src/extensions/CodeBlock/components/NodeView.vue.d.ts +93 -0
  155. package/lib/src/extensions/CodeBlock/index.d.ts +1 -0
  156. package/lib/src/extensions/Color/Color.d.ts +6 -0
  157. package/lib/src/extensions/Color/components/ColorActionButton.vue.d.ts +48 -0
  158. package/lib/src/extensions/Color/index.d.ts +1 -0
  159. package/lib/src/extensions/Document/Document.d.ts +2 -0
  160. package/lib/src/extensions/Document/index.d.ts +1 -0
  161. package/lib/src/extensions/EChartsView/EChartsView.d.ts +3 -0
  162. package/lib/src/extensions/EChartsView/components/ChartView.vue.d.ts +2 -0
  163. package/lib/src/extensions/EChartsView/index.d.ts +1 -0
  164. package/lib/src/extensions/FindAndReplace/FindAndReplace.d.ts +58 -0
  165. package/lib/src/extensions/FindAndReplace/index.d.ts +1 -0
  166. package/lib/src/extensions/FontFamily/FontFamily.d.ts +25 -0
  167. package/lib/src/extensions/FontFamily/components/FontFamilyMenuButton.vue.d.ts +65 -0
  168. package/lib/src/extensions/FontFamily/index.d.ts +1 -0
  169. package/lib/src/extensions/FontSize/FontSize.d.ts +43 -0
  170. package/lib/src/extensions/FontSize/components/FontSizeMenuButton.vue.d.ts +64 -0
  171. package/lib/src/extensions/FontSize/index.d.ts +1 -0
  172. package/lib/src/extensions/FormatPainter/FormatPainter.d.ts +24 -0
  173. package/lib/src/extensions/FormatPainter/index.d.ts +1 -0
  174. package/lib/src/extensions/Fullscreen/Fullscreen.d.ts +13 -0
  175. package/lib/src/extensions/Fullscreen/index.d.ts +1 -0
  176. package/lib/src/extensions/Heading/Heading.d.ts +6 -0
  177. package/lib/src/extensions/Heading/components/HeadingButton.vue.d.ts +52 -0
  178. package/lib/src/extensions/Heading/index.d.ts +1 -0
  179. package/lib/src/extensions/Heading/types.d.ts +15 -0
  180. package/lib/src/extensions/Highlight/Highlight.d.ts +6 -0
  181. package/lib/src/extensions/Highlight/components/HighlightActionButton.vue.d.ts +49 -0
  182. package/lib/src/extensions/Highlight/index.d.ts +1 -0
  183. package/lib/src/extensions/HighlightParagraph/HighlightParagraph.d.ts +19 -0
  184. package/lib/src/extensions/HighlightParagraph/index.d.ts +1 -0
  185. package/lib/src/extensions/History/History.d.ts +6 -0
  186. package/lib/src/extensions/History/index.d.ts +1 -0
  187. package/lib/src/extensions/HorizontalRule/HorizontalRule.d.ts +6 -0
  188. package/lib/src/extensions/HorizontalRule/index.d.ts +1 -0
  189. package/lib/src/extensions/Iframe/Iframe.d.ts +23 -0
  190. package/lib/src/extensions/Iframe/IframeNodeView.vue.d.ts +92 -0
  191. package/lib/src/extensions/Iframe/embed.d.ts +120 -0
  192. package/lib/src/extensions/Iframe/index.d.ts +1 -0
  193. package/lib/src/extensions/Image/Image.d.ts +29 -0
  194. package/lib/src/extensions/Image/components/ImageView.vue.d.ts +92 -0
  195. package/lib/src/extensions/Image/index.d.ts +1 -0
  196. package/lib/src/extensions/ImageUpload/ImageUpload.d.ts +16 -0
  197. package/lib/src/extensions/ImageUpload/components/ImageUploader.vue.d.ts +92 -0
  198. package/lib/src/extensions/ImageUpload/index.d.ts +1 -0
  199. package/lib/src/extensions/ImportWord/ImportWord.d.ts +28 -0
  200. package/lib/src/extensions/ImportWord/index.d.ts +1 -0
  201. package/lib/src/extensions/ImportWord/utils.d.ts +2 -0
  202. package/lib/src/extensions/Indent/Indent.d.ts +23 -0
  203. package/lib/src/extensions/Indent/index.d.ts +1 -0
  204. package/lib/src/extensions/Italic/Italic.d.ts +6 -0
  205. package/lib/src/extensions/Italic/index.d.ts +1 -0
  206. package/lib/src/extensions/LineHeight/LineHeight.d.ts +17 -0
  207. package/lib/src/extensions/LineHeight/components/LineHeightDropdown.vue.d.ts +48 -0
  208. package/lib/src/extensions/LineHeight/index.d.ts +1 -0
  209. package/lib/src/extensions/Link/Link.d.ts +6 -0
  210. package/lib/src/extensions/Link/components/LinkEditBlock.vue.d.ts +30 -0
  211. package/lib/src/extensions/Link/components/LinkEditPopover.vue.d.ts +56 -0
  212. package/lib/src/extensions/Link/components/LinkViewBlock.vue.d.ts +37 -0
  213. package/lib/src/extensions/Link/index.d.ts +1 -0
  214. package/lib/src/extensions/ListItem/ListItem.d.ts +3 -0
  215. package/lib/src/extensions/ListItem/index.d.ts +1 -0
  216. package/lib/src/extensions/Mention/index.d.ts +1 -0
  217. package/lib/src/extensions/Mention/mention.d.ts +108 -0
  218. package/lib/src/extensions/Mention/utils/get-default-suggestion-attributes.d.ts +38 -0
  219. package/lib/src/extensions/MoreMark/MoreMark.d.ts +20 -0
  220. package/lib/src/extensions/MoreMark/components/ActionMoreButton.vue.d.ts +52 -0
  221. package/lib/src/extensions/MoreMark/index.d.ts +1 -0
  222. package/lib/src/extensions/MoreMark/types.d.ts +15 -0
  223. package/lib/src/extensions/MultiColumn/Column.d.ts +4 -0
  224. package/lib/src/extensions/MultiColumn/Columns.d.ts +26 -0
  225. package/lib/src/extensions/MultiColumn/index.d.ts +2 -0
  226. package/lib/src/extensions/OrderedList/OrderedList.d.ts +6 -0
  227. package/lib/src/extensions/OrderedList/components/OrderedListMenuButton.vue.d.ts +44 -0
  228. package/lib/src/extensions/OrderedList/index.d.ts +1 -0
  229. package/lib/src/extensions/Preview/Preview.d.ts +13 -0
  230. package/lib/src/extensions/Preview/index.d.ts +1 -0
  231. package/lib/src/extensions/Printer/Printer.d.ts +6 -0
  232. package/lib/src/extensions/Printer/index.d.ts +1 -0
  233. package/lib/src/extensions/ReferenceDot/ReferenceDot.d.ts +4 -0
  234. package/lib/src/extensions/ReferenceDot/index.d.ts +1 -0
  235. package/lib/src/extensions/Selection/Selection.d.ts +4 -0
  236. package/lib/src/extensions/Selection/index.d.ts +1 -0
  237. package/lib/src/extensions/SlashCommand/CommandsList.vue.d.ts +35 -0
  238. package/lib/src/extensions/SlashCommand/SlashCommand.d.ts +4 -0
  239. package/lib/src/extensions/SlashCommand/groups.d.ts +4 -0
  240. package/lib/src/extensions/SlashCommand/index.d.ts +1 -0
  241. package/lib/src/extensions/SlashCommand/types.d.ts +26 -0
  242. package/lib/src/extensions/Strike/Strike.d.ts +6 -0
  243. package/lib/src/extensions/Strike/index.d.ts +1 -0
  244. package/lib/src/extensions/Subscript/Subscript.d.ts +23 -0
  245. package/lib/src/extensions/Subscript/index.d.ts +1 -0
  246. package/lib/src/extensions/Table/cell-background.d.ts +19 -0
  247. package/lib/src/extensions/Table/components/CreateTablePopover.vue.d.ts +32 -0
  248. package/lib/src/extensions/Table/components/TableActionButton.vue.d.ts +53 -0
  249. package/lib/src/extensions/Table/index.d.ts +7 -0
  250. package/lib/src/extensions/Table/table.d.ts +24 -0
  251. package/lib/src/extensions/TaskList/TaskList.d.ts +12 -0
  252. package/lib/src/extensions/TaskList/index.d.ts +1 -0
  253. package/lib/src/extensions/TextAlign/TextAlign.d.ts +18 -0
  254. package/lib/src/extensions/TextAlign/components/TextAlignMenuButton.vue.d.ts +65 -0
  255. package/lib/src/extensions/TextAlign/index.d.ts +1 -0
  256. package/lib/src/extensions/TextBubble/TextBubble.d.ts +7 -0
  257. package/lib/src/extensions/TextBubble/components/TextDropdown.vue.d.ts +49 -0
  258. package/lib/src/extensions/TextBubble/index.d.ts +1 -0
  259. package/lib/src/extensions/TrailingNode/TrailingNode.d.ts +12 -0
  260. package/lib/src/extensions/TrailingNode/index.d.ts +1 -0
  261. package/lib/src/extensions/UnderLine/Underline.d.ts +6 -0
  262. package/lib/src/extensions/UnderLine/index.d.ts +1 -0
  263. package/lib/src/extensions/Video/Video.d.ts +55 -0
  264. package/lib/src/extensions/Video/index.d.ts +1 -0
  265. package/lib/src/extensions/VideoUpload/VideoUpload.d.ts +14 -0
  266. package/lib/src/extensions/VideoUpload/components/VideoUploader.vue.d.ts +92 -0
  267. package/lib/src/extensions/VideoUpload/index.d.ts +1 -0
  268. package/lib/src/extensions/index.d.ts +80 -0
  269. package/lib/src/hooks/index.d.ts +4 -0
  270. package/lib/src/hooks/useAIConversation.d.ts +19 -0
  271. package/lib/src/hooks/useContext.d.ts +21 -0
  272. package/lib/src/hooks/useEditorFocus.d.ts +17 -0
  273. package/lib/src/hooks/useHotkeys.d.ts +4 -0
  274. package/lib/src/hooks/useStore.d.ts +50 -0
  275. package/lib/src/index.d.ts +14 -0
  276. package/lib/src/lib/utils.d.ts +7 -0
  277. package/lib/src/locales/index.d.ts +31 -0
  278. package/lib/src/locales/locales/en.d.ts +2 -0
  279. package/lib/src/locales/locales/zh.d.ts +2 -0
  280. package/lib/src/plugins/DragHandle/index.d.ts +20 -0
  281. package/lib/src/plugins/DragHandle/range.d.ts +32 -0
  282. package/lib/src/plugins/DragHandle/utils.d.ts +17 -0
  283. package/lib/src/plugins/image-upload.d.ts +12 -0
  284. package/lib/src/type.d.ts +172 -0
  285. package/lib/src/utils/content.d.ts +3 -0
  286. package/lib/src/utils/getRenderContainer.d.ts +4 -0
  287. package/lib/src/utils/indent.d.ts +15 -0
  288. package/lib/src/utils/is-mobile.d.ts +19 -0
  289. package/lib/src/utils/line-height.d.ts +7 -0
  290. package/lib/src/utils/mitt.d.ts +24 -0
  291. package/lib/src/utils/plateform.d.ts +11 -0
  292. package/lib/src/utils/themeIcons.d.ts +6 -0
  293. package/lib/src/utils/utils.d.ts +21 -0
  294. package/lib/src/utils.d.ts +3 -0
  295. package/lib/style.css +1 -0
  296. package/lib/vite.config.d.ts +2 -0
  297. package/lib/vix-editor.mjs +98018 -0
  298. package/lib/zh_CN-3QknuiII.mjs +212 -0
  299. package/package.json +157 -0
@@ -0,0 +1,27 @@
1
+ import { Node } from '@tiptap/core';
2
+ import { GeneralOptions } from '../../type';
3
+
4
+ export interface MenuItem {
5
+ label: string;
6
+ prompt?: string;
7
+ children?: MenuItem[];
8
+ }
9
+ export interface AIOptions extends GeneralOptions<AIOptions> {
10
+ completions: (history: Array<{
11
+ role: string;
12
+ content: string;
13
+ }>, signal?: AbortSignal) => Promise<any>;
14
+ /**
15
+ * show default shortcuts
16
+ */
17
+ showDefaultShortcuts?: boolean;
18
+ /**
19
+ * AI Shortcuts Menu
20
+ */
21
+ shortcuts: MenuItem[];
22
+ /**
23
+ * transform stream chunk to text
24
+ */
25
+ transformStreamChunkToText?: (stream: any) => string;
26
+ }
27
+ export declare const AI: Node<AIOptions, any>;
@@ -0,0 +1,74 @@
1
+ import { ButtonViewReturnComponentProps } from '../../../type';
2
+ import { TooltipContentProps } from 'reka-ui';
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
+ action: (value?: any) => void;
49
+ isActive: () => boolean;
50
+ tooltip: string;
51
+ title: string;
52
+ shortcutKeys: string[];
53
+ customClass: string;
54
+ loading: boolean;
55
+ tooltipOptions: TooltipContentProps;
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,7 @@
1
+ export declare const DEFAULT_SHORTCUTS: {
2
+ label: string;
3
+ children: {
4
+ label: string;
5
+ prompt: string;
6
+ }[];
7
+ }[];
@@ -0,0 +1 @@
1
+ export * from './AI';
@@ -0,0 +1,113 @@
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 { TextStyleOptions } from '@tiptap/extension-text-style';
10
+ import { TrailingNodeOptions } from './TrailingNode/TrailingNode';
11
+ import { BubbleOptions } from '../components/menus/BasicBubble';
12
+ import { TextBubbleOptions } from './TextBubble';
13
+
14
+ /**
15
+ * Represents the interface for options in the base toolkit.
16
+ */
17
+ export interface BaseKitOptions {
18
+ /**
19
+ * Whether to enable the document option
20
+ *
21
+ * @default true
22
+ */
23
+ document: false;
24
+ /**
25
+ * Whether to enable the text option
26
+ *
27
+ * @default true
28
+ */
29
+ text: false;
30
+ /**
31
+ * Whether to enable the Gapcursor
32
+ *
33
+ * @default true
34
+ */
35
+ gapcursor: false;
36
+ /**
37
+ * Dropcursor options or false, indicating whether to enable the drop cursor
38
+ *
39
+ * @default true
40
+ */
41
+ dropcursor: Partial<DropcursorOptions> | false;
42
+ /**
43
+ * character count options or false, indicating whether to enable character count
44
+ *
45
+ * @default true
46
+ */
47
+ characterCount: Partial<CharacterCountOptions> | false;
48
+ /**
49
+ * HardBreak options or false, indicating whether to enable hard breaks
50
+ *
51
+ * @default true
52
+ */
53
+ hardBreak: Partial<HardBreakOptions> | false;
54
+ /**
55
+ * Placeholder options or false, indicating whether to enable placeholders
56
+ *
57
+ * @default true
58
+ */
59
+ placeholder: Partial<PlaceholderOptions> | false;
60
+ /**
61
+ * Paragraph options or false, indicating whether to enable paragraph functionality
62
+ *
63
+ * @default true
64
+ */
65
+ paragraph: Partial<ParagraphOptions> | false;
66
+ /**
67
+ * Focus options or false, indicating whether to enable focus functionality
68
+ *
69
+ * @default true
70
+ */
71
+ focus: Partial<FocusOptions> | false;
72
+ /**
73
+ * ListItem options or false, indicating whether to enable list item functionality
74
+ *
75
+ * @default true
76
+ */
77
+ listItem: Partial<ListItemOptions> | false;
78
+ /**
79
+ * Text Style options or false, indicating whether to enable text style functionality
80
+ *
81
+ * @default true
82
+ */
83
+ textStyle: Partial<TextStyleOptions> | false;
84
+ /**
85
+ * Bubble options, taking `BubbleOptions<BaseKitOptions>` as parameters, indicating whether to enable the bubble functionality
86
+ */
87
+ bubble: Partial<BubbleOptions<BaseKitOptions>>;
88
+ /**
89
+ * Trailing node options or false, indicating whether to enable the trailing node
90
+ *
91
+ * @default true
92
+ */
93
+ trailingNode: Partial<TrailingNodeOptions> | false;
94
+ /**
95
+ * textBubble options or false, indicating whether to enable the textBubble
96
+ *
97
+ * @default true
98
+ */
99
+ textBubble: Partial<TextBubbleOptions> | false;
100
+ /**
101
+ * selection options or false, indicating whether to enable the selection
102
+ *
103
+ * @default true
104
+ */
105
+ selection: any | false;
106
+ /**
107
+ * highlightParagraph options or false, indicating whether to enable the highlightParagraph
108
+ *
109
+ * @default true
110
+ */
111
+ highlightParagraph: any | false;
112
+ }
113
+ 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,16 @@
1
+ import { Node } from '@tiptap/core';
2
+
3
+ declare module '@tiptap/core' {
4
+ interface Commands<ReturnType> {
5
+ card: {
6
+ deleteCard: (options?: {
7
+ pos?: number;
8
+ title?: string;
9
+ content?: string;
10
+ }) => ReturnType;
11
+ deleteAllCard: () => ReturnType;
12
+ };
13
+ }
14
+ }
15
+ export declare const Card: Node<any, any>;
16
+ export default Card;
@@ -0,0 +1 @@
1
+ export * from './card';
@@ -0,0 +1,6 @@
1
+ import { Node } from '@tiptap/core';
2
+ import { GeneralOptions } from '../../type';
3
+
4
+ export interface ClearOptions extends GeneralOptions<ClearOptions> {
5
+ }
6
+ export declare const Clear: Node<ClearOptions, any>;
@@ -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,21 @@
1
+ import { Node } from '@tiptap/core';
2
+ import { GeneralOptions } from '../../type';
3
+
4
+ export interface CodeBlockOptions extends GeneralOptions<CodeBlockOptions> {
5
+ }
6
+ declare module '@tiptap/core' {
7
+ interface Commands<ReturnType> {
8
+ setCodeBlock: {
9
+ setCodeBlock: (options?: any) => ReturnType;
10
+ };
11
+ }
12
+ }
13
+ /**
14
+ * Matches a code block with backticks.
15
+ */
16
+ export declare const backtickInputRegex: RegExp;
17
+ /**
18
+ * Matches a code block with tildes.
19
+ */
20
+ export declare const tildeInputRegex: RegExp;
21
+ export declare const CodeBlock: Node<any, any>;
@@ -0,0 +1,93 @@
1
+
2
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
3
+ editor: {
4
+ type: PropType<import('@tiptap/core').NodeViewProps["editor"]>;
5
+ required: true;
6
+ };
7
+ node: {
8
+ type: PropType<import('@tiptap/core').NodeViewProps["node"]>;
9
+ required: true;
10
+ };
11
+ decorations: {
12
+ type: PropType<import('@tiptap/core').NodeViewProps["decorations"]>;
13
+ required: true;
14
+ };
15
+ selected: {
16
+ type: PropType<import('@tiptap/core').NodeViewProps["selected"]>;
17
+ required: true;
18
+ };
19
+ extension: {
20
+ type: PropType<import('@tiptap/core').NodeViewProps["extension"]>;
21
+ required: true;
22
+ };
23
+ getPos: {
24
+ type: PropType<import('@tiptap/core').NodeViewProps["getPos"]>;
25
+ required: true;
26
+ };
27
+ updateAttributes: {
28
+ type: PropType<import('@tiptap/core').NodeViewProps["updateAttributes"]>;
29
+ required: true;
30
+ };
31
+ deleteNode: {
32
+ type: PropType<import('@tiptap/core').NodeViewProps["deleteNode"]>;
33
+ required: true;
34
+ };
35
+ view: {
36
+ type: PropType<import('@tiptap/core').NodeViewProps["view"]>;
37
+ required: true;
38
+ };
39
+ innerDecorations: {
40
+ type: PropType<import('@tiptap/core').NodeViewProps["innerDecorations"]>;
41
+ required: true;
42
+ };
43
+ HTMLAttributes: {
44
+ type: PropType<import('@tiptap/core').NodeViewProps["HTMLAttributes"]>;
45
+ required: true;
46
+ };
47
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
48
+ editor: {
49
+ type: PropType<import('@tiptap/core').NodeViewProps["editor"]>;
50
+ required: true;
51
+ };
52
+ node: {
53
+ type: PropType<import('@tiptap/core').NodeViewProps["node"]>;
54
+ required: true;
55
+ };
56
+ decorations: {
57
+ type: PropType<import('@tiptap/core').NodeViewProps["decorations"]>;
58
+ required: true;
59
+ };
60
+ selected: {
61
+ type: PropType<import('@tiptap/core').NodeViewProps["selected"]>;
62
+ required: true;
63
+ };
64
+ extension: {
65
+ type: PropType<import('@tiptap/core').NodeViewProps["extension"]>;
66
+ required: true;
67
+ };
68
+ getPos: {
69
+ type: PropType<import('@tiptap/core').NodeViewProps["getPos"]>;
70
+ required: true;
71
+ };
72
+ updateAttributes: {
73
+ type: PropType<import('@tiptap/core').NodeViewProps["updateAttributes"]>;
74
+ required: true;
75
+ };
76
+ deleteNode: {
77
+ type: PropType<import('@tiptap/core').NodeViewProps["deleteNode"]>;
78
+ required: true;
79
+ };
80
+ view: {
81
+ type: PropType<import('@tiptap/core').NodeViewProps["view"]>;
82
+ required: true;
83
+ };
84
+ innerDecorations: {
85
+ type: PropType<import('@tiptap/core').NodeViewProps["innerDecorations"]>;
86
+ required: true;
87
+ };
88
+ HTMLAttributes: {
89
+ type: PropType<import('@tiptap/core').NodeViewProps["HTMLAttributes"]>;
90
+ required: true;
91
+ };
92
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
93
+ 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
+ action: (value?: any) => void;
28
+ isActive: () => boolean;
29
+ tooltip: string;
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,2 @@
1
+ export declare const Document: import('@tiptap/core').Node<any, any>;
2
+ export default Document;
@@ -0,0 +1 @@
1
+ export * from './Document';
@@ -0,0 +1,3 @@
1
+ import { Node } from '@tiptap/core';
2
+
3
+ export declare const EChartsView: Node<any, any>;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ export * from './EChartsView';
@@ -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>;