@kopexa/tiptap 17.6.18 → 17.7.2

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 (428) hide show
  1. package/dist/index.d.mts +691 -24
  2. package/dist/index.d.ts +691 -24
  3. package/dist/index.js +1478 -786
  4. package/dist/index.mjs +7987 -112
  5. package/package.json +57 -52
  6. package/dist/chunk-2SI7MRAE.mjs +0 -64
  7. package/dist/chunk-2U5CQUZH.mjs +0 -91
  8. package/dist/chunk-2UDCL55K.mjs +0 -55
  9. package/dist/chunk-2V6VOAPI.mjs +0 -139
  10. package/dist/chunk-2Z2QVW67.mjs +0 -1
  11. package/dist/chunk-32SUXCAQ.mjs +0 -115
  12. package/dist/chunk-33QD5PYJ.mjs +0 -63
  13. package/dist/chunk-3VRQUYYW.mjs +0 -169
  14. package/dist/chunk-42HKGCOO.mjs +0 -129
  15. package/dist/chunk-4ALV4UA5.mjs +0 -1
  16. package/dist/chunk-4CDZ547I.mjs +0 -185
  17. package/dist/chunk-4HO7BWDC.mjs +0 -89
  18. package/dist/chunk-4JRYQZ4A.mjs +0 -174
  19. package/dist/chunk-552JLRNB.mjs +0 -35
  20. package/dist/chunk-5SMDMQDF.mjs +0 -34
  21. package/dist/chunk-6552DQWB.mjs +0 -416
  22. package/dist/chunk-7FDDRVUE.mjs +0 -143
  23. package/dist/chunk-7VGROP26.mjs +0 -262
  24. package/dist/chunk-7VW67NVL.mjs +0 -80
  25. package/dist/chunk-AAV7ZNBP.mjs +0 -83
  26. package/dist/chunk-ATRHILCH.mjs +0 -1
  27. package/dist/chunk-B7WJOQ3X.mjs +0 -103
  28. package/dist/chunk-BEV5U2DK.mjs +0 -131
  29. package/dist/chunk-BXHPO3T7.mjs +0 -152
  30. package/dist/chunk-BXJYNSWQ.mjs +0 -30
  31. package/dist/chunk-C5RQWJKE.mjs +0 -155
  32. package/dist/chunk-CNVACBGT.mjs +0 -51
  33. package/dist/chunk-DQK6PA4U.mjs +0 -276
  34. package/dist/chunk-DSBJFMHK.mjs +0 -38
  35. package/dist/chunk-DT7ML2P4.mjs +0 -42
  36. package/dist/chunk-DZLGLP7R.mjs +0 -99
  37. package/dist/chunk-EAAQE5ZV.mjs +0 -283
  38. package/dist/chunk-EHY2NAW7.mjs +0 -120
  39. package/dist/chunk-EIIWU5FR.mjs +0 -61
  40. package/dist/chunk-ERPGWXFK.mjs +0 -163
  41. package/dist/chunk-F73FCUD5.mjs +0 -1
  42. package/dist/chunk-FRJX2F4T.mjs +0 -55
  43. package/dist/chunk-GYIYX2JH.mjs +0 -73
  44. package/dist/chunk-H6LC4LDQ.mjs +0 -63
  45. package/dist/chunk-H7MS2UMO.mjs +0 -168
  46. package/dist/chunk-HLLA2HRV.mjs +0 -1
  47. package/dist/chunk-HTJ2RXOG.mjs +0 -32
  48. package/dist/chunk-IFXRPGIJ.mjs +0 -98
  49. package/dist/chunk-IOB3REX6.mjs +0 -173
  50. package/dist/chunk-IQERE7KP.mjs +0 -115
  51. package/dist/chunk-JCV5SEKN.mjs +0 -65
  52. package/dist/chunk-JVSH5T4B.mjs +0 -72
  53. package/dist/chunk-KK4K43WM.mjs +0 -59
  54. package/dist/chunk-KR42JAVB.mjs +0 -60
  55. package/dist/chunk-KYLBKQ2E.mjs +0 -203
  56. package/dist/chunk-L5RDMV3H.mjs +0 -216
  57. package/dist/chunk-LNVWG34E.mjs +0 -165
  58. package/dist/chunk-LVNUU67N.mjs +0 -1
  59. package/dist/chunk-MNTOOEHA.mjs +0 -1
  60. package/dist/chunk-N3JE67CS.mjs +0 -81
  61. package/dist/chunk-N4CT5RNC.mjs +0 -123
  62. package/dist/chunk-OEVR5N7X.mjs +0 -65
  63. package/dist/chunk-P55PLOHR.mjs +0 -34
  64. package/dist/chunk-Q5FK7SFY.mjs +0 -75
  65. package/dist/chunk-Q7DFJ5NI.mjs +0 -153
  66. package/dist/chunk-QIELBKP3.mjs +0 -104
  67. package/dist/chunk-R2GM4A3T.mjs +0 -71
  68. package/dist/chunk-REJEJXOZ.mjs +0 -10
  69. package/dist/chunk-RFWNKE7D.mjs +0 -238
  70. package/dist/chunk-TAM3VMJT.mjs +0 -80
  71. package/dist/chunk-TDFS3DCZ.mjs +0 -79
  72. package/dist/chunk-TLM5ALHZ.mjs +0 -1
  73. package/dist/chunk-TZQQ6C2Q.mjs +0 -101
  74. package/dist/chunk-U5XAL46P.mjs +0 -39
  75. package/dist/chunk-UJ4BNZ63.mjs +0 -178
  76. package/dist/chunk-UVHVCION.mjs +0 -168
  77. package/dist/chunk-V6TAZMQN.mjs +0 -105
  78. package/dist/chunk-VF3G2URZ.mjs +0 -83
  79. package/dist/chunk-VRQ6OSAZ.mjs +0 -76
  80. package/dist/chunk-VTKJPVNM.mjs +0 -148
  81. package/dist/chunk-VX3HSJ76.mjs +0 -73
  82. package/dist/chunk-W2FLOOJ6.mjs +0 -75
  83. package/dist/chunk-XGAABDMW.mjs +0 -159
  84. package/dist/chunk-Y2KSWMG5.mjs +0 -1
  85. package/dist/chunk-YJAHZXLG.mjs +0 -92
  86. package/dist/chunk-Z365KVQY.mjs +0 -34
  87. package/dist/chunk-ZVTJ6XD7.mjs +0 -88
  88. package/dist/chunk-ZZ4OU46C.mjs +0 -131
  89. package/dist/context/editor-context.d.mts +0 -10
  90. package/dist/context/editor-context.d.ts +0 -10
  91. package/dist/context/editor-context.js +0 -34
  92. package/dist/context/editor-context.mjs +0 -9
  93. package/dist/context/editor-file-context.d.mts +0 -70
  94. package/dist/context/editor-file-context.d.ts +0 -70
  95. package/dist/context/editor-file-context.js +0 -96
  96. package/dist/context/editor-file-context.mjs +0 -12
  97. package/dist/extensions/callout/callout-settings.d.mts +0 -13
  98. package/dist/extensions/callout/callout-settings.d.ts +0 -13
  99. package/dist/extensions/callout/callout-settings.js +0 -206
  100. package/dist/extensions/callout/callout-settings.mjs +0 -9
  101. package/dist/extensions/callout/callout-view.d.mts +0 -12
  102. package/dist/extensions/callout/callout-view.d.ts +0 -12
  103. package/dist/extensions/callout/callout-view.js +0 -273
  104. package/dist/extensions/callout/callout-view.mjs +0 -12
  105. package/dist/extensions/callout/index.d.mts +0 -44
  106. package/dist/extensions/callout/index.d.ts +0 -44
  107. package/dist/extensions/callout/index.js +0 -380
  108. package/dist/extensions/callout/index.mjs +0 -13
  109. package/dist/extensions/callout/messages.d.mts +0 -59
  110. package/dist/extensions/callout/messages.d.ts +0 -59
  111. package/dist/extensions/callout/messages.js +0 -88
  112. package/dist/extensions/callout/messages.mjs +0 -7
  113. package/dist/extensions/image/image-view.d.mts +0 -15
  114. package/dist/extensions/image/image-view.d.ts +0 -15
  115. package/dist/extensions/image/image-view.js +0 -255
  116. package/dist/extensions/image/image-view.mjs +0 -12
  117. package/dist/extensions/image/index.d.mts +0 -29
  118. package/dist/extensions/image/index.d.ts +0 -29
  119. package/dist/extensions/image/index.js +0 -282
  120. package/dist/extensions/image/index.mjs +0 -16
  121. package/dist/extensions/image/messages.d.mts +0 -28
  122. package/dist/extensions/image/messages.d.ts +0 -28
  123. package/dist/extensions/image/messages.js +0 -57
  124. package/dist/extensions/image/messages.mjs +0 -7
  125. package/dist/extensions/image-upload/image-upload-view.d.mts +0 -12
  126. package/dist/extensions/image-upload/image-upload-view.d.ts +0 -12
  127. package/dist/extensions/image-upload/image-upload-view.js +0 -338
  128. package/dist/extensions/image-upload/image-upload-view.mjs +0 -12
  129. package/dist/extensions/image-upload/index.d.mts +0 -46
  130. package/dist/extensions/image-upload/index.d.ts +0 -46
  131. package/dist/extensions/image-upload/index.js +0 -414
  132. package/dist/extensions/image-upload/index.mjs +0 -16
  133. package/dist/extensions/image-upload/messages.d.mts +0 -32
  134. package/dist/extensions/image-upload/messages.d.ts +0 -32
  135. package/dist/extensions/image-upload/messages.js +0 -61
  136. package/dist/extensions/image-upload/messages.mjs +0 -7
  137. package/dist/extensions/link/index.d.mts +0 -6
  138. package/dist/extensions/link/index.d.ts +0 -6
  139. package/dist/extensions/link/index.js +0 -94
  140. package/dist/extensions/link/index.mjs +0 -7
  141. package/dist/extensions/math/index.d.mts +0 -38
  142. package/dist/extensions/math/index.d.ts +0 -38
  143. package/dist/extensions/math/index.js +0 -544
  144. package/dist/extensions/math/index.mjs +0 -17
  145. package/dist/extensions/math/inline-math-view.d.mts +0 -12
  146. package/dist/extensions/math/inline-math-view.d.ts +0 -12
  147. package/dist/extensions/math/inline-math-view.js +0 -232
  148. package/dist/extensions/math/inline-math-view.mjs +0 -11
  149. package/dist/extensions/math/inline-math.d.mts +0 -32
  150. package/dist/extensions/math/inline-math.d.ts +0 -32
  151. package/dist/extensions/math/inline-math.js +0 -304
  152. package/dist/extensions/math/inline-math.mjs +0 -12
  153. package/dist/extensions/math/math-block-view.d.mts +0 -11
  154. package/dist/extensions/math/math-block-view.d.ts +0 -11
  155. package/dist/extensions/math/math-block-view.js +0 -248
  156. package/dist/extensions/math/math-block-view.mjs +0 -11
  157. package/dist/extensions/math/messages.d.mts +0 -49
  158. package/dist/extensions/math/messages.d.ts +0 -49
  159. package/dist/extensions/math/messages.js +0 -78
  160. package/dist/extensions/math/messages.mjs +0 -7
  161. package/dist/extensions/selection/index.d.mts +0 -5
  162. package/dist/extensions/selection/index.d.ts +0 -5
  163. package/dist/extensions/selection/index.js +0 -62
  164. package/dist/extensions/selection/index.mjs +0 -7
  165. package/dist/extensions/toc/index.d.mts +0 -53
  166. package/dist/extensions/toc/index.d.ts +0 -53
  167. package/dist/extensions/toc/index.js +0 -501
  168. package/dist/extensions/toc/index.mjs +0 -13
  169. package/dist/extensions/toc/messages.d.mts +0 -74
  170. package/dist/extensions/toc/messages.d.ts +0 -74
  171. package/dist/extensions/toc/messages.js +0 -103
  172. package/dist/extensions/toc/messages.mjs +0 -7
  173. package/dist/extensions/toc/toc-settings.d.mts +0 -13
  174. package/dist/extensions/toc/toc-settings.d.ts +0 -13
  175. package/dist/extensions/toc/toc-settings.js +0 -283
  176. package/dist/extensions/toc/toc-settings.mjs +0 -9
  177. package/dist/extensions/toc/toc-view.d.mts +0 -12
  178. package/dist/extensions/toc/toc-view.d.ts +0 -12
  179. package/dist/extensions/toc/toc-view.js +0 -411
  180. package/dist/extensions/toc/toc-view.mjs +0 -12
  181. package/dist/extensions/trailing-node/index.d.mts +0 -9
  182. package/dist/extensions/trailing-node/index.d.ts +0 -9
  183. package/dist/extensions/trailing-node/index.js +0 -86
  184. package/dist/extensions/trailing-node/index.mjs +0 -7
  185. package/dist/extensions/ui-state/index.d.mts +0 -34
  186. package/dist/extensions/ui-state/index.d.ts +0 -34
  187. package/dist/extensions/ui-state/index.js +0 -84
  188. package/dist/extensions/ui-state/index.mjs +0 -9
  189. package/dist/extensions/variable/extract-variables.d.mts +0 -16
  190. package/dist/extensions/variable/extract-variables.d.ts +0 -16
  191. package/dist/extensions/variable/extract-variables.js +0 -58
  192. package/dist/extensions/variable/extract-variables.mjs +0 -7
  193. package/dist/extensions/variable/index.d.mts +0 -38
  194. package/dist/extensions/variable/index.d.ts +0 -38
  195. package/dist/extensions/variable/index.js +0 -190
  196. package/dist/extensions/variable/index.mjs +0 -11
  197. package/dist/extensions/variable/messages.d.mts +0 -69
  198. package/dist/extensions/variable/messages.d.ts +0 -69
  199. package/dist/extensions/variable/messages.js +0 -98
  200. package/dist/extensions/variable/messages.mjs +0 -7
  201. package/dist/extensions/variable/variable-context.d.mts +0 -56
  202. package/dist/extensions/variable/variable-context.d.ts +0 -56
  203. package/dist/extensions/variable/variable-context.js +0 -70
  204. package/dist/extensions/variable/variable-context.mjs +0 -12
  205. package/dist/extensions/variable/variable-filler-dialog.d.mts +0 -43
  206. package/dist/extensions/variable/variable-filler-dialog.d.ts +0 -43
  207. package/dist/extensions/variable/variable-filler-dialog.js +0 -207
  208. package/dist/extensions/variable/variable-filler-dialog.mjs +0 -9
  209. package/dist/extensions/variable/variable-suggestion.d.mts +0 -31
  210. package/dist/extensions/variable/variable-suggestion.d.ts +0 -31
  211. package/dist/extensions/variable/variable-suggestion.js +0 -615
  212. package/dist/extensions/variable/variable-suggestion.mjs +0 -14
  213. package/dist/extensions/variable/variable-view.d.mts +0 -13
  214. package/dist/extensions/variable/variable-view.d.ts +0 -13
  215. package/dist/extensions/variable/variable-view.js +0 -110
  216. package/dist/extensions/variable/variable-view.mjs +0 -11
  217. package/dist/hooks/use-create-editor.d.mts +0 -46
  218. package/dist/hooks/use-create-editor.d.ts +0 -46
  219. package/dist/hooks/use-create-editor.js +0 -2726
  220. package/dist/hooks/use-create-editor.mjs +0 -37
  221. package/dist/hooks/use-cursor-visibility.d.mts +0 -37
  222. package/dist/hooks/use-cursor-visibility.d.ts +0 -37
  223. package/dist/hooks/use-cursor-visibility.js +0 -140
  224. package/dist/hooks/use-cursor-visibility.mjs +0 -8
  225. package/dist/hooks/use-floating-element.d.mts +0 -43
  226. package/dist/hooks/use-floating-element.d.ts +0 -43
  227. package/dist/hooks/use-floating-element.js +0 -88
  228. package/dist/hooks/use-floating-element.mjs +0 -8
  229. package/dist/hooks/use-floating-toolbar-visibility.d.mts +0 -32
  230. package/dist/hooks/use-floating-toolbar-visibility.d.ts +0 -32
  231. package/dist/hooks/use-floating-toolbar-visibility.js +0 -115
  232. package/dist/hooks/use-floating-toolbar-visibility.mjs +0 -13
  233. package/dist/hooks/use-menu-navigation.d.mts +0 -55
  234. package/dist/hooks/use-menu-navigation.d.ts +0 -55
  235. package/dist/hooks/use-menu-navigation.js +0 -163
  236. package/dist/hooks/use-menu-navigation.mjs +0 -8
  237. package/dist/hooks/use-tiptap-editor.d.mts +0 -20
  238. package/dist/hooks/use-tiptap-editor.d.ts +0 -20
  239. package/dist/hooks/use-tiptap-editor.js +0 -58
  240. package/dist/hooks/use-tiptap-editor.mjs +0 -8
  241. package/dist/hooks/use-ui-editor-state.d.mts +0 -7
  242. package/dist/hooks/use-ui-editor-state.d.ts +0 -7
  243. package/dist/hooks/use-ui-editor-state.js +0 -107
  244. package/dist/hooks/use-ui-editor-state.mjs +0 -11
  245. package/dist/hooks/use-window-size.d.mts +0 -12
  246. package/dist/hooks/use-window-size.d.ts +0 -12
  247. package/dist/hooks/use-window-size.js +0 -75
  248. package/dist/hooks/use-window-size.mjs +0 -7
  249. package/dist/presets/basic/editor-header.d.mts +0 -23
  250. package/dist/presets/basic/editor-header.d.ts +0 -23
  251. package/dist/presets/basic/editor-header.js +0 -2750
  252. package/dist/presets/basic/editor-header.mjs +0 -43
  253. package/dist/presets/basic/index.d.mts +0 -38
  254. package/dist/presets/basic/index.d.ts +0 -38
  255. package/dist/presets/basic/index.js +0 -6891
  256. package/dist/presets/basic/index.mjs +0 -85
  257. package/dist/ui/blockquote-button/blockquote-button.d.mts +0 -20
  258. package/dist/ui/blockquote-button/blockquote-button.d.ts +0 -20
  259. package/dist/ui/blockquote-button/blockquote-button.js +0 -247
  260. package/dist/ui/blockquote-button/blockquote-button.mjs +0 -9
  261. package/dist/ui/blockquote-button/index.d.mts +0 -6
  262. package/dist/ui/blockquote-button/index.d.ts +0 -6
  263. package/dist/ui/blockquote-button/index.js +0 -259
  264. package/dist/ui/blockquote-button/index.mjs +0 -21
  265. package/dist/ui/blockquote-button/use-blockquote.d.mts +0 -85
  266. package/dist/ui/blockquote-button/use-blockquote.d.ts +0 -85
  267. package/dist/ui/blockquote-button/use-blockquote.js +0 -192
  268. package/dist/ui/blockquote-button/use-blockquote.mjs +0 -17
  269. package/dist/ui/bubble-menu/index.d.mts +0 -13
  270. package/dist/ui/bubble-menu/index.d.ts +0 -13
  271. package/dist/ui/bubble-menu/index.js +0 -673
  272. package/dist/ui/bubble-menu/index.mjs +0 -16
  273. package/dist/ui/codeblock-button/code-block-button.d.mts +0 -20
  274. package/dist/ui/codeblock-button/code-block-button.d.ts +0 -20
  275. package/dist/ui/codeblock-button/code-block-button.js +0 -237
  276. package/dist/ui/codeblock-button/code-block-button.mjs +0 -9
  277. package/dist/ui/codeblock-button/index.d.mts +0 -6
  278. package/dist/ui/codeblock-button/index.d.ts +0 -6
  279. package/dist/ui/codeblock-button/index.js +0 -249
  280. package/dist/ui/codeblock-button/index.mjs +0 -21
  281. package/dist/ui/codeblock-button/use-code-block.d.mts +0 -92
  282. package/dist/ui/codeblock-button/use-code-block.d.ts +0 -92
  283. package/dist/ui/codeblock-button/use-code-block.js +0 -192
  284. package/dist/ui/codeblock-button/use-code-block.mjs +0 -17
  285. package/dist/ui/color-highlight-button/color-highlight-button.d.mts +0 -25
  286. package/dist/ui/color-highlight-button/color-highlight-button.d.ts +0 -25
  287. package/dist/ui/color-highlight-button/color-highlight-button.js +0 -266
  288. package/dist/ui/color-highlight-button/color-highlight-button.mjs +0 -9
  289. package/dist/ui/color-highlight-button/index.d.mts +0 -6
  290. package/dist/ui/color-highlight-button/index.d.ts +0 -6
  291. package/dist/ui/color-highlight-button/index.js +0 -342
  292. package/dist/ui/color-highlight-button/index.mjs +0 -27
  293. package/dist/ui/color-highlight-button/use-color-highlight.d.mts +0 -64
  294. package/dist/ui/color-highlight-button/use-color-highlight.d.ts +0 -64
  295. package/dist/ui/color-highlight-button/use-color-highlight.js +0 -247
  296. package/dist/ui/color-highlight-button/use-color-highlight.mjs +0 -23
  297. package/dist/ui/color-highlight-popover/color-highlight-popover.d.mts +0 -29
  298. package/dist/ui/color-highlight-popover/color-highlight-popover.d.ts +0 -29
  299. package/dist/ui/color-highlight-popover/color-highlight-popover.js +0 -590
  300. package/dist/ui/color-highlight-popover/color-highlight-popover.mjs +0 -17
  301. package/dist/ui/color-highlight-popover/index.d.mts +0 -6
  302. package/dist/ui/color-highlight-popover/index.d.ts +0 -6
  303. package/dist/ui/color-highlight-popover/index.js +0 -591
  304. package/dist/ui/color-highlight-popover/index.mjs +0 -17
  305. package/dist/ui/copy-anchor-link-button/use-scroll-to-hash.d.mts +0 -30
  306. package/dist/ui/copy-anchor-link-button/use-scroll-to-hash.d.ts +0 -30
  307. package/dist/ui/copy-anchor-link-button/use-scroll-to-hash.js +0 -171
  308. package/dist/ui/copy-anchor-link-button/use-scroll-to-hash.mjs +0 -10
  309. package/dist/ui/heading-button/index.d.mts +0 -45
  310. package/dist/ui/heading-button/index.d.ts +0 -45
  311. package/dist/ui/heading-button/index.js +0 -222
  312. package/dist/ui/heading-button/index.mjs +0 -16
  313. package/dist/ui/heading-button/utils.d.mts +0 -17
  314. package/dist/ui/heading-button/utils.d.ts +0 -17
  315. package/dist/ui/heading-button/utils.js +0 -92
  316. package/dist/ui/heading-button/utils.mjs +0 -19
  317. package/dist/ui/heading-dropdown-menu/index.d.mts +0 -14
  318. package/dist/ui/heading-dropdown-menu/index.d.ts +0 -14
  319. package/dist/ui/heading-dropdown-menu/index.js +0 -308
  320. package/dist/ui/heading-dropdown-menu/index.mjs +0 -10
  321. package/dist/ui/link-bubble/index.d.mts +0 -13
  322. package/dist/ui/link-bubble/index.d.ts +0 -13
  323. package/dist/ui/link-bubble/index.js +0 -183
  324. package/dist/ui/link-bubble/index.mjs +0 -10
  325. package/dist/ui/link-popover/index.d.mts +0 -7
  326. package/dist/ui/link-popover/index.d.ts +0 -7
  327. package/dist/ui/link-popover/index.js +0 -512
  328. package/dist/ui/link-popover/index.mjs +0 -30
  329. package/dist/ui/link-popover/link-popover.d.mts +0 -85
  330. package/dist/ui/link-popover/link-popover.d.ts +0 -85
  331. package/dist/ui/link-popover/link-popover.js +0 -498
  332. package/dist/ui/link-popover/link-popover.mjs +0 -16
  333. package/dist/ui/link-popover/use-link-popover.d.mts +0 -123
  334. package/dist/ui/link-popover/use-link-popover.d.ts +0 -123
  335. package/dist/ui/link-popover/use-link-popover.js +0 -259
  336. package/dist/ui/link-popover/use-link-popover.mjs +0 -20
  337. package/dist/ui/list-button/index.d.mts +0 -50
  338. package/dist/ui/list-button/index.d.ts +0 -50
  339. package/dist/ui/list-button/index.js +0 -232
  340. package/dist/ui/list-button/index.mjs +0 -24
  341. package/dist/ui/list-dropdown-menu/index.d.mts +0 -45
  342. package/dist/ui/list-dropdown-menu/index.d.ts +0 -45
  343. package/dist/ui/list-dropdown-menu/index.js +0 -361
  344. package/dist/ui/list-dropdown-menu/index.mjs +0 -21
  345. package/dist/ui/mark-button/index.d.mts +0 -59
  346. package/dist/ui/mark-button/index.d.ts +0 -59
  347. package/dist/ui/mark-button/index.js +0 -217
  348. package/dist/ui/mark-button/index.mjs +0 -26
  349. package/dist/ui/reset-all-formatting-button/index.d.mts +0 -7
  350. package/dist/ui/reset-all-formatting-button/index.d.ts +0 -7
  351. package/dist/ui/reset-all-formatting-button/index.js +0 -286
  352. package/dist/ui/reset-all-formatting-button/index.mjs +0 -26
  353. package/dist/ui/reset-all-formatting-button/reset-all-formatting-button.d.mts +0 -30
  354. package/dist/ui/reset-all-formatting-button/reset-all-formatting-button.d.ts +0 -30
  355. package/dist/ui/reset-all-formatting-button/reset-all-formatting-button.js +0 -271
  356. package/dist/ui/reset-all-formatting-button/reset-all-formatting-button.mjs +0 -12
  357. package/dist/ui/reset-all-formatting-button/use-reset-all-formatting.d.mts +0 -103
  358. package/dist/ui/reset-all-formatting-button/use-reset-all-formatting.d.ts +0 -103
  359. package/dist/ui/reset-all-formatting-button/use-reset-all-formatting.js +0 -211
  360. package/dist/ui/reset-all-formatting-button/use-reset-all-formatting.mjs +0 -21
  361. package/dist/ui/slash-dropdown-menu/index.d.mts +0 -10
  362. package/dist/ui/slash-dropdown-menu/index.d.ts +0 -10
  363. package/dist/ui/slash-dropdown-menu/index.js +0 -1056
  364. package/dist/ui/slash-dropdown-menu/index.mjs +0 -19
  365. package/dist/ui/slash-dropdown-menu/slash-dropdown-menu.d.mts +0 -16
  366. package/dist/ui/slash-dropdown-menu/slash-dropdown-menu.d.ts +0 -16
  367. package/dist/ui/slash-dropdown-menu/slash-dropdown-menu.js +0 -1053
  368. package/dist/ui/slash-dropdown-menu/slash-dropdown-menu.mjs +0 -16
  369. package/dist/ui/slash-dropdown-menu/use-slash-dropdown-menu.d.mts +0 -162
  370. package/dist/ui/slash-dropdown-menu/use-slash-dropdown-menu.d.ts +0 -162
  371. package/dist/ui/slash-dropdown-menu/use-slash-dropdown-menu.js +0 -457
  372. package/dist/ui/slash-dropdown-menu/use-slash-dropdown-menu.mjs +0 -10
  373. package/dist/ui/suggestion-menu/index.d.mts +0 -10
  374. package/dist/ui/suggestion-menu/index.d.ts +0 -10
  375. package/dist/ui/suggestion-menu/index.js +0 -489
  376. package/dist/ui/suggestion-menu/index.mjs +0 -17
  377. package/dist/ui/suggestion-menu/suggestion-menu-types.d.mts +0 -89
  378. package/dist/ui/suggestion-menu/suggestion-menu-types.d.ts +0 -89
  379. package/dist/ui/suggestion-menu/suggestion-menu-types.js +0 -19
  380. package/dist/ui/suggestion-menu/suggestion-menu-types.mjs +0 -1
  381. package/dist/ui/suggestion-menu/suggestion-menu-utils.d.mts +0 -27
  382. package/dist/ui/suggestion-menu/suggestion-menu-utils.d.ts +0 -27
  383. package/dist/ui/suggestion-menu/suggestion-menu-utils.js +0 -75
  384. package/dist/ui/suggestion-menu/suggestion-menu-utils.mjs +0 -9
  385. package/dist/ui/suggestion-menu/suggestion-menu.d.mts +0 -15
  386. package/dist/ui/suggestion-menu/suggestion-menu.d.ts +0 -15
  387. package/dist/ui/suggestion-menu/suggestion-menu.js +0 -453
  388. package/dist/ui/suggestion-menu/suggestion-menu.mjs +0 -12
  389. package/dist/ui/table-button/index.d.mts +0 -15
  390. package/dist/ui/table-button/index.d.ts +0 -15
  391. package/dist/ui/table-button/index.js +0 -202
  392. package/dist/ui/table-button/index.mjs +0 -9
  393. package/dist/ui/table-button/use-table.d.mts +0 -51
  394. package/dist/ui/table-button/use-table.d.ts +0 -51
  395. package/dist/ui/table-button/use-table.js +0 -146
  396. package/dist/ui/table-button/use-table.mjs +0 -14
  397. package/dist/ui/text-align-button/index.d.mts +0 -6
  398. package/dist/ui/text-align-button/index.d.ts +0 -6
  399. package/dist/ui/text-align-button/index.js +0 -235
  400. package/dist/ui/text-align-button/index.mjs +0 -29
  401. package/dist/ui/text-align-button/text-align-button.d.mts +0 -20
  402. package/dist/ui/text-align-button/text-align-button.d.ts +0 -20
  403. package/dist/ui/text-align-button/text-align-button.js +0 -215
  404. package/dist/ui/text-align-button/text-align-button.mjs +0 -9
  405. package/dist/ui/text-align-button/use-text-align.d.mts +0 -106
  406. package/dist/ui/text-align-button/use-text-align.d.ts +0 -106
  407. package/dist/ui/text-align-button/use-text-align.js +0 -169
  408. package/dist/ui/text-align-button/use-text-align.mjs +0 -24
  409. package/dist/ui/undo-redo-button/index.d.mts +0 -6
  410. package/dist/ui/undo-redo-button/index.d.ts +0 -6
  411. package/dist/ui/undo-redo-button/index.js +0 -202
  412. package/dist/ui/undo-redo-button/index.mjs +0 -25
  413. package/dist/ui/undo-redo-button/undo-redo-button.d.mts +0 -23
  414. package/dist/ui/undo-redo-button/undo-redo-button.d.ts +0 -23
  415. package/dist/ui/undo-redo-button/undo-redo-button.js +0 -187
  416. package/dist/ui/undo-redo-button/undo-redo-button.mjs +0 -10
  417. package/dist/ui/undo-redo-button/use-undo-redo.d.mts +0 -95
  418. package/dist/ui/undo-redo-button/use-undo-redo.d.ts +0 -95
  419. package/dist/ui/undo-redo-button/use-undo-redo.js +0 -146
  420. package/dist/ui/undo-redo-button/use-undo-redo.mjs +0 -21
  421. package/dist/utils/index.d.mts +0 -38
  422. package/dist/utils/index.d.ts +0 -38
  423. package/dist/utils/index.js +0 -128
  424. package/dist/utils/index.mjs +0 -15
  425. package/dist/utils/safe-parse.d.mts +0 -14
  426. package/dist/utils/safe-parse.d.ts +0 -14
  427. package/dist/utils/safe-parse.js +0 -203
  428. package/dist/utils/safe-parse.mjs +0 -8
