@tiptap/vue-3 2.7.3 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/dist/{packages/vue-3/src/BubbleMenu.d.ts → BubbleMenu.d.ts} +1 -0
  2. package/dist/BubbleMenu.d.ts.map +1 -0
  3. package/dist/{packages/vue-3/src/Editor.d.ts → Editor.d.ts} +1 -0
  4. package/dist/Editor.d.ts.map +1 -0
  5. package/dist/{packages/vue-3/src/EditorContent.d.ts → EditorContent.d.ts} +1 -0
  6. package/dist/EditorContent.d.ts.map +1 -0
  7. package/dist/{packages/vue-3/src/FloatingMenu.d.ts → FloatingMenu.d.ts} +1 -0
  8. package/dist/FloatingMenu.d.ts.map +1 -0
  9. package/dist/{packages/vue-3/src/NodeViewContent.d.ts → NodeViewContent.d.ts} +1 -0
  10. package/dist/NodeViewContent.d.ts.map +1 -0
  11. package/dist/{packages/vue-3/src/NodeViewWrapper.d.ts → NodeViewWrapper.d.ts} +1 -0
  12. package/dist/NodeViewWrapper.d.ts.map +1 -0
  13. package/dist/{packages/vue-3/src/VueNodeViewRenderer.d.ts → VueNodeViewRenderer.d.ts} +1 -0
  14. package/dist/VueNodeViewRenderer.d.ts.map +1 -0
  15. package/dist/{packages/vue-3/src/VueRenderer.d.ts → VueRenderer.d.ts} +1 -0
  16. package/dist/VueRenderer.d.ts.map +1 -0
  17. package/dist/{packages/vue-3/src/index.d.ts → index.d.ts} +1 -0
  18. package/dist/index.d.ts.map +1 -0
  19. package/dist/{packages/vue-3/src/useEditor.d.ts → useEditor.d.ts} +1 -0
  20. package/dist/useEditor.d.ts.map +1 -0
  21. package/package.json +7 -7
  22. package/dist/packages/core/src/CommandManager.d.ts +0 -20
  23. package/dist/packages/core/src/Editor.d.ts +0 -165
  24. package/dist/packages/core/src/EventEmitter.d.ts +0 -11
  25. package/dist/packages/core/src/Extension.d.ts +0 -344
  26. package/dist/packages/core/src/ExtensionManager.d.ts +0 -56
  27. package/dist/packages/core/src/InputRule.d.ts +0 -42
  28. package/dist/packages/core/src/Mark.d.ts +0 -452
  29. package/dist/packages/core/src/Node.d.ts +0 -612
  30. package/dist/packages/core/src/NodePos.d.ts +0 -44
  31. package/dist/packages/core/src/NodeView.d.ts +0 -43
  32. package/dist/packages/core/src/PasteRule.d.ts +0 -50
  33. package/dist/packages/core/src/Tracker.d.ts +0 -11
  34. package/dist/packages/core/src/commands/blur.d.ts +0 -13
  35. package/dist/packages/core/src/commands/clearContent.d.ts +0 -14
  36. package/dist/packages/core/src/commands/clearNodes.d.ts +0 -13
  37. package/dist/packages/core/src/commands/command.d.ts +0 -18
  38. package/dist/packages/core/src/commands/createParagraphNear.d.ts +0 -13
  39. package/dist/packages/core/src/commands/cut.d.ts +0 -20
  40. package/dist/packages/core/src/commands/deleteCurrentNode.d.ts +0 -13
  41. package/dist/packages/core/src/commands/deleteNode.d.ts +0 -15
  42. package/dist/packages/core/src/commands/deleteRange.d.ts +0 -14
  43. package/dist/packages/core/src/commands/deleteSelection.d.ts +0 -13
  44. package/dist/packages/core/src/commands/enter.d.ts +0 -13
  45. package/dist/packages/core/src/commands/exitCode.d.ts +0 -13
  46. package/dist/packages/core/src/commands/extendMarkRange.d.ts +0 -25
  47. package/dist/packages/core/src/commands/first.d.ts +0 -14
  48. package/dist/packages/core/src/commands/focus.d.ts +0 -27
  49. package/dist/packages/core/src/commands/forEach.d.ts +0 -14
  50. package/dist/packages/core/src/commands/index.d.ts +0 -55
  51. package/dist/packages/core/src/commands/insertContent.d.ts +0 -34
  52. package/dist/packages/core/src/commands/insertContentAt.d.ts +0 -47
  53. package/dist/packages/core/src/commands/join.d.ts +0 -41
  54. package/dist/packages/core/src/commands/joinItemBackward.d.ts +0 -13
  55. package/dist/packages/core/src/commands/joinItemForward.d.ts +0 -13
  56. package/dist/packages/core/src/commands/joinTextblockBackward.d.ts +0 -12
  57. package/dist/packages/core/src/commands/joinTextblockForward.d.ts +0 -12
  58. package/dist/packages/core/src/commands/keyboardShortcut.d.ts +0 -14
  59. package/dist/packages/core/src/commands/lift.d.ts +0 -17
  60. package/dist/packages/core/src/commands/liftEmptyBlock.d.ts +0 -13
  61. package/dist/packages/core/src/commands/liftListItem.d.ts +0 -15
  62. package/dist/packages/core/src/commands/newlineInCode.d.ts +0 -13
  63. package/dist/packages/core/src/commands/resetAttributes.d.ts +0 -16
  64. package/dist/packages/core/src/commands/scrollIntoView.d.ts +0 -13
  65. package/dist/packages/core/src/commands/selectAll.d.ts +0 -13
  66. package/dist/packages/core/src/commands/selectNodeBackward.d.ts +0 -13
  67. package/dist/packages/core/src/commands/selectNodeForward.d.ts +0 -13
  68. package/dist/packages/core/src/commands/selectParentNode.d.ts +0 -13
  69. package/dist/packages/core/src/commands/selectTextblockEnd.d.ts +0 -13
  70. package/dist/packages/core/src/commands/selectTextblockStart.d.ts +0 -13
  71. package/dist/packages/core/src/commands/setContent.d.ts +0 -40
  72. package/dist/packages/core/src/commands/setMark.d.ts +0 -15
  73. package/dist/packages/core/src/commands/setMeta.d.ts +0 -16
  74. package/dist/packages/core/src/commands/setNode.d.ts +0 -16
  75. package/dist/packages/core/src/commands/setNodeSelection.d.ts +0 -14
  76. package/dist/packages/core/src/commands/setTextSelection.d.ts +0 -14
  77. package/dist/packages/core/src/commands/sinkListItem.d.ts +0 -15
  78. package/dist/packages/core/src/commands/splitBlock.d.ts +0 -17
  79. package/dist/packages/core/src/commands/splitListItem.d.ts +0 -16
  80. package/dist/packages/core/src/commands/toggleList.d.ts +0 -18
  81. package/dist/packages/core/src/commands/toggleMark.d.ts +0 -30
  82. package/dist/packages/core/src/commands/toggleNode.d.ts +0 -17
  83. package/dist/packages/core/src/commands/toggleWrap.d.ts +0 -16
  84. package/dist/packages/core/src/commands/undoInputRule.d.ts +0 -13
  85. package/dist/packages/core/src/commands/unsetAllMarks.d.ts +0 -13
  86. package/dist/packages/core/src/commands/unsetMark.d.ts +0 -25
  87. package/dist/packages/core/src/commands/updateAttributes.d.ts +0 -24
  88. package/dist/packages/core/src/commands/wrapIn.d.ts +0 -16
  89. package/dist/packages/core/src/commands/wrapInList.d.ts +0 -16
  90. package/dist/packages/core/src/extensions/clipboardTextSerializer.d.ts +0 -5
  91. package/dist/packages/core/src/extensions/commands.d.ts +0 -3
  92. package/dist/packages/core/src/extensions/editable.d.ts +0 -2
  93. package/dist/packages/core/src/extensions/focusEvents.d.ts +0 -2
  94. package/dist/packages/core/src/extensions/index.d.ts +0 -6
  95. package/dist/packages/core/src/extensions/keymap.d.ts +0 -2
  96. package/dist/packages/core/src/extensions/tabindex.d.ts +0 -2
  97. package/dist/packages/core/src/helpers/combineTransactionSteps.d.ts +0 -10
  98. package/dist/packages/core/src/helpers/createChainableState.d.ts +0 -10
  99. package/dist/packages/core/src/helpers/createDocument.d.ts +0 -12
  100. package/dist/packages/core/src/helpers/createNodeFromContent.d.ts +0 -15
  101. package/dist/packages/core/src/helpers/defaultBlockAt.d.ts +0 -7
  102. package/dist/packages/core/src/helpers/findChildren.d.ts +0 -9
  103. package/dist/packages/core/src/helpers/findChildrenInRange.d.ts +0 -10
  104. package/dist/packages/core/src/helpers/findParentNode.d.ts +0 -16
  105. package/dist/packages/core/src/helpers/findParentNodeClosestToPos.d.ts +0 -17
  106. package/dist/packages/core/src/helpers/generateHTML.d.ts +0 -8
  107. package/dist/packages/core/src/helpers/generateJSON.d.ts +0 -8
  108. package/dist/packages/core/src/helpers/generateText.d.ts +0 -12
  109. package/dist/packages/core/src/helpers/getAttributes.d.ts +0 -9
  110. package/dist/packages/core/src/helpers/getAttributesFromExtensions.d.ts +0 -6
  111. package/dist/packages/core/src/helpers/getChangedRanges.d.ts +0 -11
  112. package/dist/packages/core/src/helpers/getDebugJSON.d.ts +0 -8
  113. package/dist/packages/core/src/helpers/getExtensionField.d.ts +0 -9
  114. package/dist/packages/core/src/helpers/getHTMLFromFragment.d.ts +0 -2
  115. package/dist/packages/core/src/helpers/getMarkAttributes.d.ts +0 -3
  116. package/dist/packages/core/src/helpers/getMarkRange.d.ts +0 -3
  117. package/dist/packages/core/src/helpers/getMarkType.d.ts +0 -2
  118. package/dist/packages/core/src/helpers/getMarksBetween.d.ts +0 -3
  119. package/dist/packages/core/src/helpers/getNodeAtPosition.d.ts +0 -11
  120. package/dist/packages/core/src/helpers/getNodeAttributes.d.ts +0 -3
  121. package/dist/packages/core/src/helpers/getNodeType.d.ts +0 -2
  122. package/dist/packages/core/src/helpers/getRenderedAttributes.d.ts +0 -3
  123. package/dist/packages/core/src/helpers/getSchema.d.ts +0 -4
  124. package/dist/packages/core/src/helpers/getSchemaByResolvedExtensions.d.ts +0 -10
  125. package/dist/packages/core/src/helpers/getSchemaTypeByName.d.ts +0 -8
  126. package/dist/packages/core/src/helpers/getSchemaTypeNameByName.d.ts +0 -8
  127. package/dist/packages/core/src/helpers/getSplittedAttributes.d.ts +0 -9
  128. package/dist/packages/core/src/helpers/getText.d.ts +0 -15
  129. package/dist/packages/core/src/helpers/getTextBetween.d.ts +0 -14
  130. package/dist/packages/core/src/helpers/getTextContentFromNodes.d.ts +0 -8
  131. package/dist/packages/core/src/helpers/getTextSerializersFromSchema.d.ts +0 -8
  132. package/dist/packages/core/src/helpers/index.d.ts +0 -50
  133. package/dist/packages/core/src/helpers/injectExtensionAttributesToParseRule.d.ts +0 -9
  134. package/dist/packages/core/src/helpers/isActive.d.ts +0 -2
  135. package/dist/packages/core/src/helpers/isAtEndOfNode.d.ts +0 -2
  136. package/dist/packages/core/src/helpers/isAtStartOfNode.d.ts +0 -2
  137. package/dist/packages/core/src/helpers/isExtensionRulesEnabled.d.ts +0 -2
  138. package/dist/packages/core/src/helpers/isList.d.ts +0 -2
  139. package/dist/packages/core/src/helpers/isMarkActive.d.ts +0 -3
  140. package/dist/packages/core/src/helpers/isNodeActive.d.ts +0 -3
  141. package/dist/packages/core/src/helpers/isNodeEmpty.d.ts +0 -14
  142. package/dist/packages/core/src/helpers/isNodeSelection.d.ts +0 -2
  143. package/dist/packages/core/src/helpers/isTextSelection.d.ts +0 -2
  144. package/dist/packages/core/src/helpers/posToDOMRect.d.ts +0 -2
  145. package/dist/packages/core/src/helpers/resolveFocusPosition.d.ts +0 -4
  146. package/dist/packages/core/src/helpers/selectionToInsertionEnd.d.ts +0 -2
  147. package/dist/packages/core/src/helpers/splitExtensions.d.ts +0 -9
  148. package/dist/packages/core/src/index.d.ts +0 -26
  149. package/dist/packages/core/src/inputRules/index.d.ts +0 -5
  150. package/dist/packages/core/src/inputRules/markInputRule.d.ts +0 -13
  151. package/dist/packages/core/src/inputRules/nodeInputRule.d.ts +0 -23
  152. package/dist/packages/core/src/inputRules/textInputRule.d.ts +0 -10
  153. package/dist/packages/core/src/inputRules/textblockTypeInputRule.d.ts +0 -15
  154. package/dist/packages/core/src/inputRules/wrappingInputRule.d.ts +0 -28
  155. package/dist/packages/core/src/pasteRules/index.d.ts +0 -3
  156. package/dist/packages/core/src/pasteRules/markPasteRule.d.ts +0 -13
  157. package/dist/packages/core/src/pasteRules/nodePasteRule.d.ts +0 -14
  158. package/dist/packages/core/src/pasteRules/textPasteRule.d.ts +0 -10
  159. package/dist/packages/core/src/plugins/DropPlugin.d.ts +0 -3
  160. package/dist/packages/core/src/plugins/PastePlugin.d.ts +0 -3
  161. package/dist/packages/core/src/style.d.ts +0 -1
  162. package/dist/packages/core/src/types.d.ts +0 -270
  163. package/dist/packages/core/src/utilities/callOrReturn.d.ts +0 -9
  164. package/dist/packages/core/src/utilities/createStyleTag.d.ts +0 -1
  165. package/dist/packages/core/src/utilities/deleteProps.d.ts +0 -6
  166. package/dist/packages/core/src/utilities/elementFromString.d.ts +0 -1
  167. package/dist/packages/core/src/utilities/escapeForRegEx.d.ts +0 -1
  168. package/dist/packages/core/src/utilities/findDuplicates.d.ts +0 -1
  169. package/dist/packages/core/src/utilities/fromString.d.ts +0 -1
  170. package/dist/packages/core/src/utilities/index.d.ts +0 -20
  171. package/dist/packages/core/src/utilities/isAndroid.d.ts +0 -1
  172. package/dist/packages/core/src/utilities/isEmptyObject.d.ts +0 -1
  173. package/dist/packages/core/src/utilities/isFunction.d.ts +0 -1
  174. package/dist/packages/core/src/utilities/isMacOS.d.ts +0 -1
  175. package/dist/packages/core/src/utilities/isNumber.d.ts +0 -1
  176. package/dist/packages/core/src/utilities/isPlainObject.d.ts +0 -1
  177. package/dist/packages/core/src/utilities/isRegExp.d.ts +0 -1
  178. package/dist/packages/core/src/utilities/isString.d.ts +0 -1
  179. package/dist/packages/core/src/utilities/isiOS.d.ts +0 -1
  180. package/dist/packages/core/src/utilities/mergeAttributes.d.ts +0 -1
  181. package/dist/packages/core/src/utilities/mergeDeep.d.ts +0 -1
  182. package/dist/packages/core/src/utilities/minMax.d.ts +0 -1
  183. package/dist/packages/core/src/utilities/objectIncludes.d.ts +0 -8
  184. package/dist/packages/core/src/utilities/removeDuplicates.d.ts +0 -8
  185. package/dist/packages/extension-bubble-menu/src/bubble-menu-plugin.d.ts +0 -76
  186. package/dist/packages/extension-bubble-menu/src/bubble-menu.d.ts +0 -15
  187. package/dist/packages/extension-bubble-menu/src/index.d.ts +0 -4
  188. package/dist/packages/extension-floating-menu/src/floating-menu-plugin.d.ts +0 -66
  189. package/dist/packages/extension-floating-menu/src/floating-menu.d.ts +0 -15
  190. package/dist/packages/extension-floating-menu/src/index.d.ts +0 -4
