Skip to content

Commit

Permalink
fix: bump prosemirror (#246)
Browse files Browse the repository at this point in the history
* Bump prosemirror libraries

* Adjustments for new types
  • Loading branch information
jonathonherbert authored Nov 22, 2022
1 parent c2bb682 commit ac2bf7e
Show file tree
Hide file tree
Showing 8 changed files with 148 additions and 94 deletions.
155 changes: 98 additions & 57 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,17 @@
"@popperjs/core": "^2.4.4",
"diff": "^4.0.2",
"lodash": "^4.17.11",
"prosemirror-changeset": "^2.1.2",
"prosemirror-example-setup": "^1.1.2",
"prosemirror-history": "^1.1.2",
"prosemirror-keymap": "^1.0.0",
"prosemirror-menu": "^1.1.1",
"prosemirror-model": "^1.8.2",
"prosemirror-schema-basic": "^1.1.2",
"prosemirror-state": "^1.3.4",
"prosemirror-test-builder": "^1.0.1",
"prosemirror-utils": "^0.6.7",
"prosemirror-view": "^1.13.4",
"prosemirror-changeset": "^2.2.0",
"prosemirror-example-setup": "^1.2.1",
"prosemirror-history": "^1.3.0",
"prosemirror-keymap": "^1.2.0",
"prosemirror-menu": "^1.2.1",
"prosemirror-model": "^1.18.2",
"prosemirror-schema-basic": "^1.2.0",
"prosemirror-state": "^1.4.2",
"prosemirror-test-builder": "^1.1.0",
"prosemirror-utils": "^0.9.6",
"prosemirror-view": "^1.29.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-popper": "^2.2.5",
Expand Down
6 changes: 3 additions & 3 deletions src/ts/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ export const applyAutoFixableSuggestionsCommand = (
*/
export const ignoreMatchCommand = (id: string) => (getState: GetState) => (
state: EditorState,
dispatch?: (tr: Transaction<any>) => void
dispatch?: (tr: Transaction) => void
): boolean => {
const pluginState = getState(state);
if (!pluginState) {
Expand All @@ -352,7 +352,7 @@ export const ignoreMatchCommand = (id: string) => (getState: GetState) => (

export const clearMatchesCommand = () => (_: GetState) => (
state: EditorState,
dispatch?: (tr: Transaction<any>) => void
dispatch?: (tr: Transaction) => void
): boolean => {
if (dispatch) {
dispatch(
Expand All @@ -369,7 +369,7 @@ const maybeApplySuggestions = (
text: string | undefined;
}>,
state: EditorState,
dispatch?: (tr: Transaction<any>) => void
dispatch?: (tr: Transaction) => void
) => {
if (!suggestionsToApply.length) {
return false;
Expand Down
Loading

0 comments on commit ac2bf7e

Please sign in to comment.