refactor(maintainment): set dependency versions for prosemirror and y… (#2904)
* refactor(maintainment): set dependency versions for prosemirror and yjs to fixed versions * refactor(docs): fix dependency versions in demos * chore: update package-lock.json * chore: update latest prosemirror packages
This commit is contained in:
@@ -24,13 +24,13 @@
|
||||
"dist"
|
||||
],
|
||||
"dependencies": {
|
||||
"prosemirror-commands": "^1.3.0",
|
||||
"prosemirror-keymap": "^1.2.0",
|
||||
"prosemirror-model": "^1.17.0",
|
||||
"prosemirror-schema-list": "^1.2.0",
|
||||
"prosemirror-state": "^1.4.0",
|
||||
"prosemirror-transform": "^1.6.0",
|
||||
"prosemirror-view": "^1.25.0"
|
||||
"prosemirror-commands": "1.3.0",
|
||||
"prosemirror-keymap": "1.2.0",
|
||||
"prosemirror-model": "1.18.1",
|
||||
"prosemirror-schema-list": "1.2.0",
|
||||
"prosemirror-state": "1.4.0",
|
||||
"prosemirror-transform": "1.6.0",
|
||||
"prosemirror-view": "1.26.1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -190,7 +190,7 @@ export function pasteRulesPlugin(props: { editor: Editor, rules: PasteRule[] }):
|
||||
return false
|
||||
},
|
||||
|
||||
paste: (view, event) => {
|
||||
paste: (view, event: Event) => {
|
||||
const html = (event as ClipboardEvent).clipboardData?.getData('text/html')
|
||||
|
||||
isPastedFromProseMirror = !!html?.includes('data-pm-slice')
|
||||
|
||||
@@ -13,7 +13,7 @@ export const FocusEvents = Extension.create({
|
||||
key: new PluginKey('focusEvents'),
|
||||
props: {
|
||||
handleDOMEvents: {
|
||||
focus: (view, event) => {
|
||||
focus: (view, event: Event) => {
|
||||
editor.isFocused = true
|
||||
|
||||
const transaction = editor.state.tr
|
||||
@@ -24,7 +24,7 @@ export const FocusEvents = Extension.create({
|
||||
|
||||
return false
|
||||
},
|
||||
blur: (view, event) => {
|
||||
blur: (view, event: Event) => {
|
||||
editor.isFocused = false
|
||||
|
||||
const transaction = editor.state.tr
|
||||
|
||||
Reference in New Issue
Block a user