Merge branch 'develop' into 'next'

This commit is contained in:
Dominik Biedebach 2024-08-01 00:34:47 +02:00
commit 8e85b5916d
133 changed files with 1790 additions and 428 deletions

View File

@ -0,0 +1,5 @@
---
"@tiptap/core": patch
---
fix(core): findDuplicates - use Array.from when converting Set

View File

@ -0,0 +1,5 @@
---
"@tiptap/extension-task-item": patch
---
allow task items to be parsed when only having `<li data-checked` instead of only when `<li data-checked="true"` (re-fix of #5366)

View File

@ -14,7 +14,12 @@ export default function init(name: string, source: any) {
import(`../src/${demoCategory}/${demoName}/${frameworkName}/index.vue`)
.then(module => {
createApp(module.default).mount('#app')
const app = createApp(module.default)
if (typeof module.configureApp === 'function') {
module.configureApp(app)
}
app.mount('#app')
debug()
})
}

View File

@ -0,0 +1,50 @@
<template>
<node-view-wrapper class="vue-component">
<label>Vue Component</label>
<ValidateInject />
</node-view-wrapper>
</template>
<script>
import { nodeViewProps, NodeViewWrapper } from '@tiptap/vue-3'
import ValidateInject from './ValidateInject.vue'
export default {
components: {
NodeViewWrapper,
ValidateInject,
},
props: nodeViewProps,
}
</script>
<style lang="scss">
.tiptap {
/* Vue component */
.vue-component {
background-color: var(--purple-light);
border: 2px solid var(--purple);
border-radius: 0.5rem;
margin: 2rem 0;
position: relative;
label {
background-color: var(--purple);
border-radius: 0 0 0.5rem 0;
color: var(--white);
font-size: 0.75rem;
font-weight: bold;
padding: 0.25rem 0.5rem;
position: absolute;
top: 0;
}
.content {
margin-top: 1.5rem;
padding: 1rem;
}
}
}
</style>

View File

@ -0,0 +1,144 @@
<template>
<editor-content :editor="editor" />
</template>
<script>
import StarterKit from '@tiptap/starter-kit'
import { Editor, EditorContent } from '@tiptap/vue-3'
import VueComponent from './Extension.js'
export default {
components: {
EditorContent,
},
data() {
return {
editor: null,
}
},
provide() {
return {
editorValue: 'editorValue',
}
},
mounted() {
this.editor = new Editor({
extensions: [
StarterKit,
VueComponent,
],
content: `
<p>
This is still the text editor youre used to, but enriched with node views.
</p>
<vue-component count="0"></vue-component>
<p>
Did you see that? Thats a Vue component. We are really living in the future.
</p>
`,
})
},
beforeUnmount() {
this.editor.destroy()
},
}
</script>
<style lang="scss">
/* Basic editor styles */
.tiptap {
:first-child {
margin-top: 0;
}
/* List styles */
ul,
ol {
padding: 0 1rem;
margin: 1.25rem 1rem 1.25rem 0.4rem;
li p {
margin-top: 0.25em;
margin-bottom: 0.25em;
}
}
/* Heading styles */
h1,
h2,
h3,
h4,
h5,
h6 {
line-height: 1.1;
margin-top: 2.5rem;
text-wrap: pretty;
}
h1,
h2 {
margin-top: 3.5rem;
margin-bottom: 1.5rem;
}
h1 {
font-size: 1.4rem;
}
h2 {
font-size: 1.2rem;
}
h3 {
font-size: 1.1rem;
}
h4,
h5,
h6 {
font-size: 1rem;
}
/* Code and preformatted text styles */
code {
background-color: var(--purple-light);
border-radius: 0.4rem;
color: var(--black);
font-size: 0.85rem;
padding: 0.25em 0.3em;
}
pre {
background: var(--black);
border-radius: 0.5rem;
color: var(--white);
font-family: 'JetBrainsMono', monospace;
margin: 1.5rem 0;
padding: 0.75rem 1rem;
code {
background: none;
color: inherit;
font-size: 0.8rem;
padding: 0;
}
}
blockquote {
border-left: 3px solid var(--gray-3);
margin: 1.5rem 0;
padding-left: 1rem;
}
hr {
border: none;
border-top: 1px solid var(--gray-2);
margin: 2rem 0;
}
}
</style>

View File

@ -0,0 +1,36 @@
import { mergeAttributes, Node } from '@tiptap/core'
import { VueNodeViewRenderer } from '@tiptap/vue-3'
import Component from './Component.vue'
export default Node.create({
name: 'vueComponent',
group: 'block',
atom: true,
addAttributes() {
return {
count: {
default: 0,
},
}
},
parseHTML() {
return [
{
tag: 'vue-component',
},
]
},
renderHTML({ HTMLAttributes }) {
return ['vue-component', mergeAttributes(HTMLAttributes)]
},
addNodeView() {
return VueNodeViewRenderer(Component)
},
})

View File

@ -0,0 +1,20 @@
<template>
<div class="validate-inject">
<p>{{ globalValue }}</p>
<p>{{ appValue }} </p>
<p>{{ indexValue }}</p>
<p>{{ editorValue }}</p>
</div>
</template>
<script>
export default {
inject: ['appValue', 'indexValue', 'editorValue'],
}
</script>
<style lang="scss">
.validate-inject {
margin-top: 2rem;
}
</style>

View File

@ -0,0 +1,29 @@
context('/src/Examples/InteractivityComponentProvideInject/Vue/', () => {
beforeEach(() => {
cy.visit('/src/Examples/InteractivityComponentProvideInject/Vue/')
})
it('should have a working tiptap instance', () => {
cy.get('.tiptap').then(([{ editor }]) => {
// eslint-disable-next-line
expect(editor).to.not.be.null
})
})
it('should render a custom node', () => {
cy.get('.tiptap .vue-component').should('have.length', 1)
})
it('should have global and all injected values', () => {
const expectedTexts = [
'globalValue',
'appValue',
'indexValue',
'editorValue',
]
cy.get('.tiptap .vue-component p').each((p, index) => {
cy.wrap(p).should('have.text', expectedTexts[index])
})
})
})

View File

@ -0,0 +1,24 @@
<template>
<Editor />
</template>
<script>
import Editor from './Editor.vue'
export default {
components: {
Editor,
},
provide() {
return {
indexValue: 'indexValue',
}
},
}
export function configureApp(app) {
app.config.globalProperties.globalValue = 'globalValue'
app.provide('appValue', 'appValue')
}
</script>

23
package-lock.json generated
View File

@ -3486,9 +3486,8 @@
},
"node_modules/@floating-ui/dom": {
"version": "1.6.8",
"resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.6.8.tgz",
"integrity": "sha512-kx62rP19VZ767Q653wsP1XZCGIirkE09E0QUGNYTM/ttbbQHqcGPdSfWFxUyyNLc/W6aoJRBajOSXhP6GXjC0Q==",
"dev": true,
"license": "MIT",
"dependencies": {
"@floating-ui/core": "^1.6.0",
"@floating-ui/utils": "^0.2.5"
@ -15641,8 +15640,8 @@
"license": "MIT",
"devDependencies": {
"@floating-ui/dom": "^1.0.0",
"@tiptap/core": "^2.5.7",
"@tiptap/pm": "^2.5.7"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"funding": {
"type": "github",
@ -15650,8 +15649,8 @@
},
"peerDependencies": {
"@floating-ui/dom": "^1.0.0",
"@tiptap/core": "^2.5.7",
"@tiptap/pm": "^2.5.7"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
}
},
"packages/extension-bullet-list": {
@ -15828,8 +15827,8 @@
"license": "MIT",
"devDependencies": {
"@floating-ui/dom": "^1.0.0",
"@tiptap/core": "^2.5.7",
"@tiptap/pm": "^2.5.7"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"funding": {
"type": "github",
@ -15837,8 +15836,8 @@
},
"peerDependencies": {
"@floating-ui/dom": "^1.0.0",
"@tiptap/core": "^2.5.7",
"@tiptap/pm": "^2.5.7"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
}
},
"packages/extension-focus": {
@ -16539,6 +16538,8 @@
"vue": "^3.0.0"
}
},
"shared/rollup-config": {}
"shared/rollup-config": {
"name": "@tiptap-shared/rollup-config"
}
}
}