@@ -57,3 +57,4 @@ export declare const BubbleMenu: import("vue").DefineComponent<{
57
57
  to: number;
58
58
  }) => boolean;
59
59
  }, {}>;
60
+ //# sourceMappingURL=BubbleMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BubbleMenu.d.ts","sourceRoot":"","sources":["../src/BubbleMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AACvF,OAAO,EAKL,QAAQ,EAET,MAAM,KAAK,CAAA;AAEZ,eAAO,MAAM,UAAU;;cAKS,QAAQ,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC;;;;cAKtD,QAAQ,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CAAC;;;;cAKzC,QAAQ,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAAC;;;;cAK9C,QAAQ,CAAC,qBAAqB,CAAC,cAAc,CAAC,CAAC;;;;cAK7C,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,CAAC;;;;;;;cApB9D,QAAQ,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC;;;;cAKtD,QAAQ,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CAAC;;;;cAKzC,QAAQ,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAAC;;;;cAK9C,QAAQ,CAAC,qBAAqB,CAAC,cAAc,CAAC,CAAC;;;;cAK7C,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,CAAC;;;;;;;;;;;gBAoB1D,CAAC;;;;MAenC,CAAA"}
@@ -21,3 +21,4 @@ export declare class Editor extends CoreEditor {
21
21
  */
22
22
  unregisterPlugin(nameOrPluginKey: string | PluginKey): EditorState | undefined;
23
23
  }
