react-tiptap-base-editor 1.0.0

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 (233) hide show
  1. package/README.md +69 -0
  2. package/dist/components/tiptap-icons/align-center-icon.d.ts +3 -0
  3. package/dist/components/tiptap-icons/align-center-icon.d.ts.map +1 -0
  4. package/dist/components/tiptap-icons/align-justify-icon.d.ts +3 -0
  5. package/dist/components/tiptap-icons/align-justify-icon.d.ts.map +1 -0
  6. package/dist/components/tiptap-icons/align-left-icon.d.ts +3 -0
  7. package/dist/components/tiptap-icons/align-left-icon.d.ts.map +1 -0
  8. package/dist/components/tiptap-icons/align-right-icon.d.ts +3 -0
  9. package/dist/components/tiptap-icons/align-right-icon.d.ts.map +1 -0
  10. package/dist/components/tiptap-icons/arrow-left-icon.d.ts +3 -0
  11. package/dist/components/tiptap-icons/arrow-left-icon.d.ts.map +1 -0
  12. package/dist/components/tiptap-icons/ban-icon.d.ts +3 -0
  13. package/dist/components/tiptap-icons/ban-icon.d.ts.map +1 -0
  14. package/dist/components/tiptap-icons/blockquote-icon.d.ts +3 -0
  15. package/dist/components/tiptap-icons/blockquote-icon.d.ts.map +1 -0
  16. package/dist/components/tiptap-icons/bold-icon.d.ts +3 -0
  17. package/dist/components/tiptap-icons/bold-icon.d.ts.map +1 -0
  18. package/dist/components/tiptap-icons/chevron-down-icon.d.ts +3 -0
  19. package/dist/components/tiptap-icons/chevron-down-icon.d.ts.map +1 -0
  20. package/dist/components/tiptap-icons/close-icon.d.ts +3 -0
  21. package/dist/components/tiptap-icons/close-icon.d.ts.map +1 -0
  22. package/dist/components/tiptap-icons/code-block-icon.d.ts +3 -0
  23. package/dist/components/tiptap-icons/code-block-icon.d.ts.map +1 -0
  24. package/dist/components/tiptap-icons/code2-icon.d.ts +3 -0
  25. package/dist/components/tiptap-icons/code2-icon.d.ts.map +1 -0
  26. package/dist/components/tiptap-icons/corner-down-left-icon.d.ts +3 -0
  27. package/dist/components/tiptap-icons/corner-down-left-icon.d.ts.map +1 -0
  28. package/dist/components/tiptap-icons/external-link-icon.d.ts +3 -0
  29. package/dist/components/tiptap-icons/external-link-icon.d.ts.map +1 -0
  30. package/dist/components/tiptap-icons/heading-five-icon.d.ts +3 -0
  31. package/dist/components/tiptap-icons/heading-five-icon.d.ts.map +1 -0
  32. package/dist/components/tiptap-icons/heading-four-icon.d.ts +3 -0
  33. package/dist/components/tiptap-icons/heading-four-icon.d.ts.map +1 -0
  34. package/dist/components/tiptap-icons/heading-icon.d.ts +3 -0
  35. package/dist/components/tiptap-icons/heading-icon.d.ts.map +1 -0
  36. package/dist/components/tiptap-icons/heading-one-icon.d.ts +3 -0
  37. package/dist/components/tiptap-icons/heading-one-icon.d.ts.map +1 -0
  38. package/dist/components/tiptap-icons/heading-six-icon.d.ts +3 -0
  39. package/dist/components/tiptap-icons/heading-six-icon.d.ts.map +1 -0
  40. package/dist/components/tiptap-icons/heading-three-icon.d.ts +3 -0
  41. package/dist/components/tiptap-icons/heading-three-icon.d.ts.map +1 -0
  42. package/dist/components/tiptap-icons/heading-two-icon.d.ts +3 -0
  43. package/dist/components/tiptap-icons/heading-two-icon.d.ts.map +1 -0
  44. package/dist/components/tiptap-icons/highlighter-icon.d.ts +3 -0
  45. package/dist/components/tiptap-icons/highlighter-icon.d.ts.map +1 -0
  46. package/dist/components/tiptap-icons/image-plus-icon.d.ts +3 -0
  47. package/dist/components/tiptap-icons/image-plus-icon.d.ts.map +1 -0
  48. package/dist/components/tiptap-icons/italic-icon.d.ts +3 -0
  49. package/dist/components/tiptap-icons/italic-icon.d.ts.map +1 -0
  50. package/dist/components/tiptap-icons/link-icon.d.ts +3 -0
  51. package/dist/components/tiptap-icons/link-icon.d.ts.map +1 -0
  52. package/dist/components/tiptap-icons/list-icon.d.ts +3 -0
  53. package/dist/components/tiptap-icons/list-icon.d.ts.map +1 -0
  54. package/dist/components/tiptap-icons/list-ordered-icon.d.ts +3 -0
  55. package/dist/components/tiptap-icons/list-ordered-icon.d.ts.map +1 -0
  56. package/dist/components/tiptap-icons/list-todo-icon.d.ts +3 -0
  57. package/dist/components/tiptap-icons/list-todo-icon.d.ts.map +1 -0
  58. package/dist/components/tiptap-icons/moon-star-icon.d.ts +3 -0
  59. package/dist/components/tiptap-icons/moon-star-icon.d.ts.map +1 -0
  60. package/dist/components/tiptap-icons/redo2-icon.d.ts +3 -0
  61. package/dist/components/tiptap-icons/redo2-icon.d.ts.map +1 -0
  62. package/dist/components/tiptap-icons/strike-icon.d.ts +3 -0
  63. package/dist/components/tiptap-icons/strike-icon.d.ts.map +1 -0
  64. package/dist/components/tiptap-icons/subscript-icon.d.ts +3 -0
  65. package/dist/components/tiptap-icons/subscript-icon.d.ts.map +1 -0
  66. package/dist/components/tiptap-icons/sun-icon.d.ts +3 -0
  67. package/dist/components/tiptap-icons/sun-icon.d.ts.map +1 -0
  68. package/dist/components/tiptap-icons/superscript-icon.d.ts +3 -0
  69. package/dist/components/tiptap-icons/superscript-icon.d.ts.map +1 -0
  70. package/dist/components/tiptap-icons/trash-icon.d.ts +3 -0
  71. package/dist/components/tiptap-icons/trash-icon.d.ts.map +1 -0
  72. package/dist/components/tiptap-icons/underline-icon.d.ts +3 -0
  73. package/dist/components/tiptap-icons/underline-icon.d.ts.map +1 -0
  74. package/dist/components/tiptap-icons/undo2-icon.d.ts +3 -0
  75. package/dist/components/tiptap-icons/undo2-icon.d.ts.map +1 -0
  76. package/dist/components/tiptap-node/horizontal-rule-node/horizontal-rule-node-extension.d.ts +3 -0
  77. package/dist/components/tiptap-node/horizontal-rule-node/horizontal-rule-node-extension.d.ts.map +1 -0
  78. package/dist/components/tiptap-node/image-upload-node/image-upload-node-extension.d.ts +59 -0
  79. package/dist/components/tiptap-node/image-upload-node/image-upload-node-extension.d.ts.map +1 -0
  80. package/dist/components/tiptap-node/image-upload-node/image-upload-node.d.ts +71 -0
  81. package/dist/components/tiptap-node/image-upload-node/image-upload-node.d.ts.map +1 -0
  82. package/dist/components/tiptap-node/image-upload-node/index.d.ts +2 -0
  83. package/dist/components/tiptap-node/image-upload-node/index.d.ts.map +1 -0
  84. package/dist/components/tiptap-templates/simple/simple-editor.d.ts +10 -0
  85. package/dist/components/tiptap-templates/simple/simple-editor.d.ts.map +1 -0
  86. package/dist/components/tiptap-templates/simple/theme-toggle.d.ts +2 -0
  87. package/dist/components/tiptap-templates/simple/theme-toggle.d.ts.map +1 -0
  88. package/dist/components/tiptap-ui/blockquote-button/blockquote-button.d.ts +24 -0
  89. package/dist/components/tiptap-ui/blockquote-button/blockquote-button.d.ts.map +1 -0
  90. package/dist/components/tiptap-ui/blockquote-button/index.d.ts +3 -0
  91. package/dist/components/tiptap-ui/blockquote-button/index.d.ts.map +1 -0
  92. package/dist/components/tiptap-ui/blockquote-button/use-blockquote.d.ts +82 -0
  93. package/dist/components/tiptap-ui/blockquote-button/use-blockquote.d.ts.map +1 -0
  94. package/dist/components/tiptap-ui/code-block-button/code-block-button.d.ts +24 -0
  95. package/dist/components/tiptap-ui/code-block-button/code-block-button.d.ts.map +1 -0
  96. package/dist/components/tiptap-ui/code-block-button/index.d.ts +3 -0
  97. package/dist/components/tiptap-ui/code-block-button/index.d.ts.map +1 -0
  98. package/dist/components/tiptap-ui/code-block-button/use-code-block.d.ts +89 -0
  99. package/dist/components/tiptap-ui/code-block-button/use-code-block.d.ts.map +1 -0
  100. package/dist/components/tiptap-ui/color-highlight-button/color-highlight-button.d.ts +25 -0
  101. package/dist/components/tiptap-ui/color-highlight-button/color-highlight-button.d.ts.map +1 -0
  102. package/dist/components/tiptap-ui/color-highlight-button/index.d.ts +3 -0
  103. package/dist/components/tiptap-ui/color-highlight-button/index.d.ts.map +1 -0
  104. package/dist/components/tiptap-ui/color-highlight-button/use-color-highlight.d.ts +61 -0
  105. package/dist/components/tiptap-ui/color-highlight-button/use-color-highlight.d.ts.map +1 -0
  106. package/dist/components/tiptap-ui/color-highlight-popover/color-highlight-popover.d.ts +27 -0
  107. package/dist/components/tiptap-ui/color-highlight-popover/color-highlight-popover.d.ts.map +1 -0
  108. package/dist/components/tiptap-ui/color-highlight-popover/index.d.ts +2 -0
  109. package/dist/components/tiptap-ui/color-highlight-popover/index.d.ts.map +1 -0
  110. package/dist/components/tiptap-ui/heading-button/heading-button.d.ts +25 -0
  111. package/dist/components/tiptap-ui/heading-button/heading-button.d.ts.map +1 -0
  112. package/dist/components/tiptap-ui/heading-button/index.d.ts +3 -0
  113. package/dist/components/tiptap-ui/heading-button/index.d.ts.map +1 -0
  114. package/dist/components/tiptap-ui/heading-button/use-heading.d.ts +110 -0
  115. package/dist/components/tiptap-ui/heading-button/use-heading.d.ts.map +1 -0
  116. package/dist/components/tiptap-ui/heading-dropdown-menu/heading-dropdown-menu.d.ts +22 -0
  117. package/dist/components/tiptap-ui/heading-dropdown-menu/heading-dropdown-menu.d.ts.map +1 -0
  118. package/dist/components/tiptap-ui/heading-dropdown-menu/index.d.ts +3 -0
  119. package/dist/components/tiptap-ui/heading-dropdown-menu/index.d.ts.map +1 -0
  120. package/dist/components/tiptap-ui/heading-dropdown-menu/use-heading-dropdown-menu.d.ts +75 -0
  121. package/dist/components/tiptap-ui/heading-dropdown-menu/use-heading-dropdown-menu.d.ts.map +1 -0
  122. package/dist/components/tiptap-ui/image-upload-button/image-upload-button.d.ts +24 -0
  123. package/dist/components/tiptap-ui/image-upload-button/image-upload-button.d.ts.map +1 -0
  124. package/dist/components/tiptap-ui/image-upload-button/index.d.ts +3 -0
  125. package/dist/components/tiptap-ui/image-upload-button/index.d.ts.map +1 -0
  126. package/dist/components/tiptap-ui/image-upload-button/use-image-upload.d.ts +86 -0
  127. package/dist/components/tiptap-ui/image-upload-button/use-image-upload.d.ts.map +1 -0
  128. package/dist/components/tiptap-ui/link-popover/index.d.ts +3 -0
  129. package/dist/components/tiptap-ui/link-popover/index.d.ts.map +1 -0
  130. package/dist/components/tiptap-ui/link-popover/link-popover.d.ts +59 -0
  131. package/dist/components/tiptap-ui/link-popover/link-popover.d.ts.map +1 -0
  132. package/dist/components/tiptap-ui/link-popover/use-link-popover.d.ts +119 -0
  133. package/dist/components/tiptap-ui/link-popover/use-link-popover.d.ts.map +1 -0
  134. package/dist/components/tiptap-ui/list-button/index.d.ts +3 -0
  135. package/dist/components/tiptap-ui/list-button/index.d.ts.map +1 -0
  136. package/dist/components/tiptap-ui/list-button/list-button.d.ts +25 -0
  137. package/dist/components/tiptap-ui/list-button/list-button.d.ts.map +1 -0
  138. package/dist/components/tiptap-ui/list-button/use-list.d.ts +99 -0
  139. package/dist/components/tiptap-ui/list-button/use-list.d.ts.map +1 -0
  140. package/dist/components/tiptap-ui/list-dropdown-menu/index.d.ts +2 -0
  141. package/dist/components/tiptap-ui/list-dropdown-menu/index.d.ts.map +1 -0
  142. package/dist/components/tiptap-ui/list-dropdown-menu/list-dropdown-menu.d.ts +30 -0
  143. package/dist/components/tiptap-ui/list-dropdown-menu/list-dropdown-menu.d.ts.map +1 -0
  144. package/dist/components/tiptap-ui/list-dropdown-menu/use-list-dropdown-menu.d.ts +92 -0
  145. package/dist/components/tiptap-ui/list-dropdown-menu/use-list-dropdown-menu.d.ts.map +1 -0
  146. package/dist/components/tiptap-ui/mark-button/index.d.ts +3 -0
  147. package/dist/components/tiptap-ui/mark-button/index.d.ts.map +1 -0
  148. package/dist/components/tiptap-ui/mark-button/mark-button.d.ts +25 -0
  149. package/dist/components/tiptap-ui/mark-button/mark-button.d.ts.map +1 -0
  150. package/dist/components/tiptap-ui/mark-button/use-mark.d.ts +106 -0
  151. package/dist/components/tiptap-ui/mark-button/use-mark.d.ts.map +1 -0
  152. package/dist/components/tiptap-ui/text-align-button/index.d.ts +3 -0
  153. package/dist/components/tiptap-ui/text-align-button/index.d.ts.map +1 -0
  154. package/dist/components/tiptap-ui/text-align-button/text-align-button.d.ts +32 -0
  155. package/dist/components/tiptap-ui/text-align-button/text-align-button.d.ts.map +1 -0
  156. package/dist/components/tiptap-ui/text-align-button/use-text-align.d.ts +104 -0
  157. package/dist/components/tiptap-ui/text-align-button/use-text-align.d.ts.map +1 -0
  158. package/dist/components/tiptap-ui/undo-redo-button/index.d.ts +3 -0
  159. package/dist/components/tiptap-ui/undo-redo-button/index.d.ts.map +1 -0
  160. package/dist/components/tiptap-ui/undo-redo-button/undo-redo-button.d.ts +25 -0
  161. package/dist/components/tiptap-ui/undo-redo-button/undo-redo-button.d.ts.map +1 -0
  162. package/dist/components/tiptap-ui/undo-redo-button/use-undo-redo.d.ts +92 -0
  163. package/dist/components/tiptap-ui/undo-redo-button/use-undo-redo.d.ts.map +1 -0
  164. package/dist/components/tiptap-ui-primitive/badge/badge.d.ts +13 -0
  165. package/dist/components/tiptap-ui-primitive/badge/badge.d.ts.map +1 -0
  166. package/dist/components/tiptap-ui-primitive/badge/index.d.ts +2 -0
  167. package/dist/components/tiptap-ui-primitive/badge/index.d.ts.map +1 -0
  168. package/dist/components/tiptap-ui-primitive/button/button.d.ts +19 -0
  169. package/dist/components/tiptap-ui-primitive/button/button.d.ts.map +1 -0
  170. package/dist/components/tiptap-ui-primitive/button/index.d.ts +2 -0
  171. package/dist/components/tiptap-ui-primitive/button/index.d.ts.map +1 -0
  172. package/dist/components/tiptap-ui-primitive/card/card.d.ts +12 -0
  173. package/dist/components/tiptap-ui-primitive/card/card.d.ts.map +1 -0
  174. package/dist/components/tiptap-ui-primitive/card/index.d.ts +2 -0
  175. package/dist/components/tiptap-ui-primitive/card/index.d.ts.map +1 -0
  176. package/dist/components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.d.ts +19 -0
  177. package/dist/components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.d.ts.map +1 -0
  178. package/dist/components/tiptap-ui-primitive/dropdown-menu/index.d.ts +2 -0
  179. package/dist/components/tiptap-ui-primitive/dropdown-menu/index.d.ts.map +1 -0
  180. package/dist/components/tiptap-ui-primitive/input/index.d.ts +2 -0
  181. package/dist/components/tiptap-ui-primitive/input/index.d.ts.map +1 -0
  182. package/dist/components/tiptap-ui-primitive/input/input.d.ts +6 -0
  183. package/dist/components/tiptap-ui-primitive/input/input.d.ts.map +1 -0
  184. package/dist/components/tiptap-ui-primitive/popover/index.d.ts +2 -0
  185. package/dist/components/tiptap-ui-primitive/popover/index.d.ts.map +1 -0
  186. package/dist/components/tiptap-ui-primitive/popover/popover.d.ts +8 -0
  187. package/dist/components/tiptap-ui-primitive/popover/popover.d.ts.map +1 -0
  188. package/dist/components/tiptap-ui-primitive/separator/index.d.ts +2 -0
  189. package/dist/components/tiptap-ui-primitive/separator/index.d.ts.map +1 -0
  190. package/dist/components/tiptap-ui-primitive/separator/separator.d.ts +9 -0
  191. package/dist/components/tiptap-ui-primitive/separator/separator.d.ts.map +1 -0
  192. package/dist/components/tiptap-ui-primitive/spacer/index.d.ts +2 -0
  193. package/dist/components/tiptap-ui-primitive/spacer/index.d.ts.map +1 -0
  194. package/dist/components/tiptap-ui-primitive/spacer/spacer.d.ts +8 -0
  195. package/dist/components/tiptap-ui-primitive/spacer/spacer.d.ts.map +1 -0
  196. package/dist/components/tiptap-ui-primitive/toolbar/index.d.ts +2 -0
  197. package/dist/components/tiptap-ui-primitive/toolbar/index.d.ts.map +1 -0
  198. package/dist/components/tiptap-ui-primitive/toolbar/toolbar.d.ts +11 -0
  199. package/dist/components/tiptap-ui-primitive/toolbar/toolbar.d.ts.map +1 -0
  200. package/dist/components/tiptap-ui-primitive/tooltip/index.d.ts +2 -0
  201. package/dist/components/tiptap-ui-primitive/tooltip/index.d.ts.map +1 -0
  202. package/dist/components/tiptap-ui-primitive/tooltip/tooltip.d.ts +31 -0
  203. package/dist/components/tiptap-ui-primitive/tooltip/tooltip.d.ts.map +1 -0
  204. package/dist/hooks/use-composed-ref.d.ts +5 -0
  205. package/dist/hooks/use-composed-ref.d.ts.map +1 -0
  206. package/dist/hooks/use-cursor-visibility.d.ts +21 -0
  207. package/dist/hooks/use-cursor-visibility.d.ts.map +1 -0
  208. package/dist/hooks/use-element-rect.d.ts +37 -0
  209. package/dist/hooks/use-element-rect.d.ts.map +1 -0
  210. package/dist/hooks/use-menu-navigation.d.ts +54 -0
  211. package/dist/hooks/use-menu-navigation.d.ts.map +1 -0
  212. package/dist/hooks/use-mobile.d.ts +2 -0
  213. package/dist/hooks/use-mobile.d.ts.map +1 -0
  214. package/dist/hooks/use-scrolling.d.ts +9 -0
  215. package/dist/hooks/use-scrolling.d.ts.map +1 -0
  216. package/dist/hooks/use-throttled-callback.d.ts +20 -0
  217. package/dist/hooks/use-throttled-callback.d.ts.map +1 -0
  218. package/dist/hooks/use-tiptap-editor.d.ts +18 -0
  219. package/dist/hooks/use-tiptap-editor.d.ts.map +1 -0
  220. package/dist/hooks/use-unmount.d.ts +8 -0
  221. package/dist/hooks/use-unmount.d.ts.map +1 -0
  222. package/dist/hooks/use-window-size.d.ts +36 -0
  223. package/dist/hooks/use-window-size.d.ts.map +1 -0
  224. package/dist/index.cjs +2 -0
  225. package/dist/index.cjs.map +1 -0
  226. package/dist/index.d.ts +18 -0
  227. package/dist/index.d.ts.map +1 -0
  228. package/dist/index.js +5929 -0
  229. package/dist/index.js.map +1 -0
  230. package/dist/lib/tiptap-utils.d.ts +123 -0
  231. package/dist/lib/tiptap-utils.d.ts.map +1 -0
  232. package/dist/styles/index.css +1 -0
  233. package/package.json +62 -0
