@tiptap/vue-3
Advanced tools
Comparing version 2.7.2 to 2.7.3
import { Schema } from '@tiptap/pm/model'; | ||
import { Plugin } from '@tiptap/pm/state'; | ||
import { NodeViewConstructor } from '@tiptap/pm/view'; | ||
import type { Editor } from './Editor.js'; | ||
@@ -49,3 +50,3 @@ import { Extensions, RawCommands } from './types.js'; | ||
*/ | ||
get nodeViews(): any; | ||
get nodeViews(): Record<string, NodeViewConstructor>; | ||
/** | ||
@@ -52,0 +53,0 @@ * Go through all extensions, create extension storages & setup marks |
@@ -192,9 +192,6 @@ import { Mark as ProseMirrorMark, Node as ProseMirrorNode, NodeType, ParseOptions, Slice } from '@tiptap/pm/model'; | ||
}[keyof T]; | ||
export type Simplify<T> = { | ||
[KeyType in keyof T]: T[KeyType]; | ||
} & {}; | ||
export type DecorationWithType = Decoration & { | ||
type: NodeType; | ||
}; | ||
export type NodeViewProps = Simplify<Omit<NodeViewRendererProps, 'decorations'> & { | ||
export interface NodeViewProps extends NodeViewRendererProps { | ||
decorations: readonly DecorationWithType[]; | ||
@@ -204,3 +201,3 @@ selected: boolean; | ||
deleteNode: () => void; | ||
}>; | ||
} | ||
export interface NodeViewRendererOptions { | ||
@@ -218,3 +215,3 @@ stopEvent: ((props: { | ||
} | ||
export type NodeViewRendererProps = { | ||
export interface NodeViewRendererProps { | ||
node: Parameters<NodeViewConstructor>[0]; | ||
@@ -228,3 +225,3 @@ view: Parameters<NodeViewConstructor>[1]; | ||
HTMLAttributes: Record<string, any>; | ||
}; | ||
} | ||
export type NodeViewRenderer = (props: NodeViewRendererProps) => NodeView; | ||
@@ -231,0 +228,0 @@ export type AnyCommands = Record<string, (...args: any[]) => Command>; |
{ | ||
"name": "@tiptap/vue-3", | ||
"description": "Vue components for tiptap", | ||
"version": "2.7.2", | ||
"version": "2.7.3", | ||
"homepage": "https://tiptap.dev", | ||
@@ -32,8 +32,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@tiptap/extension-bubble-menu": "^2.7.2", | ||
"@tiptap/extension-floating-menu": "^2.7.2" | ||
"@tiptap/extension-bubble-menu": "^2.7.3", | ||
"@tiptap/extension-floating-menu": "^2.7.3" | ||
}, | ||
"devDependencies": { | ||
"@tiptap/core": "^2.7.2", | ||
"@tiptap/pm": "^2.7.2", | ||
"@tiptap/core": "^2.7.3", | ||
"@tiptap/pm": "^2.7.3", | ||
"vue": "^3.0.0" | ||
@@ -40,0 +40,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
341291
6569