24
+ //# sourceMappingURL=Editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../src/Editor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EACL,UAAU,EACV,yBAAyB,EACzB,uBAAuB,EAIxB,MAAM,KAAK,CAAA;AAwBZ,MAAM,MAAM,gBAAgB,GAAG,yBAAyB,GAAG;IACzD,GAAG,EAAE,uBAAuB,CAAA;CAC7B,CAAA;AAED,qBAAa,MAAO,SAAQ,UAAU;IACpC,OAAO,CAAC,aAAa,CAAkB;IAEvC,OAAO,CAAC,wBAAwB,CAA0B;IAEnD,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,CAAO;IAEhD,UAAU,EAAE,UAAU,GAAG,IAAI,CAAO;gBAE/B,OAAO,GAAE,OAAO,CAAC,aAAa,CAAM;IAchD,IAAI,KAAK,gBAER;IAED,IAAI,OAAO,wBAEV;IAED;;OAEG;IACI,cAAc,CACnB,MAAM,EAAE,MAAM,EACd,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,MAAM,EAAE,GACjE,WAAW;IAUd;;OAEG;IACI,gBAAgB,CAAC,eAAe,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS;CAStF"}
@@ -15,3 +15,4 @@ export declare const EditorContent: import("vue").DefineComponent<{
15
15
  }>>, {
16
16
  editor: Editor;
17
17
  }, {}>;
