@tiptap/core
Advanced tools
Comparing version 2.5.0-beta.6 to 2.5.0-pre.8
@@ -37,3 +37,3 @@ import { Plugin, Transaction } from '@tiptap/pm/state'; | ||
* This method will add options to this extension | ||
* @see https://tiptap.dev/guide/custom-extensions#settings | ||
* @see https://tiptap.dev/docs/editor/guide/custom-extensions#settings | ||
* @example | ||
@@ -52,3 +52,3 @@ * addOptions() { | ||
* The default storage this extension can save data to. | ||
* @see https://tiptap.dev/guide/custom-extensions#storage | ||
* @see https://tiptap.dev/docs/editor/guide/custom-extensions#storage | ||
* @example | ||
@@ -67,3 +67,3 @@ * defaultStorage: { | ||
* This function adds globalAttributes to specific nodes. | ||
* @see https://tiptap.dev/guide/custom-extensions#global-attributes | ||
* @see https://tiptap.dev/docs/editor/guide/custom-extensions#global-attributes | ||
* @example | ||
@@ -101,3 +101,3 @@ * addGlobalAttributes() { | ||
* This function adds commands to the editor | ||
* @see https://tiptap.dev/guide/custom-extensions#keyboard-shortcuts | ||
* @see https://tiptap.dev/docs/editor/guide/custom-extensions#commands | ||
* @example | ||
@@ -119,3 +119,3 @@ * addCommands() { | ||
* This function registers keyboard shortcuts. | ||
* @see https://tiptap.dev/guide/custom-extensions#keyboard-shortcuts | ||
* @see https://tiptap.dev/docs/editor/guide/custom-extensions#keyboard-shortcuts | ||
* @example | ||
@@ -139,3 +139,3 @@ * addKeyboardShortcuts() { | ||
* This function adds input rules to the editor. | ||
* @see https://tiptap.dev/guide/custom-extensions#input-rules | ||
* @see https://tiptap.dev/docs/editor/guide/custom-extensions#input-rules | ||
* @example | ||
@@ -160,3 +160,3 @@ * addInputRules() { | ||
* This function adds paste rules to the editor. | ||
* @see https://tiptap.dev/guide/custom-extensions#paste-rules | ||
* @see https://tiptap.dev/docs/editor/guide/custom-extensions#paste-rules | ||
* @example | ||
@@ -181,3 +181,3 @@ * addPasteRules() { | ||
* This function adds Prosemirror plugins to the editor | ||
* @see https://tiptap.dev/guide/custom-extensions#prosemirror-plugins | ||
* @see https://tiptap.dev/docs/editor/guide/custom-extensions#prosemirror-plugins | ||
* @example | ||
@@ -184,0 +184,0 @@ * addProseMirrorPlugins() { |
@@ -43,2 +43,7 @@ import { Mark as ProseMirrorMark, Node as ProseMirrorNode, NodeType, ParseOptions } from '@tiptap/pm/model'; | ||
}; | ||
beforeTransaction: { | ||
editor: Editor; | ||
transaction: Transaction; | ||
nextState: EditorState; | ||
}; | ||
transaction: { | ||
@@ -45,0 +50,0 @@ editor: Editor; |
{ | ||
"name": "@tiptap/core", | ||
"description": "headless rich text editor", | ||
"version": "2.5.0-beta.6", | ||
"version": "2.5.0-pre.8", | ||
"homepage": "https://tiptap.dev", | ||
@@ -35,6 +35,6 @@ "keywords": [ | ||
"devDependencies": { | ||
"@tiptap/pm": "^2.5.0-beta.6" | ||
"@tiptap/pm": "^2.5.0-pre.8" | ||
}, | ||
"peerDependencies": { | ||
"@tiptap/pm": "^2.0.0" | ||
"@tiptap/pm": "^2.5.0-pre.8" | ||
}, | ||
@@ -41,0 +41,0 @@ "repository": { |
@@ -409,2 +409,7 @@ import { | ||
this.emit('beforeTransaction', { | ||
editor: this, | ||
transaction, | ||
nextState: state, | ||
}) | ||
this.view.updateState(state) | ||
@@ -411,0 +416,0 @@ this.emit('transaction', { |
@@ -54,3 +54,3 @@ import { Plugin, Transaction } from '@tiptap/pm/state' | ||
* This method will add options to this extension | ||
* @see https://tiptap.dev/guide/custom-extensions#settings | ||
* @see https://tiptap.dev/docs/editor/guide/custom-extensions#settings | ||
* @example | ||
@@ -70,3 +70,3 @@ * addOptions() { | ||
* The default storage this extension can save data to. | ||
* @see https://tiptap.dev/guide/custom-extensions#storage | ||
* @see https://tiptap.dev/docs/editor/guide/custom-extensions#storage | ||
* @example | ||
@@ -86,3 +86,3 @@ * defaultStorage: { | ||
* This function adds globalAttributes to specific nodes. | ||
* @see https://tiptap.dev/guide/custom-extensions#global-attributes | ||
* @see https://tiptap.dev/docs/editor/guide/custom-extensions#global-attributes | ||
* @example | ||
@@ -121,3 +121,3 @@ * addGlobalAttributes() { | ||
* This function adds commands to the editor | ||
* @see https://tiptap.dev/guide/custom-extensions#keyboard-shortcuts | ||
* @see https://tiptap.dev/docs/editor/guide/custom-extensions#commands | ||
* @example | ||
@@ -140,3 +140,3 @@ * addCommands() { | ||
* This function registers keyboard shortcuts. | ||
* @see https://tiptap.dev/guide/custom-extensions#keyboard-shortcuts | ||
* @see https://tiptap.dev/docs/editor/guide/custom-extensions#keyboard-shortcuts | ||
* @example | ||
@@ -161,3 +161,3 @@ * addKeyboardShortcuts() { | ||
* This function adds input rules to the editor. | ||
* @see https://tiptap.dev/guide/custom-extensions#input-rules | ||
* @see https://tiptap.dev/docs/editor/guide/custom-extensions#input-rules | ||
* @example | ||
@@ -183,3 +183,3 @@ * addInputRules() { | ||
* This function adds paste rules to the editor. | ||
* @see https://tiptap.dev/guide/custom-extensions#paste-rules | ||
* @see https://tiptap.dev/docs/editor/guide/custom-extensions#paste-rules | ||
* @example | ||
@@ -205,3 +205,3 @@ * addPasteRules() { | ||
* This function adds Prosemirror plugins to the editor | ||
* @see https://tiptap.dev/guide/custom-extensions#prosemirror-plugins | ||
* @see https://tiptap.dev/docs/editor/guide/custom-extensions#prosemirror-plugins | ||
* @example | ||
@@ -208,0 +208,0 @@ * addProseMirrorPlugins() { |
@@ -53,2 +53,3 @@ import { | ||
selectionUpdate: { editor: Editor; transaction: Transaction } | ||
beforeTransaction: { editor: Editor; transaction: Transaction, nextState: EditorState } | ||
transaction: { editor: Editor; transaction: Transaction } | ||
@@ -55,0 +56,0 @@ focus: { editor: Editor; event: FocusEvent; transaction: Transaction } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2292481
27060
1