@multiplatform.one/rich-text 6.1.0 → 6.4.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 (691) hide show
  1. package/README.md +60 -0
  2. package/dist/cjs/RichEditor.cjs +89 -9
  3. package/dist/cjs/RichEditor.native.js +444 -35
  4. package/dist/cjs/RichEditor.native.js.map +1 -1
  5. package/dist/cjs/RichTextEditor/index.cjs +20 -2
  6. package/dist/cjs/RichTextEditor/index.native.js +20 -2
  7. package/dist/cjs/RichTextEditor/index.native.js.map +1 -1
  8. package/dist/cjs/constants.cjs +52 -29
  9. package/dist/cjs/constants.native.js +59 -29
  10. package/dist/cjs/constants.native.js.map +1 -1
  11. package/dist/cjs/editor/BlockDragHandle.cjs +22 -7
  12. package/dist/cjs/editor/BlockDragHandle.native.js +41 -7
  13. package/dist/cjs/editor/BlockDragHandle.native.js.map +1 -1
  14. package/dist/cjs/editor/SlashCommands.cjs +257 -294
  15. package/dist/cjs/editor/SlashCommands.native.js +320 -341
  16. package/dist/cjs/editor/SlashCommands.native.js.map +1 -1
  17. package/dist/cjs/editor/TentapEditor.native.js +59 -12
  18. package/dist/cjs/editor/TentapEditor.native.js.map +1 -1
  19. package/dist/cjs/editor/TiptapEditor.cjs +143 -240
  20. package/dist/cjs/editor/TiptapEditor.native.js +163 -289
  21. package/dist/cjs/editor/TiptapEditor.native.js.map +1 -1
  22. package/dist/cjs/editor/blockAnchor.cjs +43 -0
  23. package/dist/cjs/editor/blockAnchor.native.js +68 -0
  24. package/dist/cjs/editor/blockAnchor.native.js.map +1 -0
  25. package/dist/cjs/editor/capabilities.cjs +37 -0
  26. package/dist/cjs/editor/capabilities.native.js +41 -0
  27. package/dist/cjs/editor/capabilities.native.js.map +1 -0
  28. package/dist/cjs/editor/codeBlockPreview.cjs +230 -0
  29. package/dist/cjs/editor/codeBlockPreview.native.js +265 -0
  30. package/dist/cjs/editor/codeBlockPreview.native.js.map +1 -0
  31. package/dist/cjs/editor/editorStyles.cjs +203 -34
  32. package/dist/cjs/editor/editorStyles.native.js +203 -34
  33. package/dist/cjs/editor/editorStyles.native.js.map +1 -1
  34. package/dist/cjs/editor/emoji.cjs +128 -0
  35. package/dist/cjs/editor/emoji.native.js +184 -0
  36. package/dist/cjs/editor/emoji.native.js.map +1 -0
  37. package/dist/cjs/editor/extensions.cjs +275 -0
  38. package/dist/cjs/editor/extensions.native.js +328 -0
  39. package/dist/cjs/editor/extensions.native.js.map +1 -0
  40. package/dist/cjs/editor/lazyKatex.cjs +78 -0
  41. package/dist/cjs/editor/lazyKatex.native.js +117 -0
  42. package/dist/cjs/editor/lazyKatex.native.js.map +1 -0
  43. package/dist/cjs/editor/markdown.cjs +216 -0
  44. package/dist/cjs/editor/markdown.native.js +278 -0
  45. package/dist/cjs/editor/markdown.native.js.map +1 -0
  46. package/dist/cjs/editor/mathematics.cjs +168 -0
  47. package/dist/cjs/editor/mathematics.native.js +202 -0
  48. package/dist/cjs/editor/mathematics.native.js.map +1 -0
  49. package/dist/cjs/editor/media.cjs +138 -0
  50. package/dist/cjs/editor/media.native.js +172 -0
  51. package/dist/cjs/editor/media.native.js.map +1 -0
  52. package/dist/cjs/editor/mentions.cjs +73 -0
  53. package/dist/cjs/editor/mentions.native.js +84 -0
  54. package/dist/cjs/editor/mentions.native.js.map +1 -0
  55. package/dist/cjs/editor/pasteCleanup.cjs +83 -0
  56. package/dist/cjs/editor/pasteCleanup.native.js +175 -0
  57. package/dist/cjs/editor/pasteCleanup.native.js.map +1 -0
  58. package/dist/cjs/editor/suggestionPopup.cjs +297 -0
  59. package/dist/cjs/editor/suggestionPopup.native.js +327 -0
  60. package/dist/cjs/editor/suggestionPopup.native.js.map +1 -0
  61. package/dist/cjs/index.cjs +5 -2
  62. package/dist/cjs/index.native.js +4 -1
  63. package/dist/cjs/index.native.js.map +1 -1
  64. package/dist/cjs/preview.cjs +263 -0
  65. package/dist/cjs/preview.native.js +294 -0
  66. package/dist/cjs/preview.native.js.map +1 -0
  67. package/dist/cjs/shared/t.cjs +53 -0
  68. package/dist/cjs/shared/t.native.js +56 -0
  69. package/dist/cjs/shared/t.native.js.map +1 -0
  70. package/dist/cjs/shared/url.cjs +35 -0
  71. package/dist/cjs/shared/url.native.js +38 -0
  72. package/dist/cjs/shared/url.native.js.map +1 -0
  73. package/dist/cjs/styled.cjs +13 -6
  74. package/dist/cjs/styled.native.js +13 -6
  75. package/dist/cjs/styled.native.js.map +1 -1
  76. package/dist/cjs/toolbar/BubbleToolbar.cjs +19 -14
  77. package/dist/cjs/toolbar/BubbleToolbar.native.js +22 -15
  78. package/dist/cjs/toolbar/BubbleToolbar.native.js.map +1 -1
  79. package/dist/cjs/toolbar/CodeBlockBubble.cjs +59 -23
  80. package/dist/cjs/toolbar/CodeBlockBubble.native.js +71 -25
  81. package/dist/cjs/toolbar/CodeBlockBubble.native.js.map +1 -1
  82. package/dist/cjs/toolbar/ColorPicker.cjs +19 -54
  83. package/dist/cjs/toolbar/ColorPicker.native.js +81 -179
  84. package/dist/cjs/toolbar/ColorPicker.native.js.map +1 -1
  85. package/dist/cjs/toolbar/FixedToolbar.cjs +39 -13
  86. package/dist/cjs/toolbar/FixedToolbar.native.js +46 -54
  87. package/dist/cjs/toolbar/FixedToolbar.native.js.map +1 -1
  88. package/dist/cjs/toolbar/HeadingPicker.cjs +32 -39
  89. package/dist/cjs/toolbar/HeadingPicker.native.js +61 -51
  90. package/dist/cjs/toolbar/HeadingPicker.native.js.map +1 -1
  91. package/dist/cjs/toolbar/ImageBubble.cjs +20 -43
  92. package/dist/cjs/toolbar/ImageBubble.native.js +20 -43
  93. package/dist/cjs/toolbar/ImageBubble.native.js.map +1 -1
  94. package/dist/cjs/toolbar/ImageDialog.cjs +5 -4
  95. package/dist/cjs/toolbar/ImageDialog.native.js +76 -65
  96. package/dist/cjs/toolbar/ImageDialog.native.js.map +1 -1
  97. package/dist/cjs/toolbar/LinkBubble.cjs +23 -70
  98. package/dist/cjs/toolbar/LinkBubble.native.js +23 -70
  99. package/dist/cjs/toolbar/LinkBubble.native.js.map +1 -1
  100. package/dist/cjs/toolbar/LinkDialog.cjs +19 -18
  101. package/dist/cjs/toolbar/LinkDialog.native.js +86 -83
  102. package/dist/cjs/toolbar/LinkDialog.native.js.map +1 -1
  103. package/dist/cjs/toolbar/ListPicker.cjs +32 -43
  104. package/dist/cjs/toolbar/ListPicker.native.js +43 -44
  105. package/dist/cjs/toolbar/ListPicker.native.js.map +1 -1
  106. package/dist/cjs/toolbar/MathBubble.cjs +159 -0
  107. package/dist/cjs/toolbar/MathBubble.native.js +169 -0
  108. package/dist/cjs/toolbar/MathBubble.native.js.map +1 -0
  109. package/dist/cjs/toolbar/MoreDropdown.cjs +54 -93
  110. package/dist/cjs/toolbar/MoreDropdown.native.js +80 -93
  111. package/dist/cjs/toolbar/MoreDropdown.native.js.map +1 -1
  112. package/dist/cjs/toolbar/StatusBar.cjs +19 -10
  113. package/dist/cjs/toolbar/StatusBar.native.js +19 -10
  114. package/dist/cjs/toolbar/StatusBar.native.js.map +1 -1
  115. package/dist/cjs/toolbar/TableBubble.cjs +91 -96
  116. package/dist/cjs/toolbar/TableBubble.native.js +90 -73
  117. package/dist/cjs/toolbar/TableBubble.native.js.map +1 -1
  118. package/dist/cjs/toolbar/ToolbarButton.cjs +86 -21
  119. package/dist/cjs/toolbar/ToolbarButton.native.js +14 -4
  120. package/dist/cjs/toolbar/ToolbarButton.native.js.map +1 -1
  121. package/dist/cjs/toolbar/icons.cjs +111 -468
  122. package/dist/cjs/toolbar/shortcuts.cjs +73 -24
  123. package/dist/cjs/toolbar/shortcuts.native.js +73 -24
  124. package/dist/cjs/toolbar/shortcuts.native.js.map +1 -1
  125. package/dist/cjs/toolbar/useHorizontalScroll.cjs +25 -5
  126. package/dist/cjs/toolbar/useHorizontalScroll.native.js +25 -5
  127. package/dist/cjs/toolbar/useHorizontalScroll.native.js.map +1 -1
  128. package/dist/cjs/toolbar/useRovingFocus.cjs +80 -0
  129. package/dist/cjs/toolbar/useRovingFocus.native.js +113 -0
  130. package/dist/cjs/toolbar/useRovingFocus.native.js.map +1 -0
  131. package/dist/cjs/types.native.js.map +1 -1
  132. package/dist/esm/RichEditor.mjs +90 -10
  133. package/dist/esm/RichEditor.mjs.map +1 -1
  134. package/dist/esm/RichEditor.native.js +447 -38
  135. package/dist/esm/RichEditor.native.js.map +1 -1
  136. package/dist/esm/RichTextEditor/index.mjs +20 -2
  137. package/dist/esm/RichTextEditor/index.mjs.map +1 -1
  138. package/dist/esm/RichTextEditor/index.native.js +20 -2
  139. package/dist/esm/RichTextEditor/index.native.js.map +1 -1
  140. package/dist/esm/constants.mjs +47 -29
  141. package/dist/esm/constants.mjs.map +1 -1
  142. package/dist/esm/constants.native.js +54 -29
  143. package/dist/esm/constants.native.js.map +1 -1
  144. package/dist/esm/editor/BlockDragHandle.mjs +22 -7
  145. package/dist/esm/editor/BlockDragHandle.mjs.map +1 -1
  146. package/dist/esm/editor/BlockDragHandle.native.js +41 -7
  147. package/dist/esm/editor/BlockDragHandle.native.js.map +1 -1
  148. package/dist/esm/editor/SlashCommands.mjs +258 -295
  149. package/dist/esm/editor/SlashCommands.mjs.map +1 -1
  150. package/dist/esm/editor/SlashCommands.native.js +321 -342
  151. package/dist/esm/editor/SlashCommands.native.js.map +1 -1
  152. package/dist/esm/editor/TentapEditor.native.js +60 -13
  153. package/dist/esm/editor/TentapEditor.native.js.map +1 -1
  154. package/dist/esm/editor/TiptapEditor.mjs +145 -231
  155. package/dist/esm/editor/TiptapEditor.mjs.map +1 -1
  156. package/dist/esm/editor/TiptapEditor.native.js +165 -280
  157. package/dist/esm/editor/TiptapEditor.native.js.map +1 -1
  158. package/dist/esm/editor/blockAnchor.mjs +18 -0
  159. package/dist/esm/editor/blockAnchor.mjs.map +1 -0
  160. package/dist/esm/editor/blockAnchor.native.js +40 -0
  161. package/dist/esm/editor/blockAnchor.native.js.map +1 -0
  162. package/dist/esm/editor/capabilities.mjs +10 -0
  163. package/dist/esm/editor/capabilities.mjs.map +1 -0
  164. package/dist/esm/editor/capabilities.native.js +11 -0
  165. package/dist/esm/editor/capabilities.native.js.map +1 -0
  166. package/dist/esm/editor/codeBlockPreview.mjs +190 -0
  167. package/dist/esm/editor/codeBlockPreview.mjs.map +1 -0
  168. package/dist/esm/editor/codeBlockPreview.native.js +222 -0
  169. package/dist/esm/editor/codeBlockPreview.native.js.map +1 -0
  170. package/dist/esm/editor/editorStyles.mjs +203 -34
  171. package/dist/esm/editor/editorStyles.mjs.map +1 -1
  172. package/dist/esm/editor/editorStyles.native.js +203 -34
  173. package/dist/esm/editor/editorStyles.native.js.map +1 -1
  174. package/dist/esm/editor/emoji.mjs +88 -0
  175. package/dist/esm/editor/emoji.mjs.map +1 -0
  176. package/dist/esm/editor/emoji.native.js +141 -0
  177. package/dist/esm/editor/emoji.native.js.map +1 -0
  178. package/dist/esm/editor/extensions.mjs +236 -0
  179. package/dist/esm/editor/extensions.mjs.map +1 -0
  180. package/dist/esm/editor/extensions.native.js +286 -0
  181. package/dist/esm/editor/extensions.native.js.map +1 -0
  182. package/dist/esm/editor/lazyKatex.mjs +40 -0
  183. package/dist/esm/editor/lazyKatex.mjs.map +1 -0
  184. package/dist/esm/editor/lazyKatex.native.js +76 -0
  185. package/dist/esm/editor/lazyKatex.native.js.map +1 -0
  186. package/dist/esm/editor/markdown.mjs +179 -0
  187. package/dist/esm/editor/markdown.mjs.map +1 -0
  188. package/dist/esm/editor/markdown.native.js +238 -0
  189. package/dist/esm/editor/markdown.native.js.map +1 -0
  190. package/dist/esm/editor/mathematics.mjs +142 -0
  191. package/dist/esm/editor/mathematics.mjs.map +1 -0
  192. package/dist/esm/editor/mathematics.native.js +173 -0
  193. package/dist/esm/editor/mathematics.native.js.map +1 -0
  194. package/dist/esm/editor/media.mjs +113 -0
  195. package/dist/esm/editor/media.mjs.map +1 -0
  196. package/dist/esm/editor/media.native.js +144 -0
  197. package/dist/esm/editor/media.native.js.map +1 -0
  198. package/dist/esm/editor/mentions.mjs +37 -0
  199. package/dist/esm/editor/mentions.mjs.map +1 -0
  200. package/dist/esm/editor/mentions.native.js +45 -0
  201. package/dist/esm/editor/mentions.native.js.map +1 -0
  202. package/dist/esm/editor/pasteCleanup.mjs +57 -0
  203. package/dist/esm/editor/pasteCleanup.mjs.map +1 -0
  204. package/dist/esm/editor/pasteCleanup.native.js +146 -0
  205. package/dist/esm/editor/pasteCleanup.native.js.map +1 -0
  206. package/dist/esm/editor/suggestionPopup.mjs +268 -0
  207. package/dist/esm/editor/suggestionPopup.mjs.map +1 -0
  208. package/dist/esm/editor/suggestionPopup.native.js +295 -0
  209. package/dist/esm/editor/suggestionPopup.native.js.map +1 -0
  210. package/dist/esm/index.mjs +2 -1
  211. package/dist/esm/index.mjs.map +1 -1
  212. package/dist/esm/index.native.js +2 -1
  213. package/dist/esm/index.native.js.map +1 -1
  214. package/dist/esm/preview.mjs +236 -0
  215. package/dist/esm/preview.mjs.map +1 -0
  216. package/dist/esm/preview.native.js +264 -0
  217. package/dist/esm/preview.native.js.map +1 -0
  218. package/dist/esm/shared/t.mjs +17 -0
  219. package/dist/esm/shared/t.mjs.map +1 -0
  220. package/dist/esm/shared/t.native.js +17 -0
  221. package/dist/esm/shared/t.native.js.map +1 -0
  222. package/dist/esm/shared/url.mjs +10 -0
  223. package/dist/esm/shared/url.mjs.map +1 -0
  224. package/dist/esm/shared/url.native.js +10 -0
  225. package/dist/esm/shared/url.native.js.map +1 -0
  226. package/dist/esm/styled.mjs +13 -6
  227. package/dist/esm/styled.mjs.map +1 -1
  228. package/dist/esm/styled.native.js +13 -6
  229. package/dist/esm/styled.native.js.map +1 -1
  230. package/dist/esm/toolbar/BubbleToolbar.mjs +20 -15
  231. package/dist/esm/toolbar/BubbleToolbar.mjs.map +1 -1
  232. package/dist/esm/toolbar/BubbleToolbar.native.js +23 -16
  233. package/dist/esm/toolbar/BubbleToolbar.native.js.map +1 -1
  234. package/dist/esm/toolbar/CodeBlockBubble.mjs +60 -24
  235. package/dist/esm/toolbar/CodeBlockBubble.mjs.map +1 -1
  236. package/dist/esm/toolbar/CodeBlockBubble.native.js +72 -26
  237. package/dist/esm/toolbar/CodeBlockBubble.native.js.map +1 -1
  238. package/dist/esm/toolbar/ColorPicker.mjs +21 -56
  239. package/dist/esm/toolbar/ColorPicker.mjs.map +1 -1
  240. package/dist/esm/toolbar/ColorPicker.native.js +82 -180
  241. package/dist/esm/toolbar/ColorPicker.native.js.map +1 -1
  242. package/dist/esm/toolbar/FixedToolbar.mjs +40 -14
  243. package/dist/esm/toolbar/FixedToolbar.mjs.map +1 -1
  244. package/dist/esm/toolbar/FixedToolbar.native.js +47 -55
  245. package/dist/esm/toolbar/FixedToolbar.native.js.map +1 -1
  246. package/dist/esm/toolbar/HeadingPicker.mjs +34 -41
  247. package/dist/esm/toolbar/HeadingPicker.mjs.map +1 -1
  248. package/dist/esm/toolbar/HeadingPicker.native.js +63 -53
  249. package/dist/esm/toolbar/HeadingPicker.native.js.map +1 -1
  250. package/dist/esm/toolbar/ImageBubble.mjs +20 -43
  251. package/dist/esm/toolbar/ImageBubble.mjs.map +1 -1
  252. package/dist/esm/toolbar/ImageBubble.native.js +20 -43
  253. package/dist/esm/toolbar/ImageBubble.native.js.map +1 -1
  254. package/dist/esm/toolbar/ImageDialog.mjs +5 -4
  255. package/dist/esm/toolbar/ImageDialog.mjs.map +1 -1
  256. package/dist/esm/toolbar/ImageDialog.native.js +75 -64
  257. package/dist/esm/toolbar/ImageDialog.native.js.map +1 -1
  258. package/dist/esm/toolbar/LinkBubble.mjs +23 -70
  259. package/dist/esm/toolbar/LinkBubble.mjs.map +1 -1
  260. package/dist/esm/toolbar/LinkBubble.native.js +23 -70
  261. package/dist/esm/toolbar/LinkBubble.native.js.map +1 -1
  262. package/dist/esm/toolbar/LinkDialog.mjs +17 -16
  263. package/dist/esm/toolbar/LinkDialog.mjs.map +1 -1
  264. package/dist/esm/toolbar/LinkDialog.native.js +84 -80
  265. package/dist/esm/toolbar/LinkDialog.native.js.map +1 -1
  266. package/dist/esm/toolbar/ListPicker.mjs +33 -44
  267. package/dist/esm/toolbar/ListPicker.mjs.map +1 -1
  268. package/dist/esm/toolbar/ListPicker.native.js +44 -45
  269. package/dist/esm/toolbar/ListPicker.native.js.map +1 -1
  270. package/dist/esm/toolbar/MathBubble.mjs +134 -0
  271. package/dist/esm/toolbar/MathBubble.mjs.map +1 -0
  272. package/dist/esm/toolbar/MathBubble.native.js +141 -0
  273. package/dist/esm/toolbar/MathBubble.native.js.map +1 -0
  274. package/dist/esm/toolbar/MoreDropdown.mjs +53 -92
  275. package/dist/esm/toolbar/MoreDropdown.mjs.map +1 -1
  276. package/dist/esm/toolbar/MoreDropdown.native.js +79 -92
  277. package/dist/esm/toolbar/MoreDropdown.native.js.map +1 -1
  278. package/dist/esm/toolbar/StatusBar.mjs +19 -10
  279. package/dist/esm/toolbar/StatusBar.mjs.map +1 -1
  280. package/dist/esm/toolbar/StatusBar.native.js +19 -10
  281. package/dist/esm/toolbar/StatusBar.native.js.map +1 -1
  282. package/dist/esm/toolbar/TableBubble.mjs +91 -96
  283. package/dist/esm/toolbar/TableBubble.mjs.map +1 -1
  284. package/dist/esm/toolbar/TableBubble.native.js +90 -73
  285. package/dist/esm/toolbar/TableBubble.native.js.map +1 -1
  286. package/dist/esm/toolbar/ToolbarButton.mjs +87 -22
  287. package/dist/esm/toolbar/ToolbarButton.mjs.map +1 -1
  288. package/dist/esm/toolbar/ToolbarButton.native.js +14 -4
  289. package/dist/esm/toolbar/ToolbarButton.native.js.map +1 -1
  290. package/dist/esm/toolbar/icons.mjs +109 -469
  291. package/dist/esm/toolbar/icons.mjs.map +1 -1
  292. package/dist/esm/toolbar/shortcuts.mjs +73 -24
  293. package/dist/esm/toolbar/shortcuts.mjs.map +1 -1
  294. package/dist/esm/toolbar/shortcuts.native.js +73 -24
  295. package/dist/esm/toolbar/shortcuts.native.js.map +1 -1
  296. package/dist/esm/toolbar/useHorizontalScroll.mjs +25 -6
  297. package/dist/esm/toolbar/useHorizontalScroll.mjs.map +1 -1
  298. package/dist/esm/toolbar/useHorizontalScroll.native.js +25 -6
  299. package/dist/esm/toolbar/useHorizontalScroll.native.js.map +1 -1
  300. package/dist/esm/toolbar/useRovingFocus.mjs +55 -0
  301. package/dist/esm/toolbar/useRovingFocus.mjs.map +1 -0
  302. package/dist/esm/toolbar/useRovingFocus.native.js +85 -0
  303. package/dist/esm/toolbar/useRovingFocus.native.js.map +1 -0
  304. package/dist/esm/types.mjs.map +1 -1
  305. package/dist/esm/types.native.js.map +1 -1
  306. package/dist/jsx/RichEditor.mjs +90 -10
  307. package/dist/jsx/RichEditor.mjs.map +1 -1
  308. package/dist/jsx/RichEditor.native.js +444 -35
  309. package/dist/jsx/RichEditor.native.js.map +1 -1
  310. package/dist/jsx/RichTextEditor/index.mjs +20 -2
  311. package/dist/jsx/RichTextEditor/index.mjs.map +1 -1
  312. package/dist/jsx/RichTextEditor/index.native.js +20 -2
  313. package/dist/jsx/RichTextEditor/index.native.js.map +1 -1
  314. package/dist/jsx/constants.mjs +47 -29
  315. package/dist/jsx/constants.mjs.map +1 -1
  316. package/dist/jsx/constants.native.js +59 -29
  317. package/dist/jsx/constants.native.js.map +1 -1
  318. package/dist/jsx/editor/BlockDragHandle.mjs +22 -7
  319. package/dist/jsx/editor/BlockDragHandle.mjs.map +1 -1
  320. package/dist/jsx/editor/BlockDragHandle.native.js +41 -7
  321. package/dist/jsx/editor/BlockDragHandle.native.js.map +1 -1
  322. package/dist/jsx/editor/SlashCommands.mjs +258 -295
  323. package/dist/jsx/editor/SlashCommands.mjs.map +1 -1
  324. package/dist/jsx/editor/SlashCommands.native.js +320 -341
  325. package/dist/jsx/editor/SlashCommands.native.js.map +1 -1
  326. package/dist/jsx/editor/TentapEditor.native.js +59 -12
  327. package/dist/jsx/editor/TentapEditor.native.js.map +1 -1
  328. package/dist/jsx/editor/TiptapEditor.mjs +145 -231
  329. package/dist/jsx/editor/TiptapEditor.mjs.map +1 -1
  330. package/dist/jsx/editor/TiptapEditor.native.js +163 -289
  331. package/dist/jsx/editor/TiptapEditor.native.js.map +1 -1
  332. package/dist/jsx/editor/blockAnchor.mjs +18 -0
  333. package/dist/jsx/editor/blockAnchor.mjs.map +1 -0
  334. package/dist/jsx/editor/blockAnchor.native.js +68 -0
  335. package/dist/jsx/editor/blockAnchor.native.js.map +1 -0
  336. package/dist/jsx/editor/capabilities.mjs +10 -0
  337. package/dist/jsx/editor/capabilities.mjs.map +1 -0
  338. package/dist/jsx/editor/capabilities.native.js +41 -0
  339. package/dist/jsx/editor/capabilities.native.js.map +1 -0
  340. package/dist/jsx/editor/codeBlockPreview.mjs +190 -0
  341. package/dist/jsx/editor/codeBlockPreview.mjs.map +1 -0
  342. package/dist/jsx/editor/codeBlockPreview.native.js +265 -0
  343. package/dist/jsx/editor/codeBlockPreview.native.js.map +1 -0
  344. package/dist/jsx/editor/editorStyles.mjs +203 -34
  345. package/dist/jsx/editor/editorStyles.mjs.map +1 -1
  346. package/dist/jsx/editor/editorStyles.native.js +203 -34
  347. package/dist/jsx/editor/editorStyles.native.js.map +1 -1
  348. package/dist/jsx/editor/emoji.mjs +88 -0
  349. package/dist/jsx/editor/emoji.mjs.map +1 -0
  350. package/dist/jsx/editor/emoji.native.js +184 -0
  351. package/dist/jsx/editor/emoji.native.js.map +1 -0
  352. package/dist/jsx/editor/extensions.mjs +236 -0
  353. package/dist/jsx/editor/extensions.mjs.map +1 -0
  354. package/dist/jsx/editor/extensions.native.js +328 -0
  355. package/dist/jsx/editor/extensions.native.js.map +1 -0
  356. package/dist/jsx/editor/lazyKatex.mjs +40 -0
  357. package/dist/jsx/editor/lazyKatex.mjs.map +1 -0
  358. package/dist/jsx/editor/lazyKatex.native.js +117 -0
  359. package/dist/jsx/editor/lazyKatex.native.js.map +1 -0
  360. package/dist/jsx/editor/markdown.mjs +179 -0
  361. package/dist/jsx/editor/markdown.mjs.map +1 -0
  362. package/dist/jsx/editor/markdown.native.js +278 -0
  363. package/dist/jsx/editor/markdown.native.js.map +1 -0
  364. package/dist/jsx/editor/mathematics.mjs +142 -0
  365. package/dist/jsx/editor/mathematics.mjs.map +1 -0
  366. package/dist/jsx/editor/mathematics.native.js +202 -0
  367. package/dist/jsx/editor/mathematics.native.js.map +1 -0
  368. package/dist/jsx/editor/media.mjs +113 -0
  369. package/dist/jsx/editor/media.mjs.map +1 -0
  370. package/dist/jsx/editor/media.native.js +172 -0
  371. package/dist/jsx/editor/media.native.js.map +1 -0
  372. package/dist/jsx/editor/mentions.mjs +37 -0
  373. package/dist/jsx/editor/mentions.mjs.map +1 -0
  374. package/dist/jsx/editor/mentions.native.js +84 -0
  375. package/dist/jsx/editor/mentions.native.js.map +1 -0
  376. package/dist/jsx/editor/pasteCleanup.mjs +57 -0
  377. package/dist/jsx/editor/pasteCleanup.mjs.map +1 -0
  378. package/dist/jsx/editor/pasteCleanup.native.js +175 -0
  379. package/dist/jsx/editor/pasteCleanup.native.js.map +1 -0
  380. package/dist/jsx/editor/suggestionPopup.mjs +268 -0
  381. package/dist/jsx/editor/suggestionPopup.mjs.map +1 -0
  382. package/dist/jsx/editor/suggestionPopup.native.js +327 -0
  383. package/dist/jsx/editor/suggestionPopup.native.js.map +1 -0
  384. package/dist/jsx/index.js +2 -1
  385. package/dist/jsx/index.js.map +1 -1
  386. package/dist/jsx/index.mjs +2 -1
  387. package/dist/jsx/index.mjs.map +1 -1
  388. package/dist/jsx/index.native.js +4 -1
  389. package/dist/jsx/index.native.js.map +1 -1
  390. package/dist/jsx/preview.mjs +236 -0
  391. package/dist/jsx/preview.mjs.map +1 -0
  392. package/dist/jsx/preview.native.js +294 -0
  393. package/dist/jsx/preview.native.js.map +1 -0
  394. package/dist/jsx/shared/t.mjs +17 -0
  395. package/dist/jsx/shared/t.mjs.map +1 -0
  396. package/dist/jsx/shared/t.native.js +56 -0
  397. package/dist/jsx/shared/t.native.js.map +1 -0
  398. package/dist/jsx/shared/url.mjs +10 -0
  399. package/dist/jsx/shared/url.mjs.map +1 -0
  400. package/dist/jsx/shared/url.native.js +38 -0
  401. package/dist/jsx/shared/url.native.js.map +1 -0
  402. package/dist/jsx/styled.mjs +13 -6
  403. package/dist/jsx/styled.mjs.map +1 -1
  404. package/dist/jsx/styled.native.js +13 -6
  405. package/dist/jsx/styled.native.js.map +1 -1
  406. package/dist/jsx/toolbar/BubbleToolbar.mjs +20 -15
  407. package/dist/jsx/toolbar/BubbleToolbar.mjs.map +1 -1
  408. package/dist/jsx/toolbar/BubbleToolbar.native.js +22 -15
  409. package/dist/jsx/toolbar/BubbleToolbar.native.js.map +1 -1
  410. package/dist/jsx/toolbar/CodeBlockBubble.mjs +60 -24
  411. package/dist/jsx/toolbar/CodeBlockBubble.mjs.map +1 -1
  412. package/dist/jsx/toolbar/CodeBlockBubble.native.js +71 -25
  413. package/dist/jsx/toolbar/CodeBlockBubble.native.js.map +1 -1
  414. package/dist/jsx/toolbar/ColorPicker.mjs +21 -56
  415. package/dist/jsx/toolbar/ColorPicker.mjs.map +1 -1
  416. package/dist/jsx/toolbar/ColorPicker.native.js +81 -179
  417. package/dist/jsx/toolbar/ColorPicker.native.js.map +1 -1
  418. package/dist/jsx/toolbar/FixedToolbar.mjs +40 -14
  419. package/dist/jsx/toolbar/FixedToolbar.mjs.map +1 -1
  420. package/dist/jsx/toolbar/FixedToolbar.native.js +46 -54
  421. package/dist/jsx/toolbar/FixedToolbar.native.js.map +1 -1
  422. package/dist/jsx/toolbar/HeadingPicker.mjs +34 -41
  423. package/dist/jsx/toolbar/HeadingPicker.mjs.map +1 -1
  424. package/dist/jsx/toolbar/HeadingPicker.native.js +61 -51
  425. package/dist/jsx/toolbar/HeadingPicker.native.js.map +1 -1
  426. package/dist/jsx/toolbar/ImageBubble.mjs +20 -43
  427. package/dist/jsx/toolbar/ImageBubble.mjs.map +1 -1
  428. package/dist/jsx/toolbar/ImageBubble.native.js +20 -43
  429. package/dist/jsx/toolbar/ImageBubble.native.js.map +1 -1
  430. package/dist/jsx/toolbar/ImageDialog.mjs +5 -4
  431. package/dist/jsx/toolbar/ImageDialog.mjs.map +1 -1
  432. package/dist/jsx/toolbar/ImageDialog.native.js +76 -65
  433. package/dist/jsx/toolbar/ImageDialog.native.js.map +1 -1
  434. package/dist/jsx/toolbar/LinkBubble.mjs +23 -70
  435. package/dist/jsx/toolbar/LinkBubble.mjs.map +1 -1
  436. package/dist/jsx/toolbar/LinkBubble.native.js +23 -70
  437. package/dist/jsx/toolbar/LinkBubble.native.js.map +1 -1
  438. package/dist/jsx/toolbar/LinkDialog.mjs +17 -16
  439. package/dist/jsx/toolbar/LinkDialog.mjs.map +1 -1
  440. package/dist/jsx/toolbar/LinkDialog.native.js +86 -83
  441. package/dist/jsx/toolbar/LinkDialog.native.js.map +1 -1
  442. package/dist/jsx/toolbar/ListPicker.mjs +33 -44
  443. package/dist/jsx/toolbar/ListPicker.mjs.map +1 -1
  444. package/dist/jsx/toolbar/ListPicker.native.js +43 -44
  445. package/dist/jsx/toolbar/ListPicker.native.js.map +1 -1
  446. package/dist/jsx/toolbar/MathBubble.mjs +134 -0
  447. package/dist/jsx/toolbar/MathBubble.mjs.map +1 -0
  448. package/dist/jsx/toolbar/MathBubble.native.js +169 -0
  449. package/dist/jsx/toolbar/MathBubble.native.js.map +1 -0
  450. package/dist/jsx/toolbar/MoreDropdown.mjs +53 -92
  451. package/dist/jsx/toolbar/MoreDropdown.mjs.map +1 -1
  452. package/dist/jsx/toolbar/MoreDropdown.native.js +80 -93
  453. package/dist/jsx/toolbar/MoreDropdown.native.js.map +1 -1
  454. package/dist/jsx/toolbar/StatusBar.mjs +19 -10
  455. package/dist/jsx/toolbar/StatusBar.mjs.map +1 -1
  456. package/dist/jsx/toolbar/StatusBar.native.js +19 -10
  457. package/dist/jsx/toolbar/StatusBar.native.js.map +1 -1
  458. package/dist/jsx/toolbar/TableBubble.mjs +91 -96
  459. package/dist/jsx/toolbar/TableBubble.mjs.map +1 -1
  460. package/dist/jsx/toolbar/TableBubble.native.js +90 -73
  461. package/dist/jsx/toolbar/TableBubble.native.js.map +1 -1
  462. package/dist/jsx/toolbar/ToolbarButton.mjs +87 -22
  463. package/dist/jsx/toolbar/ToolbarButton.mjs.map +1 -1
  464. package/dist/jsx/toolbar/ToolbarButton.native.js +14 -4
  465. package/dist/jsx/toolbar/ToolbarButton.native.js.map +1 -1
  466. package/dist/jsx/toolbar/icons.mjs +109 -469
  467. package/dist/jsx/toolbar/icons.mjs.map +1 -1
  468. package/dist/jsx/toolbar/shortcuts.mjs +73 -24
  469. package/dist/jsx/toolbar/shortcuts.mjs.map +1 -1
  470. package/dist/jsx/toolbar/shortcuts.native.js +73 -24
  471. package/dist/jsx/toolbar/shortcuts.native.js.map +1 -1
  472. package/dist/jsx/toolbar/useHorizontalScroll.mjs +25 -6
  473. package/dist/jsx/toolbar/useHorizontalScroll.mjs.map +1 -1
  474. package/dist/jsx/toolbar/useHorizontalScroll.native.js +25 -5
  475. package/dist/jsx/toolbar/useHorizontalScroll.native.js.map +1 -1
  476. package/dist/jsx/toolbar/useRovingFocus.mjs +55 -0
  477. package/dist/jsx/toolbar/useRovingFocus.mjs.map +1 -0
  478. package/dist/jsx/toolbar/useRovingFocus.native.js +113 -0
  479. package/dist/jsx/toolbar/useRovingFocus.native.js.map +1 -0
  480. package/dist/jsx/types.mjs.map +1 -1
  481. package/dist/jsx/types.native.js.map +1 -1
  482. package/package.json +28 -13
  483. package/src/RichEditor.native.tsx +471 -49
  484. package/src/RichEditor.stories.tsx +190 -0
  485. package/src/RichEditor.tsx +126 -7
  486. package/src/RichTextEditor/index.tsx +54 -3
  487. package/src/RichTextEditor/richTextEditor.spec.tsx +11 -4
  488. package/src/constants.ts +86 -24
  489. package/src/editor/BlockDragHandle.ts +30 -5
  490. package/src/editor/SlashCommands.tsx +238 -293
  491. package/src/editor/TentapEditor.native.tsx +81 -17
  492. package/src/editor/TiptapEditor.tsx +202 -265
  493. package/src/editor/blockAnchor.spec.ts +70 -0
  494. package/src/editor/blockAnchor.ts +42 -0
  495. package/src/editor/capabilities.spec.ts +190 -0
  496. package/src/editor/capabilities.ts +76 -0
  497. package/src/editor/codeBlockPreview.spec.ts +144 -0
  498. package/src/editor/codeBlockPreview.ts +266 -0
  499. package/src/editor/css.d.ts +2 -0
  500. package/src/editor/details.spec.ts +48 -0
  501. package/src/editor/editorStyles.spec.ts +25 -0
  502. package/src/editor/editorStyles.ts +218 -34
  503. package/src/editor/emoji.spec.ts +88 -0
  504. package/src/editor/emoji.ts +147 -0
  505. package/src/editor/emojilib.d.ts +16 -0
  506. package/src/editor/extensions.ts +315 -0
  507. package/src/editor/lazyKatex.spec.ts +38 -0
  508. package/src/editor/lazyKatex.ts +68 -0
  509. package/src/editor/markdown.spec.ts +196 -0
  510. package/src/editor/markdown.ts +249 -0
  511. package/src/editor/mathematics.spec.ts +97 -0
  512. package/src/editor/mathematics.ts +179 -0
  513. package/src/editor/media.spec.ts +121 -0
  514. package/src/editor/media.ts +133 -0
  515. package/src/editor/mentions.spec.ts +41 -0
  516. package/src/editor/mentions.ts +55 -0
  517. package/src/editor/pasteCleanup.spec.ts +84 -0
  518. package/src/editor/pasteCleanup.ts +124 -0
  519. package/src/editor/suggestionPopup.spec.tsx +105 -0
  520. package/src/editor/suggestionPopup.tsx +414 -0
  521. package/src/editor/tiptapEditor.spec.tsx +15 -8
  522. package/src/exports.spec.ts +4 -2
  523. package/src/index.ts +10 -1
  524. package/src/integration.spec.tsx +38 -9
  525. package/src/preview.spec.ts +130 -0
  526. package/src/preview.ts +287 -0
  527. package/src/richEditor.spec.tsx +10 -3
  528. package/src/shared/t.ts +25 -0
  529. package/src/shared/url.ts +16 -0
  530. package/src/styled.ts +13 -6
  531. package/src/toolbar/BubbleToolbar.tsx +48 -33
  532. package/src/toolbar/CodeBlockBubble.tsx +66 -28
  533. package/src/toolbar/ColorPicker.native.tsx +126 -0
  534. package/src/toolbar/ColorPicker.tsx +23 -67
  535. package/src/toolbar/FixedToolbar.native.tsx +51 -51
  536. package/src/toolbar/FixedToolbar.tsx +73 -21
  537. package/src/toolbar/HeadingPicker.tsx +46 -38
  538. package/src/toolbar/ImageBubble.tsx +26 -44
  539. package/src/toolbar/ImageDialog.native.tsx +97 -0
  540. package/src/toolbar/ImageDialog.tsx +5 -4
  541. package/src/toolbar/LinkBubble.tsx +27 -64
  542. package/src/toolbar/LinkDialog.native.tsx +117 -0
  543. package/src/toolbar/LinkDialog.tsx +28 -24
  544. package/src/toolbar/ListPicker.tsx +47 -43
  545. package/src/toolbar/MathBubble.tsx +140 -0
  546. package/src/toolbar/MoreDropdown.tsx +79 -62
  547. package/src/toolbar/StatusBar.tsx +13 -8
  548. package/src/toolbar/TableBubble.tsx +136 -95
  549. package/src/toolbar/ToolbarButton.native.tsx +14 -4
  550. package/src/toolbar/ToolbarButton.tsx +98 -19
  551. package/src/toolbar/bubbleToolbar.spec.tsx +2 -1
  552. package/src/toolbar/fixedToolbar.spec.tsx +4 -2
  553. package/src/toolbar/icons.tsx +113 -323
  554. package/src/toolbar/shortcuts.ts +77 -24
  555. package/src/toolbar/toolbarPrimitives.spec.tsx +29 -1
  556. package/src/toolbar/toolbarSubComponents.spec.tsx +4 -2
  557. package/src/toolbar/useHorizontalScroll.spec.ts +67 -0
  558. package/src/toolbar/useHorizontalScroll.tsx +39 -12
  559. package/src/toolbar/useRovingFocus.spec.tsx +100 -0
  560. package/src/toolbar/useRovingFocus.ts +82 -0
  561. package/src/types.spec.ts +40 -1
  562. package/src/types.ts +56 -1
  563. package/types/RichEditor.d.ts +51 -0
  564. package/types/RichEditor.d.ts.map +1 -0
  565. package/types/RichEditor.native.d.ts +59 -0
  566. package/types/RichEditor.native.d.ts.map +1 -0
  567. package/types/RichTextEditor/index.d.ts +77 -0
  568. package/types/RichTextEditor/index.d.ts.map +1 -0
  569. package/types/constants.d.ts +49 -0
  570. package/types/constants.d.ts.map +1 -0
  571. package/types/context.d.ts +10 -0
  572. package/types/context.d.ts.map +1 -0
  573. package/types/editor/BlockDragHandle.d.ts +8 -0
  574. package/types/editor/BlockDragHandle.d.ts.map +1 -0
  575. package/types/editor/MarkdownPaste.d.ts +8 -0
  576. package/types/editor/MarkdownPaste.d.ts.map +1 -0
  577. package/types/editor/SlashCommands.d.ts +24 -0
  578. package/types/editor/SlashCommands.d.ts.map +1 -0
  579. package/types/editor/TentapEditor.native.d.ts +21 -0
  580. package/types/editor/TentapEditor.native.d.ts.map +1 -0
  581. package/types/editor/TiptapEditor.d.ts +24 -0
  582. package/types/editor/TiptapEditor.d.ts.map +1 -0
  583. package/types/editor/blockAnchor.d.ts +25 -0
  584. package/types/editor/blockAnchor.d.ts.map +1 -0
  585. package/types/editor/capabilities.d.ts +29 -0
  586. package/types/editor/capabilities.d.ts.map +1 -0
  587. package/types/editor/codeBlockPreview.d.ts +51 -0
  588. package/types/editor/codeBlockPreview.d.ts.map +1 -0
  589. package/types/editor/editorStyles.d.ts +25 -0
  590. package/types/editor/editorStyles.d.ts.map +1 -0
  591. package/types/editor/emoji.d.ts +45 -0
  592. package/types/editor/emoji.d.ts.map +1 -0
  593. package/types/editor/extensions.d.ts +41 -0
  594. package/types/editor/extensions.d.ts.map +1 -0
  595. package/types/editor/index.d.ts +11 -0
  596. package/types/editor/index.d.ts.map +1 -0
  597. package/types/editor/lazyKatex.d.ts +33 -0
  598. package/types/editor/lazyKatex.d.ts.map +1 -0
  599. package/types/editor/markdown.d.ts +24 -0
  600. package/types/editor/markdown.d.ts.map +1 -0
  601. package/types/editor/mathematics.d.ts +44 -0
  602. package/types/editor/mathematics.d.ts.map +1 -0
  603. package/types/editor/media.d.ts +32 -0
  604. package/types/editor/media.d.ts.map +1 -0
  605. package/types/editor/mentions.d.ts +15 -0
  606. package/types/editor/mentions.d.ts.map +1 -0
  607. package/types/editor/pasteCleanup.d.ts +24 -0
  608. package/types/editor/pasteCleanup.d.ts.map +1 -0
  609. package/types/editor/suggestionPopup.d.ts +113 -0
  610. package/types/editor/suggestionPopup.d.ts.map +1 -0
  611. package/types/editor/types.d.ts +80 -0
  612. package/types/editor/types.d.ts.map +1 -0
  613. package/types/editor/useEditorState.d.ts +19 -0
  614. package/types/editor/useEditorState.d.ts.map +1 -0
  615. package/types/index.d.ts +12 -0
  616. package/types/index.d.ts.map +1 -0
  617. package/types/preview.d.ts +44 -0
  618. package/types/preview.d.ts.map +1 -0
  619. package/types/shared/t.d.ts +10 -0
  620. package/types/shared/t.d.ts.map +1 -0
  621. package/types/shared/url.d.ts +9 -0
  622. package/types/shared/url.d.ts.map +1 -0
  623. package/types/styled.d.ts +40 -0
  624. package/types/styled.d.ts.map +1 -0
  625. package/types/toolbar/BubbleToolbar.d.ts +25 -0
  626. package/types/toolbar/BubbleToolbar.d.ts.map +1 -0
  627. package/types/toolbar/CodeBlockBubble.d.ts +10 -0
  628. package/types/toolbar/CodeBlockBubble.d.ts.map +1 -0
  629. package/types/toolbar/ColorPicker.d.ts +15 -0
  630. package/types/toolbar/ColorPicker.d.ts.map +1 -0
  631. package/types/toolbar/ColorPicker.native.d.ts +20 -0
  632. package/types/toolbar/ColorPicker.native.d.ts.map +1 -0
  633. package/types/toolbar/FixedToolbar.d.ts +34 -0
  634. package/types/toolbar/FixedToolbar.d.ts.map +1 -0
  635. package/types/toolbar/FixedToolbar.native.d.ts +30 -0
  636. package/types/toolbar/FixedToolbar.native.d.ts.map +1 -0
  637. package/types/toolbar/HeadingPicker.d.ts +14 -0
  638. package/types/toolbar/HeadingPicker.d.ts.map +1 -0
  639. package/types/toolbar/ImageBubble.d.ts +10 -0
  640. package/types/toolbar/ImageBubble.d.ts.map +1 -0
  641. package/types/toolbar/ImageDialog.d.ts +12 -0
  642. package/types/toolbar/ImageDialog.d.ts.map +1 -0
  643. package/types/toolbar/ImageDialog.native.d.ts +15 -0
  644. package/types/toolbar/ImageDialog.native.d.ts.map +1 -0
  645. package/types/toolbar/LinkBubble.d.ts +10 -0
  646. package/types/toolbar/LinkBubble.d.ts.map +1 -0
  647. package/types/toolbar/LinkDialog.d.ts +20 -0
  648. package/types/toolbar/LinkDialog.d.ts.map +1 -0
  649. package/types/toolbar/LinkDialog.native.d.ts +18 -0
  650. package/types/toolbar/LinkDialog.native.d.ts.map +1 -0
  651. package/types/toolbar/ListPicker.d.ts +14 -0
  652. package/types/toolbar/ListPicker.d.ts.map +1 -0
  653. package/types/toolbar/MathBubble.d.ts +11 -0
  654. package/types/toolbar/MathBubble.d.ts.map +1 -0
  655. package/types/toolbar/MoreDropdown.d.ts +15 -0
  656. package/types/toolbar/MoreDropdown.d.ts.map +1 -0
  657. package/types/toolbar/ResizeHandle.d.ts +11 -0
  658. package/types/toolbar/ResizeHandle.d.ts.map +1 -0
  659. package/types/toolbar/StatusBar.d.ts +11 -0
  660. package/types/toolbar/StatusBar.d.ts.map +1 -0
  661. package/types/toolbar/TableBubble.d.ts +13 -0
  662. package/types/toolbar/TableBubble.d.ts.map +1 -0
  663. package/types/toolbar/ToolbarButton.d.ts +35 -0
  664. package/types/toolbar/ToolbarButton.d.ts.map +1 -0
  665. package/types/toolbar/ToolbarButton.native.d.ts +30 -0
  666. package/types/toolbar/ToolbarButton.native.d.ts.map +1 -0
  667. package/types/toolbar/ToolbarGroup.d.ts +14 -0
  668. package/types/toolbar/ToolbarGroup.d.ts.map +1 -0
  669. package/types/toolbar/icons.d.ts +52 -0
  670. package/types/toolbar/icons.d.ts.map +1 -0
  671. package/types/toolbar/icons.native.d.ts +41 -0
  672. package/types/toolbar/icons.native.d.ts.map +1 -0
  673. package/types/toolbar/shortcuts.d.ts +34 -0
  674. package/types/toolbar/shortcuts.d.ts.map +1 -0
  675. package/types/toolbar/useHorizontalScroll.d.ts +43 -0
  676. package/types/toolbar/useHorizontalScroll.d.ts.map +1 -0
  677. package/types/toolbar/useRovingFocus.d.ts +10 -0
  678. package/types/toolbar/useRovingFocus.d.ts.map +1 -0
  679. package/types/types.d.ts +147 -0
  680. package/types/types.d.ts.map +1 -0
  681. package/dist/cjs/RichEditor.stories.cjs +0 -327
  682. package/dist/cjs/RichEditor.stories.native.js +0 -342
  683. package/dist/cjs/RichEditor.stories.native.js.map +0 -1
  684. package/dist/esm/RichEditor.stories.mjs +0 -291
  685. package/dist/esm/RichEditor.stories.mjs.map +0 -1
  686. package/dist/esm/RichEditor.stories.native.js +0 -303
  687. package/dist/esm/RichEditor.stories.native.js.map +0 -1
  688. package/dist/jsx/RichEditor.stories.mjs +0 -291
  689. package/dist/jsx/RichEditor.stories.mjs.map +0 -1
  690. package/dist/jsx/RichEditor.stories.native.js +0 -342
  691. package/dist/jsx/RichEditor.stories.native.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FixedToolbar.d.ts","sourceRoot":"","sources":["../../src/toolbar/FixedToolbar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAqC/F,MAAM,WAAW,iBAAiB;IAChC,8BAA8B;IAC9B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;IACjD,2BAA2B;IAC3B,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5B,iFAAiF;IACjF,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+CAA+C;IAC/C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yEAAyE;IACzE,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,oEAAoE;IACpE,MAAM,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC1B,8EAA8E;IAC9E,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,qDAAqD;IACrD,sBAAsB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CAClD;AAeD,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,KAA0B,EAC1B,QAAQ,EACR,YAAqB,EACrB,QAAQ,EACR,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,sBAAsB,GACvB,EAAE,iBAAiB,2CAgNnB"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Fixed toolbar for the rich text editor (native)