18
+ //# sourceMappingURL=EditorContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditorContent.d.ts","sourceRoot":"","sources":["../src/EditorContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,QAAQ,EACR,GAAG,EAIJ,MAAM,KAAK,CAAA;AAEZ,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,eAAO,MAAM,aAAa;;;cAMJ,QAAQ,CAAC,MAAM,CAAC;;;;;;;cAAhB,QAAQ,CAAC,MAAM,CAAC;;;;MAoFpC,CAAA"}
@@ -46,3 +46,4 @@ export declare const FloatingMenu: import("vue").DefineComponent<{
46
46
  }) => boolean;
47
47
  pluginKey: any;
48
48
  }, {}>;
49
+ //# sourceMappingURL=FloatingMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FloatingMenu.d.ts","sourceRoot":"","sources":["../src/FloatingMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAC7F,OAAO,EAKL,QAAQ,EAET,MAAM,KAAK,CAAA;AAEZ,eAAO,MAAM,YAAY;;;;;;cAYH,QAAQ,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC;;;;cAK3C,QAAQ,CAAC,uBAAuB,CAAC,cAAc,CAAC,CAAC;;;;cAK/C,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,CAAC;;;;;;;;;;;cAV1E,QAAQ,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC;;;;cAK3C,QAAQ,CAAC,uBAAuB,CAAC,cAAc,CAAC,CAAC;;;;cAK/C,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,CAAC;;;;;;;;;gBAc1F,CAAJ;;;MAmBA,CAAA"}
@@ -11,3 +11,4 @@ export declare const NodeViewContent: import("vue").DefineComponent<{
11
11
  }>>, {
12
12
  as: string;
13
13
  }, {}>;