@@ -1,55 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- import * as React from 'react';
3
-
4
- type Orientation = "horizontal" | "vertical" | "both";
5
- interface MenuNavigationOptions<T> {
6
- /**
7
- * The Tiptap editor instance, if using with a Tiptap editor.
8
- */
9
- editor?: Editor | null;
10
- /**
11
- * Reference to the container element for handling keyboard events.
12
- */
13
- containerRef?: React.RefObject<HTMLElement | null>;
14
- /**
15
- * Search query that affects the selected item.
16
- */
17
- query?: string;
18
- /**
19
- * Array of items to navigate through.
20
- */
21
- items: T[];
22
- /**
23
- * Callback fired when an item is selected.
24
- */
25
- onSelect?: (item: T) => void;
26
- /**
27
- * Callback fired when the menu should close.
28
- */
29
- onClose?: () => void;
30
- /**
31
- * The navigation orientation of the menu.
32
- * @default "vertical"
33
- */
34
- orientation?: Orientation;
35
- /**
36
- * Whether to automatically select the first item when the menu opens.
37
- * @default true
38
- */
39
- autoSelectFirstItem?: boolean;
40
- }
41
- /**
42
- * Hook that implements keyboard navigation for dropdown menus and command palettes.
43
- *
44
- * Handles arrow keys, tab, home/end, enter for selection, and escape to close.
45
- * Works with both Tiptap editors and regular DOM elements.
46
- *
47
- * @param options - Configuration options for the menu navigation
48
- * @returns Object containing the selected index and a setter function
49
- */
50
- declare function useMenuNavigation<T>({ editor, containerRef, query, items, onSelect, onClose, orientation, autoSelectFirstItem, }: MenuNavigationOptions<T>): {
51
- selectedIndex: number | undefined;
52
- setSelectedIndex: React.Dispatch<React.SetStateAction<number>>;
53
- };
54
-
55
- export { useMenuNavigation };
@@ -1,55 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- import * as React from 'react';
3
-
4
- type Orientation = "horizontal" | "vertical" | "both";
5
- interface MenuNavigationOptions<T> {
6
- /**
7
- * The Tiptap editor instance, if using with a Tiptap editor.
8
- */
9
- editor?: Editor | null;
10
- /**
11
- * Reference to the container element for handling keyboard events.
12
- */
13
- containerRef?: React.RefObject<HTMLElement | null>;
14
- /**
15
- * Search query that affects the selected item.
16
- */
17
- query?: string;
18
- /**
19
- * Array of items to navigate through.
20
- */
21
- items: T[];
22
- /**
23
- * Callback fired when an item is selected.
24
- */
25
- onSelect?: (item: T) => void;
26
- /**
27
- * Callback fired when the menu should close.
28
- */
29
- onClose?: () => void;
30
- /**
31
- * The navigation orientation of the menu.
32
- * @default "vertical"
33
- */
34
- orientation?: Orientation;
35
- /**
36
- * Whether to automatically select the first item when the menu opens.
37
- * @default true
38
- */
39
- autoSelectFirstItem?: boolean;
40
- }
41
- /**
42
- * Hook that implements keyboard navigation for dropdown menus and command palettes.
43
- *
44
- * Handles arrow keys, tab, home/end, enter for selection, and escape to close.
45
- * Works with both Tiptap editors and regular DOM elements.
46
- *
47
- * @param options - Configuration options for the menu navigation
48
- * @returns Object containing the selected index and a setter function
49
- */
50
- declare function useMenuNavigation<T>({ editor, containerRef, query, items, onSelect, onClose, orientation, autoSelectFirstItem, }: MenuNavigationOptions<T>): {
51
- selectedIndex: number | undefined;
52
- setSelectedIndex: React.Dispatch<React.SetStateAction<number>>;
53
- };
54
-
55
- export { useMenuNavigation };
@@ -1,163 +0,0 @@
1
- "use client";
2
- "use strict";
3
- "use client";
4
- var __create = Object.create;
5
- var __defProp = Object.defineProperty;
6
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
- var __getOwnPropNames = Object.getOwnPropertyNames;
8
- var __getProtoOf = Object.getPrototypeOf;
9
- var __hasOwnProp = Object.prototype.hasOwnProperty;
10
- var __export = (target, all) => {
11
- for (var name in all)
12
- __defProp(target, name, { get: all[name], enumerable: true });
13
- };
14
- var __copyProps = (to, from, except, desc) => {
15
- if (from && typeof from === "object" || typeof from === "function") {
16
- for (let key of __getOwnPropNames(from))
17
- if (!__hasOwnProp.call(to, key) && key !== except)
18
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
- }
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
28
- mod
29
- ));
30
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
31
-
32
- // src/hooks/use-menu-navigation.ts
33
- var use_menu_navigation_exports = {};
34
- __export(use_menu_navigation_exports, {
35
- useMenuNavigation: () => useMenuNavigation
36
- });
37
- module.exports = __toCommonJS(use_menu_navigation_exports);
38
- var React = __toESM(require("react"));
39
- function useMenuNavigation({
40
- editor,
41
- containerRef,
42
- query,
43
- items,
44
- onSelect,
45
- onClose,
46
- orientation = "vertical",
47
- autoSelectFirstItem = true
48
- }) {
49
- const [selectedIndex, setSelectedIndex] = React.useState(
50
- autoSelectFirstItem ? 0 : -1
51
- );
52
- React.useEffect(() => {
53
- const handleKeyboardNavigation = (event) => {
54
- if (!items.length) return false;
55
- const moveNext = () => setSelectedIndex((currentIndex) => {
56
- if (currentIndex === -1) return 0;
57
- return (currentIndex + 1) % items.length;
58
- });
59
- const movePrev = () => setSelectedIndex((currentIndex) => {
60
- if (currentIndex === -1) return items.length - 1;
61
- return (currentIndex - 1 + items.length) % items.length;
62
- });
63
- switch (event.key) {
64
- case "ArrowUp": {
65
- if (orientation === "horizontal") return false;
66
- event.preventDefault();
67
- movePrev();
68
- return true;
69
- }
70
- case "ArrowDown": {
71
- if (orientation === "horizontal") return false;
72
- event.preventDefault();
73
- moveNext();
74
- return true;
75
- }
76
- case "ArrowLeft": {
77
- if (orientation === "vertical") return false;
78
- event.preventDefault();
79
- movePrev();
80
- return true;
81
- }
82
- case "ArrowRight": {
83
- if (orientation === "vertical") return false;
84
- event.preventDefault();
85
- moveNext();
86
- return true;
87
- }
88
- case "Tab": {
89
- event.preventDefault();
90
- if (event.shiftKey) {
91
- movePrev();
92
- } else {
93
- moveNext();
94
- }
95
- return true;
96
- }
97
- case "Home": {
98
- event.preventDefault();
99
- setSelectedIndex(0);
100
- return true;
101
- }
102
- case "End": {
103
- event.preventDefault();
104
- setSelectedIndex(items.length - 1);
105
- return true;
106
- }
107
- case "Enter": {
108
- if (event.isComposing) return false;
109
- event.preventDefault();
110
- if (selectedIndex !== -1 && items[selectedIndex]) {
111
- onSelect == null ? void 0 : onSelect(items[selectedIndex]);
112
- }
113
- return true;
114
- }
115
- case "Escape": {
116
- event.preventDefault();
117
- onClose == null ? void 0 : onClose();
118
- return true;
119
- }
120
- default:
121
- return false;
122
- }
123
- };
124
- let targetElement = null;
125
- if (editor) {
126
- targetElement = editor.view.dom;
127
- } else if (containerRef == null ? void 0 : containerRef.current) {
128
- targetElement = containerRef.current;
129
- }
130
- if (targetElement) {
131
- targetElement.addEventListener("keydown", handleKeyboardNavigation, true);
132
- return () => {
133
- targetElement == null ? void 0 : targetElement.removeEventListener(
134
- "keydown",
135
- handleKeyboardNavigation,
136
- true
137
- );
138
- };
139
- }
140
- return void 0;
141
- }, [
142
- editor,
143
- containerRef,
144
- items,
145
- selectedIndex,
146
- onSelect,
147
- onClose,
148
- orientation
149
- ]);
150
- React.useEffect(() => {
151
- if (query) {
152
- setSelectedIndex(autoSelectFirstItem ? 0 : -1);
153
- }
154
- }, [query, autoSelectFirstItem]);
155
- return {
156
- selectedIndex: items.length ? selectedIndex : void 0,
157
- setSelectedIndex
158
- };
159
- }
160
- // Annotate the CommonJS export names for ESM import in node:
161
- 0 && (module.exports = {
162
- useMenuNavigation
163
- });
@@ -1,8 +0,0 @@
1
- "use client";
2
- "use client";
3
- import {
4
- useMenuNavigation
5
- } from "../chunk-42HKGCOO.mjs";
6
- export {
7
- useMenuNavigation
8
- };
@@ -1,20 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
-
3
- /**
4
- * Hook that provides access to a Tiptap editor instance.
5
- *
6
- * Accepts an optional editor instance directly, or falls back to retrieving
7
- * the editor from the Tiptap context if available. This allows components
8
- * to work both when given an editor directly and when used within a Tiptap
9
- * editor context.
10
- *
11
- * @param providedEditor - Optional editor instance to use instead of the context editor
12
- * @returns The provided editor or the editor from context, whichever is available
13
- */
14
- declare function useTiptapEditor(providedEditor?: Editor | null): {
15
- editor: Editor | null;
16
- editorState?: Editor["state"];
17
- canCommand?: Editor["can"];
18
- };
19
-
20
- export { useTiptapEditor };
@@ -1,20 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
-
3
- /**
4
- * Hook that provides access to a Tiptap editor instance.
5
- *
6
- * Accepts an optional editor instance directly, or falls back to retrieving
7
- * the editor from the Tiptap context if available. This allows components
8
- * to work both when given an editor directly and when used within a Tiptap
9
- * editor context.
10
- *
11
- * @param providedEditor - Optional editor instance to use instead of the context editor
12
- * @returns The provided editor or the editor from context, whichever is available
13
- */
14
- declare function useTiptapEditor(providedEditor?: Editor | null): {
15
- editor: Editor | null;
16
- editorState?: Editor["state"];
17
- canCommand?: Editor["can"];
18
- };
19
-
20
- export { useTiptapEditor };
@@ -1,58 +0,0 @@
1
- "use client";
2
- "use strict";
3
- "use client";
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
-
22
- // src/hooks/use-tiptap-editor.ts
23
- var use_tiptap_editor_exports = {};
24
- __export(use_tiptap_editor_exports, {
25
- useTiptapEditor: () => useTiptapEditor
26
- });
27
- module.exports = __toCommonJS(use_tiptap_editor_exports);
28
- var import_react = require("@tiptap/react");
29
- var import_react2 = require("react");
30
- function useTiptapEditor(providedEditor) {
31
- const { editor: coreEditor } = (0, import_react.useCurrentEditor)();
32
- const mainEditor = (0, import_react2.useMemo)(
33
- () => providedEditor || coreEditor,
34
- [providedEditor, coreEditor]
35
- );
36
- const editorState = (0, import_react.useEditorState)({
37
- editor: mainEditor,
38
- selector(context) {
39
- if (!context.editor) {
40
- return {
41
- editor: null,
42
- editorState: void 0,
43
- canCommand: void 0
44
- };
45
- }
46
- return {
47
- editor: context.editor,
48
- editorState: context.editor.state,
49
- canCommand: context.editor.can
50
- };
51
- }
52
- });
53
- return editorState || { editor: null };
54
- }
55
- // Annotate the CommonJS export names for ESM import in node:
56
- 0 && (module.exports = {
57
- useTiptapEditor
58
- });
@@ -1,8 +0,0 @@
1
- "use client";
2
- "use client";
3
- import {
4
- useTiptapEditor
5
- } from "../chunk-P55PLOHR.mjs";
6
- export {
7
- useTiptapEditor
8
- };
@@ -1,7 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- import { UiState } from '../extensions/ui-state/index.mjs';
3
- import '@tiptap/core';
4
-
5
- declare function useUiEditorState(editor: Editor | null): UiState;
6
-
7
- export { useUiEditorState as default, useUiEditorState };
@@ -1,7 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- import { UiState } from '../extensions/ui-state/index.js';
3
- import '@tiptap/core';
4
-
5
- declare function useUiEditorState(editor: Editor | null): UiState;
6
-
7
- export { useUiEditorState as default, useUiEditorState };
@@ -1,107 +0,0 @@
1
- "use client";
2
- "use strict";
3
- "use client";
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
-
22
- // src/hooks/use-ui-editor-state.ts
23
- var use_ui_editor_state_exports = {};
24
- __export(use_ui_editor_state_exports, {
25
- default: () => use_ui_editor_state_default,
26
- useUiEditorState: () => useUiEditorState
27
- });
28
- module.exports = __toCommonJS(use_ui_editor_state_exports);
29
- var import_react = require("@tiptap/react");
30
-
31
- // src/extensions/ui-state/index.ts
32
- var import_core = require("@tiptap/core");
33
- var defaultUiState = {
34
- aiGenerationIsSelection: false,
35
- aiGenerationIsLoading: false,
36
- aiGenerationActive: false,
37
- aiGenerationHasMessage: false,
38
- commentInputVisible: false,
39
- lockDragHandle: false,
40
- isDragging: false
41
- };
42
- var UiState = import_core.Extension.create({
43
- name: "uiState",
44
- addStorage() {
45
- return {
46
- uiState: { ...defaultUiState }
47
- };
48
- },
49
- addCommands() {
50
- const createBooleanSetter = (key) => (value) => () => {
51
- this.storage[key] = value;
52
- return true;
53
- };
54
- const createToggle = (key, value) => () => () => {
55
- this.storage[key] = value;
56
- return true;
57
- };
58
- return {
59
- // AI Generation commands
60
- aiGenerationSetIsSelection: createBooleanSetter(
61
- "aiGenerationIsSelection"
62
- ),
63
- aiGenerationSetIsLoading: createBooleanSetter("aiGenerationIsLoading"),
64
- aiGenerationHasMessage: createBooleanSetter("aiGenerationHasMessage"),
65
- aiGenerationShow: createToggle("aiGenerationActive", true),
66
- aiGenerationHide: createToggle("aiGenerationActive", false),
67
- // Comment input commands
68
- commentInputShow: createToggle("commentInputVisible", true),
69
- commentInputHide: createToggle("commentInputVisible", false),
70
- // Drag handle commands
71
- setLockDragHandle: createBooleanSetter("lockDragHandle"),
72
- setIsDragging: createBooleanSetter("isDragging"),
73
- // Reset command
74
- resetUiState: () => () => {
75
- Object.assign(this.storage, { ...defaultUiState });
76
- return true;
77
- }
78
- };
79
- },
80
- onCreate() {
81
- this.storage = { ...defaultUiState };
82
- }
83
- });
84
-
85
- // src/hooks/use-ui-editor-state.ts
86
- function useUiEditorState(editor) {
87
- var _a;
88
- return (_a = (0, import_react.useEditorState)({
89
- editor,
90
- selector: ({ editor: editor2 }) => {
91
- if (!editor2) return defaultUiState;
92
- const state = editor2.storage.uiState;
93
- if (!state) {
94
- console.warn(
95
- "Editor storage uiState is not initialized. Ensure you have the uiState extension added to your editor."
96
- );
97
- return defaultUiState;
98
- }
99
- return { ...defaultUiState, ...state };
100
- }
101
- })) != null ? _a : defaultUiState;
102
- }
103
- var use_ui_editor_state_default = useUiEditorState;
104
- // Annotate the CommonJS export names for ESM import in node:
105
- 0 && (module.exports = {
106
- useUiEditorState
107
- });
@@ -1,11 +0,0 @@
1
- "use client";
2
- "use client";
3
- import {
4
- useUiEditorState,
5
- use_ui_editor_state_default
6
- } from "../chunk-BXJYNSWQ.mjs";
7
- import "../chunk-KR42JAVB.mjs";
8
- export {
9
- use_ui_editor_state_default as default,
10
- useUiEditorState
11
- };
@@ -1,12 +0,0 @@
1
- interface WindowSizeState {
2
- width: number;
3
- height: number;
4
- offsetTop: number;
5
- }
6
- /**
7
- * Custom hook to track window size and viewport information
8
- * @returns Current window dimensions and offsetTop
9
- */
10
- declare function useWindowSize(): WindowSizeState;
11
-
12
- export { useWindowSize };
@@ -1,12 +0,0 @@
1
- interface WindowSizeState {
2
- width: number;
3
- height: number;
4
- offsetTop: number;
5
- }
6
- /**
7
- * Custom hook to track window size and viewport information
8
- * @returns Current window dimensions and offsetTop
9
- */
10
- declare function useWindowSize(): WindowSizeState;
11
-
12
- export { useWindowSize };
@@ -1,75 +0,0 @@
1
- "use client";
2
- "use strict";
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __export = (target, all) => {
10
- for (var name in all)
11
- __defProp(target, name, { get: all[name], enumerable: true });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from))
16
- if (!__hasOwnProp.call(to, key) && key !== except)
17
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
- }
19
- return to;
20
- };
21
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
- // If the importer is in node compatibility mode or this is not an ESM
23
- // file that has been converted to a CommonJS file using a Babel-
24
- // compatible transform (i.e. "__esModule" has not been set), then set
25
- // "default" to the CommonJS "module.exports" for node compatibility.
26
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
- mod
28
- ));
29
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
-
31
- // src/hooks/use-window-size.ts
32
- var use_window_size_exports = {};
33
- __export(use_window_size_exports, {
34
- useWindowSize: () => useWindowSize
35
- });
36
- module.exports = __toCommonJS(use_window_size_exports);
37
- var React = __toESM(require("react"));
38
- function useWindowSize() {
39
- const [windowSize, setWindowSize] = React.useState({
40
- width: 0,
41
- height: 0,
42
- offsetTop: 0
43
- });
44
- React.useEffect(() => {
45
- handleResize();
46
- function handleResize() {
47
- if (typeof window === "undefined") return;
48
- const vp = window.visualViewport;
49
- if (!vp) return;
50
- const { width = 0, height = 0, offsetTop = 0 } = vp;
51
- setWindowSize((state) => {
52
- if (width === state.width && height === state.height && offsetTop === state.offsetTop) {
53
- return state;
54
- }
55
- return { width, height, offsetTop };
56
- });
57
- }
58
- const visualViewport = window.visualViewport;
59
- if (visualViewport) {
60
- visualViewport.addEventListener("resize", handleResize);
61
- visualViewport.addEventListener("scroll", handleResize);
62
- }
63
- return () => {
64
- if (visualViewport) {
65
- visualViewport.removeEventListener("resize", handleResize);
66
- visualViewport.removeEventListener("scroll", handleResize);
67
- }
68
- };
69
- }, []);
70
- return windowSize;
71
- }
72
- // Annotate the CommonJS export names for ESM import in node:
73
- 0 && (module.exports = {
74
- useWindowSize
75
- });
@@ -1,7 +0,0 @@
1
- "use client";
2
- import {
3
- useWindowSize
4
- } from "../chunk-DT7ML2P4.mjs";
5
- export {
6
- useWindowSize
7
- };
@@ -1,23 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ButtonProps } from '@kopexa/button';
3
- import { EditorBasicVariants } from '@kopexa/theme';
4
- import { Editor } from '@tiptap/react';
5
-
6
- type EditorHeaderProps = EditorBasicVariants & {
7
- editor?: Editor;
8
- };
9
- declare const EditorHeader: ({ editor: providedEditor, variant, }: EditorHeaderProps) => react_jsx_runtime.JSX.Element | null;
10
- interface MoreOptionsProps extends Omit<ButtonProps, "type"> {
11
- /**
12
- * The Tiptap editor instance.
13
- */
14
- editor?: Editor | null;
15
- /**
16
- * Whether to hide the dropdown when no options are available.
17
- * @default false
18
- */
19
- hideWhenUnavailable?: boolean;
20
- }
21
- declare function MoreOptions({ editor: providedEditor, hideWhenUnavailable, ...props }: MoreOptionsProps): react_jsx_runtime.JSX.Element | null;
22
-
23
- export { EditorHeader, MoreOptions, type MoreOptionsProps };