@ecomcx/ecomweb-editor 0.0.0-stage → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (724) 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 +424 -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/content.ts +22 -0
  698. package/src/dynamic.tsx +105 -0
  699. package/src/editor.css +345 -0
  700. package/src/extensions.ts +78 -0
  701. package/src/handle.tsx +186 -0
  702. package/src/handles.tsx +149 -0
  703. package/src/index.ts +29 -0
  704. package/src/insert.ts +9 -0
  705. package/src/inserter.tsx +163 -0
  706. package/src/inspector.tsx +237 -0
  707. package/src/labels.ts +135 -0
  708. package/src/layout.tsx +174 -0
  709. package/src/layoutUi.tsx +226 -0
  710. package/src/media.ts +31 -0
  711. package/src/nodes.tsx +107 -0
  712. package/src/outline.tsx +124 -0
  713. package/src/panels.ts +59 -0
  714. package/src/paste.ts +100 -0
  715. package/src/patterns.ts +129 -0
  716. package/src/rank.ts +22 -0
  717. package/src/registry.ts +20 -0
  718. package/src/styleattr.ts +55 -0
  719. package/src/stylepanel.tsx +275 -0
  720. package/src/synced.tsx +128 -0
  721. package/src/toolbar.tsx +238 -0
  722. package/src/types.ts +55 -0
  723. package/src/unknown.tsx +74 -0
  724. package/src/util.ts +3 -0
