@tiptap/extension-collaboration
Advanced tools
Comparing version
@@ -92,4 +92,4 @@ import { Extension } from '@tiptap/core'; | ||
const ySyncPluginOptions = { | ||
...(this.options.ySyncOptions ? { ...this.options.ySyncOptions } : {}), | ||
...(this.options.onFirstRender ? { ...this.options.onFirstRender } : {}), | ||
...this.options.ySyncOptions, | ||
onFirstRender: this.options.onFirstRender, | ||
}; | ||
@@ -96,0 +96,0 @@ const ySyncPluginInstance = ySyncPlugin(fragment, ySyncPluginOptions); |
@@ -95,4 +95,4 @@ (function (global, factory) { | ||
const ySyncPluginOptions = { | ||
...(this.options.ySyncOptions ? { ...this.options.ySyncOptions } : {}), | ||
...(this.options.onFirstRender ? { ...this.options.onFirstRender } : {}), | ||
...this.options.ySyncOptions, | ||
onFirstRender: this.options.onFirstRender, | ||
}; | ||
@@ -99,0 +99,0 @@ const ySyncPluginInstance = yProsemirror.ySyncPlugin(fragment, ySyncPluginOptions); |
@@ -341,4 +341,4 @@ import { Plugin, Transaction } from '@tiptap/pm/state'; | ||
static create<O = any, S = any>(config?: Partial<ExtensionConfig<O, S>>): Extension<O, S>; | ||
configure(options?: Partial<Options>): Extension<any, any>; | ||
configure(options?: Partial<Options>): Extension<Options, Storage>; | ||
extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig?: Partial<ExtensionConfig<ExtendedOptions, ExtendedStorage>>): Extension<ExtendedOptions, ExtendedStorage>; | ||
} |
import { Node as ProseMirrorNode } from '@tiptap/pm/model'; | ||
/** | ||
* Returns true if the given node is empty. | ||
* When `checkChildren` is true (default), it will also check if all children are empty. | ||
* Returns true if the given prosemirror node is empty. | ||
*/ | ||
export declare function isNodeEmpty(node: ProseMirrorNode, { checkChildren }?: { | ||
checkChildren: boolean; | ||
export declare function isNodeEmpty(node: ProseMirrorNode, { checkChildren, ignoreWhitespace, }?: { | ||
/** | ||
* When true (default), it will also check if all children are empty. | ||
*/ | ||
checkChildren?: boolean; | ||
/** | ||
* When true, it will ignore whitespace when checking for emptiness. | ||
*/ | ||
ignoreWhitespace?: boolean; | ||
}): boolean; |
@@ -445,3 +445,3 @@ import { DOMOutputSpec, Mark as ProseMirrorMark, MarkSpec, MarkType } from '@tiptap/pm/model'; | ||
static create<O = any, S = any>(config?: Partial<MarkConfig<O, S>>): Mark<O, S>; | ||
configure(options?: Partial<Options>): Mark<any, any>; | ||
configure(options?: Partial<Options>): Mark<Options, Storage>; | ||
extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig?: Partial<MarkConfig<ExtendedOptions, ExtendedStorage>>): Mark<ExtendedOptions, ExtendedStorage>; | ||
@@ -448,0 +448,0 @@ static handleExit({ editor, mark }: { |
@@ -609,4 +609,4 @@ import { DOMOutputSpec, Node as ProseMirrorNode, NodeSpec, NodeType } from '@tiptap/pm/model'; | ||
static create<O = any, S = any>(config?: Partial<NodeConfig<O, S>>): Node<O, S>; | ||
configure(options?: Partial<Options>): Node<any, any>; | ||
configure(options?: Partial<Options>): Node<Options, Storage>; | ||
extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig?: Partial<NodeConfig<ExtendedOptions, ExtendedStorage>>): Node<ExtendedOptions, ExtendedStorage>; | ||
} |
{ | ||
"name": "@tiptap/extension-collaboration", | ||
"description": "collaboration extension for tiptap", | ||
"version": "2.5.8", | ||
"version": "2.5.9", | ||
"homepage": "https://tiptap.dev", | ||
@@ -32,10 +32,10 @@ "keywords": [ | ||
"devDependencies": { | ||
"@tiptap/core": "^2.5.8", | ||
"@tiptap/pm": "^2.5.8", | ||
"y-prosemirror": "^1.2.9" | ||
"@tiptap/core": "^2.5.9", | ||
"@tiptap/pm": "^2.5.9", | ||
"y-prosemirror": "^1.2.11" | ||
}, | ||
"peerDependencies": { | ||
"@tiptap/core": "^2.5.8", | ||
"@tiptap/pm": "^2.5.8", | ||
"y-prosemirror": "^1.2.6" | ||
"@tiptap/core": "^2.5.9", | ||
"@tiptap/pm": "^2.5.9", | ||
"y-prosemirror": "^1.2.11" | ||
}, | ||
@@ -42,0 +42,0 @@ "repository": { |
@@ -170,4 +170,4 @@ import { Extension } from '@tiptap/core' | ||
const ySyncPluginOptions: YSyncOpts = { | ||
...(this.options.ySyncOptions ? { ...this.options.ySyncOptions } : {}), | ||
...(this.options.onFirstRender ? { ...this.options.onFirstRender } : {}), | ||
...this.options.ySyncOptions, | ||
onFirstRender: this.options.onFirstRender, | ||
} | ||
@@ -174,0 +174,0 @@ |
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 not supported yet
Sorry, the diff of this file is not supported yet
4309
0.14%188959
-0.32%