@ecomcx/ecomweb-editor 0.0.0-stage → 1.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (725) hide show
  1. package/README.md +107 -2
  2. package/node_modules/@floating-ui/core/LICENSE +20 -0
  3. package/node_modules/@floating-ui/core/README.md +4 -0
  4. package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs +1 -0
  5. package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.mjs +1164 -0
  6. package/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +535 -0
  7. package/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +535 -0
  8. package/node_modules/@floating-ui/core/dist/floating-ui.core.esm.js +1038 -0
  9. package/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1038 -0
  10. package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.js +1183 -0
  11. package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.min.js +1 -0
  12. package/node_modules/@floating-ui/core/package.json +63 -0
  13. package/node_modules/@floating-ui/dom/LICENSE +20 -0
  14. package/node_modules/@floating-ui/dom/README.md +4 -0
  15. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs +1 -0
  16. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.mjs +964 -0
  17. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.mts +362 -0
  18. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts +362 -0
  19. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js +789 -0
  20. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +789 -0
  21. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js +983 -0
  22. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.min.js +1 -0
  23. package/node_modules/@floating-ui/dom/package.json +72 -0
  24. package/node_modules/@floating-ui/utils/LICENSE +20 -0
  25. package/node_modules/@floating-ui/utils/README.md +4 -0
  26. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +105 -0
  27. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +105 -0
  28. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +47 -0
  29. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +47 -0
  30. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.esm.js +165 -0
  31. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +165 -0
  32. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.js +192 -0
  33. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.min.js +1 -0
  34. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.esm.js +136 -0
  35. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +136 -0
  36. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.js +167 -0
  37. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.min.js +1 -0
  38. package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +47 -0
  39. package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.esm.js +165 -0
  40. package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.umd.js +192 -0
  41. package/node_modules/@floating-ui/utils/dom/package.json +6 -0
  42. package/node_modules/@floating-ui/utils/package.json +70 -0
  43. package/node_modules/@tiptap/core/LICENSE.md +21 -0
  44. package/node_modules/@tiptap/core/README.md +18 -0
  45. package/node_modules/@tiptap/core/dist/index.cjs +8463 -0
  46. package/node_modules/@tiptap/core/dist/index.d.cts +5798 -0
  47. package/node_modules/@tiptap/core/dist/index.d.ts +5797 -0
  48. package/node_modules/@tiptap/core/dist/index.js +8288 -0
  49. package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.cjs +70 -0
  50. package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.d.cts +28 -0
  51. package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.d.ts +28 -0
  52. package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +64 -0
  53. package/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  54. package/node_modules/@tiptap/core/jsx-dev-runtime/index.cjs +1 -0
  55. package/node_modules/@tiptap/core/jsx-dev-runtime/index.d.cts +1 -0
  56. package/node_modules/@tiptap/core/jsx-dev-runtime/index.d.ts +1 -0
  57. package/node_modules/@tiptap/core/jsx-dev-runtime/index.js +1 -0
  58. package/node_modules/@tiptap/core/jsx-runtime/index.cjs +1 -0
  59. package/node_modules/@tiptap/core/jsx-runtime/index.d.cts +1 -0
  60. package/node_modules/@tiptap/core/jsx-runtime/index.d.ts +1 -0
  61. package/node_modules/@tiptap/core/jsx-runtime/index.js +1 -0
  62. package/node_modules/@tiptap/core/package.json +74 -0
  63. package/node_modules/@tiptap/extension-blockquote/LICENSE.md +21 -0
  64. package/node_modules/@tiptap/extension-blockquote/README.md +18 -0
  65. package/node_modules/@tiptap/extension-blockquote/dist/index.cjs +132 -0
  66. package/node_modules/@tiptap/extension-blockquote/dist/index.d.cts +40 -0
  67. package/node_modules/@tiptap/extension-blockquote/dist/index.d.ts +40 -0
  68. package/node_modules/@tiptap/extension-blockquote/dist/index.js +126 -0
  69. package/node_modules/@tiptap/extension-blockquote/package.json +52 -0
  70. package/node_modules/@tiptap/extension-bold/LICENSE.md +21 -0
  71. package/node_modules/@tiptap/extension-bold/README.md +18 -0
  72. package/node_modules/@tiptap/extension-bold/dist/index.cjs +117 -0
  73. package/node_modules/@tiptap/extension-bold/dist/index.d.cts +52 -0
  74. package/node_modules/@tiptap/extension-bold/dist/index.d.ts +52 -0
  75. package/node_modules/@tiptap/extension-bold/dist/index.js +108 -0
  76. package/node_modules/@tiptap/extension-bold/package.json +50 -0
  77. package/node_modules/@tiptap/extension-bubble-menu/LICENSE.md +21 -0
  78. package/node_modules/@tiptap/extension-bubble-menu/README.md +18 -0
  79. package/node_modules/@tiptap/extension-bubble-menu/dist/index.cjs +333 -0
  80. package/node_modules/@tiptap/extension-bubble-menu/dist/index.d.cts +170 -0
  81. package/node_modules/@tiptap/extension-bubble-menu/dist/index.d.ts +170 -0
  82. package/node_modules/@tiptap/extension-bubble-menu/dist/index.js +326 -0
  83. package/node_modules/@tiptap/extension-bubble-menu/package.json +56 -0
  84. package/node_modules/@tiptap/extension-bullet-list/LICENSE.md +21 -0
  85. package/node_modules/@tiptap/extension-bullet-list/README.md +18 -0
  86. package/node_modules/@tiptap/extension-bullet-list/dist/index.cjs +17 -0
  87. package/node_modules/@tiptap/extension-bullet-list/dist/index.d.cts +2 -0
  88. package/node_modules/@tiptap/extension-bullet-list/dist/index.d.ts +2 -0
  89. package/node_modules/@tiptap/extension-bullet-list/dist/index.js +7 -0
  90. package/node_modules/@tiptap/extension-bullet-list/package.json +50 -0
  91. package/node_modules/@tiptap/extension-code/LICENSE.md +21 -0
  92. package/node_modules/@tiptap/extension-code/README.md +18 -0
  93. package/node_modules/@tiptap/extension-code/dist/index.cjs +136 -0
  94. package/node_modules/@tiptap/extension-code/dist/index.d.cts +60 -0
  95. package/node_modules/@tiptap/extension-code/dist/index.d.ts +60 -0
  96. package/node_modules/@tiptap/extension-code/dist/index.js +127 -0
  97. package/node_modules/@tiptap/extension-code/package.json +50 -0
  98. package/node_modules/@tiptap/extension-code-block/LICENSE.md +21 -0
  99. package/node_modules/@tiptap/extension-code-block/README.md +18 -0
  100. package/node_modules/@tiptap/extension-code-block/dist/index.cjs +255 -0
  101. package/node_modules/@tiptap/extension-code-block/dist/index.d.cts +84 -0
  102. package/node_modules/@tiptap/extension-code-block/dist/index.d.ts +84 -0
  103. package/node_modules/@tiptap/extension-code-block/dist/index.js +248 -0
  104. package/node_modules/@tiptap/extension-code-block/package.json +52 -0
  105. package/node_modules/@tiptap/extension-document/LICENSE.md +21 -0
  106. package/node_modules/@tiptap/extension-document/README.md +18 -0
  107. package/node_modules/@tiptap/extension-document/dist/index.cjs +26 -0
  108. package/node_modules/@tiptap/extension-document/dist/index.d.cts +10 -0
  109. package/node_modules/@tiptap/extension-document/dist/index.d.ts +10 -0
  110. package/node_modules/@tiptap/extension-document/dist/index.js +22 -0
  111. package/node_modules/@tiptap/extension-document/package.json +50 -0
  112. package/node_modules/@tiptap/extension-dropcursor/LICENSE.md +21 -0
  113. package/node_modules/@tiptap/extension-dropcursor/README.md +18 -0
  114. package/node_modules/@tiptap/extension-dropcursor/dist/index.cjs +17 -0
  115. package/node_modules/@tiptap/extension-dropcursor/dist/index.d.cts +2 -0
  116. package/node_modules/@tiptap/extension-dropcursor/dist/index.d.ts +2 -0
  117. package/node_modules/@tiptap/extension-dropcursor/dist/index.js +7 -0
  118. package/node_modules/@tiptap/extension-dropcursor/package.json +50 -0
  119. package/node_modules/@tiptap/extension-floating-menu/LICENSE.md +21 -0
  120. package/node_modules/@tiptap/extension-floating-menu/README.md +18 -0
  121. package/node_modules/@tiptap/extension-floating-menu/dist/index.cjs +272 -0
  122. package/node_modules/@tiptap/extension-floating-menu/dist/index.d.cts +180 -0
  123. package/node_modules/@tiptap/extension-floating-menu/dist/index.d.ts +180 -0
  124. package/node_modules/@tiptap/extension-floating-menu/dist/index.js +265 -0
  125. package/node_modules/@tiptap/extension-floating-menu/package.json +55 -0
  126. package/node_modules/@tiptap/extension-gapcursor/LICENSE.md +21 -0
  127. package/node_modules/@tiptap/extension-gapcursor/README.md +18 -0
  128. package/node_modules/@tiptap/extension-gapcursor/dist/index.cjs +17 -0
  129. package/node_modules/@tiptap/extension-gapcursor/dist/index.d.cts +2 -0
  130. package/node_modules/@tiptap/extension-gapcursor/dist/index.d.ts +2 -0
  131. package/node_modules/@tiptap/extension-gapcursor/dist/index.js +7 -0
  132. package/node_modules/@tiptap/extension-gapcursor/package.json +50 -0
  133. package/node_modules/@tiptap/extension-hard-break/LICENSE.md +21 -0
  134. package/node_modules/@tiptap/extension-hard-break/README.md +18 -0
  135. package/node_modules/@tiptap/extension-hard-break/dist/index.cjs +69 -0
  136. package/node_modules/@tiptap/extension-hard-break/dist/index.d.cts +35 -0
  137. package/node_modules/@tiptap/extension-hard-break/dist/index.d.ts +35 -0
  138. package/node_modules/@tiptap/extension-hard-break/dist/index.js +64 -0
  139. package/node_modules/@tiptap/extension-hard-break/package.json +50 -0
  140. package/node_modules/@tiptap/extension-heading/LICENSE.md +21 -0
  141. package/node_modules/@tiptap/extension-heading/README.md +18 -0
  142. package/node_modules/@tiptap/extension-heading/dist/index.cjs +93 -0
  143. package/node_modules/@tiptap/extension-heading/dist/index.d.cts +50 -0
  144. package/node_modules/@tiptap/extension-heading/dist/index.d.ts +50 -0
  145. package/node_modules/@tiptap/extension-heading/dist/index.js +88 -0
  146. package/node_modules/@tiptap/extension-heading/package.json +50 -0
  147. package/node_modules/@tiptap/extension-highlight/LICENSE.md +21 -0
  148. package/node_modules/@tiptap/extension-highlight/README.md +18 -0
  149. package/node_modules/@tiptap/extension-highlight/dist/index.cjs +113 -0
  150. package/node_modules/@tiptap/extension-highlight/dist/index.d.cts +59 -0
  151. package/node_modules/@tiptap/extension-highlight/dist/index.d.ts +59 -0
  152. package/node_modules/@tiptap/extension-highlight/dist/index.js +106 -0
  153. package/node_modules/@tiptap/extension-highlight/package.json +50 -0
  154. package/node_modules/@tiptap/extension-horizontal-rule/LICENSE.md +21 -0
  155. package/node_modules/@tiptap/extension-horizontal-rule/README.md +18 -0
  156. package/node_modules/@tiptap/extension-horizontal-rule/dist/index.cjs +78 -0
  157. package/node_modules/@tiptap/extension-horizontal-rule/dist/index.d.cts +35 -0
  158. package/node_modules/@tiptap/extension-horizontal-rule/dist/index.d.ts +35 -0
  159. package/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +73 -0
  160. package/node_modules/@tiptap/extension-horizontal-rule/package.json +52 -0
  161. package/node_modules/@tiptap/extension-image/LICENSE.md +21 -0
  162. package/node_modules/@tiptap/extension-image/README.md +18 -0
  163. package/node_modules/@tiptap/extension-image/dist/index.cjs +181 -0
  164. package/node_modules/@tiptap/extension-image/dist/index.d.cts +69 -0
  165. package/node_modules/@tiptap/extension-image/dist/index.d.ts +69 -0
  166. package/node_modules/@tiptap/extension-image/dist/index.js +175 -0
  167. package/node_modules/@tiptap/extension-image/package.json +50 -0
  168. package/node_modules/@tiptap/extension-italic/LICENSE.md +21 -0
  169. package/node_modules/@tiptap/extension-italic/README.md +18 -0
  170. package/node_modules/@tiptap/extension-italic/dist/index.cjs +113 -0
  171. package/node_modules/@tiptap/extension-italic/dist/index.d.cts +55 -0
  172. package/node_modules/@tiptap/extension-italic/dist/index.d.ts +55 -0
  173. package/node_modules/@tiptap/extension-italic/dist/index.js +104 -0
  174. package/node_modules/@tiptap/extension-italic/package.json +50 -0
  175. package/node_modules/@tiptap/extension-link/LICENSE.md +21 -0
  176. package/node_modules/@tiptap/extension-link/README.md +18 -0
  177. package/node_modules/@tiptap/extension-link/dist/index.cjs +560 -0
  178. package/node_modules/@tiptap/extension-link/dist/index.d.cts +159 -0
  179. package/node_modules/@tiptap/extension-link/dist/index.d.ts +159 -0
  180. package/node_modules/@tiptap/extension-link/dist/index.js +553 -0
  181. package/node_modules/@tiptap/extension-link/package.json +56 -0
  182. package/node_modules/@tiptap/extension-list/LICENSE.md +21 -0
  183. package/node_modules/@tiptap/extension-list/README.md +18 -0
  184. package/node_modules/@tiptap/extension-list/dist/bullet-list/index.cjs +84 -0
  185. package/node_modules/@tiptap/extension-list/dist/bullet-list/index.d.cts +52 -0
  186. package/node_modules/@tiptap/extension-list/dist/bullet-list/index.d.ts +52 -0
  187. package/node_modules/@tiptap/extension-list/dist/bullet-list/index.js +82 -0
  188. package/node_modules/@tiptap/extension-list/dist/index.cjs +1570 -0
  189. package/node_modules/@tiptap/extension-list/dist/index.d.cts +391 -0
  190. package/node_modules/@tiptap/extension-list/dist/index.d.ts +390 -0
  191. package/node_modules/@tiptap/extension-list/dist/index.js +1533 -0
  192. package/node_modules/@tiptap/extension-list/dist/item/index.cjs +308 -0
  193. package/node_modules/@tiptap/extension-list/dist/item/index.d.cts +30 -0
  194. package/node_modules/@tiptap/extension-list/dist/item/index.d.ts +30 -0
  195. package/node_modules/@tiptap/extension-list/dist/item/index.js +307 -0
  196. package/node_modules/@tiptap/extension-list/dist/keymap/index.cjs +263 -0
  197. package/node_modules/@tiptap/extension-list/dist/keymap/index.d.cts +66 -0
  198. package/node_modules/@tiptap/extension-list/dist/keymap/index.d.ts +65 -0
  199. package/node_modules/@tiptap/extension-list/dist/keymap/index.js +245 -0
  200. package/node_modules/@tiptap/extension-list/dist/keymap/rolldown-runtime-D7D4PA-g.js +13 -0
  201. package/node_modules/@tiptap/extension-list/dist/kit/index.cjs +1487 -0
  202. package/node_modules/@tiptap/extension-list/dist/kit/index.d.cts +235 -0
  203. package/node_modules/@tiptap/extension-list/dist/kit/index.d.ts +235 -0
  204. package/node_modules/@tiptap/extension-list/dist/kit/index.js +1486 -0
  205. package/node_modules/@tiptap/extension-list/dist/ordered-list/index.cjs +671 -0
  206. package/node_modules/@tiptap/extension-list/dist/ordered-list/index.d.cts +120 -0
  207. package/node_modules/@tiptap/extension-list/dist/ordered-list/index.d.ts +120 -0
  208. package/node_modules/@tiptap/extension-list/dist/ordered-list/index.js +659 -0
  209. package/node_modules/@tiptap/extension-list/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  210. package/node_modules/@tiptap/extension-list/dist/task-item/index.cjs +327 -0
  211. package/node_modules/@tiptap/extension-list/dist/task-item/index.d.cts +69 -0
  212. package/node_modules/@tiptap/extension-list/dist/task-item/index.d.ts +69 -0
  213. package/node_modules/@tiptap/extension-list/dist/task-item/index.js +325 -0
  214. package/node_modules/@tiptap/extension-list/dist/task-list/index.cjs +121 -0
  215. package/node_modules/@tiptap/extension-list/dist/task-list/index.d.cts +35 -0
  216. package/node_modules/@tiptap/extension-list/dist/task-list/index.d.ts +35 -0
  217. package/node_modules/@tiptap/extension-list/dist/task-list/index.js +120 -0
  218. package/node_modules/@tiptap/extension-list/package.json +108 -0
  219. package/node_modules/@tiptap/extension-list-item/LICENSE.md +21 -0
  220. package/node_modules/@tiptap/extension-list-item/README.md +18 -0
  221. package/node_modules/@tiptap/extension-list-item/dist/index.cjs +17 -0
  222. package/node_modules/@tiptap/extension-list-item/dist/index.d.cts +2 -0
  223. package/node_modules/@tiptap/extension-list-item/dist/index.d.ts +2 -0
  224. package/node_modules/@tiptap/extension-list-item/dist/index.js +7 -0
  225. package/node_modules/@tiptap/extension-list-item/package.json +50 -0
  226. package/node_modules/@tiptap/extension-list-keymap/LICENSE.md +21 -0
  227. package/node_modules/@tiptap/extension-list-keymap/README.md +18 -0
  228. package/node_modules/@tiptap/extension-list-keymap/dist/index.cjs +23 -0
  229. package/node_modules/@tiptap/extension-list-keymap/dist/index.d.cts +2 -0
  230. package/node_modules/@tiptap/extension-list-keymap/dist/index.d.ts +2 -0
  231. package/node_modules/@tiptap/extension-list-keymap/dist/index.js +7 -0
  232. package/node_modules/@tiptap/extension-list-keymap/package.json +50 -0
  233. package/node_modules/@tiptap/extension-ordered-list/LICENSE.md +21 -0
  234. package/node_modules/@tiptap/extension-ordered-list/README.md +18 -0
  235. package/node_modules/@tiptap/extension-ordered-list/dist/index.cjs +17 -0
  236. package/node_modules/@tiptap/extension-ordered-list/dist/index.d.cts +2 -0
  237. package/node_modules/@tiptap/extension-ordered-list/dist/index.d.ts +2 -0
  238. package/node_modules/@tiptap/extension-ordered-list/dist/index.js +7 -0
  239. package/node_modules/@tiptap/extension-ordered-list/package.json +50 -0
  240. package/node_modules/@tiptap/extension-paragraph/LICENSE.md +21 -0
  241. package/node_modules/@tiptap/extension-paragraph/README.md +18 -0
  242. package/node_modules/@tiptap/extension-paragraph/dist/index.cjs +73 -0
  243. package/node_modules/@tiptap/extension-paragraph/dist/index.d.cts +29 -0
  244. package/node_modules/@tiptap/extension-paragraph/dist/index.d.ts +29 -0
  245. package/node_modules/@tiptap/extension-paragraph/dist/index.js +68 -0
  246. package/node_modules/@tiptap/extension-paragraph/package.json +50 -0
  247. package/node_modules/@tiptap/extension-strike/LICENSE.md +21 -0
  248. package/node_modules/@tiptap/extension-strike/README.md +18 -0
  249. package/node_modules/@tiptap/extension-strike/dist/index.cjs +88 -0
  250. package/node_modules/@tiptap/extension-strike/dist/index.d.cts +47 -0
  251. package/node_modules/@tiptap/extension-strike/dist/index.d.ts +47 -0
  252. package/node_modules/@tiptap/extension-strike/dist/index.js +81 -0
  253. package/node_modules/@tiptap/extension-strike/package.json +50 -0
  254. package/node_modules/@tiptap/extension-subscript/LICENSE.md +21 -0
  255. package/node_modules/@tiptap/extension-subscript/README.md +18 -0
  256. package/node_modules/@tiptap/extension-subscript/dist/index.cjs +56 -0
  257. package/node_modules/@tiptap/extension-subscript/dist/index.d.cts +39 -0
  258. package/node_modules/@tiptap/extension-subscript/dist/index.d.ts +39 -0
  259. package/node_modules/@tiptap/extension-subscript/dist/index.js +51 -0
  260. package/node_modules/@tiptap/extension-subscript/package.json +52 -0
  261. package/node_modules/@tiptap/extension-superscript/LICENSE.md +21 -0
  262. package/node_modules/@tiptap/extension-superscript/README.md +18 -0
  263. package/node_modules/@tiptap/extension-superscript/dist/index.cjs +56 -0
  264. package/node_modules/@tiptap/extension-superscript/dist/index.d.cts +39 -0
  265. package/node_modules/@tiptap/extension-superscript/dist/index.d.ts +39 -0
  266. package/node_modules/@tiptap/extension-superscript/dist/index.js +51 -0
  267. package/node_modules/@tiptap/extension-superscript/package.json +52 -0
  268. package/node_modules/@tiptap/extension-table/LICENSE.md +21 -0
  269. package/node_modules/@tiptap/extension-table/README.md +18 -0
  270. package/node_modules/@tiptap/extension-table/dist/cell/index.cjs +142 -0
  271. package/node_modules/@tiptap/extension-table/dist/cell/index.d.cts +35 -0
  272. package/node_modules/@tiptap/extension-table/dist/cell/index.d.ts +35 -0
  273. package/node_modules/@tiptap/extension-table/dist/cell/index.js +141 -0
  274. package/node_modules/@tiptap/extension-table/dist/header/index.cjs +142 -0
  275. package/node_modules/@tiptap/extension-table/dist/header/index.d.cts +35 -0
  276. package/node_modules/@tiptap/extension-table/dist/header/index.d.ts +35 -0
  277. package/node_modules/@tiptap/extension-table/dist/header/index.js +141 -0
  278. package/node_modules/@tiptap/extension-table/dist/index.cjs +832 -0
  279. package/node_modules/@tiptap/extension-table/dist/index.d.cts +344 -0
  280. package/node_modules/@tiptap/extension-table/dist/index.d.ts +344 -0
  281. package/node_modules/@tiptap/extension-table/dist/index.js +819 -0
  282. package/node_modules/@tiptap/extension-table/dist/kit/index.cjs +817 -0
  283. package/node_modules/@tiptap/extension-table/dist/kit/index.d.cts +265 -0
  284. package/node_modules/@tiptap/extension-table/dist/kit/index.d.ts +265 -0
  285. package/node_modules/@tiptap/extension-table/dist/kit/index.js +816 -0
  286. package/node_modules/@tiptap/extension-table/dist/row/index.cjs +29 -0
  287. package/node_modules/@tiptap/extension-table/dist/row/index.d.cts +35 -0
  288. package/node_modules/@tiptap/extension-table/dist/row/index.d.ts +35 -0
  289. package/node_modules/@tiptap/extension-table/dist/row/index.js +28 -0
  290. package/node_modules/@tiptap/extension-table/dist/table/index.cjs +616 -0
  291. package/node_modules/@tiptap/extension-table/dist/table/index.d.cts +254 -0
  292. package/node_modules/@tiptap/extension-table/dist/table/index.d.ts +254 -0
  293. package/node_modules/@tiptap/extension-table/dist/table/index.js +609 -0
  294. package/node_modules/@tiptap/extension-table/package.json +92 -0
  295. package/node_modules/@tiptap/extension-text/LICENSE.md +21 -0
  296. package/node_modules/@tiptap/extension-text/README.md +18 -0
  297. package/node_modules/@tiptap/extension-text/dist/index.cjs +28 -0
  298. package/node_modules/@tiptap/extension-text/dist/index.d.cts +10 -0
  299. package/node_modules/@tiptap/extension-text/dist/index.d.ts +10 -0
  300. package/node_modules/@tiptap/extension-text/dist/index.js +24 -0
  301. package/node_modules/@tiptap/extension-text/package.json +50 -0
  302. package/node_modules/@tiptap/extension-text-align/LICENSE.md +21 -0
  303. package/node_modules/@tiptap/extension-text-align/README.md +18 -0
  304. package/node_modules/@tiptap/extension-text-align/dist/index.cjs +73 -0
  305. package/node_modules/@tiptap/extension-text-align/dist/index.d.cts +53 -0
  306. package/node_modules/@tiptap/extension-text-align/dist/index.d.ts +53 -0
  307. package/node_modules/@tiptap/extension-text-align/dist/index.js +68 -0
  308. package/node_modules/@tiptap/extension-text-align/package.json +50 -0
  309. package/node_modules/@tiptap/extension-text-style/LICENSE.md +21 -0
  310. package/node_modules/@tiptap/extension-text-style/README.md +18 -0
  311. package/node_modules/@tiptap/extension-text-style/dist/background-color/index.cjs +121 -0
  312. package/node_modules/@tiptap/extension-text-style/dist/background-color/index.d.cts +161 -0
  313. package/node_modules/@tiptap/extension-text-style/dist/background-color/index.d.ts +161 -0
  314. package/node_modules/@tiptap/extension-text-style/dist/background-color/index.js +116 -0
  315. package/node_modules/@tiptap/extension-text-style/dist/color/index.cjs +121 -0
  316. package/node_modules/@tiptap/extension-text-style/dist/color/index.d.cts +161 -0
  317. package/node_modules/@tiptap/extension-text-style/dist/color/index.d.ts +161 -0
  318. package/node_modules/@tiptap/extension-text-style/dist/color/index.js +116 -0
  319. package/node_modules/@tiptap/extension-text-style/dist/font-family/index.cjs +120 -0
  320. package/node_modules/@tiptap/extension-text-style/dist/font-family/index.d.cts +161 -0
  321. package/node_modules/@tiptap/extension-text-style/dist/font-family/index.d.ts +161 -0
  322. package/node_modules/@tiptap/extension-text-style/dist/font-family/index.js +115 -0
  323. package/node_modules/@tiptap/extension-text-style/dist/font-size/index.cjs +120 -0
  324. package/node_modules/@tiptap/extension-text-style/dist/font-size/index.d.cts +161 -0
  325. package/node_modules/@tiptap/extension-text-style/dist/font-size/index.d.ts +161 -0
  326. package/node_modules/@tiptap/extension-text-style/dist/font-size/index.js +115 -0
  327. package/node_modules/@tiptap/extension-text-style/dist/index.cjs +298 -0
  328. package/node_modules/@tiptap/extension-text-style/dist/index.d.cts +275 -0
  329. package/node_modules/@tiptap/extension-text-style/dist/index.d.ts +275 -0
  330. package/node_modules/@tiptap/extension-text-style/dist/index.js +291 -0
  331. package/node_modules/@tiptap/extension-text-style/dist/line-height/index.cjs +120 -0
  332. package/node_modules/@tiptap/extension-text-style/dist/line-height/index.d.cts +161 -0
  333. package/node_modules/@tiptap/extension-text-style/dist/line-height/index.d.ts +161 -0
  334. package/node_modules/@tiptap/extension-text-style/dist/line-height/index.js +115 -0
  335. package/node_modules/@tiptap/extension-text-style/dist/text-style/index.cjs +80 -0
  336. package/node_modules/@tiptap/extension-text-style/dist/text-style/index.d.cts +170 -0
  337. package/node_modules/@tiptap/extension-text-style/dist/text-style/index.d.ts +170 -0
  338. package/node_modules/@tiptap/extension-text-style/dist/text-style/index.js +79 -0
  339. package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.cjs +292 -0
  340. package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.d.cts +244 -0
  341. package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.d.ts +244 -0
  342. package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.js +291 -0
  343. package/node_modules/@tiptap/extension-text-style/package.json +106 -0
  344. package/node_modules/@tiptap/extension-underline/LICENSE.md +21 -0
  345. package/node_modules/@tiptap/extension-underline/README.md +18 -0
  346. package/node_modules/@tiptap/extension-underline/dist/index.cjs +81 -0
  347. package/node_modules/@tiptap/extension-underline/dist/index.d.cts +39 -0
  348. package/node_modules/@tiptap/extension-underline/dist/index.d.ts +39 -0
  349. package/node_modules/@tiptap/extension-underline/dist/index.js +76 -0
  350. package/node_modules/@tiptap/extension-underline/package.json +50 -0
  351. package/node_modules/@tiptap/extension-youtube/LICENSE.md +21 -0
  352. package/node_modules/@tiptap/extension-youtube/README.md +18 -0
  353. package/node_modules/@tiptap/extension-youtube/dist/index.cjs +254 -0
  354. package/node_modules/@tiptap/extension-youtube/dist/index.d.cts +204 -0
  355. package/node_modules/@tiptap/extension-youtube/dist/index.d.ts +204 -0
  356. package/node_modules/@tiptap/extension-youtube/dist/index.js +246 -0
  357. package/node_modules/@tiptap/extension-youtube/package.json +50 -0
  358. package/node_modules/@tiptap/extensions/LICENSE.md +21 -0
  359. package/node_modules/@tiptap/extensions/README.md +18 -0
  360. package/node_modules/@tiptap/extensions/dist/character-count/index.cjs +87 -0
  361. package/node_modules/@tiptap/extensions/dist/character-count/index.d.cts +70 -0
  362. package/node_modules/@tiptap/extensions/dist/character-count/index.d.ts +70 -0
  363. package/node_modules/@tiptap/extensions/dist/character-count/index.js +86 -0
  364. package/node_modules/@tiptap/extensions/dist/drop-cursor/index.cjs +27 -0
  365. package/node_modules/@tiptap/extensions/dist/drop-cursor/index.d.cts +32 -0
  366. package/node_modules/@tiptap/extensions/dist/drop-cursor/index.d.ts +32 -0
  367. package/node_modules/@tiptap/extensions/dist/drop-cursor/index.js +26 -0
  368. package/node_modules/@tiptap/extensions/dist/focus/index.cjs +48 -0
  369. package/node_modules/@tiptap/extensions/dist/focus/index.d.cts +29 -0
  370. package/node_modules/@tiptap/extensions/dist/focus/index.d.ts +29 -0
  371. package/node_modules/@tiptap/extensions/dist/focus/index.js +47 -0
  372. package/node_modules/@tiptap/extensions/dist/gap-cursor/index.cjs +29 -0
  373. package/node_modules/@tiptap/extensions/dist/gap-cursor/index.d.cts +26 -0
  374. package/node_modules/@tiptap/extensions/dist/gap-cursor/index.d.ts +26 -0
  375. package/node_modules/@tiptap/extensions/dist/gap-cursor/index.js +28 -0
  376. package/node_modules/@tiptap/extensions/dist/index.cjs +711 -0
  377. package/node_modules/@tiptap/extensions/dist/index.d.cts +321 -0
  378. package/node_modules/@tiptap/extensions/dist/index.d.ts +321 -0
  379. package/node_modules/@tiptap/extensions/dist/index.js +699 -0
  380. package/node_modules/@tiptap/extensions/dist/placeholder/index.cjs +372 -0
  381. package/node_modules/@tiptap/extensions/dist/placeholder/index.d.cts +91 -0
  382. package/node_modules/@tiptap/extensions/dist/placeholder/index.d.ts +91 -0
  383. package/node_modules/@tiptap/extensions/dist/placeholder/index.js +368 -0
  384. package/node_modules/@tiptap/extensions/dist/selection/index.cjs +72 -0
  385. package/node_modules/@tiptap/extensions/dist/selection/index.d.cts +20 -0
  386. package/node_modules/@tiptap/extensions/dist/selection/index.d.ts +20 -0
  387. package/node_modules/@tiptap/extensions/dist/selection/index.js +71 -0
  388. package/node_modules/@tiptap/extensions/dist/trailing-node/index.cjs +62 -0
  389. package/node_modules/@tiptap/extensions/dist/trailing-node/index.d.cts +30 -0
  390. package/node_modules/@tiptap/extensions/dist/trailing-node/index.d.ts +30 -0
  391. package/node_modules/@tiptap/extensions/dist/trailing-node/index.js +60 -0
  392. package/node_modules/@tiptap/extensions/dist/undo-redo/index.cjs +48 -0
  393. package/node_modules/@tiptap/extensions/dist/undo-redo/index.d.cts +45 -0
  394. package/node_modules/@tiptap/extensions/dist/undo-redo/index.d.ts +45 -0
  395. package/node_modules/@tiptap/extensions/dist/undo-redo/index.js +47 -0
  396. package/node_modules/@tiptap/extensions/package.json +116 -0
  397. package/node_modules/@tiptap/pm/LICENSE +21 -0
  398. package/node_modules/@tiptap/pm/README.md +22 -0
  399. package/node_modules/@tiptap/pm/THIRD_PARTY_LICENSES.md +47 -0
  400. package/node_modules/@tiptap/pm/changeset/index.ts +1 -0
  401. package/node_modules/@tiptap/pm/commands/index.ts +1 -0
  402. package/node_modules/@tiptap/pm/dist/changeset/index.cjs +9 -0
  403. package/node_modules/@tiptap/pm/dist/changeset/index.d.cts +1 -0
  404. package/node_modules/@tiptap/pm/dist/changeset/index.d.ts +1 -0
  405. package/node_modules/@tiptap/pm/dist/changeset/index.js +2 -0
  406. package/node_modules/@tiptap/pm/dist/commands/index.cjs +9 -0
  407. package/node_modules/@tiptap/pm/dist/commands/index.d.cts +1 -0
  408. package/node_modules/@tiptap/pm/dist/commands/index.d.ts +1 -0
  409. package/node_modules/@tiptap/pm/dist/commands/index.js +2 -0
  410. package/node_modules/@tiptap/pm/dist/dropcursor/index.cjs +9 -0
  411. package/node_modules/@tiptap/pm/dist/dropcursor/index.d.cts +1 -0
  412. package/node_modules/@tiptap/pm/dist/dropcursor/index.d.ts +1 -0
  413. package/node_modules/@tiptap/pm/dist/dropcursor/index.js +2 -0
  414. package/node_modules/@tiptap/pm/dist/gapcursor/index.cjs +9 -0
  415. package/node_modules/@tiptap/pm/dist/gapcursor/index.d.cts +1 -0
  416. package/node_modules/@tiptap/pm/dist/gapcursor/index.d.ts +1 -0
  417. package/node_modules/@tiptap/pm/dist/gapcursor/index.js +2 -0
  418. package/node_modules/@tiptap/pm/dist/history/index.cjs +9 -0
  419. package/node_modules/@tiptap/pm/dist/history/index.d.cts +1 -0
  420. package/node_modules/@tiptap/pm/dist/history/index.d.ts +1 -0
  421. package/node_modules/@tiptap/pm/dist/history/index.js +2 -0
  422. package/node_modules/@tiptap/pm/dist/inputrules/index.cjs +9 -0
  423. package/node_modules/@tiptap/pm/dist/inputrules/index.d.cts +1 -0
  424. package/node_modules/@tiptap/pm/dist/inputrules/index.d.ts +1 -0
  425. package/node_modules/@tiptap/pm/dist/inputrules/index.js +2 -0
  426. package/node_modules/@tiptap/pm/dist/keymap/index.cjs +9 -0
  427. package/node_modules/@tiptap/pm/dist/keymap/index.d.cts +1 -0
  428. package/node_modules/@tiptap/pm/dist/keymap/index.d.ts +1 -0
  429. package/node_modules/@tiptap/pm/dist/keymap/index.js +2 -0
  430. package/node_modules/@tiptap/pm/dist/model/index.cjs +9 -0
  431. package/node_modules/@tiptap/pm/dist/model/index.d.cts +1 -0
  432. package/node_modules/@tiptap/pm/dist/model/index.d.ts +1 -0
  433. package/node_modules/@tiptap/pm/dist/model/index.js +2 -0
  434. package/node_modules/@tiptap/pm/dist/schema-list/index.cjs +9 -0
  435. package/node_modules/@tiptap/pm/dist/schema-list/index.d.cts +1 -0
  436. package/node_modules/@tiptap/pm/dist/schema-list/index.d.ts +1 -0
  437. package/node_modules/@tiptap/pm/dist/schema-list/index.js +2 -0
  438. package/node_modules/@tiptap/pm/dist/state/index.cjs +9 -0
  439. package/node_modules/@tiptap/pm/dist/state/index.d.cts +1 -0
  440. package/node_modules/@tiptap/pm/dist/state/index.d.ts +1 -0
  441. package/node_modules/@tiptap/pm/dist/state/index.js +2 -0
  442. package/node_modules/@tiptap/pm/dist/tables/index.cjs +9 -0
  443. package/node_modules/@tiptap/pm/dist/tables/index.d.cts +1 -0
  444. package/node_modules/@tiptap/pm/dist/tables/index.d.ts +1 -0
  445. package/node_modules/@tiptap/pm/dist/tables/index.js +2 -0
  446. package/node_modules/@tiptap/pm/dist/transform/index.cjs +9 -0
  447. package/node_modules/@tiptap/pm/dist/transform/index.d.cts +1 -0
  448. package/node_modules/@tiptap/pm/dist/transform/index.d.ts +1 -0
  449. package/node_modules/@tiptap/pm/dist/transform/index.js +2 -0
  450. package/node_modules/@tiptap/pm/dist/view/index.cjs +9 -0
  451. package/node_modules/@tiptap/pm/dist/view/index.d.cts +1 -0
  452. package/node_modules/@tiptap/pm/dist/view/index.d.ts +1 -0
  453. package/node_modules/@tiptap/pm/dist/view/index.js +2 -0
  454. package/node_modules/@tiptap/pm/dropcursor/index.ts +1 -0
  455. package/node_modules/@tiptap/pm/gapcursor/index.ts +1 -0
  456. package/node_modules/@tiptap/pm/history/index.ts +1 -0
  457. package/node_modules/@tiptap/pm/inputrules/index.ts +1 -0
  458. package/node_modules/@tiptap/pm/keymap/index.ts +1 -0
  459. package/node_modules/@tiptap/pm/model/index.ts +1 -0
  460. package/node_modules/@tiptap/pm/package.json +166 -0
  461. package/node_modules/@tiptap/pm/schema-list/index.ts +1 -0
  462. package/node_modules/@tiptap/pm/state/index.ts +1 -0
  463. package/node_modules/@tiptap/pm/tables/index.ts +1 -0
  464. package/node_modules/@tiptap/pm/transform/index.ts +1 -0
  465. package/node_modules/@tiptap/pm/view/index.ts +1 -0
  466. package/node_modules/@tiptap/react/LICENSE.md +21 -0
  467. package/node_modules/@tiptap/react/README.md +18 -0
  468. package/node_modules/@tiptap/react/dist/index.cjs +1396 -0
  469. package/node_modules/@tiptap/react/dist/index.d.cts +632 -0
  470. package/node_modules/@tiptap/react/dist/index.d.ts +632 -0
  471. package/node_modules/@tiptap/react/dist/index.js +1337 -0
  472. package/node_modules/@tiptap/react/dist/menus/index.cjs +469 -0
  473. package/node_modules/@tiptap/react/dist/menus/index.d.cts +21 -0
  474. package/node_modules/@tiptap/react/dist/menus/index.d.ts +21 -0
  475. package/node_modules/@tiptap/react/dist/menus/index.js +444 -0
  476. package/node_modules/@tiptap/react/package.json +80 -0
  477. package/node_modules/@tiptap/starter-kit/LICENSE.md +21 -0
  478. package/node_modules/@tiptap/starter-kit/README.md +18 -0
  479. package/node_modules/@tiptap/starter-kit/dist/index.cjs +76 -0
  480. package/node_modules/@tiptap/starter-kit/dist/index.d.cts +137 -0
  481. package/node_modules/@tiptap/starter-kit/dist/index.d.ts +137 -0
  482. package/node_modules/@tiptap/starter-kit/dist/index.js +71 -0
  483. package/node_modules/@tiptap/starter-kit/package.json +70 -0
  484. package/node_modules/@tiptap/suggestion/LICENSE.md +21 -0
  485. package/node_modules/@tiptap/suggestion/README.md +18 -0
  486. package/node_modules/@tiptap/suggestion/dist/index.cjs +665 -0
  487. package/node_modules/@tiptap/suggestion/dist/index.d.cts +419 -0
  488. package/node_modules/@tiptap/suggestion/dist/index.d.ts +419 -0
  489. package/node_modules/@tiptap/suggestion/dist/index.js +657 -0
  490. package/node_modules/@tiptap/suggestion/package.json +54 -0
  491. package/node_modules/@types/use-sync-external-store/LICENSE +21 -0
  492. package/node_modules/@types/use-sync-external-store/README.md +15 -0
  493. package/node_modules/@types/use-sync-external-store/index.d.ts +5 -0
  494. package/node_modules/@types/use-sync-external-store/package.json +30 -0
  495. package/node_modules/@types/use-sync-external-store/shim/index.d.ts +1 -0
  496. package/node_modules/@types/use-sync-external-store/shim/with-selector.d.ts +1 -0
  497. package/node_modules/@types/use-sync-external-store/with-selector.d.ts +7 -0
  498. package/node_modules/fast-equals/LICENSE +21 -0
  499. package/node_modules/fast-equals/README.md +479 -0
  500. package/node_modules/fast-equals/dist/cjs/index.cjs +796 -0
  501. package/node_modules/fast-equals/dist/cjs/index.d.cts +211 -0
  502. package/node_modules/fast-equals/dist/es/index.d.mts +211 -0
  503. package/node_modules/fast-equals/dist/es/index.mjs +785 -0
  504. package/node_modules/fast-equals/dist/umd/index.d.ts +211 -0
  505. package/node_modules/fast-equals/dist/umd/index.js +802 -0
  506. package/node_modules/fast-equals/index.d.ts +211 -0
  507. package/node_modules/fast-equals/package.json +120 -0
  508. package/node_modules/linkifyjs/LICENSE +19 -0
  509. package/node_modules/linkifyjs/README.md +47 -0
  510. package/node_modules/linkifyjs/dist/linkify.cjs +1854 -0
  511. package/node_modules/linkifyjs/dist/linkify.d.cts +637 -0
  512. package/node_modules/linkifyjs/dist/linkify.d.mts +637 -0
  513. package/node_modules/linkifyjs/dist/linkify.js +1859 -0
  514. package/node_modules/linkifyjs/dist/linkify.min.js +1 -0
  515. package/node_modules/linkifyjs/dist/linkify.mjs +1836 -0
  516. package/node_modules/linkifyjs/package.json +38 -0
  517. package/node_modules/orderedmap/LICENSE +19 -0
  518. package/node_modules/orderedmap/README.md +69 -0
  519. package/node_modules/orderedmap/dist/index.cjs +139 -0
  520. package/node_modules/orderedmap/dist/index.d.cts +33 -0
  521. package/node_modules/orderedmap/dist/index.d.ts +33 -0
  522. package/node_modules/orderedmap/dist/index.js +137 -0
  523. package/node_modules/orderedmap/package.json +39 -0
  524. package/node_modules/prosemirror-changeset/CHANGELOG.md +171 -0
  525. package/node_modules/prosemirror-changeset/LICENSE +19 -0
  526. package/node_modules/prosemirror-changeset/README.md +175 -0
  527. package/node_modules/prosemirror-changeset/dist/index.cjs +588 -0
  528. package/node_modules/prosemirror-changeset/dist/index.d.cts +187 -0
  529. package/node_modules/prosemirror-changeset/dist/index.d.ts +187 -0
  530. package/node_modules/prosemirror-changeset/dist/index.js +722 -0
  531. package/node_modules/prosemirror-changeset/package.json +40 -0
  532. package/node_modules/prosemirror-changeset/test/test-changed-range.ts +48 -0
  533. package/node_modules/prosemirror-changeset/test/test-changes.ts +211 -0
  534. package/node_modules/prosemirror-changeset/test/test-diff.ts +77 -0
  535. package/node_modules/prosemirror-changeset/test/test-merge.ts +56 -0
  536. package/node_modules/prosemirror-changeset/test/test-simplify.ts +74 -0
  537. package/node_modules/prosemirror-commands/.tern-project +8 -0
  538. package/node_modules/prosemirror-commands/CHANGELOG.md +328 -0
  539. package/node_modules/prosemirror-commands/CONTRIBUTING.md +104 -0
  540. package/node_modules/prosemirror-commands/LICENSE +19 -0
  541. package/node_modules/prosemirror-commands/README.md +28 -0
  542. package/node_modules/prosemirror-commands/dist/index.cjs +688 -0
  543. package/node_modules/prosemirror-commands/dist/index.d.cts +215 -0
  544. package/node_modules/prosemirror-commands/dist/index.d.ts +215 -0
  545. package/node_modules/prosemirror-commands/dist/index.js +852 -0
  546. package/node_modules/prosemirror-commands/package.json +39 -0
  547. package/node_modules/prosemirror-dropcursor/CHANGELOG.md +149 -0
  548. package/node_modules/prosemirror-dropcursor/CONTRIBUTING.md +104 -0
  549. package/node_modules/prosemirror-dropcursor/LICENSE +19 -0
  550. package/node_modules/prosemirror-dropcursor/README.md +50 -0
  551. package/node_modules/prosemirror-dropcursor/dist/index.cjs +200 -0
  552. package/node_modules/prosemirror-dropcursor/dist/index.d.cts +38 -0
  553. package/node_modules/prosemirror-dropcursor/dist/index.d.ts +38 -0
  554. package/node_modules/prosemirror-dropcursor/dist/index.js +163 -0
  555. package/node_modules/prosemirror-dropcursor/package.json +38 -0
  556. package/node_modules/prosemirror-gapcursor/CHANGELOG.md +122 -0
  557. package/node_modules/prosemirror-gapcursor/CONTRIBUTING.md +104 -0
  558. package/node_modules/prosemirror-gapcursor/LICENSE +19 -0
  559. package/node_modules/prosemirror-gapcursor/README.md +31 -0
  560. package/node_modules/prosemirror-gapcursor/dist/index.cjs +239 -0
  561. package/node_modules/prosemirror-gapcursor/dist/index.d.cts +31 -0
  562. package/node_modules/prosemirror-gapcursor/dist/index.d.ts +31 -0
  563. package/node_modules/prosemirror-gapcursor/dist/index.js +239 -0
  564. package/node_modules/prosemirror-gapcursor/package.json +43 -0
  565. package/node_modules/prosemirror-gapcursor/style/gapcursor.css +25 -0
  566. package/node_modules/prosemirror-history/.tern-project +8 -0
  567. package/node_modules/prosemirror-history/CHANGELOG.md +176 -0
  568. package/node_modules/prosemirror-history/CONTRIBUTING.md +104 -0
  569. package/node_modules/prosemirror-history/LICENSE +19 -0
  570. package/node_modules/prosemirror-history/README.md +27 -0
  571. package/node_modules/prosemirror-history/dist/index.cjs +383 -0
  572. package/node_modules/prosemirror-history/dist/index.d.cts +64 -0
  573. package/node_modules/prosemirror-history/dist/index.d.ts +64 -0
  574. package/node_modules/prosemirror-history/dist/index.js +454 -0
  575. package/node_modules/prosemirror-history/package.json +40 -0
  576. package/node_modules/prosemirror-inputrules/.tern-project +8 -0
  577. package/node_modules/prosemirror-inputrules/CHANGELOG.md +127 -0
  578. package/node_modules/prosemirror-inputrules/CONTRIBUTING.md +104 -0
  579. package/node_modules/prosemirror-inputrules/LICENSE +19 -0
  580. package/node_modules/prosemirror-inputrules/README.md +29 -0
  581. package/node_modules/prosemirror-inputrules/dist/index.cjs +194 -0
  582. package/node_modules/prosemirror-inputrules/dist/index.d.cts +131 -0
  583. package/node_modules/prosemirror-inputrules/dist/index.d.ts +131 -0
  584. package/node_modules/prosemirror-inputrules/dist/index.js +239 -0
  585. package/node_modules/prosemirror-inputrules/package.json +36 -0
  586. package/node_modules/prosemirror-keymap/.tern-project +8 -0
  587. package/node_modules/prosemirror-keymap/CHANGELOG.md +104 -0
  588. package/node_modules/prosemirror-keymap/CONTRIBUTING.md +104 -0
  589. package/node_modules/prosemirror-keymap/LICENSE +19 -0
  590. package/node_modules/prosemirror-keymap/README.md +27 -0
  591. package/node_modules/prosemirror-keymap/dist/index.cjs +65 -0
  592. package/node_modules/prosemirror-keymap/dist/index.d.cts +47 -0
  593. package/node_modules/prosemirror-keymap/dist/index.d.ts +47 -0
  594. package/node_modules/prosemirror-keymap/dist/index.js +128 -0
  595. package/node_modules/prosemirror-keymap/package.json +38 -0
  596. package/node_modules/prosemirror-model/.tern-project +8 -0
  597. package/node_modules/prosemirror-model/CHANGELOG.md +782 -0
  598. package/node_modules/prosemirror-model/CONTRIBUTING.md +104 -0
  599. package/node_modules/prosemirror-model/LICENSE +19 -0
  600. package/node_modules/prosemirror-model/README.md +29 -0
  601. package/node_modules/prosemirror-model/dist/index.cjs +2911 -0
  602. package/node_modules/prosemirror-model/dist/index.d.cts +1683 -0
  603. package/node_modules/prosemirror-model/dist/index.d.ts +1683 -0
  604. package/node_modules/prosemirror-model/dist/index.js +3463 -0
  605. package/node_modules/prosemirror-model/package.json +38 -0
  606. package/node_modules/prosemirror-schema-list/.tern-project +8 -0
  607. package/node_modules/prosemirror-schema-list/CHANGELOG.md +140 -0
  608. package/node_modules/prosemirror-schema-list/CONTRIBUTING.md +100 -0
  609. package/node_modules/prosemirror-schema-list/LICENSE +19 -0
  610. package/node_modules/prosemirror-schema-list/README.md +28 -0
  611. package/node_modules/prosemirror-schema-list/dist/index.cjs +253 -0
  612. package/node_modules/prosemirror-schema-list/dist/index.d.cts +71 -0
  613. package/node_modules/prosemirror-schema-list/dist/index.d.ts +71 -0
  614. package/node_modules/prosemirror-schema-list/dist/index.js +289 -0
  615. package/node_modules/prosemirror-schema-list/package.json +40 -0
  616. package/node_modules/prosemirror-state/.tern-project +8 -0
  617. package/node_modules/prosemirror-state/CHANGELOG.md +296 -0
  618. package/node_modules/prosemirror-state/CONTRIBUTING.md +104 -0
  619. package/node_modules/prosemirror-state/LICENSE +19 -0
  620. package/node_modules/prosemirror-state/README.md +28 -0
  621. package/node_modules/prosemirror-state/dist/index.cjs +884 -0
  622. package/node_modules/prosemirror-state/dist/index.d.cts +709 -0
  623. package/node_modules/prosemirror-state/dist/index.d.ts +709 -0
  624. package/node_modules/prosemirror-state/dist/index.js +1002 -0
  625. package/node_modules/prosemirror-state/package.json +39 -0
  626. package/node_modules/prosemirror-tables/LICENSE +19 -0
  627. package/node_modules/prosemirror-tables/README.md +254 -0
  628. package/node_modules/prosemirror-tables/dist/index.cjs +2683 -0
  629. package/node_modules/prosemirror-tables/dist/index.d.cts +751 -0
  630. package/node_modules/prosemirror-tables/dist/index.d.ts +751 -0
  631. package/node_modules/prosemirror-tables/dist/index.js +2626 -0
  632. package/node_modules/prosemirror-tables/package.json +80 -0
  633. package/node_modules/prosemirror-tables/style/tables.css +48 -0
  634. package/node_modules/prosemirror-transform/.tern-project +8 -0
  635. package/node_modules/prosemirror-transform/CHANGELOG.md +530 -0
  636. package/node_modules/prosemirror-transform/CONTRIBUTING.md +104 -0
  637. package/node_modules/prosemirror-transform/LICENSE +19 -0
  638. package/node_modules/prosemirror-transform/README.md +29 -0
  639. package/node_modules/prosemirror-transform/dist/index.cjs +2014 -0
  640. package/node_modules/prosemirror-transform/dist/index.d.cts +857 -0
  641. package/node_modules/prosemirror-transform/dist/index.d.ts +857 -0
  642. package/node_modules/prosemirror-transform/dist/index.js +2272 -0
  643. package/node_modules/prosemirror-transform/package.json +37 -0
  644. package/node_modules/prosemirror-view/.tern-project +8 -0
  645. package/node_modules/prosemirror-view/CHANGELOG.md +2543 -0
  646. package/node_modules/prosemirror-view/CONTRIBUTING.md +104 -0
  647. package/node_modules/prosemirror-view/LICENSE +19 -0
  648. package/node_modules/prosemirror-view/README.md +28 -0
  649. package/node_modules/prosemirror-view/dist/index.cjs +5549 -0
  650. package/node_modules/prosemirror-view/dist/index.d.cts +913 -0
  651. package/node_modules/prosemirror-view/dist/index.d.ts +913 -0
  652. package/node_modules/prosemirror-view/dist/index.js +6053 -0
  653. package/node_modules/prosemirror-view/package.json +43 -0
  654. package/node_modules/prosemirror-view/style/prosemirror.css +54 -0
  655. package/node_modules/rope-sequence/LICENSE +19 -0
  656. package/node_modules/rope-sequence/README.md +63 -0
  657. package/node_modules/rope-sequence/dist/index.cjs +209 -0
  658. package/node_modules/rope-sequence/dist/index.d.cts +11 -0
  659. package/node_modules/rope-sequence/dist/index.d.ts +11 -0
  660. package/node_modules/rope-sequence/dist/index.js +207 -0
  661. package/node_modules/rope-sequence/index.js +190 -0
  662. package/node_modules/rope-sequence/package.json +34 -0
  663. package/node_modules/rope-sequence/test.js +78 -0
  664. package/node_modules/use-sync-external-store/LICENSE +21 -0
  665. package/node_modules/use-sync-external-store/README.md +5 -0
  666. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +97 -0
  667. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +85 -0
  668. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +95 -0
  669. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.native.development.js +88 -0
  670. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.native.production.js +59 -0
  671. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +66 -0
  672. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +96 -0
  673. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +84 -0
  674. package/node_modules/use-sync-external-store/cjs/use-sync-external-store.development.js +27 -0
  675. package/node_modules/use-sync-external-store/cjs/use-sync-external-store.production.js +13 -0
  676. package/node_modules/use-sync-external-store/index.js +7 -0
  677. package/node_modules/use-sync-external-store/package.json +43 -0
  678. package/node_modules/use-sync-external-store/shim/index.js +7 -0
  679. package/node_modules/use-sync-external-store/shim/index.native.js +7 -0
  680. package/node_modules/use-sync-external-store/shim/with-selector.js +7 -0
  681. package/node_modules/use-sync-external-store/with-selector.js +7 -0
  682. package/node_modules/w3c-keyname/.tern-port +1 -0
  683. package/node_modules/w3c-keyname/LICENSE +19 -0
  684. package/node_modules/w3c-keyname/README.md +18 -0
  685. package/node_modules/w3c-keyname/index.cjs +127 -0
  686. package/node_modules/w3c-keyname/index.d.cts +5 -0
  687. package/node_modules/w3c-keyname/index.d.ts +5 -0
  688. package/node_modules/w3c-keyname/index.js +119 -0
  689. package/node_modules/w3c-keyname/package.json +37 -0
  690. package/package.json +79 -4
  691. package/src/Editor.tsx +425 -0
  692. package/src/ask.tsx +154 -0
  693. package/src/basic.tsx +149 -0
  694. package/src/blockMeta.ts +42 -0
  695. package/src/blockops.ts +179 -0
  696. package/src/blocks.tsx +189 -0
  697. package/src/boundary.tsx +17 -0
  698. package/src/content.ts +22 -0
  699. package/src/dynamic.tsx +105 -0
  700. package/src/editor.css +345 -0
  701. package/src/extensions.ts +78 -0
  702. package/src/handle.tsx +188 -0
  703. package/src/handles.tsx +149 -0
  704. package/src/index.ts +29 -0
  705. package/src/insert.ts +9 -0
  706. package/src/inserter.tsx +163 -0
  707. package/src/inspector.tsx +237 -0
  708. package/src/labels.ts +135 -0
  709. package/src/layout.tsx +174 -0
  710. package/src/layoutUi.tsx +226 -0
  711. package/src/media.ts +31 -0
  712. package/src/nodes.tsx +107 -0
  713. package/src/outline.tsx +124 -0
  714. package/src/panels.ts +59 -0
  715. package/src/paste.ts +100 -0
  716. package/src/patterns.ts +129 -0
  717. package/src/rank.ts +22 -0
  718. package/src/registry.ts +20 -0
  719. package/src/styleattr.ts +55 -0
  720. package/src/stylepanel.tsx +275 -0
  721. package/src/synced.tsx +128 -0
  722. package/src/toolbar.tsx +238 -0
  723. package/src/types.ts +55 -0
  724. package/src/unknown.tsx +74 -0
  725. package/src/util.ts +3 -0