@@ -0,0 +1,1683 @@
1
+ import OrderedMap from 'orderedmap';
2
+
3
+ /**
4
+ A mark is a piece of information that can be attached to a node,
5
+ such as it being emphasized, in code font, or a link. It has a
6
+ type and optionally a set of attributes that provide further
7
+ information (such as the target of the link). Marks are created
8
+ through a `Schema`, which controls which types exist and which
9
+ attributes they have.
10
+ */
11
+ declare class Mark {
12
+ /**
13
+ The type of this mark.
14
+ */
15
+ readonly type: MarkType;
16
+ /**
17
+ The attributes associated with this mark.
18
+ */
19
+ readonly attrs: Attrs;
20
+ /**
21
+ Given a set of marks, create a new set which contains this one as
22
+ well, in the right position. If this mark is already in the set,
23
+ the set itself is returned. If any marks that are set to be
24
+ [exclusive](https://prosemirror.net/docs/ref/#model.MarkSpec.excludes) with this mark are present,
25
+ those are replaced by this one.
26
+ */
27
+ addToSet(set: readonly Mark[]): readonly Mark[];
28
+ /**
29
+ Remove this mark from the given set, returning a new set. If this
30
+ mark is not in the set, the set itself is returned.
31
+ */
32
+ removeFromSet(set: readonly Mark[]): readonly Mark[];
33
+ /**
34
+ Test whether this mark is in the given set of marks.
35
+ */
36
+ isInSet(set: readonly Mark[]): boolean;
37
+ /**
38
+ Test whether this mark has the same type and attributes as
39
+ another mark.
40
+ */
41
+ eq(other: Mark): boolean;
42
+ /**
43
+ Convert this mark to a JSON-serializeable representation.
44
+ */
45
+ toJSON(): any;
46
+ /**
47
+ Deserialize a mark from JSON.
48
+ */
49
+ static fromJSON(schema: Schema, json: any): Mark;
50
+ /**
51
+ Test whether two sets of marks are identical.
52
+ */
53
+ static sameSet(a: readonly Mark[], b: readonly Mark[]): boolean;
54
+ /**
55
+ Create a properly sorted mark set from null, a single mark, or an
56
+ unsorted array of marks.
57
+ */
58
+ static setFrom(marks?: Mark | readonly Mark[] | null): readonly Mark[];
59
+ /**
60
+ The empty set of marks.
61
+ */
62
+ static none: readonly Mark[];
63
+ }
64
+
65
+ /**
66
+ A description of a DOM structure. Can be either a DOM element, a
67
+ `{dom, contentDOM}` object, or an array.
68
+
69
+ An array describes a DOM element. The first value in the array
70
+ should be a string—the name of the DOM element, optionally
71
+ prefixed by a namespace URL and a space. If the second element is
72
+ plain object, it is interpreted as a set of attributes for the
73
+ element. Any elements after that (including the 2nd if it's not an
74
+ attribute object) are interpreted as children of the DOM elements,
75
+ and must either be valid `DOMOutputSpec` values, strings (for text
76
+ nodes), or the number zero.
77
+
78
+ The number zero (pronounced “hole”) is used to indicate the place
79
+ where a node's child nodes should be inserted. If it occurs in an
80
+ output spec, it should be the only child element in its parent
81
+ node.
82
+ */
83
+ type DOMOutputSpec = Element | {
84
+ dom: Element;
85
+ contentDOM?: Element;
86
+ } | readonly [string, ...any[]];
87
+ /**
88
+ A DOM serializer knows how to convert ProseMirror nodes and
89
+ marks of various types to DOM nodes.
90
+ */
91
+ declare class DOMSerializer {
92
+ /**
93
+ The node serialization functions.
94
+ */
95
+ readonly nodes: {
96
+ [node: string]: (node: Node) => DOMOutputSpec;
97
+ };
98
+ /**
99
+ The mark serialization functions.
100
+ */
101
+ readonly marks: {
102
+ [mark: string]: (mark: Mark, inline: boolean) => DOMOutputSpec;
103
+ };
104
+ /**
105
+ Create a serializer. `nodes` should map node names to functions
106
+ that take a node and return a description of the corresponding
107
+ DOM. `marks` does the same for mark names, but also gets an
108
+ argument that tells it whether the mark's content is block or
109
+ inline content (for typical use, it'll always be inline). A mark
110
+ serializer may be `null` to indicate that marks of that type
111
+ should not be serialized.
112
+ */
113
+ constructor(
114
+ /**
115
+ The node serialization functions.
116
+ */
117
+ nodes: {
118
+ [node: string]: (node: Node) => DOMOutputSpec;
119
+ },
120
+ /**
121
+ The mark serialization functions.
122
+ */
123
+ marks: {
124
+ [mark: string]: (mark: Mark, inline: boolean) => DOMOutputSpec;
125
+ });
126
+ /**
127
+ Serialize the content of this fragment to a DOM fragment. When
128
+ not in the browser, the `document` option, containing a DOM
129
+ document, should be passed so that the serializer can create
130
+ nodes.
131
+ */
132
+ serializeFragment(fragment: Fragment, options?: {
133
+ document?: Document;
134
+ }, target?: HTMLElement | DocumentFragment): DocumentFragment | HTMLElement;
135
+ /**
136
+ Serialize this node to a DOM node. This can be useful when you
137
+ need to serialize a part of a document, as opposed to the whole
138
+ document. To serialize a whole document, use
139
+ [`serializeFragment`](https://prosemirror.net/docs/ref/#model.DOMSerializer.serializeFragment) on
140
+ its [content](https://prosemirror.net/docs/ref/#model.Node.content).
141
+ */
142
+ serializeNode(node: Node, options?: {
143
+ document?: Document;
144
+ }): HTMLElement | Text;
145
+ /**
146
+ Render an [output spec](https://prosemirror.net/docs/ref/#model.DOMOutputSpec) to a DOM node. If
147
+ the spec has a hole (zero) in it, `contentDOM` will point at the
148
+ node with the hole.
149
+ */
150
+ static renderSpec(doc: Document, structure: DOMOutputSpec, xmlNS?: string | null): {
151
+ dom: HTMLElement;
152
+ contentDOM?: HTMLElement;
153
+ };
154
+ /**
155
+ Build a serializer using the [`toDOM`](https://prosemirror.net/docs/ref/#model.NodeSpec.toDOM)
156
+ properties in a schema's node and mark specs.
157
+ */
158
+ static fromSchema(schema: Schema): DOMSerializer;
159
+ /**
160
+ Gather the serializers in a schema's node specs into an object.
161
+ This can be useful as a base to build a custom serializer from.
162
+ */
163
+ static nodesFromSchema(schema: Schema): {
164
+ [node: string]: (node: Node) => DOMOutputSpec;
165
+ };
166
+ /**
167
+ Gather the serializers in a schema's mark specs into an object.
168
+ */
169
+ static marksFromSchema(schema: Schema): {
170
+ [mark: string]: (mark: Mark, inline: boolean) => DOMOutputSpec;
171
+ };
172
+ }
173
+
174
+ /**
175
+ You can [_resolve_](https://prosemirror.net/docs/ref/#model.Node.resolve) a position to get more
176
+ information about it. Objects of this class represent such a
177
+ resolved position, providing various pieces of context
178
+ information, and some helper methods.
179
+
180
+ Throughout this interface, methods that take an optional `depth`
181
+ parameter will interpret undefined as `this.depth` and negative
182
+ numbers as `this.depth + value`.
183
+ */
184
+ declare class ResolvedPos {
185
+ /**
186
+ The position that was resolved.
187
+ */
188
+ readonly pos: number;
189
+ /**
190
+ The offset this position has into its parent node.
191
+ */
192
+ readonly parentOffset: number;
193
+ /**
194
+ The number of levels the parent node is from the root. If this
195
+ position points directly into the root node, it is 0. If it
196
+ points into a top-level paragraph, 1, and so on.
197
+ */
198
+ depth: number;
199
+ /**
200
+ The parent node that the position points into. Note that even if
201
+ a position points into a text node, that node is not considered
202
+ the parent—text nodes are ‘flat’ in this model, and have no content.
203
+ */
204
+ get parent(): Node;
205
+ /**
206
+ The root node in which the position was resolved.
207
+ */
208
+ get doc(): Node;
209
+ /**
210
+ The ancestor node at the given level. `p.node(p.depth)` is the
211
+ same as `p.parent`.
212
+ */
213
+ node(depth?: number | null): Node;
214
+ /**
215
+ The index into the ancestor at the given level. If this points
216
+ at the 3rd node in the 2nd paragraph on the top level, for
217
+ example, `p.index(0)` is 1 and `p.index(1)` is 2.
218
+ */
219
+ index(depth?: number | null): number;
220
+ /**
221
+ The index pointing after this position into the ancestor at the
222
+ given level.
223
+ */
224
+ indexAfter(depth?: number | null): number;
225
+ /**
226
+ The (absolute) position at the start of the node at the given
227
+ level.
228
+ */
229
+ start(depth?: number | null): number;
230
+ /**
231
+ The (absolute) position at the end of the node at the given
232
+ level.
233
+ */
234
+ end(depth?: number | null): number;
235
+ /**
236
+ The (absolute) position directly before the wrapping node at the
237
+ given level, or, when `depth` is `this.depth + 1`, the original
238
+ position.
239
+ */
240
+ before(depth?: number | null): number;
241
+ /**
242
+ The (absolute) position directly after the wrapping node at the
243
+ given level, or the original position when `depth` is `this.depth + 1`.
244
+ */
245
+ after(depth?: number | null): number;
246
+ /**
247
+ When this position points into a text node, this returns the
248
+ distance between the position and the start of the text node.
249
+ Will be zero for positions that point between nodes.
250
+ */
251
+ get textOffset(): number;
252
+ /**
253
+ Get the node directly after the position, if any. If the position
254
+ points into a text node, only the part of that node after the
255
+ position is returned.
256
+ */
257
+ get nodeAfter(): Node | null;
258
+ /**
259
+ Get the node directly before the position, if any. If the
260
+ position points into a text node, only the part of that node
261
+ before the position is returned.
262
+ */
263
+ get nodeBefore(): Node | null;
264
+ /**
265
+ Get the position at the given index in the parent node at the
266
+ given depth (which defaults to `this.depth`).
267
+ */
268
+ posAtIndex(index: number, depth?: number | null): number;
269
+ /**
270
+ Get the marks at this position, factoring in the surrounding
271
+ marks' [`inclusive`](https://prosemirror.net/docs/ref/#model.MarkSpec.inclusive) property. If the
272
+ position is at the start of a non-empty node, the marks of the
273
+ node after it (if any) are returned.
274
+ */
275
+ marks(): readonly Mark[];
276
+ /**
277
+ Get the marks after the current position, if any, except those
278
+ that are non-inclusive and not present at position `$end`. This
279
+ is mostly useful for getting the set of marks to preserve after a
280
+ deletion. Will return `null` if this position is at the end of
281
+ its parent node or its parent node isn't a textblock (in which
282
+ case no marks should be preserved).
283
+ */
284
+ marksAcross($end: ResolvedPos): readonly Mark[] | null;
285
+ /**
286
+ The depth up to which this position and the given (non-resolved)
287
+ position share the same parent nodes.
288
+ */
289
+ sharedDepth(pos: number): number;
290
+ /**
291
+ Returns a range based on the place where this position and the
292
+ given position diverge around block content. If both point into
293
+ the same textblock, for example, a range around that textblock
294
+ will be returned. If they point into different blocks, the range
295
+ around those blocks in their shared ancestor is returned. You can
296
+ pass in an optional predicate that will be called with a parent
297
+ node to see if a range into that parent is acceptable.
298
+ */
299
+ blockRange(other?: ResolvedPos, pred?: (node: Node) => boolean): NodeRange | null;
300
+ /**
301
+ Query whether the given position shares the same parent node.
302
+ */
303
+ sameParent(other: ResolvedPos): boolean;
304
+ /**
305
+ Return the greater of this and the given position.
306
+ */
307
+ max(other: ResolvedPos): ResolvedPos;
308
+ /**
309
+ Return the smaller of this and the given position.
310
+ */
311
+ min(other: ResolvedPos): ResolvedPos;
312
+ }
313
+ /**
314
+ Represents a flat range of content, i.e. one that starts and
315
+ ends in the same node.
316
+ */
317
+ declare class NodeRange {
318
+ /**
319
+ A resolved position along the start of the content. May have a
320
+ `depth` greater than this object's `depth` property, since
321
+ these are the positions that were used to compute the range,
322
+ not re-resolved positions directly at its boundaries.
323
+ */
324
+ readonly $from: ResolvedPos;
325
+ /**
326
+ A position along the end of the content. See
327
+ caveat for [`$from`](https://prosemirror.net/docs/ref/#model.NodeRange.$from).
328
+ */
329
+ readonly $to: ResolvedPos;
330
+ /**
331
+ The depth of the node that this range points into.
332
+ */
333
+ readonly depth: number;
334
+ /**
335
+ Construct a node range. `$from` and `$to` should point into the
336
+ same node until at least the given `depth`, since a node range
337
+ denotes an adjacent set of nodes in a single parent node.
338
+ */
339
+ constructor(
340
+ /**
341
+ A resolved position along the start of the content. May have a
342
+ `depth` greater than this object's `depth` property, since
343
+ these are the positions that were used to compute the range,
344
+ not re-resolved positions directly at its boundaries.
345
+ */
346
+ $from: ResolvedPos,
347
+ /**
348
+ A position along the end of the content. See
349
+ caveat for [`$from`](https://prosemirror.net/docs/ref/#model.NodeRange.$from).
350
+ */
351
+ $to: ResolvedPos,
352
+ /**
353
+ The depth of the node that this range points into.
354
+ */
355
+ depth: number);
356
+ /**
357
+ The position at the start of the range.
358
+ */
359
+ get start(): number;
360
+ /**
361
+ The position at the end of the range.
362
+ */
363
+ get end(): number;
364
+ /**
365
+ The parent node that the range points into.
366
+ */
367
+ get parent(): Node;
368
+ /**
369
+ The start index of the range in the parent node.
370
+ */
371
+ get startIndex(): number;
372
+ /**
373
+ The end index of the range in the parent node.
374
+ */
375
+ get endIndex(): number;
376
+ }
377
+
378
+ /**
379
+ Error type raised by [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) when
380
+ given an invalid replacement.
381
+ */
382
+ declare class ReplaceError extends Error {
383
+ }
384
+ /**
385
+ A slice represents a piece cut out of a larger document. It
386
+ stores not only a fragment, but also the depth up to which nodes on
387
+ both side are ‘open’ (cut through).
388
+ */
389
+ declare class Slice {
390
+ /**
391
+ The slice's content.
392
+ */
393
+ readonly content: Fragment;
394
+ /**
395
+ The open depth at the start of the fragment.
396
+ */
397
+ readonly openStart: number;
398
+ /**
399
+ The open depth at the end.
400
+ */
401
+ readonly openEnd: number;
402
+ /**
403
+ Create a slice. When specifying a non-zero open depth, you must
404
+ make sure that there are nodes of at least that depth at the
405
+ appropriate side of the fragment—i.e. if the fragment is an
406
+ empty paragraph node, `openStart` and `openEnd` can't be greater
407
+ than 1.
408
+
409
+ It is not necessary for the content of open nodes to conform to
410
+ the schema's content constraints, though it should be a valid
411
+ start/end/middle for such a node, depending on which sides are
412
+ open.
413
+ */
414
+ constructor(
415
+ /**
416
+ The slice's content.
417
+ */
418
+ content: Fragment,
419
+ /**
420
+ The open depth at the start of the fragment.
421
+ */
422
+ openStart: number,
423
+ /**
424
+ The open depth at the end.
425
+ */
426
+ openEnd: number);
427
+ /**
428
+ The size this slice would add when inserted into a document.
429
+ */
430
+ get size(): number;
431
+ /**
432
+ Tests whether this slice is equal to another slice.
433
+ */
434
+ eq(other: Slice): boolean;
435
+ /**
436
+ Convert a slice to a JSON-serializable representation.
437
+ */
438
+ toJSON(): any;
439
+ /**
440
+ Deserialize a slice from its JSON representation.
441
+ */
442
+ static fromJSON(schema: Schema, json: any): Slice;
443
+ /**
444
+ Create a slice from a fragment by taking the maximum possible
445
+ open value on both side of the fragment.
446
+ */
447
+ static maxOpen(fragment: Fragment, openIsolating?: boolean): Slice;
448
+ /**
449
+ The empty slice.
450
+ */
451
+ static empty: Slice;
452
+ }
453
+
454
+ type DOMNode = InstanceType<typeof window.Node>;
455
+
456
+ /**
457
+ These are the options recognized by the
458
+ [`parse`](https://prosemirror.net/docs/ref/#model.DOMParser.parse) and
459
+ [`parseSlice`](https://prosemirror.net/docs/ref/#model.DOMParser.parseSlice) methods.
460
+ */
461
+ interface ParseOptions {
462
+ /**
463
+ By default, whitespace is collapsed as per HTML's rules. Pass
464
+ `true` to preserve whitespace, but normalize newlines to
465
+ spaces or, if available, [line break replacements](https://prosemirror.net/docs/ref/#model.NodeSpec.linebreakReplacement),
466
+ and `"full"` to preserve whitespace entirely.
467
+ */
468
+ preserveWhitespace?: boolean | "full";
469
+ /**
470
+ When given, the parser will, beside parsing the content,
471
+ record the document positions of the given DOM positions. It
472
+ will do so by writing to the objects, adding a `pos` property
473
+ that holds the document position. DOM positions that are not
474
+ in the parsed content will not be written to.
475
+ */
476
+ findPositions?: {
477
+ node: DOMNode;
478
+ offset: number;
479
+ pos?: number;
480
+ }[];
481
+ /**
482
+ The child node index to start parsing from.
483
+ */
484
+ from?: number;
485
+ /**
486
+ The child node index to stop parsing at.
487
+ */
488
+ to?: number;
489
+ /**
490
+ By default, the content is parsed into the schema's default
491
+ [top node type](https://prosemirror.net/docs/ref/#model.Schema.topNodeType). You can pass this
492
+ option to use the type and attributes from a different node
493
+ as the top container.
494
+ */
495
+ topNode?: Node;
496
+ /**
497
+ Provide the starting content match that content parsed into the
498
+ top node is matched against.
499
+ */
500
+ topMatch?: ContentMatch;
501
+ /**
502
+ A set of additional nodes to count as
503
+ [context](https://prosemirror.net/docs/ref/#model.GenericParseRule.context) when parsing, above the
504
+ given [top node](https://prosemirror.net/docs/ref/#model.ParseOptions.topNode).
505
+ */
506
+ context?: ResolvedPos;
507
+ }
508
+ /**
509
+ Fields that may be present in both [tag](https://prosemirror.net/docs/ref/#model.TagParseRule) and
510
+ [style](https://prosemirror.net/docs/ref/#model.StyleParseRule) parse rules.
511
+ */
512
+ interface GenericParseRule {
513
+ /**
514
+ Can be used to change the order in which the parse rules in a
515
+ schema are tried. Those with higher priority come first. Rules
516
+ without a priority are counted as having priority 50. This
517
+ property is only meaningful in a schema—when directly
518
+ constructing a parser, the order of the rule array is used.
519
+ */
520
+ priority?: number;
521
+ /**
522
+ By default, when a rule matches an element or style, no further
523
+ rules get a chance to match it. By setting this to `false`, you
524
+ indicate that even when this rule matches, other rules that come
525
+ after it should also run.
526
+ */
527
+ consuming?: boolean;
528
+ /**
529
+ When given, restricts this rule to only match when the current
530
+ context—the parent nodes into which the content is being
531
+ parsed—matches this expression. Should contain one or more node
532
+ names or node group names followed by single or double slashes.
533
+ For example `"paragraph/"` means the rule only matches when the
534
+ parent node is a paragraph, `"blockquote/paragraph/"` restricts
535
+ it to be in a paragraph that is inside a blockquote, and
536
+ `"section//"` matches any position inside a section—a double
537
+ slash matches any sequence of ancestor nodes. To allow multiple
538
+ different contexts, they can be separated by a pipe (`|`)
539
+ character, as in `"blockquote/|list_item/"`.
540
+ */
541
+ context?: string;
542
+ /**
543
+ The name of the mark type to wrap the matched content in.
544
+ */
545
+ mark?: string;
546
+ /**
547
+ When true, ignore content that matches this rule. Any `<head>`,
548
+ `<noscript>`, `<script>`, `<object>`, `<style>`, or `<title>`
549
+ tags encountered are automatically ignored when no rules match
550
+ them..
551
+ */
552
+ ignore?: boolean;
553
+ /**
554
+ When true, finding an element that matches this rule will close
555
+ the current node.
556
+ */
557
+ closeParent?: boolean;
558
+ /**
559
+ When true, ignore the node that matches this rule, but do parse
560
+ its content.
561
+ */
562
+ skip?: boolean;
563
+ /**
564
+ Attributes for the node or mark created by this rule. When
565
+ `getAttrs` is provided, it takes precedence.
566
+ */
567
+ attrs?: Attrs;
568
+ }
569
+ /**
570
+ Parse rule targeting a DOM element.
571
+ */
572
+ interface TagParseRule extends GenericParseRule {
573
+ /**
574
+ A CSS selector describing the kind of DOM elements to match.
575
+ */
576
+ tag: string;
577
+ /**
578
+ The namespace to match. Nodes are only matched when the
579
+ namespace matches or this property is null.
580
+ */
581
+ namespace?: string;
582
+ /**
583
+ The name of the node type to create when this rule matches. Each
584
+ rule should have either a `node`, `mark`, or `ignore` property
585
+ (except when it appears in a [node](https://prosemirror.net/docs/ref/#model.NodeSpec.parseDOM) or
586
+ [mark spec](https://prosemirror.net/docs/ref/#model.MarkSpec.parseDOM), in which case the `node`
587
+ or `mark` property will be derived from its position).
588
+ */
589
+ node?: string;
590
+ /**
591
+ A function used to compute the attributes for the node or mark
592
+ created by this rule. Can also be used to describe further
593
+ conditions the DOM element or style must match. When it returns
594
+ `false`, the rule won't match. When it returns null or undefined,
595
+ that is interpreted as an empty/default set of attributes.
596
+ */
597
+ getAttrs?: (node: HTMLElement) => Attrs | false | null;
598
+ /**
599
+ For rules that produce non-leaf nodes, by default the content of
600
+ the DOM element is parsed as content of the node. If the child
601
+ nodes are in a descendent node, this may be a CSS selector
602
+ string that the parser must use to find the actual content
603
+ element, or a function that returns the actual content element
604
+ to the parser.
605
+ */
606
+ contentElement?: string | HTMLElement | ((node: HTMLElement) => HTMLElement);
607
+ /**
608
+ Can be used to override the content of a matched node. When
609
+ present, instead of parsing the node's child nodes, the result of
610
+ this function is used.
611
+ */
612
+ getContent?: (node: DOMNode, schema: Schema) => Fragment;
613
+ /**
614
+ Controls whether whitespace should be preserved when parsing the
615
+ content inside the matched element. `false` means whitespace may
616
+ be collapsed, `true` means that whitespace should be preserved
617
+ but newlines normalized to spaces, and `"full"` means that
618
+ newlines should also be preserved.
619
+ */
620
+ preserveWhitespace?: boolean | "full";
621
+ }
622
+ /**
623
+ A parse rule targeting a style property.
624
+ */
625
+ interface StyleParseRule extends GenericParseRule {
626
+ /**
627
+ A CSS property name to match. This rule will match inline styles
628
+ that list that property. May also have the form
629
+ `"property=value"`, in which case the rule only matches if the
630
+ property's value exactly matches the given value. (For more
631
+ complicated filters, use [`getAttrs`](https://prosemirror.net/docs/ref/#model.StyleParseRule.getAttrs)
632
+ and return false to indicate that the match failed.) Rules
633
+ matching styles may only produce [marks](https://prosemirror.net/docs/ref/#model.GenericParseRule.mark),
634
+ not nodes.
635
+ */
636
+ style: string;
637
+ /**
638
+ Given to make TS see ParseRule as a tagged union @hide
639
+ */
640
+ tag?: undefined;
641
+ /**
642
+ Style rules can remove marks from the set of active marks.
643
+ */
644
+ clearMark?: (mark: Mark) => boolean;
645
+ /**
646
+ A function used to compute the attributes for the node or mark
647
+ created by this rule. Called with the style's value.
648
+ */
649
+ getAttrs?: (node: string) => Attrs | false | null;
650
+ }
651
+ /**
652
+ A value that describes how to parse a given DOM node or inline
653
+ style as a ProseMirror node or mark.
654
+ */
655
+ type ParseRule = TagParseRule | StyleParseRule;
656
+ /**
657
+ A DOM parser represents a strategy for parsing DOM content into a
658
+ ProseMirror document conforming to a given schema. Its behavior is
659
+ defined by an array of [rules](https://prosemirror.net/docs/ref/#model.ParseRule).
660
+ */
661
+ declare class DOMParser {
662
+ /**
663
+ The schema into which the parser parses.
664
+ */
665
+ readonly schema: Schema;
666
+ /**
667
+ The set of [parse rules](https://prosemirror.net/docs/ref/#model.ParseRule) that the parser
668
+ uses, in order of precedence.
669
+ */
670
+ readonly rules: readonly ParseRule[];
671
+ /**
672
+ Create a parser that targets the given schema, using the given
673
+ parsing rules.
674
+ */
675
+ constructor(
676
+ /**
677
+ The schema into which the parser parses.
678
+ */
679
+ schema: Schema,
680
+ /**
681
+ The set of [parse rules](https://prosemirror.net/docs/ref/#model.ParseRule) that the parser
682
+ uses, in order of precedence.
683
+ */
684
+ rules: readonly ParseRule[]);
685
+ /**
686
+ Parse a document from the content of a DOM node.
687
+ */
688
+ parse(dom: DOMNode, options?: ParseOptions): Node;
689
+ /**
690
+ Parses the content of the given DOM node, like
691
+ [`parse`](https://prosemirror.net/docs/ref/#model.DOMParser.parse), and takes the same set of
692
+ options. But unlike that method, which produces a whole node,
693
+ this one returns a slice that is open at the sides, meaning that
694
+ the schema constraints aren't applied to the start of nodes to
695
+ the left of the input and the end of nodes at the end.
696
+ */
697
+ parseSlice(dom: DOMNode, options?: ParseOptions): Slice;
698
+ /**
699
+ Construct a DOM parser using the parsing rules listed in a
700
+ schema's [node specs](https://prosemirror.net/docs/ref/#model.NodeSpec.parseDOM), reordered by
701
+ [priority](https://prosemirror.net/docs/ref/#model.GenericParseRule.priority).
702
+ */
703
+ static fromSchema(schema: Schema): DOMParser;
704
+ }
705
+
706
+ /**
707
+ An object holding the attributes of a node.
708
+ */
709
+ type Attrs = {
710
+ readonly [attr: string]: any;
711
+ };
712
+ /**
713
+ Node types are objects allocated once per `Schema` and used to
714
+ [tag](https://prosemirror.net/docs/ref/#model.Node.type) `Node` instances. They contain information
715
+ about the node type, such as its name and what kind of node it
716
+ represents.
717
+ */
718
+ declare class NodeType {
719
+ /**
720
+ The name the node type has in this schema.
721
+ */
722
+ readonly name: string;
723
+ /**
724
+ A link back to the `Schema` the node type belongs to.
725
+ */
726
+ readonly schema: Schema;
727
+ /**
728
+ The spec that this type is based on
729
+ */
730
+ readonly spec: NodeSpec;
731
+ /**
732
+ True if this node type has inline content.
733
+ */
734
+ inlineContent: boolean;
735
+ /**
736
+ True if this is a block type
737
+ */
738
+ isBlock: boolean;
739
+ /**
740
+ True if this is the text node type.
741
+ */
742
+ isText: boolean;
743
+ /**
744
+ True if this is an inline type.
745
+ */
746
+ get isInline(): boolean;
747
+ /**
748
+ True if this is a textblock type, a block that contains inline
749
+ content.
750
+ */
751
+ get isTextblock(): boolean;
752
+ /**
753
+ True for node types that allow no content.
754
+ */
755
+ get isLeaf(): boolean;
756
+ /**
757
+ True when this node is an atom, i.e. when it does not have
758
+ directly editable content.
759
+ */
760
+ get isAtom(): boolean;
761
+ /**
762
+ Return true when this node type is part of the given
763
+ [group](https://prosemirror.net/docs/ref/#model.NodeSpec.group).
764
+ */
765
+ isInGroup(group: string): boolean;
766
+ /**
767
+ The starting match of the node type's content expression.
768
+ */
769
+ contentMatch: ContentMatch;
770
+ /**
771
+ The set of marks allowed in this node. `null` means all marks
772
+ are allowed.
773
+ */
774
+ markSet: readonly MarkType[] | null;
775
+ /**
776
+ The node type's [whitespace](https://prosemirror.net/docs/ref/#model.NodeSpec.whitespace) option.
777
+ */
778
+ get whitespace(): "pre" | "normal";
779
+ /**
780
+ Tells you whether this node type has any required attributes.
781
+ */
782
+ hasRequiredAttrs(): boolean;
783
+ /**
784
+ Indicates whether this node allows some of the same content as
785
+ the given node type.
786
+ */
787
+ compatibleContent(other: NodeType): boolean;
788
+ /**
789
+ Create a `Node` of this type. The given attributes are
790
+ checked and defaulted (you can pass `null` to use the type's
791
+ defaults entirely, if no required attributes exist). `content`
792
+ may be a `Fragment`, a node, an array of nodes, or
793
+ `null`. Similarly `marks` may be `null` to default to the empty
794
+ set of marks.
795
+ */
796
+ create(attrs?: Attrs | null, content?: Fragment | Node | readonly Node[] | null, marks?: readonly Mark[]): Node;
797
+ /**
798
+ Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
799
+ against the node type's content restrictions, and throw an error
800
+ if it doesn't match.
801
+ */
802
+ createChecked(attrs?: Attrs | null, content?: Fragment | Node | readonly Node[] | null, marks?: readonly Mark[]): Node;
803
+ /**
804
+ Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
805
+ necessary to add nodes to the start or end of the given fragment
806
+ to make it fit the node. If no fitting wrapping can be found,
807
+ return null. Note that, due to the fact that required nodes can
808
+ always be created, this will always succeed if you pass null or
809
+ `Fragment.empty` as content.
810
+ */
811
+ createAndFill(attrs?: Attrs | null, content?: Fragment | Node | readonly Node[] | null, marks?: readonly Mark[]): Node | null;
812
+ /**
813
+ Returns true if the given fragment is valid content for this node
814
+ type.
815
+ */
816
+ validContent(content: Fragment): boolean;
817
+ /**
818
+ Check whether the given mark type is allowed in this node.
819
+ */
820
+ allowsMarkType(markType: MarkType): boolean;
821
+ /**
822
+ Test whether the given set of marks are allowed in this node.
823
+ */
824
+ allowsMarks(marks: readonly Mark[]): boolean;
825
+ /**
826
+ Removes the marks that are not allowed in this node from the given set.
827
+ */
828
+ allowedMarks(marks: readonly Mark[]): readonly Mark[];
829
+ }
830
+ /**
831
+ Like nodes, marks (which are associated with nodes to signify
832
+ things like emphasis or being part of a link) are
833
+ [tagged](https://prosemirror.net/docs/ref/#model.Mark.type) with type objects, which are
834
+ instantiated once per `Schema`.
835
+ */
836
+ declare class MarkType {
837
+ /**
838
+ The name of the mark type.
839
+ */
840
+ readonly name: string;
841
+ /**
842
+ The schema that this mark type instance is part of.
843
+ */
844
+ readonly schema: Schema;
845
+ /**
846
+ The spec on which the type is based.
847
+ */
848
+ readonly spec: MarkSpec;
849
+ /**
850
+ Create a mark of this type. `attrs` may be `null` or an object
851
+ containing only some of the mark's attributes. The others, if
852
+ they have defaults, will be added.
853
+ */
854
+ create(attrs?: Attrs | null): Mark;
855
+ /**
856
+ When there is a mark of this type in the given set, a new set
857
+ without it is returned. Otherwise, the input set is returned.
858
+ */
859
+ removeFromSet(set: readonly Mark[]): readonly Mark[];
860
+ /**
861
+ Tests whether there is a mark of this type in the given set.
862
+ */
863
+ isInSet(set: readonly Mark[]): Mark | undefined;
864
+ /**
865
+ Queries whether a given mark type is
866
+ [excluded](https://prosemirror.net/docs/ref/#model.MarkSpec.excludes) by this one.
867
+ */
868
+ excludes(other: MarkType): boolean;
869
+ }
870
+ /**
871
+ An object describing a schema, as passed to the [`Schema`](https://prosemirror.net/docs/ref/#model.Schema)
872
+ constructor.
873
+ */
874
+ interface SchemaSpec<Nodes extends string = any, Marks extends string = any> {
875
+ /**
876
+ The node types in this schema. Maps names to
877
+ [`NodeSpec`](https://prosemirror.net/docs/ref/#model.NodeSpec) objects that describe the node type
878
+ associated with that name. Their order is significant—it
879
+ determines which [parse rules](https://prosemirror.net/docs/ref/#model.NodeSpec.parseDOM) take
880
+ precedence by default, and which nodes come first in a given
881
+ [group](https://prosemirror.net/docs/ref/#model.NodeSpec.group).
882
+ */
883
+ nodes: {
884
+ [name in Nodes]: NodeSpec;
885
+ } | OrderedMap<NodeSpec>;
886
+ /**
887
+ The mark types that exist in this schema. The order in which they
888
+ are provided determines the order in which [mark
889
+ sets](https://prosemirror.net/docs/ref/#model.Mark.addToSet) are sorted and in which [parse
890
+ rules](https://prosemirror.net/docs/ref/#model.MarkSpec.parseDOM) are tried.
891
+ */
892
+ marks?: {
893
+ [name in Marks]: MarkSpec;
894
+ } | OrderedMap<MarkSpec>;
895
+ /**
896
+ The name of the default top-level node for the schema. Defaults
897
+ to `"doc"`.
898
+ */
899
+ topNode?: string;
900
+ }
901
+ /**
902
+ A description of a node type, used when defining a schema.
903
+ */
904
+ interface NodeSpec {
905
+ /**
906
+ The content expression for this node, as described in the [schema
907
+ guide](https://prosemirror.net/docs/guide/#schema.content_expressions). When not given,
908
+ the node does not allow any content.
909
+ */
910
+ content?: string;
911
+ /**
912
+ The marks that are allowed inside of this node. May be a
913
+ space-separated string referring to mark names or groups, `"_"`
914
+ to explicitly allow all marks, or `""` to disallow marks. When
915
+ not given, nodes with inline content default to allowing all
916
+ marks, other nodes default to not allowing marks.
917
+ */
918
+ marks?: string;
919
+ /**
920
+ The group or space-separated groups to which this node belongs,
921
+ which can be referred to in the content expressions for the
922
+ schema.
923
+ */
924
+ group?: string;
925
+ /**
926
+ Should be set to true for inline nodes. (Implied for text nodes.)
927
+ */
928
+ inline?: boolean;
929
+ /**
930
+ Can be set to true to indicate that, though this isn't a [leaf
931
+ node](https://prosemirror.net/docs/ref/#model.NodeType.isLeaf), it doesn't have directly editable
932
+ content and should be treated as a single unit in the view.
933
+ */
934
+ atom?: boolean;
935
+ /**
936
+ The attributes that nodes of this type get.
937
+ */
938
+ attrs?: {
939
+ [name: string]: AttributeSpec;
940
+ };
941
+ /**
942
+ Controls whether nodes of this type can be selected as a [node
943
+ selection](https://prosemirror.net/docs/ref/#state.NodeSelection). Defaults to true for non-text
944
+ nodes.
945
+ */
946
+ selectable?: boolean;
947
+ /**
948
+ Determines whether nodes of this type can be dragged without
949
+ being selected. Defaults to false.
950
+ */
951
+ draggable?: boolean;
952
+ /**
953
+ Can be used to indicate that this node contains code, which
954
+ causes some commands to behave differently.
955
+ */
956
+ code?: boolean;
957
+ /**
958
+ Controls way whitespace in this a node is parsed. The default is
959
+ `"normal"`, which causes the [DOM parser](https://prosemirror.net/docs/ref/#model.DOMParser) to
960
+ collapse whitespace in normal mode, and normalize it (replacing
961
+ newlines and such with spaces) otherwise. `"pre"` causes the
962
+ parser to preserve spaces inside the node. When this option isn't
963
+ given, but [`code`](https://prosemirror.net/docs/ref/#model.NodeSpec.code) is true, `whitespace`
964
+ will default to `"pre"`. Note that this option doesn't influence
965
+ the way the node is rendered—that should be handled by `toDOM`
966
+ and/or styling.
967
+ */
968
+ whitespace?: "pre" | "normal";
969
+ /**
970
+ Determines whether this node is considered an important parent
971
+ node during replace operations (such as paste). Non-defining (the
972
+ default) nodes get dropped when their entire content is replaced,
973
+ whereas defining nodes persist and wrap the inserted content.
974
+ */
975
+ definingAsContext?: boolean;
976
+ /**
977
+ In inserted content the defining parents of the content are
978
+ preserved when possible. Typically, non-default-paragraph
979
+ textblock types, and possibly list items, are marked as defining.
980
+ */
981
+ definingForContent?: boolean;
982
+ /**
983
+ When enabled, enables both
984
+ [`definingAsContext`](https://prosemirror.net/docs/ref/#model.NodeSpec.definingAsContext) and
985
+ [`definingForContent`](https://prosemirror.net/docs/ref/#model.NodeSpec.definingForContent).
986
+ */
987
+ defining?: boolean;
988
+ /**
989
+ When enabled (default is false), the sides of nodes of this type
990
+ count as boundaries that regular editing operations, like
991
+ backspacing or lifting, won't cross. An example of a node that
992
+ should probably have this enabled is a table cell.
993
+ */
994
+ isolating?: boolean;
995
+ /**
996
+ Defines the default way a node of this type should be serialized
997
+ to DOM/HTML (as used by
998
+ [`DOMSerializer.fromSchema`](https://prosemirror.net/docs/ref/#model.DOMSerializer^fromSchema)).
999
+ Should return a DOM node or an [array
1000
+ structure](https://prosemirror.net/docs/ref/#model.DOMOutputSpec) that describes one, with an
1001
+ optional number zero (“hole”) in it to indicate where the node's
1002
+ content should be inserted.
1003
+
1004
+ For text nodes, the default is to create a text DOM node. Though
1005
+ it is possible to create a serializer where text is rendered
1006
+ differently, this is not supported inside the editor, so you
1007
+ shouldn't override that in your text node spec.
1008
+ */
1009
+ toDOM?: (node: Node) => DOMOutputSpec;
1010
+ /**
1011
+ Associates DOM parser information with this node, which can be
1012
+ used by [`DOMParser.fromSchema`](https://prosemirror.net/docs/ref/#model.DOMParser^fromSchema) to
1013
+ automatically derive a parser. The `node` field in the rules is
1014
+ implied (the name of this node will be filled in automatically).
1015
+ If you supply your own parser, you do not need to also specify
1016
+ parsing rules in your schema.
1017
+ */
1018
+ parseDOM?: readonly TagParseRule[];
1019
+ /**
1020
+ Defines the default way a node of this type should be serialized
1021
+ to a string representation for debugging (e.g. in error messages).
1022
+ */
1023
+ toDebugString?: (node: Node) => string;
1024
+ /**
1025
+ Defines the default way a [leaf node](https://prosemirror.net/docs/ref/#model.NodeType.isLeaf) of
1026
+ this type should be serialized to a string (as used by
1027
+ [`Node.textBetween`](https://prosemirror.net/docs/ref/#model.Node.textBetween) and
1028
+ [`Node.textContent`](https://prosemirror.net/docs/ref/#model.Node.textContent)).
1029
+ */
1030
+ leafText?: (node: Node) => string;
1031
+ /**
1032
+ A single inline node in a schema can be set to be a linebreak
1033
+ equivalent. When converting between block types that support the
1034
+ node and block types that don't but have
1035
+ [`whitespace`](https://prosemirror.net/docs/ref/#model.NodeSpec.whitespace) set to `"pre"`,
1036
+ [`setBlockType`](https://prosemirror.net/docs/ref/#transform.Transform.setBlockType) will convert
1037
+ between newline characters to or from linebreak nodes as
1038
+ appropriate.
1039
+ */
1040
+ linebreakReplacement?: boolean;
1041
+ /**
1042
+ Node specs may include arbitrary properties that can be read by
1043
+ other code via [`NodeType.spec`](https://prosemirror.net/docs/ref/#model.NodeType.spec).
1044
+ */
1045
+ [key: string]: any;
1046
+ }
1047
+ /**
1048
+ Used to define marks when creating a schema.
1049
+ */
1050
+ interface MarkSpec {
1051
+ /**
1052
+ The attributes that marks of this type get.
1053
+ */
1054
+ attrs?: {
1055
+ [name: string]: AttributeSpec;
1056
+ };
1057
+ /**
1058
+ Whether this mark should be active when the cursor is positioned
1059
+ at its end (or at its start when that is also the start of the
1060
+ parent node). Defaults to true.
1061
+ */
1062
+ inclusive?: boolean;
1063
+ /**
1064
+ Determines which other marks this mark can coexist with. Should
1065
+ be a space-separated strings naming other marks or groups of marks.
1066
+ When a mark is [added](https://prosemirror.net/docs/ref/#model.Mark.addToSet) to a set, all marks
1067
+ that it excludes are removed in the process. If the set contains
1068
+ any mark that excludes the new mark but is not, itself, excluded
1069
+ by the new mark, the mark can not be added an the set. You can
1070
+ use the value `"_"` to indicate that the mark excludes all
1071
+ marks in the schema.
1072
+
1073
+ Defaults to only being exclusive with marks of the same type. You
1074
+ can set it to an empty string (or any string not containing the
1075
+ mark's own name) to allow multiple marks of a given type to
1076
+ coexist (as long as they have different attributes).
1077
+ */
1078
+ excludes?: string;
1079
+ /**
1080
+ The group or space-separated groups to which this mark belongs.
1081
+ */
1082
+ group?: string;
1083
+ /**
1084
+ Determines whether marks of this type can span multiple adjacent
1085
+ nodes when serialized to DOM/HTML. Defaults to true.
1086
+ */
1087
+ spanning?: boolean;
1088
+ /**
1089
+ Marks the content of this span as being code, which causes some
1090
+ commands and extensions to treat it differently.
1091
+ */
1092
+ code?: boolean;
1093
+ /**
1094
+ Defines the default way marks of this type should be serialized
1095
+ to DOM/HTML. When the resulting spec contains a hole, that is
1096
+ where the marked content is placed. Otherwise, it is appended to
1097
+ the top node.
1098
+ */
1099
+ toDOM?: (mark: Mark, inline: boolean) => DOMOutputSpec;
1100
+ /**
1101
+ Associates DOM parser information with this mark (see the
1102
+ corresponding [node spec field](https://prosemirror.net/docs/ref/#model.NodeSpec.parseDOM)). The
1103
+ `mark` field in the rules is implied.
1104
+ */
1105
+ parseDOM?: readonly ParseRule[];
1106
+ /**
1107
+ Mark specs can include additional properties that can be
1108
+ inspected through [`MarkType.spec`](https://prosemirror.net/docs/ref/#model.MarkType.spec) when
1109
+ working with the mark.
1110
+ */
1111
+ [key: string]: any;
1112
+ }
1113
+ /**
1114
+ Used to [define](https://prosemirror.net/docs/ref/#model.NodeSpec.attrs) attributes on nodes or
1115
+ marks.
1116
+ */
1117
+ interface AttributeSpec {
1118
+ /**
1119
+ The default value for this attribute, to use when no explicit
1120
+ value is provided. Attributes that have no default must be
1121
+ provided whenever a node or mark of a type that has them is
1122
+ created.
1123
+ */
1124
+ default?: any;
1125
+ /**
1126
+ A function or type name used to validate values of this
1127
+ attribute. This will be used when deserializing the attribute
1128
+ from JSON, and when running [`Node.check`](https://prosemirror.net/docs/ref/#model.Node.check).
1129
+ When a function, it should raise an exception if the value isn't
1130
+ of the expected type or shape. When a string, it should be a
1131
+ `|`-separated string of primitive types (`"number"`, `"string"`,
1132
+ `"boolean"`, `"null"`, and `"undefined"`), and the library will
1133
+ raise an error when the value is not one of those types.
1134
+ */
1135
+ validate?: string | ((value: any) => void);
1136
+ }
1137
+ /**
1138
+ A document schema. Holds [node](https://prosemirror.net/docs/ref/#model.NodeType) and [mark
1139
+ type](https://prosemirror.net/docs/ref/#model.MarkType) objects for the nodes and marks that may
1140
+ occur in conforming documents, and provides functionality for
1141
+ creating and deserializing such documents.
1142
+
1143
+ When given, the type parameters provide the names of the nodes and
1144
+ marks in this schema.
1145
+ */
1146
+ declare class Schema<Nodes extends string = any, Marks extends string = any> {
1147
+ /**
1148
+ The [spec](https://prosemirror.net/docs/ref/#model.SchemaSpec) on which the schema is based,
1149
+ with the added guarantee that its `nodes` and `marks`
1150
+ properties are
1151
+ [`OrderedMap`](https://code.haverbeke.berlin/marijn/orderedmap) instances
1152
+ (not raw objects).
1153
+ */
1154
+ spec: {
1155
+ nodes: OrderedMap<NodeSpec>;
1156
+ marks: OrderedMap<MarkSpec>;
1157
+ topNode?: string;
1158
+ };
1159
+ /**
1160
+ An object mapping the schema's node names to node type objects.
1161
+ */
1162
+ nodes: {
1163
+ readonly [name in Nodes]: NodeType;
1164
+ } & {
1165
+ readonly [key: string]: NodeType;
1166
+ };
1167
+ /**
1168
+ A map from mark names to mark type objects.
1169
+ */
1170
+ marks: {
1171
+ readonly [name in Marks]: MarkType;
1172
+ } & {
1173
+ readonly [key: string]: MarkType;
1174
+ };
1175
+ /**
1176
+ The [linebreak
1177
+ replacement](https://prosemirror.net/docs/ref/#model.NodeSpec.linebreakReplacement) node defined
1178
+ in this schema, if any.
1179
+ */
1180
+ linebreakReplacement: NodeType | null;
1181
+ /**
1182
+ Construct a schema from a schema [specification](https://prosemirror.net/docs/ref/#model.SchemaSpec).
1183
+ */
1184
+ constructor(spec: SchemaSpec<Nodes, Marks>);
1185
+ /**
1186
+ The type of the [default top node](https://prosemirror.net/docs/ref/#model.SchemaSpec.topNode)
1187
+ for this schema.
1188
+ */
1189
+ topNodeType: NodeType;
1190
+ /**
1191
+ An object for storing whatever values modules may want to
1192
+ compute and cache per schema. (If you want to store something
1193
+ in it, try to use property names unlikely to clash.)
1194
+ */
1195
+ cached: {
1196
+ [key: string]: any;
1197
+ };
1198
+ /**
1199
+ Create a node in this schema. The `type` may be a string or a
1200
+ `NodeType` instance. Attributes will be extended with defaults,
1201
+ `content` may be a `Fragment`, `null`, a `Node`, or an array of
1202
+ nodes.
1203
+ */
1204
+ node(type: string | NodeType, attrs?: Attrs | null, content?: Fragment | Node | readonly Node[], marks?: readonly Mark[]): Node;
1205
+ /**
1206
+ Create a text node in the schema. Empty text nodes are not
1207
+ allowed.
1208
+ */
1209
+ text(text: string, marks?: readonly Mark[] | null): Node;
1210
+ /**
1211
+ Create a mark with the given type and attributes.
1212
+ */
1213
+ mark(type: string | MarkType, attrs?: Attrs | null): Mark;
1214
+ /**
1215
+ Deserialize a node from its JSON representation. This method is
1216
+ bound.
1217
+ */
1218
+ nodeFromJSON: (json: any) => Node;
1219
+ /**
1220
+ Deserialize a mark from its JSON representation. This method is
1221
+ bound.
1222
+ */
1223
+ markFromJSON: (json: any) => Mark;
1224
+ }
1225
+
1226
+ /**
1227
+ A fragment represents a node's collection of child nodes.
1228
+
1229
+ Like nodes, fragments are persistent data structures, and you
1230
+ should not mutate them or their content. Rather, you create new
1231
+ instances whenever needed. The API tries to make this easy.
1232
+ */
1233
+ declare class Fragment {
1234
+ /**
1235
+ The child nodes in this fragment.
1236
+ */
1237
+ readonly content: readonly Node[];
1238
+ /**
1239
+ The size of the fragment, which is the total of the size of
1240
+ its content nodes.
1241
+ */
1242
+ readonly size: number;
1243
+ /**
1244
+ Invoke a callback for all descendant nodes between the given two
1245
+ positions (relative to start of this fragment). Doesn't descend
1246
+ into a node when the callback returns `false`.
1247
+ */
1248
+ nodesBetween(from: number, to: number, f: (node: Node, start: number, parent: Node | null, index: number) => boolean | void, nodeStart?: number, parent?: Node): void;
1249
+ /**
1250
+ Call the given callback for every descendant node. `pos` will be
1251
+ relative to the start of the fragment. The callback may return
1252
+ `false` to prevent traversal of a given node's children.
1253
+ */
1254
+ descendants(f: (node: Node, pos: number, parent: Node | null, index: number) => boolean | void): void;
1255
+ /**
1256
+ Extract the text between `from` and `to`. See the same method on
1257
+ [`Node`](https://prosemirror.net/docs/ref/#model.Node.textBetween).
1258
+ */
1259
+ textBetween(from: number, to: number, blockSeparator?: string | null, leafText?: string | null | ((leafNode: Node) => string)): string;
1260
+ /**
1261
+ Create a new fragment containing the combined content of this
1262
+ fragment and the other.
1263
+ */
1264
+ append(other: Fragment): Fragment;
1265
+ /**
1266
+ Cut out the sub-fragment between the two given positions.
1267
+ */
1268
+ cut(from: number, to?: number): Fragment;
1269
+ /**
1270
+ Create a new fragment in which the node at the given index is
1271
+ replaced by the given node.
1272
+ */
1273
+ replaceChild(index: number, node: Node): Fragment;
1274
+ /**
1275
+ Create a new fragment by prepending the given node to this
1276
+ fragment.
1277
+ */
1278
+ addToStart(node: Node): Fragment;
1279
+ /**
1280
+ Create a new fragment by appending the given node to this
1281
+ fragment.
1282
+ */
1283
+ addToEnd(node: Node): Fragment;
1284
+ /**
1285
+ Compare this fragment to another one.
1286
+ */
1287
+ eq(other: Fragment): boolean;
1288
+ /**
1289
+ The first child of the fragment, or `null` if it is empty.
1290
+ */
1291
+ get firstChild(): Node | null;
1292
+ /**
1293
+ The last child of the fragment, or `null` if it is empty.
1294
+ */
1295
+ get lastChild(): Node | null;
1296
+ /**
1297
+ The number of child nodes in this fragment.
1298
+ */
1299
+ get childCount(): number;
1300
+ /**
1301
+ Get the child node at the given index. Raise an error when the
1302
+ index is out of range.
1303
+ */
1304
+ child(index: number): Node;
1305
+ /**
1306
+ Get the child node at the given index, if it exists.
1307
+ */
1308
+ maybeChild(index: number): Node | null;
1309
+ /**
1310
+ Call `f` for every child node, passing the node, its offset
1311
+ into this parent node, and its index.
1312
+ */
1313
+ forEach(f: (node: Node, offset: number, index: number) => void): void;
1314
+ /**
1315
+ Find the first position at which this fragment and another
1316
+ fragment differ, or `null` if they are the same.
1317
+ */
1318
+ findDiffStart(other: Fragment, pos?: number): number | null;
1319
+ /**
1320
+ Find the first position, searching from the end, at which this
1321
+ fragment and the given fragment differ, or `null` if they are
1322
+ the same. Since this position will not be the same in both
1323
+ nodes, an object with two separate positions is returned.
1324
+ */
1325
+ findDiffEnd(other: Fragment, pos?: number, otherPos?: number): {
1326
+ a: number;
1327
+ b: number;
1328
+ } | null;
1329
+ /**
1330
+ Return a debugging string that describes this fragment.
1331
+ */
1332
+ toString(): string;
1333
+ /**
1334
+ Create a JSON-serializeable representation of this fragment.
1335
+ */
1336
+ toJSON(): any;
1337
+ /**
1338
+ Deserialize a fragment from its JSON representation.
1339
+ */
1340
+ static fromJSON(schema: Schema, value: any): Fragment;
1341
+ /**
1342
+ Build a fragment from an array of nodes. Ensures that adjacent
1343
+ text nodes with the same marks are joined together.
1344
+ */
1345
+ static fromArray(array: readonly Node[]): Fragment;
1346
+ /**
1347
+ Create a fragment from something that can be interpreted as a
1348
+ set of nodes. For `null`, it returns the empty fragment. For a
1349
+ fragment, the fragment itself. For a node or array of nodes, a
1350
+ fragment containing those nodes.
1351
+ */
1352
+ static from(nodes?: Fragment | Node | readonly Node[] | null): Fragment;
1353
+ /**
1354
+ An empty fragment. Intended to be reused whenever a node doesn't
1355
+ contain anything (rather than allocating a new empty fragment for
1356
+ each leaf node).
1357
+ */
1358
+ static empty: Fragment;
1359
+ }
1360
+
1361
+ type MatchEdge = {
1362
+ type: NodeType;
1363
+ next: ContentMatch;
1364
+ };
1365
+ /**
1366
+ Instances of this class represent a match state of a node type's
1367
+ [content expression](https://prosemirror.net/docs/ref/#model.NodeSpec.content), and can be used to
1368
+ find out whether further content matches here, and whether a given
1369
+ position is a valid end of the node.
1370
+ */
1371
+ declare class ContentMatch {
1372
+ /**
1373
+ True when this match state represents a valid end of the node.
1374
+ */
1375
+ readonly validEnd: boolean;
1376
+ /**
1377
+ Match a node type, returning a match after that node if
1378
+ successful.
1379
+ */
1380
+ matchType(type: NodeType): ContentMatch | null;
1381
+ /**
1382
+ Try to match a fragment. Returns the resulting match when
1383
+ successful.
1384
+ */
1385
+ matchFragment(frag: Fragment, start?: number, end?: number): ContentMatch | null;
1386
+ /**
1387
+ Get the first matching node type at this match position that can
1388
+ be generated.
1389
+ */
1390
+ get defaultType(): NodeType | null;
1391
+ /**
1392
+ Try to match the given fragment, and if that fails, see if it can
1393
+ be made to match by inserting nodes in front of it. When
1394
+ successful, return a fragment of inserted nodes (which may be
1395
+ empty if nothing had to be inserted). When `toEnd` is true, only
1396
+ return a fragment if the resulting match goes to the end of the
1397
+ content expression.
1398
+ */
1399
+ fillBefore(after: Fragment, toEnd?: boolean, startIndex?: number): Fragment | null;
1400
+ /**
1401
+ Find a set of wrapping node types that would allow a node of the
1402
+ given type to appear at this position. The result may be empty
1403
+ (when it fits directly) and will be null when no such wrapping
1404
+ exists.
1405
+ */
1406
+ findWrapping(target: NodeType): readonly NodeType[] | null;
1407
+ /**
1408
+ The number of outgoing edges this node has in the finite
1409
+ automaton that describes the content expression.
1410
+ */
1411
+ get edgeCount(): number;
1412
+ /**
1413
+ Get the _n_​th outgoing edge from this node in the finite
1414
+ automaton that describes the content expression.
1415
+ */
1416
+ edge(n: number): MatchEdge;
1417
+ }
1418
+
1419
+ /**
1420
+ This class represents a node in the tree that makes up a
1421
+ ProseMirror document. So a document is an instance of `Node`, with
1422
+ children that are also instances of `Node`.
1423
+
1424
+ Nodes are persistent data structures. Instead of changing them, you
1425
+ create new ones with the content you want. Old ones keep pointing
1426
+ at the old document shape. This is made cheaper by sharing
1427
+ structure between the old and new data as much as possible, which a
1428
+ tree shape like this (without back pointers) makes easy.
1429
+
1430
+ **Do not** directly mutate the properties of a `Node` object. See
1431
+ [the guide](https://prosemirror.net/docs/guide/#doc) for more information.
1432
+ */
1433
+ declare class Node {
1434
+ /**
1435
+ The type of node that this is.
1436
+ */
1437
+ readonly type: NodeType;
1438
+ /**
1439
+ An object mapping attribute names to values. The kind of
1440
+ attributes allowed and required are
1441
+ [determined](https://prosemirror.net/docs/ref/#model.NodeSpec.attrs) by the node type.
1442
+ */
1443
+ readonly attrs: Attrs;
1444
+ /**
1445
+ The marks (things like whether it is emphasized or part of a
1446
+ link) applied to this node.
1447
+ */
1448
+ readonly marks: readonly Mark[];
1449
+ /**
1450
+ A container holding the node's children.
1451
+ */
1452
+ readonly content: Fragment;
1453
+ /**
1454
+ The array of this node's child nodes.
1455
+ */
1456
+ get children(): readonly Node[];
1457
+ /**
1458
+ For text nodes, this contains the node's text content.
1459
+ */
1460
+ readonly text: string | undefined;
1461
+ /**
1462
+ The size of this node, as defined by the integer-based [indexing
1463
+ scheme](https://prosemirror.net/docs/guide/#doc.indexing). For text nodes, this is the
1464
+ amount of characters. For other leaf nodes, it is one. For
1465
+ non-leaf nodes, it is the size of the content plus two (the
1466
+ start and end token).
1467
+ */
1468
+ get nodeSize(): number;
1469
+ /**
1470
+ The number of children that the node has.
1471
+ */
1472
+ get childCount(): number;
1473
+ /**
1474
+ Get the child node at the given index. Raises an error when the
1475
+ index is out of range.
1476
+ */
1477
+ child(index: number): Node;
1478
+ /**
1479
+ Get the child node at the given index, if it exists.
1480
+ */
1481
+ maybeChild(index: number): Node | null;
1482
+ /**
1483
+ Call `f` for every child node, passing the node, its offset
1484
+ into this parent node, and its index.
1485
+ */
1486
+ forEach(f: (node: Node, offset: number, index: number) => void): void;
1487
+ /**
1488
+ Invoke a callback for all descendant nodes recursively overlapping
1489
+ the given two positions that are relative to start of this
1490
+ node's content. This includes all ancestors of the nodes
1491
+ containing the two positions. The callback is invoked with the
1492
+ node, its position relative to the original node (method receiver),
1493
+ its parent node, and its child index. When the callback returns
1494
+ false for a given node, that node's children will not be
1495
+ recursed over. The last parameter can be used to specify a
1496
+ starting position to count from.
1497
+ */
1498
+ nodesBetween(from: number, to: number, f: (node: Node, pos: number, parent: Node | null, index: number) => void | boolean, startPos?: number): void;
1499
+ /**
1500
+ Call the given callback for every descendant node. Doesn't
1501
+ descend into a node when the callback returns `false`.
1502
+ */
1503
+ descendants(f: (node: Node, pos: number, parent: Node | null, index: number) => void | boolean): void;
1504
+ /**
1505
+ Concatenates all the text nodes found in this fragment and its
1506
+ children.
1507
+ */
1508
+ get textContent(): string;
1509
+ /**
1510
+ Get all text between positions `from` and `to`. When
1511
+ `blockSeparator` is given, it will be inserted to separate text
1512
+ from different block nodes. If `leafText` is given, it'll be
1513
+ inserted for every non-text leaf node encountered, otherwise
1514
+ [`leafText`](https://prosemirror.net/docs/ref/#model.NodeSpec.leafText) will be used.
1515
+ */
1516
+ textBetween(from: number, to: number, blockSeparator?: string | null, leafText?: null | string | ((leafNode: Node) => string)): string;
1517
+ /**
1518
+ Returns this node's first child, or `null` if there are no
1519
+ children.
1520
+ */
1521
+ get firstChild(): Node | null;
1522
+ /**
1523
+ Returns this node's last child, or `null` if there are no
1524
+ children.
1525
+ */
1526
+ get lastChild(): Node | null;
1527
+ /**
1528
+ Test whether two nodes represent the same piece of document.
1529
+ */
1530
+ eq(other: Node): boolean;
1531
+ /**
1532
+ Compare the markup (type, attributes, and marks) of this node to
1533
+ those of another. Returns `true` if both have the same markup.
1534
+ */
1535
+ sameMarkup(other: Node): boolean;
1536
+ /**
1537
+ Check whether this node's markup correspond to the given type,
1538
+ attributes, and marks.
1539
+ */
1540
+ hasMarkup(type: NodeType, attrs?: Attrs | null, marks?: readonly Mark[]): boolean;
1541
+ /**
1542
+ Create a new node with the same markup as this node, containing
1543
+ the given content (or empty, if no content is given).
1544
+ */
1545
+ copy(content?: Fragment | null): Node;
1546
+ /**
1547
+ Create a copy of this node, with the given set of marks instead
1548
+ of the node's own marks.
1549
+ */
1550
+ mark(marks: readonly Mark[]): Node;
1551
+ /**
1552
+ Create a copy of this node with only the content between the
1553
+ given positions. If `to` is not given, it defaults to the end of
1554
+ the node.
1555
+ */
1556
+ cut(from: number, to?: number): Node;
1557
+ /**
1558
+ Cut out the part of the document between the given positions, and
1559
+ return it as a `Slice` object.
1560
+ */
1561
+ slice(from: number, to?: number, includeParents?: boolean): Slice;
1562
+ /**
1563
+ Replace the part of the document between the given positions with
1564
+ the given slice. The slice must 'fit', meaning its open sides
1565
+ must be able to connect to the surrounding content, and its
1566
+ content nodes must be valid children for the node they are placed
1567
+ into. If any of this is violated, an error of type
1568
+ [`ReplaceError`](https://prosemirror.net/docs/ref/#model.ReplaceError) is thrown.
1569
+ */
1570
+ replace(from: number, to: number, slice: Slice): Node;
1571
+ /**
1572
+ Find the node directly after the given position.
1573
+ */
1574
+ nodeAt(pos: number): Node | null;
1575
+ /**
1576
+ Find the (direct) child node after the given offset, if any,
1577
+ and return it along with its index and offset relative to this
1578
+ node.
1579
+ */
1580
+ childAfter(pos: number): {
1581
+ node: Node | null;
1582
+ index: number;
1583
+ offset: number;
1584
+ };
1585
+ /**
1586
+ Find the (direct) child node before the given offset, if any,
1587
+ and return it along with its index and offset relative to this
1588
+ node.
1589
+ */
1590
+ childBefore(pos: number): {
1591
+ node: Node | null;
1592
+ index: number;
1593
+ offset: number;
1594
+ };
1595
+ /**
1596
+ Resolve the given position in the document, returning an
1597
+ [object](https://prosemirror.net/docs/ref/#model.ResolvedPos) with information about its context.
1598
+ */
1599
+ resolve(pos: number): ResolvedPos;
1600
+ /**
1601
+ Test whether a given mark or mark type occurs in this document
1602
+ between the two given positions.
1603
+ */
1604
+ rangeHasMark(from: number, to: number, type: Mark | MarkType): boolean;
1605
+ /**
1606
+ True when this is a block (non-inline node)
1607
+ */
1608
+ get isBlock(): boolean;
1609
+ /**
1610
+ True when this is a textblock node, a block node with inline
1611
+ content.
1612
+ */
1613
+ get isTextblock(): boolean;
1614
+ /**
1615
+ True when this node allows inline content.
1616
+ */
1617
+ get inlineContent(): boolean;
1618
+ /**
1619
+ True when this is an inline node (a text node or a node that can
1620
+ appear among text).
1621
+ */
1622
+ get isInline(): boolean;
1623
+ /**
1624
+ True when this is a text node.
1625
+ */
1626
+ get isText(): boolean;
1627
+ /**
1628
+ True when this is a leaf node.
1629
+ */
1630
+ get isLeaf(): boolean;
1631
+ /**
1632
+ True when this is an atom, i.e. when it does not have directly
1633
+ editable content. This is usually the same as `isLeaf`, but can
1634
+ be configured with the [`atom` property](https://prosemirror.net/docs/ref/#model.NodeSpec.atom)
1635
+ on a node's spec (typically used when the node is displayed as
1636
+ an uneditable [node view](https://prosemirror.net/docs/ref/#view.NodeView)).
1637
+ */
1638
+ get isAtom(): boolean;
1639
+ /**
1640
+ Return a string representation of this node for debugging
1641
+ purposes.
1642
+ */
1643
+ toString(): string;
1644
+ /**
1645
+ Get the content match in this node at the given index.
1646
+ */
1647
+ contentMatchAt(index: number): ContentMatch;
1648
+ /**
1649
+ Test whether replacing the range between `from` and `to` (by
1650
+ child index) with the given replacement fragment (which defaults
1651
+ to the empty fragment) would leave the node's content valid. You
1652
+ can optionally pass `start` and `end` indices into the
1653
+ replacement fragment.
1654
+ */
1655
+ canReplace(from: number, to: number, replacement?: Fragment, start?: number, end?: number): boolean;
1656
+ /**
1657
+ Test whether replacing the range `from` to `to` (by index) with
1658
+ a node of the given type would leave the node's content valid.
1659
+ */
1660
+ canReplaceWith(from: number, to: number, type: NodeType, marks?: readonly Mark[]): boolean;
1661
+ /**
1662
+ Test whether the given node's content could be appended to this
1663
+ node. If that node is empty, this will only return true if there
1664
+ is at least one node type that can appear in both nodes (to avoid
1665
+ merging completely incompatible nodes).
1666
+ */
1667
+ canAppend(other: Node): boolean;
1668
+ /**
1669
+ Check whether this node and its descendants conform to the
1670
+ schema, and raise an exception when they do not.
1671
+ */
1672
+ check(): void;
1673
+ /**
1674
+ Return a JSON-serializeable representation of this node.
1675
+ */
1676
+ toJSON(): any;
1677
+ /**
1678
+ Deserialize a node from its JSON representation.
1679
+ */
1680
+ static fromJSON(schema: Schema, json: any): Node;
1681
+ }
1682
+
1683
+ export { type AttributeSpec, type Attrs, ContentMatch, type DOMOutputSpec, DOMParser, DOMSerializer, Fragment, type GenericParseRule, Mark, type MarkSpec, MarkType, Node, NodeRange, type NodeSpec, NodeType, type ParseOptions, type ParseRule, ReplaceError, ResolvedPos, Schema, type SchemaSpec, Slice, type StyleParseRule, type TagParseRule };