@tiptap/extension-gapcursor 2.0.0-beta.21 → 2.0.0-beta.211

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 (315) hide show
  1. package/dist/index.cjs +33 -0
  2. package/dist/{packages/extension-gapcursor/src/gapcursor.d.ts → index.d.ts} +18 -14
  3. package/dist/index.js +33 -0
  4. package/package.json +31 -10
  5. package/src/gapcursor.ts +5 -3
  6. package/LICENSE.md +0 -21
  7. package/dist/demos/setup/helper.d.ts +0 -2
  8. package/dist/demos/setup/react.d.ts +0 -3
  9. package/dist/demos/setup/vue.d.ts +0 -3
  10. package/dist/demos/src/Examples/Savvy/Vue/ColorHighlighter.d.ts +0 -2
  11. package/dist/demos/src/Examples/Savvy/Vue/SmilieReplacer.d.ts +0 -2
  12. package/dist/demos/src/Examples/Savvy/Vue/findColors.d.ts +0 -3
  13. package/dist/demos/src/Experiments/CollaborationAnnotation/Vue/extension/AnnotationItem.d.ts +0 -10
  14. package/dist/demos/src/Experiments/CollaborationAnnotation/Vue/extension/AnnotationPlugin.d.ts +0 -12
  15. package/dist/demos/src/Experiments/CollaborationAnnotation/Vue/extension/AnnotationState.d.ts +0 -27
  16. package/dist/demos/src/Experiments/CollaborationAnnotation/Vue/extension/collaboration-annotation.d.ts +0 -49
  17. package/dist/demos/src/Experiments/CollaborationAnnotation/Vue/extension/index.d.ts +0 -3
  18. package/dist/demos/src/Experiments/Details/Vue/details-summary.d.ts +0 -8
  19. package/dist/demos/src/Experiments/Details/Vue/details.d.ts +0 -26
  20. package/dist/demos/src/Experiments/Embeds/Vue/iframe.d.ts +0 -21
  21. package/dist/demos/src/Experiments/Figure/Vue/figure.d.ts +0 -29
  22. package/dist/demos/src/Experiments/GenericFigure/Vue/figcaption.d.ts +0 -4
  23. package/dist/demos/src/Experiments/GenericFigure/Vue/figure.d.ts +0 -4
  24. package/dist/demos/src/Experiments/Linter/Vue/extension/Linter.d.ts +0 -6
  25. package/dist/demos/src/Experiments/Linter/Vue/extension/LinterPlugin.d.ts +0 -15
  26. package/dist/demos/src/Experiments/Linter/Vue/extension/index.d.ts +0 -6
  27. package/dist/demos/src/Experiments/Linter/Vue/extension/plugins/BadWords.d.ts +0 -5
  28. package/dist/demos/src/Experiments/Linter/Vue/extension/plugins/HeadingLevel.d.ts +0 -6
  29. package/dist/demos/src/Experiments/Linter/Vue/extension/plugins/Punctuation.d.ts +0 -7
  30. package/dist/demos/src/Experiments/TrailingNode/Vue/trailing-node.d.ts +0 -11
  31. package/dist/demos/vite.config.d.ts +0 -2
  32. package/dist/packages/core/src/CommandManager.d.ts +0 -13
  33. package/dist/packages/core/src/Editor.d.ts +0 -140
  34. package/dist/packages/core/src/EventEmitter.d.ts +0 -7
  35. package/dist/packages/core/src/Extension.d.ts +0 -193
  36. package/dist/packages/core/src/ExtensionManager.d.ts +0 -18
  37. package/dist/packages/core/src/Mark.d.ts +0 -269
  38. package/dist/packages/core/src/Node.d.ts +0 -339
  39. package/dist/packages/core/src/NodeView.d.ts +0 -27
  40. package/dist/packages/core/src/Tracker.d.ts +0 -11
  41. package/dist/packages/core/src/commands/blur.d.ts +0 -12
  42. package/dist/packages/core/src/commands/clearContent.d.ts +0 -12
  43. package/dist/packages/core/src/commands/clearNodes.d.ts +0 -12
  44. package/dist/packages/core/src/commands/command.d.ts +0 -12
  45. package/dist/packages/core/src/commands/createParagraphNear.d.ts +0 -12
  46. package/dist/packages/core/src/commands/deleteNode.d.ts +0 -13
  47. package/dist/packages/core/src/commands/deleteRange.d.ts +0 -12
  48. package/dist/packages/core/src/commands/deleteSelection.d.ts +0 -12
  49. package/dist/packages/core/src/commands/enter.d.ts +0 -12
  50. package/dist/packages/core/src/commands/exitCode.d.ts +0 -12
  51. package/dist/packages/core/src/commands/extendMarkRange.d.ts +0 -13
  52. package/dist/packages/core/src/commands/first.d.ts +0 -12
  53. package/dist/packages/core/src/commands/focus.d.ts +0 -12
  54. package/dist/packages/core/src/commands/forEach.d.ts +0 -14
  55. package/dist/packages/core/src/commands/insertContent.d.ts +0 -13
  56. package/dist/packages/core/src/commands/insertContentAt.d.ts +0 -13
  57. package/dist/packages/core/src/commands/joinBackward.d.ts +0 -12
  58. package/dist/packages/core/src/commands/joinForward.d.ts +0 -12
  59. package/dist/packages/core/src/commands/keyboardShortcut.d.ts +0 -12
  60. package/dist/packages/core/src/commands/lift.d.ts +0 -13
  61. package/dist/packages/core/src/commands/liftEmptyBlock.d.ts +0 -12
  62. package/dist/packages/core/src/commands/liftListItem.d.ts +0 -13
  63. package/dist/packages/core/src/commands/newlineInCode.d.ts +0 -12
  64. package/dist/packages/core/src/commands/resetAttributes.d.ts +0 -13
  65. package/dist/packages/core/src/commands/scrollIntoView.d.ts +0 -12
  66. package/dist/packages/core/src/commands/selectAll.d.ts +0 -12
  67. package/dist/packages/core/src/commands/selectNodeBackward.d.ts +0 -12
  68. package/dist/packages/core/src/commands/selectNodeForward.d.ts +0 -12
  69. package/dist/packages/core/src/commands/selectParentNode.d.ts +0 -12
  70. package/dist/packages/core/src/commands/setContent.d.ts +0 -13
  71. package/dist/packages/core/src/commands/setMark.d.ts +0 -13
  72. package/dist/packages/core/src/commands/setMeta.d.ts +0 -12
  73. package/dist/packages/core/src/commands/setNode.d.ts +0 -13
  74. package/dist/packages/core/src/commands/setNodeSelection.d.ts +0 -12
  75. package/dist/packages/core/src/commands/setTextSelection.d.ts +0 -12
  76. package/dist/packages/core/src/commands/sinkListItem.d.ts +0 -13
  77. package/dist/packages/core/src/commands/splitBlock.d.ts +0 -14
  78. package/dist/packages/core/src/commands/splitListItem.d.ts +0 -13
  79. package/dist/packages/core/src/commands/toggleList.d.ts +0 -13
  80. package/dist/packages/core/src/commands/toggleMark.d.ts +0 -18
  81. package/dist/packages/core/src/commands/toggleNode.d.ts +0 -13
  82. package/dist/packages/core/src/commands/toggleWrap.d.ts +0 -13
  83. package/dist/packages/core/src/commands/undoInputRule.d.ts +0 -12
  84. package/dist/packages/core/src/commands/unsetAllMarks.d.ts +0 -12
  85. package/dist/packages/core/src/commands/unsetMark.d.ts +0 -18
  86. package/dist/packages/core/src/commands/updateAttributes.d.ts +0 -13
  87. package/dist/packages/core/src/commands/wrapIn.d.ts +0 -13
  88. package/dist/packages/core/src/commands/wrapInList.d.ts +0 -13
  89. package/dist/packages/core/src/extensions/clipboardTextSerializer.d.ts +0 -2
  90. package/dist/packages/core/src/extensions/commands.d.ts +0 -98
  91. package/dist/packages/core/src/extensions/editable.d.ts +0 -2
  92. package/dist/packages/core/src/extensions/focusEvents.d.ts +0 -2
  93. package/dist/packages/core/src/extensions/index.d.ts +0 -6
  94. package/dist/packages/core/src/extensions/keymap.d.ts +0 -2
  95. package/dist/packages/core/src/extensions/tabindex.d.ts +0 -2
  96. package/dist/packages/core/src/helpers/createDocument.d.ts +0 -3
  97. package/dist/packages/core/src/helpers/createNodeFromContent.d.ts +0 -7
  98. package/dist/packages/core/src/helpers/findChildren.d.ts +0 -3
  99. package/dist/packages/core/src/helpers/findChildrenInRange.d.ts +0 -6
  100. package/dist/packages/core/src/helpers/findParentNode.d.ts +0 -9
  101. package/dist/packages/core/src/helpers/findParentNodeClosestToPos.d.ts +0 -8
  102. package/dist/packages/core/src/helpers/generateHTML.d.ts +0 -2
  103. package/dist/packages/core/src/helpers/generateJSON.d.ts +0 -2
  104. package/dist/packages/core/src/helpers/generateText.d.ts +0 -5
  105. package/dist/packages/core/src/helpers/getAttributes.d.ts +0 -3
  106. package/dist/packages/core/src/helpers/getAttributesFromExtensions.d.ts +0 -6
  107. package/dist/packages/core/src/helpers/getDebugJSON.d.ts +0 -8
  108. package/dist/packages/core/src/helpers/getExtensionField.d.ts +0 -2
  109. package/dist/packages/core/src/helpers/getHTMLFromFragment.d.ts +0 -2
  110. package/dist/packages/core/src/helpers/getMarkAttributes.d.ts +0 -3
  111. package/dist/packages/core/src/helpers/getMarkRange.d.ts +0 -3
  112. package/dist/packages/core/src/helpers/getMarkType.d.ts +0 -2
  113. package/dist/packages/core/src/helpers/getMarksBetween.d.ts +0 -3
  114. package/dist/packages/core/src/helpers/getNodeAttributes.d.ts +0 -3
  115. package/dist/packages/core/src/helpers/getNodeType.d.ts +0 -2
  116. package/dist/packages/core/src/helpers/getRenderedAttributes.d.ts +0 -3
  117. package/dist/packages/core/src/helpers/getSchema.d.ts +0 -3
  118. package/dist/packages/core/src/helpers/getSchemaByResolvedExtensions.d.ts +0 -3
  119. package/dist/packages/core/src/helpers/getSchemaTypeByName.d.ts +0 -2
  120. package/dist/packages/core/src/helpers/getSchemaTypeNameByName.d.ts +0 -2
  121. package/dist/packages/core/src/helpers/getSplittedAttributes.d.ts +0 -2
  122. package/dist/packages/core/src/helpers/getText.d.ts +0 -6
  123. package/dist/packages/core/src/helpers/getTextBetween.d.ts +0 -6
  124. package/dist/packages/core/src/helpers/getTextSeralizersFromSchema.d.ts +0 -3
  125. package/dist/packages/core/src/helpers/injectExtensionAttributesToParseRule.d.ts +0 -9
  126. package/dist/packages/core/src/helpers/isActive.d.ts +0 -2
  127. package/dist/packages/core/src/helpers/isList.d.ts +0 -2
  128. package/dist/packages/core/src/helpers/isMarkActive.d.ts +0 -3
  129. package/dist/packages/core/src/helpers/isNodeActive.d.ts +0 -3
  130. package/dist/packages/core/src/helpers/isNodeEmpty.d.ts +0 -2
  131. package/dist/packages/core/src/helpers/isNodeSelection.d.ts +0 -2
  132. package/dist/packages/core/src/helpers/isTextSelection.d.ts +0 -2
  133. package/dist/packages/core/src/helpers/posToDOMRect.d.ts +0 -2
  134. package/dist/packages/core/src/helpers/selectionToInsertionEnd.d.ts +0 -2
  135. package/dist/packages/core/src/helpers/splitExtensions.d.ts +0 -9
  136. package/dist/packages/core/src/index.d.ts +0 -50
  137. package/dist/packages/core/src/inputRules/markInputRule.d.ts +0 -3
  138. package/dist/packages/core/src/inputRules/nodeInputRule.d.ts +0 -3
  139. package/dist/packages/core/src/pasteRules/markPasteRule.d.ts +0 -3
  140. package/dist/packages/core/src/style.d.ts +0 -2
  141. package/dist/packages/core/src/types.d.ts +0 -194
  142. package/dist/packages/core/src/utilities/callOrReturn.d.ts +0 -9
  143. package/dist/packages/core/src/utilities/createStyleTag.d.ts +0 -1
  144. package/dist/packages/core/src/utilities/deleteProps.d.ts +0 -6
  145. package/dist/packages/core/src/utilities/elementFromString.d.ts +0 -1
  146. package/dist/packages/core/src/utilities/fromString.d.ts +0 -1
  147. package/dist/packages/core/src/utilities/isClass.d.ts +0 -1
  148. package/dist/packages/core/src/utilities/isEmptyObject.d.ts +0 -1
  149. package/dist/packages/core/src/utilities/isObject.d.ts +0 -1
  150. package/dist/packages/core/src/utilities/isPlainObject.d.ts +0 -1
  151. package/dist/packages/core/src/utilities/isRegExp.d.ts +0 -1
  152. package/dist/packages/core/src/utilities/isiOS.d.ts +0 -1
  153. package/dist/packages/core/src/utilities/mergeAttributes.d.ts +0 -1
  154. package/dist/packages/core/src/utilities/mergeDeep.d.ts +0 -1
  155. package/dist/packages/core/src/utilities/minMax.d.ts +0 -1
  156. package/dist/packages/core/src/utilities/objectIncludes.d.ts +0 -8
  157. package/dist/packages/core/src/utilities/removeElement.d.ts +0 -1
  158. package/dist/packages/extension-blockquote/src/blockquote.d.ts +0 -24
  159. package/dist/packages/extension-blockquote/src/index.d.ts +0 -3
  160. package/dist/packages/extension-bold/src/bold.d.ts +0 -27
  161. package/dist/packages/extension-bold/src/index.d.ts +0 -3
  162. package/dist/packages/extension-bubble-menu/src/bubble-menu-plugin.d.ts +0 -43
  163. package/dist/packages/extension-bubble-menu/src/bubble-menu.d.ts +0 -6
  164. package/dist/packages/extension-bubble-menu/src/index.d.ts +0 -4
  165. package/dist/packages/extension-bullet-list/src/bullet-list.d.ts +0 -16
  166. package/dist/packages/extension-bullet-list/src/index.d.ts +0 -3
  167. package/dist/packages/extension-character-count/src/character-count.d.ts +0 -7
  168. package/dist/packages/extension-character-count/src/index.d.ts +0 -3
  169. package/dist/packages/extension-code/src/code.d.ts +0 -25
  170. package/dist/packages/extension-code/src/index.d.ts +0 -3
  171. package/dist/packages/extension-code-block/src/code-block.d.ts +0 -26
  172. package/dist/packages/extension-code-block/src/index.d.ts +0 -3
  173. package/dist/packages/extension-code-block-lowlight/src/code-block-lowlight.d.ts +0 -5
  174. package/dist/packages/extension-code-block-lowlight/src/index.d.ts +0 -3
  175. package/dist/packages/extension-code-block-lowlight/src/lowlight-plugin.d.ts +0 -5
  176. package/dist/packages/extension-collaboration/src/collaboration.d.ts +0 -30
  177. package/dist/packages/extension-collaboration/src/index.d.ts +0 -3
  178. package/dist/packages/extension-collaboration-cursor/src/collaboration-cursor.d.ts +0 -21
  179. package/dist/packages/extension-collaboration-cursor/src/index.d.ts +0 -3
  180. package/dist/packages/extension-color/src/color.d.ts +0 -21
  181. package/dist/packages/extension-color/src/index.d.ts +0 -3
  182. package/dist/packages/extension-document/src/document.d.ts +0 -2
  183. package/dist/packages/extension-document/src/index.d.ts +0 -3
  184. package/dist/packages/extension-dropcursor/src/dropcursor.d.ts +0 -7
  185. package/dist/packages/extension-dropcursor/src/index.d.ts +0 -3
  186. package/dist/packages/extension-floating-menu/src/floating-menu-plugin.d.ts +0 -40
  187. package/dist/packages/extension-floating-menu/src/floating-menu.d.ts +0 -6
  188. package/dist/packages/extension-floating-menu/src/index.d.ts +0 -4
  189. package/dist/packages/extension-focus/src/focus.d.ts +0 -6
  190. package/dist/packages/extension-focus/src/index.d.ts +0 -3
  191. package/dist/packages/extension-font-family/src/font-family.d.ts +0 -21
  192. package/dist/packages/extension-font-family/src/index.d.ts +0 -3
  193. package/dist/packages/extension-gapcursor/src/index.d.ts +0 -3
  194. package/dist/packages/extension-hard-break/src/hard-break.d.ts +0 -16
  195. package/dist/packages/extension-hard-break/src/index.d.ts +0 -3
  196. package/dist/packages/extension-heading/src/heading.d.ts +0 -26
  197. package/dist/packages/extension-heading/src/index.d.ts +0 -3
  198. package/dist/packages/extension-highlight/src/highlight.d.ts +0 -30
  199. package/dist/packages/extension-highlight/src/index.d.ts +0 -3
  200. package/dist/packages/extension-history/src/history.d.ts +0 -20
  201. package/dist/packages/extension-history/src/index.d.ts +0 -3
  202. package/dist/packages/extension-horizontal-rule/src/horizontal-rule.d.ts +0 -15
  203. package/dist/packages/extension-horizontal-rule/src/index.d.ts +0 -3
  204. package/dist/packages/extension-image/src/image.d.ts +0 -21
  205. package/dist/packages/extension-image/src/index.d.ts +0 -3
  206. package/dist/packages/extension-italic/src/index.d.ts +0 -3
  207. package/dist/packages/extension-italic/src/italic.d.ts +0 -27
  208. package/dist/packages/extension-link/src/index.d.ts +0 -3
  209. package/dist/packages/extension-link/src/link.d.ts +0 -48
  210. package/dist/packages/extension-list-item/src/index.d.ts +0 -3
  211. package/dist/packages/extension-list-item/src/list-item.d.ts +0 -5
  212. package/dist/packages/extension-mention/src/index.d.ts +0 -3
  213. package/dist/packages/extension-mention/src/mention.d.ts +0 -14
  214. package/dist/packages/extension-ordered-list/src/index.d.ts +0 -3
  215. package/dist/packages/extension-ordered-list/src/ordered-list.d.ts +0 -16
  216. package/dist/packages/extension-paragraph/src/index.d.ts +0 -3
  217. package/dist/packages/extension-paragraph/src/paragraph.d.ts +0 -15
  218. package/dist/packages/extension-placeholder/src/index.d.ts +0 -3
  219. package/dist/packages/extension-placeholder/src/placeholder.d.ts +0 -14
  220. package/dist/packages/extension-strike/src/index.d.ts +0 -3
  221. package/dist/packages/extension-strike/src/strike.d.ts +0 -25
  222. package/dist/packages/extension-subscript/src/index.d.ts +0 -3
  223. package/dist/packages/extension-subscript/src/subscript.d.ts +0 -23
  224. package/dist/packages/extension-superscript/src/index.d.ts +0 -3
  225. package/dist/packages/extension-superscript/src/superscript.d.ts +0 -23
  226. package/dist/packages/extension-table/src/TableView.d.ts +0 -17
  227. package/dist/packages/extension-table/src/index.d.ts +0 -4
  228. package/dist/packages/extension-table/src/table.d.ts +0 -54
  229. package/dist/packages/extension-table/src/utilities/createCell.d.ts +0 -2
  230. package/dist/packages/extension-table/src/utilities/createTable.d.ts +0 -2
  231. package/dist/packages/extension-table/src/utilities/deleteTableWhenAllCellsSelected.d.ts +0 -2
  232. package/dist/packages/extension-table/src/utilities/getTableNodeTypes.d.ts +0 -4
  233. package/dist/packages/extension-table/src/utilities/isCellSelection.d.ts +0 -2
  234. package/dist/packages/extension-table-cell/src/index.d.ts +0 -3
  235. package/dist/packages/extension-table-cell/src/table-cell.d.ts +0 -5
  236. package/dist/packages/extension-table-header/src/index.d.ts +0 -3
  237. package/dist/packages/extension-table-header/src/table-header.d.ts +0 -5
  238. package/dist/packages/extension-table-row/src/index.d.ts +0 -3
  239. package/dist/packages/extension-table-row/src/table-row.d.ts +0 -5
  240. package/dist/packages/extension-task-item/src/index.d.ts +0 -3
  241. package/dist/packages/extension-task-item/src/task-item.d.ts +0 -7
  242. package/dist/packages/extension-task-list/src/index.d.ts +0 -3
  243. package/dist/packages/extension-task-list/src/task-list.d.ts +0 -15
  244. package/dist/packages/extension-text/src/index.d.ts +0 -3
  245. package/dist/packages/extension-text/src/text.d.ts +0 -2
  246. package/dist/packages/extension-text-align/src/index.d.ts +0 -3
  247. package/dist/packages/extension-text-align/src/text-align.d.ts +0 -21
  248. package/dist/packages/extension-text-style/src/index.d.ts +0 -3
  249. package/dist/packages/extension-text-style/src/text-style.d.ts +0 -15
  250. package/dist/packages/extension-typography/src/index.d.ts +0 -3
  251. package/dist/packages/extension-typography/src/typography.d.ts +0 -18
  252. package/dist/packages/extension-underline/src/index.d.ts +0 -3
  253. package/dist/packages/extension-underline/src/underline.d.ts +0 -23
  254. package/dist/packages/html/src/generateHTML.d.ts +0 -2
  255. package/dist/packages/html/src/generateJSON.d.ts +0 -2
  256. package/dist/packages/html/src/getHTMLFromFragment.d.ts +0 -2
  257. package/dist/packages/html/src/index.d.ts +0 -2
  258. package/dist/packages/react/src/BubbleMenu.d.ts +0 -8
  259. package/dist/packages/react/src/Editor.d.ts +0 -6
  260. package/dist/packages/react/src/EditorContent.d.ts +0 -19
  261. package/dist/packages/react/src/FloatingMenu.d.ts +0 -8
  262. package/dist/packages/react/src/NodeViewContent.d.ts +0 -6
  263. package/dist/packages/react/src/NodeViewWrapper.d.ts +0 -6
  264. package/dist/packages/react/src/ReactNodeViewRenderer.d.ts +0 -13
  265. package/dist/packages/react/src/ReactRenderer.d.ts +0 -25
  266. package/dist/packages/react/src/index.d.ts +0 -10
  267. package/dist/packages/react/src/useEditor.d.ts +0 -4
  268. package/dist/packages/react/src/useReactNodeView.d.ts +0 -7
  269. package/dist/packages/starter-kit/src/index.d.ts +0 -3
  270. package/dist/packages/starter-kit/src/starter-kit.d.ts +0 -37
  271. package/dist/packages/suggestion/src/findSuggestionMatch.d.ts +0 -15
  272. package/dist/packages/suggestion/src/index.d.ts +0 -4
  273. package/dist/packages/suggestion/src/suggestion.d.ts +0 -46
  274. package/dist/packages/vue-2/src/BubbleMenu.d.ts +0 -9
  275. package/dist/packages/vue-2/src/Editor.d.ts +0 -5
  276. package/dist/packages/vue-2/src/EditorContent.d.ts +0 -6
  277. package/dist/packages/vue-2/src/FloatingMenu.d.ts +0 -9
  278. package/dist/packages/vue-2/src/NodeViewContent.d.ts +0 -5
  279. package/dist/packages/vue-2/src/NodeViewWrapper.d.ts +0 -9
  280. package/dist/packages/vue-2/src/VueNodeViewRenderer.d.ts +0 -51
  281. package/dist/packages/vue-2/src/VueRenderer.d.ts +0 -9
  282. package/dist/packages/vue-2/src/index.d.ts +0 -9
  283. package/dist/packages/vue-3/src/BubbleMenu.d.ts +0 -56
  284. package/dist/packages/vue-3/src/Editor.d.ts +0 -22
  285. package/dist/packages/vue-3/src/EditorContent.d.ts +0 -16
  286. package/dist/packages/vue-3/src/FloatingMenu.d.ts +0 -50
  287. package/dist/packages/vue-3/src/NodeViewContent.d.ts +0 -12
  288. package/dist/packages/vue-3/src/NodeViewWrapper.d.ts +0 -12
  289. package/dist/packages/vue-3/src/VueNodeViewRenderer.d.ts +0 -50
  290. package/dist/packages/vue-3/src/VueRenderer.d.ts +0 -19
  291. package/dist/packages/vue-3/src/index.d.ts +0 -10
  292. package/dist/packages/vue-3/src/useEditor.d.ts +0 -3
  293. package/dist/tests/cypress/integration/core/can.spec.d.ts +0 -1
  294. package/dist/tests/cypress/integration/core/editorProps.spec.d.ts +0 -1
  295. package/dist/tests/cypress/integration/core/extendExtensions.spec.d.ts +0 -1
  296. package/dist/tests/cypress/integration/core/extendMarkRange.spec.d.ts +0 -1
  297. package/dist/tests/cypress/integration/core/extensionOptions.spec.d.ts +0 -1
  298. package/dist/tests/cypress/integration/core/fromString.spec.d.ts +0 -1
  299. package/dist/tests/cypress/integration/core/generateHTML.spec.d.ts +0 -1
  300. package/dist/tests/cypress/integration/core/generateJSON.spec.d.ts +0 -1
  301. package/dist/tests/cypress/integration/core/isActive.spec.d.ts +0 -1
  302. package/dist/tests/cypress/integration/core/isClass.spec.d.ts +0 -1
  303. package/dist/tests/cypress/integration/core/mergeAttributes.spec.d.ts +0 -1
  304. package/dist/tests/cypress/integration/core/mergeDeep.spec.d.ts +0 -1
  305. package/dist/tests/cypress/integration/extensions/bold.spec.d.ts +0 -1
  306. package/dist/tests/cypress/integration/extensions/codeBlockLowlight.spec.d.ts +0 -1
  307. package/dist/tests/cypress/integration/extensions/link.spec.d.ts +0 -1
  308. package/dist/tests/cypress/integration/html/generateHTML.spec.d.ts +0 -1
  309. package/dist/tests/cypress/integration/html/generateJSON.spec.d.ts +0 -1
  310. package/dist/tiptap-extension-gapcursor.cjs.js +0 -29
  311. package/dist/tiptap-extension-gapcursor.cjs.js.map +0 -1
  312. package/dist/tiptap-extension-gapcursor.esm.js +0 -24
  313. package/dist/tiptap-extension-gapcursor.esm.js.map +0 -1
  314. package/dist/tiptap-extension-gapcursor.umd.js +0 -32
  315. package/dist/tiptap-extension-gapcursor.umd.js.map +0 -1