14
+ //# sourceMappingURL=NodeViewContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NodeViewContent.d.ts","sourceRoot":"","sources":["../src/NodeViewContent.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;MAkB1B,CAAA"}
@@ -11,3 +11,4 @@ export declare const NodeViewWrapper: import("vue").DefineComponent<{
11
11
  }>>, {
12
12
  as: string;
13
13
  }, {}>;
14
+ //# sourceMappingURL=NodeViewWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NodeViewWrapper.d.ts","sourceRoot":"","sources":["../src/NodeViewWrapper.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;MA4B1B,CAAA"}
@@ -48,3 +48,4 @@ export interface VueNodeViewRendererOptions extends NodeViewRendererOptions {
48
48
  }) => boolean) | null;
49
49
  }
50
50
  export declare function VueNodeViewRenderer(component: Component<NodeViewProps>, options?: Partial<VueNodeViewRendererOptions>): NodeViewRenderer;
51
+ //# sourceMappingURL=VueNodeViewRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VueNodeViewRenderer.d.ts","sourceRoot":"","sources":["../src/VueNodeViewRenderer.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,aAAa,EACb,gBAAgB,EAChB,uBAAuB,EACxB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,IAAI,IAAI,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAmC,MAAM,iBAAiB,CAAA;AAC/F,OAAO,EACL,SAAS,EAAmB,QAAQ,EACrC,MAAM,KAAK,CAAA;AAKZ,eAAO,MAAM,aAAa;;cAEN,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;;;;cAIjC,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;;;;cAI/B,QAAQ,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;;;;cAIrC,QAAQ,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;;;;cAIpC,QAAQ,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;;;;cAIlC,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;;;;cAIjC,QAAQ,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;;;;cAI3C,QAAQ,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;;;CAG1D,CAAA;AAED,MAAM,WAAW,0BAA2B,SAAQ,uBAAuB;IACzE,MAAM,EACF,CAAC,CAAC,KAAK,EAAE;QACP,OAAO,EAAE,eAAe,CAAC;QACzB,cAAc,EAAE,SAAS,UAAU,EAAE,CAAC;QACtC,mBAAmB,EAAE,gBAAgB,CAAC;QACtC,OAAO,EAAE,eAAe,CAAC;QACzB,cAAc,EAAE,SAAS,UAAU,EAAE,CAAC;QACtC,gBAAgB,EAAE,gBAAgB,CAAC;QACnC,WAAW,EAAE,MAAM,IAAI,CAAC;KACzB,KAAK,OAAO,CAAC,GACd,IAAI,CAAC;CACV;AAgND,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,SAAS,CAAC,aAAa,CAAC,EACnC,OAAO,CAAC,EAAE,OAAO,CAAC,0BAA0B,CAAC,GAC5C,gBAAgB,CAelB"}
@@ -34,3 +34,4 @@ export declare class VueRenderer {
34
34
  destroy(): void;
35
35
  }
