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.
Files changed (286) hide show
  1. package/README.md +177 -0
  2. package/lib/index.d.ts +3 -0
  3. package/lib/src/components/ActionButton.vue.d.ts +90 -0
  4. package/lib/src/components/ActionDropdownButton.vue.d.ts +67 -0
  5. package/lib/src/components/ActionDropdownButtonSplit.vue.d.ts +71 -0
  6. package/lib/src/components/ActionMenuButton.vue.d.ts +62 -0
  7. package/lib/src/components/ColorPicker.vue.d.ts +51 -0
  8. package/lib/src/components/CoreEditor.vue.d.ts +162 -0
  9. package/lib/src/components/SelectContextMenu.vue.d.ts +28 -0
  10. package/lib/src/components/SuperTextView.vue.d.ts +2 -0
  11. package/lib/src/components/Toolbar.vue.d.ts +31 -0
  12. package/lib/src/components/icons/Icon.vue.d.ts +20 -0
  13. package/lib/src/components/icons/icons.d.ts +106 -0
  14. package/lib/src/components/icons/index.d.ts +4 -0
  15. package/lib/src/components/icons/setupIcon.d.ts +1 -0
  16. package/lib/src/components/menus/BasicBubble.d.ts +59 -0
  17. package/lib/src/components/menus/ColumnsBubbleMenu.vue.d.ts +31 -0
  18. package/lib/src/components/menus/LinkBubbleMenu.vue.d.ts +31 -0
  19. package/lib/src/components/menus/TableBubbleMenu.vue.d.ts +24 -0
  20. package/lib/src/components/ui/accordion/index.d.ts +4 -0
  21. package/lib/src/components/ui/alert/index.d.ts +9 -0
  22. package/lib/src/components/ui/badge/Badge.vue.d.ts +29 -0
  23. package/lib/src/components/ui/badge/index.d.ts +7 -0
  24. package/lib/src/components/ui/button/Button.vue.d.ts +43 -0
  25. package/lib/src/components/ui/button/index.d.ts +8 -0
  26. package/lib/src/components/ui/checkbox/Checkbox.vue.d.ts +31 -0
  27. package/lib/src/components/ui/checkbox/index.d.ts +1 -0
  28. package/lib/src/components/ui/context-menu/ContextMenu.vue.d.ts +26 -0
  29. package/lib/src/components/ui/context-menu/ContextMenuCheckboxItem.vue.d.ts +33 -0
  30. package/lib/src/components/ui/context-menu/ContextMenuContent.vue.d.ts +39 -0
  31. package/lib/src/components/ui/context-menu/ContextMenuGroup.vue.d.ts +22 -0
  32. package/lib/src/components/ui/context-menu/ContextMenuItem.vue.d.ts +33 -0
  33. package/lib/src/components/ui/context-menu/ContextMenuLabel.vue.d.ts +29 -0
  34. package/lib/src/components/ui/context-menu/ContextMenuRadioGroup.vue.d.ts +26 -0
  35. package/lib/src/components/ui/context-menu/ContextMenuRadioItem.vue.d.ts +31 -0
  36. package/lib/src/components/ui/context-menu/ContextMenuSeparator.vue.d.ts +18 -0
  37. package/lib/src/components/ui/context-menu/ContextMenuShortcut.vue.d.ts +26 -0
  38. package/lib/src/components/ui/context-menu/ContextMenuSub.vue.d.ts +26 -0
  39. package/lib/src/components/ui/context-menu/ContextMenuSubContent.vue.d.ts +43 -0
  40. package/lib/src/components/ui/context-menu/ContextMenuSubTrigger.vue.d.ts +29 -0
  41. package/lib/src/components/ui/context-menu/ContextMenuTrigger.vue.d.ts +22 -0
  42. package/lib/src/components/ui/context-menu/index.d.ts +14 -0
  43. package/lib/src/components/ui/dialog/Dialog.vue.d.ts +26 -0
  44. package/lib/src/components/ui/dialog/DialogClose.vue.d.ts +22 -0
  45. package/lib/src/components/ui/dialog/DialogContent.vue.d.ts +41 -0
  46. package/lib/src/components/ui/dialog/DialogDescription.vue.d.ts +27 -0
  47. package/lib/src/components/ui/dialog/DialogFooter.vue.d.ts +26 -0
  48. package/lib/src/components/ui/dialog/DialogHeader.vue.d.ts +26 -0
  49. package/lib/src/components/ui/dialog/DialogScrollContent.vue.d.ts +41 -0
  50. package/lib/src/components/ui/dialog/DialogTitle.vue.d.ts +27 -0
  51. package/lib/src/components/ui/dialog/DialogTrigger.vue.d.ts +22 -0
  52. package/lib/src/components/ui/dialog/index.d.ts +9 -0
  53. package/lib/src/components/ui/drawer/index.d.ts +8 -0
  54. package/lib/src/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +26 -0
  55. package/lib/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +33 -0
  56. package/lib/src/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +53 -0
  57. package/lib/src/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +22 -0
  58. package/lib/src/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +29 -0
  59. package/lib/src/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +29 -0
  60. package/lib/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +26 -0
  61. package/lib/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +31 -0
  62. package/lib/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +18 -0
  63. package/lib/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +26 -0
  64. package/lib/src/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +26 -0
  65. package/lib/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +43 -0
  66. package/lib/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +27 -0
  67. package/lib/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +22 -0
  68. package/lib/src/components/ui/dropdown-menu/index.d.ts +15 -0
  69. package/lib/src/components/ui/input/Input.vue.d.ts +25 -0
  70. package/lib/src/components/ui/input/index.d.ts +1 -0
  71. package/lib/src/components/ui/label/Label.vue.d.ts +27 -0
  72. package/lib/src/components/ui/label/index.d.ts +1 -0
  73. package/lib/src/components/ui/menubar/index.d.ts +15 -0
  74. package/lib/src/components/ui/popover/Popover.vue.d.ts +26 -0
  75. package/lib/src/components/ui/popover/PopoverContent.vue.d.ts +58 -0
  76. package/lib/src/components/ui/popover/PopoverTrigger.vue.d.ts +22 -0
  77. package/lib/src/components/ui/popover/index.d.ts +4 -0
  78. package/lib/src/components/ui/resizable/ResizableHandle.vue.d.ts +24 -0
  79. package/lib/src/components/ui/resizable/ResizablePanelGroup.vue.d.ts +31 -0
  80. package/lib/src/components/ui/resizable/index.d.ts +3 -0
  81. package/lib/src/components/ui/scroll-area/ScrollArea.vue.d.ts +27 -0
  82. package/lib/src/components/ui/scroll-area/ScrollBar.vue.d.ts +32 -0
  83. package/lib/src/components/ui/scroll-area/index.d.ts +2 -0
  84. package/lib/src/components/ui/select/Select.vue.d.ts +28 -0
  85. package/lib/src/components/ui/select/SelectContent.vue.d.ts +49 -0
  86. package/lib/src/components/ui/select/SelectGroup.vue.d.ts +27 -0
  87. package/lib/src/components/ui/select/SelectItem.vue.d.ts +27 -0
  88. package/lib/src/components/ui/select/SelectItemText.vue.d.ts +22 -0
  89. package/lib/src/components/ui/select/SelectLabel.vue.d.ts +27 -0
  90. package/lib/src/components/ui/select/SelectScrollDownButton.vue.d.ts +27 -0
  91. package/lib/src/components/ui/select/SelectScrollUpButton.vue.d.ts +27 -0
  92. package/lib/src/components/ui/select/SelectSeparator.vue.d.ts +18 -0
  93. package/lib/src/components/ui/select/SelectTrigger.vue.d.ts +27 -0
  94. package/lib/src/components/ui/select/SelectValue.vue.d.ts +22 -0
  95. package/lib/src/components/ui/select/index.d.ts +11 -0
  96. package/lib/src/components/ui/separator/Separator.vue.d.ts +18 -0
  97. package/lib/src/components/ui/separator/index.d.ts +1 -0
  98. package/lib/src/components/ui/sheet/index.d.ts +14 -0
  99. package/lib/src/components/ui/slider/index.d.ts +1 -0
  100. package/lib/src/components/ui/switch/index.d.ts +1 -0
  101. package/lib/src/components/ui/tabs/Tabs.vue.d.ts +26 -0
  102. package/lib/src/components/ui/tabs/TabsContent.vue.d.ts +27 -0
  103. package/lib/src/components/ui/tabs/TabsList.vue.d.ts +27 -0
  104. package/lib/src/components/ui/tabs/TabsTrigger.vue.d.ts +27 -0
  105. package/lib/src/components/ui/tabs/index.d.ts +4 -0
  106. package/lib/src/components/ui/textarea/Textarea.vue.d.ts +25 -0
  107. package/lib/src/components/ui/textarea/index.d.ts +1 -0
  108. package/lib/src/components/ui/toast/index.d.ts +22 -0
  109. package/lib/src/components/ui/toast/use-toast.d.ts +349 -0
  110. package/lib/src/components/ui/toggle/Toggle.vue.d.ts +56 -0
  111. package/lib/src/components/ui/toggle/index.d.ts +8 -0
  112. package/lib/src/components/ui/toggle-group/index.d.ts +2 -0
  113. package/lib/src/components/ui/tooltip/Tooltip.vue.d.ts +26 -0
  114. package/lib/src/components/ui/tooltip/TooltipContent.vue.d.ts +47 -0
  115. package/lib/src/components/ui/tooltip/TooltipProvider.vue.d.ts +22 -0
  116. package/lib/src/components/ui/tooltip/TooltipTrigger.vue.d.ts +22 -0
  117. package/lib/src/components/ui/tooltip/index.d.ts +4 -0
  118. package/lib/src/constants/index.d.ts +55 -0
  119. package/lib/src/extensions/Ai/AI.d.ts +16 -0
  120. package/lib/src/extensions/Ai/components/AIButton.vue.d.ts +74 -0
  121. package/lib/src/extensions/Ai/index.d.ts +1 -0
  122. package/lib/src/extensions/AttributesSetup/AttributesSetup.d.ts +3 -0
  123. package/lib/src/extensions/AttributesSetup/index.d.ts +1 -0
  124. package/lib/src/extensions/BaseKit.d.ts +118 -0
  125. package/lib/src/extensions/Blockquote/Blockquote.d.ts +6 -0
  126. package/lib/src/extensions/Blockquote/index.d.ts +1 -0
  127. package/lib/src/extensions/Bold/Bold.d.ts +6 -0
  128. package/lib/src/extensions/Bold/index.d.ts +1 -0
  129. package/lib/src/extensions/BulletList/BulletList.d.ts +6 -0
  130. package/lib/src/extensions/BulletList/components/BulletListMenuButton.vue.d.ts +35 -0
  131. package/lib/src/extensions/BulletList/index.d.ts +1 -0
  132. package/lib/src/extensions/Clear/Clear.d.ts +6 -0
  133. package/lib/src/extensions/Clear/index.d.ts +1 -0
  134. package/lib/src/extensions/Code/Code.d.ts +6 -0
  135. package/lib/src/extensions/Code/index.d.ts +1 -0
  136. package/lib/src/extensions/CodeBlock/CodeBlock.d.ts +6 -0
  137. package/lib/src/extensions/CodeBlock/components/CodeBlockView.vue.d.ts +68 -0
  138. package/lib/src/extensions/CodeBlock/index.d.ts +1 -0
  139. package/lib/src/extensions/Color/Color.d.ts +6 -0
  140. package/lib/src/extensions/Color/components/ColorActionButton.vue.d.ts +48 -0
  141. package/lib/src/extensions/Color/index.d.ts +1 -0
  142. package/lib/src/extensions/Document/Document.d.ts +2 -0
  143. package/lib/src/extensions/Document/index.d.ts +1 -0
  144. package/lib/src/extensions/FindAndReplace/FindAndReplace.d.ts +58 -0
  145. package/lib/src/extensions/FindAndReplace/index.d.ts +1 -0
  146. package/lib/src/extensions/FontFamily/FontFamily.d.ts +25 -0
  147. package/lib/src/extensions/FontFamily/components/FontFamilyMenuButton.vue.d.ts +65 -0
  148. package/lib/src/extensions/FontFamily/index.d.ts +1 -0
  149. package/lib/src/extensions/FontSize/FontSize.d.ts +32 -0
  150. package/lib/src/extensions/FontSize/components/FontSizeMenuButton.vue.d.ts +64 -0
  151. package/lib/src/extensions/FontSize/index.d.ts +1 -0
  152. package/lib/src/extensions/FormatPainter/FormatPainter.d.ts +24 -0
  153. package/lib/src/extensions/FormatPainter/index.d.ts +1 -0
  154. package/lib/src/extensions/Fullscreen/Fullscreen.d.ts +6 -0
  155. package/lib/src/extensions/Fullscreen/index.d.ts +1 -0
  156. package/lib/src/extensions/Heading/Heading.d.ts +6 -0
  157. package/lib/src/extensions/Heading/components/HeadingButton.vue.d.ts +65 -0
  158. package/lib/src/extensions/Heading/index.d.ts +1 -0
  159. package/lib/src/extensions/Highlight/Highlight.d.ts +6 -0
  160. package/lib/src/extensions/Highlight/components/HighlightActionButton.vue.d.ts +49 -0
  161. package/lib/src/extensions/Highlight/index.d.ts +1 -0
  162. package/lib/src/extensions/History/History.d.ts +6 -0
  163. package/lib/src/extensions/History/index.d.ts +1 -0
  164. package/lib/src/extensions/HorizontalRule/HorizontalRule.d.ts +6 -0
  165. package/lib/src/extensions/HorizontalRule/index.d.ts +1 -0
  166. package/lib/src/extensions/IDAttr/IDPlugin.d.ts +4 -0
  167. package/lib/src/extensions/IDAttr/index.d.ts +1 -0
  168. package/lib/src/extensions/Iframe/Iframe.d.ts +24 -0
  169. package/lib/src/extensions/Iframe/embed.d.ts +113 -0
  170. package/lib/src/extensions/Iframe/index.d.ts +1 -0
  171. package/lib/src/extensions/Image/Image.d.ts +29 -0
  172. package/lib/src/extensions/Image/components/ImageView.vue.d.ts +68 -0
  173. package/lib/src/extensions/Image/index.d.ts +1 -0
  174. package/lib/src/extensions/ImageUpload/ImageUpload.d.ts +16 -0
  175. package/lib/src/extensions/ImageUpload/components/ImageUploader.vue.d.ts +68 -0
  176. package/lib/src/extensions/ImageUpload/index.d.ts +1 -0
  177. package/lib/src/extensions/ImportWord/ImportWord.d.ts +28 -0
  178. package/lib/src/extensions/ImportWord/index.d.ts +1 -0
  179. package/lib/src/extensions/ImportWord/utils.d.ts +2 -0
  180. package/lib/src/extensions/Indent/Indent.d.ts +23 -0
  181. package/lib/src/extensions/Indent/index.d.ts +1 -0
  182. package/lib/src/extensions/Italic/Italic.d.ts +6 -0
  183. package/lib/src/extensions/Italic/index.d.ts +1 -0
  184. package/lib/src/extensions/LineHeight/LineHeight.d.ts +17 -0
  185. package/lib/src/extensions/LineHeight/components/LineHeightDropdown.vue.d.ts +48 -0
  186. package/lib/src/extensions/LineHeight/index.d.ts +1 -0
  187. package/lib/src/extensions/Link/Link.d.ts +6 -0
  188. package/lib/src/extensions/Link/components/LinkEditBlock.vue.d.ts +30 -0
  189. package/lib/src/extensions/Link/components/LinkEditPopover.vue.d.ts +56 -0
  190. package/lib/src/extensions/Link/components/LinkViewBlock.vue.d.ts +37 -0
  191. package/lib/src/extensions/Link/index.d.ts +1 -0
  192. package/lib/src/extensions/ListItem/ListItem.d.ts +3 -0
  193. package/lib/src/extensions/ListItem/index.d.ts +1 -0
  194. package/lib/src/extensions/MoreMark/MoreMark.d.ts +20 -0
  195. package/lib/src/extensions/MoreMark/components/ActionMoreButton.vue.d.ts +65 -0
  196. package/lib/src/extensions/MoreMark/index.d.ts +1 -0
  197. package/lib/src/extensions/MultiColumn/Column.d.ts +4 -0
  198. package/lib/src/extensions/MultiColumn/Columns.d.ts +22 -0
  199. package/lib/src/extensions/MultiColumn/index.d.ts +2 -0
  200. package/lib/src/extensions/OrderedList/OrderedList.d.ts +6 -0
  201. package/lib/src/extensions/OrderedList/components/OrderedListMenuButton.vue.d.ts +44 -0
  202. package/lib/src/extensions/OrderedList/index.d.ts +1 -0
  203. package/lib/src/extensions/Page/computed.d.ts +122 -0
  204. package/lib/src/extensions/Page/core.d.ts +79 -0
  205. package/lib/src/extensions/Page/index.d.ts +23 -0
  206. package/lib/src/extensions/Page/node-view.vue.d.ts +68 -0
  207. package/lib/src/extensions/Page/page-plugin.d.ts +7 -0
  208. package/lib/src/extensions/Page/split-block.d.ts +3 -0
  209. package/lib/src/extensions/Page/split-list-item.d.ts +7 -0
  210. package/lib/src/extensions/Page/types.d.ts +40 -0
  211. package/lib/src/extensions/Page/utils.d.ts +48 -0
  212. package/lib/src/extensions/Preview/Preview.d.ts +13 -0
  213. package/lib/src/extensions/Preview/index.d.ts +1 -0
  214. package/lib/src/extensions/Printer/Printer.d.ts +6 -0
  215. package/lib/src/extensions/Printer/index.d.ts +1 -0
  216. package/lib/src/extensions/Selection/Selection.d.ts +4 -0
  217. package/lib/src/extensions/Selection/index.d.ts +1 -0
  218. package/lib/src/extensions/SlashCommand/CommandsList.vue.d.ts +35 -0
  219. package/lib/src/extensions/SlashCommand/SlashCommand.d.ts +4 -0
  220. package/lib/src/extensions/SlashCommand/groups.d.ts +4 -0
  221. package/lib/src/extensions/SlashCommand/index.d.ts +1 -0
  222. package/lib/src/extensions/SlashCommand/types.d.ts +26 -0
  223. package/lib/src/extensions/SpellChecker/hunspell-proofreader.d.ts +16 -0
  224. package/lib/src/extensions/SpellChecker/i-proofreader-interface.d.ts +10 -0
  225. package/lib/src/extensions/SpellChecker/index.d.ts +6 -0
  226. package/lib/src/extensions/SpellChecker/sapling-proofreader.d.ts +13 -0
  227. package/lib/src/extensions/SpellChecker/spellchecker-extension.d.ts +27 -0
  228. package/lib/src/extensions/SpellChecker/spellchecker.d.ts +44 -0
  229. package/lib/src/extensions/Strike/Strike.d.ts +6 -0
  230. package/lib/src/extensions/Strike/index.d.ts +1 -0
  231. package/lib/src/extensions/Subscript/Subscript.d.ts +23 -0
  232. package/lib/src/extensions/Subscript/index.d.ts +1 -0
  233. package/lib/src/extensions/SuperText/SuperText.d.ts +11 -0
  234. package/lib/src/extensions/SuperText/components/SuperText.vue.d.ts +68 -0
  235. package/lib/src/extensions/SuperText/index.d.ts +1 -0
  236. package/lib/src/extensions/Table/cell-background.d.ts +19 -0
  237. package/lib/src/extensions/Table/components/CreateTablePopover.vue.d.ts +32 -0
  238. package/lib/src/extensions/Table/components/TableActionButton.vue.d.ts +53 -0
  239. package/lib/src/extensions/Table/index.d.ts +7 -0
  240. package/lib/src/extensions/Table/table.d.ts +24 -0
  241. package/lib/src/extensions/TaskList/TaskList.d.ts +12 -0
  242. package/lib/src/extensions/TaskList/index.d.ts +1 -0
  243. package/lib/src/extensions/TextAlign/TextAlign.d.ts +18 -0
  244. package/lib/src/extensions/TextAlign/components/TextAlignMenuButton.vue.d.ts +65 -0
  245. package/lib/src/extensions/TextAlign/index.d.ts +1 -0
  246. package/lib/src/extensions/TextBubble/TextBubble.d.ts +7 -0
  247. package/lib/src/extensions/TextBubble/components/TextDropdown.vue.d.ts +49 -0
  248. package/lib/src/extensions/TextBubble/index.d.ts +1 -0
  249. package/lib/src/extensions/TrailingNode/TrailingNode.d.ts +12 -0
  250. package/lib/src/extensions/TrailingNode/index.d.ts +1 -0
  251. package/lib/src/extensions/UnderLine/Underline.d.ts +6 -0
  252. package/lib/src/extensions/UnderLine/index.d.ts +1 -0
  253. package/lib/src/extensions/Video/Video.d.ts +55 -0
  254. package/lib/src/extensions/Video/index.d.ts +1 -0
  255. package/lib/src/extensions/VideoUpload/VideoUpload.d.ts +14 -0
  256. package/lib/src/extensions/VideoUpload/components/VideoUploader.vue.d.ts +68 -0
  257. package/lib/src/extensions/VideoUpload/index.d.ts +1 -0
  258. package/lib/src/extensions/index.d.ts +74 -0
  259. package/lib/src/hooks/index.d.ts +6 -0
  260. package/lib/src/hooks/useCheckSpellStore.d.ts +9 -0
  261. package/lib/src/hooks/useConfigTiptap.d.ts +8 -0
  262. package/lib/src/hooks/useContext.d.ts +21 -0
  263. package/lib/src/hooks/useHotkeys.d.ts +4 -0
  264. package/lib/src/hooks/useNodePosition.d.ts +7 -0
  265. package/lib/src/hooks/useStore.d.ts +160 -0
  266. package/lib/src/hooks/useSuperTextStore.d.ts +20 -0
  267. package/lib/src/i18n.d.ts +337 -0
  268. package/lib/src/index.d.ts +12 -0
  269. package/lib/src/plugins/image-upload.d.ts +12 -0
  270. package/lib/src/type.d.ts +145 -0
  271. package/lib/src/utils/content.d.ts +4 -0
  272. package/lib/src/utils/getRenderContainer.d.ts +4 -0
  273. package/lib/src/utils/indent.d.ts +15 -0
  274. package/lib/src/utils/is-mobile.d.ts +19 -0
  275. package/lib/src/utils/line-height.d.ts +7 -0
  276. package/lib/src/utils/loadFonts.d.ts +1 -0
  277. package/lib/src/utils/mitt.d.ts +24 -0
  278. package/lib/src/utils/node-names.d.ts +31 -0
  279. package/lib/src/utils/plateform.d.ts +11 -0
  280. package/lib/src/utils/utils.d.ts +18 -0
  281. package/lib/src/utils.d.ts +3 -0
  282. package/lib/style.css +1 -0
  283. package/lib/vdc-editor.mjs +61980 -0
  284. package/lib/vdc-editor.umd.js +197 -0
  285. package/lib/vite.config.d.ts +2 -0
  286. package/package.json +174 -0
