add more types
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
"dist"
|
||||
],
|
||||
"dependencies": {
|
||||
"@types/prosemirror-dropcursor": "^1.0.0",
|
||||
"@types/prosemirror-gapcursor": "^1.0.1",
|
||||
"collect.js": "^4.20.3",
|
||||
"events": "^3.1.0",
|
||||
"prosemirror-commands": "^1.1.3",
|
||||
|
||||
@@ -5,9 +5,7 @@ import { Schema, DOMParser, DOMSerializer } from 'prosemirror-model'
|
||||
import { inputRules, undoInputRule } from 'prosemirror-inputrules'
|
||||
import { keymap } from 'prosemirror-keymap'
|
||||
import { baseKeymap } from 'prosemirror-commands'
|
||||
// @ts-ignore
|
||||
import { dropCursor } from 'prosemirror-dropcursor'
|
||||
// @ts-ignore
|
||||
import { gapCursor } from 'prosemirror-gapcursor'
|
||||
|
||||
import elementFromString from './utils/elementFromString'
|
||||
|
||||
@@ -28,7 +28,7 @@ export default class ExtensionManager {
|
||||
.all()
|
||||
}
|
||||
|
||||
get plugins() {
|
||||
get plugins(): any {
|
||||
return collect(this.extensions)
|
||||
.flatMap(extension => extension.plugins)
|
||||
.toArray()
|
||||
|
||||
14
yarn.lock
14
yarn.lock
@@ -2081,6 +2081,20 @@
|
||||
"@types/prosemirror-state" "*"
|
||||
"@types/prosemirror-view" "*"
|
||||
|
||||
"@types/prosemirror-dropcursor@^1.0.0":
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/@types/prosemirror-dropcursor/-/prosemirror-dropcursor-1.0.0.tgz#2df872bc6431a9f06bc1a4a0eac7c2dc527e7f12"
|
||||
integrity sha512-S2ndHt94M64avSqjBcgIblaF3YeC3RfcmpY9/WIdfqU7aoJxuOh4RJk5emdmQPHZT1wbczMHFmFSsRqgErK0EQ==
|
||||
dependencies:
|
||||
"@types/prosemirror-state" "*"
|
||||
|
||||
"@types/prosemirror-gapcursor@^1.0.1":
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@types/prosemirror-gapcursor/-/prosemirror-gapcursor-1.0.1.tgz#56a6274ef39f62c339adcc64305294b800211a5e"
|
||||
integrity sha512-ruA7FK9NJv+bn5s55SZYFf9SwaN3wk/MkBvqRmhIqIHvowTTa7nzIGWbUdWZMga1DDTk+GrwdcQaEHunAFjFsQ==
|
||||
dependencies:
|
||||
"@types/prosemirror-state" "*"
|
||||
|
||||
"@types/prosemirror-history@^1.0.1":
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@types/prosemirror-history/-/prosemirror-history-1.0.1.tgz#b8d7595f73788b63fc9f2b57a763ba8375abfe87"
|
||||
|
||||
Reference in New Issue
Block a user