@dooherceg/tiptap-controlled-editor-with-table 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 (287) hide show
  1. package/README.md +63 -0
  2. package/dist/Combination-CO0ZtURs.js +1333 -0
  3. package/dist/assets/badge.css +1 -0
  4. package/dist/assets/button.css +1 -0
  5. package/dist/assets/card.css +1 -0
  6. package/dist/assets/color-highlight-button.css +1 -0
  7. package/dist/assets/dropdown-menu.css +1 -0
  8. package/dist/assets/image-upload-node.css +1 -0
  9. package/dist/assets/input.css +1 -0
  10. package/dist/assets/popover.css +1 -0
  11. package/dist/assets/separator.css +1 -0
  12. package/dist/assets/simple-editor.css +1 -0
  13. package/dist/assets/toolbar.css +1 -0
  14. package/dist/assets/tooltip.css +1 -0
  15. package/dist/components/tiptap-icons/add-table-column-after-icon.d.ts +1 -0
  16. package/dist/components/tiptap-icons/add-table-column-after-icon.js +26 -0
  17. package/dist/components/tiptap-icons/add-table-column-before-icon.d.ts +1 -0
  18. package/dist/components/tiptap-icons/add-table-column-before-icon.js +26 -0
  19. package/dist/components/tiptap-icons/add-table-row-after-icon.d.ts +1 -0
  20. package/dist/components/tiptap-icons/add-table-row-after-icon.js +26 -0
  21. package/dist/components/tiptap-icons/add-table-row-before-icon.d.ts +1 -0
  22. package/dist/components/tiptap-icons/add-table-row-before-icon.js +26 -0
  23. package/dist/components/tiptap-icons/align-center-icon.d.ts +3 -0
  24. package/dist/components/tiptap-icons/align-center-icon.js +47 -0
  25. package/dist/components/tiptap-icons/align-justify-icon.d.ts +3 -0
  26. package/dist/components/tiptap-icons/align-justify-icon.js +47 -0
  27. package/dist/components/tiptap-icons/align-left-icon.d.ts +1 -0
  28. package/dist/components/tiptap-icons/align-left-icon.js +49 -0
  29. package/dist/components/tiptap-icons/align-right-icon.d.ts +1 -0
  30. package/dist/components/tiptap-icons/align-right-icon.js +49 -0
  31. package/dist/components/tiptap-icons/arrow-left-icon.d.ts +1 -0
  32. package/dist/components/tiptap-icons/arrow-left-icon.js +27 -0
  33. package/dist/components/tiptap-icons/ban-icon.d.ts +1 -0
  34. package/dist/components/tiptap-icons/ban-icon.js +29 -0
  35. package/dist/components/tiptap-icons/blockquote-icon.d.ts +1 -0
  36. package/dist/components/tiptap-icons/blockquote-icon.js +58 -0
  37. package/dist/components/tiptap-icons/bold-icon.d.ts +1 -0
  38. package/dist/components/tiptap-icons/bold-icon.js +29 -0
  39. package/dist/components/tiptap-icons/chevron-down-icon.d.ts +3 -0
  40. package/dist/components/tiptap-icons/chevron-down-icon.js +27 -0
  41. package/dist/components/tiptap-icons/close-icon.d.ts +1 -0
  42. package/dist/components/tiptap-icons/close-icon.js +27 -0
  43. package/dist/components/tiptap-icons/code-block-icon.d.ts +1 -0
  44. package/dist/components/tiptap-icons/code-block-icon.js +49 -0
  45. package/dist/components/tiptap-icons/code2-icon.d.ts +1 -0
  46. package/dist/components/tiptap-icons/code2-icon.js +43 -0
  47. package/dist/components/tiptap-icons/corner-down-left-icon.d.ts +1 -0
  48. package/dist/components/tiptap-icons/corner-down-left-icon.js +29 -0
  49. package/dist/components/tiptap-icons/delete-table-column-icon.d.ts +1 -0
  50. package/dist/components/tiptap-icons/delete-table-column-icon.js +26 -0
  51. package/dist/components/tiptap-icons/delete-table-row-icon.d.ts +1 -0
  52. package/dist/components/tiptap-icons/delete-table-row-icon.js +33 -0
  53. package/dist/components/tiptap-icons/external-link-icon.d.ts +1 -0
  54. package/dist/components/tiptap-icons/external-link-icon.js +36 -0
  55. package/dist/components/tiptap-icons/heading-five-icon.d.ts +1 -0
  56. package/dist/components/tiptap-icons/heading-five-icon.js +36 -0
  57. package/dist/components/tiptap-icons/heading-four-icon.d.ts +1 -0
  58. package/dist/components/tiptap-icons/heading-four-icon.js +36 -0
  59. package/dist/components/tiptap-icons/heading-icon.d.ts +1 -0
  60. package/dist/components/tiptap-icons/heading-icon.js +27 -0
  61. package/dist/components/tiptap-icons/heading-one-icon.d.ts +1 -0
  62. package/dist/components/tiptap-icons/heading-one-icon.js +36 -0
  63. package/dist/components/tiptap-icons/heading-six-icon.d.ts +1 -0
  64. package/dist/components/tiptap-icons/heading-six-icon.js +38 -0
  65. package/dist/components/tiptap-icons/heading-three-icon.d.ts +1 -0
  66. package/dist/components/tiptap-icons/heading-three-icon.js +47 -0
  67. package/dist/components/tiptap-icons/heading-two-icon.d.ts +1 -0
  68. package/dist/components/tiptap-icons/heading-two-icon.js +36 -0
  69. package/dist/components/tiptap-icons/highlighter-icon.d.ts +1 -0
  70. package/dist/components/tiptap-icons/highlighter-icon.js +29 -0
  71. package/dist/components/tiptap-icons/image-plus-icon.d.ts +1 -0
  72. package/dist/components/tiptap-icons/image-plus-icon.js +29 -0
  73. package/dist/components/tiptap-icons/italic-icon.d.ts +1 -0
  74. package/dist/components/tiptap-icons/italic-icon.js +27 -0
  75. package/dist/components/tiptap-icons/link-icon.d.ts +1 -0
  76. package/dist/components/tiptap-icons/link-icon.js +36 -0
  77. package/dist/components/tiptap-icons/list-icon.d.ts +1 -0
  78. package/dist/components/tiptap-icons/list-icon.js +76 -0
  79. package/dist/components/tiptap-icons/list-ordered-icon.d.ts +1 -0
  80. package/dist/components/tiptap-icons/list-ordered-icon.js +76 -0
  81. package/dist/components/tiptap-icons/list-todo-icon.d.ts +1 -0
  82. package/dist/components/tiptap-icons/list-todo-icon.js +67 -0
  83. package/dist/components/tiptap-icons/merge-table-cells-icon.d.ts +1 -0
  84. package/dist/components/tiptap-icons/merge-table-cells-icon.js +26 -0
  85. package/dist/components/tiptap-icons/moon-star-icon.d.ts +1 -0
  86. package/dist/components/tiptap-icons/moon-star-icon.js +38 -0
  87. package/dist/components/tiptap-icons/redo2-icon.d.ts +1 -0
  88. package/dist/components/tiptap-icons/redo2-icon.js +29 -0
  89. package/dist/components/tiptap-icons/remove-table-icon.d.ts +1 -0
  90. package/dist/components/tiptap-icons/remove-table-icon.js +26 -0
  91. package/dist/components/tiptap-icons/split-table-cells-icon copy.d.ts +1 -0
  92. package/dist/components/tiptap-icons/split-table-cells-icon copy.js +30 -0
  93. package/dist/components/tiptap-icons/strike-icon.d.ts +1 -0
  94. package/dist/components/tiptap-icons/strike-icon.js +36 -0
  95. package/dist/components/tiptap-icons/subscript-icon.d.ts +1 -0
  96. package/dist/components/tiptap-icons/subscript-icon.js +49 -0
  97. package/dist/components/tiptap-icons/sun-icon.d.ts +1 -0
  98. package/dist/components/tiptap-icons/sun-icon.js +87 -0
  99. package/dist/components/tiptap-icons/superscript-icon.d.ts +1 -0
  100. package/dist/components/tiptap-icons/superscript-icon.js +49 -0
  101. package/dist/components/tiptap-icons/table-icon.d.ts +3 -0
  102. package/dist/components/tiptap-icons/table-icon.js +24 -0
  103. package/dist/components/tiptap-icons/trash-icon.d.ts +1 -0
  104. package/dist/components/tiptap-icons/trash-icon.js +29 -0
  105. package/dist/components/tiptap-icons/underline-icon.d.ts +1 -0
  106. package/dist/components/tiptap-icons/underline-icon.js +29 -0
  107. package/dist/components/tiptap-icons/undo2-icon.d.ts +1 -0
  108. package/dist/components/tiptap-icons/undo2-icon.js +29 -0
  109. package/dist/components/tiptap-node/horizontal-rule-node/horizontal-rule-node-extension.d.ts +2 -0
  110. package/dist/components/tiptap-node/horizontal-rule-node/horizontal-rule-node-extension.js +67 -0
  111. package/dist/components/tiptap-node/image-upload-node/image-upload-node-extension.d.ts +58 -0
  112. package/dist/components/tiptap-node/image-upload-node/image-upload-node-extension.js +77 -0
  113. package/dist/components/tiptap-node/image-upload-node/image-upload-node.d.ts +68 -0
  114. package/dist/components/tiptap-node/image-upload-node/image-upload-node.js +329 -0
  115. package/dist/components/tiptap-node/image-upload-node/index.d.ts +1 -0
  116. package/dist/components/tiptap-node/image-upload-node/index.js +4 -0
  117. package/dist/components/tiptap-templates/simple/simple-editor.d.ts +8 -0
  118. package/dist/components/tiptap-templates/simple/simple-editor.js +1956 -0
  119. package/dist/components/tiptap-templates/simple/theme-toggle.d.ts +1 -0
  120. package/dist/components/tiptap-templates/simple/theme-toggle.js +28 -0
  121. package/dist/components/tiptap-ui/blockquote-button/blockquote-button.d.ts +22 -0
  122. package/dist/components/tiptap-ui/blockquote-button/blockquote-button.js +71 -0
  123. package/dist/components/tiptap-ui/blockquote-button/index.d.ts +2 -0
  124. package/dist/components/tiptap-ui/blockquote-button/index.js +11 -0
  125. package/dist/components/tiptap-ui/blockquote-button/use-blockquote.d.ts +80 -0
  126. package/dist/components/tiptap-ui/blockquote-button/use-blockquote.js +82 -0
  127. package/dist/components/tiptap-ui/code-block-button/code-block-button.d.ts +22 -0
  128. package/dist/components/tiptap-ui/code-block-button/code-block-button.js +71 -0
  129. package/dist/components/tiptap-ui/code-block-button/index.d.ts +2 -0
  130. package/dist/components/tiptap-ui/code-block-button/index.js +11 -0
  131. package/dist/components/tiptap-ui/code-block-button/use-code-block.d.ts +87 -0
  132. package/dist/components/tiptap-ui/code-block-button/use-code-block.js +83 -0
  133. package/dist/components/tiptap-ui/color-highlight-button/color-highlight-button.d.ts +45 -0
  134. package/dist/components/tiptap-ui/color-highlight-button/color-highlight-button.js +89 -0
  135. package/dist/components/tiptap-ui/color-highlight-button/index.d.ts +2 -0
  136. package/dist/components/tiptap-ui/color-highlight-button/index.js +14 -0
  137. package/dist/components/tiptap-ui/color-highlight-button/use-color-highlight.d.ts +82 -0
  138. package/dist/components/tiptap-ui/color-highlight-button/use-color-highlight.js +176 -0
  139. package/dist/components/tiptap-ui/color-highlight-popover/color-highlight-popover.d.ts +25 -0
  140. package/dist/components/tiptap-ui/color-highlight-popover/color-highlight-popover.js +136 -0
  141. package/dist/components/tiptap-ui/color-highlight-popover/index.d.ts +1 -0
  142. package/dist/components/tiptap-ui/color-highlight-popover/index.js +6 -0
  143. package/dist/components/tiptap-ui/heading-button/heading-button.d.ts +23 -0
  144. package/dist/components/tiptap-ui/heading-button/heading-button.js +74 -0
  145. package/dist/components/tiptap-ui/heading-button/index.d.ts +2 -0
  146. package/dist/components/tiptap-ui/heading-button/index.js +13 -0
  147. package/dist/components/tiptap-ui/heading-button/use-heading.d.ts +108 -0
  148. package/dist/components/tiptap-ui/heading-button/use-heading.js +112 -0
  149. package/dist/components/tiptap-ui/heading-dropdown-menu/heading-dropdown-menu.d.ts +20 -0
  150. package/dist/components/tiptap-ui/heading-dropdown-menu/heading-dropdown-menu.js +67 -0
  151. package/dist/components/tiptap-ui/heading-dropdown-menu/index.d.ts +2 -0
  152. package/dist/components/tiptap-ui/heading-dropdown-menu/index.js +7 -0
  153. package/dist/components/tiptap-ui/heading-dropdown-menu/use-heading-dropdown-menu.d.ts +73 -0
  154. package/dist/components/tiptap-ui/heading-dropdown-menu/use-heading-dropdown-menu.js +38 -0
  155. package/dist/components/tiptap-ui/image-upload-button/image-upload-button.d.ts +29 -0
  156. package/dist/components/tiptap-ui/image-upload-button/image-upload-button.js +72 -0
  157. package/dist/components/tiptap-ui/image-upload-button/index.d.ts +2 -0
  158. package/dist/components/tiptap-ui/image-upload-button/index.js +12 -0
  159. package/dist/components/tiptap-ui/image-upload-button/use-image-upload.d.ts +84 -0
  160. package/dist/components/tiptap-ui/image-upload-button/use-image-upload.js +76 -0
  161. package/dist/components/tiptap-ui/insert-table-button/insert-table-button.d.ts +4 -0
  162. package/dist/components/tiptap-ui/insert-table-button/insert-table-button.js +41 -0
  163. package/dist/components/tiptap-ui/link-popover/index.d.ts +2 -0
  164. package/dist/components/tiptap-ui/link-popover/index.js +13 -0
  165. package/dist/components/tiptap-ui/link-popover/link-popover.d.ts +57 -0
  166. package/dist/components/tiptap-ui/link-popover/link-popover.js +193 -0
  167. package/dist/components/tiptap-ui/link-popover/use-link-popover.d.ts +117 -0
  168. package/dist/components/tiptap-ui/link-popover/use-link-popover.js +103 -0
  169. package/dist/components/tiptap-ui/list-button/index.d.ts +2 -0
  170. package/dist/components/tiptap-ui/list-button/index.js +14 -0
  171. package/dist/components/tiptap-ui/list-button/list-button.d.ts +23 -0
  172. package/dist/components/tiptap-ui/list-button/list-button.js +74 -0
  173. package/dist/components/tiptap-ui/list-button/use-list.d.ts +97 -0
  174. package/dist/components/tiptap-ui/list-button/use-list.js +149 -0
  175. package/dist/components/tiptap-ui/list-dropdown-menu/index.d.ts +1 -0
  176. package/dist/components/tiptap-ui/list-dropdown-menu/index.js +4 -0
  177. package/dist/components/tiptap-ui/list-dropdown-menu/list-dropdown-menu.d.ts +29 -0
  178. package/dist/components/tiptap-ui/list-dropdown-menu/list-dropdown-menu.js +63 -0
  179. package/dist/components/tiptap-ui/list-dropdown-menu/use-list-dropdown-menu.d.ts +90 -0
  180. package/dist/components/tiptap-ui/list-dropdown-menu/use-list-dropdown-menu.js +84 -0
  181. package/dist/components/tiptap-ui/mark-button/index.d.ts +2 -0
  182. package/dist/components/tiptap-ui/mark-button/index.js +14 -0
  183. package/dist/components/tiptap-ui/mark-button/mark-button.d.ts +23 -0
  184. package/dist/components/tiptap-ui/mark-button/mark-button.js +74 -0
  185. package/dist/components/tiptap-ui/mark-button/use-mark.d.ts +104 -0
  186. package/dist/components/tiptap-ui/mark-button/use-mark.js +84 -0
  187. package/dist/components/tiptap-ui/table-actions-toolbar/add-column-after-button.d.ts +4 -0
  188. package/dist/components/tiptap-ui/table-actions-toolbar/add-column-after-button.js +7 -0
  189. package/dist/components/tiptap-ui/table-actions-toolbar/add-column-before-button.d.ts +4 -0
  190. package/dist/components/tiptap-ui/table-actions-toolbar/add-column-before-button.js +7 -0
  191. package/dist/components/tiptap-ui/table-actions-toolbar/add-row-after-button.d.ts +4 -0
  192. package/dist/components/tiptap-ui/table-actions-toolbar/add-row-after-button.js +7 -0
  193. package/dist/components/tiptap-ui/table-actions-toolbar/add-row-before-button.d.ts +4 -0
  194. package/dist/components/tiptap-ui/table-actions-toolbar/add-row-before-button.js +7 -0
  195. package/dist/components/tiptap-ui/table-actions-toolbar/delete-column-button.d.ts +4 -0
  196. package/dist/components/tiptap-ui/table-actions-toolbar/delete-column-button.js +7 -0
  197. package/dist/components/tiptap-ui/table-actions-toolbar/delete-row-button.d.ts +4 -0
  198. package/dist/components/tiptap-ui/table-actions-toolbar/delete-row-button.js +7 -0
  199. package/dist/components/tiptap-ui/table-actions-toolbar/get-table-node-and-pos.d.ts +6 -0
  200. package/dist/components/tiptap-ui/table-actions-toolbar/get-table-node-and-pos.js +15 -0
  201. package/dist/components/tiptap-ui/table-actions-toolbar/merge-cells-button.d.ts +4 -0
  202. package/dist/components/tiptap-ui/table-actions-toolbar/merge-cells-button.js +7 -0
  203. package/dist/components/tiptap-ui/table-actions-toolbar/remove-table-button.d.ts +4 -0
  204. package/dist/components/tiptap-ui/table-actions-toolbar/remove-table-button.js +7 -0
  205. package/dist/components/tiptap-ui/table-actions-toolbar/split-table-cells-button.d.ts +4 -0
  206. package/dist/components/tiptap-ui/table-actions-toolbar/split-table-cells-button.js +7 -0
  207. package/dist/components/tiptap-ui/table-actions-toolbar/table-actions-toolbar.d.ts +2 -0
  208. package/dist/components/tiptap-ui/table-actions-toolbar/table-actions-toolbar.js +75 -0
  209. package/dist/components/tiptap-ui/text-align-button/index.d.ts +2 -0
  210. package/dist/components/tiptap-ui/text-align-button/index.js +15 -0
  211. package/dist/components/tiptap-ui/text-align-button/text-align-button.d.ts +30 -0
  212. package/dist/components/tiptap-ui/text-align-button/text-align-button.js +81 -0
  213. package/dist/components/tiptap-ui/text-align-button/use-text-align.d.ts +101 -0
  214. package/dist/components/tiptap-ui/text-align-button/use-text-align.js +84 -0
  215. package/dist/components/tiptap-ui/undo-redo-button/index.d.ts +2 -0
  216. package/dist/components/tiptap-ui/undo-redo-button/index.js +13 -0
  217. package/dist/components/tiptap-ui/undo-redo-button/undo-redo-button.d.ts +23 -0
  218. package/dist/components/tiptap-ui/undo-redo-button/undo-redo-button.js +70 -0
  219. package/dist/components/tiptap-ui/undo-redo-button/use-undo-redo.d.ts +90 -0
  220. package/dist/components/tiptap-ui/undo-redo-button/use-undo-redo.js +67 -0
  221. package/dist/components/tiptap-ui-primitive/badge/badge.d.ts +8 -0
  222. package/dist/components/tiptap-ui-primitive/badge/badge.js +30 -0
  223. package/dist/components/tiptap-ui-primitive/badge/index.d.ts +1 -0
  224. package/dist/components/tiptap-ui-primitive/badge/index.js +4 -0
  225. package/dist/components/tiptap-ui-primitive/button/button.d.ts +14 -0
  226. package/dist/components/tiptap-ui-primitive/button/button.js +69 -0
  227. package/dist/components/tiptap-ui-primitive/button/index.d.ts +1 -0
  228. package/dist/components/tiptap-ui-primitive/button/index.js +6 -0
  229. package/dist/components/tiptap-ui-primitive/card/card.d.ts +9 -0
  230. package/dist/components/tiptap-ui-primitive/card/card.js +62 -0
  231. package/dist/components/tiptap-ui-primitive/card/index.d.ts +1 -0
  232. package/dist/components/tiptap-ui-primitive/card/index.js +9 -0
  233. package/dist/components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.d.ts +16 -0
  234. package/dist/components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.js +1028 -0
  235. package/dist/components/tiptap-ui-primitive/dropdown-menu/index.d.ts +1 -0
  236. package/dist/components/tiptap-ui-primitive/dropdown-menu/index.js +13 -0
  237. package/dist/components/tiptap-ui-primitive/input/index.d.ts +1 -0
  238. package/dist/components/tiptap-ui-primitive/input/index.js +5 -0
  239. package/dist/components/tiptap-ui-primitive/input/input.d.ts +3 -0
  240. package/dist/components/tiptap-ui-primitive/input/input.js +16 -0
  241. package/dist/components/tiptap-ui-primitive/popover/index.d.ts +1 -0
  242. package/dist/components/tiptap-ui-primitive/popover/index.js +6 -0
  243. package/dist/components/tiptap-ui-primitive/popover/popover.d.ts +5 -0
  244. package/dist/components/tiptap-ui-primitive/popover/popover.js +244 -0
  245. package/dist/components/tiptap-ui-primitive/separator/index.d.ts +1 -0
  246. package/dist/components/tiptap-ui-primitive/separator/index.js +4 -0
  247. package/dist/components/tiptap-ui-primitive/separator/separator.d.ts +6 -0
  248. package/dist/components/tiptap-ui-primitive/separator/separator.js +22 -0
  249. package/dist/components/tiptap-ui-primitive/spacer/index.d.ts +1 -0
  250. package/dist/components/tiptap-ui-primitive/spacer/index.js +4 -0
  251. package/dist/components/tiptap-ui-primitive/spacer/spacer.d.ts +6 -0
  252. package/dist/components/tiptap-ui-primitive/spacer/spacer.js +20 -0
  253. package/dist/components/tiptap-ui-primitive/toolbar/index.d.ts +1 -0
  254. package/dist/components/tiptap-ui-primitive/toolbar/index.js +6 -0
  255. package/dist/components/tiptap-ui-primitive/toolbar/toolbar.d.ts +8 -0
  256. package/dist/components/tiptap-ui-primitive/toolbar/toolbar.js +83 -0
  257. package/dist/components/tiptap-ui-primitive/tooltip/index.d.ts +1 -0
  258. package/dist/components/tiptap-ui-primitive/tooltip/index.js +6 -0
  259. package/dist/components/tiptap-ui-primitive/tooltip/tooltip.d.ts +28 -0
  260. package/dist/components/tiptap-ui-primitive/tooltip/tooltip.js +1374 -0
  261. package/dist/floating-ui.react-dom-DgOuULHo.js +1334 -0
  262. package/dist/hooks/use-composed-ref.d.ts +3 -0
  263. package/dist/hooks/use-composed-ref.js +16 -0
  264. package/dist/hooks/use-cursor-visibility.d.ts +20 -0
  265. package/dist/hooks/use-cursor-visibility.js +31 -0
  266. package/dist/hooks/use-element-rect.d.ts +35 -0
  267. package/dist/hooks/use-element-rect.js +79 -0
  268. package/dist/hooks/use-menu-navigation.d.ts +52 -0
  269. package/dist/hooks/use-menu-navigation.js +68 -0
  270. package/dist/hooks/use-mobile.d.ts +1 -0
  271. package/dist/hooks/use-mobile.js +13 -0
  272. package/dist/hooks/use-scrolling.d.ts +8 -0
  273. package/dist/hooks/use-scrolling.js +17 -0
  274. package/dist/hooks/use-throttled-callback.d.ts +18 -0
  275. package/dist/hooks/use-throttled-callback.js +116 -0
  276. package/dist/hooks/use-tiptap-editor.d.ts +17 -0
  277. package/dist/hooks/use-tiptap-editor.js +25 -0
  278. package/dist/hooks/use-unmount.d.ts +7 -0
  279. package/dist/hooks/use-unmount.js +14 -0
  280. package/dist/hooks/use-window-size.d.ts +35 -0
  281. package/dist/hooks/use-window-size.js +33 -0
  282. package/dist/index-Bqw9S4qP.js +238 -0
  283. package/dist/lib/tiptap-utils.d.ts +160 -0
  284. package/dist/lib/tiptap-utils.js +229 -0
  285. package/dist/main.d.ts +1 -0
  286. package/dist/main.js +4 -0
  287. package/package.json +67 -0
