@tiptap/extension-bubble-menu
Advanced tools
Comparing version 2.5.9 to 2.6.0
@@ -0,1 +1,2 @@ | ||
import type { Plugin, PluginKey } from '@tiptap/pm/state'; | ||
import { RawCommands } from '../types.js'; | ||
@@ -11,3 +12,3 @@ declare module '@tiptap/core' { | ||
*/ | ||
setMeta: (key: string, value: any) => ReturnType; | ||
setMeta: (key: string | Plugin | PluginKey, value: any) => ReturnType; | ||
}; | ||
@@ -14,0 +15,0 @@ } |
@@ -9,5 +9,6 @@ import { NodeType } from '@tiptap/pm/model'; | ||
* @param typeOrName The type or name of the node. | ||
* @param overrideAttrs The attributes to ensure on the new node. | ||
* @example editor.commands.splitListItem('listItem') | ||
*/ | ||
splitListItem: (typeOrName: string | NodeType) => ReturnType; | ||
splitListItem: (typeOrName: string | NodeType, overrideAttrs?: Record<string, any>) => ReturnType; | ||
}; | ||
@@ -14,0 +15,0 @@ } |
@@ -19,2 +19,6 @@ import { MarkType, NodeType, Schema } from '@tiptap/pm/model'; | ||
isFocused: boolean; | ||
/** | ||
* The editor is considered initialized after the `create` event has been emitted. | ||
*/ | ||
isInitialized: boolean; | ||
extensionStorage: Record<string, any>; | ||
@@ -21,0 +25,0 @@ options: EditorOptions; |
@@ -20,6 +20,6 @@ import { Plugin, Transaction } from '@tiptap/pm/state'; | ||
/** | ||
* The priority of your extension. The higher, the later it will be called | ||
* The priority of your extension. The higher, the earlier it will be called | ||
* and will take precedence over other extensions with a lower priority. | ||
* @default 1000 | ||
* @example 1001 | ||
* @default 100 | ||
* @example 101 | ||
*/ | ||
@@ -290,2 +290,3 @@ priority?: number; | ||
}, props: { | ||
editor: Editor; | ||
transaction: Transaction; | ||
@@ -292,0 +293,0 @@ }) => void) | null; |
@@ -20,6 +20,6 @@ import { DOMOutputSpec, Mark as ProseMirrorMark, MarkSpec, MarkType } from '@tiptap/pm/model'; | ||
/** | ||
* The priority of your extension. The higher, the later it will be called | ||
* The priority of your extension. The higher, the earlier it will be called | ||
* and will take precedence over other extensions with a lower priority. | ||
* @default 1000 | ||
* @example 1001 | ||
* @default 100 | ||
* @example 101 | ||
*/ | ||
@@ -300,2 +300,3 @@ priority?: number; | ||
}, props: { | ||
editor: Editor; | ||
transaction: Transaction; | ||
@@ -302,0 +303,0 @@ }) => void) | null; |
@@ -20,6 +20,6 @@ import { DOMOutputSpec, Node as ProseMirrorNode, NodeSpec, NodeType } from '@tiptap/pm/model'; | ||
/** | ||
* The priority of your extension. The higher, the later it will be called | ||
* The priority of your extension. The higher, the earlier it will be called | ||
* and will take precedence over other extensions with a lower priority. | ||
* @default 1000 | ||
* @example 1001 | ||
* @default 100 | ||
* @example 101 | ||
*/ | ||
@@ -301,2 +301,3 @@ priority?: number; | ||
}, props: { | ||
editor: Editor; | ||
transaction: Transaction; | ||
@@ -303,0 +304,0 @@ }) => void) | null; |
import { NodeType } from '@tiptap/pm/model'; | ||
import { PasteRule, PasteRuleFinder } from '../PasteRule.js'; | ||
import { ExtendedRegExpMatchArray } from '../types.js'; | ||
import { ExtendedRegExpMatchArray, JSONContent } from '../types.js'; | ||
/** | ||
@@ -13,2 +13,3 @@ * Build an paste rule that adds a node when the | ||
getAttributes?: Record<string, any> | ((match: ExtendedRegExpMatchArray, event: ClipboardEvent) => Record<string, any>) | false | null; | ||
getContent?: JSONContent[] | ((attrs: Record<string, any>) => JSONContent[]) | false | null; | ||
}): PasteRule; |
{ | ||
"name": "@tiptap/extension-bubble-menu", | ||
"description": "bubble-menu extension for tiptap", | ||
"version": "2.5.9", | ||
"version": "2.6.0", | ||
"homepage": "https://tiptap.dev", | ||
@@ -41,8 +41,8 @@ "keywords": [ | ||
"devDependencies": { | ||
"@tiptap/core": "^2.5.9", | ||
"@tiptap/pm": "^2.5.9" | ||
"@tiptap/core": "^2.6.0", | ||
"@tiptap/pm": "^2.6.0" | ||
}, | ||
"peerDependencies": { | ||
"@tiptap/core": "^2.5.9", | ||
"@tiptap/pm": "^2.5.9" | ||
"@tiptap/core": "^2.6.0", | ||
"@tiptap/pm": "^2.6.0" | ||
}, | ||
@@ -49,0 +49,0 @@ "scripts": { |
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
234558
4784