@tiptap/extension-gapcursor 2.0.0-beta.20 → 2.0.0-beta.201

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 (311) hide show
  1. package/dist/packages/extension-gapcursor/src/gapcursor.d.ts +3 -2
  2. package/dist/tiptap-extension-gapcursor.cjs.js +2 -1
  3. package/dist/tiptap-extension-gapcursor.cjs.js.map +1 -1
  4. package/dist/tiptap-extension-gapcursor.esm.js +1 -0
  5. package/dist/tiptap-extension-gapcursor.esm.js.map +1 -1
  6. package/dist/tiptap-extension-gapcursor.umd.js +5 -4
  7. package/dist/tiptap-extension-gapcursor.umd.js.map +1 -1
  8. package/package.json +4 -6
  9. package/src/gapcursor.ts +4 -2
  10. package/LICENSE.md +0 -21
  11. package/dist/demos/setup/helper.d.ts +0 -2
  12. package/dist/demos/setup/react.d.ts +0 -3
  13. package/dist/demos/setup/vue.d.ts +0 -3
  14. package/dist/demos/src/Examples/Savvy/Vue/ColorHighlighter.d.ts +0 -2
  15. package/dist/demos/src/Examples/Savvy/Vue/SmilieReplacer.d.ts +0 -2
  16. package/dist/demos/src/Examples/Savvy/Vue/findColors.d.ts +0 -3
  17. package/dist/demos/src/Experiments/CollaborationAnnotation/Vue/extension/AnnotationItem.d.ts +0 -10
  18. package/dist/demos/src/Experiments/CollaborationAnnotation/Vue/extension/AnnotationPlugin.d.ts +0 -12
  19. package/dist/demos/src/Experiments/CollaborationAnnotation/Vue/extension/AnnotationState.d.ts +0 -27
  20. package/dist/demos/src/Experiments/CollaborationAnnotation/Vue/extension/collaboration-annotation.d.ts +0 -49
  21. package/dist/demos/src/Experiments/CollaborationAnnotation/Vue/extension/index.d.ts +0 -3
  22. package/dist/demos/src/Experiments/Details/Vue/details-summary.d.ts +0 -8
  23. package/dist/demos/src/Experiments/Details/Vue/details.d.ts +0 -26
  24. package/dist/demos/src/Experiments/Embeds/Vue/iframe.d.ts +0 -21
  25. package/dist/demos/src/Experiments/Figure/Vue/figure.d.ts +0 -29
  26. package/dist/demos/src/Experiments/GenericFigure/Vue/figcaption.d.ts +0 -4
  27. package/dist/demos/src/Experiments/GenericFigure/Vue/figure.d.ts +0 -4
  28. package/dist/demos/src/Experiments/Linter/Vue/extension/Linter.d.ts +0 -6
  29. package/dist/demos/src/Experiments/Linter/Vue/extension/LinterPlugin.d.ts +0 -15
  30. package/dist/demos/src/Experiments/Linter/Vue/extension/index.d.ts +0 -6
  31. package/dist/demos/src/Experiments/Linter/Vue/extension/plugins/BadWords.d.ts +0 -5
  32. package/dist/demos/src/Experiments/Linter/Vue/extension/plugins/HeadingLevel.d.ts +0 -6
  33. package/dist/demos/src/Experiments/Linter/Vue/extension/plugins/Punctuation.d.ts +0 -7
  34. package/dist/demos/src/Experiments/TrailingNode/Vue/trailing-node.d.ts +0 -11
  35. package/dist/demos/vite.config.d.ts +0 -2
  36. package/dist/packages/core/src/CommandManager.d.ts +0 -13
  37. package/dist/packages/core/src/Editor.d.ts +0 -140
  38. package/dist/packages/core/src/EventEmitter.d.ts +0 -7
  39. package/dist/packages/core/src/Extension.d.ts +0 -193
  40. package/dist/packages/core/src/ExtensionManager.d.ts +0 -18
  41. package/dist/packages/core/src/Mark.d.ts +0 -269
  42. package/dist/packages/core/src/Node.d.ts +0 -339
  43. package/dist/packages/core/src/NodeView.d.ts +0 -27
  44. package/dist/packages/core/src/Tracker.d.ts +0 -11
  45. package/dist/packages/core/src/commands/blur.d.ts +0 -12
  46. package/dist/packages/core/src/commands/clearContent.d.ts +0 -12
  47. package/dist/packages/core/src/commands/clearNodes.d.ts +0 -12
  48. package/dist/packages/core/src/commands/command.d.ts +0 -12
  49. package/dist/packages/core/src/commands/createParagraphNear.d.ts +0 -12
  50. package/dist/packages/core/src/commands/deleteNode.d.ts +0 -13
  51. package/dist/packages/core/src/commands/deleteRange.d.ts +0 -12
  52. package/dist/packages/core/src/commands/deleteSelection.d.ts +0 -12
  53. package/dist/packages/core/src/commands/enter.d.ts +0 -12
  54. package/dist/packages/core/src/commands/exitCode.d.ts +0 -12
  55. package/dist/packages/core/src/commands/extendMarkRange.d.ts +0 -13
  56. package/dist/packages/core/src/commands/first.d.ts +0 -12
  57. package/dist/packages/core/src/commands/focus.d.ts +0 -12
  58. package/dist/packages/core/src/commands/forEach.d.ts +0 -14
  59. package/dist/packages/core/src/commands/insertContent.d.ts +0 -13
  60. package/dist/packages/core/src/commands/insertContentAt.d.ts +0 -13
  61. package/dist/packages/core/src/commands/joinBackward.d.ts +0 -12
  62. package/dist/packages/core/src/commands/joinForward.d.ts +0 -12
  63. package/dist/packages/core/src/commands/keyboardShortcut.d.ts +0 -12
  64. package/dist/packages/core/src/commands/lift.d.ts +0 -13
  65. package/dist/packages/core/src/commands/liftEmptyBlock.d.ts +0 -12
  66. package/dist/packages/core/src/commands/liftListItem.d.ts +0 -13
  67. package/dist/packages/core/src/commands/newlineInCode.d.ts +0 -12
  68. package/dist/packages/core/src/commands/resetAttributes.d.ts +0 -13
  69. package/dist/packages/core/src/commands/scrollIntoView.d.ts +0 -12
  70. package/dist/packages/core/src/commands/selectAll.d.ts +0 -12
  71. package/dist/packages/core/src/commands/selectNodeBackward.d.ts +0 -12
  72. package/dist/packages/core/src/commands/selectNodeForward.d.ts +0 -12
  73. package/dist/packages/core/src/commands/selectParentNode.d.ts +0 -12
  74. package/dist/packages/core/src/commands/setContent.d.ts +0 -13
  75. package/dist/packages/core/src/commands/setMark.d.ts +0 -13
  76. package/dist/packages/core/src/commands/setMeta.d.ts +0 -12
  77. package/dist/packages/core/src/commands/setNode.d.ts +0 -13
  78. package/dist/packages/core/src/commands/setNodeSelection.d.ts +0 -12
  79. package/dist/packages/core/src/commands/setTextSelection.d.ts +0 -12
  80. package/dist/packages/core/src/commands/sinkListItem.d.ts +0 -13
  81. package/dist/packages/core/src/commands/splitBlock.d.ts +0 -14
  82. package/dist/packages/core/src/commands/splitListItem.d.ts +0 -13
  83. package/dist/packages/core/src/commands/toggleList.d.ts +0 -13
  84. package/dist/packages/core/src/commands/toggleMark.d.ts +0 -18
  85. package/dist/packages/core/src/commands/toggleNode.d.ts +0 -13
  86. package/dist/packages/core/src/commands/toggleWrap.d.ts +0 -13
  87. package/dist/packages/core/src/commands/undoInputRule.d.ts +0 -12
  88. package/dist/packages/core/src/commands/unsetAllMarks.d.ts +0 -12
  89. package/dist/packages/core/src/commands/unsetMark.d.ts +0 -18
  90. package/dist/packages/core/src/commands/updateAttributes.d.ts +0 -13
  91. package/dist/packages/core/src/commands/wrapIn.d.ts +0 -13
  92. package/dist/packages/core/src/commands/wrapInList.d.ts +0 -13
  93. package/dist/packages/core/src/extensions/clipboardTextSerializer.d.ts +0 -2
  94. package/dist/packages/core/src/extensions/commands.d.ts +0 -98
  95. package/dist/packages/core/src/extensions/editable.d.ts +0 -2
  96. package/dist/packages/core/src/extensions/focusEvents.d.ts +0 -2
  97. package/dist/packages/core/src/extensions/index.d.ts +0 -5
  98. package/dist/packages/core/src/extensions/keymap.d.ts +0 -2
  99. package/dist/packages/core/src/helpers/createDocument.d.ts +0 -3
  100. package/dist/packages/core/src/helpers/createNodeFromContent.d.ts +0 -7
  101. package/dist/packages/core/src/helpers/findChildren.d.ts +0 -3
  102. package/dist/packages/core/src/helpers/findChildrenInRange.d.ts +0 -6
  103. package/dist/packages/core/src/helpers/findParentNode.d.ts +0 -9
  104. package/dist/packages/core/src/helpers/findParentNodeClosestToPos.d.ts +0 -8
  105. package/dist/packages/core/src/helpers/generateHTML.d.ts +0 -2
  106. package/dist/packages/core/src/helpers/generateJSON.d.ts +0 -2
  107. package/dist/packages/core/src/helpers/generateText.d.ts +0 -5
  108. package/dist/packages/core/src/helpers/getAttributes.d.ts +0 -3
  109. package/dist/packages/core/src/helpers/getAttributesFromExtensions.d.ts +0 -6
  110. package/dist/packages/core/src/helpers/getDebugJSON.d.ts +0 -8
  111. package/dist/packages/core/src/helpers/getExtensionField.d.ts +0 -2
  112. package/dist/packages/core/src/helpers/getHTMLFromFragment.d.ts +0 -2
  113. package/dist/packages/core/src/helpers/getMarkAttributes.d.ts +0 -3
  114. package/dist/packages/core/src/helpers/getMarkRange.d.ts +0 -3
  115. package/dist/packages/core/src/helpers/getMarkType.d.ts +0 -2
  116. package/dist/packages/core/src/helpers/getMarksBetween.d.ts +0 -3
  117. package/dist/packages/core/src/helpers/getNodeAttributes.d.ts +0 -3
  118. package/dist/packages/core/src/helpers/getNodeType.d.ts +0 -2
  119. package/dist/packages/core/src/helpers/getRenderedAttributes.d.ts +0 -3
  120. package/dist/packages/core/src/helpers/getSchema.d.ts +0 -3
  121. package/dist/packages/core/src/helpers/getSchemaByResolvedExtensions.d.ts +0 -3
  122. package/dist/packages/core/src/helpers/getSchemaTypeByName.d.ts +0 -2
  123. package/dist/packages/core/src/helpers/getSchemaTypeNameByName.d.ts +0 -2
  124. package/dist/packages/core/src/helpers/getSplittedAttributes.d.ts +0 -2
  125. package/dist/packages/core/src/helpers/getText.d.ts +0 -6
  126. package/dist/packages/core/src/helpers/getTextBetween.d.ts +0 -6
  127. package/dist/packages/core/src/helpers/getTextSeralizersFromSchema.d.ts +0 -3
  128. package/dist/packages/core/src/helpers/injectExtensionAttributesToParseRule.d.ts +0 -9
  129. package/dist/packages/core/src/helpers/isActive.d.ts +0 -2
  130. package/dist/packages/core/src/helpers/isList.d.ts +0 -2
  131. package/dist/packages/core/src/helpers/isMarkActive.d.ts +0 -3
  132. package/dist/packages/core/src/helpers/isNodeActive.d.ts +0 -3
  133. package/dist/packages/core/src/helpers/isNodeEmpty.d.ts +0 -2
  134. package/dist/packages/core/src/helpers/isNodeSelection.d.ts +0 -2
  135. package/dist/packages/core/src/helpers/isTextSelection.d.ts +0 -2
  136. package/dist/packages/core/src/helpers/posToDOMRect.d.ts +0 -2
  137. package/dist/packages/core/src/helpers/selectionToInsertionEnd.d.ts +0 -2
  138. package/dist/packages/core/src/helpers/splitExtensions.d.ts +0 -9
  139. package/dist/packages/core/src/index.d.ts +0 -50
  140. package/dist/packages/core/src/inputRules/markInputRule.d.ts +0 -3
  141. package/dist/packages/core/src/inputRules/nodeInputRule.d.ts +0 -3
  142. package/dist/packages/core/src/pasteRules/markPasteRule.d.ts +0 -3
  143. package/dist/packages/core/src/style.d.ts +0 -2
  144. package/dist/packages/core/src/types.d.ts +0 -194
  145. package/dist/packages/core/src/utilities/callOrReturn.d.ts +0 -9
  146. package/dist/packages/core/src/utilities/createStyleTag.d.ts +0 -1
  147. package/dist/packages/core/src/utilities/deleteProps.d.ts +0 -6
  148. package/dist/packages/core/src/utilities/elementFromString.d.ts +0 -1
  149. package/dist/packages/core/src/utilities/fromString.d.ts +0 -1
  150. package/dist/packages/core/src/utilities/isClass.d.ts +0 -1
  151. package/dist/packages/core/src/utilities/isEmptyObject.d.ts +0 -1
  152. package/dist/packages/core/src/utilities/isObject.d.ts +0 -1
  153. package/dist/packages/core/src/utilities/isPlainObject.d.ts +0 -1
  154. package/dist/packages/core/src/utilities/isRegExp.d.ts +0 -1
  155. package/dist/packages/core/src/utilities/isiOS.d.ts +0 -1
  156. package/dist/packages/core/src/utilities/mergeAttributes.d.ts +0 -1
  157. package/dist/packages/core/src/utilities/mergeDeep.d.ts +0 -1
  158. package/dist/packages/core/src/utilities/minMax.d.ts +0 -1
  159. package/dist/packages/core/src/utilities/objectIncludes.d.ts +0 -8
  160. package/dist/packages/core/src/utilities/removeElement.d.ts +0 -1
  161. package/dist/packages/extension-blockquote/src/blockquote.d.ts +0 -24
  162. package/dist/packages/extension-blockquote/src/index.d.ts +0 -3
  163. package/dist/packages/extension-bold/src/bold.d.ts +0 -27
  164. package/dist/packages/extension-bold/src/index.d.ts +0 -3
  165. package/dist/packages/extension-bubble-menu/src/bubble-menu-plugin.d.ts +0 -43
  166. package/dist/packages/extension-bubble-menu/src/bubble-menu.d.ts +0 -6
  167. package/dist/packages/extension-bubble-menu/src/index.d.ts +0 -4
  168. package/dist/packages/extension-bullet-list/src/bullet-list.d.ts +0 -16
  169. package/dist/packages/extension-bullet-list/src/index.d.ts +0 -3
  170. package/dist/packages/extension-character-count/src/character-count.d.ts +0 -7
  171. package/dist/packages/extension-character-count/src/index.d.ts +0 -3
  172. package/dist/packages/extension-code/src/code.d.ts +0 -25
  173. package/dist/packages/extension-code/src/index.d.ts +0 -3
  174. package/dist/packages/extension-code-block/src/code-block.d.ts +0 -26
  175. package/dist/packages/extension-code-block/src/index.d.ts +0 -3
  176. package/dist/packages/extension-code-block-lowlight/src/code-block-lowlight.d.ts +0 -5
  177. package/dist/packages/extension-code-block-lowlight/src/index.d.ts +0 -3
  178. package/dist/packages/extension-code-block-lowlight/src/lowlight-plugin.d.ts +0 -5
  179. package/dist/packages/extension-collaboration/src/collaboration.d.ts +0 -30
  180. package/dist/packages/extension-collaboration/src/index.d.ts +0 -3
  181. package/dist/packages/extension-collaboration-cursor/src/collaboration-cursor.d.ts +0 -21
  182. package/dist/packages/extension-collaboration-cursor/src/index.d.ts +0 -3
  183. package/dist/packages/extension-color/src/color.d.ts +0 -21
  184. package/dist/packages/extension-color/src/index.d.ts +0 -3
  185. package/dist/packages/extension-document/src/document.d.ts +0 -2
  186. package/dist/packages/extension-document/src/index.d.ts +0 -3
  187. package/dist/packages/extension-dropcursor/src/dropcursor.d.ts +0 -7
  188. package/dist/packages/extension-dropcursor/src/index.d.ts +0 -3
  189. package/dist/packages/extension-floating-menu/src/floating-menu-plugin.d.ts +0 -40
  190. package/dist/packages/extension-floating-menu/src/floating-menu.d.ts +0 -6
  191. package/dist/packages/extension-floating-menu/src/index.d.ts +0 -4
  192. package/dist/packages/extension-focus/src/focus.d.ts +0 -6
  193. package/dist/packages/extension-focus/src/index.d.ts +0 -3
  194. package/dist/packages/extension-font-family/src/font-family.d.ts +0 -21
  195. package/dist/packages/extension-font-family/src/index.d.ts +0 -3
  196. package/dist/packages/extension-hard-break/src/hard-break.d.ts +0 -15
  197. package/dist/packages/extension-hard-break/src/index.d.ts +0 -3
  198. package/dist/packages/extension-heading/src/heading.d.ts +0 -26
  199. package/dist/packages/extension-heading/src/index.d.ts +0 -3
  200. package/dist/packages/extension-highlight/src/highlight.d.ts +0 -30
  201. package/dist/packages/extension-highlight/src/index.d.ts +0 -3
  202. package/dist/packages/extension-history/src/history.d.ts +0 -20
  203. package/dist/packages/extension-history/src/index.d.ts +0 -3
  204. package/dist/packages/extension-horizontal-rule/src/horizontal-rule.d.ts +0 -15
  205. package/dist/packages/extension-horizontal-rule/src/index.d.ts +0 -3
  206. package/dist/packages/extension-image/src/image.d.ts +0 -21
  207. package/dist/packages/extension-image/src/index.d.ts +0 -3
  208. package/dist/packages/extension-italic/src/index.d.ts +0 -3
  209. package/dist/packages/extension-italic/src/italic.d.ts +0 -27
  210. package/dist/packages/extension-link/src/index.d.ts +0 -3
  211. package/dist/packages/extension-link/src/link.d.ts +0 -48
  212. package/dist/packages/extension-list-item/src/index.d.ts +0 -3
  213. package/dist/packages/extension-list-item/src/list-item.d.ts +0 -5
  214. package/dist/packages/extension-mention/src/index.d.ts +0 -3
  215. package/dist/packages/extension-mention/src/mention.d.ts +0 -14
  216. package/dist/packages/extension-ordered-list/src/index.d.ts +0 -3
  217. package/dist/packages/extension-ordered-list/src/ordered-list.d.ts +0 -16
  218. package/dist/packages/extension-paragraph/src/index.d.ts +0 -3
  219. package/dist/packages/extension-paragraph/src/paragraph.d.ts +0 -15
  220. package/dist/packages/extension-placeholder/src/index.d.ts +0 -3
  221. package/dist/packages/extension-placeholder/src/placeholder.d.ts +0 -14
  222. package/dist/packages/extension-strike/src/index.d.ts +0 -3
  223. package/dist/packages/extension-strike/src/strike.d.ts +0 -25
  224. package/dist/packages/extension-subscript/src/index.d.ts +0 -3
  225. package/dist/packages/extension-subscript/src/subscript.d.ts +0 -23
  226. package/dist/packages/extension-superscript/src/index.d.ts +0 -3
  227. package/dist/packages/extension-superscript/src/superscript.d.ts +0 -23
  228. package/dist/packages/extension-table/src/TableView.d.ts +0 -17
  229. package/dist/packages/extension-table/src/index.d.ts +0 -4
  230. package/dist/packages/extension-table/src/table.d.ts +0 -54
  231. package/dist/packages/extension-table/src/utilities/createCell.d.ts +0 -2
  232. package/dist/packages/extension-table/src/utilities/createTable.d.ts +0 -2
  233. package/dist/packages/extension-table/src/utilities/deleteTableWhenAllCellsSelected.d.ts +0 -2
  234. package/dist/packages/extension-table/src/utilities/getTableNodeTypes.d.ts +0 -4
  235. package/dist/packages/extension-table/src/utilities/isCellSelection.d.ts +0 -2
  236. package/dist/packages/extension-table-cell/src/index.d.ts +0 -3
  237. package/dist/packages/extension-table-cell/src/table-cell.d.ts +0 -5
  238. package/dist/packages/extension-table-header/src/index.d.ts +0 -3
  239. package/dist/packages/extension-table-header/src/table-header.d.ts +0 -5
  240. package/dist/packages/extension-table-row/src/index.d.ts +0 -3
  241. package/dist/packages/extension-table-row/src/table-row.d.ts +0 -5
  242. package/dist/packages/extension-task-item/src/index.d.ts +0 -3
  243. package/dist/packages/extension-task-item/src/task-item.d.ts +0 -7
  244. package/dist/packages/extension-task-list/src/index.d.ts +0 -3
  245. package/dist/packages/extension-task-list/src/task-list.d.ts +0 -15
  246. package/dist/packages/extension-text/src/index.d.ts +0 -3
  247. package/dist/packages/extension-text/src/text.d.ts +0 -2
  248. package/dist/packages/extension-text-align/src/index.d.ts +0 -3
  249. package/dist/packages/extension-text-align/src/text-align.d.ts +0 -21
  250. package/dist/packages/extension-text-style/src/index.d.ts +0 -3
  251. package/dist/packages/extension-text-style/src/text-style.d.ts +0 -15
  252. package/dist/packages/extension-typography/src/index.d.ts +0 -3
  253. package/dist/packages/extension-typography/src/typography.d.ts +0 -18
  254. package/dist/packages/extension-underline/src/index.d.ts +0 -3
  255. package/dist/packages/extension-underline/src/underline.d.ts +0 -23
  256. package/dist/packages/html/src/generateHTML.d.ts +0 -2
  257. package/dist/packages/html/src/generateJSON.d.ts +0 -2
  258. package/dist/packages/html/src/getHTMLFromFragment.d.ts +0 -2
  259. package/dist/packages/html/src/index.d.ts +0 -2
  260. package/dist/packages/react/src/BubbleMenu.d.ts +0 -8
  261. package/dist/packages/react/src/Editor.d.ts +0 -6
  262. package/dist/packages/react/src/EditorContent.d.ts +0 -19
  263. package/dist/packages/react/src/FloatingMenu.d.ts +0 -8
  264. package/dist/packages/react/src/NodeViewContent.d.ts +0 -6
  265. package/dist/packages/react/src/NodeViewWrapper.d.ts +0 -6
  266. package/dist/packages/react/src/ReactNodeViewRenderer.d.ts +0 -13
  267. package/dist/packages/react/src/ReactRenderer.d.ts +0 -25
  268. package/dist/packages/react/src/index.d.ts +0 -10
  269. package/dist/packages/react/src/useEditor.d.ts +0 -4
  270. package/dist/packages/react/src/useReactNodeView.d.ts +0 -7
  271. package/dist/packages/starter-kit/src/index.d.ts +0 -3
  272. package/dist/packages/starter-kit/src/starter-kit.d.ts +0 -37
  273. package/dist/packages/suggestion/src/findSuggestionMatch.d.ts +0 -15
  274. package/dist/packages/suggestion/src/index.d.ts +0 -4
  275. package/dist/packages/suggestion/src/suggestion.d.ts +0 -46
  276. package/dist/packages/vue-2/src/BubbleMenu.d.ts +0 -9
  277. package/dist/packages/vue-2/src/Editor.d.ts +0 -5
  278. package/dist/packages/vue-2/src/EditorContent.d.ts +0 -6
  279. package/dist/packages/vue-2/src/FloatingMenu.d.ts +0 -9
  280. package/dist/packages/vue-2/src/NodeViewContent.d.ts +0 -5
  281. package/dist/packages/vue-2/src/NodeViewWrapper.d.ts +0 -9
  282. package/dist/packages/vue-2/src/VueNodeViewRenderer.d.ts +0 -51
  283. package/dist/packages/vue-2/src/VueRenderer.d.ts +0 -9
  284. package/dist/packages/vue-2/src/index.d.ts +0 -9
  285. package/dist/packages/vue-3/src/BubbleMenu.d.ts +0 -56
  286. package/dist/packages/vue-3/src/Editor.d.ts +0 -22
  287. package/dist/packages/vue-3/src/EditorContent.d.ts +0 -16
  288. package/dist/packages/vue-3/src/FloatingMenu.d.ts +0 -50
  289. package/dist/packages/vue-3/src/NodeViewContent.d.ts +0 -12
  290. package/dist/packages/vue-3/src/NodeViewWrapper.d.ts +0 -12
  291. package/dist/packages/vue-3/src/VueNodeViewRenderer.d.ts +0 -50
  292. package/dist/packages/vue-3/src/VueRenderer.d.ts +0 -19
  293. package/dist/packages/vue-3/src/index.d.ts +0 -10
  294. package/dist/packages/vue-3/src/useEditor.d.ts +0 -3
  295. package/dist/tests/cypress/integration/core/can.spec.d.ts +0 -1
  296. package/dist/tests/cypress/integration/core/editorProps.spec.d.ts +0 -1
  297. package/dist/tests/cypress/integration/core/extendExtensions.spec.d.ts +0 -1
  298. package/dist/tests/cypress/integration/core/extendMarkRange.spec.d.ts +0 -1
  299. package/dist/tests/cypress/integration/core/extensionOptions.spec.d.ts +0 -1
  300. package/dist/tests/cypress/integration/core/fromString.spec.d.ts +0 -1
  301. package/dist/tests/cypress/integration/core/generateHTML.spec.d.ts +0 -1
  302. package/dist/tests/cypress/integration/core/generateJSON.spec.d.ts +0 -1
  303. package/dist/tests/cypress/integration/core/isActive.spec.d.ts +0 -1
  304. package/dist/tests/cypress/integration/core/isClass.spec.d.ts +0 -1
  305. package/dist/tests/cypress/integration/core/mergeAttributes.spec.d.ts +0 -1
  306. package/dist/tests/cypress/integration/core/mergeDeep.spec.d.ts +0 -1
  307. package/dist/tests/cypress/integration/extensions/bold.spec.d.ts +0 -1
  308. package/dist/tests/cypress/integration/extensions/codeBlockLowlight.spec.d.ts +0 -1
  309. package/dist/tests/cypress/integration/extensions/link.spec.d.ts +0 -1
  310. package/dist/tests/cypress/integration/html/generateHTML.spec.d.ts +0 -1
  311. package/dist/tests/cypress/integration/html/generateJSON.spec.d.ts +0 -1
