@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,913 @@
1
+ import { EditorState, Transaction, Selection, Plugin } from 'prosemirror-state';
2
+ import { Node, Mark, Slice, ResolvedPos, DOMParser, DOMSerializer } from 'prosemirror-model';
3
+ import { Mapping } from 'prosemirror-transform';
4
+
5
+ type DOMNode = InstanceType<typeof window.Node>;
6
+
7
+ type WidgetConstructor = ((view: EditorView, getPos: () => number | undefined) => DOMNode) | DOMNode;
8
+ /**
9
+ Decoration objects can be provided to the view through the
10
+ [`decorations` prop](https://prosemirror.net/docs/ref/#view.EditorProps.decorations). They come in
11
+ several variants—see the static members of this class for details.
12
+ */
13
+ declare class Decoration {
14
+ /**
15
+ The start position of the decoration.
16
+ */
17
+ readonly from: number;
18
+ /**
19
+ The end position. Will be the same as `from` for [widget
20
+ decorations](https://prosemirror.net/docs/ref/#view.Decoration^widget).
21
+ */
22
+ readonly to: number;
23
+ /**
24
+ Creates a widget decoration, which is a DOM node that's shown in
25
+ the document at the given position. It is recommended that you
26
+ delay rendering the widget by passing a function that will be
27
+ called when the widget is actually drawn in a view, but you can
28
+ also directly pass a DOM node. `getPos` can be used to find the
29
+ widget's current document position.
30
+ */
31
+ static widget(pos: number, toDOM: WidgetConstructor, spec?: {
32
+ /**
33
+ Controls which side of the document position this widget is
34
+ associated with. When negative, it is drawn before a cursor
35
+ at its position, and content inserted at that position ends
36
+ up after the widget. When zero (the default) or positive, the
37
+ widget is drawn after the cursor and content inserted there
38
+ ends up before the widget.
39
+
40
+ When there are multiple widgets at a given position, their
41
+ `side` values determine the order in which they appear. Those
42
+ with lower values appear first. The ordering of widgets with
43
+ the same `side` value is unspecified.
44
+
45
+ When `marks` is null, `side` also determines the marks that
46
+ the widget is wrapped in—those of the node before when
47
+ negative, those of the node after when positive.
48
+ */
49
+ side?: number;
50
+ /**
51
+ By default, the cursor, when at the position of the widget,
52
+ will be strictly kept on the side indicated by
53
+ [`side`](https://prosemirror.net/docs/ref/#view.Decoration^widget^spec.side). Set this to true
54
+ to allow the DOM selection to stay on the other side if the
55
+ client sets it there.
56
+
57
+ **Note**: Mapping of this decoration, which decides on which
58
+ side insertions at its position appear, will still happen
59
+ according to `side`, and keyboard cursor motion will not,
60
+ without further custom handling, visit both sides of the
61
+ widget.
62
+ */
63
+ relaxedSide?: boolean;
64
+ /**
65
+ The precise set of marks to draw around the widget.
66
+ */
67
+ marks?: readonly Mark[];
68
+ /**
69
+ Can be used to control which DOM events, when they bubble out
70
+ of this widget, the editor view should ignore.
71
+ */
72
+ stopEvent?: (event: Event) => boolean;
73
+ /**
74
+ When set (defaults to false), selection changes inside the
75
+ widget are ignored, and don't cause ProseMirror to try and
76
+ re-sync the selection with its selection state.
77
+ */
78
+ ignoreSelection?: boolean;
79
+ /**
80
+ When comparing decorations of this type (in order to decide
81
+ whether it needs to be redrawn), ProseMirror will by default
82
+ compare the widget DOM node by identity. If you pass a key,
83
+ that key will be compared instead, which can be useful when
84
+ you generate decorations on the fly and don't want to store
85
+ and reuse DOM nodes. Make sure that any widgets with the same
86
+ key are interchangeable—if widgets differ in, for example,
87
+ the behavior of some event handler, they should get
88
+ different keys.
89
+ */
90
+ key?: string;
91
+ /**
92
+ Called when the widget decoration is removed or the editor is
93
+ destroyed.
94
+ */
95
+ destroy?: (node: DOMNode) => void;
96
+ /**
97
+ Specs allow arbitrary additional properties.
98
+ */
99
+ [key: string]: any;
100
+ }): Decoration;
101
+ /**
102
+ Creates an inline decoration, which adds the given attributes to
103
+ each inline node between `from` and `to`.
104
+ */
105
+ static inline(from: number, to: number, attrs: DecorationAttrs, spec?: {
106
+ /**
107
+ Determines how the left side of the decoration is
108
+ [mapped](https://prosemirror.net/docs/ref/#transform.Position_Mapping) when content is
109
+ inserted directly at that position. By default, the decoration
110
+ won't include the new content, but you can set this to `true`
111
+ to make it inclusive.
112
+ */
113
+ inclusiveStart?: boolean;
114
+ /**
115
+ Determines how the right side of the decoration is mapped.
116
+ See
117
+ [`inclusiveStart`](https://prosemirror.net/docs/ref/#view.Decoration^inline^spec.inclusiveStart).
118
+ */
119
+ inclusiveEnd?: boolean;
120
+ /**
121
+ Specs may have arbitrary additional properties.
122
+ */
123
+ [key: string]: any;
124
+ }): Decoration;
125
+ /**
126
+ Creates a node decoration. `from` and `to` should point precisely
127
+ before and after a node in the document. That node, and only that
128
+ node, will receive the given attributes.
129
+ */
130
+ static node(from: number, to: number, attrs: DecorationAttrs, spec?: any): Decoration;
131
+ /**
132
+ The spec provided when creating this decoration. Can be useful
133
+ if you've stored extra information in that object.
134
+ */
135
+ get spec(): any;
136
+ }
137
+ /**
138
+ A set of attributes to add to a decorated node. Most properties
139
+ simply directly correspond to DOM attributes of the same name,
140
+ which will be set to the property's value. These are exceptions:
141
+ */
142
+ type DecorationAttrs = {
143
+ /**
144
+ When non-null, the target node is wrapped in a DOM element of
145
+ this type (and the other attributes are applied to this element).
146
+ */
147
+ nodeName?: string;
148
+ /**
149
+ A CSS class name or a space-separated set of class names to be
150
+ _added_ to the classes that the node already had.
151
+ */
152
+ class?: string;
153
+ /**
154
+ A string of CSS to be _added_ to the node's existing `style` property.
155
+ */
156
+ style?: string;
157
+ /**
158
+ Any other properties are treated as regular DOM attributes.
159
+ */
160
+ [attribute: string]: string | undefined;
161
+ };
162
+ /**
163
+ An object that can [provide](https://prosemirror.net/docs/ref/#view.EditorProps.decorations)
164
+ decorations. Implemented by [`DecorationSet`](https://prosemirror.net/docs/ref/#view.DecorationSet),
165
+ and passed to [node views](https://prosemirror.net/docs/ref/#view.EditorProps.nodeViews).
166
+ */
167
+ interface DecorationSource {
168
+ /**
169
+ Map the set of decorations in response to a change in the
170
+ document.
171
+ */
172
+ map: (mapping: Mapping, node: Node) => DecorationSource;
173
+ /**
174
+ Extract a DecorationSource containing decorations for the given child node at the given offset.
175
+ */
176
+ forChild(offset: number, child: Node): DecorationSource;
177
+ /**
178
+ Call the given function for each decoration set in the group.
179
+ */
180
+ forEachSet(f: (set: DecorationSet) => void): void;
181
+ }
182
+ /**
183
+ A collection of [decorations](https://prosemirror.net/docs/ref/#view.Decoration), organized in such
184
+ a way that the drawing algorithm can efficiently use and compare
185
+ them. This is a persistent data structure—it is not modified,
186
+ updates create a new value.
187
+ */
188
+ declare class DecorationSet implements DecorationSource {
189
+ /**
190
+ Create a set of decorations, using the structure of the given
191
+ document. This will consume (modify) the `decorations` array, so
192
+ you must make a copy if you want need to preserve that.
193
+ */
194
+ static create(doc: Node, decorations: Decoration[]): DecorationSet;
195
+ /**
196
+ Find all decorations in this set which touch the given range
197
+ (including decorations that start or end directly at the
198
+ boundaries) and match the given predicate on their spec. When
199
+ `start` and `end` are omitted, all decorations in the set are
200
+ considered. When `predicate` isn't given, all decorations are
201
+ assumed to match.
202
+ */
203
+ find(start?: number, end?: number, predicate?: (spec: any) => boolean): Decoration[];
204
+ private findInner;
205
+ /**
206
+ Map the set of decorations in response to a change in the
207
+ document.
208
+ */
209
+ map(mapping: Mapping, doc: Node, options?: {
210
+ /**
211
+ When given, this function will be called for each decoration
212
+ that gets dropped as a result of the mapping, passing the
213
+ spec of that decoration.
214
+ */
215
+ onRemove?: (decorationSpec: any) => void;
216
+ }): DecorationSet;
217
+ /**
218
+ Add the given array of decorations to the ones in the set,
219
+ producing a new set. Consumes the `decorations` array. Needs
220
+ access to the current document to create the appropriate tree
221
+ structure.
222
+ */
223
+ add(doc: Node, decorations: Decoration[]): DecorationSet;
224
+ private addInner;
225
+ /**
226
+ Create a new set that contains the decorations in this set, minus
227
+ the ones in the given array.
228
+ */
229
+ remove(decorations: Decoration[]): DecorationSet;
230
+ private removeInner;
231
+ forChild(offset: number, node: Node): DecorationSet | DecorationGroup;
232
+ /**
233
+ The empty set of decorations.
234
+ */
235
+ static empty: DecorationSet;
236
+ forEachSet(f: (set: DecorationSet) => void): void;
237
+ }
238
+ declare class DecorationGroup implements DecorationSource {
239
+ readonly members: readonly DecorationSet[];
240
+ constructor(members: readonly DecorationSet[]);
241
+ map(mapping: Mapping, doc: Node): DecorationSource;
242
+ forChild(offset: number, child: Node): DecorationSource | DecorationSet;
243
+ eq(other: DecorationGroup): boolean;
244
+ locals(node: Node): readonly any[];
245
+ static from(members: readonly DecorationSource[]): DecorationSource;
246
+ forEachSet(f: (set: DecorationSet) => void): void;
247
+ }
248
+
249
+ declare global {
250
+ interface Node {
251
+ }
252
+ }
253
+ /**
254
+ A ViewMutationRecord represents a DOM
255
+ [mutation](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver)
256
+ or a selection change happens within the view. When the change is
257
+ a selection change, the record will have a `type` property of
258
+ `"selection"` (which doesn't occur for native mutation records).
259
+ */
260
+ type ViewMutationRecord = MutationRecord | {
261
+ type: "selection";
262
+ target: DOMNode;
263
+ };
264
+ /**
265
+ By default, document nodes are rendered using the result of the
266
+ [`toDOM`](https://prosemirror.net/docs/ref/#model.NodeSpec.toDOM) method of their spec, and managed
267
+ entirely by the editor. For some use cases, such as embedded
268
+ node-specific editing interfaces, you want more control over
269
+ the behavior of a node's in-editor representation, and need to
270
+ [define](https://prosemirror.net/docs/ref/#view.EditorProps.nodeViews) a custom node view.
271
+
272
+ Objects returned as node views must conform to this interface.
273
+ */
274
+ interface NodeView {
275
+ /**
276
+ The outer DOM node that represents the document node.
277
+ */
278
+ dom: HTMLElement;
279
+ /**
280
+ The DOM node that should hold the node's content. Only meaningful
281
+ if the node view also defines a `dom` property and if its node
282
+ type is not a leaf node type. When this is present, ProseMirror
283
+ will take care of rendering the node's children into it. When it
284
+ is not present, the node view itself is responsible for rendering
285
+ (or deciding not to render) its child nodes.
286
+ */
287
+ contentDOM?: HTMLElement | null;
288
+ /**
289
+ When given, this will be called when the view is updating
290
+ itself. It will be given a node, an array of active decorations
291
+ around the node (which are automatically drawn, and the node
292
+ view may ignore if it isn't interested in them), and a
293
+ [decoration source](https://prosemirror.net/docs/ref/#view.DecorationSource) that represents any
294
+ decorations that apply to the content of the node (which again
295
+ may be ignored). It should return true if it was able to update
296
+ to that node, and false otherwise. If the node view has a
297
+ `contentDOM` property (or no `dom` property), updating its child
298
+ nodes will be handled by ProseMirror.
299
+ */
300
+ update?: (node: Node, decorations: readonly Decoration[], innerDecorations: DecorationSource) => boolean;
301
+ /**
302
+ By default, `update` will only be called when a node of the same
303
+ node type appears in this view's position. When you set this to
304
+ true, it will be called for any node, making it possible to have
305
+ a node view that representsmultiple types of nodes. You will
306
+ need to check the type of the nodes you get in `update` and
307
+ return `false` for types you cannot handle.
308
+ */
309
+ multiType?: boolean;
310
+ /**
311
+ Can be used to override the way the node's selected status (as a
312
+ node selection) is displayed.
313
+ */
314
+ selectNode?: () => void;
315
+ /**
316
+ When defining a `selectNode` method, you should also provide a
317
+ `deselectNode` method to remove the effect again.
318
+ */
319
+ deselectNode?: () => void;
320
+ /**
321
+ This will be called to handle setting the selection inside the
322
+ node. The `anchor` and `head` positions are relative to the start
323
+ of the node. By default, a DOM selection will be created between
324
+ the DOM positions corresponding to those positions, but if you
325
+ override it you can do something else.
326
+ */
327
+ setSelection?: (anchor: number, head: number, root: Document | ShadowRoot) => void;
328
+ /**
329
+ Can be used to prevent the editor view from trying to handle some
330
+ or all DOM events that bubble up from the node view. Events for
331
+ which this returns true are not handled by the editor.
332
+ */
333
+ stopEvent?: (event: Event) => boolean;
334
+ /**
335
+ Called when a [mutation](https://prosemirror.net/docs/ref/#view.ViewMutationRecord) happens within the
336
+ view. Return false if the editor should re-read the selection or re-parse
337
+ the range around the mutation, true if it can safely be ignored.
338
+ */
339
+ ignoreMutation?: (mutation: ViewMutationRecord) => boolean;
340
+ /**
341
+ Called when the node view is removed from the editor or the whole
342
+ editor is destroyed.
343
+ */
344
+ destroy?: () => void;
345
+ }
346
+ /**
347
+ By default, document marks are rendered using the result of the
348
+ [`toDOM`](https://prosemirror.net/docs/ref/#model.MarkSpec.toDOM) method of their spec, and managed entirely
349
+ by the editor. For some use cases, you want more control over the behavior
350
+ of a mark's in-editor representation, and need to
351
+ [define](https://prosemirror.net/docs/ref/#view.EditorProps.markViews) a custom mark view.
352
+
353
+ Objects returned as mark views must conform to this interface.
354
+ */
355
+ interface MarkView {
356
+ /**
357
+ The outer DOM node that represents the document node.
358
+ */
359
+ dom: HTMLElement;
360
+ /**
361
+ The DOM node that should hold the mark's content. When this is not
362
+ present, the `dom` property is used as the content DOM.
363
+ */
364
+ contentDOM?: HTMLElement | null;
365
+ /**
366
+ When given, this is called when the view is updating itself. It
367
+ will be given a mark (of the same type as the current one). When it
368
+ returns true, the existing DOM is kept and reused (its content is
369
+ still managed by ProseMirror); when it returns false, the mark view
370
+ is rebuilt.
371
+ */
372
+ update?: (mark: Mark) => boolean;
373
+ /**
374
+ Called when a [mutation](https://prosemirror.net/docs/ref/#view.ViewMutationRecord) happens within the
375
+ view. Return false if the editor should re-read the selection or re-parse
376
+ the range around the mutation, true if it can safely be ignored.
377
+ */
378
+ ignoreMutation?: (mutation: ViewMutationRecord) => boolean;
379
+ /**
380
+ Called when the mark view is removed from the editor or the whole
381
+ editor is destroyed.
382
+ */
383
+ destroy?: () => void;
384
+ }
385
+
386
+ /**
387
+ An editor view manages the DOM structure that represents an
388
+ editable document. Its state and behavior are determined by its
389
+ [props](https://prosemirror.net/docs/ref/#view.DirectEditorProps).
390
+ */
391
+ declare class EditorView {
392
+ private directPlugins;
393
+ private _root;
394
+ private mounted;
395
+ private prevDirectPlugins;
396
+ private pluginViews;
397
+ /**
398
+ The view's current [state](https://prosemirror.net/docs/ref/#state.EditorState).
399
+ */
400
+ state: EditorState;
401
+ /**
402
+ Create a view. `place` may be a DOM node that the editor should
403
+ be appended to, a function that will place it into the document,
404
+ or an object whose `mount` property holds the node to use as the
405
+ document container. If it is `null`, the editor will not be
406
+ added to the document.
407
+ */
408
+ constructor(place: null | DOMNode | ((editor: HTMLElement) => void) | {
409
+ mount: HTMLElement;
410
+ }, props: DirectEditorProps);
411
+ /**
412
+ An editable DOM node containing the document. (You probably
413
+ should not directly interfere with its content.)
414
+ */
415
+ readonly dom: HTMLElement;
416
+ /**
417
+ Indicates whether the editor is currently [editable](https://prosemirror.net/docs/ref/#view.EditorProps.editable).
418
+ */
419
+ editable: boolean;
420
+ /**
421
+ When editor content is being dragged, this object contains
422
+ information about the dragged slice and whether it is being
423
+ copied or moved. At any other time, it is null.
424
+ */
425
+ dragging: null | {
426
+ slice: Slice;
427
+ move: boolean;
428
+ };
429
+ /**
430
+ Holds `true` when a
431
+ [composition](https://w3c.github.io/uievents/#events-compositionevents)
432
+ is active.
433
+ */
434
+ get composing(): boolean;
435
+ /**
436
+ The view's current [props](https://prosemirror.net/docs/ref/#view.EditorProps).
437
+ */
438
+ get props(): DirectEditorProps;
439
+ /**
440
+ Update the view's props. Will immediately cause an update to
441
+ the DOM.
442
+ */
443
+ update(props: DirectEditorProps): void;
444
+ /**
445
+ Update the view by updating existing props object with the object
446
+ given as argument. Equivalent to `view.update(Object.assign({},
447
+ view.props, props))`.
448
+ */
449
+ setProps(props: Partial<DirectEditorProps>): void;
450
+ /**
451
+ Update the editor's `state` prop, without touching any of the
452
+ other props.
453
+ */
454
+ updateState(state: EditorState): void;
455
+ private updateStateInner;
456
+ private destroyPluginViews;
457
+ private updatePluginViews;
458
+ private updateDraggedNode;
459
+ /**
460
+ Goes over the values of a prop, first those provided directly,
461
+ then those from plugins given to the view, then from plugins in
462
+ the state (in order), and calls `f` every time a non-undefined
463
+ value is found. When `f` returns a truthy value, that is
464
+ immediately returned. When `f` isn't provided, it is treated as
465
+ the identity function (the prop value is returned directly).
466
+ */
467
+ someProp<PropName extends keyof EditorProps, Result>(propName: PropName, f: (value: NonNullable<EditorProps[PropName]>) => Result): Result | undefined;
468
+ someProp<PropName extends keyof EditorProps>(propName: PropName): NonNullable<EditorProps[PropName]> | undefined;
469
+ /**
470
+ Query whether the view has focus.
471
+ */
472
+ hasFocus(): boolean;
473
+ /**
474
+ Focus the editor.
475
+ */
476
+ focus(): void;
477
+ /**
478
+ Get the document root in which the editor exists. This will
479
+ usually be the top-level `document`, but might be a [shadow
480
+ DOM](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Shadow_DOM)
481
+ root if the editor is inside one.
482
+ */
483
+ get root(): Document | ShadowRoot;
484
+ /**
485
+ When an existing editor view is moved to a new document or
486
+ shadow tree, call this to make it recompute its root.
487
+ */
488
+ updateRoot(): void;
489
+ /**
490
+ Given a pair of viewport coordinates, return the document
491
+ position that corresponds to them. May return null if the given
492
+ coordinates aren't inside of the editor. When an object is
493
+ returned, its `pos` property is the position nearest to the
494
+ coordinates, and its `inside` property holds the position of the
495
+ inner node that the position falls inside of, or -1 if it is at
496
+ the top level, not in any node.
497
+ */
498
+ posAtCoords(coords: {
499
+ left: number;
500
+ top: number;
501
+ }): {
502
+ pos: number;
503
+ inside: number;
504
+ } | null;
505
+ /**
506
+ Returns the viewport rectangle at a given document position.
507
+ `left` and `right` will be the same number, as this returns a
508
+ flat cursor-ish rectangle. If the position is between two things
509
+ that aren't directly adjacent, `side` determines which element
510
+ is used. When < 0, the element before the position is used,
511
+ otherwise the element after.
512
+ */
513
+ coordsAtPos(pos: number, side?: number): {
514
+ left: number;
515
+ right: number;
516
+ top: number;
517
+ bottom: number;
518
+ };
519
+ /**
520
+ Find the DOM position that corresponds to the given document
521
+ position. When `side` is negative, find the position as close as
522
+ possible to the content before the position. When positive,
523
+ prefer positions close to the content after the position. When
524
+ zero, prefer as shallow a position as possible.
525
+
526
+ Note that you should **not** mutate the editor's internal DOM,
527
+ only inspect it (and even that is usually not necessary).
528
+ */
529
+ domAtPos(pos: number, side?: number): {
530
+ node: DOMNode;
531
+ offset: number;
532
+ };
533
+ /**
534
+ Find the DOM node that represents the document node after the
535
+ given position. May return `null` when the position doesn't point
536
+ in front of a node or if the node is inside an opaque node view.
537
+
538
+ This is intended to be able to call things like
539
+ `getBoundingClientRect` on that DOM node. Do **not** mutate the
540
+ editor DOM directly, or add styling this way, since that will be
541
+ immediately overriden by the editor as it redraws the node.
542
+ */
543
+ nodeDOM(pos: number): DOMNode | null;
544
+ /**
545
+ Find the document position that corresponds to a given DOM
546
+ position. (Whenever possible, it is preferable to inspect the
547
+ document structure directly, rather than poking around in the
548
+ DOM, but sometimes—for example when interpreting an event
549
+ target—you don't have a choice.)
550
+
551
+ The `bias` parameter can be used to influence which side of a DOM
552
+ node to use when the position is inside a leaf node.
553
+ */
554
+ posAtDOM(node: DOMNode, offset: number, bias?: number): number;
555
+ /**
556
+ Find out whether the selection is at the end of a textblock when
557
+ moving in a given direction. When, for example, given `"left"`,
558
+ it will return true if moving left from the current cursor
559
+ position would leave that position's parent textblock. Will apply
560
+ to the view's current state by default, but it is possible to
561
+ pass a different state.
562
+ */
563
+ endOfTextblock(dir: "up" | "down" | "left" | "right" | "forward" | "backward", state?: EditorState): boolean;
564
+ /**
565
+ Run the editor's paste logic with the given HTML string. The
566
+ `event`, if given, will be passed to the
567
+ [`handlePaste`](https://prosemirror.net/docs/ref/#view.EditorProps.handlePaste) hook.
568
+ */
569
+ pasteHTML(html: string, event?: ClipboardEvent): boolean;
570
+ /**
571
+ Run the editor's paste logic with the given plain-text input.
572
+ */
573
+ pasteText(text: string, event?: ClipboardEvent): boolean;
574
+ /**
575
+ Serialize the given slice as it would be if it was copied from
576
+ this editor. Returns a DOM element that contains a
577
+ representation of the slice as its children, a textual
578
+ representation, and the transformed slice (which can be
579
+ different from the given input due to hooks like
580
+ [`transformCopied`](https://prosemirror.net/docs/ref/#view.EditorProps.transformCopied)).
581
+ */
582
+ serializeForClipboard(slice: Slice): {
583
+ dom: HTMLElement;
584
+ text: string;
585
+ slice: Slice;
586
+ };
587
+ /**
588
+ Removes the editor from the DOM and destroys all [node
589
+ views](https://prosemirror.net/docs/ref/#view.NodeView).
590
+ */
591
+ destroy(): void;
592
+ /**
593
+ This is true when the view has been
594
+ [destroyed](https://prosemirror.net/docs/ref/#view.EditorView.destroy) (and thus should not be
595
+ used anymore).
596
+ */
597
+ get isDestroyed(): boolean;
598
+ /**
599
+ Used for testing.
600
+ */
601
+ dispatchEvent(event: Event): void;
602
+ /**
603
+ Dispatch a transaction. Will call
604
+ [`dispatchTransaction`](https://prosemirror.net/docs/ref/#view.DirectEditorProps.dispatchTransaction)
605
+ when given, and otherwise defaults to applying the transaction to
606
+ the current state and calling
607
+ [`updateState`](https://prosemirror.net/docs/ref/#view.EditorView.updateState) with the result.
608
+ This method is bound to the view instance, so that it can be
609
+ easily passed around.
610
+ */
611
+ dispatch: (tr: Transaction) => void;
612
+ }
613
+ /**
614
+ The type of function [provided](https://prosemirror.net/docs/ref/#view.EditorProps.nodeViews) to
615
+ create [node views](https://prosemirror.net/docs/ref/#view.NodeView).
616
+ */
617
+ type NodeViewConstructor = (node: Node, view: EditorView, getPos: () => number | undefined, decorations: readonly Decoration[], innerDecorations: DecorationSource) => NodeView;
618
+ /**
619
+ The function types [used](https://prosemirror.net/docs/ref/#view.EditorProps.markViews) to create
620
+ mark views.
621
+ */
622
+ type MarkViewConstructor = (mark: Mark, view: EditorView, inline: boolean) => MarkView;
623
+ /**
624
+ Helper type that maps event names to event object types, but
625
+ includes events that TypeScript's HTMLElementEventMap doesn't know
626
+ about.
627
+ */
628
+ interface DOMEventMap extends HTMLElementEventMap {
629
+ [event: string]: any;
630
+ }
631
+ /**
632
+ Props are configuration values that can be passed to an editor view
633
+ or included in a plugin. This interface lists the supported props.
634
+
635
+ The various event-handling functions may all return `true` to
636
+ indicate that they handled the given event. The view will then take
637
+ care to call `preventDefault` on the event, except with
638
+ `handleDOMEvents`, where the handler itself is responsible for that.
639
+
640
+ How a prop is resolved depends on the prop. Handler functions are
641
+ called one at a time, starting with the base props and then
642
+ searching through the plugins (in order of appearance) until one of
643
+ them returns true. For some props, the first plugin that yields a
644
+ value gets precedence.
645
+
646
+ The optional type parameter refers to the type of `this` in prop
647
+ functions, and is used to pass in the plugin type when defining a
648
+ [plugin](https://prosemirror.net/docs/ref/#state.Plugin).
649
+ */
650
+ interface EditorProps<P = any> {
651
+ /**
652
+ Can be an object mapping DOM event type names to functions that
653
+ handle them. Such functions will be called before any handling
654
+ ProseMirror does of events fired on the editable DOM element.
655
+ Contrary to the other event handling props, when returning true
656
+ from such a function, you are responsible for calling
657
+ `preventDefault` yourself (or not, if you want to allow the
658
+ default behavior).
659
+ */
660
+ handleDOMEvents?: {
661
+ [event in keyof DOMEventMap]?: (this: P, view: EditorView, event: DOMEventMap[event]) => boolean | void;
662
+ };
663
+ /**
664
+ Called when the editor receives a `keydown` event.
665
+ */
666
+ handleKeyDown?: (this: P, view: EditorView, event: KeyboardEvent) => boolean | void;
667
+ /**
668
+ Handler for `keypress` events.
669
+ */
670
+ handleKeyPress?: (this: P, view: EditorView, event: KeyboardEvent) => boolean | void;
671
+ /**
672
+ Whenever the user directly input text, this handler is called
673
+ before the input is applied. If it returns `true`, the default
674
+ behavior of actually inserting the text is suppressed.
675
+ */
676
+ handleTextInput?: (this: P, view: EditorView, from: number, to: number, text: string, deflt: () => Transaction) => boolean | void;
677
+ /**
678
+ Called for each node around a click, from the inside out. The
679
+ `direct` flag will be true for the inner node.
680
+ */
681
+ handleClickOn?: (this: P, view: EditorView, pos: number, node: Node, nodePos: number, event: MouseEvent, direct: boolean) => boolean | void;
682
+ /**
683
+ Called when the editor is clicked, after `handleClickOn` handlers
684
+ have been called.
685
+ */
686
+ handleClick?: (this: P, view: EditorView, pos: number, event: MouseEvent) => boolean | void;
687
+ /**
688
+ Called for each node around a double click.
689
+ */
690
+ handleDoubleClickOn?: (this: P, view: EditorView, pos: number, node: Node, nodePos: number, event: MouseEvent, direct: boolean) => boolean | void;
691
+ /**
692
+ Called when the editor is double-clicked, after `handleDoubleClickOn`.
693
+ */
694
+ handleDoubleClick?: (this: P, view: EditorView, pos: number, event: MouseEvent) => boolean | void;
695
+ /**
696
+ Called for each node around a triple click.
697
+ */
698
+ handleTripleClickOn?: (this: P, view: EditorView, pos: number, node: Node, nodePos: number, event: MouseEvent, direct: boolean) => boolean | void;
699
+ /**
700
+ Called when the editor is triple-clicked, after `handleTripleClickOn`.
701
+ */
702
+ handleTripleClick?: (this: P, view: EditorView, pos: number, event: MouseEvent) => boolean | void;
703
+ /**
704
+ Can be used to override the behavior of pasting. `slice` is the
705
+ pasted content parsed by the editor, but you can directly access
706
+ the event to get at the raw content.
707
+ */
708
+ handlePaste?: (this: P, view: EditorView, event: ClipboardEvent, slice: Slice) => boolean | void;
709
+ /**
710
+ Called when something is dropped on the editor. `moved` will be
711
+ true if this drop moves from the current selection (which should
712
+ thus be deleted).
713
+ */
714
+ handleDrop?: (this: P, view: EditorView, event: DragEvent, slice: Slice, moved: boolean) => boolean | void;
715
+ /**
716
+ Called when the view, after updating its state, tries to scroll
717
+ the selection into view. A handler function may return false to
718
+ indicate that it did not handle the scrolling and further
719
+ handlers or the default behavior should be tried.
720
+ */
721
+ handleScrollToSelection?: (this: P, view: EditorView) => boolean;
722
+ /**
723
+ Determines whether an in-editor drag event should copy or move
724
+ the selection. When not given, the event's `altKey` property is
725
+ used on macOS, `ctrlKey` on other platforms.
726
+ */
727
+ dragCopies?: (event: DragEvent) => boolean;
728
+ /**
729
+ Can be used to override the way a selection is created when
730
+ reading a DOM selection between the given anchor and head.
731
+ */
732
+ createSelectionBetween?: (this: P, view: EditorView, anchor: ResolvedPos, head: ResolvedPos) => Selection | null;
733
+ /**
734
+ The [parser](https://prosemirror.net/docs/ref/#model.DOMParser) to use when reading editor changes
735
+ from the DOM. Defaults to calling
736
+ [`DOMParser.fromSchema`](https://prosemirror.net/docs/ref/#model.DOMParser^fromSchema) on the
737
+ editor's schema.
738
+ */
739
+ domParser?: DOMParser;
740
+ /**
741
+ Can be used to transform pasted HTML text, _before_ it is parsed,
742
+ for example to clean it up.
743
+ */
744
+ transformPastedHTML?: (this: P, html: string, view: EditorView) => string;
745
+ /**
746
+ The [parser](https://prosemirror.net/docs/ref/#model.DOMParser) to use when reading content from
747
+ the clipboard. When not given, the value of the
748
+ [`domParser`](https://prosemirror.net/docs/ref/#view.EditorProps.domParser) prop is used.
749
+ */
750
+ clipboardParser?: DOMParser;
751
+ /**
752
+ Transform pasted plain text. The `plain` flag will be true when
753
+ the text is pasted as plain text.
754
+ */
755
+ transformPastedText?: (this: P, text: string, plain: boolean, view: EditorView) => string;
756
+ /**
757
+ A function to parse text from the clipboard into a document
758
+ slice. Called after
759
+ [`transformPastedText`](https://prosemirror.net/docs/ref/#view.EditorProps.transformPastedText).
760
+ The default behavior is to split the text into lines, wrap them
761
+ in `<p>` tags, and call
762
+ [`clipboardParser`](https://prosemirror.net/docs/ref/#view.EditorProps.clipboardParser) on it.
763
+ The `plain` flag will be true when the text is pasted as plain text.
764
+ */
765
+ clipboardTextParser?: (this: P, text: string, $context: ResolvedPos, plain: boolean, view: EditorView) => Slice;
766
+ /**
767
+ Can be used to transform pasted or dragged-and-dropped content
768
+ before it is applied to the document. The `plain` flag will be
769
+ true when the text is pasted as plain text.
770
+ */
771
+ transformPasted?: (this: P, slice: Slice, view: EditorView, plain: boolean) => Slice;
772
+ /**
773
+ Can be used to transform copied or cut content before it is
774
+ serialized to the clipboard.
775
+ */
776
+ transformCopied?: (this: P, slice: Slice, view: EditorView) => Slice;
777
+ /**
778
+ Allows you to pass custom rendering and behavior logic for
779
+ nodes. Should map node names to constructor functions that
780
+ produce a [`NodeView`](https://prosemirror.net/docs/ref/#view.NodeView) object implementing the
781
+ node's display behavior. The third argument `getPos` is a
782
+ function that can be called to get the node's current position,
783
+ which can be useful when creating transactions to update it.
784
+ Note that if the node is not in the document, the position
785
+ returned by this function will be `undefined`.
786
+
787
+ `decorations` is an array of node or inline decorations that are
788
+ active around the node. They are automatically drawn in the
789
+ normal way, and you will usually just want to ignore this, but
790
+ they can also be used as a way to provide context information to
791
+ the node view without adding it to the document itself.
792
+
793
+ `innerDecorations` holds the decorations for the node's content.
794
+ You can safely ignore this if your view has no content or a
795
+ `contentDOM` property, since the editor will draw the decorations
796
+ on the content. But if you, for example, want to create a nested
797
+ editor with the content, it may make sense to provide it with the
798
+ inner decorations.
799
+
800
+ (For backwards compatibility reasons, [mark
801
+ views](https://prosemirror.net/docs/ref/#view.EditorProps.markViews) can also be included in this
802
+ object.)
803
+ */
804
+ nodeViews?: {
805
+ [node: string]: NodeViewConstructor;
806
+ };
807
+ /**
808
+ Pass custom mark rendering functions. Note that these cannot
809
+ provide the kind of dynamic behavior that [node
810
+ views](https://prosemirror.net/docs/ref/#view.NodeView) can—they just provide custom rendering
811
+ logic. The third argument indicates whether the mark's content
812
+ is inline.
813
+ */
814
+ markViews?: {
815
+ [mark: string]: MarkViewConstructor;
816
+ };
817
+ /**
818
+ The DOM serializer to use when putting content onto the
819
+ clipboard. If not given, the result of
820
+ [`DOMSerializer.fromSchema`](https://prosemirror.net/docs/ref/#model.DOMSerializer^fromSchema)
821
+ will be used. This object will only have its
822
+ [`serializeFragment`](https://prosemirror.net/docs/ref/#model.DOMSerializer.serializeFragment)
823
+ method called, and you may provide an alternative object type
824
+ implementing a compatible method.
825
+ */
826
+ clipboardSerializer?: DOMSerializer;
827
+ /**
828
+ A function that will be called to get the text for the current
829
+ selection when copying text to the clipboard. By default, the
830
+ editor will use [`textBetween`](https://prosemirror.net/docs/ref/#model.Node.textBetween) on the
831
+ selected range.
832
+ */
833
+ clipboardTextSerializer?: (this: P, content: Slice, view: EditorView) => string;
834
+ /**
835
+ A set of [document decorations](https://prosemirror.net/docs/ref/#view.Decoration) to show in the
836
+ view.
837
+ */
838
+ decorations?: (this: P, state: EditorState) => DecorationSource | null | undefined;
839
+ /**
840
+ When this returns false, the content of the view is not directly
841
+ editable.
842
+ */
843
+ editable?: (this: P, state: EditorState) => boolean;
844
+ /**
845
+ Control the DOM attributes of the editable element. May be either
846
+ an object or a function going from an editor state to an object.
847
+ By default, the element will get a class `"ProseMirror"`, and
848
+ will have its `contentEditable` attribute determined by the
849
+ [`editable` prop](https://prosemirror.net/docs/ref/#view.EditorProps.editable). Additional classes
850
+ provided here will be added to the class. For other attributes,
851
+ the value provided first (as in
852
+ [`someProp`](https://prosemirror.net/docs/ref/#view.EditorView.someProp)) will be used.
853
+ */
854
+ attributes?: {
855
+ [name: string]: string;
856
+ } | ((state: EditorState) => {
857
+ [name: string]: string;
858
+ });
859
+ /**
860
+ Determines the distance (in pixels) between the cursor and the
861
+ end of the visible viewport at which point, when scrolling the
862
+ cursor into view, scrolling takes place. Defaults to 0.
863
+ */
864
+ scrollThreshold?: number | {
865
+ top: number;
866
+ right: number;
867
+ bottom: number;
868
+ left: number;
869
+ };
870
+ /**
871
+ Determines the extra space (in pixels) that is left above or
872
+ below the cursor when it is scrolled into view. Defaults to 5.
873
+ */
874
+ scrollMargin?: number | {
875
+ top: number;
876
+ right: number;
877
+ bottom: number;
878
+ left: number;
879
+ };
880
+ }
881
+ /**
882
+ The props object given directly to the editor view supports some
883
+ fields that can't be used in plugins:
884
+ */
885
+ interface DirectEditorProps extends EditorProps {
886
+ /**
887
+ The current state of the editor.
888
+ */
889
+ state: EditorState;
890
+ /**
891
+ A set of plugins to use in the view, applying their [plugin
892
+ view](https://prosemirror.net/docs/ref/#state.PluginSpec.view) and
893
+ [props](https://prosemirror.net/docs/ref/#state.PluginSpec.props). Passing plugins with a state
894
+ component (a [state field](https://prosemirror.net/docs/ref/#state.PluginSpec.state) field or a
895
+ [transaction](https://prosemirror.net/docs/ref/#state.PluginSpec.filterTransaction) filter or
896
+ appender) will result in an error, since such plugins must be
897
+ present in the state to work.
898
+ */
899
+ plugins?: readonly Plugin[];
900
+ /**
901
+ The callback over which to send transactions (state updates)
902
+ produced by the view. If you specify this, you probably want to
903
+ make sure this ends up calling the view's
904
+ [`updateState`](https://prosemirror.net/docs/ref/#view.EditorView.updateState) method with a new
905
+ state that has the transaction
906
+ [applied](https://prosemirror.net/docs/ref/#state.EditorState.apply). The callback will be bound to have
907
+ the view instance as its `this` binding.
908
+ */
909
+ dispatchTransaction?: (tr: Transaction) => void;
910
+ }
911
+
912
+ export { Decoration, DecorationSet, EditorView };
913
+ export type { DOMEventMap, DecorationAttrs, DecorationSource, DirectEditorProps, EditorProps, MarkView, MarkViewConstructor, NodeView, NodeViewConstructor, ViewMutationRecord };