3
+ *
4
+ * Same interface as web version but uses NATIVE_SUPPORTED_COMMANDS to hide
5
+ * unsupported features entirely (not show disabled buttons).
6
+ * Uses React Native ScrollView horizontal instead of CSS-based scroll.
7
+ */
8
+ import type { EditorState, RichEditorRef, ToolbarSection } from "../types";
9
+ export interface FixedToolbarProps {
10
+ /** Reference to the editor */
11
+ editorRef: React.RefObject<RichEditorRef | null>;
12
+ /** Current editor state */
13
+ state?: EditorState;
14
+ /** Toolbar sections to show (shows all when omitted) */
15
+ sections?: ToolbarSection[];
16
+ /** Whether the toolbar has an error state */
17
+ hasError?: boolean;
18
+ /**
19
+ * Which edge the toolbar docks to (default: "top"). "bottom" flips the
20
+ * hairline to the top edge -- used by the fullscreen modal where the
21
+ * toolbar rides above the keyboard.
22
+ */
23
+ docked?: "top" | "bottom";
24
+ /** Interface parity with web (native fullscreen is the modal; no toggle button) */
25
+ fullscreen?: boolean;
26
+ /** Interface parity with web (ignored on native) */
27
+ onFullscreenToggle?: () => void;
28
+ }
29
+ export declare function FixedToolbar({ editorRef, state, sections, hasError, docked, }: FixedToolbarProps): import("react/jsx-runtime").JSX.Element;
30
+ //# sourceMappingURL=FixedToolbar.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FixedToolbar.native.d.ts","sourceRoot":"","sources":["../../src/toolbar/FixedToolbar.native.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAiB,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AA6B1F,MAAM,WAAW,iBAAiB;IAChC,8BAA8B;IAC9B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;IACjD,2BAA2B;IAC3B,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5B,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC1B,mFAAmF;IACnF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oDAAoD;IACpD,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;CACjC;AA+BD,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,KAA0B,EAC1B,QAAQ,EACR,QAAQ,EACR,MAAc,GACf,EAAE,iBAAiB,2CA6RnB"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Heading picker dropdown for selecting heading levels
3
+ */
4
+ import type { EditorState, RichEditorRef } from "../types";
5
+ export interface HeadingPickerProps {
6
+ /** Reference to the editor */
7
+ editorRef: React.RefObject<RichEditorRef | null>;
8
+ /** Current editor state */
9
+ state: EditorState;
10
+ /** Whether the picker is disabled */
11
+ disabled?: boolean;
12
+ }
13
+ export declare function HeadingPicker({ editorRef, state, disabled }: HeadingPickerProps): import("react/jsx-runtime").JSX.Element;
14
+ //# sourceMappingURL=HeadingPicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeadingPicker.d.ts","sourceRoot":"","sources":["../../src/toolbar/HeadingPicker.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,KAAK,EAAiB,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAQ1E,MAAM,WAAW,kBAAkB;IACjC,8BAA8B;IAC9B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;IACjD,2BAA2B;IAC3B,KAAK,EAAE,WAAW,CAAC;IACnB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAoGD,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,kBAAkB,2CAsD/E"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Bubble menu shown when an image node is selected.
3
+ * Provides options to update alt text or remove the image.
4
+ */
5
+ import type { Editor } from "@tiptap/react";
6
+ export interface ImageBubbleProps {
7
+ editor: Editor | null;
8
+ }
9
+ export declare function ImageBubble({ editor }: ImageBubbleProps): import("react/jsx-runtime").JSX.Element | null;
10
+ //# sourceMappingURL=ImageBubble.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageBubble.d.ts","sourceRoot":"","sources":["../../src/toolbar/ImageBubble.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAS5C,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE,gBAAgB,kDAwFvD"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Image dialog popover for inserting images via URL
3
+ */
4
+ import type { RichEditorRef } from "../types";
5
+ export interface ImageDialogProps {
6
+ /** Reference to the editor */
7
+ editorRef: React.RefObject<RichEditorRef | null>;
8
+ /** Whether the dialog is disabled */
9
+ disabled?: boolean;
10
+ }
11
+ export declare function ImageDialog({ editorRef, disabled }: ImageDialogProps): import("react/jsx-runtime").JSX.Element;
12
+ //# sourceMappingURL=ImageDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageDialog.d.ts","sourceRoot":"","sources":["../../src/toolbar/ImageDialog.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAU9C,MAAM,WAAW,gBAAgB;IAC/B,8BAA8B;IAC9B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;IACjD,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAMD,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,gBAAgB,2CAgEpE"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Image dialog for native: a small modal with a URL input.
3
+ *
4
+ * The web version uses a Popover; native uses an RN Modal. Same command
5
+ * contract: executeCommand("image", { src }).
6
+ */
7
+ import type { RichEditorRef } from "../types";
8
+ export interface ImageDialogProps {
9
+ /** Reference to the editor */
10
+ editorRef: React.RefObject<RichEditorRef | null>;
11
+ /** Whether the dialog is disabled */
12
+ disabled?: boolean;
13
+ }
14
+ export declare function ImageDialog({ editorRef, disabled }: ImageDialogProps): import("react/jsx-runtime").JSX.Element;
15
+ //# sourceMappingURL=ImageDialog.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageDialog.native.d.ts","sourceRoot":"","sources":["../../src/toolbar/ImageDialog.native.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAK9C,MAAM,WAAW,gBAAgB;IAC/B,8BAA8B;IAC9B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;IACjD,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,gBAAgB,2CA+DpE"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Bubble menu shown when cursor is on a link.
3
+ * Displays the URL with options to visit, edit, or unlink.
4
+ */
5
+ import type { Editor } from "@tiptap/react";
6
+ export interface LinkBubbleProps {
7
+ editor: Editor | null;
8
+ }
9
+ export declare function LinkBubble({ editor }: LinkBubbleProps): import("react/jsx-runtime").JSX.Element | null;
10
+ //# sourceMappingURL=LinkBubble.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinkBubble.d.ts","sourceRoot":"","sources":["../../src/toolbar/LinkBubble.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAS5C,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,eAAe,kDA6GrD"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Link dialog popover for inserting and editing links
3
+ */
4
+ import type { EditorState, RichEditorRef } from "../types";
5
+ import { normalizeUrl } from "../shared/url";
6
+ export interface LinkDialogProps {
7
+ /** Reference to the editor */
8
+ editorRef: React.RefObject<RichEditorRef | null>;
9
+ /** Current editor state */
10
+ state: EditorState;
11
+ /** Whether the dialog is disabled */
12
+ disabled?: boolean;
13
+ /** Controlled open state (internal when omitted) — Mod+K wiring */
14
+ open?: boolean;
15
+ /** Called when the open state changes */
16
+ onOpenChange?: (open: boolean) => void;
17
+ }
18
+ export declare function LinkDialog({ editorRef, state, disabled, open: openProp, onOpenChange, }: LinkDialogProps): import("react/jsx-runtime").JSX.Element;
19
+ export { normalizeUrl };
20
+ //# sourceMappingURL=LinkDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinkDialog.d.ts","sourceRoot":"","sources":["../../src/toolbar/LinkDialog.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAK3D,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAM7C,MAAM,WAAW,eAAe;IAC9B,8BAA8B;IAC9B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;IACjD,2BAA2B;IAC3B,KAAK,EAAE,WAAW,CAAC;IACnB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mEAAmE;IACnE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,yCAAyC;IACzC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC;AAMD,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,KAAK,EACL,QAAQ,EACR,IAAI,EAAE,QAAQ,EACd,YAAY,GACb,EAAE,eAAe,2CAmFjB;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Link dialog for native: a small modal with a URL input.
3
+ *
4
+ * The web version uses a Popover; native uses an RN Modal (10Tap has no
5
+ * floating anchors). Same command contract: executeCommand("link",
6
+ * { href }) to set, { href: null } to remove.
7
+ */
8
+ import type { EditorState, RichEditorRef } from "../types";
9
+ export interface LinkDialogProps {
10
+ /** Reference to the editor */
11
+ editorRef: React.RefObject<RichEditorRef | null>;
12
+ /** Current editor state */
13
+ state: EditorState;
14
+ /** Whether the dialog is disabled */
15
+ disabled?: boolean;
16
+ }
17
+ export declare function LinkDialog({ editorRef, state, disabled }: LinkDialogProps): import("react/jsx-runtime").JSX.Element;
18
+ //# sourceMappingURL=LinkDialog.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinkDialog.native.d.ts","sourceRoot":"","sources":["../../src/toolbar/LinkDialog.native.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAM3D,MAAM,WAAW,eAAe;IAC9B,8BAA8B;IAC9B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;IACjD,2BAA2B;IAC3B,KAAK,EAAE,WAAW,CAAC;IACnB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,eAAe,2CA+EzE"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * List picker dropdown for selecting list types
3
+ */
4
+ import type { EditorState, RichEditorRef } from "../types";
5
+ export interface ListPickerProps {
6
+ /** Reference to the editor */
7
+ editorRef: React.RefObject<RichEditorRef | null>;
8
+ /** Current editor state */
9
+ state: EditorState;
10
+ /** Whether the picker is disabled */
11
+ disabled?: boolean;
12
+ }
13
+ export declare function ListPicker({ editorRef, state, disabled }: ListPickerProps): import("react/jsx-runtime").JSX.Element;
14
+ //# sourceMappingURL=ListPicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListPicker.d.ts","sourceRoot":"","sources":["../../src/toolbar/ListPicker.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAiB,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAS1E,MAAM,WAAW,eAAe;IAC9B,8BAA8B;IAC9B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;IACjD,2BAA2B;IAC3B,KAAK,EAAE,WAAW,CAAC;IACnB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAiDD,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,eAAe,2CAqDzE"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Bubble menu shown when an inline math node is selected.
3
+ * Displays the TeX source with edit (live validation) and remove actions —
4
+ * the editing surface GitLab gives dollar math in its content editor.
5
+ */
6
+ import type { Editor } from "@tiptap/react";
7
+ export interface MathBubbleProps {
8
+ editor: Editor | null;
9
+ }
10
+ export declare function MathBubble({ editor }: MathBubbleProps): import("react/jsx-runtime").JSX.Element | null;
11
+ //# sourceMappingURL=MathBubble.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MathBubble.d.ts","sourceRoot":"","sources":["../../src/toolbar/MathBubble.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAU5C,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,eAAe,kDAsHrD"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * "More" overflow dropdown for less-frequently-used toolbar actions.
3
+ * Groups: Subscript, Superscript | Alignment | Horizontal Rule, Clear Formatting
4
+ */
5
+ import type React from "react";
6
+ import type { EditorCapabilities, EditorState, RichEditorRef } from "../types";
7
+ export interface MoreDropdownProps {
8
+ editorRef: React.RefObject<RichEditorRef | null>;
9
+ state: EditorState;
10
+ /** Capability surface — markdown drops sub/superscript and alignment */
11
+ capabilities?: EditorCapabilities;
12
+ disabled?: boolean;
13
+ }
14
+ export declare function MoreDropdown({ editorRef, state, capabilities, disabled, }: MoreDropdownProps): import("react/jsx-runtime").JSX.Element;
15
+ //# sourceMappingURL=MoreDropdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MoreDropdown.d.ts","sourceRoot":"","sources":["../../src/toolbar/MoreDropdown.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,kBAAkB,EAAiB,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAgB9F,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;IACjD,KAAK,EAAE,WAAW,CAAC;IACnB,wEAAwE;IACxE,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAwGD,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,KAAK,EACL,YAAqB,EACrB,QAAQ,GACT,EAAE,iBAAiB,2CA6DnB"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Drag-to-resize handle for the editor container.
3
+ * Positioned at the bottom-right corner; dragging vertically adjusts editor height.
4
+ */
5
+ export interface ResizeHandleProps {
6
+ containerRef: React.RefObject<HTMLElement | null>;
7
+ minHeight?: number;
8
+ maxHeight?: number;
9
+ }
10
+ export declare function ResizeHandle({ containerRef, minHeight, maxHeight }: ResizeHandleProps): import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=ResizeHandle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResizeHandle.d.ts","sourceRoot":"","sources":["../../src/toolbar/ResizeHandle.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAYD,wBAAgB,YAAY,CAAC,EAAE,YAAY,EAAE,SAAe,EAAE,SAAS,EAAE,EAAE,iBAAiB,2CAuD3F"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Status bar footer showing word/character count and a rich-text / markdown toggle.
3
+ */
4
+ import type { EditorMode, EditorState } from "../types";
5
+ export interface StatusBarProps {
6
+ state: EditorState;
7
+ mode: EditorMode;
8
+ onModeChange: (mode: EditorMode) => void;
9
+ }
10
+ export declare function StatusBar({ state, mode, onModeChange }: StatusBarProps): import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=StatusBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatusBar.d.ts","sourceRoot":"","sources":["../../src/toolbar/StatusBar.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGxD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,WAAW,CAAC;IACnB,IAAI,EAAE,UAAU,CAAC;IACjB,YAAY,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;CAC1C;AA0BD,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,cAAc,2CAyCtE"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Bubble menu shown when cursor is inside a table.
3
+ * Provides row/column add/delete and table management actions.
4
+ */
5
+ import type { Editor } from "@tiptap/react";
6
+ import type { EditorCapabilities } from "../types";
7
+ export interface TableBubbleProps {
8
+ editor: Editor | null;
9
+ /** Capability surface — markdown drops merge/split (default "full") */
10
+ capabilities?: EditorCapabilities;
11
+ }
12
+ export declare function TableBubble({ editor, capabilities }: TableBubbleProps): import("react/jsx-runtime").JSX.Element | null;
13
+ //# sourceMappingURL=TableBubble.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableBubble.d.ts","sourceRoot":"","sources":["../../src/toolbar/TableBubble.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAM5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AA0EnD,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,uEAAuE;IACvE,YAAY,CAAC,EAAE,kBAAkB,CAAC;CACnC;AAED,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,YAAqB,EAAE,EAAE,gBAAgB,kDAiJ9E"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Toolbar button primitives for the rich text editor.
3
+ *
4
+ * ToolbarButton: square icon button; ToolbarDropdownButton: button with a
5
+ * trailing caret (variable width).
6
+ *
7
+ * Axiom 12 LEGIBLE FLOOR: the pressable/focusable element is a 44x44
8
+ * transparent target (same split as the forms RadioGroup/Checkbox fix);
9
+ * the visible chrome (hover/press/active surface) is the inner glyph box,
10
+ * so visual density survives while the touch target is floored.
11
+ *
12
+ * Toggle semantics: when `active` is provided the button reports
13
+ * `aria-pressed` so assistive tech reads format state.
14
+ */
15
+ import type { ReactNode } from "react";
16
+ export interface ToolbarButtonProps {
17
+ active?: boolean;
18
+ disabled?: boolean;
19
+ onPress: () => void;
20
+ children: ReactNode;
21
+ "aria-label": string;
22
+ /** Marks the button as a toggle; reflects the pressed state to AT */
23
+ "aria-pressed"?: boolean;
24
+ tooltip?: string;
25
+ }
26
+ export interface ToolbarDropdownButtonProps {
27
+ active?: boolean;
28
+ disabled?: boolean;
29
+ onPress: () => void;
30
+ children: ReactNode;
31
+ "aria-label": string;
32
+ }
33
+ export declare function ToolbarButton({ active, disabled, onPress, children, tooltip, "aria-pressed": ariaPressed, ...props }: ToolbarButtonProps): import("react/jsx-runtime").JSX.Element;
34
+ export declare function ToolbarDropdownButton({ active, disabled, onPress, children, ...props }: ToolbarDropdownButtonProps): import("react/jsx-runtime").JSX.Element;
35
+ //# sourceMappingURL=ToolbarButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolbarButton.d.ts","sourceRoot":"","sources":["../../src/toolbar/ToolbarButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAgBvC,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,qEAAqE;IACrE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB;AA4CD,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,OAAO,EACP,cAAc,EAAE,WAAW,EAC3B,GAAG,KAAK,EACT,EAAE,kBAAkB,2CAgDpB;AAMD,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,0BAA0B,2CAgC5B"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Native toolbar button — avoids Tooltip (from @multiplatform.one/components)
3
+ * and CaretDownIcon (from @phosphor-icons/react) which pull in web-only code.
4
+ */
5
+ import type { ReactNode } from "react";
6
+ import type { SizeTokens } from "tamagui";
7
+ export interface ToolbarButtonProps {
8
+ active?: boolean;
9
+ disabled?: boolean;
10
+ onPress: () => void;
11
+ children: ReactNode;
12
+ "aria-label": string;
13
+ /** Marks the button as a toggle; reflects the pressed state to AT */
14
+ "aria-pressed"?: boolean;
15
+ tooltip?: string;
16
+ size?: SizeTokens;
17
+ compact?: boolean;
18
+ }
19
+ export interface ToolbarDropdownButtonProps {
20
+ active?: boolean;
21
+ disabled?: boolean;
22
+ onPress: () => void;
23
+ children: ReactNode;
24
+ "aria-label": string;
25
+ size?: SizeTokens;
26
+ compact?: boolean;
27
+ }
28
+ export declare function ToolbarButton({ active, disabled, onPress, children, size: sizeProp, compact: compactProp, "aria-pressed": ariaPressed, ...props }: ToolbarButtonProps): import("react/jsx-runtime").JSX.Element;
29
+ export declare function ToolbarDropdownButton({ active, disabled, onPress, children, size: sizeProp, compact: compactProp, ...props }: ToolbarDropdownButtonProps): import("react/jsx-runtime").JSX.Element;
30
+ //# sourceMappingURL=ToolbarButton.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolbarButton.native.d.ts","sourceRoot":"","sources":["../../src/toolbar/ToolbarButton.native.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAS1C,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,qEAAqE;IACrE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAMD,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,WAAW,EACpB,cAAc,EAAE,WAAW,EAC3B,GAAG,KAAK,EACT,EAAE,kBAAkB,2CAyBpB;AAMD,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,WAAW,EACpB,GAAG,KAAK,EACT,EAAE,0BAA0B,2CAwB5B"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Toolbar group wrapper with trailing separator and visibility control
3
+ */
4
+ import type { ReactNode } from "react";
5
+ export interface ToolbarGroupProps {
6
+ /** Group content (toolbar buttons) */
7
+ children: ReactNode;
8
+ /** Whether the group is visible (hides entire group when false) */
9
+ visible?: boolean;
10
+ /** Whether to show the trailing separator (default: true) */
11
+ showSeparator?: boolean;
12
+ }
13
+ export declare function ToolbarGroup({ children, visible, showSeparator, }: ToolbarGroupProps): import("react/jsx-runtime").JSX.Element | null;
14
+ //# sourceMappingURL=ToolbarGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolbarGroup.d.ts","sourceRoot":"","sources":["../../src/toolbar/ToolbarGroup.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvC,MAAM,WAAW,iBAAiB;IAChC,sCAAsC;IACtC,QAAQ,EAAE,SAAS,CAAC;IACpB,mEAAmE;IACnE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6DAA6D;IAC7D,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAMD,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,OAAc,EACd,aAAoB,GACrB,EAAE,iBAAiB,kDASnB"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Icon components for the rich text editor toolbar (web).
3
+ *
4
+ * LC-16 / census #20: glyphs come from `@phosphor-icons/react` — the house
5
+ * icon standard — so toolbar icons share stroke weight and optical size with
6
+ * every other surface. Only the color-state icons (TextColorIcon /
7
+ * HighlightIcon) stay hand-rolled: they render the currently selected color
8
+ * as a functional swatch bar, which no static icon set provides.
9
+ *
10
+ * Native uses `icons.native.tsx` (text glyphs; phosphor stays out of the
11
+ * native bundle).
12
+ */
13
+ import type { ReactNode } from "react";
14
+ export declare function BoldIcon(_props: {
15
+ children?: ReactNode;
16
+ }): import("react/jsx-runtime").JSX.Element;
17
+ export declare function ItalicIcon(_props: {
18
+ children?: ReactNode;
19
+ }): import("react/jsx-runtime").JSX.Element;
20
+ export declare function UnderlineIcon(_props: {
21
+ children?: ReactNode;
22
+ }): import("react/jsx-runtime").JSX.Element;
23
+ export declare function StrikeIcon(_props: {
24
+ children?: ReactNode;
25
+ }): import("react/jsx-runtime").JSX.Element;
26
+ export declare function UndoIcon(): import("react/jsx-runtime").JSX.Element;
27
+ export declare function RedoIcon(): import("react/jsx-runtime").JSX.Element;
28
+ export declare function AlignLeftIcon(): import("react/jsx-runtime").JSX.Element;
29
+ export declare function AlignCenterIcon(): import("react/jsx-runtime").JSX.Element;
30
+ export declare function AlignRightIcon(): import("react/jsx-runtime").JSX.Element;
31
+ export declare function AlignJustifyIcon(): import("react/jsx-runtime").JSX.Element;
32
+ export declare function LinkIcon(): import("react/jsx-runtime").JSX.Element;
33
+ export declare function HorizontalRuleIcon(): import("react/jsx-runtime").JSX.Element;
34
+ export declare function ClearFormattingIcon(): import("react/jsx-runtime").JSX.Element;
35
+ export declare function SubscriptIcon(): import("react/jsx-runtime").JSX.Element;
36
+ export declare function SuperscriptIcon(): import("react/jsx-runtime").JSX.Element;
37
+ export declare function BulletListIcon(): import("react/jsx-runtime").JSX.Element;
38
+ export declare function OrderedListIcon(): import("react/jsx-runtime").JSX.Element;
39
+ export declare function TaskListIcon(): import("react/jsx-runtime").JSX.Element;
40
+ export declare function ImageIcon(): import("react/jsx-runtime").JSX.Element;
41
+ export declare function BlockquoteIcon(): import("react/jsx-runtime").JSX.Element;
42
+ export declare function CodeBlockIcon(): import("react/jsx-runtime").JSX.Element;
43
+ export declare function InlineCodeIcon(): import("react/jsx-runtime").JSX.Element;
44
+ export declare function ExpandIcon(): import("react/jsx-runtime").JSX.Element;
45
+ export declare function CompressIcon(): import("react/jsx-runtime").JSX.Element;
46
+ export declare function TextColorIcon({ color }: {
47
+ color?: string | null;
48
+ }): import("react/jsx-runtime").JSX.Element;
49
+ export declare function HighlightIcon({ color }: {
50
+ color?: string | null;
51
+ }): import("react/jsx-runtime").JSX.Element;
52
+ //# sourceMappingURL=icons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/toolbar/icons.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AA6BH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAuBvC,wBAAgB,QAAQ,CAAC,MAAM,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,2CAExD;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,2CAE1D;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,2CAE7D;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,2CAE1D;AASD,wBAAgB,QAAQ,4CAGvB;AAED,wBAAgB,QAAQ,4CAGvB;AAED,wBAAgB,aAAa,4CAE5B;AAED,wBAAgB,eAAe,4CAE9B;AAED,wBAAgB,cAAc,4CAE7B;AAED,wBAAgB,gBAAgB,4CAE/B;AAED,wBAAgB,QAAQ,4CAEvB;AAED,wBAAgB,kBAAkB,4CAEjC;AAED,wBAAgB,mBAAmB,4CAElC;AAED,wBAAgB,aAAa,4CAE5B;AAED,wBAAgB,eAAe,4CAE9B;AAED,wBAAgB,cAAc,4CAE7B;AAED,wBAAgB,eAAe,4CAE9B;AAED,wBAAgB,YAAY,4CAE3B;AAED,wBAAgB,SAAS,4CAExB;AAED,wBAAgB,cAAc,4CAE7B;AAED,wBAAgB,aAAa,4CAE5B;AAED,wBAAgB,cAAc,4CAE7B;AAED,wBAAgB,UAAU,4CAEzB;AAED,wBAAgB,YAAY,4CAE3B;AAUD,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,2CAWjE;AAED,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,2CAiBjE"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Native icon components for the rich text editor toolbar
3
+ *
4
+ * Text-based replacements for the web SVG icons.
5
+ */
6
+ export declare const BoldIcon: import("tamagui").TamaguiComponent<import("@tamagui/web").TamaDefer, import("tamagui").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
7
+ unstyled?: boolean | undefined;
8
+ }, import("@tamagui/web").StaticConfigPublic>;
9
+ export declare const ItalicIcon: import("tamagui").TamaguiComponent<import("@tamagui/web").TamaDefer, import("tamagui").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
10
+ unstyled?: boolean | undefined;
11
+ }, import("@tamagui/web").StaticConfigPublic>;
12
+ export declare const UnderlineIcon: import("tamagui").TamaguiComponent<import("@tamagui/web").TamaDefer, import("tamagui").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
13
+ unstyled?: boolean | undefined;
14
+ }, import("@tamagui/web").StaticConfigPublic>;
15
+ export declare const StrikeIcon: import("tamagui").TamaguiComponent<import("@tamagui/web").TamaDefer, import("tamagui").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
16
+ unstyled?: boolean | undefined;
17
+ }, import("@tamagui/web").StaticConfigPublic>;
18
+ export declare function UndoIcon(): import("react/jsx-runtime").JSX.Element;
19
+ export declare function RedoIcon(): import("react/jsx-runtime").JSX.Element;
20
+ export declare function AlignLeftIcon(): import("react/jsx-runtime").JSX.Element;
21
+ export declare function AlignCenterIcon(): import("react/jsx-runtime").JSX.Element;
22
+ export declare function AlignRightIcon(): import("react/jsx-runtime").JSX.Element;
23
+ export declare function AlignJustifyIcon(): import("react/jsx-runtime").JSX.Element;
24
+ export declare function LinkIcon(): import("react/jsx-runtime").JSX.Element;
25
+ export declare function TextColorIcon(_props: {
26
+ color?: string | null;
27
+ }): import("react/jsx-runtime").JSX.Element;
28
+ export declare function HighlightIcon(_props: {
29
+ color?: string | null;
30
+ }): import("react/jsx-runtime").JSX.Element;
31
+ export declare function HorizontalRuleIcon(): import("react/jsx-runtime").JSX.Element;
32
+ export declare function ClearFormattingIcon(): import("react/jsx-runtime").JSX.Element;
33
+ export declare function SubscriptIcon(): import("react/jsx-runtime").JSX.Element;
34
+ export declare function SuperscriptIcon(): import("react/jsx-runtime").JSX.Element;
35
+ export declare function BulletListIcon(): import("react/jsx-runtime").JSX.Element;
36
+ export declare function OrderedListIcon(): import("react/jsx-runtime").JSX.Element;
37
+ export declare function TaskListIcon(): import("react/jsx-runtime").JSX.Element;
38
+ export declare function ImageIcon(): import("react/jsx-runtime").JSX.Element;
39
+ export declare function BlockquoteIcon(): import("react/jsx-runtime").JSX.Element;
40
+ export declare function CodeBlockIcon(): import("react/jsx-runtime").JSX.Element;
41
+ //# sourceMappingURL=icons.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.native.d.ts","sourceRoot":"","sources":["../../src/toolbar/icons.native.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,eAAO,MAAM,QAAQ;;6CAEnB,CAAC;AAEH,eAAO,MAAM,UAAU;;6CAErB,CAAC;AAEH,eAAO,MAAM,aAAa;;6CAExB,CAAC;AAEH,eAAO,MAAM,UAAU;;6CAErB,CAAC;AAWH,wBAAgB,QAAQ,4CAEvB;AAED,wBAAgB,QAAQ,4CAEvB;AAED,wBAAgB,aAAa,4CAE5B;AAED,wBAAgB,eAAe,4CAE9B;AAED,wBAAgB,cAAc,4CAE7B;AAED,wBAAgB,gBAAgB,4CAE/B;AAED,wBAAgB,QAAQ,4CAEvB;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,2CAE9D;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,2CAE9D;AAED,wBAAgB,kBAAkB,4CAEjC;AAED,wBAAgB,mBAAmB,4CAElC;AAED,wBAAgB,aAAa,4CAE5B;AAED,wBAAgB,eAAe,4CAE9B;AAED,wBAAgB,cAAc,4CAE7B;AAED,wBAAgB,eAAe,4CAE9B;AAED,wBAAgB,YAAY,4CAE3B;AAED,wBAAgB,SAAS,4CAExB;AAED,wBAAgB,cAAc,4CAE7B;AAED,wBAAgB,aAAa,4CAE5B"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Platform-aware keyboard shortcut labels for toolbar tooltips.
3
+ *
4
+ * Properties are getters so `t()` resolves at access (render) time -- a
5
+ * locale catalog loaded after module import still applies.
6
+ */
7
+ export declare function shortcut(label: string, keys?: string): string;
8
+ export declare const SHORTCUTS: {
9
+ readonly bold: string;
10
+ readonly italic: string;
11
+ readonly underline: string;
12
+ readonly strike: string;
13
+ readonly code: string;
14
+ readonly subscript: string;
15
+ readonly superscript: string;
16
+ readonly undo: string;
17
+ readonly redo: string;
18
+ readonly alignLeft: string;
19
+ readonly alignCenter: string;
20
+ readonly alignRight: string;
21
+ readonly alignJustify: string;
22
+ readonly blockquote: string;
23
+ readonly codeBlock: string;
24
+ readonly bulletList: string;
25
+ readonly orderedList: string;
26
+ readonly taskList: string;
27
+ readonly link: string;
28
+ readonly horizontalRule: string;
29
+ readonly image: string;
30
+ readonly textColor: string;
31
+ readonly highlight: string;
32
+ readonly clearFormatting: string;
33
+ };
34
+ //# sourceMappingURL=shortcuts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shortcuts.d.ts","sourceRoot":"","sources":["../../src/toolbar/shortcuts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAWH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAG7D;AAED,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;CAyEZ,CAAC"}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Horizontal scroll hook and scroll arrow component for toolbar overflow
3
+ *
4
+ * Extracted as-is from EditorToolbar.tsx (well-implemented).
5
+ */
6
+ /**
7
+ * Physical px distances from each horizontal scroll edge. The arrows are
8
+ * physically-anchored edge overlays (left:0 / right:0), but CSSOM flips the
9
+ * `scrollLeft` range under RTL: an RTL scroller runs 0 → −(scrollWidth −
10
+ * clientWidth), so the LTR reading (`scrollLeft` = distance from the left
11
+ * edge) inverts and both arrow visibility and the remaining-distance clamp
12
+ * break. Normalize per `useDirection()` (house RTL pattern) instead of
13
+ * reading the raw sign.
14
+ */
15
+ export declare function horizontalScrollEdges(element: Pick<HTMLElement, "scrollLeft" | "scrollWidth" | "clientWidth">, direction: "ltr" | "rtl"): {
16
+ fromLeftEdge: number;
17
+ fromRightEdge: number;
18
+ };
19
+ /**
20
+ * Hook to enable horizontal scroll via mouse wheel and drag
21
+ */
22
+ export declare function useHorizontalScroll(ref: React.RefObject<HTMLDivElement | null>): void;
23
+ /**
24
+ * Hook to track horizontal scroll arrows visibility
25
+ */
26
+ export declare function useHorizontalScrollArrows(): {
27
+ arrowLeft: boolean;
28
+ arrowRight: boolean;
29
+ arrowScrollDirRef: import("react").RefObject<"left" | "right" | null>;
30
+ updateArrows: (element: HTMLElement) => void;
31
+ };
32
+ export interface HorizontalScrollArrowProps {
33
+ direction: "left" | "right";
34
+ scrollRef: React.RefObject<HTMLElement | null>;
35
+ visible: boolean;
36
+ arrowScrollDirRef: React.RefObject<"left" | "right" | null>;
37
+ transition?: string;
38
+ }
39
+ /**
40
+ * Horizontal scroll arrow component
41
+ */
42
+ export declare function HorizontalScrollArrow({ direction, scrollRef, visible, arrowScrollDirRef, transition, }: HorizontalScrollArrowProps): import("react/jsx-runtime").JSX.Element;
43
+ //# sourceMappingURL=useHorizontalScroll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHorizontalScroll.d.ts","sourceRoot":"","sources":["../../src/toolbar/useHorizontalScroll.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAUH;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,YAAY,GAAG,aAAa,GAAG,aAAa,CAAC,EACxE,SAAS,EAAE,KAAK,GAAG,KAAK,GACvB;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CAOjD;AAMD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,QAsE9E;AAMD;;GAEG;AACH,wBAAgB,yBAAyB;;;;4BAO3B,WAAW;EAWxB;AAMD,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC/C,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC,CAAC;IAC5D,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,SAAS,EACT,SAAS,EACT,OAAO,EACP,iBAAiB,EACjB,UAAU,GACX,EAAE,0BAA0B,2CAsI5B"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Roving tabindex for the toolbar (WAI-ARIA toolbar pattern).
3
+ *
4
+ * The toolbar is ONE tab stop: Tab enters at the last-active control and
5
+ * leaves on the next Tab; ArrowLeft/ArrowRight (direction-aware for RTL),
6
+ * Home, and End move between enabled controls.
7
+ */
8
+ import type { RefObject } from "react";
9
+ export declare function useRovingFocus(containerRef: RefObject<HTMLElement | null>): void;
10
+ //# sourceMappingURL=useRovingFocus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRovingFocus.d.ts","sourceRoot":"","sources":["../../src/toolbar/useRovingFocus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASvC,wBAAgB,cAAc,CAAC,YAAY,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,QA+DzE"}