@@ -0,0 +1,7 @@
1
+ import { TableCellBackground, TableCellBackgroundOptions } from './cell-background';
2
+ import { TableHeader, TableHeaderOptions } from '@tiptap/extension-table-header';
3
+ import { TableRow, TableRowOptions } from '@tiptap/extension-table-row';
4
+ import { TableCell, TableCellOptions } from '@tiptap/extension-table-cell';
5
+ import { Table, TableOptions } from './table';
6
+
7
+ export { Table, TableOptions, TableCell, TableCellOptions, TableRow, TableRowOptions, TableHeader, TableHeaderOptions, TableCellBackground, TableCellBackgroundOptions, };
@@ -0,0 +1,24 @@
1
+ import { TableRowOptions } from '@tiptap/extension-table-row';
2
+ import { TableCellOptions } from '@tiptap/extension-table-cell';
3
+ import { TableHeaderOptions } from '@tiptap/extension-table-header';
4
+ import { TableCellBackgroundOptions } from './cell-background';
5
+ import { GeneralOptions } from '../../type';
6
+
7
+ export interface TableOptions extends GeneralOptions<TableOptions> {
8
+ HTMLAttributes: Record<string, any>;
9
+ resizable: boolean;
10
+ handleWidth: number;
11
+ cellMinWidth: number;
12
+ lastColumnResizable: boolean;
13
+ allowTableNodeSelection: boolean;
14
+ /** options for table rows */
15
+ tableRow: Partial<TableRowOptions>;
16
+ /** options for table headers */
17
+ tableHeader: Partial<TableHeaderOptions>;
18
+ /** options for table cells */
19
+ tableCell: Partial<TableCellOptions>;
20
+ /** options for table cell background */
21
+ tableCellBackground: Partial<TableCellBackgroundOptions>;
22
+ }
23
+ export declare const Table: import('@tiptap/core').Node<TableOptions, any>;
24
+ export default Table;
@@ -0,0 +1,12 @@
1
+ import { TaskItemOptions } from '@tiptap/extension-task-item';
2
+ import { TaskListOptions as TiptapTaskListOptions } from '@tiptap/extension-task-list';
3
+ import { GeneralOptions } from '../../type';
4
+
5
+ /**
6
+ * Represents the interface for task list options, extending TiptapTaskListOptions and GeneralOptions.
7
+ */
8
+ export interface TaskListOptions extends TiptapTaskListOptions, GeneralOptions<TaskListOptions> {
9
+ /** options for task items */
10
+ taskItem: Partial<TaskItemOptions>;
11
+ }
12
+ export declare const TaskList: import('@tiptap/core').Node<TaskListOptions, any>;
@@ -0,0 +1 @@
1
+ export * from './TaskList';
@@ -0,0 +1,18 @@
1
+ import { Extension } from '@tiptap/core';
2
+ import { TextAlignOptions as TiptapTextAlignOptions } from '@tiptap/extension-text-align';
3
+ import { GeneralOptions } from '../../type';
4
+
5
+ type Alignments = 'left' | 'center' | 'right' | 'justify';
6
+ /**
7
+ * Represents the interface for text align options, extending TiptapTextAlignOptions and GeneralOptions.
8
+ */
9
+ export interface TextAlignOptions extends TiptapTextAlignOptions, GeneralOptions<TextAlignOptions> {
10
+ /**
11
+ * List of available alignment options
12
+ *
13
+ * @default ['left', 'center', 'right', 'justify']
14
+ */
15
+ alignments: Alignments[];
16
+ }
17
+ export declare const TextAlign: Extension<TextAlignOptions, any>;
18
+ export {};
@@ -0,0 +1,65 @@
1
+ import { StyleValue } from 'vue';
2
+ import { icons } from '../../../components/icons';
3
+ import { Editor } from '@tiptap/vue-3';
4
+ import { ButtonViewReturnComponentProps } from '../../../type';
5
+
6
+ export interface Item {
7
+ title: string;
8
+ icon?: keyof typeof icons;
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
+ maxHeight?: string | number;
22
+ icon?: any;
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
+ icon: undefined;
31
+ tooltip: string;
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
+ icon: undefined;
38
+ tooltip: string;
39
+ items: () => never[];
40
+ }>>> & Readonly<{}>, {
41
+ icon: any;
42
+ color: string;
43
+ disabled: boolean;
44
+ tooltip: 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 './TextAlign';
@@ -0,0 +1,7 @@
1
+ import { Extension } from '@tiptap/core';
2
+ import { GeneralOptions } from '../../type';
3
+
4
+ export interface TextBubbleOptions extends GeneralOptions<TextBubbleOptions> {
5
+ }
6
+ export declare const TextBubble: Extension<TextBubbleOptions, any>;
7
+ export default TextBubble;
@@ -0,0 +1,49 @@
1
+ import { Editor } from '@tiptap/vue-3';
2
+
3
+ interface Props {
4
+ editor: Editor;
5
+ disabled?: boolean;
6
+ color?: string;
7
+ maxHeight?: string | number;
8
+ icon?: any;
9
+ tooltip?: string;
10
+ }
11
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
12
+ disabled: boolean;
13
+ color: undefined;
14
+ maxHeight: undefined;
15
+ icon: undefined;
16
+ tooltip: string;
17
+ items: () => never[];
18
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
19
+ disabled: boolean;
20
+ color: undefined;
21
+ maxHeight: undefined;
22
+ icon: undefined;
23
+ tooltip: string;
24
+ items: () => never[];
25
+ }>>> & Readonly<{}>, {
26
+ icon: any;
27
+ color: string;
28
+ disabled: boolean;
29
+ tooltip: string;
30
+ maxHeight: string | number;
31
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
32
+ export default _default;
33
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
+ type __VLS_TypePropsToRuntimeProps<T> = {
35
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
36
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
37
+ } : {
38
+ type: import('vue').PropType<T[K]>;
39
+ required: true;
40
+ };
41
+ };
42
+ type __VLS_WithDefaults<P, D> = {
43
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
44
+ default: D[K];
45
+ }> : P[K];
46
+ };
47
+ type __VLS_Prettify<T> = {
48
+ [K in keyof T]: T[K];
49
+ } & {};
@@ -0,0 +1 @@
1
+ export * from './TextBubble';
@@ -0,0 +1,12 @@
1
+ import { Extension } from '@tiptap/core';
2
+
3
+ /**
4
+ * Extension based on:
5
+ * - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js
6
+ * - https://github.com/remirror/remirror/blob/e0f1bec4a1e8073ce8f5500d62193e52321155b9/packages/prosemirror-trailing-node/src/trailing-node-plugin.ts
7
+ */
8
+ export interface TrailingNodeOptions {
9
+ node: string;
10
+ notAfter: string[];
11
+ }
12
+ export declare const TrailingNode: Extension<TrailingNodeOptions, any>;
@@ -0,0 +1 @@
1
+ export * from './TrailingNode';
@@ -0,0 +1,6 @@
1
+ import { UnderlineOptions as TiptapUnderlineOptions } from '@tiptap/extension-underline';
2
+ import { GeneralOptions } from '../../type';
3
+
4
+ export interface UnderlineOptions extends TiptapUnderlineOptions, GeneralOptions<UnderlineOptions> {
5
+ }
6
+ export declare const Underline: import('@tiptap/core').Mark<UnderlineOptions, any>;
@@ -0,0 +1 @@
1
+ export * from './Underline';
@@ -0,0 +1,55 @@
1
+ import { Node } from '@tiptap/core';
2
+
3
+ /**
4
+ * Represents the interface for video options, extending GeneralOptions.
5
+ */
6
+ export interface VideoOptions {
7
+ /**
8
+ * Indicates whether fullscreen play is allowed
9
+ *
10
+ * @default true
11
+ */
12
+ allowFullscreen: boolean;
13
+ /**
14
+ * Indicates whether to display the frameborder
15
+ *
16
+ * @default false
17
+ */
18
+ frameborder: boolean;
19
+ /**
20
+ * Width of the video, can be a number or string
21
+ *
22
+ * @default VIDEO_SIZE['size-medium']
23
+ */
24
+ width: number | string;
25
+ /** HTML attributes object for passing additional attributes */
26
+ HTMLAttributes: {
27
+ [key: string]: any;
28
+ };
29
+ upload?: (file: File) => Promise<string>;
30
+ }
31
+ /**
32
+ * Represents the type for setting video options
33
+ */
34
+ type SetVideoOptions = {
35
+ /** The source URL of the video */
36
+ src: string;
37
+ /** The width of the video */
38
+ width: string | number;
39
+ };
40
+ declare module '@tiptap/core' {
41
+ interface Commands<ReturnType> {
42
+ video: {
43
+ /**
44
+ * Add an video
45
+ */
46
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
47
+ /**
48
+ * Update an video
49
+ */
50
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
51
+ };
52
+ }
53
+ }
54
+ export declare const Video: Node<VideoOptions, any>;
55
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Video';
@@ -0,0 +1,14 @@
1
+ import { Node } from '@tiptap/vue-3';
2
+
3
+ export interface VideoOptions {
4
+ upload?: (files: File[]) => void;
5
+ }
6
+ declare module '@tiptap/core' {
7
+ interface Commands<ReturnType> {
8
+ videoUpload: {
9
+ setVideoUpload: () => ReturnType;
10
+ };
11
+ }
12
+ }
13
+ export declare const VideoUpload: Node<VideoOptions, any>;
14
+ export default VideoUpload;
@@ -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 './VideoUpload';
@@ -0,0 +1,74 @@
1
+ export { Bold } from './Bold';
2
+ export type { BoldOptions } from './Bold';
3
+ export { Italic } from './Italic';
4
+ export type { ItalicOptions } from './Italic';
5
+ export { Underline } from './UnderLine';
6
+ export type { UnderlineOptions } from './UnderLine';
7
+ export { Strike } from './Strike';
8
+ export type { StrikeOptions } from './Strike';
9
+ export { Code } from './Code';
10
+ export type { CodeOptions } from './Code';
11
+ export { CodeBlock } from './CodeBlock';
12
+ export type { CodeBlockOptions } from './CodeBlock';
13
+ export { Heading } from './Heading';
14
+ export type { HeadingOptions } from './Heading';
15
+ export { TextAlign } from './TextAlign';
16
+ export type { TextAlignOptions } from './TextAlign';
17
+ export { FontSize } from './FontSize';
18
+ export type { FontSizeOptions } from './FontSize';
19
+ export { Color } from './Color';
20
+ export type { ColorOptions } from './Color';
21
+ export { Highlight } from './Highlight';
22
+ export type { HighlightOptions } from './Highlight';
23
+ export { BulletList } from './BulletList';
24
+ export type { BulletListOptions } from './BulletList';
25
+ export { Clear } from './Clear';
26
+ export type { ClearOptions } from './Clear';
27
+ export { OrderedList } from './OrderedList';
28
+ export type { OrderedListOptions } from './OrderedList';
29
+ export { TaskList } from './TaskList';
30
+ export type { TaskListOptions } from './TaskList';
31
+ export { Blockquote } from './Blockquote';
32
+ export type { BlockquoteOptions } from './Blockquote';
33
+ export { Link } from './Link';
34
+ export type { LinkOptions } from './Link';
35
+ export { HorizontalRule } from './HorizontalRule';
36
+ export type { HorizontalRuleOptions } from './HorizontalRule';
37
+ export { History } from './History';
38
+ export type { HistoryOptions } from './History';
39
+ export { Fullscreen } from './Fullscreen';
40
+ export type { FullscreenOptions } from './Fullscreen';
41
+ export { BaseKit } from './BaseKit';
42
+ export type { BaseKitOptions } from './BaseKit';
43
+ export { SubAndSuperScript } from './Subscript';
44
+ export type { SubAndSuperScriptOptions } from './Subscript';
45
+ export type { MoreMarkOptions } from './MoreMark';
46
+ export { MoreMark } from './MoreMark';
47
+ export { Indent } from './Indent';
48
+ export type { IndentOptions } from './Indent';
49
+ export { LineHeight } from './LineHeight';
50
+ export type { LineHeightOptions } from './LineHeight';
51
+ export { SlashCommand } from './SlashCommand';
52
+ export { Image } from './Image';
53
+ export type { SetImageAttrsOptions } from './Image';
54
+ export { Video } from './Video/Video';
55
+ export type { VideoOptions } from './Video';
56
+ export { Table } from './Table';
57
+ export type { TableOptions } from './Table';
58
+ export { AI } from './Ai';
59
+ export { FormatPainter } from './FormatPainter';
60
+ export type { FormatPainterOptions } from './FormatPainter';
61
+ export { ImportWord } from './ImportWord';
62
+ export type { ImportWordOptions } from './ImportWord';
63
+ export { Columns } from './MultiColumn';
64
+ export type { ColumnsOptions } from './MultiColumn';
65
+ export { ImageUpload } from './ImageUpload';
66
+ export type { ImageUploadOptions } from './ImageUpload';
67
+ export { VideoUpload } from './VideoUpload';
68
+ export { FontFamily } from './FontFamily';
69
+ export type { FontFamilyOptions } from './FontFamily';
70
+ export type { PreviewOptions } from './Preview';
71
+ export { Preview } from './Preview';
72
+ export { FindAndReplace } from './FindAndReplace';
73
+ export { Printer } from './Printer';
74
+ export type { PrinterOptions } from './Printer';
@@ -0,0 +1,6 @@
1
+ export { createContext, useContext } from './useContext';
2
+ export { useTiptapStore } from './useStore';
3
+ export { useHotkeys } from './useHotkeys';
4
+ export * from './useCheckSpellStore';
5
+ export * from './useConfigTiptap';
6
+ export * from './useSuperTextStore';
@@ -0,0 +1,9 @@
1
+ export type SpellCheckState = {
2
+ code: 'en' | 'ko';
3
+ limit: number;
4
+ };
5
+ export declare const useSpellCheckStore: () => {
6
+ languages: "ko" | "en";
7
+ update: (payload: Partial<SpellCheckState>) => void;
8
+ limit: number;
9
+ };
@@ -0,0 +1,8 @@
1
+ import { PageOption } from '../type';
2
+
3
+ export declare function useConfigTiptap(config?: {
4
+ page: PageOption;
5
+ }): {
6
+ defaultExtensions: globalThis.ComputedRef<(import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Node<any, any> | import('@tiptap/core').Mark<import('../extensions').BoldOptions, any> | import('@tiptap/core').Mark<import('../extensions').HighlightOptions, any> | import('@tiptap/core').Mark<import('../extensions').LinkOptions, any>)[]>;
7
+ content: globalThis.Ref<string, string>;
8
+ };
@@ -0,0 +1,21 @@
1
+ import { AnyExtension } from '@tiptap/core';
2
+
3
+ interface Instance {
4
+ /**
5
+ * List of extensions
6
+ *
7
+ * @default []
8
+ */
9
+ extensions: AnyExtension[];
10
+ /**
11
+ * Default language setting
12
+ *
13
+ * @default DEFAULT_LANG_VALUE
14
+ */
15
+ defaultLang?: string;
16
+ }
17
+ export declare function createContext(instance: Partial<Instance>): void;
18
+ export declare function useContext(): {
19
+ state: Instance;
20
+ };
21
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const useHotkeys: (keys: string, callback: CallableFunction) => {
2
+ bind: () => void;
3
+ unbind: () => void;
4
+ };
@@ -0,0 +1,7 @@
1
+ export declare const useNodePosition: () => {
2
+ offsetTop: null;
3
+ offsetLeft: null;
4
+ } | {
5
+ offsetTop: number;
6
+ offsetLeft: number;
7
+ };