@ecomcx/ecomweb-editor 0.0.0-stage → 1.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (725) hide show
  1. package/README.md +107 -2
  2. package/node_modules/@floating-ui/core/LICENSE +20 -0
  3. package/node_modules/@floating-ui/core/README.md +4 -0
  4. package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs +1 -0
  5. package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.mjs +1164 -0
  6. package/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +535 -0
  7. package/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +535 -0
  8. package/node_modules/@floating-ui/core/dist/floating-ui.core.esm.js +1038 -0
  9. package/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1038 -0
  10. package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.js +1183 -0
  11. package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.min.js +1 -0
  12. package/node_modules/@floating-ui/core/package.json +63 -0
  13. package/node_modules/@floating-ui/dom/LICENSE +20 -0
  14. package/node_modules/@floating-ui/dom/README.md +4 -0
  15. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs +1 -0
  16. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.mjs +964 -0
  17. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.mts +362 -0
  18. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts +362 -0
  19. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js +789 -0
  20. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +789 -0
  21. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js +983 -0
  22. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.min.js +1 -0
  23. package/node_modules/@floating-ui/dom/package.json +72 -0
  24. package/node_modules/@floating-ui/utils/LICENSE +20 -0
  25. package/node_modules/@floating-ui/utils/README.md +4 -0
  26. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +105 -0
  27. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +105 -0
  28. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +47 -0
  29. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +47 -0
  30. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.esm.js +165 -0
  31. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +165 -0
  32. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.js +192 -0
  33. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.min.js +1 -0
  34. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.esm.js +136 -0
  35. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +136 -0
  36. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.js +167 -0
  37. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.min.js +1 -0
  38. package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +47 -0
  39. package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.esm.js +165 -0
  40. package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.umd.js +192 -0
  41. package/node_modules/@floating-ui/utils/dom/package.json +6 -0
  42. package/node_modules/@floating-ui/utils/package.json +70 -0
  43. package/node_modules/@tiptap/core/LICENSE.md +21 -0
  44. package/node_modules/@tiptap/core/README.md +18 -0
  45. package/node_modules/@tiptap/core/dist/index.cjs +8463 -0
  46. package/node_modules/@tiptap/core/dist/index.d.cts +5798 -0
  47. package/node_modules/@tiptap/core/dist/index.d.ts +5797 -0
  48. package/node_modules/@tiptap/core/dist/index.js +8288 -0
  49. package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.cjs +70 -0
  50. package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.d.cts +28 -0
  51. package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.d.ts +28 -0
  52. package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +64 -0
  53. package/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  54. package/node_modules/@tiptap/core/jsx-dev-runtime/index.cjs +1 -0
  55. package/node_modules/@tiptap/core/jsx-dev-runtime/index.d.cts +1 -0
  56. package/node_modules/@tiptap/core/jsx-dev-runtime/index.d.ts +1 -0
  57. package/node_modules/@tiptap/core/jsx-dev-runtime/index.js +1 -0
  58. package/node_modules/@tiptap/core/jsx-runtime/index.cjs +1 -0
  59. package/node_modules/@tiptap/core/jsx-runtime/index.d.cts +1 -0
  60. package/node_modules/@tiptap/core/jsx-runtime/index.d.ts +1 -0
  61. package/node_modules/@tiptap/core/jsx-runtime/index.js +1 -0
  62. package/node_modules/@tiptap/core/package.json +74 -0
  63. package/node_modules/@tiptap/extension-blockquote/LICENSE.md +21 -0
  64. package/node_modules/@tiptap/extension-blockquote/README.md +18 -0
  65. package/node_modules/@tiptap/extension-blockquote/dist/index.cjs +132 -0
  66. package/node_modules/@tiptap/extension-blockquote/dist/index.d.cts +40 -0
  67. package/node_modules/@tiptap/extension-blockquote/dist/index.d.ts +40 -0
  68. package/node_modules/@tiptap/extension-blockquote/dist/index.js +126 -0
  69. package/node_modules/@tiptap/extension-blockquote/package.json +52 -0
  70. package/node_modules/@tiptap/extension-bold/LICENSE.md +21 -0
  71. package/node_modules/@tiptap/extension-bold/README.md +18 -0
  72. package/node_modules/@tiptap/extension-bold/dist/index.cjs +117 -0
  73. package/node_modules/@tiptap/extension-bold/dist/index.d.cts +52 -0
  74. package/node_modules/@tiptap/extension-bold/dist/index.d.ts +52 -0
  75. package/node_modules/@tiptap/extension-bold/dist/index.js +108 -0
  76. package/node_modules/@tiptap/extension-bold/package.json +50 -0
  77. package/node_modules/@tiptap/extension-bubble-menu/LICENSE.md +21 -0
  78. package/node_modules/@tiptap/extension-bubble-menu/README.md +18 -0
  79. package/node_modules/@tiptap/extension-bubble-menu/dist/index.cjs +333 -0
  80. package/node_modules/@tiptap/extension-bubble-menu/dist/index.d.cts +170 -0
  81. package/node_modules/@tiptap/extension-bubble-menu/dist/index.d.ts +170 -0
  82. package/node_modules/@tiptap/extension-bubble-menu/dist/index.js +326 -0
  83. package/node_modules/@tiptap/extension-bubble-menu/package.json +56 -0
  84. package/node_modules/@tiptap/extension-bullet-list/LICENSE.md +21 -0
  85. package/node_modules/@tiptap/extension-bullet-list/README.md +18 -0
  86. package/node_modules/@tiptap/extension-bullet-list/dist/index.cjs +17 -0
  87. package/node_modules/@tiptap/extension-bullet-list/dist/index.d.cts +2 -0
  88. package/node_modules/@tiptap/extension-bullet-list/dist/index.d.ts +2 -0
  89. package/node_modules/@tiptap/extension-bullet-list/dist/index.js +7 -0
  90. package/node_modules/@tiptap/extension-bullet-list/package.json +50 -0
  91. package/node_modules/@tiptap/extension-code/LICENSE.md +21 -0
  92. package/node_modules/@tiptap/extension-code/README.md +18 -0
  93. package/node_modules/@tiptap/extension-code/dist/index.cjs +136 -0
  94. package/node_modules/@tiptap/extension-code/dist/index.d.cts +60 -0
  95. package/node_modules/@tiptap/extension-code/dist/index.d.ts +60 -0
  96. package/node_modules/@tiptap/extension-code/dist/index.js +127 -0
  97. package/node_modules/@tiptap/extension-code/package.json +50 -0
  98. package/node_modules/@tiptap/extension-code-block/LICENSE.md +21 -0
  99. package/node_modules/@tiptap/extension-code-block/README.md +18 -0
  100. package/node_modules/@tiptap/extension-code-block/dist/index.cjs +255 -0
  101. package/node_modules/@tiptap/extension-code-block/dist/index.d.cts +84 -0
  102. package/node_modules/@tiptap/extension-code-block/dist/index.d.ts +84 -0
  103. package/node_modules/@tiptap/extension-code-block/dist/index.js +248 -0
  104. package/node_modules/@tiptap/extension-code-block/package.json +52 -0
  105. package/node_modules/@tiptap/extension-document/LICENSE.md +21 -0
  106. package/node_modules/@tiptap/extension-document/README.md +18 -0
  107. package/node_modules/@tiptap/extension-document/dist/index.cjs +26 -0
  108. package/node_modules/@tiptap/extension-document/dist/index.d.cts +10 -0
  109. package/node_modules/@tiptap/extension-document/dist/index.d.ts +10 -0
  110. package/node_modules/@tiptap/extension-document/dist/index.js +22 -0
  111. package/node_modules/@tiptap/extension-document/package.json +50 -0
  112. package/node_modules/@tiptap/extension-dropcursor/LICENSE.md +21 -0
  113. package/node_modules/@tiptap/extension-dropcursor/README.md +18 -0
  114. package/node_modules/@tiptap/extension-dropcursor/dist/index.cjs +17 -0
  115. package/node_modules/@tiptap/extension-dropcursor/dist/index.d.cts +2 -0
  116. package/node_modules/@tiptap/extension-dropcursor/dist/index.d.ts +2 -0
  117. package/node_modules/@tiptap/extension-dropcursor/dist/index.js +7 -0
  118. package/node_modules/@tiptap/extension-dropcursor/package.json +50 -0
  119. package/node_modules/@tiptap/extension-floating-menu/LICENSE.md +21 -0
  120. package/node_modules/@tiptap/extension-floating-menu/README.md +18 -0
  121. package/node_modules/@tiptap/extension-floating-menu/dist/index.cjs +272 -0
  122. package/node_modules/@tiptap/extension-floating-menu/dist/index.d.cts +180 -0
  123. package/node_modules/@tiptap/extension-floating-menu/dist/index.d.ts +180 -0
  124. package/node_modules/@tiptap/extension-floating-menu/dist/index.js +265 -0
  125. package/node_modules/@tiptap/extension-floating-menu/package.json +55 -0
  126. package/node_modules/@tiptap/extension-gapcursor/LICENSE.md +21 -0
  127. package/node_modules/@tiptap/extension-gapcursor/README.md +18 -0
  128. package/node_modules/@tiptap/extension-gapcursor/dist/index.cjs +17 -0
  129. package/node_modules/@tiptap/extension-gapcursor/dist/index.d.cts +2 -0
  130. package/node_modules/@tiptap/extension-gapcursor/dist/index.d.ts +2 -0
  131. package/node_modules/@tiptap/extension-gapcursor/dist/index.js +7 -0
  132. package/node_modules/@tiptap/extension-gapcursor/package.json +50 -0
  133. package/node_modules/@tiptap/extension-hard-break/LICENSE.md +21 -0
  134. package/node_modules/@tiptap/extension-hard-break/README.md +18 -0
  135. package/node_modules/@tiptap/extension-hard-break/dist/index.cjs +69 -0
  136. package/node_modules/@tiptap/extension-hard-break/dist/index.d.cts +35 -0
  137. package/node_modules/@tiptap/extension-hard-break/dist/index.d.ts +35 -0
  138. package/node_modules/@tiptap/extension-hard-break/dist/index.js +64 -0
  139. package/node_modules/@tiptap/extension-hard-break/package.json +50 -0
  140. package/node_modules/@tiptap/extension-heading/LICENSE.md +21 -0
  141. package/node_modules/@tiptap/extension-heading/README.md +18 -0
  142. package/node_modules/@tiptap/extension-heading/dist/index.cjs +93 -0
  143. package/node_modules/@tiptap/extension-heading/dist/index.d.cts +50 -0
  144. package/node_modules/@tiptap/extension-heading/dist/index.d.ts +50 -0
  145. package/node_modules/@tiptap/extension-heading/dist/index.js +88 -0
  146. package/node_modules/@tiptap/extension-heading/package.json +50 -0
  147. package/node_modules/@tiptap/extension-highlight/LICENSE.md +21 -0
  148. package/node_modules/@tiptap/extension-highlight/README.md +18 -0
  149. package/node_modules/@tiptap/extension-highlight/dist/index.cjs +113 -0
  150. package/node_modules/@tiptap/extension-highlight/dist/index.d.cts +59 -0
  151. package/node_modules/@tiptap/extension-highlight/dist/index.d.ts +59 -0
  152. package/node_modules/@tiptap/extension-highlight/dist/index.js +106 -0
  153. package/node_modules/@tiptap/extension-highlight/package.json +50 -0
  154. package/node_modules/@tiptap/extension-horizontal-rule/LICENSE.md +21 -0
  155. package/node_modules/@tiptap/extension-horizontal-rule/README.md +18 -0
  156. package/node_modules/@tiptap/extension-horizontal-rule/dist/index.cjs +78 -0
  157. package/node_modules/@tiptap/extension-horizontal-rule/dist/index.d.cts +35 -0
  158. package/node_modules/@tiptap/extension-horizontal-rule/dist/index.d.ts +35 -0
  159. package/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +73 -0
  160. package/node_modules/@tiptap/extension-horizontal-rule/package.json +52 -0
  161. package/node_modules/@tiptap/extension-image/LICENSE.md +21 -0
  162. package/node_modules/@tiptap/extension-image/README.md +18 -0
  163. package/node_modules/@tiptap/extension-image/dist/index.cjs +181 -0
  164. package/node_modules/@tiptap/extension-image/dist/index.d.cts +69 -0
  165. package/node_modules/@tiptap/extension-image/dist/index.d.ts +69 -0
  166. package/node_modules/@tiptap/extension-image/dist/index.js +175 -0
  167. package/node_modules/@tiptap/extension-image/package.json +50 -0
  168. package/node_modules/@tiptap/extension-italic/LICENSE.md +21 -0
  169. package/node_modules/@tiptap/extension-italic/README.md +18 -0
  170. package/node_modules/@tiptap/extension-italic/dist/index.cjs +113 -0
  171. package/node_modules/@tiptap/extension-italic/dist/index.d.cts +55 -0
  172. package/node_modules/@tiptap/extension-italic/dist/index.d.ts +55 -0
  173. package/node_modules/@tiptap/extension-italic/dist/index.js +104 -0
  174. package/node_modules/@tiptap/extension-italic/package.json +50 -0
  175. package/node_modules/@tiptap/extension-link/LICENSE.md +21 -0
  176. package/node_modules/@tiptap/extension-link/README.md +18 -0
  177. package/node_modules/@tiptap/extension-link/dist/index.cjs +560 -0
  178. package/node_modules/@tiptap/extension-link/dist/index.d.cts +159 -0
  179. package/node_modules/@tiptap/extension-link/dist/index.d.ts +159 -0
  180. package/node_modules/@tiptap/extension-link/dist/index.js +553 -0
  181. package/node_modules/@tiptap/extension-link/package.json +56 -0
  182. package/node_modules/@tiptap/extension-list/LICENSE.md +21 -0
  183. package/node_modules/@tiptap/extension-list/README.md +18 -0
  184. package/node_modules/@tiptap/extension-list/dist/bullet-list/index.cjs +84 -0
  185. package/node_modules/@tiptap/extension-list/dist/bullet-list/index.d.cts +52 -0
  186. package/node_modules/@tiptap/extension-list/dist/bullet-list/index.d.ts +52 -0
  187. package/node_modules/@tiptap/extension-list/dist/bullet-list/index.js +82 -0
  188. package/node_modules/@tiptap/extension-list/dist/index.cjs +1570 -0
  189. package/node_modules/@tiptap/extension-list/dist/index.d.cts +391 -0
  190. package/node_modules/@tiptap/extension-list/dist/index.d.ts +390 -0
  191. package/node_modules/@tiptap/extension-list/dist/index.js +1533 -0
  192. package/node_modules/@tiptap/extension-list/dist/item/index.cjs +308 -0
  193. package/node_modules/@tiptap/extension-list/dist/item/index.d.cts +30 -0
  194. package/node_modules/@tiptap/extension-list/dist/item/index.d.ts +30 -0
  195. package/node_modules/@tiptap/extension-list/dist/item/index.js +307 -0
  196. package/node_modules/@tiptap/extension-list/dist/keymap/index.cjs +263 -0
  197. package/node_modules/@tiptap/extension-list/dist/keymap/index.d.cts +66 -0
  198. package/node_modules/@tiptap/extension-list/dist/keymap/index.d.ts +65 -0
  199. package/node_modules/@tiptap/extension-list/dist/keymap/index.js +245 -0
  200. package/node_modules/@tiptap/extension-list/dist/keymap/rolldown-runtime-D7D4PA-g.js +13 -0
  201. package/node_modules/@tiptap/extension-list/dist/kit/index.cjs +1487 -0
  202. package/node_modules/@tiptap/extension-list/dist/kit/index.d.cts +235 -0
  203. package/node_modules/@tiptap/extension-list/dist/kit/index.d.ts +235 -0
  204. package/node_modules/@tiptap/extension-list/dist/kit/index.js +1486 -0
  205. package/node_modules/@tiptap/extension-list/dist/ordered-list/index.cjs +671 -0
  206. package/node_modules/@tiptap/extension-list/dist/ordered-list/index.d.cts +120 -0
  207. package/node_modules/@tiptap/extension-list/dist/ordered-list/index.d.ts +120 -0
  208. package/node_modules/@tiptap/extension-list/dist/ordered-list/index.js +659 -0
  209. package/node_modules/@tiptap/extension-list/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  210. package/node_modules/@tiptap/extension-list/dist/task-item/index.cjs +327 -0
  211. package/node_modules/@tiptap/extension-list/dist/task-item/index.d.cts +69 -0
  212. package/node_modules/@tiptap/extension-list/dist/task-item/index.d.ts +69 -0
  213. package/node_modules/@tiptap/extension-list/dist/task-item/index.js +325 -0
  214. package/node_modules/@tiptap/extension-list/dist/task-list/index.cjs +121 -0
  215. package/node_modules/@tiptap/extension-list/dist/task-list/index.d.cts +35 -0
  216. package/node_modules/@tiptap/extension-list/dist/task-list/index.d.ts +35 -0
  217. package/node_modules/@tiptap/extension-list/dist/task-list/index.js +120 -0
  218. package/node_modules/@tiptap/extension-list/package.json +108 -0
  219. package/node_modules/@tiptap/extension-list-item/LICENSE.md +21 -0
  220. package/node_modules/@tiptap/extension-list-item/README.md +18 -0
  221. package/node_modules/@tiptap/extension-list-item/dist/index.cjs +17 -0
  222. package/node_modules/@tiptap/extension-list-item/dist/index.d.cts +2 -0
  223. package/node_modules/@tiptap/extension-list-item/dist/index.d.ts +2 -0
  224. package/node_modules/@tiptap/extension-list-item/dist/index.js +7 -0
  225. package/node_modules/@tiptap/extension-list-item/package.json +50 -0
  226. package/node_modules/@tiptap/extension-list-keymap/LICENSE.md +21 -0
  227. package/node_modules/@tiptap/extension-list-keymap/README.md +18 -0
  228. package/node_modules/@tiptap/extension-list-keymap/dist/index.cjs +23 -0
  229. package/node_modules/@tiptap/extension-list-keymap/dist/index.d.cts +2 -0
  230. package/node_modules/@tiptap/extension-list-keymap/dist/index.d.ts +2 -0
  231. package/node_modules/@tiptap/extension-list-keymap/dist/index.js +7 -0
  232. package/node_modules/@tiptap/extension-list-keymap/package.json +50 -0
  233. package/node_modules/@tiptap/extension-ordered-list/LICENSE.md +21 -0
  234. package/node_modules/@tiptap/extension-ordered-list/README.md +18 -0
  235. package/node_modules/@tiptap/extension-ordered-list/dist/index.cjs +17 -0
  236. package/node_modules/@tiptap/extension-ordered-list/dist/index.d.cts +2 -0
  237. package/node_modules/@tiptap/extension-ordered-list/dist/index.d.ts +2 -0
  238. package/node_modules/@tiptap/extension-ordered-list/dist/index.js +7 -0
  239. package/node_modules/@tiptap/extension-ordered-list/package.json +50 -0
  240. package/node_modules/@tiptap/extension-paragraph/LICENSE.md +21 -0
  241. package/node_modules/@tiptap/extension-paragraph/README.md +18 -0
  242. package/node_modules/@tiptap/extension-paragraph/dist/index.cjs +73 -0
  243. package/node_modules/@tiptap/extension-paragraph/dist/index.d.cts +29 -0
  244. package/node_modules/@tiptap/extension-paragraph/dist/index.d.ts +29 -0
  245. package/node_modules/@tiptap/extension-paragraph/dist/index.js +68 -0
  246. package/node_modules/@tiptap/extension-paragraph/package.json +50 -0
  247. package/node_modules/@tiptap/extension-strike/LICENSE.md +21 -0
  248. package/node_modules/@tiptap/extension-strike/README.md +18 -0
  249. package/node_modules/@tiptap/extension-strike/dist/index.cjs +88 -0
  250. package/node_modules/@tiptap/extension-strike/dist/index.d.cts +47 -0
  251. package/node_modules/@tiptap/extension-strike/dist/index.d.ts +47 -0
  252. package/node_modules/@tiptap/extension-strike/dist/index.js +81 -0
  253. package/node_modules/@tiptap/extension-strike/package.json +50 -0
  254. package/node_modules/@tiptap/extension-subscript/LICENSE.md +21 -0
  255. package/node_modules/@tiptap/extension-subscript/README.md +18 -0
  256. package/node_modules/@tiptap/extension-subscript/dist/index.cjs +56 -0
  257. package/node_modules/@tiptap/extension-subscript/dist/index.d.cts +39 -0
  258. package/node_modules/@tiptap/extension-subscript/dist/index.d.ts +39 -0
  259. package/node_modules/@tiptap/extension-subscript/dist/index.js +51 -0
  260. package/node_modules/@tiptap/extension-subscript/package.json +52 -0
  261. package/node_modules/@tiptap/extension-superscript/LICENSE.md +21 -0
  262. package/node_modules/@tiptap/extension-superscript/README.md +18 -0
  263. package/node_modules/@tiptap/extension-superscript/dist/index.cjs +56 -0
  264. package/node_modules/@tiptap/extension-superscript/dist/index.d.cts +39 -0
  265. package/node_modules/@tiptap/extension-superscript/dist/index.d.ts +39 -0
  266. package/node_modules/@tiptap/extension-superscript/dist/index.js +51 -0
  267. package/node_modules/@tiptap/extension-superscript/package.json +52 -0
  268. package/node_modules/@tiptap/extension-table/LICENSE.md +21 -0
  269. package/node_modules/@tiptap/extension-table/README.md +18 -0
  270. package/node_modules/@tiptap/extension-table/dist/cell/index.cjs +142 -0
  271. package/node_modules/@tiptap/extension-table/dist/cell/index.d.cts +35 -0
  272. package/node_modules/@tiptap/extension-table/dist/cell/index.d.ts +35 -0
  273. package/node_modules/@tiptap/extension-table/dist/cell/index.js +141 -0
  274. package/node_modules/@tiptap/extension-table/dist/header/index.cjs +142 -0
  275. package/node_modules/@tiptap/extension-table/dist/header/index.d.cts +35 -0
  276. package/node_modules/@tiptap/extension-table/dist/header/index.d.ts +35 -0
  277. package/node_modules/@tiptap/extension-table/dist/header/index.js +141 -0
  278. package/node_modules/@tiptap/extension-table/dist/index.cjs +832 -0
  279. package/node_modules/@tiptap/extension-table/dist/index.d.cts +344 -0
  280. package/node_modules/@tiptap/extension-table/dist/index.d.ts +344 -0
  281. package/node_modules/@tiptap/extension-table/dist/index.js +819 -0
  282. package/node_modules/@tiptap/extension-table/dist/kit/index.cjs +817 -0
  283. package/node_modules/@tiptap/extension-table/dist/kit/index.d.cts +265 -0
  284. package/node_modules/@tiptap/extension-table/dist/kit/index.d.ts +265 -0
  285. package/node_modules/@tiptap/extension-table/dist/kit/index.js +816 -0
  286. package/node_modules/@tiptap/extension-table/dist/row/index.cjs +29 -0
  287. package/node_modules/@tiptap/extension-table/dist/row/index.d.cts +35 -0
  288. package/node_modules/@tiptap/extension-table/dist/row/index.d.ts +35 -0
  289. package/node_modules/@tiptap/extension-table/dist/row/index.js +28 -0
  290. package/node_modules/@tiptap/extension-table/dist/table/index.cjs +616 -0
  291. package/node_modules/@tiptap/extension-table/dist/table/index.d.cts +254 -0
  292. package/node_modules/@tiptap/extension-table/dist/table/index.d.ts +254 -0
  293. package/node_modules/@tiptap/extension-table/dist/table/index.js +609 -0
  294. package/node_modules/@tiptap/extension-table/package.json +92 -0
  295. package/node_modules/@tiptap/extension-text/LICENSE.md +21 -0
  296. package/node_modules/@tiptap/extension-text/README.md +18 -0
  297. package/node_modules/@tiptap/extension-text/dist/index.cjs +28 -0
  298. package/node_modules/@tiptap/extension-text/dist/index.d.cts +10 -0
  299. package/node_modules/@tiptap/extension-text/dist/index.d.ts +10 -0
  300. package/node_modules/@tiptap/extension-text/dist/index.js +24 -0
  301. package/node_modules/@tiptap/extension-text/package.json +50 -0
  302. package/node_modules/@tiptap/extension-text-align/LICENSE.md +21 -0
  303. package/node_modules/@tiptap/extension-text-align/README.md +18 -0
  304. package/node_modules/@tiptap/extension-text-align/dist/index.cjs +73 -0
  305. package/node_modules/@tiptap/extension-text-align/dist/index.d.cts +53 -0
  306. package/node_modules/@tiptap/extension-text-align/dist/index.d.ts +53 -0
  307. package/node_modules/@tiptap/extension-text-align/dist/index.js +68 -0
  308. package/node_modules/@tiptap/extension-text-align/package.json +50 -0
  309. package/node_modules/@tiptap/extension-text-style/LICENSE.md +21 -0
  310. package/node_modules/@tiptap/extension-text-style/README.md +18 -0
  311. package/node_modules/@tiptap/extension-text-style/dist/background-color/index.cjs +121 -0
  312. package/node_modules/@tiptap/extension-text-style/dist/background-color/index.d.cts +161 -0
  313. package/node_modules/@tiptap/extension-text-style/dist/background-color/index.d.ts +161 -0
  314. package/node_modules/@tiptap/extension-text-style/dist/background-color/index.js +116 -0
  315. package/node_modules/@tiptap/extension-text-style/dist/color/index.cjs +121 -0
  316. package/node_modules/@tiptap/extension-text-style/dist/color/index.d.cts +161 -0
  317. package/node_modules/@tiptap/extension-text-style/dist/color/index.d.ts +161 -0
  318. package/node_modules/@tiptap/extension-text-style/dist/color/index.js +116 -0
  319. package/node_modules/@tiptap/extension-text-style/dist/font-family/index.cjs +120 -0
  320. package/node_modules/@tiptap/extension-text-style/dist/font-family/index.d.cts +161 -0
  321. package/node_modules/@tiptap/extension-text-style/dist/font-family/index.d.ts +161 -0
  322. package/node_modules/@tiptap/extension-text-style/dist/font-family/index.js +115 -0
  323. package/node_modules/@tiptap/extension-text-style/dist/font-size/index.cjs +120 -0
  324. package/node_modules/@tiptap/extension-text-style/dist/font-size/index.d.cts +161 -0
  325. package/node_modules/@tiptap/extension-text-style/dist/font-size/index.d.ts +161 -0
  326. package/node_modules/@tiptap/extension-text-style/dist/font-size/index.js +115 -0
  327. package/node_modules/@tiptap/extension-text-style/dist/index.cjs +298 -0
  328. package/node_modules/@tiptap/extension-text-style/dist/index.d.cts +275 -0
  329. package/node_modules/@tiptap/extension-text-style/dist/index.d.ts +275 -0
  330. package/node_modules/@tiptap/extension-text-style/dist/index.js +291 -0
  331. package/node_modules/@tiptap/extension-text-style/dist/line-height/index.cjs +120 -0
  332. package/node_modules/@tiptap/extension-text-style/dist/line-height/index.d.cts +161 -0
  333. package/node_modules/@tiptap/extension-text-style/dist/line-height/index.d.ts +161 -0
  334. package/node_modules/@tiptap/extension-text-style/dist/line-height/index.js +115 -0
  335. package/node_modules/@tiptap/extension-text-style/dist/text-style/index.cjs +80 -0
  336. package/node_modules/@tiptap/extension-text-style/dist/text-style/index.d.cts +170 -0
  337. package/node_modules/@tiptap/extension-text-style/dist/text-style/index.d.ts +170 -0
  338. package/node_modules/@tiptap/extension-text-style/dist/text-style/index.js +79 -0
  339. package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.cjs +292 -0
  340. package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.d.cts +244 -0
  341. package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.d.ts +244 -0
  342. package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.js +291 -0
  343. package/node_modules/@tiptap/extension-text-style/package.json +106 -0
  344. package/node_modules/@tiptap/extension-underline/LICENSE.md +21 -0
  345. package/node_modules/@tiptap/extension-underline/README.md +18 -0
  346. package/node_modules/@tiptap/extension-underline/dist/index.cjs +81 -0
  347. package/node_modules/@tiptap/extension-underline/dist/index.d.cts +39 -0
  348. package/node_modules/@tiptap/extension-underline/dist/index.d.ts +39 -0
  349. package/node_modules/@tiptap/extension-underline/dist/index.js +76 -0
  350. package/node_modules/@tiptap/extension-underline/package.json +50 -0
  351. package/node_modules/@tiptap/extension-youtube/LICENSE.md +21 -0
  352. package/node_modules/@tiptap/extension-youtube/README.md +18 -0
  353. package/node_modules/@tiptap/extension-youtube/dist/index.cjs +254 -0
  354. package/node_modules/@tiptap/extension-youtube/dist/index.d.cts +204 -0
  355. package/node_modules/@tiptap/extension-youtube/dist/index.d.ts +204 -0
  356. package/node_modules/@tiptap/extension-youtube/dist/index.js +246 -0
  357. package/node_modules/@tiptap/extension-youtube/package.json +50 -0
  358. package/node_modules/@tiptap/extensions/LICENSE.md +21 -0
  359. package/node_modules/@tiptap/extensions/README.md +18 -0
  360. package/node_modules/@tiptap/extensions/dist/character-count/index.cjs +87 -0
  361. package/node_modules/@tiptap/extensions/dist/character-count/index.d.cts +70 -0
  362. package/node_modules/@tiptap/extensions/dist/character-count/index.d.ts +70 -0
  363. package/node_modules/@tiptap/extensions/dist/character-count/index.js +86 -0
  364. package/node_modules/@tiptap/extensions/dist/drop-cursor/index.cjs +27 -0
  365. package/node_modules/@tiptap/extensions/dist/drop-cursor/index.d.cts +32 -0
  366. package/node_modules/@tiptap/extensions/dist/drop-cursor/index.d.ts +32 -0
  367. package/node_modules/@tiptap/extensions/dist/drop-cursor/index.js +26 -0
  368. package/node_modules/@tiptap/extensions/dist/focus/index.cjs +48 -0
  369. package/node_modules/@tiptap/extensions/dist/focus/index.d.cts +29 -0
  370. package/node_modules/@tiptap/extensions/dist/focus/index.d.ts +29 -0
  371. package/node_modules/@tiptap/extensions/dist/focus/index.js +47 -0
  372. package/node_modules/@tiptap/extensions/dist/gap-cursor/index.cjs +29 -0
  373. package/node_modules/@tiptap/extensions/dist/gap-cursor/index.d.cts +26 -0
  374. package/node_modules/@tiptap/extensions/dist/gap-cursor/index.d.ts +26 -0
  375. package/node_modules/@tiptap/extensions/dist/gap-cursor/index.js +28 -0
  376. package/node_modules/@tiptap/extensions/dist/index.cjs +711 -0
  377. package/node_modules/@tiptap/extensions/dist/index.d.cts +321 -0
  378. package/node_modules/@tiptap/extensions/dist/index.d.ts +321 -0
  379. package/node_modules/@tiptap/extensions/dist/index.js +699 -0
  380. package/node_modules/@tiptap/extensions/dist/placeholder/index.cjs +372 -0
  381. package/node_modules/@tiptap/extensions/dist/placeholder/index.d.cts +91 -0
  382. package/node_modules/@tiptap/extensions/dist/placeholder/index.d.ts +91 -0
  383. package/node_modules/@tiptap/extensions/dist/placeholder/index.js +368 -0
  384. package/node_modules/@tiptap/extensions/dist/selection/index.cjs +72 -0
  385. package/node_modules/@tiptap/extensions/dist/selection/index.d.cts +20 -0
  386. package/node_modules/@tiptap/extensions/dist/selection/index.d.ts +20 -0
  387. package/node_modules/@tiptap/extensions/dist/selection/index.js +71 -0
  388. package/node_modules/@tiptap/extensions/dist/trailing-node/index.cjs +62 -0
  389. package/node_modules/@tiptap/extensions/dist/trailing-node/index.d.cts +30 -0
  390. package/node_modules/@tiptap/extensions/dist/trailing-node/index.d.ts +30 -0
  391. package/node_modules/@tiptap/extensions/dist/trailing-node/index.js +60 -0
  392. package/node_modules/@tiptap/extensions/dist/undo-redo/index.cjs +48 -0
  393. package/node_modules/@tiptap/extensions/dist/undo-redo/index.d.cts +45 -0
  394. package/node_modules/@tiptap/extensions/dist/undo-redo/index.d.ts +45 -0
  395. package/node_modules/@tiptap/extensions/dist/undo-redo/index.js +47 -0
  396. package/node_modules/@tiptap/extensions/package.json +116 -0
  397. package/node_modules/@tiptap/pm/LICENSE +21 -0
  398. package/node_modules/@tiptap/pm/README.md +22 -0
  399. package/node_modules/@tiptap/pm/THIRD_PARTY_LICENSES.md +47 -0
  400. package/node_modules/@tiptap/pm/changeset/index.ts +1 -0
  401. package/node_modules/@tiptap/pm/commands/index.ts +1 -0
  402. package/node_modules/@tiptap/pm/dist/changeset/index.cjs +9 -0
  403. package/node_modules/@tiptap/pm/dist/changeset/index.d.cts +1 -0
  404. package/node_modules/@tiptap/pm/dist/changeset/index.d.ts +1 -0
  405. package/node_modules/@tiptap/pm/dist/changeset/index.js +2 -0
  406. package/node_modules/@tiptap/pm/dist/commands/index.cjs +9 -0
  407. package/node_modules/@tiptap/pm/dist/commands/index.d.cts +1 -0
  408. package/node_modules/@tiptap/pm/dist/commands/index.d.ts +1 -0
  409. package/node_modules/@tiptap/pm/dist/commands/index.js +2 -0
  410. package/node_modules/@tiptap/pm/dist/dropcursor/index.cjs +9 -0
  411. package/node_modules/@tiptap/pm/dist/dropcursor/index.d.cts +1 -0
  412. package/node_modules/@tiptap/pm/dist/dropcursor/index.d.ts +1 -0
  413. package/node_modules/@tiptap/pm/dist/dropcursor/index.js +2 -0
  414. package/node_modules/@tiptap/pm/dist/gapcursor/index.cjs +9 -0
  415. package/node_modules/@tiptap/pm/dist/gapcursor/index.d.cts +1 -0
  416. package/node_modules/@tiptap/pm/dist/gapcursor/index.d.ts +1 -0
  417. package/node_modules/@tiptap/pm/dist/gapcursor/index.js +2 -0
  418. package/node_modules/@tiptap/pm/dist/history/index.cjs +9 -0
  419. package/node_modules/@tiptap/pm/dist/history/index.d.cts +1 -0
  420. package/node_modules/@tiptap/pm/dist/history/index.d.ts +1 -0
  421. package/node_modules/@tiptap/pm/dist/history/index.js +2 -0
  422. package/node_modules/@tiptap/pm/dist/inputrules/index.cjs +9 -0
  423. package/node_modules/@tiptap/pm/dist/inputrules/index.d.cts +1 -0
  424. package/node_modules/@tiptap/pm/dist/inputrules/index.d.ts +1 -0
  425. package/node_modules/@tiptap/pm/dist/inputrules/index.js +2 -0
  426. package/node_modules/@tiptap/pm/dist/keymap/index.cjs +9 -0
  427. package/node_modules/@tiptap/pm/dist/keymap/index.d.cts +1 -0
  428. package/node_modules/@tiptap/pm/dist/keymap/index.d.ts +1 -0
  429. package/node_modules/@tiptap/pm/dist/keymap/index.js +2 -0
  430. package/node_modules/@tiptap/pm/dist/model/index.cjs +9 -0
  431. package/node_modules/@tiptap/pm/dist/model/index.d.cts +1 -0
  432. package/node_modules/@tiptap/pm/dist/model/index.d.ts +1 -0
  433. package/node_modules/@tiptap/pm/dist/model/index.js +2 -0
  434. package/node_modules/@tiptap/pm/dist/schema-list/index.cjs +9 -0
  435. package/node_modules/@tiptap/pm/dist/schema-list/index.d.cts +1 -0
  436. package/node_modules/@tiptap/pm/dist/schema-list/index.d.ts +1 -0
  437. package/node_modules/@tiptap/pm/dist/schema-list/index.js +2 -0
  438. package/node_modules/@tiptap/pm/dist/state/index.cjs +9 -0
  439. package/node_modules/@tiptap/pm/dist/state/index.d.cts +1 -0
  440. package/node_modules/@tiptap/pm/dist/state/index.d.ts +1 -0
  441. package/node_modules/@tiptap/pm/dist/state/index.js +2 -0
  442. package/node_modules/@tiptap/pm/dist/tables/index.cjs +9 -0
  443. package/node_modules/@tiptap/pm/dist/tables/index.d.cts +1 -0
  444. package/node_modules/@tiptap/pm/dist/tables/index.d.ts +1 -0
  445. package/node_modules/@tiptap/pm/dist/tables/index.js +2 -0
  446. package/node_modules/@tiptap/pm/dist/transform/index.cjs +9 -0
  447. package/node_modules/@tiptap/pm/dist/transform/index.d.cts +1 -0
  448. package/node_modules/@tiptap/pm/dist/transform/index.d.ts +1 -0
  449. package/node_modules/@tiptap/pm/dist/transform/index.js +2 -0
  450. package/node_modules/@tiptap/pm/dist/view/index.cjs +9 -0
  451. package/node_modules/@tiptap/pm/dist/view/index.d.cts +1 -0
  452. package/node_modules/@tiptap/pm/dist/view/index.d.ts +1 -0
  453. package/node_modules/@tiptap/pm/dist/view/index.js +2 -0
  454. package/node_modules/@tiptap/pm/dropcursor/index.ts +1 -0
  455. package/node_modules/@tiptap/pm/gapcursor/index.ts +1 -0
  456. package/node_modules/@tiptap/pm/history/index.ts +1 -0
  457. package/node_modules/@tiptap/pm/inputrules/index.ts +1 -0
  458. package/node_modules/@tiptap/pm/keymap/index.ts +1 -0
  459. package/node_modules/@tiptap/pm/model/index.ts +1 -0
  460. package/node_modules/@tiptap/pm/package.json +166 -0
  461. package/node_modules/@tiptap/pm/schema-list/index.ts +1 -0
  462. package/node_modules/@tiptap/pm/state/index.ts +1 -0
  463. package/node_modules/@tiptap/pm/tables/index.ts +1 -0
  464. package/node_modules/@tiptap/pm/transform/index.ts +1 -0
  465. package/node_modules/@tiptap/pm/view/index.ts +1 -0
  466. package/node_modules/@tiptap/react/LICENSE.md +21 -0
  467. package/node_modules/@tiptap/react/README.md +18 -0
  468. package/node_modules/@tiptap/react/dist/index.cjs +1396 -0
  469. package/node_modules/@tiptap/react/dist/index.d.cts +632 -0
  470. package/node_modules/@tiptap/react/dist/index.d.ts +632 -0
  471. package/node_modules/@tiptap/react/dist/index.js +1337 -0
  472. package/node_modules/@tiptap/react/dist/menus/index.cjs +469 -0
  473. package/node_modules/@tiptap/react/dist/menus/index.d.cts +21 -0
  474. package/node_modules/@tiptap/react/dist/menus/index.d.ts +21 -0
  475. package/node_modules/@tiptap/react/dist/menus/index.js +444 -0
  476. package/node_modules/@tiptap/react/package.json +80 -0
  477. package/node_modules/@tiptap/starter-kit/LICENSE.md +21 -0
  478. package/node_modules/@tiptap/starter-kit/README.md +18 -0
  479. package/node_modules/@tiptap/starter-kit/dist/index.cjs +76 -0
  480. package/node_modules/@tiptap/starter-kit/dist/index.d.cts +137 -0
  481. package/node_modules/@tiptap/starter-kit/dist/index.d.ts +137 -0
  482. package/node_modules/@tiptap/starter-kit/dist/index.js +71 -0
  483. package/node_modules/@tiptap/starter-kit/package.json +70 -0
  484. package/node_modules/@tiptap/suggestion/LICENSE.md +21 -0
  485. package/node_modules/@tiptap/suggestion/README.md +18 -0
  486. package/node_modules/@tiptap/suggestion/dist/index.cjs +665 -0
  487. package/node_modules/@tiptap/suggestion/dist/index.d.cts +419 -0
  488. package/node_modules/@tiptap/suggestion/dist/index.d.ts +419 -0
  489. package/node_modules/@tiptap/suggestion/dist/index.js +657 -0
  490. package/node_modules/@tiptap/suggestion/package.json +54 -0
  491. package/node_modules/@types/use-sync-external-store/LICENSE +21 -0
  492. package/node_modules/@types/use-sync-external-store/README.md +15 -0
  493. package/node_modules/@types/use-sync-external-store/index.d.ts +5 -0
  494. package/node_modules/@types/use-sync-external-store/package.json +30 -0
  495. package/node_modules/@types/use-sync-external-store/shim/index.d.ts +1 -0
  496. package/node_modules/@types/use-sync-external-store/shim/with-selector.d.ts +1 -0
  497. package/node_modules/@types/use-sync-external-store/with-selector.d.ts +7 -0
  498. package/node_modules/fast-equals/LICENSE +21 -0
  499. package/node_modules/fast-equals/README.md +479 -0
  500. package/node_modules/fast-equals/dist/cjs/index.cjs +796 -0
  501. package/node_modules/fast-equals/dist/cjs/index.d.cts +211 -0
  502. package/node_modules/fast-equals/dist/es/index.d.mts +211 -0
  503. package/node_modules/fast-equals/dist/es/index.mjs +785 -0
  504. package/node_modules/fast-equals/dist/umd/index.d.ts +211 -0
  505. package/node_modules/fast-equals/dist/umd/index.js +802 -0
  506. package/node_modules/fast-equals/index.d.ts +211 -0
  507. package/node_modules/fast-equals/package.json +120 -0
  508. package/node_modules/linkifyjs/LICENSE +19 -0
  509. package/node_modules/linkifyjs/README.md +47 -0
  510. package/node_modules/linkifyjs/dist/linkify.cjs +1854 -0
  511. package/node_modules/linkifyjs/dist/linkify.d.cts +637 -0
  512. package/node_modules/linkifyjs/dist/linkify.d.mts +637 -0
  513. package/node_modules/linkifyjs/dist/linkify.js +1859 -0
  514. package/node_modules/linkifyjs/dist/linkify.min.js +1 -0
  515. package/node_modules/linkifyjs/dist/linkify.mjs +1836 -0
  516. package/node_modules/linkifyjs/package.json +38 -0
  517. package/node_modules/orderedmap/LICENSE +19 -0
  518. package/node_modules/orderedmap/README.md +69 -0
  519. package/node_modules/orderedmap/dist/index.cjs +139 -0
  520. package/node_modules/orderedmap/dist/index.d.cts +33 -0
  521. package/node_modules/orderedmap/dist/index.d.ts +33 -0
  522. package/node_modules/orderedmap/dist/index.js +137 -0
  523. package/node_modules/orderedmap/package.json +39 -0
  524. package/node_modules/prosemirror-changeset/CHANGELOG.md +171 -0
  525. package/node_modules/prosemirror-changeset/LICENSE +19 -0
  526. package/node_modules/prosemirror-changeset/README.md +175 -0
  527. package/node_modules/prosemirror-changeset/dist/index.cjs +588 -0
  528. package/node_modules/prosemirror-changeset/dist/index.d.cts +187 -0
  529. package/node_modules/prosemirror-changeset/dist/index.d.ts +187 -0
  530. package/node_modules/prosemirror-changeset/dist/index.js +722 -0
  531. package/node_modules/prosemirror-changeset/package.json +40 -0
  532. package/node_modules/prosemirror-changeset/test/test-changed-range.ts +48 -0
  533. package/node_modules/prosemirror-changeset/test/test-changes.ts +211 -0
  534. package/node_modules/prosemirror-changeset/test/test-diff.ts +77 -0
  535. package/node_modules/prosemirror-changeset/test/test-merge.ts +56 -0
  536. package/node_modules/prosemirror-changeset/test/test-simplify.ts +74 -0
  537. package/node_modules/prosemirror-commands/.tern-project +8 -0
  538. package/node_modules/prosemirror-commands/CHANGELOG.md +328 -0
  539. package/node_modules/prosemirror-commands/CONTRIBUTING.md +104 -0
  540. package/node_modules/prosemirror-commands/LICENSE +19 -0
  541. package/node_modules/prosemirror-commands/README.md +28 -0
  542. package/node_modules/prosemirror-commands/dist/index.cjs +688 -0
  543. package/node_modules/prosemirror-commands/dist/index.d.cts +215 -0
  544. package/node_modules/prosemirror-commands/dist/index.d.ts +215 -0
  545. package/node_modules/prosemirror-commands/dist/index.js +852 -0
  546. package/node_modules/prosemirror-commands/package.json +39 -0
  547. package/node_modules/prosemirror-dropcursor/CHANGELOG.md +149 -0
  548. package/node_modules/prosemirror-dropcursor/CONTRIBUTING.md +104 -0
  549. package/node_modules/prosemirror-dropcursor/LICENSE +19 -0
  550. package/node_modules/prosemirror-dropcursor/README.md +50 -0
  551. package/node_modules/prosemirror-dropcursor/dist/index.cjs +200 -0
  552. package/node_modules/prosemirror-dropcursor/dist/index.d.cts +38 -0
  553. package/node_modules/prosemirror-dropcursor/dist/index.d.ts +38 -0
  554. package/node_modules/prosemirror-dropcursor/dist/index.js +163 -0
  555. package/node_modules/prosemirror-dropcursor/package.json +38 -0
  556. package/node_modules/prosemirror-gapcursor/CHANGELOG.md +122 -0
  557. package/node_modules/prosemirror-gapcursor/CONTRIBUTING.md +104 -0
  558. package/node_modules/prosemirror-gapcursor/LICENSE +19 -0
  559. package/node_modules/prosemirror-gapcursor/README.md +31 -0
  560. package/node_modules/prosemirror-gapcursor/dist/index.cjs +239 -0
  561. package/node_modules/prosemirror-gapcursor/dist/index.d.cts +31 -0
  562. package/node_modules/prosemirror-gapcursor/dist/index.d.ts +31 -0
  563. package/node_modules/prosemirror-gapcursor/dist/index.js +239 -0
  564. package/node_modules/prosemirror-gapcursor/package.json +43 -0
  565. package/node_modules/prosemirror-gapcursor/style/gapcursor.css +25 -0
  566. package/node_modules/prosemirror-history/.tern-project +8 -0
  567. package/node_modules/prosemirror-history/CHANGELOG.md +176 -0
  568. package/node_modules/prosemirror-history/CONTRIBUTING.md +104 -0
  569. package/node_modules/prosemirror-history/LICENSE +19 -0
  570. package/node_modules/prosemirror-history/README.md +27 -0
  571. package/node_modules/prosemirror-history/dist/index.cjs +383 -0
  572. package/node_modules/prosemirror-history/dist/index.d.cts +64 -0
  573. package/node_modules/prosemirror-history/dist/index.d.ts +64 -0
  574. package/node_modules/prosemirror-history/dist/index.js +454 -0
  575. package/node_modules/prosemirror-history/package.json +40 -0
  576. package/node_modules/prosemirror-inputrules/.tern-project +8 -0
  577. package/node_modules/prosemirror-inputrules/CHANGELOG.md +127 -0
  578. package/node_modules/prosemirror-inputrules/CONTRIBUTING.md +104 -0
  579. package/node_modules/prosemirror-inputrules/LICENSE +19 -0
  580. package/node_modules/prosemirror-inputrules/README.md +29 -0
  581. package/node_modules/prosemirror-inputrules/dist/index.cjs +194 -0
  582. package/node_modules/prosemirror-inputrules/dist/index.d.cts +131 -0
  583. package/node_modules/prosemirror-inputrules/dist/index.d.ts +131 -0
  584. package/node_modules/prosemirror-inputrules/dist/index.js +239 -0
  585. package/node_modules/prosemirror-inputrules/package.json +36 -0
  586. package/node_modules/prosemirror-keymap/.tern-project +8 -0
  587. package/node_modules/prosemirror-keymap/CHANGELOG.md +104 -0
  588. package/node_modules/prosemirror-keymap/CONTRIBUTING.md +104 -0
  589. package/node_modules/prosemirror-keymap/LICENSE +19 -0
  590. package/node_modules/prosemirror-keymap/README.md +27 -0
  591. package/node_modules/prosemirror-keymap/dist/index.cjs +65 -0
  592. package/node_modules/prosemirror-keymap/dist/index.d.cts +47 -0
  593. package/node_modules/prosemirror-keymap/dist/index.d.ts +47 -0
  594. package/node_modules/prosemirror-keymap/dist/index.js +128 -0
  595. package/node_modules/prosemirror-keymap/package.json +38 -0
  596. package/node_modules/prosemirror-model/.tern-project +8 -0
  597. package/node_modules/prosemirror-model/CHANGELOG.md +782 -0
  598. package/node_modules/prosemirror-model/CONTRIBUTING.md +104 -0
  599. package/node_modules/prosemirror-model/LICENSE +19 -0
  600. package/node_modules/prosemirror-model/README.md +29 -0
  601. package/node_modules/prosemirror-model/dist/index.cjs +2911 -0
  602. package/node_modules/prosemirror-model/dist/index.d.cts +1683 -0
  603. package/node_modules/prosemirror-model/dist/index.d.ts +1683 -0
  604. package/node_modules/prosemirror-model/dist/index.js +3463 -0
  605. package/node_modules/prosemirror-model/package.json +38 -0
  606. package/node_modules/prosemirror-schema-list/.tern-project +8 -0
  607. package/node_modules/prosemirror-schema-list/CHANGELOG.md +140 -0
  608. package/node_modules/prosemirror-schema-list/CONTRIBUTING.md +100 -0
  609. package/node_modules/prosemirror-schema-list/LICENSE +19 -0
  610. package/node_modules/prosemirror-schema-list/README.md +28 -0
  611. package/node_modules/prosemirror-schema-list/dist/index.cjs +253 -0
  612. package/node_modules/prosemirror-schema-list/dist/index.d.cts +71 -0
  613. package/node_modules/prosemirror-schema-list/dist/index.d.ts +71 -0
  614. package/node_modules/prosemirror-schema-list/dist/index.js +289 -0
  615. package/node_modules/prosemirror-schema-list/package.json +40 -0
  616. package/node_modules/prosemirror-state/.tern-project +8 -0
  617. package/node_modules/prosemirror-state/CHANGELOG.md +296 -0
  618. package/node_modules/prosemirror-state/CONTRIBUTING.md +104 -0
  619. package/node_modules/prosemirror-state/LICENSE +19 -0
  620. package/node_modules/prosemirror-state/README.md +28 -0
  621. package/node_modules/prosemirror-state/dist/index.cjs +884 -0
  622. package/node_modules/prosemirror-state/dist/index.d.cts +709 -0
  623. package/node_modules/prosemirror-state/dist/index.d.ts +709 -0
  624. package/node_modules/prosemirror-state/dist/index.js +1002 -0
  625. package/node_modules/prosemirror-state/package.json +39 -0
  626. package/node_modules/prosemirror-tables/LICENSE +19 -0
  627. package/node_modules/prosemirror-tables/README.md +254 -0
  628. package/node_modules/prosemirror-tables/dist/index.cjs +2683 -0
  629. package/node_modules/prosemirror-tables/dist/index.d.cts +751 -0
  630. package/node_modules/prosemirror-tables/dist/index.d.ts +751 -0
  631. package/node_modules/prosemirror-tables/dist/index.js +2626 -0
  632. package/node_modules/prosemirror-tables/package.json +80 -0
  633. package/node_modules/prosemirror-tables/style/tables.css +48 -0
  634. package/node_modules/prosemirror-transform/.tern-project +8 -0
  635. package/node_modules/prosemirror-transform/CHANGELOG.md +530 -0
  636. package/node_modules/prosemirror-transform/CONTRIBUTING.md +104 -0
  637. package/node_modules/prosemirror-transform/LICENSE +19 -0
  638. package/node_modules/prosemirror-transform/README.md +29 -0
  639. package/node_modules/prosemirror-transform/dist/index.cjs +2014 -0
  640. package/node_modules/prosemirror-transform/dist/index.d.cts +857 -0
  641. package/node_modules/prosemirror-transform/dist/index.d.ts +857 -0
  642. package/node_modules/prosemirror-transform/dist/index.js +2272 -0
  643. package/node_modules/prosemirror-transform/package.json +37 -0
  644. package/node_modules/prosemirror-view/.tern-project +8 -0
  645. package/node_modules/prosemirror-view/CHANGELOG.md +2543 -0
  646. package/node_modules/prosemirror-view/CONTRIBUTING.md +104 -0
  647. package/node_modules/prosemirror-view/LICENSE +19 -0
  648. package/node_modules/prosemirror-view/README.md +28 -0
  649. package/node_modules/prosemirror-view/dist/index.cjs +5549 -0
  650. package/node_modules/prosemirror-view/dist/index.d.cts +913 -0
  651. package/node_modules/prosemirror-view/dist/index.d.ts +913 -0
  652. package/node_modules/prosemirror-view/dist/index.js +6053 -0
  653. package/node_modules/prosemirror-view/package.json +43 -0
  654. package/node_modules/prosemirror-view/style/prosemirror.css +54 -0
  655. package/node_modules/rope-sequence/LICENSE +19 -0
  656. package/node_modules/rope-sequence/README.md +63 -0
  657. package/node_modules/rope-sequence/dist/index.cjs +209 -0
  658. package/node_modules/rope-sequence/dist/index.d.cts +11 -0
  659. package/node_modules/rope-sequence/dist/index.d.ts +11 -0
  660. package/node_modules/rope-sequence/dist/index.js +207 -0
  661. package/node_modules/rope-sequence/index.js +190 -0
  662. package/node_modules/rope-sequence/package.json +34 -0
  663. package/node_modules/rope-sequence/test.js +78 -0
  664. package/node_modules/use-sync-external-store/LICENSE +21 -0
  665. package/node_modules/use-sync-external-store/README.md +5 -0
  666. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +97 -0
  667. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +85 -0
  668. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +95 -0
  669. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.native.development.js +88 -0
  670. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.native.production.js +59 -0
  671. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +66 -0
  672. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +96 -0
  673. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +84 -0
  674. package/node_modules/use-sync-external-store/cjs/use-sync-external-store.development.js +27 -0
  675. package/node_modules/use-sync-external-store/cjs/use-sync-external-store.production.js +13 -0
  676. package/node_modules/use-sync-external-store/index.js +7 -0
  677. package/node_modules/use-sync-external-store/package.json +43 -0
  678. package/node_modules/use-sync-external-store/shim/index.js +7 -0
  679. package/node_modules/use-sync-external-store/shim/index.native.js +7 -0
  680. package/node_modules/use-sync-external-store/shim/with-selector.js +7 -0
  681. package/node_modules/use-sync-external-store/with-selector.js +7 -0
  682. package/node_modules/w3c-keyname/.tern-port +1 -0
  683. package/node_modules/w3c-keyname/LICENSE +19 -0
  684. package/node_modules/w3c-keyname/README.md +18 -0
  685. package/node_modules/w3c-keyname/index.cjs +127 -0
  686. package/node_modules/w3c-keyname/index.d.cts +5 -0
  687. package/node_modules/w3c-keyname/index.d.ts +5 -0
  688. package/node_modules/w3c-keyname/index.js +119 -0
  689. package/node_modules/w3c-keyname/package.json +37 -0
  690. package/package.json +79 -4
  691. package/src/Editor.tsx +425 -0
  692. package/src/ask.tsx +154 -0
  693. package/src/basic.tsx +149 -0
  694. package/src/blockMeta.ts +42 -0
  695. package/src/blockops.ts +179 -0
  696. package/src/blocks.tsx +189 -0
  697. package/src/boundary.tsx +17 -0
  698. package/src/content.ts +22 -0
  699. package/src/dynamic.tsx +105 -0
  700. package/src/editor.css +345 -0
  701. package/src/extensions.ts +78 -0
  702. package/src/handle.tsx +188 -0
  703. package/src/handles.tsx +149 -0
  704. package/src/index.ts +29 -0
  705. package/src/insert.ts +9 -0
  706. package/src/inserter.tsx +163 -0
  707. package/src/inspector.tsx +237 -0
  708. package/src/labels.ts +135 -0
  709. package/src/layout.tsx +174 -0
  710. package/src/layoutUi.tsx +226 -0
  711. package/src/media.ts +31 -0
  712. package/src/nodes.tsx +107 -0
  713. package/src/outline.tsx +124 -0
  714. package/src/panels.ts +59 -0
  715. package/src/paste.ts +100 -0
  716. package/src/patterns.ts +129 -0
  717. package/src/rank.ts +22 -0
  718. package/src/registry.ts +20 -0
  719. package/src/styleattr.ts +55 -0
  720. package/src/stylepanel.tsx +275 -0
  721. package/src/synced.tsx +128 -0
  722. package/src/toolbar.tsx +238 -0
  723. package/src/types.ts +55 -0
  724. package/src/unknown.tsx +74 -0
  725. package/src/util.ts +3 -0