36
36
  export {};
37
+ //# sourceMappingURL=VueRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VueRenderer.d.ts","sourceRoot":"","sources":["../src/VueRenderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EACL,SAAS,EAAmB,CAAC,EAC9B,MAAM,KAAK,CAAA;AAEZ,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtD,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC7B;AAED,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;AAEjD,UAAU,iBAAiB;IACzB,KAAK,EAAE,aAAa,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,EAAE,EAAE,OAAO,GAAG,IAAI,CAAC;CACpB;AAED;;GAEG;AACH,qBAAa,WAAW;IACtB,iBAAiB,EAAG,iBAAiB,CAAA;IAErC,MAAM,EAAE,cAAc,CAAA;IAEtB,SAAS,EAAE,SAAS,CAAA;IAEpB,EAAE,EAAE,OAAO,GAAG,IAAI,CAAA;IAElB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;gBAEd,SAAS,EAAE,SAAS,EAAE,EAAE,KAAU,EAAE,MAAM,EAAE,EAAE,kBAAkB;IAQ5E,IAAI,OAAO,IAAI,OAAO,GAAG,IAAI,CAE5B;IAED,IAAI,GAAG,IAAI,GAAG,CAOb;IAED,eAAe;;;;;;;IAqBf,WAAW,CAAC,KAAK,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,GAAG,IAAI;IAOlD,OAAO,IAAI,IAAI;CAGhB"}
@@ -8,3 +8,4 @@ export * from './useEditor.js';
8
8
  export * from './VueNodeViewRenderer.js';
9
9
  export * from './VueRenderer.js';
10
10
  export * from '@tiptap/core';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,0BAA0B,CAAA;AACxC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA"}
@@ -1,3 +1,4 @@
1
1
  import { EditorOptions } from '@tiptap/core';
2
2
  import { Editor } from './Editor.js';
3
3
  export declare const useEditor: (options?: Partial<EditorOptions>) => import("vue").ShallowRef<Editor | undefined>;
4
+ //# sourceMappingURL=useEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useEditor.d.ts","sourceRoot":"","sources":["../src/useEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAG5C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,eAAO,MAAM,SAAS,aAAa,OAAO,CAAC,aAAa,CAAC,iDAYxD,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiptap/vue-3",
3
3
  "description": "Vue components for tiptap",
