Skip to content

Commit

Permalink
chore: add new MarkView type
Browse files Browse the repository at this point in the history
  • Loading branch information
nperez0111 committed Dec 30, 2024
1 parent d27eba0 commit af7c46f
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 33 deletions.
76 changes: 48 additions & 28 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
DecorationAttrs,
EditorProps,
EditorView,
MarkView,
MarkViewConstructor,
NodeView,
NodeViewConstructor,
Expand Down Expand Up @@ -336,7 +337,7 @@ export interface MarkViewRendererProps {
HTMLAttributes: Record<string, any>;
}

export type MarkViewRenderer = (props: MarkViewRendererProps) => ReturnType<MarkViewConstructor>;
export type MarkViewRenderer = (props: MarkViewRendererProps) => MarkView;

export type AnyCommands = Record<string, (...args: any[]) => Command>;

Expand Down
8 changes: 4 additions & 4 deletions packages/pm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,14 @@
"prosemirror-keymap": "^1.2.2",
"prosemirror-markdown": "^1.13.1",
"prosemirror-menu": "^1.2.4",
"prosemirror-model": "^1.23.0",
"prosemirror-model": "^1.24.1",
"prosemirror-schema-basic": "^1.2.3",
"prosemirror-schema-list": "^1.4.1",
"prosemirror-schema-list": "^1.5.0",
"prosemirror-state": "^1.4.3",
"prosemirror-tables": "^1.6.1",
"prosemirror-tables": "^1.6.2",
"prosemirror-trailing-node": "^3.0.0",
"prosemirror-transform": "^1.10.2",
"prosemirror-view": "^1.37.0"
"prosemirror-view": "^1.37.1"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit af7c46f

Please sign in to comment.