fix: update missing node view props to match NodeViewProps type (#6006)
Some checks are pending
build / lint (20) (push) Waiting to run
build / test (20, map[name:Demos/Examples spec:./demos/src/Examples/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/Experiments spec:./demos/src/Experiments/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/Extensions spec:./demos/src/Extensions/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/GuideContent spec:./demos/src/GuideContent/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/GuideGettingStarted spec:./demos/src/GuideGettingStarted/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/Marks spec:./demos/src/Marks/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/Nodes spec:./demos/src/Nodes/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Integration spec:./tests/cypress/integration/**/*.spec.{js,ts}]) (push) Waiting to run
build / build (20) (push) Blocked by required conditions
Publish / Release (20) (push) Waiting to run

This commit is contained in:
Yuanhao Geng 2025-01-09 04:44:21 -05:00 committed by GitHub
parent dac7fd2a0c
commit 9787f8b2a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
"@tiptap/vue-3": patch
---
update node view props to match `NodeViewProps` type

View File

@ -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 {