@@ -1,140 +0,0 @@
1
- import { EditorState, Plugin, PluginKey, Transaction } from 'prosemirror-state';
2
- import { EditorView } from 'prosemirror-view';
3
- import { Schema, MarkType, NodeType } from 'prosemirror-model';
4
- import ExtensionManager from './ExtensionManager';
5
- import EventEmitter from './EventEmitter';
6
- import { EditorOptions, CanCommands, ChainedCommands, SingleCommands, TextSerializer } from './types';
7
- import * as extensions from './extensions';
8
- export { extensions };
9
- export interface HTMLElement {
10
- editor?: Editor;
11
- }
12
- export declare class Editor extends EventEmitter {
13
- private commandManager;
14
- extensionManager: ExtensionManager;
15
- private css;
16
- schema: Schema;
17
- view: EditorView;
18
- isFocused: boolean;
19
- options: EditorOptions;
20
- constructor(options?: Partial<EditorOptions>);
21
- /**
22
- * An object of all registered commands.
23
- */
24
- get commands(): SingleCommands;
25
- /**
26
- * Create a command chain to call multiple commands at once.
27
- */
28
- chain(): ChainedCommands;
29
- /**
30
- * Check if a command or a command chain can be executed. Without executing it.
31
- */
32
- can(): CanCommands;
33
- /**
34
- * Inject CSS styles.
35
- */
36
- private injectCSS;
37
- /**
38
- * Update editor options.
39
- *
40
- * @param options A list of options
41
- */
42
- setOptions(options?: Partial<EditorOptions>): void;
43
- /**
44
- * Update editable state of the editor.
45
- */
46
- setEditable(editable: boolean): void;
47
- /**
48
- * Returns whether the editor is editable.
49
- */
50
- get isEditable(): boolean;
51
- /**
52
- * Returns the editor state.
53
- */
54
- get state(): EditorState;
55
- /**
56
- * Register a ProseMirror plugin.
57
- *
58
- * @param plugin A ProseMirror plugin
59
- * @param handlePlugins Control how to merge the plugin into the existing plugins.
60
- */
61
- registerPlugin(plugin: Plugin, handlePlugins?: (newPlugin: Plugin, plugins: Plugin[]) => Plugin[]): void;
62
- /**
63
- * Unregister a ProseMirror plugin.
64
- *
65
- * @param name The plugins name
66
- */
67
- unregisterPlugin(nameOrPluginKey: string | PluginKey): void;
68
- /**
69
- * Creates an extension manager.
70
- */
71
- private createExtensionManager;
72
- /**
73
- * Creates an command manager.
74
- */
75
- private createCommandManager;
76
- /**
77
- * Creates a ProseMirror schema.
78
- */
79
- private createSchema;
80
- /**
81
- * Creates a ProseMirror view.
82
- */
83
- private createView;
84
- /**
85
- * Creates all node views.
86
- */
87
- createNodeViews(): void;
88
- isCapturingTransaction: boolean;
89
- private capturedTransaction;
90
- captureTransaction(fn: Function): Transaction<any> | null;
91
- /**
92
- * The callback over which to send transactions (state updates) produced by the view.
93
- *
94
- * @param transaction An editor state transaction
95
- */
96
- private dispatchTransaction;
97
- /**
98
- * Get attributes of the currently selected node or mark.
99
- */
100
- getAttributes(nameOrType: string | NodeType | MarkType): Record<string, any>;
101
- /**
102
- * Returns if the currently selected node or mark is active.
103
- *
104
- * @param name Name of the node or mark
105
- * @param attributes Attributes of the node or mark
106
- */
107
- isActive(name: string, attributes?: {}): boolean;
108
- isActive(attributes: {}): boolean;
109
- /**
110
- * Get the document as JSON.
111
- */
112
- getJSON(): Record<string, any>;
113
- /**
114
- * Get the document as HTML.
115
- */
116
- getHTML(): string;
117
- /**
118
- * Get the document as text.
119
- */
120
- getText(options?: {
121
- blockSeparator?: string;
122
- textSerializers?: Record<string, TextSerializer>;
123
- }): string;
124
- /**
125
- * Check if there is no content.
126
- */
127
- get isEmpty(): boolean;
128
- /**
129
- * Get the number of characters for the current document.
130
- */
131
- getCharacterCount(): number;
132
- /**
133
- * Destroy the editor.
134
- */
135
- destroy(): void;
136
- /**
137
- * Check if the editor is already destroyed.
138
- */
139
- get isDestroyed(): boolean;
140
- }
@@ -1,7 +0,0 @@
1
- export default class EventEmitter {
2
- private callbacks;
3
- on(event: string, fn: Function): this;
4
- protected emit(event: string, ...args: any): this;
5
- off(event: string, fn?: Function): this;
6
- protected removeAllListeners(): void;
7
- }
@@ -1,193 +0,0 @@
1
- import { Plugin, Transaction } from 'prosemirror-state';
2
- import { InputRule } from 'prosemirror-inputrules';
3
- import { Editor } from './Editor';
4
- import { Node } from './Node';
5
- import { Mark } from './Mark';
6
- import { Extensions, GlobalAttributes, RawCommands, ParentConfig, KeyboardShortcutCommand } from './types';
7
- import { ExtensionConfig } from '.';
8
- declare module '@tiptap/core' {
9
- interface ExtensionConfig<Options = any> {
10
- [key: string]: any;
11
- /**
12
- * Name
13
- */
14
- name: string;
15
- /**
16
- * Priority
17
- */
18
- priority?: number;
19
- /**
20
- * Default options
21
- */
22
- defaultOptions?: Options;
23
- /**
24
- * Global attributes
25
- */
26
- addGlobalAttributes?: (this: {
27
- name: string;
28
- options: Options;
29
- parent: ParentConfig<ExtensionConfig<Options>>['addGlobalAttributes'];
30
- }) => GlobalAttributes | {};
31
- /**
32
- * Raw
33
- */
34
- addCommands?: (this: {
35
- name: string;
36
- options: Options;
37
- editor: Editor;
38
- parent: ParentConfig<ExtensionConfig<Options>>['addCommands'];
39
- }) => Partial<RawCommands>;
40
- /**
41
- * Keyboard shortcuts
42
- */
43
- addKeyboardShortcuts?: (this: {
44
- name: string;
45
- options: Options;
46
- editor: Editor;
47
- parent: ParentConfig<ExtensionConfig<Options>>['addKeyboardShortcuts'];
48
- }) => {
49
- [key: string]: KeyboardShortcutCommand;
50
- };
51
- /**
52
- * Input rules
53
- */
54
- addInputRules?: (this: {
55
- name: string;
56
- options: Options;
57
- editor: Editor;
58
- parent: ParentConfig<ExtensionConfig<Options>>['addInputRules'];
59
- }) => InputRule[];
60
- /**
61
- * Paste rules
62
- */
63
- addPasteRules?: (this: {
64
- name: string;
65
- options: Options;
66
- editor: Editor;
67
- parent: ParentConfig<ExtensionConfig<Options>>['addPasteRules'];
68
- }) => Plugin[];
69
- /**
70
- * ProseMirror plugins
71
- */
72
- addProseMirrorPlugins?: (this: {
73
- name: string;
74
- options: Options;
75
- editor: Editor;
76
- parent: ParentConfig<ExtensionConfig<Options>>['addProseMirrorPlugins'];
77
- }) => Plugin[];
78
- /**
79
- * Extensions
80
- */
81
- addExtensions?: (this: {
82
- name: string;
83
- options: Options;
84
- parent: ParentConfig<ExtensionConfig<Options>>['addExtensions'];
85
- }) => Extensions;
86
- /**
87
- * Extend Node Schema
88
- */
89
- extendNodeSchema?: ((this: {
90
- name: string;
91
- options: Options;
92
- parent: ParentConfig<ExtensionConfig<Options>>['extendNodeSchema'];
93
- }, extension: Node) => Record<string, any>) | null;
94
- /**
95
- * Extend Mark Schema
96
- */
97
- extendMarkSchema?: ((this: {
98
- name: string;
99
- options: Options;
100
- parent: ParentConfig<ExtensionConfig<Options>>['extendMarkSchema'];
101
- }, extension: Mark) => Record<string, any>) | null;
102
- /**
103
- * The editor is not ready yet.
104
- */
105
- onBeforeCreate?: ((this: {
106
- name: string;
107
- options: Options;
108
- editor: Editor;
109
- parent: ParentConfig<ExtensionConfig<Options>>['onBeforeCreate'];
110
- }) => void) | null;
111
- /**
112
- * The editor is ready.
113
- */
114
- onCreate?: ((this: {
115
- name: string;
116
- options: Options;
117
- editor: Editor;
118
- parent: ParentConfig<ExtensionConfig<Options>>['onCreate'];
119
- }) => void) | null;
120
- /**
121
- * The content has changed.
122
- */
123
- onUpdate?: ((this: {
124
- name: string;
125
- options: Options;
126
- editor: Editor;
127
- parent: ParentConfig<ExtensionConfig<Options>>['onUpdate'];
128
- }) => void) | null;
129
- /**
130
- * The selection has changed.
131
- */
132
- onSelectionUpdate?: ((this: {
133
- name: string;
134
- options: Options;
135
- editor: Editor;
136
- parent: ParentConfig<ExtensionConfig<Options>>['onSelectionUpdate'];
137
- }) => void) | null;
138
- /**
139
- * The editor state has changed.
140
- */
141
- onTransaction?: ((this: {
142
- name: string;
143
- options: Options;
144
- editor: Editor;
145
- parent: ParentConfig<ExtensionConfig<Options>>['onTransaction'];
146
- }, props: {
147
- transaction: Transaction;
148
- }) => void) | null;
149
- /**
150
- * The editor is focused.
151
- */
152
- onFocus?: ((this: {
153
- name: string;
154
- options: Options;
155
- editor: Editor;
156
- parent: ParentConfig<ExtensionConfig<Options>>['onFocus'];
157
- }, props: {
158
- event: FocusEvent;
159
- }) => void) | null;
160
- /**
161
- * The editor isn’t focused anymore.
162
- */
163
- onBlur?: ((this: {
164
- name: string;
165
- options: Options;
166
- editor: Editor;
167
- parent: ParentConfig<ExtensionConfig<Options>>['onBlur'];
168
- }, props: {
169
- event: FocusEvent;
170
- }) => void) | null;
171
- /**
172
- * The editor is destroyed.
173
- */
174
- onDestroy?: ((this: {
175
- name: string;
176
- options: Options;
177
- editor: Editor;
178
- parent: ParentConfig<ExtensionConfig<Options>>['onDestroy'];
179
- }) => void) | null;
180
- }
181
- }
182
- export declare class Extension<Options = any> {
183
- type: string;
184
- name: string;
185
- parent: Extension | null;
186
- child: Extension | null;
187
- options: Options;
188
- config: ExtensionConfig;
189
- constructor(config?: Partial<ExtensionConfig<Options>>);
190
- static create<O>(config?: Partial<ExtensionConfig<O>>): Extension<O>;
191
- configure(options?: Partial<Options>): Extension<Options>;
192
- extend<ExtendedOptions = Options>(extendedConfig?: Partial<ExtensionConfig<ExtendedOptions>>): Extension<ExtendedOptions>;
193
- }
@@ -1,18 +0,0 @@
1
- import { Schema } from 'prosemirror-model';
2
- import { Plugin } from 'prosemirror-state';
3
- import { Editor } from './Editor';
4
- import { Extensions, RawCommands } from './types';
5
- export default class ExtensionManager {
6
- editor: Editor;
7
- schema: Schema;
8
- extensions: Extensions;
9
- splittableMarks: string[];
10
- constructor(extensions: Extensions, editor: Editor);
11
- static resolve(extensions: Extensions): Extensions;
12
- static flatten(extensions: Extensions): Extensions;
13
- static sort(extensions: Extensions): Extensions;
14
- get commands(): RawCommands;
15
- get plugins(): Plugin[];
16
- get attributes(): import("@tiptap/core").ExtensionAttribute[];
17
- get nodeViews(): any;
18
- }
@@ -1,269 +0,0 @@
1
- import { DOMOutputSpec, MarkSpec, Mark as ProseMirrorMark, MarkType } from 'prosemirror-model';
2
- import { Plugin, Transaction } from 'prosemirror-state';
3
- import { InputRule } from 'prosemirror-inputrules';
4
- import { Extensions, Attributes, RawCommands, GlobalAttributes, ParentConfig, KeyboardShortcutCommand } from './types';
5
- import { Node } from './Node';
6
- import { MarkConfig } from '.';
7
- import { Editor } from './Editor';
8
- declare module '@tiptap/core' {
9
- interface MarkConfig<Options = any> {
10
- [key: string]: any;
11
- /**
12
- * Name
13
- */
14
- name: string;
15
- /**
16
- * Priority
17
- */
18
- priority?: number;
19
- /**
20
- * Default options
21
- */
22
- defaultOptions?: Options;
23
- /**
24
- * Global attributes
25
- */
26
- addGlobalAttributes?: (this: {
27
- name: string;
28
- options: Options;
29
- parent: ParentConfig<MarkConfig<Options>>['addGlobalAttributes'];
30
- }) => GlobalAttributes | {};
31
- /**
32
- * Raw
33
- */
34
- addCommands?: (this: {
35
- name: string;
36
- options: Options;
37
- editor: Editor;
38
- type: MarkType;
39
- parent: ParentConfig<MarkConfig<Options>>['addCommands'];
40
- }) => Partial<RawCommands>;
41
- /**
42
- * Keyboard shortcuts
43
- */
44
- addKeyboardShortcuts?: (this: {
45
- name: string;
46
- options: Options;
47
- editor: Editor;
48
- type: MarkType;
49
- parent: ParentConfig<MarkConfig<Options>>['addKeyboardShortcuts'];
50
- }) => {
51
- [key: string]: KeyboardShortcutCommand;
52
- };
53
- /**
54
- * Input rules
55
- */
56
- addInputRules?: (this: {
57
- name: string;
58
- options: Options;
59
- editor: Editor;
60
- type: MarkType;
61
- parent: ParentConfig<MarkConfig<Options>>['addInputRules'];
62
- }) => InputRule[];
63
- /**
64
- * Paste rules
65
- */
66
- addPasteRules?: (this: {
67
- name: string;
68
- options: Options;
69
- editor: Editor;
70
- type: MarkType;
71
- parent: ParentConfig<MarkConfig<Options>>['addPasteRules'];
72
- }) => Plugin[];
73
- /**
74
- * ProseMirror plugins
75
- */
76
- addProseMirrorPlugins?: (this: {
77
- name: string;
78
- options: Options;
79
- editor: Editor;
80
- type: MarkType;
81
- parent: ParentConfig<MarkConfig<Options>>['addProseMirrorPlugins'];
82
- }) => Plugin[];
83
- /**
84
- * Extensions
85
- */
86
- addExtensions?: (this: {
87
- name: string;
88
- options: Options;
89
- parent: ParentConfig<MarkConfig<Options>>['addExtensions'];
90
- }) => Extensions;
91
- /**
92
- * Extend Node Schema
93
- */
94
- extendNodeSchema?: ((this: {
95
- name: string;
96
- options: Options;
97
- parent: ParentConfig<MarkConfig<Options>>['extendNodeSchema'];
98
- }, extension: Node) => Record<string, any>) | null;
99
- /**
100
- * Extend Mark Schema
101
- */
102
- extendMarkSchema?: ((this: {
103
- name: string;
104
- options: Options;
105
- parent: ParentConfig<MarkConfig<Options>>['extendMarkSchema'];
106
- }, extension: Mark) => Record<string, any>) | null;
107
- /**
108
- * The editor is not ready yet.
109
- */
110
- onBeforeCreate?: ((this: {
111
- name: string;
112
- options: Options;
113
- editor: Editor;
114
- type: MarkType;
115
- parent: ParentConfig<MarkConfig<Options>>['onBeforeCreate'];
116
- }) => void) | null;
117
- /**
118
- * The editor is ready.
119
- */
120
- onCreate?: ((this: {
121
- name: string;
122
- options: Options;
123
- editor: Editor;
124
- type: MarkType;
125
- parent: ParentConfig<MarkConfig<Options>>['onCreate'];
126
- }) => void) | null;
127
- /**
128
- * The content has changed.
129
- */
130
- onUpdate?: ((this: {
131
- name: string;
132
- options: Options;
133
- editor: Editor;
134
- type: MarkType;
135
- parent: ParentConfig<MarkConfig<Options>>['onUpdate'];
136
- }) => void) | null;
137
- /**
138
- * The selection has changed.
139
- */
140
- onSelectionUpdate?: ((this: {
141
- name: string;
142
- options: Options;
143
- editor: Editor;
144
- type: MarkType;
145
- parent: ParentConfig<MarkConfig<Options>>['onSelectionUpdate'];
146
- }) => void) | null;
147
- /**
148
- * The editor state has changed.
149
- */
150
- onTransaction?: ((this: {
151
- name: string;
152
- options: Options;
153
- editor: Editor;
154
- type: MarkType;
155
- parent: ParentConfig<MarkConfig<Options>>['onTransaction'];
156
- }, props: {
157
- transaction: Transaction;
158
- }) => void) | null;
159
- /**
160
- * The editor is focused.
161
- */
162
- onFocus?: ((this: {
163
- name: string;
164
- options: Options;
165
- editor: Editor;
166
- type: MarkType;
167
- parent: ParentConfig<MarkConfig<Options>>['onFocus'];
168
- }, props: {
169
- event: FocusEvent;
170
- }) => void) | null;
171
- /**
172
- * The editor isn’t focused anymore.
173
- */
174
- onBlur?: ((this: {
175
- name: string;
176
- options: Options;
177
- editor: Editor;
178
- type: MarkType;
179
- parent: ParentConfig<MarkConfig<Options>>['onBlur'];
180
- }, props: {
181
- event: FocusEvent;
182
- }) => void) | null;
183
- /**
184
- * The editor is destroyed.
185
- */
186
- onDestroy?: ((this: {
187
- name: string;
188
- options: Options;
189
- editor: Editor;
190
- type: MarkType;
191
- parent: ParentConfig<MarkConfig<Options>>['onDestroy'];
192
- }) => void) | null;
193
- /**
194
- * Keep mark after split node
195
- */
196
- keepOnSplit?: boolean | (() => boolean);
197
- /**
198
- * Inclusive
199
- */
200
- inclusive?: MarkSpec['inclusive'] | ((this: {
201
- name: string;
202
- options: Options;
203
- parent: ParentConfig<MarkConfig<Options>>['inclusive'];
204
- }) => MarkSpec['inclusive']);
205
- /**
206
- * Excludes
207
- */
208
- excludes?: MarkSpec['excludes'] | ((this: {
209
- name: string;
210
- options: Options;
211
- parent: ParentConfig<MarkConfig<Options>>['excludes'];
212
- }) => MarkSpec['excludes']);
213
- /**
214
- * Group
215
- */
216
- group?: MarkSpec['group'] | ((this: {
217
- name: string;
218
- options: Options;
219
- parent: ParentConfig<MarkConfig<Options>>['group'];
220
- }) => MarkSpec['group']);
221
- /**
222
- * Spanning
223
- */
224
- spanning?: MarkSpec['spanning'] | ((this: {
225
- name: string;
226
- options: Options;
227
- parent: ParentConfig<MarkConfig<Options>>['spanning'];
228
- }) => MarkSpec['spanning']);
229
- /**
230
- * Parse HTML
231
- */
232
- parseHTML?: (this: {
233
- name: string;
234
- options: Options;
235
- parent: ParentConfig<MarkConfig<Options>>['parseHTML'];
236
- }) => MarkSpec['parseDOM'];
237
- /**
238
- * Render HTML
239
- */
240
- renderHTML?: ((this: {
241
- name: string;
242
- options: Options;
243
- parent: ParentConfig<MarkConfig<Options>>['renderHTML'];
244
- }, props: {
245
- mark: ProseMirrorMark;
246
- HTMLAttributes: Record<string, any>;
247
- }) => DOMOutputSpec) | null;
248
- /**
249
- * Attributes
250
- */
251
- addAttributes?: (this: {
252
- name: string;
253
- options: Options;
254
- parent: ParentConfig<MarkConfig<Options>>['addAttributes'];
255
- }) => Attributes | {};
256
- }
257
- }
258
- export declare class Mark<Options = any> {
259
- type: string;
260
- name: string;
261
- parent: Mark | null;
262
- child: Mark | null;
263
- options: Options;
264
- config: MarkConfig;
265
- constructor(config?: Partial<MarkConfig<Options>>);
266
- static create<O>(config?: Partial<MarkConfig<O>>): Mark<O>;
267
- configure(options?: Partial<Options>): Mark<Options>;
268
- extend<ExtendedOptions = Options>(extendedConfig?: Partial<MarkConfig<ExtendedOptions>>): Mark<ExtendedOptions>;
269
- }