Add undo to web composer (#542)

zio/stable
Ollie Hsieh 2023-04-27 07:27:33 -07:00 committed by GitHub
parent a81158bd2a
commit afd87a6390
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 0 deletions

View File

@ -48,6 +48,7 @@
"@segment/sovran-react-native": "^0.4.5",
"@tiptap/core": "^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-mention": "^2.0.0-beta.220",
"@tiptap/extension-paragraph": "^2.0.0-beta.220",

View File

@ -3,6 +3,7 @@ import {StyleSheet, View} from 'react-native'
import {RichText} from '@atproto/api'
import {useEditor, EditorContent, JSONContent} from '@tiptap/react'
import {Document} from '@tiptap/extension-document'
import History from '@tiptap/extension-history'
import {Link} from '@tiptap/extension-link'
import {Mention} from '@tiptap/extension-mention'
import {Paragraph} from '@tiptap/extension-paragraph'
@ -70,6 +71,7 @@ export const TextInput = React.forwardRef(
placeholder,
}),
Text,
History,
],
editorProps: {
attributes: {

View File

@ -4193,6 +4193,11 @@
dependencies:
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":
version "2.0.0-beta.220"
resolved "https://registry.yarnpkg.com/@tiptap/extension-link/-/extension-link-2.0.0-beta.220.tgz#c9954613cd1e0a0f1527853b732ef50dff734eac"