@tiptap/extension-font-family
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/extension-font-family", | ||
"description": "font family extension for tiptap", | ||
"version": "2.7.2", | ||
"version": "2.7.3", | ||
"homepage": "https://tiptap.dev", | ||
@@ -32,4 +32,4 @@ "keywords": [ | ||
"devDependencies": { | ||
"@tiptap/core": "^2.7.2", | ||
"@tiptap/extension-text-style": "^2.7.2" | ||
"@tiptap/core": "^2.7.3", | ||
"@tiptap/extension-text-style": "^2.7.3" | ||
}, | ||
@@ -36,0 +36,0 @@ "peerDependencies": { |
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
163475
4101