@@ -1,339 +0,0 @@
1
- import { DOMOutputSpec, NodeSpec, Node as ProseMirrorNode, NodeType } from 'prosemirror-model';
2
- import { Plugin, Transaction } from 'prosemirror-state';
3
- import { InputRule } from 'prosemirror-inputrules';
4
- import { Extensions, Attributes, NodeViewRenderer, GlobalAttributes, RawCommands, ParentConfig, KeyboardShortcutCommand } from './types';
5
- import { NodeConfig } from '.';
6
- import { Editor } from './Editor';
7
- declare module '@tiptap/core' {
8
- interface NodeConfig<Options = any> {
9
- [key: string]: any;
10
- /**
11
- * Name
12
- */
13
- name: string;
14
- /**
15
- * Priority
16
- */
17
- priority?: number;
18
- /**
19
- * Default options
20
- */
21
- defaultOptions?: Options;
22
- /**
23
- * Global attributes
24
- */
25
- addGlobalAttributes?: (this: {
26
- name: string;
27
- options: Options;
28
- parent: ParentConfig<NodeConfig<Options>>['addGlobalAttributes'];
29
- }) => GlobalAttributes | {};
30
- /**
31
- * Raw
32
- */
33
- addCommands?: (this: {
34
- name: string;
35
- options: Options;
36
- editor: Editor;
37
- type: NodeType;
38
- parent: ParentConfig<NodeConfig<Options>>['addCommands'];
39
- }) => Partial<RawCommands>;
40
- /**
41
- * Keyboard shortcuts
42
- */
43
- addKeyboardShortcuts?: (this: {
44
- name: string;
45
- options: Options;
46
- editor: Editor;
47
- type: NodeType;
48
- parent: ParentConfig<NodeConfig<Options>>['addKeyboardShortcuts'];
49
- }) => {
50
- [key: string]: KeyboardShortcutCommand;
51
- };
52
- /**
53
- * Input rules
54
- */
55
- addInputRules?: (this: {
56
- name: string;
57
- options: Options;
58
- editor: Editor;
59
- type: NodeType;
60
- parent: ParentConfig<NodeConfig<Options>>['addInputRules'];
61
- }) => InputRule[];
62
- /**
63
- * Paste rules
64
- */
65
- addPasteRules?: (this: {
66
- name: string;
67
- options: Options;
68
- editor: Editor;
69
- type: NodeType;
70
- parent: ParentConfig<NodeConfig<Options>>['addPasteRules'];
71
- }) => Plugin[];
72
- /**
73
- * ProseMirror plugins
74
- */
75
- addProseMirrorPlugins?: (this: {
76
- name: string;
77
- options: Options;
78
- editor: Editor;
79
- type: NodeType;
80
- parent: ParentConfig<NodeConfig<Options>>['addProseMirrorPlugins'];
81
- }) => Plugin[];
82
- /**
83
- * Extensions
84
- */
85
- addExtensions?: (this: {
86
- name: string;
87
- options: Options;
88
- parent: ParentConfig<NodeConfig<Options>>['addExtensions'];
89
- }) => Extensions;
90
- /**
91
- * Extend Node Schema
92
- */
93
- extendNodeSchema?: ((this: {
94
- name: string;
95
- options: Options;
96
- parent: ParentConfig<NodeConfig<Options>>['extendNodeSchema'];
97
- }, extension: Node) => Record<string, any>) | null;
98
- /**
99
- * Extend Mark Schema
100
- */
101
- extendMarkSchema?: ((this: {
102
- name: string;
103
- options: Options;
104
- parent: ParentConfig<NodeConfig<Options>>['extendMarkSchema'];
105
- }, extension: Node) => Record<string, any>) | null;
106
- /**
107
- * The editor is not ready yet.
108
- */
109
- onBeforeCreate?: ((this: {
110
- name: string;
111
- options: Options;
112
- editor: Editor;
113
- type: NodeType;
114
- parent: ParentConfig<NodeConfig<Options>>['onBeforeCreate'];
115
- }) => void) | null;
116
- /**
117
- * The editor is ready.
118
- */
119
- onCreate?: ((this: {
120
- name: string;
121
- options: Options;
122
- editor: Editor;
123
- type: NodeType;
124
- parent: ParentConfig<NodeConfig<Options>>['onCreate'];
125
- }) => void) | null;
126
- /**
127
- * The content has changed.
128
- */
129
- onUpdate?: ((this: {
130
- name: string;
131
- options: Options;
132
- editor: Editor;
133
- type: NodeType;
134
- parent: ParentConfig<NodeConfig<Options>>['onUpdate'];
135
- }) => void) | null;
136
- /**
137
- * The selection has changed.
138
- */
139
- onSelectionUpdate?: ((this: {
140
- name: string;
141
- options: Options;
142
- editor: Editor;
143
- type: NodeType;
144
- parent: ParentConfig<NodeConfig<Options>>['onSelectionUpdate'];
145
- }) => void) | null;
146
- /**
147
- * The editor state has changed.
148
- */
149
- onTransaction?: ((this: {
150
- name: string;
151
- options: Options;
152
- editor: Editor;
153
- type: NodeType;
154
- parent: ParentConfig<NodeConfig<Options>>['onTransaction'];
155
- }, props: {
156
- transaction: Transaction;
157
- }) => void) | null;
158
- /**
159
- * The editor is focused.
160
- */
161
- onFocus?: ((this: {
162
- name: string;
163
- options: Options;
164
- editor: Editor;
165
- type: NodeType;
166
- parent: ParentConfig<NodeConfig<Options>>['onFocus'];
167
- }, props: {
168
- event: FocusEvent;
169
- }) => void) | null;
170
- /**
171
- * The editor isn’t focused anymore.
172
- */
173
- onBlur?: ((this: {
174
- name: string;
175
- options: Options;
176
- editor: Editor;
177
- type: NodeType;
178
- parent: ParentConfig<NodeConfig<Options>>['onBlur'];
179
- }, props: {
180
- event: FocusEvent;
181
- }) => void) | null;
182
- /**
183
- * The editor is destroyed.
184
- */
185
- onDestroy?: ((this: {
186
- name: string;
187
- options: Options;
188
- editor: Editor;
189
- type: NodeType;
190
- parent: ParentConfig<NodeConfig<Options>>['onDestroy'];
191
- }) => void) | null;
192
- /**
193
- * Node View
194
- */
195
- addNodeView?: ((this: {
196
- name: string;
197
- options: Options;
198
- editor: Editor;
199
- type: NodeType;
200
- parent: ParentConfig<NodeConfig<Options>>['addNodeView'];
201
- }) => NodeViewRenderer) | null;
202
- /**
203
- * TopNode
204
- */
205
- topNode?: boolean;
206
- /**
207
- * Content
208
- */
209
- content?: NodeSpec['content'] | ((this: {
210
- name: string;
211
- options: Options;
212
- parent: ParentConfig<NodeConfig<Options>>['content'];
213
- }) => NodeSpec['content']);
214
- /**
215
- * Marks
216
- */
217
- marks?: NodeSpec['marks'] | ((this: {
218
- name: string;
219
- options: Options;
220
- parent: ParentConfig<NodeConfig<Options>>['marks'];
221
- }) => NodeSpec['marks']);
222
- /**
223
- * Group
224
- */
225
- group?: NodeSpec['group'] | ((this: {
226
- name: string;
227
- options: Options;
228
- parent: ParentConfig<NodeConfig<Options>>['group'];
229
- }) => NodeSpec['group']);
230
- /**
231
- * Inline
232
- */
233
- inline?: NodeSpec['inline'] | ((this: {
234
- name: string;
235
- options: Options;
236
- parent: ParentConfig<NodeConfig<Options>>['inline'];
237
- }) => NodeSpec['inline']);
238
- /**
239
- * Atom
240
- */
241
- atom?: NodeSpec['atom'] | ((this: {
242
- name: string;
243
- options: Options;
244
- parent: ParentConfig<NodeConfig<Options>>['atom'];
245
- }) => NodeSpec['atom']);
246
- /**
247
- * Selectable
248
- */
249
- selectable?: NodeSpec['selectable'] | ((this: {
250
- name: string;
251
- options: Options;
252
- parent: ParentConfig<NodeConfig<Options>>['selectable'];
253
- }) => NodeSpec['selectable']);
254
- /**
255
- * Draggable
256
- */
257
- draggable?: NodeSpec['draggable'] | ((this: {
258
- name: string;
259
- options: Options;
260
- parent: ParentConfig<NodeConfig<Options>>['draggable'];
261
- }) => NodeSpec['draggable']);
262
- /**
263
- * Code
264
- */
265
- code?: NodeSpec['code'] | ((this: {
266
- name: string;
267
- options: Options;
268
- parent: ParentConfig<NodeConfig<Options>>['code'];
269
- }) => NodeSpec['code']);
270
- /**
271
- * Defining
272
- */
273
- defining?: NodeSpec['defining'] | ((this: {
274
- name: string;
275
- options: Options;
276
- parent: ParentConfig<NodeConfig<Options>>['defining'];
277
- }) => NodeSpec['defining']);
278
- /**
279
- * Isolating
280
- */
281
- isolating?: NodeSpec['isolating'] | ((this: {
282
- name: string;
283
- options: Options;
284
- parent: ParentConfig<NodeConfig<Options>>['isolating'];
285
- }) => NodeSpec['isolating']);
286
- /**
287
- * Parse HTML
288
- */
289
- parseHTML?: (this: {
290
- name: string;
291
- options: Options;
292
- parent: ParentConfig<NodeConfig<Options>>['parseHTML'];
293
- }) => NodeSpec['parseDOM'];
294
- /**
295
- * Render HTML
296
- */
297
- renderHTML?: ((this: {
298
- name: string;
299
- options: Options;
300
- parent: ParentConfig<NodeConfig<Options>>['renderHTML'];
301
- }, props: {
302
- node: ProseMirrorNode;
303
- HTMLAttributes: Record<string, any>;
304
- }) => DOMOutputSpec) | null;
305
- /**
306
- * Render Text
307
- */
308
- renderText?: ((this: {
309
- name: string;
310
- options: Options;
311
- parent: ParentConfig<NodeConfig<Options>>['renderText'];
312
- }, props: {
313
- node: ProseMirrorNode;
314
- pos: number;
315
- parent: ProseMirrorNode;
316
- index: number;
317
- }) => string) | null;
318
- /**
319
- * Add Attributes
320
- */
321
- addAttributes?: (this: {
322
- name: string;
323
- options: Options;
324
- parent: ParentConfig<NodeConfig<Options>>['addAttributes'];
325
- }) => Attributes | {};
326
- }
327
- }
328
- export declare class Node<Options = any> {
329
- type: string;
330
- name: string;
331
- parent: Node | null;
332
- child: Node | null;
333
- options: Options;
334
- config: NodeConfig;
335
- constructor(config?: Partial<NodeConfig<Options>>);
336
- static create<O>(config?: Partial<NodeConfig<O>>): Node<O>;
337
- configure(options?: Partial<Options>): Node<Options>;
338
- extend<ExtendedOptions = Options>(extendedConfig?: Partial<NodeConfig<ExtendedOptions>>): Node<ExtendedOptions>;
339
- }
@@ -1,27 +0,0 @@
1
- import { Decoration, NodeView as ProseMirrorNodeView } from 'prosemirror-view';
2
- import { Node as ProseMirrorNode } from 'prosemirror-model';
3
- import { Editor as CoreEditor } from './Editor';
4
- import { Node } from './Node';
5
- import { NodeViewRendererProps, NodeViewRendererOptions } from './types';
6
- export declare class NodeView<Component, Editor extends CoreEditor = CoreEditor, Options extends NodeViewRendererOptions = NodeViewRendererOptions> implements ProseMirrorNodeView {
7
- component: Component;
8
- editor: Editor;
9
- options: Options;
10
- extension: Node;
11
- node: ProseMirrorNode;
12
- decorations: Decoration[];
13
- getPos: any;
14
- isDragging: boolean;
15
- constructor(component: Component, props: NodeViewRendererProps, options?: Partial<Options>);
16
- mount(): void;
17
- get dom(): Element | null;
18
- get contentDOM(): Element | null;
19
- onDragStart(event: DragEvent): void;
20
- stopEvent(event: Event): boolean;
21
- ignoreMutation(mutation: MutationRecord | {
22
- type: 'selection';
23
- target: Element;
24
- }): boolean;
25
- updateAttributes(attributes: {}): void;
26
- deleteNode(): void;
27
- }
@@ -1,11 +0,0 @@
1
- import { Transaction } from 'prosemirror-state';
2
- export interface TrackerResult {
3
- position: number;
4
- deleted: boolean;
5
- }
6
- export declare class Tracker {
7
- transaction: Transaction;
8
- currentStep: number;
9
- constructor(transaction: Transaction);
10
- map(position: number): TrackerResult;
11
- }
@@ -1,12 +0,0 @@
1
- import { RawCommands } from '../types';
2
- declare module '@tiptap/core' {
3
- interface Commands<ReturnType> {
4
- blur: {
5
- /**
6
- * Removes focus from the editor.
7
- */
8
- blur: () => ReturnType;
9
- };
10
- }
11
- }
12
- export declare const blur: RawCommands['blur'];
@@ -1,12 +0,0 @@
1
- import { RawCommands } from '../types';
2
- declare module '@tiptap/core' {
3
- interface Commands<ReturnType> {
4
- clearContent: {
5
- /**
6
- * Clear the whole document.
7
- */
8
- clearContent: (emitUpdate?: boolean) => ReturnType;
9
- };
10
- }
11
- }
12
- export declare const clearContent: RawCommands['clearContent'];
@@ -1,12 +0,0 @@
1
- import { RawCommands } from '../types';
2
- declare module '@tiptap/core' {
3
- interface Commands<ReturnType> {
4
- clearNodes: {
5
- /**
6
- * Normalize nodes to a simple paragraph.
7
- */
8
- clearNodes: () => ReturnType;
9
- };
10
- }
11
- }
12
- export declare const clearNodes: RawCommands['clearNodes'];
@@ -1,12 +0,0 @@
1
- import { Command, RawCommands } from '../types';
2
- declare module '@tiptap/core' {
3
- interface Commands<ReturnType> {
4
- command: {
5
- /**
6
- * Define a command inline.
7
- */
8
- command: (fn: (props: Parameters<Command>[0]) => boolean) => ReturnType;
9
- };
10
- }
11
- }
12
- export declare const command: RawCommands['command'];
@@ -1,12 +0,0 @@
1
- import { RawCommands } from '../types';
2
- declare module '@tiptap/core' {
3
- interface Commands<ReturnType> {
4
- createParagraphNear: {
5
- /**
6
- * Create a paragraph nearby.
7
- */
8
- createParagraphNear: () => ReturnType;
9
- };
10
- }
11
- }
12
- export declare const createParagraphNear: RawCommands['createParagraphNear'];
@@ -1,13 +0,0 @@
1
- import { NodeType } from 'prosemirror-model';
2
- import { RawCommands } from '../types';
3
- declare module '@tiptap/core' {
4
- interface Commands<ReturnType> {
5
- deleteNode: {
6
- /**
7
- * Delete a node.
8
- */
9
- deleteNode: (typeOrName: string | NodeType) => ReturnType;
10
- };
11
- }
12
- }
13
- export declare const deleteNode: RawCommands['deleteNode'];
@@ -1,12 +0,0 @@
1
- import { RawCommands, Range } from '../types';
2
- declare module '@tiptap/core' {
3
- interface Commands<ReturnType> {
4
- deleteRange: {
5
- /**
6
- * Delete a given range.
7
- */
8
- deleteRange: (range: Range) => ReturnType;
9
- };
10
- }
11
- }
12
- export declare const deleteRange: RawCommands['deleteRange'];
@@ -1,12 +0,0 @@
1
- import { RawCommands } from '../types';
2
- declare module '@tiptap/core' {
3
- interface Commands<ReturnType> {
4
- deleteSelection: {
5
- /**
6
- * Delete the selection, if there is one.
7
- */
8
- deleteSelection: () => ReturnType;
9
- };
10
- }
11
- }
12
- export declare const deleteSelection: RawCommands['deleteSelection'];
@@ -1,12 +0,0 @@
1
- import { RawCommands } from '../types';
2
- declare module '@tiptap/core' {
3
- interface Commands<ReturnType> {
4
- enter: {
5
- /**
6
- * Trigger enter.
7
- */
8
- enter: () => ReturnType;
9
- };
10
- }
11
- }
12
- export declare const enter: RawCommands['enter'];
@@ -1,12 +0,0 @@
1
- import { RawCommands } from '../types';
2
- declare module '@tiptap/core' {
3
- interface Commands<ReturnType> {
4
- exitCode: {
5
- /**
6
- * Exit from a code block.
7
- */
8
- exitCode: () => ReturnType;
9
- };
10
- }
11
- }
12
- export declare const exitCode: RawCommands['exitCode'];
@@ -1,13 +0,0 @@
1
- import { MarkType } from 'prosemirror-model';
2
- import { RawCommands } from '../types';
3
- declare module '@tiptap/core' {
4
- interface Commands<ReturnType> {
5
- extendMarkRange: {
6
- /**
7
- * Extends the text selection to the current mark.
8
- */
9
- extendMarkRange: (typeOrName: string | MarkType, attributes?: Record<string, any>) => ReturnType;
10
- };
11
- }
12
- }
13
- export declare const extendMarkRange: RawCommands['extendMarkRange'];
@@ -1,12 +0,0 @@
1
- import { Command, CommandProps, RawCommands } from '../types';
2
- declare module '@tiptap/core' {
3
- interface Commands<ReturnType> {
4
- first: {
5
- /**
6
- * Runs one command after the other and stops at the first which returns true.
7
- */
8
- first: (commands: Command[] | ((props: CommandProps) => Command[])) => ReturnType;
9
- };
10
- }
11
- }
12
- export declare const first: RawCommands['first'];
@@ -1,12 +0,0 @@
1
- import { RawCommands, FocusPosition } from '../types';
2
- declare module '@tiptap/core' {
3
- interface Commands<ReturnType> {
4
- focus: {
5
- /**
6
- * Focus the editor at the given position.
7
- */
8
- focus: (position?: FocusPosition) => ReturnType;
9
- };
10
- }
11
- }
12
- export declare const focus: RawCommands['focus'];
@@ -1,14 +0,0 @@
1
- import { CommandProps, RawCommands } from '../types';
2
- declare module '@tiptap/core' {
3
- interface Commands<ReturnType> {
4
- forEach: {
5
- /**
6
- * Loop through an array of items.
7
- */
8
- forEach: <T>(items: T[], fn: (item: T, props: CommandProps & {
9
- index: number;
10
- }) => boolean) => ReturnType;
11
- };
12
- }
13
- }
14
- export declare const forEach: RawCommands['forEach'];
@@ -1,13 +0,0 @@
1
- import { CreateNodeFromContentOptions } from '../helpers/createNodeFromContent';
2
- import { RawCommands, Content } from '../types';
3
- declare module '@tiptap/core' {
4
- interface Commands<ReturnType> {
5
- insertContent: {
6
- /**
7
- * Insert a node or string of HTML at the current position.
8
- */
9
- insertContent: (value: Content, options?: CreateNodeFromContentOptions) => ReturnType;
10
- };
11
- }
12
- }
13
- export declare const insertContent: RawCommands['insertContent'];
@@ -1,13 +0,0 @@
1
- import { CreateNodeFromContentOptions } from '../helpers/createNodeFromContent';
2
- import { RawCommands, Content, Range } from '../types';
3
- declare module '@tiptap/core' {
4
- interface Commands<ReturnType> {
5
- insertContentAt: {
6
- /**
7
- * Insert a node or string of HTML at a specific position.
8
- */
9
- insertContentAt: (position: number | Range, value: Content, options?: CreateNodeFromContentOptions) => ReturnType;
10
- };
11
- }
12
- }
13
- export declare const insertContentAt: RawCommands['insertContentAt'];
@@ -1,12 +0,0 @@
1
- import { RawCommands } from '../types';
2
- declare module '@tiptap/core' {
3
- interface Commands<ReturnType> {
4
- joinBackward: {
5
- /**
6
- * Join two nodes backward.
7
- */
8
- joinBackward: () => ReturnType;
9
- };
10
- }
11
- }
12
- export declare const joinBackward: RawCommands['joinBackward'];
@@ -1,12 +0,0 @@
1
- import { RawCommands } from '../types';
2
- declare module '@tiptap/core' {
3
- interface Commands<ReturnType> {
4
- joinForward: {
5
- /**
6
- * Join two nodes forward.
7
- */
8
- joinForward: () => ReturnType;
9
- };
10
- }
11
- }
12
- export declare const joinForward: RawCommands['joinForward'];
@@ -1,12 +0,0 @@
1
- import { RawCommands } from '../types';
2
- declare module '@tiptap/core' {
3
- interface Commands<ReturnType> {
4
- keyboardShortcut: {
5
- /**
6
- * Trigger a keyboard shortcut.
7
- */
8
- keyboardShortcut: (name: string) => ReturnType;
9
- };
10
- }
11
- }
12
- export declare const keyboardShortcut: RawCommands['keyboardShortcut'];
@@ -1,13 +0,0 @@
1
- import { NodeType } from 'prosemirror-model';
2
- import { RawCommands } from '../types';
3
- declare module '@tiptap/core' {
4
- interface Commands<ReturnType> {
5
- lift: {
6
- /**
7
- * Removes an existing wrap.
8
- */
9
- lift: (typeOrName: string | NodeType, attributes?: Record<string, any>) => ReturnType;
10
- };
11
- }
12
- }
13
- export declare const lift: RawCommands['lift'];
@@ -1,12 +0,0 @@
1
- import { RawCommands } from '../types';
2
- declare module '@tiptap/core' {
3
- interface Commands<ReturnType> {
4
- liftEmptyBlock: {
5
- /**
6
- * Lift block if empty.
7
- */
8
- liftEmptyBlock: () => ReturnType;
9
- };
10
- }
11
- }
12
- export declare const liftEmptyBlock: RawCommands['liftEmptyBlock'];