@@ -0,0 +1,711 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ let _tiptap_core = require("@tiptap/core");
3
+ let _tiptap_pm_state = require("@tiptap/pm/state");
4
+ let _tiptap_pm_dropcursor = require("@tiptap/pm/dropcursor");
5
+ let _tiptap_pm_view = require("@tiptap/pm/view");
6
+ let _tiptap_pm_gapcursor = require("@tiptap/pm/gapcursor");
7
+ let _tiptap_pm_history = require("@tiptap/pm/history");
8
+ //#region src/character-count/character-count.ts
9
+ /**
10
+ * This extension allows you to count the characters and words of your document.
11
+ * @see https://tiptap.dev/api/extensions/character-count
12
+ */
13
+ const CharacterCount = _tiptap_core.Extension.create({
14
+ name: "characterCount",
15
+ addOptions() {
16
+ return {
17
+ limit: null,
18
+ autoTrim: true,
19
+ mode: "textSize",
20
+ textCounter: (text) => text.length,
21
+ wordCounter: (text) => text.split(" ").filter((word) => word !== "").length
22
+ };
23
+ },
24
+ addStorage() {
25
+ return {
26
+ characters: () => 0,
27
+ words: () => 0
28
+ };
29
+ },
30
+ onBeforeCreate() {
31
+ this.storage.characters = (options) => {
32
+ const node = (options === null || options === void 0 ? void 0 : options.node) || this.editor.state.doc;
33
+ if (((options === null || options === void 0 ? void 0 : options.mode) || this.options.mode) === "textSize") {
34
+ const text = node.textBetween(0, node.content.size, void 0, " ");
35
+ return this.options.textCounter(text);
36
+ }
37
+ return node.nodeSize;
38
+ };
39
+ this.storage.words = (options) => {
40
+ const node = (options === null || options === void 0 ? void 0 : options.node) || this.editor.state.doc;
41
+ const text = node.textBetween(0, node.content.size, " ", " ");
42
+ return this.options.wordCounter(text);
43
+ };
44
+ },
45
+ addProseMirrorPlugins() {
46
+ let initialEvaluationDone = false;
47
+ return [new _tiptap_pm_state.Plugin({
48
+ key: new _tiptap_pm_state.PluginKey("characterCount"),
49
+ appendTransaction: (transactions, oldState, newState) => {
50
+ if (initialEvaluationDone) return;
51
+ const limit = this.options.limit;
52
+ const autoTrim = this.options.autoTrim;
53
+ if (limit === null || limit === void 0 || limit === 0 || autoTrim === false) {
54
+ initialEvaluationDone = true;
55
+ return;
56
+ }
57
+ const initialContentSize = this.storage.characters({ node: newState.doc });
58
+ if (initialContentSize > limit) {
59
+ const over = initialContentSize - limit;
60
+ const from = 0;
61
+ const to = over;
62
+ console.warn(`[CharacterCount] Initial content exceeded limit of ${limit} characters. Content was automatically trimmed.`);
63
+ const tr = newState.tr.deleteRange(from, to);
64
+ initialEvaluationDone = true;
65
+ return tr;
66
+ }
67
+ initialEvaluationDone = true;
68
+ },
69
+ filterTransaction: (transaction, state) => {
70
+ const limit = this.options.limit;
71
+ if (!transaction.docChanged || limit === 0 || limit === null || limit === void 0) return true;
72
+ const oldSize = this.storage.characters({ node: state.doc });
73
+ const newSize = this.storage.characters({ node: transaction.doc });
74
+ if (newSize <= limit) return true;
75
+ if (oldSize > limit && newSize > limit && newSize <= oldSize) return true;
76
+ if (oldSize > limit && newSize > limit && newSize > oldSize) return false;
77
+ if (!transaction.getMeta("paste")) return false;
78
+ const pos = transaction.selection.$head.pos;
79
+ const from = pos - (newSize - limit);
80
+ const to = pos;
81
+ transaction.deleteRange(from, to);
82
+ if (this.storage.characters({ node: transaction.doc }) > limit) return false;
83
+ return true;
84
+ }
85
+ })];
86
+ }
87
+ });
88
+ //#endregion
89
+ //#region src/drop-cursor/drop-cursor.ts
90
+ /**
91
+ * This extension allows you to add a drop cursor to your editor.
92
+ * A drop cursor is a line that appears when you drag and drop content
93
+ * in-between nodes.
94
+ * @see https://tiptap.dev/api/extensions/dropcursor
95
+ */
96
+ const Dropcursor = _tiptap_core.Extension.create({
97
+ name: "dropCursor",
98
+ addOptions() {
99
+ return {
100
+ color: "currentColor",
101
+ width: 1,
102
+ class: void 0
103
+ };
104
+ },
105
+ addProseMirrorPlugins() {
106
+ return [(0, _tiptap_pm_dropcursor.dropCursor)(this.options)];
107
+ }
108
+ });
109
+ //#endregion
110
+ //#region src/focus/focus.ts
111
+ /**
112
+ * This extension allows you to add a class to the focused node.
113
+ * @see https://www.tiptap.dev/api/extensions/focus
114
+ */
115
+ const Focus = _tiptap_core.Extension.create({
116
+ name: "focus",
117
+ addOptions() {
118
+ return {
119
+ className: "has-focus",
120
+ mode: "all"
121
+ };
122
+ },
123
+ addProseMirrorPlugins() {
124
+ return [new _tiptap_pm_state.Plugin({
125
+ key: new _tiptap_pm_state.PluginKey("focus"),
126
+ props: { decorations: ({ doc, selection }) => {
127
+ const { isEditable, isFocused } = this.editor;
128
+ const { anchor } = selection;
129
+ const decorations = [];
130
+ if (!isEditable || !isFocused) return _tiptap_pm_view.DecorationSet.create(doc, []);
131
+ let maxLevels = 0;
132
+ if (this.options.mode === "deepest") doc.descendants((node, pos) => {
133
+ if (node.isText) return;
134
+ if (!(anchor >= pos && anchor <= pos + node.nodeSize - 1)) return false;
135
+ maxLevels += 1;
136
+ });
137
+ let currentLevel = 0;
138
+ doc.descendants((node, pos) => {
139
+ if (node.isText) return false;
140
+ if (!(anchor >= pos && anchor <= pos + node.nodeSize - 1)) return false;
141
+ currentLevel += 1;
142
+ if (this.options.mode === "deepest" && maxLevels - currentLevel > 0 || this.options.mode === "shallowest" && currentLevel > 1) return this.options.mode === "deepest";
143
+ decorations.push(_tiptap_pm_view.Decoration.node(pos, pos + node.nodeSize, { class: this.options.className }));
144
+ });
145
+ return _tiptap_pm_view.DecorationSet.create(doc, decorations);
146
+ } }
147
+ })];
148
+ }
149
+ });
150
+ //#endregion
151
+ //#region src/gap-cursor/gap-cursor.ts
152
+ /**
153
+ * This extension allows you to add a gap cursor to your editor.
154
+ * A gap cursor is a cursor that appears when you click on a place
155
+ * where no content is present, for example inbetween nodes.
156
+ * @see https://tiptap.dev/api/extensions/gapcursor
157
+ */
158
+ const Gapcursor = _tiptap_core.Extension.create({
159
+ name: "gapCursor",
160
+ addProseMirrorPlugins() {
161
+ return [(0, _tiptap_pm_gapcursor.gapCursor)()];
162
+ },
163
+ extendNodeSchema(extension) {
164
+ var _callOrReturn;
165
+ const context = {
166
+ name: extension.name,
167
+ options: extension.options,
168
+ storage: extension.storage
169
+ };
170
+ return { allowGapCursor: (_callOrReturn = (0, _tiptap_core.callOrReturn)((0, _tiptap_core.getExtensionField)(extension, "allowGapCursor", context))) !== null && _callOrReturn !== void 0 ? _callOrReturn : null };
171
+ }
172
+ });
173
+ //#endregion
174
+ //#region src/placeholder/constants.ts
175
+ /** The default data attribute label */
176
+ const DEFAULT_DATA_ATTRIBUTE = "placeholder";
177
+ /** The plugin key used to store and read the placeholder decoration set */
178
+ const PLUGIN_KEY = new _tiptap_pm_state.PluginKey("tiptap__placeholder");
179
+ //#endregion
180
+ //#region src/placeholder/utils/createPlaceholderDecoration.ts
181
+ /**
182
+ * Creates a ProseMirror node decoration that applies a placeholder
183
+ * CSS class and data attribute to an empty node.
184
+ * @param options.editor - The editor instance
185
+ * @param options.pos - The position of the node in the document
186
+ * @param options.node - The ProseMirror node
187
+ * @param options.isEmptyDoc - Whether the entire document is empty
188
+ * @param options.hasAnchor - Whether the selection anchor is within the node
189
+ * @param options.dataAttribute - The data attribute name (e.g. `data-placeholder`)
190
+ * @param options.classes - CSS classes for empty nodes and the empty editor
191
+ * @param options.placeholder - The placeholder text or a function that returns it
192
+ * @returns A ProseMirror node decoration with placeholder classes and data attribute
193
+ */
194
+ function createPlaceholderDecoration(options) {
195
+ const { editor, placeholder, dataAttribute, pos, node, isEmptyDoc, hasAnchor, classes: { emptyNode, emptyEditor } } = options;
196
+ const classes = [emptyNode];
197
+ if (isEmptyDoc) classes.push(emptyEditor);
198
+ return _tiptap_pm_view.Decoration.node(pos, pos + node.nodeSize, {
199
+ class: classes.join(" "),
200
+ [dataAttribute]: typeof placeholder === "function" ? placeholder({
201
+ editor,
202
+ node,
203
+ pos,
204
+ hasAnchor
205
+ }) : placeholder
206
+ });
207
+ }
208
+ //#endregion
209
+ //#region src/placeholder/utils/buildPlaceholderDecorations.ts
210
+ function resolveEmptyNodeClass(emptyNodeClass, props) {
211
+ return typeof emptyNodeClass === "function" ? emptyNodeClass(props) : emptyNodeClass;
212
+ }
213
+ /**
214
+ * Scans a document range for empty textblocks that should receive placeholder
215
+ * decorations. Used by the slow path and incremental state updates.
216
+ */
217
+ function scanRangeForDecorations({ editor, options, dataAttribute, doc, selection, from, to }) {
218
+ const { anchor } = selection;
219
+ const decorations = [];
220
+ const isEmptyDoc = editor.isEmpty;
221
+ doc.nodesBetween(from, to, (node, pos) => {
222
+ const hasAnchor = anchor >= pos && anchor <= pos + node.nodeSize;
223
+ const isEmpty = !node.isLeaf && (0, _tiptap_core.isNodeEmpty)(node);
224
+ if (!node.type.isTextblock) return options.includeChildren;
225
+ if ((hasAnchor || !options.showOnlyCurrent) && isEmpty) decorations.push(createPlaceholderDecoration({
226
+ editor,
227
+ isEmptyDoc,
228
+ dataAttribute,
229
+ hasAnchor,
230
+ placeholder: options.placeholder,
231
+ classes: {
232
+ emptyEditor: options.emptyEditorClass,
233
+ emptyNode: resolveEmptyNodeClass(options.emptyNodeClass, {
234
+ editor,
235
+ node,
236
+ pos,
237
+ hasAnchor
238
+ })
239
+ },
240
+ node,
241
+ pos
242
+ }));
243
+ return options.includeChildren;
244
+ });
245
+ return decorations;
246
+ }
247
+ /**
248
+ * Builds the placeholder decorations for the current document state.
249
+ * @param options.editor - The editor instance.
250
+ * @param options.options - The resolved placeholder options.
251
+ * @param options.dataAttribute - The prepared `data-*` attribute name.
252
+ * @param options.doc - The current document node.
253
+ * @param options.selection - The current selection.
254
+ * @returns A decoration set, or `null` when no placeholders should be shown.
255
+ */
256
+ function buildPlaceholderDecorations({ editor, options, dataAttribute, doc, selection }) {
257
+ if (!(editor.isEditable || !options.showOnlyWhenEditable)) return null;
258
+ const { anchor } = selection;
259
+ const decorations = [];
260
+ const isEmptyDoc = editor.isEmpty;
261
+ if (options.showOnlyCurrent && !options.includeChildren) {
262
+ const resolved = doc.resolve(anchor);
263
+ const node = resolved.depth > 0 ? resolved.node(1) : resolved.nodeAfter;
264
+ const nodeStart = resolved.depth > 0 ? resolved.before(1) : anchor;
265
+ if (node && node.type.isTextblock && (0, _tiptap_core.isNodeEmpty)(node)) {
266
+ const hasAnchor = anchor >= nodeStart && anchor <= nodeStart + node.nodeSize;
267
+ decorations.push(createPlaceholderDecoration({
268
+ editor,
269
+ isEmptyDoc,
270
+ dataAttribute,
271
+ hasAnchor,
272
+ placeholder: options.placeholder,
273
+ classes: {
274
+ emptyEditor: options.emptyEditorClass,
275
+ emptyNode: resolveEmptyNodeClass(options.emptyNodeClass, {
276
+ editor,
277
+ node,
278
+ pos: nodeStart,
279
+ hasAnchor
280
+ })
281
+ },
282
+ node,
283
+ pos: nodeStart
284
+ }));
285
+ }
286
+ } else decorations.push(...scanRangeForDecorations({
287
+ editor,
288
+ options,
289
+ dataAttribute,
290
+ doc,
291
+ selection,
292
+ from: 0,
293
+ to: doc.content.size
294
+ }));
295
+ return _tiptap_pm_view.DecorationSet.create(doc, decorations);
296
+ }
297
+ //#endregion
298
+ //#region src/placeholder/utils/resolveTopLevelRange.ts
299
+ /**
300
+ * Resolves a document position to the `[from, to)` range of its containing
301
+ * top-level block node in absolute document positions.
302
+ */
303
+ function resolveTopLevelRange(doc, pos) {
304
+ const resolved = doc.resolve(pos);
305
+ if (resolved.depth === 0) {
306
+ var _resolved$nodeAfter;
307
+ const node = (_resolved$nodeAfter = resolved.nodeAfter) !== null && _resolved$nodeAfter !== void 0 ? _resolved$nodeAfter : resolved.nodeBefore;
308
+ if (!node) return {
309
+ from: pos,
310
+ to: pos
311
+ };
312
+ const nodePos = resolved.nodeAfter ? pos : pos - node.nodeSize;
313
+ return {
314
+ from: nodePos,
315
+ to: nodePos + node.nodeSize
316
+ };
317
+ }
318
+ const topLevelPos = resolved.before(1);
319
+ return {
320
+ from: topLevelPos,
321
+ to: topLevelPos + resolved.node(1).nodeSize
322
+ };
323
+ }
324
+ /**
325
+ * Converts an absolute document range to content-relative positions used by
326
+ * `Node#nodesBetween` and `Node#forEach` offsets.
327
+ */
328
+ function toContentRelativeRange(doc, range) {
329
+ return {
330
+ from: Math.max(0, range.from - 1),
331
+ to: Math.min(doc.content.size, range.to - 1)
332
+ };
333
+ }
334
+ /**
335
+ * Returns the top-level block ranges that intersect a document change range.
336
+ * Input `from`/`to` are absolute positions (e.g. from `getChangedRanges`).
337
+ * Returned ranges are content-relative, matching `Node#forEach` offsets.
338
+ */
339
+ function getTopLevelBlocksInRange(doc, from, to) {
340
+ const ranges = [];
341
+ doc.forEach((node, offset) => {
342
+ const nodeStart = offset;
343
+ const nodeEnd = nodeStart + node.nodeSize;
344
+ const absNodeStart = nodeStart + 1;
345
+ const absNodeEnd = nodeEnd + 1;
346
+ if (absNodeStart < to && absNodeEnd > from) ranges.push({
347
+ from: nodeStart,
348
+ to: nodeEnd
349
+ });
350
+ });
351
+ return ranges;
352
+ }
353
+ /**
354
+ * Sorts ranges by start position and merges overlapping or adjacent ranges.
355
+ */
356
+ function mergeRanges(ranges) {
357
+ if (ranges.length === 0) return [];
358
+ const sorted = [...ranges].sort((a, b) => a.from - b.from);
359
+ const merged = [{ ...sorted[0] }];
360
+ for (let i = 1; i < sorted.length; i += 1) {
361
+ const last = merged[merged.length - 1];
362
+ const current = sorted[i];
363
+ if (current.from <= last.to) last.to = Math.max(last.to, current.to);
364
+ else merged.push({ ...current });
365
+ }
366
+ return merged;
367
+ }
368
+ //#endregion
369
+ //#region src/placeholder/utils/placeholderStateField.ts
370
+ /**
371
+ * Expands a single changed range to the top-level blocks it touches.
372
+ * Also resolves blocks at range boundaries so split/merge edits update
373
+ * adjacent empty nodes (e.g. a new paragraph after Enter).
374
+ */
375
+ function collectBlocksForChange(doc, change) {
376
+ const ranges = getTopLevelBlocksInRange(doc, change.from, change.to);
377
+ ranges.push(toContentRelativeRange(doc, resolveTopLevelRange(doc, change.from)));
378
+ if (change.to > change.from) ranges.push(toContentRelativeRange(doc, resolveTopLevelRange(doc, Math.min(change.to, doc.content.size + 1) - 1)));
379
+ else if (change.from < doc.content.size + 1) ranges.push(toContentRelativeRange(doc, resolveTopLevelRange(doc, Math.min(change.from + 1, doc.content.size))));
380
+ return ranges;
381
+ }
382
+ /**
383
+ * Collects content-relative top-level block ranges that need placeholder
384
+ * decorations recomputed after a transaction.
385
+ */
386
+ function collectRescanRanges(tr, oldState, newState) {
387
+ const ranges = [];
388
+ if (tr.docChanged) {
389
+ const changes = (0, _tiptap_core.getChangedRanges)(tr);
390
+ for (const change of changes) ranges.push(...collectBlocksForChange(newState.doc, change.newRange));
391
+ }
392
+ if (tr.selectionSet) {
393
+ ranges.push(toContentRelativeRange(newState.doc, resolveTopLevelRange(newState.doc, tr.mapping.map(oldState.selection.anchor))));
394
+ ranges.push(toContentRelativeRange(newState.doc, resolveTopLevelRange(newState.doc, newState.selection.anchor)));
395
+ }
396
+ return mergeRanges(ranges);
397
+ }
398
+ /** Clamps a content-relative range to `[0, doc.content.size]`. */
399
+ function clampRange(from, to, doc) {
400
+ const clampedFrom = Math.max(0, Math.min(from, doc.content.size));
401
+ return {
402
+ from: clampedFrom,
403
+ to: Math.max(clampedFrom, Math.min(to, doc.content.size))
404
+ };
405
+ }
406
+ /**
407
+ * Removes and rebuilds placeholder decorations within the given ranges.
408
+ * Only drops decorations fully contained in a range so mapped decorations
409
+ * on neighbouring blocks (e.g. at a block boundary) are kept intact.
410
+ */
411
+ function updateDecorationsInRanges({ decorations, ranges, editor, options, dataAttribute, doc, selection }) {
412
+ let next = decorations;
413
+ for (const range of ranges) {
414
+ const { from, to } = clampRange(range.from, range.to, doc);
415
+ const existing = next.find(from, to).filter((decoration) => decoration.from >= from && decoration.to <= to);
416
+ if (existing.length) next = next.remove(existing);
417
+ const newDecos = scanRangeForDecorations({
418
+ editor,
419
+ options,
420
+ dataAttribute,
421
+ doc,
422
+ selection,
423
+ from,
424
+ to
425
+ });
426
+ if (newDecos.length) next = next.add(doc, newDecos);
427
+ }
428
+ return next;
429
+ }
430
+ /**
431
+ * Creates the incremental `StateField<DecorationSet>` used by the slow path
432
+ * (`showOnlyCurrent: false` or `includeChildren: true`).
433
+ *
434
+ * Decorations are mapped through each transaction and only recomputed for
435
+ * top-level blocks touched by document or selection changes.
436
+ * @param options.editor - The editor instance.
437
+ * @param options.options - The resolved placeholder options.
438
+ * @param options.dataAttribute - The prepared `data-*` attribute name.
439
+ * @returns A ProseMirror state field storing the placeholder decoration set.
440
+ */
441
+ function createPlaceholderStateField({ editor, options, dataAttribute }) {
442
+ return {
443
+ init(_config, state) {
444
+ const decorations = buildPlaceholderDecorations({
445
+ editor,
446
+ options,
447
+ dataAttribute,
448
+ doc: state.doc,
449
+ selection: state.selection
450
+ });
451
+ return decorations !== null && decorations !== void 0 ? decorations : _tiptap_pm_view.DecorationSet.empty;
452
+ },
453
+ apply(tr, prev, oldState, newState) {
454
+ if (!tr.docChanged && !tr.selectionSet) return prev;
455
+ return updateDecorationsInRanges({
456
+ decorations: prev.map(tr.mapping, tr.doc),
457
+ ranges: collectRescanRanges(tr, oldState, newState),
458
+ editor,
459
+ options,
460
+ dataAttribute,
461
+ doc: newState.doc,
462
+ selection: newState.selection
463
+ });
464
+ }
465
+ };
466
+ }
467
+ //#endregion
468
+ //#region src/placeholder/utils/preparePlaceholderAttribute.ts
469
+ /**
470
+ * Prepares the placeholder attribute by ensuring it is properly formatted.
471
+ * @param attr - The placeholder attribute string.
472
+ * @returns The prepared placeholder attribute string.
473
+ */
474
+ function preparePlaceholderAttribute(attr) {
475
+ return attr.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
476
+ }
477
+ //#endregion
478
+ //#region src/placeholder/plugins/PlaceholderPlugin.ts
479
+ /**
480
+ * Creates the ProseMirror plugin that renders placeholder decorations.
481
+ * @param options.editor - The editor instance.
482
+ * @param options.options - The resolved placeholder options.
483
+ * @returns The configured placeholder plugin.
484
+ */
485
+ function createPlaceholderPlugin({ editor, options }) {
486
+ const dataAttribute = options.dataAttribute ? `data-${preparePlaceholderAttribute(options.dataAttribute)}` : `data-${DEFAULT_DATA_ATTRIBUTE}`;
487
+ const useResolvedPath = options.showOnlyCurrent && !options.includeChildren;
488
+ return new _tiptap_pm_state.Plugin({
489
+ key: PLUGIN_KEY,
490
+ ...useResolvedPath ? {} : { state: createPlaceholderStateField({
491
+ editor,
492
+ options,
493
+ dataAttribute
494
+ }) },
495
+ props: { decorations: useResolvedPath ? ({ doc, selection }) => buildPlaceholderDecorations({
496
+ editor,
497
+ options,
498
+ dataAttribute,
499
+ doc,
500
+ selection
501
+ }) : (state) => {
502
+ var _PLUGIN_KEY$getState;
503
+ if (options.showOnlyWhenEditable && !editor.isEditable) return _tiptap_pm_view.DecorationSet.empty;
504
+ return (_PLUGIN_KEY$getState = PLUGIN_KEY.getState(state)) !== null && _PLUGIN_KEY$getState !== void 0 ? _PLUGIN_KEY$getState : _tiptap_pm_view.DecorationSet.empty;
505
+ } }
506
+ });
507
+ }
508
+ //#endregion
509
+ //#region src/placeholder/placeholder.ts
510
+ /**
511
+ * This extension allows you to add a placeholder to your editor.
512
+ * A placeholder is a text that appears when the editor or a node is empty.
513
+ * @see https://www.tiptap.dev/api/extensions/placeholder
514
+ */
515
+ const Placeholder = _tiptap_core.Extension.create({
516
+ name: "placeholder",
517
+ addOptions() {
518
+ return {
519
+ emptyEditorClass: "is-editor-empty",
520
+ emptyNodeClass: "is-empty",
521
+ dataAttribute: DEFAULT_DATA_ATTRIBUTE,
522
+ placeholder: "Write something …",
523
+ showOnlyWhenEditable: true,
524
+ showOnlyCurrent: true,
525
+ includeChildren: false
526
+ };
527
+ },
528
+ addProseMirrorPlugins() {
529
+ return [createPlaceholderPlugin({
530
+ editor: this.editor,
531
+ options: this.options
532
+ })];
533
+ }
534
+ });
535
+ //#endregion
536
+ //#region src/selection/selection.ts
537
+ /**
538
+ * Whether the native browser selection should be cleared on blur and restored on focus.
539
+ * Only applies to non-empty text selections in an editable editor.
540
+ */
541
+ function shouldSyncDomSelection(state, editor) {
542
+ return !state.selection.empty && !(0, _tiptap_core.isNodeSelection)(state.selection) && editor.isEditable;
543
+ }
544
+ /**
545
+ * Whether the selection decoration should be rendered to keep the selection
546
+ * visible while the editor is blurred (and not dragging).
547
+ */
548
+ function shouldPreserveSelection(state, editor) {
549
+ return shouldSyncDomSelection(state, editor) && !editor.isFocused && !editor.view.dragging;
550
+ }
551
+ function clearDomSelection() {
552
+ var _window$getSelection;
553
+ (_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 || _window$getSelection.removeAllRanges();
554
+ }
555
+ /**
556
+ * Sync the native selection from the editor state.
557
+ * @see https://prosemirror.net/docs/ref/#view.EditorView.focus
558
+ */
559
+ function restoreDomSelection(view) {
560
+ view.focus();
561
+ }
562
+ /**
563
+ * This extension allows you to add a class to the selected text when the editor is blurred.
564
+ * It clears the native browser selection on blur (so `::selection` styles do not overlap the
565
+ * decoration) and restores it when the editor is focused again.
566
+ * @see https://www.tiptap.dev/api/extensions/selection
567
+ */
568
+ const Selection = _tiptap_core.Extension.create({
569
+ name: "selection",
570
+ addOptions() {
571
+ return { className: "selection" };
572
+ },
573
+ addProseMirrorPlugins() {
574
+ const { editor, options } = this;
575
+ return [new _tiptap_pm_state.Plugin({
576
+ key: new _tiptap_pm_state.PluginKey("selection"),
577
+ props: {
578
+ decorations(state) {
579
+ if (!shouldPreserveSelection(state, editor)) return null;
580
+ return _tiptap_pm_view.DecorationSet.create(state.doc, [_tiptap_pm_view.Decoration.inline(state.selection.from, state.selection.to, { class: options.className })]);
581
+ },
582
+ handleDOMEvents: {
583
+ blur(view) {
584
+ if (!shouldSyncDomSelection(view.state, editor)) return false;
585
+ clearDomSelection();
586
+ return false;
587
+ },
588
+ focus(view) {
589
+ if (!shouldSyncDomSelection(view.state, editor)) return false;
590
+ requestAnimationFrame(() => {
591
+ if (!editor.isDestroyed && view.hasFocus()) restoreDomSelection(view);
592
+ });
593
+ return false;
594
+ }
595
+ }
596
+ }
597
+ })];
598
+ }
599
+ });
600
+ //#endregion
601
+ //#region src/trailing-node/trailing-node.ts
602
+ const skipTrailingNodeMeta = "skipTrailingNode";
603
+ function nodeEqualsType({ types, node }) {
604
+ return node && Array.isArray(types) && types.includes(node.type) || (node === null || node === void 0 ? void 0 : node.type) === types;
605
+ }
606
+ /**
607
+ * This extension allows you to add an extra node at the end of the document.
608
+ * @see https://www.tiptap.dev/api/extensions/trailing-node
609
+ */
610
+ const TrailingNode = _tiptap_core.Extension.create({
611
+ name: "trailingNode",
612
+ addOptions() {
613
+ return {
614
+ node: void 0,
615
+ notAfter: []
616
+ };
617
+ },
618
+ addProseMirrorPlugins() {
619
+ var _this$editor$schema$t;
620
+ const plugin = new _tiptap_pm_state.PluginKey(this.name);
621
+ const defaultNode = this.options.node || ((_this$editor$schema$t = this.editor.schema.topNodeType.contentMatch.defaultType) === null || _this$editor$schema$t === void 0 ? void 0 : _this$editor$schema$t.name) || "paragraph";
622
+ const disabledNodes = Object.entries(this.editor.schema.nodes).map(([, value]) => value).filter((node) => (this.options.notAfter || []).concat(defaultNode).includes(node.name));
623
+ return [new _tiptap_pm_state.Plugin({
624
+ key: plugin,
625
+ appendTransaction: (transactions, __, state) => {
626
+ const { doc, tr, schema } = state;
627
+ const shouldInsertNodeAtEnd = plugin.getState(state);
628
+ const endPosition = doc.content.size;
629
+ const type = schema.nodes[defaultNode];
630
+ if (transactions.some((transaction) => transaction.getMeta("skipTrailingNode"))) return;
631
+ if (!shouldInsertNodeAtEnd) return;
632
+ return tr.insert(endPosition, type.create());
633
+ },
634
+ state: {
635
+ init: (_, state) => {
636
+ const lastNode = state.tr.doc.lastChild;
637
+ return !nodeEqualsType({
638
+ node: lastNode,
639
+ types: disabledNodes
640
+ });
641
+ },
642
+ apply: (tr, value) => {
643
+ if (!tr.docChanged) return value;
644
+ if (tr.getMeta("__uniqueIDTransaction")) return value;
645
+ const lastNode = tr.doc.lastChild;
646
+ return !nodeEqualsType({
647
+ node: lastNode,
648
+ types: disabledNodes
649
+ });
650
+ }
651
+ }
652
+ })];
653
+ }
654
+ });
655
+ //#endregion
656
+ //#region src/undo-redo/undo-redo.ts
657
+ /**
658
+ * This extension allows you to undo and redo recent changes.
659
+ * @see https://www.tiptap.dev/api/extensions/undo-redo
660
+ *
661
+ * **Important**: If the `@tiptap/extension-collaboration` package is used, make sure to remove
662
+ * the `undo-redo` extension, as it is not compatible with the `collaboration` extension.
663
+ *
664
+ * `@tiptap/extension-collaboration` uses its own history implementation.
665
+ */
666
+ const UndoRedo = _tiptap_core.Extension.create({
667
+ name: "undoRedo",
668
+ addOptions() {
669
+ return {
670
+ depth: 100,
671
+ newGroupDelay: 500
672
+ };
673
+ },
674
+ addCommands() {
675
+ return {
676
+ undo: () => ({ state, dispatch }) => {
677
+ return (0, _tiptap_pm_history.undo)(state, dispatch);
678
+ },
679
+ redo: () => ({ state, dispatch }) => {
680
+ return (0, _tiptap_pm_history.redo)(state, dispatch);
681
+ }
682
+ };
683
+ },
684
+ addProseMirrorPlugins() {
685
+ return [(0, _tiptap_pm_history.history)(this.options)];
686
+ },
687
+ addKeyboardShortcuts() {
688
+ return {
689
+ "Mod-z": () => this.editor.commands.undo(),
690
+ "Shift-Mod-z": () => this.editor.commands.redo(),
691
+ "Mod-y": () => this.editor.commands.redo(),
692
+ "Mod-я": () => this.editor.commands.undo(),
693
+ "Shift-Mod-я": () => this.editor.commands.redo()
694
+ };
695
+ }
696
+ });
697
+ //#endregion
698
+ exports.CharacterCount = CharacterCount;
699
+ exports.DEFAULT_DATA_ATTRIBUTE = DEFAULT_DATA_ATTRIBUTE;
700
+ exports.Dropcursor = Dropcursor;
701
+ exports.Focus = Focus;
702
+ exports.Gapcursor = Gapcursor;
703
+ exports.PLUGIN_KEY = PLUGIN_KEY;
704
+ exports.Placeholder = Placeholder;
705
+ exports.Selection = Selection;
706
+ exports.TrailingNode = TrailingNode;
707
+ exports.UndoRedo = UndoRedo;
708
+ exports.preparePlaceholderAttribute = preparePlaceholderAttribute;
709
+ exports.skipTrailingNodeMeta = skipTrailingNodeMeta;
710
+
711
+ //# sourceMappingURL=index.cjs.map