@@ -0,0 +1,852 @@
1
+ import { liftTarget, replaceStep, ReplaceStep, canJoin, joinPoint, canSplit, ReplaceAroundStep, findWrapping } from 'prosemirror-transform';
2
+ import { Slice, Fragment } from 'prosemirror-model';
3
+ import { NodeSelection, Selection, TextSelection, AllSelection, SelectionRange } from 'prosemirror-state';
4
+
5
+ /**
6
+ Delete the selection, if there is one.
7
+ */
8
+ const deleteSelection = (state, dispatch) => {
9
+ if (state.selection.empty)
10
+ return false;
11
+ if (dispatch)
12
+ dispatch(state.tr.deleteSelection().scrollIntoView());
13
+ return true;
14
+ };
15
+ function atBlockStart(state, view) {
16
+ let { $cursor } = state.selection;
17
+ if (!$cursor || (view ? !view.endOfTextblock("backward", state)
18
+ : $cursor.parentOffset > 0))
19
+ return null;
20
+ return $cursor;
21
+ }
22
+ /**
23
+ If the selection is empty and at the start of a textblock, try to
24
+ reduce the distance between that block and the one before it—if
25
+ there's a block directly before it that can be joined, join them.
26
+ If not, try to move the selected block closer to the next one in
27
+ the document structure by lifting it out of its parent or moving it
28
+ into a parent of the previous block. Will use the view for accurate
29
+ (bidi-aware) start-of-textblock detection if given.
30
+ */
31
+ const joinBackward = (state, dispatch, view) => {
32
+ let $cursor = atBlockStart(state, view);
33
+ if (!$cursor)
34
+ return false;
35
+ let $cut = findCutBefore($cursor);
36
+ // If there is no node before this, try to lift
37
+ if (!$cut) {
38
+ let range = $cursor.blockRange(), target = range && liftTarget(range);
39
+ if (target == null)
40
+ return false;
41
+ if (dispatch)
42
+ dispatch(state.tr.lift(range, target).scrollIntoView());
43
+ return true;
44
+ }
45
+ let before = $cut.nodeBefore;
46
+ // Apply the joining algorithm
47
+ if (deleteBarrier(state, $cut, dispatch, -1))
48
+ return true;
49
+ // If the node below has no content and the node above is
50
+ // selectable, delete the node below and select the one above.
51
+ if ($cursor.parent.content.size == 0 &&
52
+ (textblockAt(before, "end") || NodeSelection.isSelectable(before))) {
53
+ for (let depth = $cursor.depth;; depth--) {
54
+ let delStep = replaceStep(state.doc, $cursor.before(depth), $cursor.after(depth), Slice.empty);
55
+ if (delStep && delStep.slice.size < delStep.to - delStep.from) {
56
+ if (dispatch) {
57
+ let tr = state.tr.step(delStep);
58
+ tr.setSelection(textblockAt(before, "end")
59
+ ? Selection.findFrom(tr.doc.resolve(tr.mapping.map($cut.pos, -1)), -1)
60
+ : NodeSelection.create(tr.doc, $cut.pos - before.nodeSize));
61
+ dispatch(tr.scrollIntoView());
62
+ }
63
+ return true;
64
+ }
65
+ if (depth == 1 || $cursor.node(depth - 1).childCount > 1)
66
+ break;
67
+ }
68
+ }
69
+ // If the node before is an atom, delete it
70
+ if (before.isAtom && $cut.depth == $cursor.depth - 1) {
71
+ if (dispatch)
72
+ dispatch(state.tr.delete($cut.pos - before.nodeSize, $cut.pos).scrollIntoView());
73
+ return true;
74
+ }
75
+ return false;
76
+ };
77
+ /**
78
+ A more limited form of [`joinBackward`](https://prosemirror.net/docs/ref/#commands.joinBackward)
79
+ that only tries to join the current textblock to the one before
80
+ it, if the cursor is at the start of a textblock.
81
+ */
82
+ const joinTextblockBackward = (state, dispatch, view) => {
83
+ let $cursor = atBlockStart(state, view);
84
+ if (!$cursor)
85
+ return false;
86
+ let $cut = findCutBefore($cursor);
87
+ return $cut ? joinTextblocksAround(state, $cut, dispatch) : false;
88
+ };
89
+ /**
90
+ A more limited form of [`joinForward`](https://prosemirror.net/docs/ref/#commands.joinForward)
91
+ that only tries to join the current textblock to the one after
92
+ it, if the cursor is at the end of a textblock.
93
+ */
94
+ const joinTextblockForward = (state, dispatch, view) => {
95
+ let $cursor = atBlockEnd(state, view);
96
+ if (!$cursor)
97
+ return false;
98
+ let $cut = findCutAfter($cursor);
99
+ return $cut ? joinTextblocksAround(state, $cut, dispatch) : false;
100
+ };
101
+ function joinTextblocksAround(state, $cut, dispatch) {
102
+ let before = $cut.nodeBefore, beforeText = before, beforePos = $cut.pos - 1;
103
+ for (; !beforeText.isTextblock; beforePos--) {
104
+ if (beforeText.type.spec.isolating)
105
+ return false;
106
+ let child = beforeText.lastChild;
107
+ if (!child)
108
+ return false;
109
+ beforeText = child;
110
+ }
111
+ let after = $cut.nodeAfter, afterText = after, afterPos = $cut.pos + 1;
112
+ for (; !afterText.isTextblock; afterPos++) {
113
+ if (afterText.type.spec.isolating)
114
+ return false;
115
+ let child = afterText.firstChild;
116
+ if (!child)
117
+ return false;
118
+ afterText = child;
119
+ }
120
+ let step = replaceStep(state.doc, beforePos, afterPos, Slice.empty);
121
+ if (!step || step.from != beforePos ||
122
+ step instanceof ReplaceStep && step.slice.size >= afterPos - beforePos)
123
+ return false;
124
+ if (dispatch) {
125
+ let tr = state.tr.step(step);
126
+ tr.setSelection(TextSelection.create(tr.doc, beforePos));
127
+ dispatch(tr.scrollIntoView());
128
+ }
129
+ return true;
130
+ }
131
+ function textblockAt(node, side, only = false) {
132
+ for (let scan = node; scan; scan = (side == "start" ? scan.firstChild : scan.lastChild)) {
133
+ if (scan.isTextblock)
134
+ return true;
135
+ if (only && scan.childCount != 1)
136
+ return false;
137
+ }
138
+ return false;
139
+ }
140
+ /**
141
+ When the selection is empty and at the start of a textblock, select
142
+ the node before that textblock, if possible. This is intended to be
143
+ bound to keys like backspace, after
144
+ [`joinBackward`](https://prosemirror.net/docs/ref/#commands.joinBackward) or other deleting
145
+ commands, as a fall-back behavior when the schema doesn't allow
146
+ deletion at the selected point.
147
+ */
148
+ const selectNodeBackward = (state, dispatch, view) => {
149
+ let { $head, empty } = state.selection, $cut = $head;
150
+ if (!empty)
151
+ return false;
152
+ if ($head.parent.isTextblock) {
153
+ if (view ? !view.endOfTextblock("backward", state) : $head.parentOffset > 0)
154
+ return false;
155
+ $cut = findCutBefore($head);
156
+ }
157
+ let node = $cut && $cut.nodeBefore;
158
+ if (!node || !NodeSelection.isSelectable(node))
159
+ return false;
160
+ if (dispatch)
161
+ dispatch(state.tr.setSelection(NodeSelection.create(state.doc, $cut.pos - node.nodeSize)).scrollIntoView());
162
+ return true;
163
+ };
164
+ function findCutBefore($pos) {
165
+ if (!$pos.parent.type.spec.isolating)
166
+ for (let i = $pos.depth - 1; i >= 0; i--) {
167
+ if ($pos.index(i) > 0)
168
+ return $pos.doc.resolve($pos.before(i + 1));
169
+ if ($pos.node(i).type.spec.isolating)
170
+ break;
171
+ }
172
+ return null;
173
+ }
174
+ function atBlockEnd(state, view) {
175
+ let { $cursor } = state.selection;
176
+ if (!$cursor || (view ? !view.endOfTextblock("forward", state)
177
+ : $cursor.parentOffset < $cursor.parent.content.size))
178
+ return null;
179
+ return $cursor;
180
+ }
181
+ /**
182
+ If the selection is empty and the cursor is at the end of a
183
+ textblock, try to reduce or remove the boundary between that block
184
+ and the one after it, either by joining them or by moving the other
185
+ block closer to this one in the tree structure. Will use the view
186
+ for accurate start-of-textblock detection if given.
187
+ */
188
+ const joinForward = (state, dispatch, view) => {
189
+ let $cursor = atBlockEnd(state, view);
190
+ if (!$cursor)
191
+ return false;
192
+ let $cut = findCutAfter($cursor);
193
+ // If there is no node after this, there's nothing to do
194
+ if (!$cut)
195
+ return false;
196
+ let after = $cut.nodeAfter;
197
+ // Try the joining algorithm
198
+ if (deleteBarrier(state, $cut, dispatch, 1))
199
+ return true;
200
+ // If the node above has no content and the node below is
201
+ // selectable, delete the node above and select the one below.
202
+ if ($cursor.parent.content.size == 0 &&
203
+ (textblockAt(after, "start") || NodeSelection.isSelectable(after))) {
204
+ let delStep = replaceStep(state.doc, $cursor.before(), $cursor.after(), Slice.empty);
205
+ if (delStep && delStep.slice.size < delStep.to - delStep.from) {
206
+ if (dispatch) {
207
+ let tr = state.tr.step(delStep);
208
+ tr.setSelection(textblockAt(after, "start") ? Selection.findFrom(tr.doc.resolve(tr.mapping.map($cut.pos)), 1)
209
+ : NodeSelection.create(tr.doc, tr.mapping.map($cut.pos)));
210
+ dispatch(tr.scrollIntoView());
211
+ }
212
+ return true;
213
+ }
214
+ }
215
+ // If the next node is an atom, delete it
216
+ if (after.isAtom && $cut.depth == $cursor.depth - 1) {
217
+ if (dispatch)
218
+ dispatch(state.tr.delete($cut.pos, $cut.pos + after.nodeSize).scrollIntoView());
219
+ return true;
220
+ }
221
+ return false;
222
+ };
223
+ /**
224
+ When the selection is empty and at the end of a textblock, select
225
+ the node coming after that textblock, if possible. This is intended
226
+ to be bound to keys like delete, after
227
+ [`joinForward`](https://prosemirror.net/docs/ref/#commands.joinForward) and similar deleting
228
+ commands, to provide a fall-back behavior when the schema doesn't
229
+ allow deletion at the selected point.
230
+ */
231
+ const selectNodeForward = (state, dispatch, view) => {
232
+ let { $head, empty } = state.selection, $cut = $head;
233
+ if (!empty)
234
+ return false;
235
+ if ($head.parent.isTextblock) {
236
+ if (view ? !view.endOfTextblock("forward", state) : $head.parentOffset < $head.parent.content.size)
237
+ return false;
238
+ $cut = findCutAfter($head);
239
+ }
240
+ let node = $cut && $cut.nodeAfter;
241
+ if (!node || !NodeSelection.isSelectable(node))
242
+ return false;
243
+ if (dispatch)
244
+ dispatch(state.tr.setSelection(NodeSelection.create(state.doc, $cut.pos)).scrollIntoView());
245
+ return true;
246
+ };
247
+ function findCutAfter($pos) {
248
+ if (!$pos.parent.type.spec.isolating)
249
+ for (let i = $pos.depth - 1; i >= 0; i--) {
250
+ let parent = $pos.node(i);
251
+ if ($pos.index(i) + 1 < parent.childCount)
252
+ return $pos.doc.resolve($pos.after(i + 1));
253
+ if (parent.type.spec.isolating)
254
+ break;
255
+ }
256
+ return null;
257
+ }
258
+ /**
259
+ Join the selected block or, if there is a text selection, the
260
+ closest ancestor block of the selection that can be joined, with
261
+ the sibling above it.
262
+ */
263
+ const joinUp = (state, dispatch) => {
264
+ let sel = state.selection, nodeSel = sel instanceof NodeSelection, point;
265
+ if (nodeSel) {
266
+ if (sel.node.isTextblock || !canJoin(state.doc, sel.from))
267
+ return false;
268
+ point = sel.from;
269
+ }
270
+ else {
271
+ point = joinPoint(state.doc, sel.from, -1);
272
+ if (point == null)
273
+ return false;
274
+ }
275
+ if (dispatch) {
276
+ let tr = state.tr.join(point);
277
+ if (nodeSel)
278
+ tr.setSelection(NodeSelection.create(tr.doc, point - state.doc.resolve(point).nodeBefore.nodeSize));
279
+ dispatch(tr.scrollIntoView());
280
+ }
281
+ return true;
282
+ };
283
+ /**
284
+ Join the selected block, or the closest ancestor of the selection
285
+ that can be joined, with the sibling after it.
286
+ */
287
+ const joinDown = (state, dispatch) => {
288
+ let sel = state.selection, point;
289
+ if (sel instanceof NodeSelection) {
290
+ if (sel.node.isTextblock || !canJoin(state.doc, sel.to))
291
+ return false;
292
+ point = sel.to;
293
+ }
294
+ else {
295
+ point = joinPoint(state.doc, sel.to, 1);
296
+ if (point == null)
297
+ return false;
298
+ }
299
+ if (dispatch)
300
+ dispatch(state.tr.join(point).scrollIntoView());
301
+ return true;
302
+ };
303
+ /**
304
+ Lift the selected block, or the closest ancestor block of the
305
+ selection that can be lifted, out of its parent node.
306
+ */
307
+ const lift = (state, dispatch) => {
308
+ let { $from, $to } = state.selection;
309
+ let range = $from.blockRange($to), target = range && liftTarget(range);
310
+ if (target == null)
311
+ return false;
312
+ if (dispatch)
313
+ dispatch(state.tr.lift(range, target).scrollIntoView());
314
+ return true;
315
+ };
316
+ /**
317
+ If the selection is in a node whose type has a truthy
318
+ [`code`](https://prosemirror.net/docs/ref/#model.NodeSpec.code) property in its spec, replace the
319
+ selection with a newline character.
320
+ */
321
+ const newlineInCode = (state, dispatch) => {
322
+ let { $head, $anchor } = state.selection;
323
+ if (!$head.parent.type.spec.code || !$head.sameParent($anchor))
324
+ return false;
325
+ if (dispatch)
326
+ dispatch(state.tr.insertText("\n").scrollIntoView());
327
+ return true;
328
+ };
329
+ function defaultBlockAt(match) {
330
+ for (let i = 0; i < match.edgeCount; i++) {
331
+ let { type } = match.edge(i);
332
+ if (type.isTextblock && !type.hasRequiredAttrs())
333
+ return type;
334
+ }
335
+ return null;
336
+ }
337
+ /**
338
+ When the selection is in a node with a truthy
339
+ [`code`](https://prosemirror.net/docs/ref/#model.NodeSpec.code) property in its spec, create a
340
+ default block after the code block, and move the cursor there.
341
+ */
342
+ const exitCode = (state, dispatch) => {
343
+ let { $head, $anchor } = state.selection;
344
+ if (!$head.parent.type.spec.code || !$head.sameParent($anchor))
345
+ return false;
346
+ let above = $head.node(-1), after = $head.indexAfter(-1), type = defaultBlockAt(above.contentMatchAt(after));
347
+ if (!type || !above.canReplaceWith(after, after, type))
348
+ return false;
349
+ if (dispatch) {
350
+ let pos = $head.after(), tr = state.tr.replaceWith(pos, pos, type.createAndFill());
351
+ tr.setSelection(Selection.near(tr.doc.resolve(pos), 1));
352
+ dispatch(tr.scrollIntoView());
353
+ }
354
+ return true;
355
+ };
356
+ /**
357
+ If a block node is selected, create an empty paragraph before (if
358
+ it is its parent's first child) or after it.
359
+ */
360
+ const createParagraphNear = (state, dispatch) => {
361
+ let sel = state.selection, { $from, $to } = sel;
362
+ if (sel instanceof AllSelection || $from.parent.inlineContent || $to.parent.inlineContent)
363
+ return false;
364
+ let type = defaultBlockAt($to.parent.contentMatchAt($to.indexAfter()));
365
+ if (!type || !type.isTextblock)
366
+ return false;
367
+ if (dispatch) {
368
+ let side = (!$from.parentOffset && $to.index() < $to.parent.childCount ? $from : $to).pos;
369
+ let tr = state.tr.insert(side, type.createAndFill());
370
+ tr.setSelection(TextSelection.create(tr.doc, side + 1));
371
+ dispatch(tr.scrollIntoView());
372
+ }
373
+ return true;
374
+ };
375
+ /**
376
+ If the cursor is in an empty textblock that can be lifted, lift the
377
+ block.
378
+ */
379
+ const liftEmptyBlock = (state, dispatch) => {
380
+ let { $cursor } = state.selection;
381
+ if (!$cursor || $cursor.parent.content.size)
382
+ return false;
383
+ if ($cursor.depth > 1 && $cursor.after() != $cursor.end(-1)) {
384
+ let before = $cursor.before();
385
+ if (canSplit(state.doc, before)) {
386
+ if (dispatch)
387
+ dispatch(state.tr.split(before).scrollIntoView());
388
+ return true;
389
+ }
390
+ }
391
+ let range = $cursor.blockRange(), target = range && liftTarget(range);
392
+ if (target == null)
393
+ return false;
394
+ if (dispatch)
395
+ dispatch(state.tr.lift(range, target).scrollIntoView());
396
+ return true;
397
+ };
398
+ /**
399
+ Create a variant of [`splitBlock`](https://prosemirror.net/docs/ref/#commands.splitBlock) that uses
400
+ a custom function to determine the type of the newly split off block.
401
+ */
402
+ function splitBlockAs(splitNode) {
403
+ return (state, dispatch) => {
404
+ if (state.selection instanceof NodeSelection && state.selection.node.isBlock) {
405
+ let { $from } = state.selection;
406
+ if (!$from.parentOffset || !canSplit(state.doc, $from.pos))
407
+ return false;
408
+ if (dispatch)
409
+ dispatch(state.tr.split($from.pos).scrollIntoView());
410
+ return true;
411
+ }
412
+ if (!state.selection.$from.depth)
413
+ return false;
414
+ let tr = state.tr;
415
+ if (!state.selection.empty && (state.selection instanceof TextSelection || state.selection instanceof AllSelection))
416
+ tr.deleteSelection();
417
+ let { $from } = tr.selection, mapFrom = tr.steps.length;
418
+ let types = [];
419
+ let splitDepth, deflt, atEnd = false, atStart = false;
420
+ for (let d = $from.depth;; d--) {
421
+ let node = $from.node(d);
422
+ if (node.isBlock) {
423
+ atEnd = $from.end(d) == $from.pos + ($from.depth - d);
424
+ atStart = $from.start(d) == $from.pos - ($from.depth - d);
425
+ deflt = defaultBlockAt($from.node(d - 1).contentMatchAt($from.indexAfter(d - 1)));
426
+ let splitType = splitNode && splitNode($from.parent, atEnd, $from);
427
+ types.unshift(splitType || (atEnd && deflt ? { type: deflt } : null));
428
+ splitDepth = d;
429
+ break;
430
+ }
431
+ else {
432
+ if (d == 1)
433
+ return false;
434
+ types.unshift(null);
435
+ }
436
+ }
437
+ let splitPos = $from.pos;
438
+ let can = canSplit(tr.doc, splitPos, types.length, types);
439
+ if (!can) {
440
+ types[0] = deflt ? { type: deflt } : null;
441
+ can = canSplit(tr.doc, splitPos, types.length, types);
442
+ }
443
+ if (!can)
444
+ return false;
445
+ tr.split(splitPos, types.length, types);
446
+ if (!atEnd && atStart && $from.node(splitDepth).type != deflt) {
447
+ let mapping = tr.mapping.slice(mapFrom);
448
+ let first = mapping.map($from.before(splitDepth)), $first = tr.doc.resolve(first);
449
+ if (deflt && $from.node(splitDepth - 1).canReplaceWith($first.index(), $first.index() + 1, deflt))
450
+ tr.setNodeMarkup(mapping.map($from.before(splitDepth)), deflt);
451
+ }
452
+ if (dispatch)
453
+ dispatch(tr.scrollIntoView());
454
+ return true;
455
+ };
456
+ }
457
+ /**
458
+ Split the parent block of the selection. If the selection is a text
459
+ selection, also delete its content.
460
+ */
461
+ const splitBlock = splitBlockAs();
462
+ /**
463
+ Acts like [`splitBlock`](https://prosemirror.net/docs/ref/#commands.splitBlock), but without
464
+ resetting the set of active marks at the cursor.
465
+ */
466
+ const splitBlockKeepMarks = (state, dispatch) => {
467
+ return splitBlock(state, dispatch && (tr => {
468
+ let marks = state.storedMarks || (state.selection.$to.parentOffset && state.selection.$from.marks());
469
+ if (marks)
470
+ tr.ensureMarks(marks);
471
+ dispatch(tr);
472
+ }));
473
+ };
474
+ /**
475
+ Move the selection to the node wrapping the current selection, if
476
+ any. (Will not select the document node.)
477
+ */
478
+ const selectParentNode = (state, dispatch) => {
479
+ let { $from, to } = state.selection, pos;
480
+ let same = $from.sharedDepth(to);
481
+ if (same == 0)
482
+ return false;
483
+ pos = $from.before(same);
484
+ if (dispatch)
485
+ dispatch(state.tr.setSelection(NodeSelection.create(state.doc, pos)));
486
+ return true;
487
+ };
488
+ /**
489
+ Select the whole document.
490
+ */
491
+ const selectAll = (state, dispatch) => {
492
+ if (dispatch)
493
+ dispatch(state.tr.setSelection(new AllSelection(state.doc)));
494
+ return true;
495
+ };
496
+ function joinMaybeClear(state, $pos, dispatch) {
497
+ let before = $pos.nodeBefore, after = $pos.nodeAfter, index = $pos.index();
498
+ if (!before || !after || !before.type.compatibleContent(after.type))
499
+ return false;
500
+ if (!before.content.size && $pos.parent.canReplace(index - 1, index)) {
501
+ if (dispatch)
502
+ dispatch(state.tr.delete($pos.pos - before.nodeSize, $pos.pos).scrollIntoView());
503
+ return true;
504
+ }
505
+ if (!$pos.parent.canReplace(index, index + 1) || !(after.isTextblock || canJoin(state.doc, $pos.pos)))
506
+ return false;
507
+ if (dispatch)
508
+ dispatch(state.tr.join($pos.pos).scrollIntoView());
509
+ return true;
510
+ }
511
+ function deleteBarrier(state, $cut, dispatch, dir) {
512
+ let before = $cut.nodeBefore, after = $cut.nodeAfter, conn, match;
513
+ let isolated = before.type.spec.isolating || after.type.spec.isolating;
514
+ if (!isolated && joinMaybeClear(state, $cut, dispatch))
515
+ return true;
516
+ let canDelAfter = !isolated && $cut.parent.canReplace($cut.index(), $cut.index() + 1);
517
+ if (canDelAfter &&
518
+ (conn = (match = before.contentMatchAt(before.childCount)).findWrapping(after.type)) &&
519
+ match.matchType(conn[0] || after.type).validEnd) {
520
+ if (dispatch) {
521
+ let end = $cut.pos + after.nodeSize, wrap = Fragment.empty;
522
+ for (let i = conn.length - 1; i >= 0; i--)
523
+ wrap = Fragment.from(conn[i].create(null, wrap));
524
+ wrap = Fragment.from(before.copy(wrap));
525
+ let tr = state.tr.step(new ReplaceAroundStep($cut.pos - 1, end, $cut.pos, end, new Slice(wrap, 1, 0), conn.length, true));
526
+ let $joinAt = tr.doc.resolve(end + 2 * conn.length);
527
+ if ($joinAt.nodeAfter && $joinAt.nodeAfter.type == before.type &&
528
+ canJoin(tr.doc, $joinAt.pos))
529
+ tr.join($joinAt.pos);
530
+ dispatch(tr.scrollIntoView());
531
+ }
532
+ return true;
533
+ }
534
+ let selAfter = after.type.spec.isolating || (dir > 0 && isolated) ? null : Selection.findFrom($cut, 1);
535
+ let range = selAfter && selAfter.$from.blockRange(selAfter.$to), target = range && liftTarget(range);
536
+ if (target != null && target >= $cut.depth) {
537
+ if (dispatch)
538
+ dispatch(state.tr.lift(range, target).scrollIntoView());
539
+ return true;
540
+ }
541
+ if (canDelAfter && textblockAt(after, "start", true) && textblockAt(before, "end")) {
542
+ let at = before, wrap = [];
543
+ for (;;) {
544
+ wrap.push(at);
545
+ if (at.isTextblock)
546
+ break;
547
+ at = at.lastChild;
548
+ }
549
+ let afterText = after, afterDepth = 1;
550
+ for (; !afterText.isTextblock; afterText = afterText.firstChild)
551
+ afterDepth++;
552
+ if (at.canReplace(at.childCount, at.childCount, afterText.content)) {
553
+ if (dispatch) {
554
+ let end = Fragment.empty;
555
+ for (let i = wrap.length - 1; i >= 0; i--)
556
+ end = Fragment.from(wrap[i].copy(end));
557
+ let tr = state.tr.step(new ReplaceAroundStep($cut.pos - wrap.length, $cut.pos + after.nodeSize, $cut.pos + afterDepth, $cut.pos + after.nodeSize - afterDepth, new Slice(end, wrap.length, 0), 0, true));
558
+ dispatch(tr.scrollIntoView());
559
+ }
560
+ return true;
561
+ }
562
+ }
563
+ return false;
564
+ }
565
+ function selectTextblockSide(side) {
566
+ return function (state, dispatch) {
567
+ let sel = state.selection, $pos = side < 0 ? sel.$from : sel.$to;
568
+ let depth = $pos.depth;
569
+ while ($pos.node(depth).isInline) {
570
+ if (!depth)
571
+ return false;
572
+ depth--;
573
+ }
574
+ if (!$pos.node(depth).isTextblock)
575
+ return false;
576
+ if (dispatch)
577
+ dispatch(state.tr.setSelection(TextSelection.create(state.doc, side < 0 ? $pos.start(depth) : $pos.end(depth))));
578
+ return true;
579
+ };
580
+ }
581
+ /**
582
+ Moves the cursor to the start of current text block.
583
+ */
584
+ const selectTextblockStart = selectTextblockSide(-1);
585
+ /**
586
+ Moves the cursor to the end of current text block.
587
+ */
588
+ const selectTextblockEnd = selectTextblockSide(1);
589
+ // Parameterized commands
590
+ /**
591
+ Wrap the selection in a node of the given type with the given
592
+ attributes.
593
+ */
594
+ function wrapIn(nodeType, attrs = null) {
595
+ return function (state, dispatch) {
596
+ let { $from, $to } = state.selection;
597
+ let range = $from.blockRange($to), wrapping = range && findWrapping(range, nodeType, attrs);
598
+ if (!wrapping)
599
+ return false;
600
+ if (dispatch)
601
+ dispatch(state.tr.wrap(range, wrapping).scrollIntoView());
602
+ return true;
603
+ };
604
+ }
605
+ /**
606
+ Returns a command that tries to set the selected textblocks to the
607
+ given node type with the given attributes.
608
+ */
609
+ function setBlockType(nodeType, attrs = null) {
610
+ return function (state, dispatch) {
611
+ let applicable = false;
612
+ for (let i = 0; i < state.selection.ranges.length && !applicable; i++) {
613
+ let { $from: { pos: from }, $to: { pos: to } } = state.selection.ranges[i];
614
+ state.doc.nodesBetween(from, to, (node, pos) => {
615
+ if (applicable)
616
+ return false;
617
+ if (!node.isTextblock || node.hasMarkup(nodeType, attrs))
618
+ return;
619
+ if (node.type == nodeType) {
620
+ applicable = true;
621
+ }
622
+ else {
623
+ let $pos = state.doc.resolve(pos), index = $pos.index();
624
+ applicable = $pos.parent.canReplaceWith(index, index + 1, nodeType);
625
+ }
626
+ });
627
+ }
628
+ if (!applicable)
629
+ return false;
630
+ if (dispatch) {
631
+ let tr = state.tr;
632
+ for (let i = 0; i < state.selection.ranges.length; i++) {
633
+ let { $from: { pos: from }, $to: { pos: to } } = state.selection.ranges[i];
634
+ tr.setBlockType(from, to, nodeType, attrs);
635
+ }
636
+ dispatch(tr.scrollIntoView());
637
+ }
638
+ return true;
639
+ };
640
+ }
641
+ function markApplies(doc, ranges, type, enterAtoms) {
642
+ for (let i = 0; i < ranges.length; i++) {
643
+ let { $from, $to } = ranges[i];
644
+ let can = $from.depth == 0 ? doc.inlineContent && doc.type.allowsMarkType(type) : false;
645
+ doc.nodesBetween($from.pos, $to.pos, (node, pos) => {
646
+ if (can || !enterAtoms && node.isAtom && node.isInline && pos >= $from.pos && pos + node.nodeSize <= $to.pos)
647
+ return false;
648
+ can = node.inlineContent && node.type.allowsMarkType(type);
649
+ });
650
+ if (can)
651
+ return true;
652
+ }
653
+ return false;
654
+ }
655
+ function removeInlineAtoms(ranges) {
656
+ let result = [];
657
+ for (let i = 0; i < ranges.length; i++) {
658
+ let { $from, $to } = ranges[i];
659
+ $from.doc.nodesBetween($from.pos, $to.pos, (node, pos) => {
660
+ if (node.isAtom && node.content.size && node.isInline && pos >= $from.pos && pos + node.nodeSize <= $to.pos) {
661
+ if (pos + 1 > $from.pos)
662
+ result.push(new SelectionRange($from, $from.doc.resolve(pos + 1)));
663
+ $from = $from.doc.resolve(pos + 1 + node.content.size);
664
+ return false;
665
+ }
666
+ });
667
+ if ($from.pos < $to.pos)
668
+ result.push(new SelectionRange($from, $to));
669
+ }
670
+ return result;
671
+ }
672
+ /**
673
+ Create a command function that toggles the given mark with the
674
+ given attributes. Will return `false` when the current selection
675
+ doesn't support that mark. This will remove the mark if any marks
676
+ of that type exist in the selection, or add it otherwise. If the
677
+ selection is empty, this applies to the [stored
678
+ marks](https://prosemirror.net/docs/ref/#state.EditorState.storedMarks) instead of a range of the
679
+ document.
680
+ */
681
+ function toggleMark(markType, attrs = null, options) {
682
+ let removeWhenPresent = (options && options.removeWhenPresent) !== false;
683
+ let enterAtoms = (options && options.enterInlineAtoms) !== false;
684
+ let dropSpace = !(options && options.includeWhitespace);
685
+ return function (state, dispatch) {
686
+ let { empty, $cursor, ranges } = state.selection;
687
+ if ((empty && !$cursor) || !markApplies(state.doc, ranges, markType, enterAtoms))
688
+ return false;
689
+ if (dispatch) {
690
+ if ($cursor) {
691
+ if (markType.isInSet(state.storedMarks || $cursor.marks()))
692
+ dispatch(state.tr.removeStoredMark(markType));
693
+ else
694
+ dispatch(state.tr.addStoredMark(markType.create(attrs)));
695
+ }
696
+ else {
697
+ let add, tr = state.tr;
698
+ if (!enterAtoms)
699
+ ranges = removeInlineAtoms(ranges);
700
+ if (removeWhenPresent) {
701
+ add = !ranges.some(r => state.doc.rangeHasMark(r.$from.pos, r.$to.pos, markType));
702
+ }
703
+ else {
704
+ add = !ranges.every(r => {
705
+ let missing = false;
706
+ tr.doc.nodesBetween(r.$from.pos, r.$to.pos, (node, pos, parent) => {
707
+ if (missing)
708
+ return false;
709
+ missing = !markType.isInSet(node.marks) && !!parent && parent.type.allowsMarkType(markType) &&
710
+ !(node.isText && /^\s*$/.test(node.textBetween(Math.max(0, r.$from.pos - pos), Math.min(node.nodeSize, r.$to.pos - pos))));
711
+ });
712
+ return !missing;
713
+ });
714
+ }
715
+ for (let i = 0; i < ranges.length; i++) {
716
+ let { $from, $to } = ranges[i];
717
+ if (!add) {
718
+ tr.removeMark($from.pos, $to.pos, markType);
719
+ }
720
+ else {
721
+ let from = $from.pos, to = $to.pos, start = $from.nodeAfter, end = $to.nodeBefore;
722
+ let spaceStart = dropSpace && start && start.isText ? /^\s*/.exec(start.text)[0].length : 0;
723
+ let spaceEnd = dropSpace && end && end.isText ? /\s*$/.exec(end.text)[0].length : 0;
724
+ if (from + spaceStart < to) {
725
+ from += spaceStart;
726
+ to -= spaceEnd;
727
+ }
728
+ tr.addMark(from, to, markType.create(attrs));
729
+ }
730
+ }
731
+ dispatch(tr.scrollIntoView());
732
+ }
733
+ }
734
+ return true;
735
+ };
736
+ }
737
+ function wrapDispatchForJoin(dispatch, isJoinable) {
738
+ return (tr) => {
739
+ if (!tr.isGeneric)
740
+ return dispatch(tr);
741
+ let ranges = [];
742
+ for (let i = 0; i < tr.mapping.maps.length; i++) {
743
+ let map = tr.mapping.maps[i];
744
+ for (let j = 0; j < ranges.length; j++)
745
+ ranges[j] = map.map(ranges[j]);
746
+ map.forEach((_s, _e, from, to) => ranges.push(from, to));
747
+ }
748
+ // Figure out which joinable points exist inside those ranges,
749
+ // by checking all node boundaries in their parent nodes.
750
+ let joinable = [];
751
+ for (let i = 0; i < ranges.length; i += 2) {
752
+ let from = ranges[i], to = ranges[i + 1];
753
+ let $from = tr.doc.resolve(from), depth = $from.sharedDepth(to), parent = $from.node(depth);
754
+ for (let index = $from.indexAfter(depth), pos = $from.after(depth + 1); pos <= to; ++index) {
755
+ let after = parent.maybeChild(index);
756
+ if (!after)
757
+ break;
758
+ if (index && joinable.indexOf(pos) == -1) {
759
+ let before = parent.child(index - 1);
760
+ if (before.type == after.type && isJoinable(before, after))
761
+ joinable.push(pos);
762
+ }
763
+ pos += after.nodeSize;
764
+ }
765
+ }
766
+ // Join the joinable points
767
+ joinable.sort((a, b) => a - b);
768
+ for (let i = joinable.length - 1; i >= 0; i--) {
769
+ if (canJoin(tr.doc, joinable[i]))
770
+ tr.join(joinable[i]);
771
+ }
772
+ dispatch(tr);
773
+ };
774
+ }
775
+ /**
776
+ Wrap a command so that, when it produces a transform that causes
777
+ two joinable nodes to end up next to each other, those are joined.
778
+ Nodes are considered joinable when they are of the same type and
779
+ when the `isJoinable` predicate returns true for them or, if an
780
+ array of strings was passed, if their node type name is in that
781
+ array.
782
+ */
783
+ function autoJoin(command, isJoinable) {
784
+ let canJoin = Array.isArray(isJoinable) ? (node) => isJoinable.indexOf(node.type.name) > -1
785
+ : isJoinable;
786
+ return (state, dispatch, view) => command(state, dispatch && wrapDispatchForJoin(dispatch, canJoin), view);
787
+ }
788
+ /**
789
+ Combine a number of command functions into a single function (which
790
+ calls them one by one until one returns true).
791
+ */
792
+ function chainCommands(...commands) {
793
+ return function (state, dispatch, view) {
794
+ for (let i = 0; i < commands.length; i++)
795
+ if (commands[i](state, dispatch, view))
796
+ return true;
797
+ return false;
798
+ };
799
+ }
800
+ let backspace = chainCommands(deleteSelection, joinBackward, selectNodeBackward);
801
+ let del = chainCommands(deleteSelection, joinForward, selectNodeForward);
802
+ /**
803
+ A basic keymap containing bindings not specific to any schema.
804
+ Binds the following keys (when multiple commands are listed, they
805
+ are chained with [`chainCommands`](https://prosemirror.net/docs/ref/#commands.chainCommands)):
806
+
807
+ * **Enter** to `newlineInCode`, `createParagraphNear`, `liftEmptyBlock`, `splitBlock`
808
+ * **Mod-Enter** to `exitCode`
809
+ * **Backspace** and **Mod-Backspace** to `deleteSelection`, `joinBackward`, `selectNodeBackward`
810
+ * **Delete** and **Mod-Delete** to `deleteSelection`, `joinForward`, `selectNodeForward`
811
+ * **Mod-Delete** to `deleteSelection`, `joinForward`, `selectNodeForward`
812
+ * **Mod-a** to `selectAll`
813
+ */
814
+ const pcBaseKeymap = {
815
+ "Enter": chainCommands(newlineInCode, createParagraphNear, liftEmptyBlock, splitBlock),
816
+ "Mod-Enter": exitCode,
817
+ "Backspace": backspace,
818
+ "Mod-Backspace": backspace,
819
+ "Shift-Backspace": backspace,
820
+ "Delete": del,
821
+ "Mod-Delete": del,
822
+ "Mod-a": selectAll
823
+ };
824
+ /**
825
+ A copy of `pcBaseKeymap` that also binds **Ctrl-h** like Backspace,
826
+ **Ctrl-d** like Delete, **Alt-Backspace** like Ctrl-Backspace, and
827
+ **Ctrl-Alt-Backspace**, **Alt-Delete**, and **Alt-d** like
828
+ Ctrl-Delete.
829
+ */
830
+ const macBaseKeymap = {
831
+ "Ctrl-h": pcBaseKeymap["Backspace"],
832
+ "Alt-Backspace": pcBaseKeymap["Mod-Backspace"],
833
+ "Ctrl-d": pcBaseKeymap["Delete"],
834
+ "Ctrl-Alt-Backspace": pcBaseKeymap["Mod-Delete"],
835
+ "Alt-Delete": pcBaseKeymap["Mod-Delete"],
836
+ "Alt-d": pcBaseKeymap["Mod-Delete"],
837
+ "Ctrl-a": selectTextblockStart,
838
+ "Ctrl-e": selectTextblockEnd
839
+ };
840
+ for (let key in pcBaseKeymap)
841
+ macBaseKeymap[key] = pcBaseKeymap[key];
842
+ const mac = typeof navigator != "undefined" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform)
843
+ // @ts-ignore
844
+ : typeof os != "undefined" && os.platform ? os.platform() == "darwin" : false;
845
+ /**
846
+ Depending on the detected platform, this will hold
847
+ [`pcBasekeymap`](https://prosemirror.net/docs/ref/#commands.pcBaseKeymap) or
848
+ [`macBaseKeymap`](https://prosemirror.net/docs/ref/#commands.macBaseKeymap).
849
+ */
850
+ const baseKeymap = mac ? macBaseKeymap : pcBaseKeymap;
851
+
852
+ export { autoJoin, baseKeymap, chainCommands, createParagraphNear, deleteSelection, exitCode, joinBackward, joinDown, joinForward, joinTextblockBackward, joinTextblockForward, joinUp, lift, liftEmptyBlock, macBaseKeymap, newlineInCode, pcBaseKeymap, selectAll, selectNodeBackward, selectNodeForward, selectParentNode, selectTextblockEnd, selectTextblockStart, setBlockType, splitBlock, splitBlockAs, splitBlockKeepMarks, toggleMark, wrapIn };