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 Nov 8, 2024
1 parent a36b9f0 commit 9fe048d
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 36 deletions.
121 changes: 92 additions & 29 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 @@ -335,7 +336,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
12 changes: 6 additions & 6 deletions packages/pm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,22 +128,22 @@
"dependencies": {
"prosemirror-changeset": "^2.2.1",
"prosemirror-collab": "^1.3.1",
"prosemirror-commands": "^1.6.0",
"prosemirror-commands": "^1.6.2",
"prosemirror-dropcursor": "^1.8.1",
"prosemirror-gapcursor": "^1.3.2",
"prosemirror-history": "^1.4.1",
"prosemirror-inputrules": "^1.4.0",
"prosemirror-keymap": "^1.2.2",
"prosemirror-markdown": "^1.13.0",
"prosemirror-markdown": "^1.13.1",
"prosemirror-menu": "^1.2.4",
"prosemirror-model": "^1.22.3",
"prosemirror-model": "^1.23.0",
"prosemirror-schema-basic": "^1.2.3",
"prosemirror-schema-list": "^1.4.1",
"prosemirror-state": "^1.4.3",
"prosemirror-tables": "^1.4.0",
"prosemirror-tables": "^1.6.1",
"prosemirror-trailing-node": "^3.0.0",
"prosemirror-transform": "^1.10.0",
"prosemirror-view": "^1.34.3"
"prosemirror-transform": "^1.10.2",
"prosemirror-view": "^1.36.0"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 9fe048d

Please sign in to comment.