Add undo to web composer (#542)
parent
a81158bd2a
commit
afd87a6390
|
@ -48,6 +48,7 @@
|
||||||
"@segment/sovran-react-native": "^0.4.5",
|
"@segment/sovran-react-native": "^0.4.5",
|
||||||
"@tiptap/core": "^2.0.0-beta.220",
|
"@tiptap/core": "^2.0.0-beta.220",
|
||||||
"@tiptap/extension-document": "^2.0.0-beta.220",
|
"@tiptap/extension-document": "^2.0.0-beta.220",
|
||||||
|
"@tiptap/extension-history": "^2.0.3",
|
||||||
"@tiptap/extension-link": "^2.0.0-beta.220",
|
"@tiptap/extension-link": "^2.0.0-beta.220",
|
||||||
"@tiptap/extension-mention": "^2.0.0-beta.220",
|
"@tiptap/extension-mention": "^2.0.0-beta.220",
|
||||||
"@tiptap/extension-paragraph": "^2.0.0-beta.220",
|
"@tiptap/extension-paragraph": "^2.0.0-beta.220",
|
||||||
|
|
|
@ -3,6 +3,7 @@ import {StyleSheet, View} from 'react-native'
|
||||||
import {RichText} from '@atproto/api'
|
import {RichText} from '@atproto/api'
|
||||||
import {useEditor, EditorContent, JSONContent} from '@tiptap/react'
|
import {useEditor, EditorContent, JSONContent} from '@tiptap/react'
|
||||||
import {Document} from '@tiptap/extension-document'
|
import {Document} from '@tiptap/extension-document'
|
||||||
|
import History from '@tiptap/extension-history'
|
||||||
import {Link} from '@tiptap/extension-link'
|
import {Link} from '@tiptap/extension-link'
|
||||||
import {Mention} from '@tiptap/extension-mention'
|
import {Mention} from '@tiptap/extension-mention'
|
||||||
import {Paragraph} from '@tiptap/extension-paragraph'
|
import {Paragraph} from '@tiptap/extension-paragraph'
|
||||||
|
@ -70,6 +71,7 @@ export const TextInput = React.forwardRef(
|
||||||
placeholder,
|
placeholder,
|
||||||
}),
|
}),
|
||||||
Text,
|
Text,
|
||||||
|
History,
|
||||||
],
|
],
|
||||||
editorProps: {
|
editorProps: {
|
||||||
attributes: {
|
attributes: {
|
||||||
|
|
|
@ -4193,6 +4193,11 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
tippy.js "^6.3.7"
|
tippy.js "^6.3.7"
|
||||||
|
|
||||||
|
"@tiptap/extension-history@^2.0.3":
|
||||||
|
version "2.0.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/@tiptap/extension-history/-/extension-history-2.0.3.tgz#8936c15aa46f2ddeada1c3d9abe2888d58d08c30"
|
||||||
|
integrity sha512-00KHIcJ8kivn2ARI6NQYphv2LfllVCXViHGm0EhzDW6NQxCrriJKE3tKDcTFCu7LlC5doMpq9Z6KXdljc4oVeQ==
|
||||||
|
|
||||||
"@tiptap/extension-link@^2.0.0-beta.220":
|
"@tiptap/extension-link@^2.0.0-beta.220":
|
||||||
version "2.0.0-beta.220"
|
version "2.0.0-beta.220"
|
||||||
resolved "https://registry.yarnpkg.com/@tiptap/extension-link/-/extension-link-2.0.0-beta.220.tgz#c9954613cd1e0a0f1527853b732ef50dff734eac"
|
resolved "https://registry.yarnpkg.com/@tiptap/extension-link/-/extension-link-2.0.0-beta.220.tgz#c9954613cd1e0a0f1527853b732ef50dff734eac"
|
||||||
|
|
Loading…
Reference in New Issue