4
- "version": "2.7.3",
4
+ "version": "2.8.0",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "exports": {
16
16
  ".": {
17
- "types": "./dist/packages/vue-3/src/index.d.ts",
17
+ "types": "./dist/index.d.ts",
18
18
  "import": "./dist/index.js",
19
19
  "require": "./dist/index.cjs"
20
20
  }
@@ -22,19 +22,19 @@
22
22
  "main": "dist/index.cjs",
23
23
  "module": "dist/index.js",
24
24
  "umd": "dist/index.umd.js",
25
- "types": "dist/packages/vue-3/src/index.d.ts",
25
+ "types": "dist/index.d.ts",
26
26
  "type": "module",
27
27
  "files": [
28
28
  "src",
29
29
  "dist"
30
30
  ],
31
31
  "dependencies": {
32
- "@tiptap/extension-bubble-menu": "^2.7.3",
33
- "@tiptap/extension-floating-menu": "^2.7.3"
32
+ "@tiptap/extension-bubble-menu": "^2.8.0",
33
+ "@tiptap/extension-floating-menu": "^2.8.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@tiptap/core": "^2.7.3",
37
- "@tiptap/pm": "^2.7.3",
36
+ "@tiptap/core": "^2.8.0",
37
+ "@tiptap/pm": "^2.8.0",
38
38
  "vue": "^3.0.0"
39
39
  },
40
40
  "peerDependencies": {
@@ -1,20 +0,0 @@
1
- import { EditorState, Transaction } from '@tiptap/pm/state';
2
- import { Editor } from './Editor.js';
3
- import { AnyCommands, CanCommands, ChainedCommands, CommandProps, SingleCommands } from './types.js';
4
- export declare class CommandManager {
5
- editor: Editor;
6
- rawCommands: AnyCommands;
7
- customState?: EditorState;
8
- constructor(props: {
9
- editor: Editor;
10
- state?: EditorState;
11
- });
12
- get hasCustomState(): boolean;
13
- get state(): EditorState;
14
- get commands(): SingleCommands;
15
- get chain(): () => ChainedCommands;
16
- get can(): () => CanCommands;
17
- createChain(startTr?: Transaction, shouldDispatch?: boolean): ChainedCommands;
18
- createCan(startTr?: Transaction): CanCommands;
19
- buildProps(tr: Transaction, shouldDispatch?: boolean): CommandProps;
20
- }
@@ -1,165 +0,0 @@
1
- import { MarkType, NodeType, Schema } from '@tiptap/pm/model';
2
- import { EditorState, Plugin, PluginKey, Transaction } from '@tiptap/pm/state';
3
- import { EditorView } from '@tiptap/pm/view';
4
- import { EventEmitter } from './EventEmitter.js';
5
- import { ExtensionManager } from './ExtensionManager.js';
6
- import { NodePos } from './NodePos.js';
7
- import { CanCommands, ChainedCommands, EditorEvents, EditorOptions, JSONContent, SingleCommands, TextSerializer } from './types.js';
8
- export * as extensions from './extensions/index.js';
9
- export interface TiptapEditorHTMLElement extends HTMLElement {
10
- editor?: Editor;
11
- }
12
- export declare class Editor extends EventEmitter<EditorEvents> {
13
- private commandManager;
14
- extensionManager: ExtensionManager;
15
- private css;
16
- schema: Schema;
17
- view: EditorView;
18
- isFocused: boolean;
19
- /**
20
- * The editor is considered initialized after the `create` event has been emitted.
21
- */
22
- isInitialized: boolean;
23
- extensionStorage: Record<string, any>;
24
- options: EditorOptions;
25
- constructor(options?: Partial<EditorOptions>);
26
- /**
27
- * Returns the editor storage.
28
- */
29
- get storage(): Record<string, any>;
30
- /**
31
- * An object of all registered commands.
32
- */
33
- get commands(): SingleCommands;
34
- /**
35
- * Create a command chain to call multiple commands at once.
36
- */
37
- chain(): ChainedCommands;
38
- /**
39
- * Check if a command or a command chain can be executed. Without executing it.
40
- */
41
- can(): CanCommands;
42
- /**
43
- * Inject CSS styles.
44
- */
45
- private injectCSS;
46
- /**
47
- * Update editor options.
48
- *
49
- * @param options A list of options
50
- */
51
- setOptions(options?: Partial<EditorOptions>): void;
52
- /**
53
- * Update editable state of the editor.
54
- */
55
- setEditable(editable: boolean, emitUpdate?: boolean): void;
56
- /**
57
- * Returns whether the editor is editable.
58
- */
59
- get isEditable(): boolean;
60
- /**
61
- * Returns the editor state.
62
- */
63
- get state(): EditorState;
64
- /**
65
- * Register a ProseMirror plugin.
66
- *
67
- * @param plugin A ProseMirror plugin
68
- * @param handlePlugins Control how to merge the plugin into the existing plugins.
69
- * @returns The new editor state
70
- */
71
- registerPlugin(plugin: Plugin, handlePlugins?: (newPlugin: Plugin, plugins: Plugin[]) => Plugin[]): EditorState;
72
- /**
73
- * Unregister a ProseMirror plugin.
74
- *
75
- * @param nameOrPluginKey The plugins name
76
- * @returns The new editor state or undefined if the editor is destroyed
77
- */
78
- unregisterPlugin(nameOrPluginKey: string | PluginKey): EditorState | undefined;
79
- /**
80
- * Creates an extension manager.
81
- */
82
- private createExtensionManager;
83
- /**
84
- * Creates an command manager.
85
- */
86
- private createCommandManager;
87
- /**
88
- * Creates a ProseMirror schema.
89
- */
90
- private createSchema;
91
- /**
92
- * Creates a ProseMirror view.
93
- */
94
- private createView;
95
- /**
96
- * Creates all node views.
97
- */
98
- createNodeViews(): void;
99
- /**
100
- * Prepend class name to element.
101
- */
102
- prependClass(): void;
103
- isCapturingTransaction: boolean;
104
- private capturedTransaction;
105
- captureTransaction(fn: Function): Transaction | null;
106
- /**
107
- * The callback over which to send transactions (state updates) produced by the view.
108
- *
109
- * @param transaction An editor state transaction
110
- */
111
- private dispatchTransaction;
112
- /**
113
- * Get attributes of the currently selected node or mark.
114
- */
115
- getAttributes(nameOrType: string | NodeType | MarkType): Record<string, any>;
116
- /**
117
- * Returns if the currently selected node or mark is active.
118
- *
119
- * @param name Name of the node or mark
120
- * @param attributes Attributes of the node or mark
121
- */
122
- isActive(name: string, attributes?: {}): boolean;
123
- isActive(attributes: {}): boolean;
124
- /**
125
- * Get the document as JSON.
126
- */
127
- getJSON(): JSONContent;
128
- /**
129
- * Get the document as HTML.
130
- */
131
- getHTML(): string;
132
- /**
133
- * Get the document as text.
134
- */
135
- getText(options?: {
136
- blockSeparator?: string;
137
- textSerializers?: Record<string, TextSerializer>;
138
- }): string;
139
- /**
140
- * Check if there is no content.
141
- */
142
- get isEmpty(): boolean;
143
- /**
144
- * Get the number of characters for the current document.
145
- *
146
- * @deprecated
147
- */
148
- getCharacterCount(): number;
149
- /**
150
- * Destroy the editor.
151
- */
152
- destroy(): void;
153
- /**
154
- * Check if the editor is already destroyed.
155
- */
156
- get isDestroyed(): boolean;
157
- $node(selector: string, attributes?: {
158
- [key: string]: any;
159
- }): NodePos | null;
160
- $nodes(selector: string, attributes?: {
161
- [key: string]: any;
162
- }): NodePos[] | null;
163
- $pos(pos: number): NodePos;
164
- get $doc(): NodePos;
165
- }
@@ -1,11 +0,0 @@
1
- type StringKeyOf<T> = Extract<keyof T, string>;
2
- type CallbackType<T extends Record<string, any>, EventName extends StringKeyOf<T>> = T[EventName] extends any[] ? T[EventName] : [T[EventName]];
3
- type CallbackFunction<T extends Record<string, any>, EventName extends StringKeyOf<T>> = (...props: CallbackType<T, EventName>) => any;
4
- export declare class EventEmitter<T extends Record<string, any>> {
5
- private callbacks;
6
- on<EventName extends StringKeyOf<T>>(event: EventName, fn: CallbackFunction<T, EventName>): this;
7
- emit<EventName extends StringKeyOf<T>>(event: EventName, ...args: CallbackType<T, EventName>): this;
8
- off<EventName extends StringKeyOf<T>>(event: EventName, fn?: CallbackFunction<T, EventName>): this;
9
- removeAllListeners(): void;
10
- }
11
- export {};