@@ -0,0 +1 @@
1
+ export * from './dropdown-menu';
@@ -0,0 +1,13 @@
1
+ import { DropdownMenu as r, DropdownMenuContent as e, DropdownMenuGroup as u, DropdownMenuItem as p, DropdownMenuPortal as d, DropdownMenuRadioGroup as w, DropdownMenuSub as D, DropdownMenuSubContent as M, DropdownMenuSubTrigger as t, DropdownMenuTrigger as g } from "./dropdown-menu.js";
2
+ export {
3
+ r as DropdownMenu,
4
+ e as DropdownMenuContent,
5
+ u as DropdownMenuGroup,
6
+ p as DropdownMenuItem,
7
+ d as DropdownMenuPortal,
8
+ w as DropdownMenuRadioGroup,
9
+ D as DropdownMenuSub,
10
+ M as DropdownMenuSubContent,
11
+ t as DropdownMenuSubTrigger,
12
+ g as DropdownMenuTrigger
13
+ };
@@ -0,0 +1 @@
1
+ export * from './input';
@@ -0,0 +1,5 @@
1
+ import { Input as r, InputGroup as t } from "./input.js";
2
+ export {
3
+ r as Input,
4
+ t as InputGroup
5
+ };
@@ -0,0 +1,3 @@
1
+ declare function Input({ className, type, ...props }: React.ComponentProps<"input">): import("react/jsx-runtime").JSX.Element;
2
+ declare function InputGroup({ className, children, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
3
+ export { Input, InputGroup };
@@ -0,0 +1,16 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { cn as u } from "../../../lib/tiptap-utils.js";
3
+ import '../../../assets/input.css';function a({ className: t, type: p, ...n }) {
4
+ return /* @__PURE__ */ r("input", { type: p, className: u("tiptap-input", t), ...n });
5
+ }
6
+ function m({
7
+ className: t,
8
+ children: p,
9
+ ...n
10
+ }) {
11
+ return /* @__PURE__ */ r("div", { className: u("tiptap-input-group", t), ...n, children: p });
12
+ }
13
+ export {
14
+ a as Input,
15
+ m as InputGroup
16
+ };
@@ -0,0 +1 @@
1
+ export * from './popover';
@@ -0,0 +1,6 @@
1
+ import { Popover as e, PopoverContent as p, PopoverTrigger as t } from "./popover.js";
2
+ export {
3
+ e as Popover,
4
+ p as PopoverContent,
5
+ t as PopoverTrigger
6
+ };
@@ -0,0 +1,5 @@
1
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
2
+ declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
3
+ declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
4
+ declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
5
+ export { Popover, PopoverTrigger, PopoverContent };
@@ -0,0 +1,244 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import * as p from "react";
3
+ import { c as O, u as $, R as L, a as G, b as H, d as _, P as x, e as P, A as w, f as E, g as j, h as K, i as U, j as V, k as W, F as Z, D as q, C as z, l as B } from "../../../Combination-CO0ZtURs.js";
4
+ import { cn as J } from "../../../lib/tiptap-utils.js";
5
+ import '../../../assets/popover.css';var R = "Popover", [b] = G(R, [
6
+ O
7
+ ]), g = O(), [Q, u] = b(R), F = (e) => {
8
+ const {
9
+ __scopePopover: n,
10
+ children: o,
11
+ open: a,
12
+ defaultOpen: r,
13
+ onOpenChange: t,
14
+ modal: c = !1
15
+ } = e, i = g(n), f = p.useRef(null), [v, h] = p.useState(!1), [C, l] = $({
16
+ prop: a,
17
+ defaultProp: r ?? !1,
18
+ onChange: t,
19
+ caller: R
20
+ });
21
+ return /* @__PURE__ */ s(L, { ...i, children: /* @__PURE__ */ s(
22
+ Q,
23
+ {
24
+ scope: n,
25
+ contentId: H(),
26
+ triggerRef: f,
27
+ open: C,
28
+ onOpenChange: l,
29
+ onOpenToggle: p.useCallback(() => l((m) => !m), [l]),
30
+ hasCustomAnchor: v,
31
+ onCustomAnchorAdd: p.useCallback(() => h(!0), []),
32
+ onCustomAnchorRemove: p.useCallback(() => h(!1), []),
33
+ modal: c,
34
+ children: o
35
+ }
36
+ ) });
37
+ };
38
+ F.displayName = R;
39
+ var N = "PopoverAnchor", X = p.forwardRef(
40
+ (e, n) => {
41
+ const { __scopePopover: o, ...a } = e, r = u(N, o), t = g(o), { onCustomAnchorAdd: c, onCustomAnchorRemove: i } = r;
42
+ return p.useEffect(() => (c(), () => i()), [c, i]), /* @__PURE__ */ s(w, { ...t, ...a, ref: n });
43
+ }
44
+ );
45
+ X.displayName = N;
46
+ var S = "PopoverTrigger", y = p.forwardRef(
47
+ (e, n) => {
48
+ const { __scopePopover: o, ...a } = e, r = u(S, o), t = g(o), c = _(n, r.triggerRef), i = /* @__PURE__ */ s(
49
+ x.button,
50
+ {
51
+ type: "button",
52
+ "aria-haspopup": "dialog",
53
+ "aria-expanded": r.open,
54
+ "aria-controls": r.contentId,
55
+ "data-state": I(r.open),
56
+ ...a,
57
+ ref: c,
58
+ onClick: P(e.onClick, r.onOpenToggle)
59
+ }
60
+ );
61
+ return r.hasCustomAnchor ? i : /* @__PURE__ */ s(w, { asChild: !0, ...t, children: i });
62
+ }
63
+ );
64
+ y.displayName = S;
65
+ var A = "PopoverPortal", [Y, ee] = b(A, {
66
+ forceMount: void 0
67
+ }), D = (e) => {
68
+ const { __scopePopover: n, forceMount: o, children: a, container: r } = e, t = u(A, n);
69
+ return /* @__PURE__ */ s(Y, { scope: n, forceMount: o, children: /* @__PURE__ */ s(E, { present: o || t.open, children: /* @__PURE__ */ s(j, { asChild: !0, container: r, children: a }) }) });
70
+ };
71
+ D.displayName = A;
72
+ var d = "PopoverContent", M = p.forwardRef(
73
+ (e, n) => {
74
+ const o = ee(d, e.__scopePopover), { forceMount: a = o.forceMount, ...r } = e, t = u(d, e.__scopePopover);
75
+ return /* @__PURE__ */ s(E, { present: a || t.open, children: t.modal ? /* @__PURE__ */ s(re, { ...r, ref: n }) : /* @__PURE__ */ s(te, { ...r, ref: n }) });
76
+ }
77
+ );
78
+ M.displayName = d;
79
+ var oe = V("PopoverContent.RemoveScroll"), re = p.forwardRef(
80
+ (e, n) => {
81
+ const o = u(d, e.__scopePopover), a = p.useRef(null), r = _(n, a), t = p.useRef(!1);
82
+ return p.useEffect(() => {
83
+ const c = a.current;
84
+ if (c) return K(c);
85
+ }, []), /* @__PURE__ */ s(U, { as: oe, allowPinchZoom: !0, children: /* @__PURE__ */ s(
86
+ k,
87
+ {
88
+ ...e,
89
+ ref: r,
90
+ trapFocus: o.open,
91
+ disableOutsidePointerEvents: !0,
92
+ onCloseAutoFocus: P(e.onCloseAutoFocus, (c) => {
93
+ c.preventDefault(), t.current || o.triggerRef.current?.focus();
94
+ }),
95
+ onPointerDownOutside: P(
96
+ e.onPointerDownOutside,
97
+ (c) => {
98
+ const i = c.detail.originalEvent, f = i.button === 0 && i.ctrlKey === !0, v = i.button === 2 || f;
99
+ t.current = v;
100
+ },
101
+ { checkForDefaultPrevented: !1 }
102
+ ),
103
+ onFocusOutside: P(
104
+ e.onFocusOutside,
105
+ (c) => c.preventDefault(),
106
+ { checkForDefaultPrevented: !1 }
107
+ )
108
+ }
109
+ ) });
110
+ }
111
+ ), te = p.forwardRef(
112
+ (e, n) => {
113
+ const o = u(d, e.__scopePopover), a = p.useRef(!1), r = p.useRef(!1);
114
+ return /* @__PURE__ */ s(
115
+ k,
116
+ {
117
+ ...e,
118
+ ref: n,
119
+ trapFocus: !1,
120
+ disableOutsidePointerEvents: !1,
121
+ onCloseAutoFocus: (t) => {
122
+ e.onCloseAutoFocus?.(t), t.defaultPrevented || (a.current || o.triggerRef.current?.focus(), t.preventDefault()), a.current = !1, r.current = !1;
123
+ },
124
+ onInteractOutside: (t) => {
125
+ e.onInteractOutside?.(t), t.defaultPrevented || (a.current = !0, t.detail.originalEvent.type === "pointerdown" && (r.current = !0));
126
+ const c = t.target;
127
+ o.triggerRef.current?.contains(c) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && r.current && t.preventDefault();
128
+ }
129
+ }
130
+ );
131
+ }
132
+ ), k = p.forwardRef(
133
+ (e, n) => {
134
+ const {
135
+ __scopePopover: o,
136
+ trapFocus: a,
137
+ onOpenAutoFocus: r,
138
+ onCloseAutoFocus: t,
139
+ disableOutsidePointerEvents: c,
140
+ onEscapeKeyDown: i,
141
+ onPointerDownOutside: f,
142
+ onFocusOutside: v,
143
+ onInteractOutside: h,
144
+ ...C
145
+ } = e, l = u(d, o), m = g(o);
146
+ return W(), /* @__PURE__ */ s(
147
+ Z,
148
+ {
149
+ asChild: !0,
150
+ loop: !0,
151
+ trapped: a,
152
+ onMountAutoFocus: r,
153
+ onUnmountAutoFocus: t,
154
+ children: /* @__PURE__ */ s(
155
+ q,
156
+ {
157
+ asChild: !0,
158
+ disableOutsidePointerEvents: c,
159
+ onInteractOutside: h,
160
+ onEscapeKeyDown: i,
161
+ onPointerDownOutside: f,
162
+ onFocusOutside: v,
163
+ onDismiss: () => l.onOpenChange(!1),
164
+ children: /* @__PURE__ */ s(
165
+ z,
166
+ {
167
+ "data-state": I(l.open),
168
+ role: "dialog",
169
+ id: l.contentId,
170
+ ...m,
171
+ ...C,
172
+ ref: n,
173
+ style: {
174
+ ...C.style,
175
+ "--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
176
+ "--radix-popover-content-available-width": "var(--radix-popper-available-width)",
177
+ "--radix-popover-content-available-height": "var(--radix-popper-available-height)",
178
+ "--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
179
+ "--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
180
+ }
181
+ }
182
+ )
183
+ }
184
+ )
185
+ }
186
+ );
187
+ }
188
+ ), T = "PopoverClose", ne = p.forwardRef(
189
+ (e, n) => {
190
+ const { __scopePopover: o, ...a } = e, r = u(T, o);
191
+ return /* @__PURE__ */ s(
192
+ x.button,
193
+ {
194
+ type: "button",
195
+ ...a,
196
+ ref: n,
197
+ onClick: P(e.onClick, () => r.onOpenChange(!1))
198
+ }
199
+ );
200
+ }
201
+ );
202
+ ne.displayName = T;
203
+ var ae = "PopoverArrow", se = p.forwardRef(
204
+ (e, n) => {
205
+ const { __scopePopover: o, ...a } = e, r = g(o);
206
+ return /* @__PURE__ */ s(B, { ...r, ...a, ref: n });
207
+ }
208
+ );
209
+ se.displayName = ae;
210
+ function I(e) {
211
+ return e ? "open" : "closed";
212
+ }
213
+ var ce = F, pe = y, ie = D, ue = M;
214
+ function ve({
215
+ ...e
216
+ }) {
217
+ return /* @__PURE__ */ s(ce, { ...e });
218
+ }
219
+ function Pe({
220
+ ...e
221
+ }) {
222
+ return /* @__PURE__ */ s(pe, { ...e });
223
+ }
224
+ function ge({
225
+ className: e,
226
+ align: n = "center",
227
+ sideOffset: o = 4,
228
+ ...a
229
+ }) {
230
+ return /* @__PURE__ */ s(ie, { children: /* @__PURE__ */ s(
231
+ ue,
232
+ {
233
+ align: n,
234
+ sideOffset: o,
235
+ className: J("tiptap-popover", e),
236
+ ...a
237
+ }
238
+ ) });
239
+ }
240
+ export {
241
+ ve as Popover,
242
+ ge as PopoverContent,
243
+ Pe as PopoverTrigger
244
+ };
@@ -0,0 +1 @@
1
+ export * from './separator';
@@ -0,0 +1,4 @@
1
+ import { Separator as a } from "./separator.js";
2
+ export {
3
+ a as Separator
4
+ };
@@ -0,0 +1,6 @@
1
+ export type Orientation = "horizontal" | "vertical";
2
+ export interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ orientation?: Orientation;
4
+ decorative?: boolean;
5
+ }
6
+ export declare const Separator: import('react').ForwardRefExoticComponent<SeparatorProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,22 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { forwardRef as p } from "react";
3
+ import { cn as s } from "../../../lib/tiptap-utils.js";
4
+ import '../../../assets/separator.css';const m = p(
5
+ ({ decorative: a, orientation: r = "vertical", className: o, ...t }, e) => {
6
+ const i = a ? { role: "none" } : { "aria-orientation": r === "vertical" ? r : void 0, role: "separator" };
7
+ return /* @__PURE__ */ n(
8
+ "div",
9
+ {
10
+ className: s("tiptap-separator", o),
11
+ "data-orientation": r,
12
+ ...i,
13
+ ...t,
14
+ ref: e
15
+ }
16
+ );
17
+ }
18
+ );
19
+ m.displayName = "Separator";
20
+ export {
21
+ m as Separator
22
+ };
@@ -0,0 +1 @@
1
+ export * from './spacer';
@@ -0,0 +1,4 @@
1
+ import { Spacer as o } from "./spacer.js";
2
+ export {
3
+ o as Spacer
4
+ };
@@ -0,0 +1,6 @@
1
+ export type SpacerOrientation = "horizontal" | "vertical";
2
+ export interface SpacerProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ orientation?: SpacerOrientation;
4
+ size?: string | number;
5
+ }
6
+ export declare function Spacer({ orientation, size, style, ...props }: SpacerProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,20 @@
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ function x({
3
+ orientation: o = "horizontal",
4
+ size: t,
5
+ style: r = {},
6
+ ...l
7
+ }) {
8
+ const h = {
9
+ ...r,
10
+ ...o === "horizontal" && !t && { flex: 1 },
11
+ ...t && {
12
+ width: o === "vertical" ? "1px" : t,
13
+ height: o === "horizontal" ? "1px" : t
14
+ }
15
+ };
16
+ return /* @__PURE__ */ p("div", { ...l, style: h });
17
+ }
18
+ export {
19
+ x as Spacer
20
+ };
@@ -0,0 +1 @@
1
+ export * from './toolbar';
@@ -0,0 +1,6 @@
1
+ import { Toolbar as a, ToolbarGroup as b, ToolbarSeparator as l } from "./toolbar.js";
2
+ export {
3
+ a as Toolbar,
4
+ b as ToolbarGroup,
5
+ l as ToolbarSeparator
6
+ };
@@ -0,0 +1,8 @@
1
+ type BaseProps = React.HTMLAttributes<HTMLDivElement>;
2
+ interface ToolbarProps extends BaseProps {
3
+ variant?: "floating" | "fixed";
4
+ }
5
+ export declare const Toolbar: import('react').ForwardRefExoticComponent<ToolbarProps & import('react').RefAttributes<HTMLDivElement>>;
6
+ export declare const ToolbarGroup: import('react').ForwardRefExoticComponent<BaseProps & import('react').RefAttributes<HTMLDivElement>>;
7
+ export declare const ToolbarSeparator: import('react').ForwardRefExoticComponent<BaseProps & import('react').RefAttributes<HTMLDivElement>>;
8
+ export {};
@@ -0,0 +1,83 @@
1
+ import { jsx as d } from "react/jsx-runtime";
2
+ import { forwardRef as m, useRef as p, useState as f, useCallback as v, useEffect as l } from "react";
3
+ import { cn as b } from "../../../lib/tiptap-utils.js";
4
+ import { useMenuNavigation as g } from "../../../hooks/use-menu-navigation.js";
5
+ import { useComposedRef as N } from "../../../hooks/use-composed-ref.js";
6
+ import { Separator as S } from "../separator/separator.js";
7
+ import '../../../assets/toolbar.css';const T = (e) => {
8
+ const [r, s] = f([]), a = v(() => e.current ? Array.from(
9
+ e.current.querySelectorAll(
10
+ 'button:not([disabled]), [role="button"]:not([disabled]), [tabindex="0"]:not([disabled])'
11
+ )
12
+ ) : [], [e]);
13
+ l(() => {
14
+ const t = e.current;
15
+ if (!t) return;
16
+ const o = () => s(a());
17
+ o();
18
+ const i = new MutationObserver(o);
19
+ return i.observe(t, { childList: !0, subtree: !0 }), () => i.disconnect();
20
+ }, [a, e]);
21
+ const { selectedIndex: n } = g({
22
+ containerRef: e,
23
+ items: r,
24
+ orientation: "horizontal",
25
+ onSelect: (t) => t.click(),
26
+ autoSelectFirstItem: !1
27
+ });
28
+ l(() => {
29
+ const t = e.current;
30
+ if (!t) return;
31
+ const o = (c) => {
32
+ const u = c.target;
33
+ t.contains(u) && u.setAttribute("data-focus-visible", "true");
34
+ }, i = (c) => {
35
+ const u = c.target;
36
+ t.contains(u) && u.removeAttribute("data-focus-visible");
37
+ };
38
+ return t.addEventListener("focus", o, !0), t.addEventListener("blur", i, !0), () => {
39
+ t.removeEventListener("focus", o, !0), t.removeEventListener("blur", i, !0);
40
+ };
41
+ }, [e]), l(() => {
42
+ n !== void 0 && r[n] && r[n].focus();
43
+ }, [n, r]);
44
+ }, x = m(
45
+ ({ children: e, className: r, variant: s = "fixed", ...a }, n) => {
46
+ const t = p(null), o = N(t, n);
47
+ return T(t), /* @__PURE__ */ d(
48
+ "div",
49
+ {
50
+ ref: o,
51
+ role: "toolbar",
52
+ "aria-label": "toolbar",
53
+ "data-variant": s,
54
+ className: b("tiptap-toolbar", r),
55
+ ...a,
56
+ children: e
57
+ }
58
+ );
59
+ }
60
+ );
61
+ x.displayName = "Toolbar";
62
+ const y = m(
63
+ ({ children: e, className: r, ...s }, a) => /* @__PURE__ */ d(
64
+ "div",
65
+ {
66
+ ref: a,
67
+ role: "group",
68
+ className: b("tiptap-toolbar-group", r),
69
+ ...s,
70
+ children: e
71
+ }
72
+ )
73
+ );
74
+ y.displayName = "ToolbarGroup";
75
+ const E = m(
76
+ ({ ...e }, r) => /* @__PURE__ */ d(S, { ref: r, orientation: "vertical", decorative: !0, ...e })
77
+ );
78
+ E.displayName = "ToolbarSeparator";
79
+ export {
80
+ x as Toolbar,
81
+ y as ToolbarGroup,
82
+ E as ToolbarSeparator
83
+ };
@@ -0,0 +1 @@
1
+ export * from './tooltip';
@@ -0,0 +1,6 @@
1
+ import { Tooltip as i, TooltipContent as p, TooltipTrigger as r } from "./tooltip.js";
2
+ export {
3
+ i as Tooltip,
4
+ p as TooltipContent,
5
+ r as TooltipTrigger
6
+ };
@@ -0,0 +1,28 @@
1
+ import { FloatingPortal, Placement } from '@floating-ui/react';
2
+ interface TooltipProviderProps {
3
+ children: React.ReactNode;
4
+ initialOpen?: boolean;
5
+ placement?: Placement;
6
+ open?: boolean;
7
+ onOpenChange?: (open: boolean) => void;
8
+ delay?: number;
9
+ closeDelay?: number;
10
+ timeout?: number;
11
+ useDelayGroup?: boolean;
12
+ }
13
+ interface TooltipTriggerProps extends Omit<React.HTMLProps<HTMLElement>, "ref"> {
14
+ asChild?: boolean;
15
+ children: React.ReactNode;
16
+ }
17
+ interface TooltipContentProps extends Omit<React.HTMLProps<HTMLDivElement>, "ref"> {
18
+ children?: React.ReactNode;
19
+ portal?: boolean;
20
+ portalProps?: Omit<React.ComponentProps<typeof FloatingPortal>, "children">;
21
+ }
22
+ export declare function Tooltip({ children, ...props }: TooltipProviderProps): import("react/jsx-runtime").JSX.Element;
23
+ export declare namespace Tooltip {
24
+ var displayName: string;
25
+ }
26
+ export declare const TooltipTrigger: import('react').ForwardRefExoticComponent<TooltipTriggerProps & import('react').RefAttributes<HTMLElement>>;
27
+ export declare const TooltipContent: import('react').ForwardRefExoticComponent<TooltipContentProps & import('react').RefAttributes<HTMLDivElement>>;
28
+ export {};