@tiptap/extension-mention
Advanced tools
Comparing version 2.0.0-alpha.6 to 2.0.0-alpha.7
@@ -6,2 +6,10 @@ # Change Log | ||
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-mention@2.0.0-alpha.6...@tiptap/extension-mention@2.0.0-alpha.7) (2021-02-16) | ||
**Note:** Version bump only for package @tiptap/extension-mention | ||
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-mention@2.0.0-alpha.5...@tiptap/extension-mention@2.0.0-alpha.6) (2021-02-07) | ||
@@ -8,0 +16,0 @@ |
@@ -9,7 +9,2 @@ import { Node } from '@tiptap/core'; | ||
}; | ||
export declare const Mention: Node<MentionOptions, unknown>; | ||
declare module '@tiptap/core' { | ||
interface AllExtensions { | ||
Mention: typeof Mention; | ||
} | ||
} | ||
export declare const Mention: Node<MentionOptions>; |
@@ -26,2 +26,5 @@ 'use strict'; | ||
}, | ||
allow: ({ editor, range }) => { | ||
return editor.can().replaceRange(range, 'mention'); | ||
}, | ||
}, | ||
@@ -28,0 +31,0 @@ }, |
@@ -18,2 +18,5 @@ import { Node, mergeAttributes } from '@tiptap/core'; | ||
}, | ||
allow: ({ editor, range }) => { | ||
return editor.can().replaceRange(range, 'mention'); | ||
}, | ||
}, | ||
@@ -20,0 +23,0 @@ }, |
@@ -25,2 +25,5 @@ (function (global, factory) { | ||
}, | ||
allow: ({ editor, range }) => { | ||
return editor.can().replaceRange(range, 'mention'); | ||
}, | ||
}, | ||
@@ -27,0 +30,0 @@ }, |
{ | ||
"name": "@tiptap/extension-mention", | ||
"description": "mention extension for tiptap", | ||
"version": "2.0.0-alpha.6", | ||
"version": "2.0.0-alpha.7", | ||
"homepage": "https://tiptap.dev", | ||
@@ -28,5 +28,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@tiptap/suggestion": "^2.0.0-alpha.6" | ||
"@tiptap/suggestion": "^2.0.0-alpha.7" | ||
}, | ||
"gitHead": "6bdeb4615c7b6afba4a2fcac4e3c35d7a7c0030a" | ||
"gitHead": "71d8fbbcb1eacd664bb6992e0086a589e4684e69" | ||
} |
@@ -11,6 +11,6 @@ import { Node, mergeAttributes } from '@tiptap/core' | ||
export const Mention = Node.create({ | ||
export const Mention = Node.create<MentionOptions>({ | ||
name: 'mention', | ||
defaultOptions: <MentionOptions>{ | ||
defaultOptions: { | ||
HTMLAttributes: {}, | ||
@@ -27,2 +27,5 @@ suggestion: { | ||
}, | ||
allow: ({ editor, range }) => { | ||
return editor.can().replaceRange(range, 'mention') | ||
}, | ||
}, | ||
@@ -111,7 +114,1 @@ }, | ||
}) | ||
declare module '@tiptap/core' { | ||
interface AllExtensions { | ||
Mention: typeof Mention, | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
893809
1051