Skip to content

Commit

Permalink
fix: update missing node view props to match NodeViewProps type (#6006
Browse files Browse the repository at this point in the history
)
  • Loading branch information
GYHHAHA authored Jan 9, 2025
1 parent dac7fd2 commit 9787f8b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/silly-wolves-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tiptap/vue-3": patch
---

update node view props to match `NodeViewProps` type
12 changes: 12 additions & 0 deletions packages/vue-3/src/VueNodeViewRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,18 @@ export const nodeViewProps = {
type: Function as PropType<NodeViewProps['deleteNode']>,
required: true as const,
},
view: {
type: Object as PropType<NodeViewProps['view']>,
required: true as const,
},
innerDecorations: {
type: Object as PropType<NodeViewProps['innerDecorations']>,
required: true as const,
},
HTMLAttributes: {
type: Object as PropType<NodeViewProps['HTMLAttributes']>,
required: true as const,
},
}

export interface VueNodeViewRendererOptions extends NodeViewRendererOptions {
Expand Down

0 comments on commit 9787f8b

Please sign in to comment.