@@ -0,0 +1,19 @@
1
+ import * as React from "react";
2
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
3
+ import "@/components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.scss";
4
+ declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
5
+ declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
6
+ declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
8
+ declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
9
+ declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
10
+ declare const DropdownMenuItem: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
11
+ declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
12
+ declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
13
+ portal?: boolean | React.ComponentProps<typeof DropdownMenuPortal>;
14
+ } & React.RefAttributes<HTMLDivElement>>;
15
+ declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
16
+ portal?: boolean;
17
+ } & React.RefAttributes<HTMLDivElement>>;
18
+ export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuGroup, DropdownMenuSub, DropdownMenuPortal, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
19
+ //# sourceMappingURL=dropdown-menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../../../src/components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAA;AAEtE,OAAO,mEAAmE,CAAA;AAE1E,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,IAAI,CAAC,2CAEzD;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,MAAM,CAAC,2CAE3D;AAED,QAAA,MAAM,mBAAmB,gLAGuD,CAAA;AAGhF,QAAA,MAAM,iBAAiB,qHAA8B,CAAA;AAErD,QAAA,MAAM,eAAe,sDAA4B,CAAA;AAEjD,QAAA,MAAM,sBAAsB,0HAAmC,CAAA;AAE/D,QAAA,MAAM,gBAAgB,oHAA6B,CAAA;AAEnD,QAAA,MAAM,sBAAsB,0HAAmC,CAAA;AAE/D,QAAA,MAAM,sBAAsB;aAGf,OAAO,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC;wCAkBpE,CAAA;AAIF,QAAA,MAAM,mBAAmB;aAGZ,OAAO;wCAoBlB,CAAA;AAGF,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,GACvB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from "./dropdown-menu";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tiptap-ui-primitive/dropdown-menu/index.tsx"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from "./input";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tiptap-ui-primitive/input/index.tsx"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ import "@/components/tiptap-ui-primitive/input/input.scss";
3
+ declare function Input({ className, type, ...props }: React.ComponentProps<"input">): import("react/jsx-runtime").JSX.Element;
4
+ declare function InputGroup({ className, children, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
5
+ export { Input, InputGroup };
6
+ //# sourceMappingURL=input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../src/components/tiptap-ui-primitive/input/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,mDAAmD,CAAA;AAE1D,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAI1E;AAED,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAM7B;AAED,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from "./popover";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tiptap-ui-primitive/popover/index.tsx"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
3
+ import "@/components/tiptap-ui-primitive/popover/popover.scss";
4
+ declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
5
+ declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
+ declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
+ export { Popover, PopoverTrigger, PopoverContent };
8
+ //# sourceMappingURL=popover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../../src/components/tiptap-ui-primitive/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAA;AAE3D,OAAO,uDAAuD,CAAA;AAE9D,iBAAS,OAAO,CAAC,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAEpD;AAED,iBAAS,cAAc,CAAC,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAEvD;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,KAAgB,EAChB,UAAc,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAWvD;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from "./separator";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tiptap-ui-primitive/separator/index.tsx"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ import "@/components/tiptap-ui-primitive/separator/separator.scss";
3
+ export type Orientation = "horizontal" | "vertical";
4
+ export interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
5
+ orientation?: Orientation;
6
+ decorative?: boolean;
7
+ }
8
+ export declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
9
+ //# sourceMappingURL=separator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../../src/components/tiptap-ui-primitive/separator/separator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,2DAA2D,CAAA;AAGlE,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,UAAU,CAAA;AAEnD,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC1E,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,eAAO,MAAM,SAAS,uFAiBrB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from "./spacer";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tiptap-ui-primitive/spacer/index.tsx"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ export type SpacerOrientation = "horizontal" | "vertical";
3
+ export interface SpacerProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ orientation?: SpacerOrientation;
5
+ size?: string | number;
6
+ }
7
+ export declare function Spacer({ orientation, size, style, ...props }: SpacerProps): import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=spacer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spacer.d.ts","sourceRoot":"","sources":["../../../../src/components/tiptap-ui-primitive/spacer/spacer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG,UAAU,CAAA;AAEzD,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACvE,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACvB;AAED,wBAAgB,MAAM,CAAC,EACrB,WAA0B,EAC1B,IAAI,EACJ,KAAU,EACV,GAAG,KAAK,EACT,EAAE,WAAW,2CAWb"}
@@ -0,0 +1,2 @@
1
+ export * from "./toolbar";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tiptap-ui-primitive/toolbar/index.tsx"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ import "@/components/tiptap-ui-primitive/toolbar/toolbar.scss";
3
+ type BaseProps = React.HTMLAttributes<HTMLDivElement>;
4
+ interface ToolbarProps extends BaseProps {
5
+ variant?: "floating" | "fixed";
6
+ }
7
+ export declare const Toolbar: React.ForwardRefExoticComponent<ToolbarProps & React.RefAttributes<HTMLDivElement>>;
8
+ export declare const ToolbarGroup: React.ForwardRefExoticComponent<BaseProps & React.RefAttributes<HTMLDivElement>>;
9
+ export declare const ToolbarSeparator: React.ForwardRefExoticComponent<BaseProps & React.RefAttributes<HTMLDivElement>>;
10
+ export {};
11
+ //# sourceMappingURL=toolbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolbar.d.ts","sourceRoot":"","sources":["../../../../src/components/tiptap-ui-primitive/toolbar/toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,uDAAuD,CAAA;AAK9D,KAAK,SAAS,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAA;AAErD,UAAU,YAAa,SAAQ,SAAS;IACtC,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,CAAA;CAC/B;AAoED,eAAO,MAAM,OAAO,qFAmBnB,CAAA;AAGD,eAAO,MAAM,YAAY,kFAWxB,CAAA;AAGD,eAAO,MAAM,gBAAgB,kFAI5B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from "./tooltip";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tiptap-ui-primitive/tooltip/index.tsx"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
@@ -0,0 +1,31 @@
1
+ import * as React from "react";
2
+ import { FloatingPortal, type Placement } from "@floating-ui/react";
3
+ import "@/components/tiptap-ui-primitive/tooltip/tooltip.scss";
4
+ interface TooltipProviderProps {
5
+ children: React.ReactNode;
6
+ initialOpen?: boolean;
7
+ placement?: Placement;
8
+ open?: boolean;
9
+ onOpenChange?: (open: boolean) => void;
10
+ delay?: number;
11
+ closeDelay?: number;
12
+ timeout?: number;
13
+ useDelayGroup?: boolean;
14
+ }
15
+ interface TooltipTriggerProps extends Omit<React.HTMLProps<HTMLElement>, "ref"> {
16
+ asChild?: boolean;
17
+ children: React.ReactNode;
18
+ }
19
+ interface TooltipContentProps extends Omit<React.HTMLProps<HTMLDivElement>, "ref"> {
20
+ children?: React.ReactNode;
21
+ portal?: boolean;
22
+ portalProps?: Omit<React.ComponentProps<typeof FloatingPortal>, "children">;
23
+ }
24
+ export declare function Tooltip({ children, ...props }: TooltipProviderProps): import("react/jsx-runtime").JSX.Element;
25
+ export declare namespace Tooltip {
26
+ var displayName: string;
27
+ }
28
+ export declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipTriggerProps & React.RefAttributes<HTMLElement>>;
29
+ export declare const TooltipContent: React.ForwardRefExoticComponent<TooltipContentProps & React.RefAttributes<HTMLDivElement>>;
30
+ export {};
31
+ //# sourceMappingURL=tooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/tiptap-ui-primitive/tooltip/tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAYL,cAAc,EACd,KAAK,SAAS,EAIf,MAAM,oBAAoB,CAAA;AAC3B,OAAO,uDAAuD,CAAA;AAE9D,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,UAAU,mBACR,SAAQ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC;IACjD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAED,UAAU,mBACR,SAAQ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,KAAK,CAAC;IACpD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,WAAW,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,EAAE,UAAU,CAAC,CAAA;CAC5E;AAqFD,wBAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,2CAqBnE;yBArBe,OAAO;;;AAuBvB,eAAO,MAAM,cAAc,yFAuCzB,CAAA;AAEF,eAAO,MAAM,cAAc,4FA+BzB,CAAA"}
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ type UserRef<T> = ((instance: T | null) => void) | React.RefObject<T | null> | null | undefined;
3
+ export declare const useComposedRef: <T extends HTMLElement>(libRef: React.RefObject<T | null>, userRef: UserRef<T>) => (instance: T | null) => void;
4
+ export default useComposedRef;
5
+ //# sourceMappingURL=use-composed-ref.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-composed-ref.d.ts","sourceRoot":"","sources":["../../src/hooks/use-composed-ref.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,KAAK,OAAO,CAAC,CAAC,IACV,CAAC,CAAC,QAAQ,EAAE,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC,GAC9B,KAAK,CAAC,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,GACzB,IAAI,GACJ,SAAS,CAAA;AAWb,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,WAAW,EAClD,QAAQ,KAAK,CAAC,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,EACjC,SAAS,OAAO,CAAC,CAAC,CAAC,gBAKN,CAAC,GAAG,IAAI,SAiBtB,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -0,0 +1,21 @@
1
+ import type { Editor } from "@tiptap/react";
2
+ export interface CursorVisibilityOptions {
3
+ /**
4
+ * The Tiptap editor instance
5
+ */
6
+ editor?: Editor | null;
7
+ /**
8
+ * Reference to the toolbar element that may obscure the cursor
9
+ */
10
+ overlayHeight?: number;
11
+ }
12
+ /**
13
+ * Custom hook that ensures the cursor remains visible when typing in a Tiptap editor.
14
+ * Automatically scrolls the window when the cursor would be hidden by the toolbar.
15
+ *
16
+ * @param options.editor The Tiptap editor instance
17
+ * @param options.overlayHeight Toolbar height to account for
18
+ * @returns The bounding rect of the body
19
+ */
20
+ export declare function useCursorVisibility({ editor, overlayHeight, }: CursorVisibilityOptions): import("./use-element-rect").RectState;
21
+ //# sourceMappingURL=use-cursor-visibility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-cursor-visibility.d.ts","sourceRoot":"","sources":["../../src/hooks/use-cursor-visibility.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAI3C,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,aAAiB,GAClB,EAAE,uBAAuB,0CAyCzB"}
@@ -0,0 +1,37 @@
1
+ import * as React from "react";
2
+ export type RectState = Omit<DOMRect, "toJSON">;
3
+ export interface ElementRectOptions {
4
+ /**
5
+ * The element to track. Can be an Element, ref, or selector string.
6
+ * Defaults to document.body if not provided.
7
+ */
8
+ element?: Element | React.RefObject<Element> | string | null;
9
+ /**
10
+ * Whether to enable rect tracking
11
+ */
12
+ enabled?: boolean;
13
+ /**
14
+ * Throttle delay in milliseconds for rect updates
15
+ */
16
+ throttleMs?: number;
17
+ /**
18
+ * Whether to use ResizeObserver for more accurate tracking
19
+ */
20
+ useResizeObserver?: boolean;
21
+ }
22
+ /**
23
+ * Custom hook that tracks an element's bounding rectangle and updates on resize, scroll, etc.
24
+ *
25
+ * @param options Configuration options for element rect tracking
26
+ * @returns The current bounding rectangle of the element
27
+ */
28
+ export declare function useElementRect({ element, enabled, throttleMs, useResizeObserver, }?: ElementRectOptions): RectState;
29
+ /**
30
+ * Convenience hook for tracking document.body rect
31
+ */
32
+ export declare function useBodyRect(options?: Omit<ElementRectOptions, "element">): RectState;
33
+ /**
34
+ * Convenience hook for tracking a ref element's rect
35
+ */
36
+ export declare function useRefRect<T extends Element>(ref: React.RefObject<T>, options?: Omit<ElementRectOptions, "element">): RectState;
37
+ //# sourceMappingURL=use-element-rect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-element-rect.d.ts","sourceRoot":"","sources":["../../src/hooks/use-element-rect.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;AAE/C,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,MAAM,GAAG,IAAI,CAAA;IAC5D;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B;AAqBD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,OAAc,EACd,UAAgB,EAChB,iBAAwB,GACzB,GAAE,kBAAuB,GAAG,SAAS,CAsFrC;AAED;;GAEG;AACH,wBAAgB,WAAW,CACzB,OAAO,GAAE,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAM,GAChD,SAAS,CAKX;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,OAAO,EAC1C,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,EACvB,OAAO,GAAE,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAM,GAChD,SAAS,CAEX"}
@@ -0,0 +1,54 @@
1
+ import * as React from "react";
2
+ import type { Editor } from "@tiptap/react";
3
+ type Orientation = "horizontal" | "vertical" | "both";
4
+ interface MenuNavigationOptions<T> {
5
+ /**
6
+ * The Tiptap editor instance, if using with a Tiptap editor.
7
+ */
8
+ editor?: Editor | null;
9
+ /**
10
+ * Reference to the container element for handling keyboard events.
11
+ */
12
+ containerRef?: React.RefObject<HTMLElement | null>;
13
+ /**
14
+ * Search query that affects the selected item.
15
+ */
16
+ query?: string;
17
+ /**
18
+ * Array of items to navigate through.
19
+ */
20
+ items: T[];
21
+ /**
22
+ * Callback fired when an item is selected.
23
+ */
24
+ onSelect?: (item: T) => void;
25
+ /**
26
+ * Callback fired when the menu should close.
27
+ */
28
+ onClose?: () => void;
29
+ /**
30
+ * The navigation orientation of the menu.
31
+ * @default "vertical"
32
+ */
33
+ orientation?: Orientation;
34
+ /**
35
+ * Whether to automatically select the first item when the menu opens.
36
+ * @default true
37
+ */
38
+ autoSelectFirstItem?: boolean;
39
+ }
40
+ /**
41
+ * Hook that implements keyboard navigation for dropdown menus and command palettes.
42
+ *
43
+ * Handles arrow keys, tab, home/end, enter for selection, and escape to close.
44
+ * Works with both Tiptap editors and regular DOM elements.
45
+ *
46
+ * @param options - Configuration options for the menu navigation
47
+ * @returns Object containing the selected index and a setter function
48
+ */
49
+ export declare function useMenuNavigation<T>({ editor, containerRef, query, items, onSelect, onClose, orientation, autoSelectFirstItem, }: MenuNavigationOptions<T>): {
50
+ selectedIndex: number | undefined;
51
+ setSelectedIndex: React.Dispatch<React.SetStateAction<number>>;
52
+ };
53
+ export {};
54
+ //# sourceMappingURL=use-menu-navigation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-menu-navigation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-menu-navigation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,KAAK,WAAW,GAAG,YAAY,GAAG,UAAU,GAAG,MAAM,CAAA;AAErD,UAAU,qBAAqB,CAAC,CAAC;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IAClD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,KAAK,EAAE,CAAC,EAAE,CAAA;IACV;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAA;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,EACnC,MAAM,EACN,YAAY,EACZ,KAAK,EACL,KAAK,EACL,QAAQ,EACR,OAAO,EACP,WAAwB,EACxB,mBAA0B,GAC3B,EAAE,qBAAqB,CAAC,CAAC,CAAC;;;EAqI1B"}
@@ -0,0 +1,2 @@
1
+ export declare function useIsMobile(breakpoint?: number): boolean;
2
+ //# sourceMappingURL=use-mobile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-mobile.d.ts","sourceRoot":"","sources":["../../src/hooks/use-mobile.ts"],"names":[],"mappings":"AAEA,wBAAgB,WAAW,CAAC,UAAU,SAAM,WAc3C"}
@@ -0,0 +1,9 @@
1
+ import type { RefObject } from "react";
2
+ type ScrollTarget = RefObject<HTMLElement> | Window | null | undefined;
3
+ interface UseScrollingOptions {
4
+ debounce?: number;
5
+ fallbackToDocument?: boolean;
6
+ }
7
+ export declare function useScrolling(target?: ScrollTarget, options?: UseScrollingOptions): boolean;
8
+ export {};
9
+ //# sourceMappingURL=use-scrolling.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-scrolling.d.ts","sourceRoot":"","sources":["../../src/hooks/use-scrolling.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,KAAK,YAAY,GAAG,SAAS,CAAC,WAAW,CAAC,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;AAGtE,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC7B;AAED,wBAAgB,YAAY,CAC1B,MAAM,CAAC,EAAE,YAAY,EACrB,OAAO,GAAE,mBAAwB,GAChC,OAAO,CA4DT"}
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ interface ThrottleSettings {
3
+ leading?: boolean | undefined;
4
+ trailing?: boolean | undefined;
5
+ }
6
+ /**
7
+ * A hook that returns a throttled callback function.
8
+ *
9
+ * @param fn The function to throttle
10
+ * @param wait The time in ms to wait before calling the function
11
+ * @param dependencies The dependencies to watch for changes
12
+ * @param options The throttle options
13
+ */
14
+ export declare function useThrottledCallback<T extends (...args: any[]) => any>(fn: T, wait?: number, dependencies?: React.DependencyList, options?: ThrottleSettings): {
15
+ (this: ThisParameterType<T>, ...args: Parameters<T>): ReturnType<T>;
16
+ cancel: () => void;
17
+ flush: () => void;
18
+ };
19
+ export default useThrottledCallback;
20
+ //# sourceMappingURL=use-throttled-callback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-throttled-callback.d.ts","sourceRoot":"","sources":["../../src/hooks/use-throttled-callback.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,UAAU,gBAAgB;IACxB,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC/B;AAOD;;;;;;;GAOG;AAEH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACpE,EAAE,EAAE,CAAC,EACL,IAAI,SAAM,EACV,YAAY,GAAE,KAAK,CAAC,cAAmB,EACvC,OAAO,GAAE,gBAAiC,GACzC;IACD,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAA;IACnE,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB,CAYA;AAED,eAAe,oBAAoB,CAAA"}
@@ -0,0 +1,18 @@
1
+ import type { Editor } from "@tiptap/react";
2
+ /**
3
+ * Hook that provides access to a Tiptap editor instance.
4
+ *
5
+ * Accepts an optional editor instance directly, or falls back to retrieving
6
+ * the editor from the Tiptap context if available. This allows components
7
+ * to work both when given an editor directly and when used within a Tiptap
8
+ * editor context.
9
+ *
10
+ * @param providedEditor - Optional editor instance to use instead of the context editor
11
+ * @returns The provided editor or the editor from context, whichever is available
12
+ */
13
+ export declare function useTiptapEditor(providedEditor?: Editor | null): {
14
+ editor: Editor | null;
15
+ editorState?: Editor["state"];
16
+ canCommand?: Editor["can"];
17
+ };
18
+ //# sourceMappingURL=use-tiptap-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-tiptap-editor.d.ts","sourceRoot":"","sources":["../../src/hooks/use-tiptap-editor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAG3C;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG;IAC/D,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,CAAA;CAC3B,CA2BA"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Hook that executes a callback when the component unmounts.
3
+ *
4
+ * @param callback Function to be called on component unmount
5
+ */
6
+ export declare const useUnmount: (callback: (...args: Array<any>) => any) => void;
7
+ export default useUnmount;
8
+ //# sourceMappingURL=use-unmount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-unmount.d.ts","sourceRoot":"","sources":["../../src/hooks/use-unmount.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,eAAO,MAAM,UAAU,GAAI,UAAU,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,GAAG,SAUhE,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -0,0 +1,36 @@
1
+ export interface WindowSizeState {
2
+ /**
3
+ * The width of the window's visual viewport in pixels.
4
+ */
5
+ width: number;
6
+ /**
7
+ * The height of the window's visual viewport in pixels.
8
+ */
9
+ height: number;
10
+ /**
11
+ * The distance from the top of the visual viewport to the top of the layout viewport.
12
+ * Particularly useful for handling mobile keyboard appearance.
13
+ */
14
+ offsetTop: number;
15
+ /**
16
+ * The distance from the left of the visual viewport to the left of the layout viewport.
17
+ */
18
+ offsetLeft: number;
19
+ /**
20
+ * The scale factor of the visual viewport.
21
+ * This is useful for scaling elements based on the current zoom level.
22
+ */
23
+ scale: number;
24
+ }
25
+ /**
26
+ * Hook that tracks the window's visual viewport dimensions, position, and provides
27
+ * a CSS transform for positioning elements.
28
+ *
29
+ * Uses the Visual Viewport API to get accurate measurements, especially important
30
+ * for mobile devices where virtual keyboards can change the visible area.
31
+ * Only updates state when values actually change to optimize performance.
32
+ *
33
+ * @returns An object containing viewport properties and a CSS transform string
34
+ */
35
+ export declare function useWindowSize(): WindowSizeState;
36
+ //# sourceMappingURL=use-window-size.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-window-size.d.ts","sourceRoot":"","sources":["../../src/hooks/use-window-size.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,IAAI,eAAe,CAoD/C"}