View File

@ -1,5 +1,20 @@
# Change Log
## 2.5.8
### Patch Changes
- a08bf85: This fixes a bug with inputrules not being able to resolve positions properly
- @tiptap/pm@2.5.8
## 2.5.7
### Patch Changes
- b012471: This addresses an issue with `isNodeEmpty` function where it was also comparing node attributes and finding mismatches on actually empty nodes. This helps placeholders find empty content correctly
- cc3497e: Fixes a bug where if `enableContentCheck` was true, inserting content as JSON nodes would fail. This was because the node that was being created technically had a different schema than the content being inserted, so it would fail to generate the correct content value
- @tiptap/pm@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/core",
"description": "headless rich text editor",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -32,10 +32,10 @@
"dist"
],
"devDependencies": {
"@tiptap/pm": "^2.5.6"
"@tiptap/pm": "^2.5.8"
},
"peerDependencies": {
"@tiptap/pm": "^2.5.6"
"@tiptap/pm": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -39,6 +39,7 @@ import { isFunction } from './utilities/isFunction.js'
export * as extensions from './extensions/index.js'
// @ts-ignore
export interface TiptapEditorHTMLElement extends HTMLElement {
editor?: Editor
}
@ -340,6 +341,7 @@ export class Editor extends EventEmitter<EditorEvents> {
// Lets store the editor instance in the DOM element.
// So well have access to it for tests.
// @ts-ignore
const dom = this.view.dom as TiptapEditorHTMLElement
dom.editor = this

View File

@ -457,7 +457,7 @@ export class Extension<Options = any, Storage = any> {
configure(options: Partial<Options> = {}) {
// return a new instance so we can use the same extension
// with different calls of `configure`
const extension = this.extend({
const extension = this.extend<Options, Storage>({
...this.config,
addOptions: () => {
return mergeDeep(this.options as Record<string, any>, options) as Options

View File

@ -589,7 +589,7 @@ export class Mark<Options = any, Storage = any> {
configure(options: Partial<Options> = {}) {
// return a new instance so we can use the same extension
// with different calls of `configure`
const extension = this.extend({
const extension = this.extend<Options, Storage>({
...this.config,
addOptions: () => {
return mergeDeep(this.options as Record<string, any>, options) as Options

View File

@ -780,7 +780,7 @@ export class Node<Options = any, Storage = any> {
configure(options: Partial<Options> = {}) {
// return a new instance so we can use the same extension
// with different calls of `configure`
const extension = this.extend({
const extension = this.extend<Options, Storage>({
...this.config,
addOptions: () => {
return mergeDeep(this.options as Record<string, any>, options) as Options

View File

@ -81,6 +81,13 @@ export const insertContentAt: RawCommands['insertContentAt'] = (position, value,
errorOnInvalidContent: options.errorOnInvalidContent ?? editor.options.enableContentCheck,
})
} catch (e) {
editor.emit('contentError', {
editor,
error: e as Error,
disableCollaboration: () => {
console.error('[tiptap error]: Unable to disable collaboration at this point in time')
},
})
return false
}

View File

@ -58,13 +58,14 @@ export function createNodeFromContent(
}
if (isTextContent) {
let schemaToUse = schema
let hasInvalidContent = false
let invalidContent = ''
// Only ever check for invalid content if we're supposed to throw an error
// Check for invalid content
if (options.errorOnInvalidContent) {
schemaToUse = new Schema({
let hasInvalidContent = false
let invalidContent = ''
// A copy of the current schema with a catch-all node at the end
const contentCheckSchema = new Schema({
topNode: schema.spec.topNode,
marks: schema.spec.marks,
// Prosemirror's schemas are executed such that: the last to execute, matches last
@ -88,19 +89,26 @@ export function createNodeFromContent(
},
}),
})
if (options.slice) {
DOMParser.fromSchema(contentCheckSchema).parseSlice(elementFromString(content), options.parseOptions)
} else {
DOMParser.fromSchema(contentCheckSchema).parse(elementFromString(content), options.parseOptions)
}
if (options.errorOnInvalidContent && hasInvalidContent) {
throw new Error('[tiptap error]: Invalid HTML content', { cause: new Error(`Invalid element found: ${invalidContent}`) })
}
}
const parser = DOMParser.fromSchema(schemaToUse)
const parser = DOMParser.fromSchema(schema)
const response = options.slice
? parser.parseSlice(elementFromString(content), options.parseOptions).content
: parser.parse(elementFromString(content), options.parseOptions)
if (options.errorOnInvalidContent && hasInvalidContent) {
throw new Error('[tiptap error]: Invalid HTML content', { cause: new Error(`Invalid element found: ${invalidContent}`) })
if (options.slice) {
return parser.parseSlice(elementFromString(content), options.parseOptions).content
}
return response
return parser.parse(elementFromString(content), options.parseOptions)
}
return createNodeFromContent('', schema, options)

View File

@ -24,7 +24,7 @@ export const getTextContentFromNodes = ($from: ResolvedPos, maxMatch = 500) => {
|| node.textContent
|| '%leaf%'
textBefore += node.isAtom ? chunk : chunk.slice(0, Math.max(0, sliceEndPos - pos))
textBefore += node.isAtom && !node.isText ? chunk : chunk.slice(0, Math.max(0, sliceEndPos - pos))
},
)

View File

@ -1,11 +1,41 @@
import { Node as ProseMirrorNode } from '@tiptap/pm/model'
export function isNodeEmpty(node: ProseMirrorNode): boolean {
const defaultContent = node.type.createAndFill(node.attrs)
/**
* Returns true if the given node is empty.
* When `checkChildren` is true (default), it will also check if all children are empty.
*/
export function isNodeEmpty(
node: ProseMirrorNode,
{ checkChildren }: { checkChildren: boolean } = { checkChildren: true },
): boolean {
if (node.isText) {
return !node.text
}
if (!defaultContent) {
if (node.content.childCount === 0) {
return true
}
if (node.isLeaf) {
return false
}
return node.eq(defaultContent)
if (checkChildren) {
let hasSameContent = true
node.content.forEach(childNode => {
if (hasSameContent === false) {
// Exit early for perf
return
}
if (!isNodeEmpty(childNode)) {
hasSameContent = false
}
})
return hasSameContent
}
return false
}

View File

@ -1,5 +1,5 @@
export function findDuplicates(items: any[]): any[] {
const filtered = items.filter((el, index) => items.indexOf(el) !== index)
return [...new Set(filtered)]
return Array.from(new Set(filtered))
}

View File

@ -1,5 +1,20 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-blockquote",
"description": "blockquote extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,10 +29,10 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,20 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-bold",
"description": "bold extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,10 +29,10 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,22 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
- @tiptap/pm@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
- @tiptap/pm@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-bubble-menu",
"description": "bubble-menu extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -36,13 +36,13 @@
"sideEffects": false,
"devDependencies": {
"@floating-ui/dom": "^1.0.0",
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"peerDependencies": {
"@floating-ui/dom": "^1.0.0",
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"scripts": {
"clean": "rm -rf dist",

View File

@ -1,5 +1,20 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-bullet-list",
"description": "bullet list extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,10 +29,10 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,22 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
- @tiptap/pm@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
- @tiptap/pm@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-character-count",
"description": "font family extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,12 +29,12 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,24 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
- @tiptap/extension-code-block@2.5.8
- @tiptap/pm@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
- @tiptap/extension-code-block@2.5.7
- @tiptap/pm@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-code-block-lowlight",
"description": "code block extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,14 +29,14 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/extension-code-block": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/extension-code-block": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/extension-code-block": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/extension-code-block": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,22 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
- @tiptap/pm@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
- @tiptap/pm@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-code-block",
"description": "code block extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,12 +29,12 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,20 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-code",
"description": "code extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,10 +29,10 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,20 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-collaboration-cursor",
"description": "collaboration cursor extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,11 +29,11 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/core": "^2.5.8",
"y-prosemirror": "^1.2.9"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/core": "^2.5.8",
"y-prosemirror": "^1.2.6"
},
"repository": {

View File

@ -1,5 +1,22 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
- @tiptap/pm@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
- @tiptap/pm@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-collaboration",
"description": "collaboration extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,13 +29,13 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6",
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8",
"y-prosemirror": "^1.2.9"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6",
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8",
"y-prosemirror": "^1.2.6"
},
"repository": {

View File

@ -1,5 +1,22 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
- @tiptap/extension-text-style@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
- @tiptap/extension-text-style@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-color",
"description": "text color extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,12 +29,12 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/extension-text-style": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/extension-text-style": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/extension-text-style": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/extension-text-style": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,20 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-document",
"description": "document extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,10 +29,10 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,22 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
- @tiptap/pm@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
- @tiptap/pm@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-dropcursor",
"description": "dropcursor extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,12 +29,12 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,22 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
- @tiptap/pm@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
- @tiptap/pm@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-floating-menu",
"description": "floating-menu extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -30,13 +30,13 @@
],
"devDependencies": {
"@floating-ui/dom": "^1.0.0",
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"peerDependencies": {
"@floating-ui/dom": "^1.0.0",
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,22 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
- @tiptap/pm@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
- @tiptap/pm@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-focus",
"description": "focus extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,12 +29,12 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,22 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
- @tiptap/extension-text-style@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
- @tiptap/extension-text-style@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-font-family",
"description": "font family extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,12 +29,12 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/extension-text-style": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/extension-text-style": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/extension-text-style": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/extension-text-style": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,22 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
- @tiptap/pm@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
- @tiptap/pm@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-gapcursor",
"description": "gapcursor extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,12 +29,12 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,20 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-hard-break",
"description": "hard break extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,10 +29,10 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,20 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-heading",
"description": "heading extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,10 +29,10 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,20 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-highlight",
"description": "highlight extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,10 +29,10 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,22 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
- @tiptap/pm@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
- @tiptap/pm@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-history",
"description": "history extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,12 +29,12 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,22 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
- @tiptap/pm@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
- @tiptap/pm@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-horizontal-rule",
"description": "horizontal rule extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,12 +29,12 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,20 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-image",
"description": "image extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,10 +29,10 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,20 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-italic",
"description": "italic extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,10 +29,10 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,22 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
- @tiptap/pm@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
- @tiptap/pm@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-link",
"description": "link extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -32,12 +32,12 @@
"linkifyjs": "^4.1.0"
},
"devDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,20 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-list-item",
"description": "list item extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,10 +29,10 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,20 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-list-keymap",
"description": "list keymap extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,10 +29,10 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,24 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
- @tiptap/pm@2.5.8
- @tiptap/suggestion@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
- @tiptap/pm@2.5.7
- @tiptap/suggestion@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-mention",
"description": "mention extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,14 +29,14 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6",
"@tiptap/suggestion": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8",
"@tiptap/suggestion": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6",
"@tiptap/suggestion": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8",
"@tiptap/suggestion": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,20 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-ordered-list",
"description": "ordered list extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,10 +29,10 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,20 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-paragraph",
"description": "paragraph extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,10 +29,10 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,23 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
- @tiptap/pm@2.5.8
## 2.5.7
### Patch Changes
- b012471: This addresses an issue with `isNodeEmpty` function where it was also comparing node attributes and finding mismatches on actually empty nodes. This helps placeholders find empty content correctly
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
- @tiptap/pm@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-placeholder",
"description": "placeholder extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,12 +29,12 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,20 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-strike",
"description": "strike extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,10 +29,10 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,20 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-subscript",
"description": "subscript extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,10 +29,10 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,20 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-superscript",
"description": "superscript extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,10 +29,10 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,20 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-table-cell",
"description": "table cell extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,10 +29,10 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,20 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-table-header",
"description": "table cell extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,10 +29,10 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,20 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-table-row",
"description": "table row extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,10 +29,10 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6"
"@tiptap/core": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,5 +1,22 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
- @tiptap/pm@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
- @tiptap/pm@2.5.7
## 2.5.6
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-table",
"description": "table extension for tiptap",
"version": "2.5.6",
"version": "2.5.8",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,12 +29,12 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"peerDependencies": {
"@tiptap/core": "^2.5.6",
"@tiptap/pm": "^2.5.6"
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
},
"repository": {
"type": "git",

View File

@ -1,7 +1,7 @@
import {
callOrReturn, getExtensionField, mergeAttributes, Node, ParentConfig,
} from '@tiptap/core'
import { DOMOutputSpec } from '@tiptap/pm/model'
import { DOMOutputSpec, Node as ProseMirrorNode } from '@tiptap/pm/model'
import { TextSelection } from '@tiptap/pm/state'
import {
addColumnAfter,
@ -22,7 +22,7 @@ import {
toggleHeader,
toggleHeaderCell,
} from '@tiptap/pm/tables'
import { NodeView } from '@tiptap/pm/view'
import { EditorView, NodeView } from '@tiptap/pm/view'
import { TableView } from './TableView.js'
import { createColGroup } from './utilities/createColGroup.js'
@ -62,7 +62,7 @@ export interface TableOptions {
* The node view to render the table.
* @default TableView
*/
View: NodeView
View: (new (node: ProseMirrorNode, cellMinWidth: number, view: EditorView) => NodeView) | null
/**
* Enables the resizing of the last column.
@ -98,7 +98,7 @@ declare module '@tiptap/core' {
* Add a column before the current column
* @returns True if the command was successful, otherwise false
* @example editor.commands.addColumnBefore()
*/
*/
addColumnBefore: () => ReturnType
/**
@ -234,11 +234,11 @@ declare module '@tiptap/core' {
tableRole?:
| string
| ((this: {
name: string
options: Options
storage: Storage
parent: ParentConfig<NodeConfig<Options>>['tableRole']
}) => string)
name: string
options: Options
storage: Storage
parent: ParentConfig<NodeConfig<Options>>['tableRole']
}) => string)
}
}
@ -431,10 +431,7 @@ export const Table = Node.create<TableOptions>({
columnResizing({
handleWidth: this.options.handleWidth,
cellMinWidth: this.options.cellMinWidth,
// @ts-ignore (incorrect type)
View: this.options.View,
// TODO: PR for @types/prosemirror-tables
// @ts-ignore (incorrect type)
lastColumnResizable: this.options.lastColumnResizable,
}),
]

View File

@ -1,5 +1,22 @@
# Change Log
## 2.5.8
### Patch Changes
- Updated dependencies [a08bf85]
- @tiptap/core@2.5.8
- @tiptap/pm@2.5.8
## 2.5.7
### Patch Changes
- Updated dependencies [b012471]
- Updated dependencies [cc3497e]
- @tiptap/core@2.5.7
- @tiptap/pm@2.5.7
## 2.5.6
### Patch Changes

Some files were not shown because too many files have changed in this diff Show More