Merge branch 'develop' into no-op-updates

This commit is contained in:
bdbch 2024-08-07 12:00:32 +02:00 committed by GitHub
commit 85ffe8c045
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
132 changed files with 1147 additions and 453 deletions

View File

@ -1,5 +0,0 @@
---
"@tiptap/core": patch
---
Fix change criteria for isNodeEmpty to resolve #5415

View File

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

View File

@ -1,5 +0,0 @@
---
"@tiptap/core": patch
---
This fixes a discrepency between `getMarksBetween` and `isActive(markName)` where the position used for getMarksBetween was off by one

View File

@ -1,12 +0,0 @@
---
"@tiptap/react": patch
---
Optimize `useEditor` and `useEditorState` to reduce number of instances created while still being performant #5432
The core of this change is two-fold:
- have the effect run on every render (i.e. without a dep array)
- schedule destruction of instances, but bail on the actual destruction if the instance was still mounted and a new instance had not been created yet
It should plug a memory leak, where editor instances could be created but not cleaned up in strict mode.
As well as fixing a bug where a re-render, with deps, was not applying new options that were set on `useEditor`.

View File

@ -1,5 +0,0 @@
---
"@tiptap/extension-placeholder": patch
---
add back `considerAsAny` type but mark it deprecated

View File

@ -1,5 +0,0 @@
---
"@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

@ -1,5 +1,11 @@
# Change Log
## 2.4.2
### Patch Changes
- d6e56c4: declare lowlight to be a peer dep of extension-code-block-lowlight, update usage to v3
## 2.4.1
### Patch Changes

View File

@ -6,7 +6,6 @@ highlight.js/lib/languages/xml
highlight.js/lib/core
linkifyjs
lowlight
lowlight/lib/core
prosemirror-commands
prosemirror-dropcursor
prosemirror-gapcursor
@ -21,6 +20,7 @@ prosemirror-view
react
react-dom
react-dom/client
use-sync-external-store/shim/with-selector
shiki
simplify-js
tippy.js

View File

@ -1,6 +1,6 @@
{
"name": "tiptap-demos",
"version": "2.4.1",
"version": "2.4.2",
"private": true,
"type": "module",
"scripts": {
@ -14,13 +14,13 @@
"@lexical/react": "^0.11.1",
"d3": "^7.3.0",
"fast-glob": "^3.2.11",
"highlight.js": "^11.6.0",
"highlight.js": "^11.10.0",
"lexical": "^0.11.1",
"lowlight": "^2.7.0",
"lowlight": "^3.1.0",
"remixicon": "^2.5.0",
"shiki": "^1.10.3",
"simplify-js": "^1.2.4",
"y-prosemirror": "^1.2.9",
"y-prosemirror": "^1.2.11",
"y-webrtc": "^10.3.0",
"yjs": "^13.6.18"
},

View File

@ -205,8 +205,7 @@ form {
font-size: 0.75rem;
gap: 0.25rem;
line-height: 1.15;
min-height: 1.75rem;
padding: 0.25rem 0.5rem;
padding: 0.3rem 0.5rem;
&.purple-spinner,
&.error {
@ -215,6 +214,17 @@ form {
width: 100%;
}
.badge {
background-color: var(--gray-1);
border: 1px solid var(--gray-3);
border-radius: 2rem;
color: var(--gray-5);
font-size: 0.625rem;
font-weight: 700;
line-height: 1;
padding: 0.25rem 0.5rem;
}
&.purple-spinner {
background-color: var(--purple-light);

View File

@ -1,7 +1,3 @@
// load specific languages only
// import { lowlight } from 'lowlight/lib/core'
// import javascript from 'highlight.js/lib/languages/javascript'
// lowlight.registerLanguage('javascript', javascript)
import './styles.scss'
import CodeBlockLowlight from '@tiptap/extension-code-block-lowlight'
@ -13,16 +9,21 @@ import css from 'highlight.js/lib/languages/css'
import js from 'highlight.js/lib/languages/javascript'
import ts from 'highlight.js/lib/languages/typescript'
import html from 'highlight.js/lib/languages/xml'
// load all highlight.js languages
import { lowlight } from 'lowlight'
// load all languages with "all" or common languages with "common"
import { all, createLowlight } from 'lowlight'
import React from 'react'
import CodeBlockComponent from './CodeBlockComponent.jsx'
// eslint-disable-next-line
import CodeBlockComponent from './CodeBlockComponent'
lowlight.registerLanguage('html', html)
lowlight.registerLanguage('css', css)
lowlight.registerLanguage('js', js)
lowlight.registerLanguage('ts', ts)
// create a lowlight instance
const lowlight = createLowlight(all)
// you can also register individual languages
lowlight.register('html', html)
lowlight.register('css', css)
lowlight.register('js', js)
lowlight.register('ts', ts)
const MenuBar = ({ editor }) => {
if (!editor) {
@ -56,7 +57,7 @@ export default () => {
],
content: `
<p>
Thats a boring paragraph followed by a fenced code block:
That's a boring paragraph followed by a fenced code block:
</p>
<pre><code class="language-javascript">for (var i=1; i <= 20; i++)
{

View File

@ -21,20 +21,19 @@ import css from 'highlight.js/lib/languages/css'
import js from 'highlight.js/lib/languages/javascript'
import ts from 'highlight.js/lib/languages/typescript'
import html from 'highlight.js/lib/languages/xml'
// load all highlight.js languages
import { lowlight } from 'lowlight'
// load all languages with "all" or common languages with "common"
import { all, createLowlight } from 'lowlight'
import CodeBlockComponent from './CodeBlockComponent.vue'
lowlight.registerLanguage('html', html)
lowlight.registerLanguage('css', css)
lowlight.registerLanguage('js', js)
lowlight.registerLanguage('ts', ts)
// create a lowlight instance
const lowlight = createLowlight(all)
// load specific languages only
// import { lowlight } from 'lowlight/lib/core'
// import javascript from 'highlight.js/lib/languages/javascript'
// lowlight.registerLanguage('javascript', javascript)
// you can also register languages
lowlight.register('html', html)
lowlight.register('css', css)
lowlight.register('js', js)
lowlight.register('ts', ts)
export default {
components: {
@ -63,7 +62,7 @@ export default {
],
content: `
<p>
Thats a boring paragraph followed by a fenced code block:
That's a boring paragraph followed by a fenced code block:
</p>
<pre><code class="language-javascript">for (var i=1; i <= 20; i++)
{

View File

@ -108,7 +108,9 @@ import TextAlign from '@tiptap/extension-text-align'
import TextStyle from '@tiptap/extension-text-style'
import Underline from '@tiptap/extension-underline'
import { Editor, EditorContent } from '@tiptap/vue-3'
import { lowlight } from 'lowlight'
import { all, createLowlight } from 'lowlight'
const lowlight = createLowlight(all)
export default {
components: {
@ -182,14 +184,14 @@ export default {
</p>
<ul>
<li>
Thats a bullet list with one
That's a bullet list with one
</li>
<li>
or two list items.
</li>
</ul>
<p>
Isnt that great? And all of that is editable. But wait, theres more. Lets try a code block:
Isn't that great? And all of that is editable. But wait, there's more. Let's try a code block:
</p>
<pre><code class="language-javascript">for (var i=1; i <= 20; i++)
{
@ -203,10 +205,10 @@ export default {
console.log(i);
}</code></pre>
<p>
I know, I know, this is impressive. Its only the tip of the iceberg though. Give it a try and click a little bit around. Dont forget to check the other examples too.
I know, I know, this is impressive. It's only the tip of the iceberg though. Give it a try and click a little bit around. Dont forget to check the other examples too.
</p>
<blockquote>
Wow, thats amazing. Good work, boy! 👏
Wow, that's amazing. Good work, boy! 👏
<br />
Mom
</blockquote>
@ -214,9 +216,9 @@ export default {
<p style="text-align: center">first paragraph</p>
<p style="text-align: right">second paragraph</p>
<h2>Color</h2>
<p><span style="color: #958DF1">Oh, for some reason thats purple.</span></p>
<p><span style="color: #958DF1">Oh, for some reason that's purple.</span></p>
<h2>Highlight</h2>
<p>This isnt highlighted.</s></p>
<p>This isn't highlighted.</s></p>
<p><mark>But that one is.</mark></p>
<p><mark style="background-color: red;">And this is highlighted too, but in a different color.</mark></p>
<p><mark data-color="#ffa8a8">And this one has a data attribute.</mark></p>

View File

@ -1,7 +1,3 @@
// load specific languages only
// import { lowlight } from 'lowlight/lib/core'
// import javascript from 'highlight.js/lib/languages/javascript'
// lowlight.registerLanguage('javascript', javascript)
import './styles.scss'
import CodeBlockLowlight from '@tiptap/extension-code-block-lowlight'
@ -13,14 +9,29 @@ import css from 'highlight.js/lib/languages/css'
import js from 'highlight.js/lib/languages/javascript'
import ts from 'highlight.js/lib/languages/typescript'
import html from 'highlight.js/lib/languages/xml'
// load all highlight.js languages
import { lowlight } from 'lowlight'
// load all languages with "all" or common languages with "common"
import { all, createLowlight } from 'lowlight'
import React from 'react'
lowlight.registerLanguage('html', html)
lowlight.registerLanguage('css', css)
lowlight.registerLanguage('js', js)
lowlight.registerLanguage('ts', ts)
// create a lowlight instance with all languages loaded
const lowlight = createLowlight(all)
// This is only an example, all supported languages are already loaded above
// but you can also register only specific languages to reduce bundle-size
lowlight.register('html', html)
lowlight.register('css', css)
lowlight.register('js', js)
lowlight.register('ts', ts)
/**
* Lowlight version 2.x had a different API
* import { lowlight } from 'lowlight'
*
* lowlight.registerLanguage('html', html)
* lowlight.registerLanguage('css', css)
* lowlight.registerLanguage('js', js)
* lowlight.registerLanguage('ts', ts)
*/
export default () => {
const editor = useEditor({
@ -34,7 +45,7 @@ export default () => {
],
content: `
<p>
Thats a boring paragraph followed by a fenced code block:
That's a boring paragraph followed by a fenced code block:
</p>
<pre><code class="language-javascript">for (var i=1; i <= 20; i++)
{

View File

@ -25,13 +25,17 @@ import css from 'highlight.js/lib/languages/css'
import js from 'highlight.js/lib/languages/javascript'
import ts from 'highlight.js/lib/languages/typescript'
import html from 'highlight.js/lib/languages/xml'
// load all highlight.js languages
import { lowlight } from 'lowlight'
// load all languages with "all" or common languages with "common"
import { all, createLowlight } from 'lowlight'
lowlight.registerLanguage('html', html)
lowlight.registerLanguage('css', css)
lowlight.registerLanguage('js', js)
lowlight.registerLanguage('ts', ts)
// create a lowlight instance
const lowlight = createLowlight(all)
// you can also register languages
lowlight.register('html', html)
lowlight.register('css', css)
lowlight.register('js', js)
lowlight.register('ts', ts)
export default {
components: {
@ -56,7 +60,7 @@ export default {
],
content: `
<p>
Thats a boring paragraph followed by a fenced code block:
That's a boring paragraph followed by a fenced code block:
</p>
<pre><code class="language-javascript">for (var i=1; i <= 20; i++)
{

207
package-lock.json generated
View File

@ -60,13 +60,13 @@
"@lexical/react": "^0.11.1",
"d3": "^7.3.0",
"fast-glob": "^3.2.11",
"highlight.js": "^11.6.0",
"highlight.js": "^11.10.0",
"lexical": "^0.11.1",
"lowlight": "^2.7.0",
"lowlight": "^3.1.0",
"remixicon": "^2.5.0",
"shiki": "^1.10.3",
"simplify-js": "^1.2.4",
"y-prosemirror": "^1.2.9",
"y-prosemirror": "^1.2.11",
"y-webrtc": "^10.3.0",
"yjs": "^13.6.18"
},
@ -116,14 +116,6 @@
"yjs": "^13.6.8"
}
},
"demos/node_modules/@types/hast": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz",
"integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==",
"dependencies": {
"@types/unist": "*"
}
},
"demos/node_modules/@vitejs/plugin-vue": {
"version": "5.0.5",
"resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-5.0.5.tgz",
@ -345,6 +337,14 @@
"node": ">=8"
}
},
"demos/node_modules/highlight.js": {
"version": "11.10.0",
"resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.10.0.tgz",
"integrity": "sha512-SYVnVFswQER+zu1laSya563s+F8VDGt7o35d4utbamowvUNLLMovFqwCLSocpZTz3MgaSRA1IbqRWZv97dtErQ==",
"engines": {
"node": ">=12.0.0"
}
},
"demos/node_modules/hosted-git-info": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz",
@ -791,6 +791,29 @@
}
}
},
"demos/node_modules/y-prosemirror": {
"version": "1.2.11",
"resolved": "https://registry.npmjs.org/y-prosemirror/-/y-prosemirror-1.2.11.tgz",
"integrity": "sha512-MUGMYyokOb9DpBRHr4Cadob2KheDCKW2LHceAM2yrWp9dfX+3HZZUNEubEPd4zszq4DF2fGCFhE3N66zOTLoxA==",
"dependencies": {
"lib0": "^0.2.42"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=8.0.0"
},
"funding": {
"type": "GitHub Sponsors ❤",
"url": "https://github.com/sponsors/dmonad"
},
"peerDependencies": {
"prosemirror-model": "^1.7.1",
"prosemirror-state": "^1.2.3",
"prosemirror-view": "^1.9.10",
"y-protocols": "^1.0.1",
"yjs": "^13.5.38"
}
},
"demos/node_modules/yallist": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
@ -5043,14 +5066,6 @@
"@types/hast": "^3.0.4"
}
},
"node_modules/@shikijs/core/node_modules/@types/hast": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz",
"integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==",
"dependencies": {
"@types/unist": "*"
}
},
"node_modules/@sveltejs/vite-plugin-svelte": {
"version": "2.5.3",
"resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-2.5.3.tgz",
@ -5401,11 +5416,11 @@
"dev": true
},
"node_modules/@types/hast": {
"version": "2.3.10",
"resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.10.tgz",
"integrity": "sha512-McWspRw8xx8J9HurkVBfYj0xKoE25tOFlHGdx4MJ5xORQrMGZNqJhVQWaIbm6Oyla5kYOXtDiopzKRJzEOkwJw==",
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz",
"integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==",
"dependencies": {
"@types/unist": "^2"
"@types/unist": "*"
}
},
"node_modules/@types/json-schema": {
@ -8305,6 +8320,14 @@
"node": ">=0.4.0"
}
},
"node_modules/dequal": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
"integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",
"engines": {
"node": ">=6"
}
},
"node_modules/detect-file": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz",
@ -8323,6 +8346,18 @@
"node": ">=8"
}
},
"node_modules/devlop": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz",
"integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==",
"dependencies": {
"dequal": "^2.0.0"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/wooorm"
}
},
"node_modules/didyoumean": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",
@ -9580,18 +9615,6 @@
"reusify": "^1.0.4"
}
},
"node_modules/fault": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/fault/-/fault-2.0.1.tgz",
"integrity": "sha512-WtySTkS4OKev5JtpHXnib4Gxiurzh5NCGvWrFaZ34m6JehfTUhKZvn9njTfw48t6JumVQOmrKqpmGcdwxnhqBQ==",
"dependencies": {
"format": "^0.2.0"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/wooorm"
}
},
"node_modules/fd-slicer": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",
@ -9854,14 +9877,6 @@
"node": ">= 0.12"
}
},
"node_modules/format": {
"version": "0.2.2",
"resolved": "https://registry.npmjs.org/format/-/format-0.2.2.tgz",
"integrity": "sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==",
"engines": {
"node": ">=0.4.x"
}
},
"node_modules/fraction.js": {
"version": "4.3.7",
"resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz",
@ -12375,27 +12390,19 @@
}
},
"node_modules/lowlight": {
"version": "2.9.0",
"resolved": "https://registry.npmjs.org/lowlight/-/lowlight-2.9.0.tgz",
"integrity": "sha512-OpcaUTCLmHuVuBcyNckKfH5B0oA4JUavb/M/8n9iAvanJYNQkrVm4pvyX0SUaqkBG4dnWHKt7p50B3ngAG2Rfw==",
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/lowlight/-/lowlight-3.1.0.tgz",
"integrity": "sha512-CEbNVoSikAxwDMDPjXlqlFYiZLkDJHwyGu/MfOsJnF3d7f3tds5J3z8s/l9TMXhzfsJCCJEAsD78842mwmg0PQ==",
"dependencies": {
"@types/hast": "^2.0.0",
"fault": "^2.0.0",
"highlight.js": "~11.8.0"
"@types/hast": "^3.0.0",
"devlop": "^1.0.0",
"highlight.js": "~11.9.0"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/wooorm"
}
},
"node_modules/lowlight/node_modules/highlight.js": {
"version": "11.8.0",
"resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.8.0.tgz",
"integrity": "sha512-MedQhoqVdr0U6SSnWPzfiadUcDHfN/Wzq25AkXiQv9oiOO/sG0S7XkvpFIqWBl9Yq1UYyYOOVORs5UW2XlPyzg==",
"engines": {
"node": ">=12.0.0"
}
},
"node_modules/lru-cache": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
@ -17741,29 +17748,6 @@
"node": ">=12"
}
},
"node_modules/y-prosemirror": {
"version": "1.2.9",
"resolved": "https://registry.npmjs.org/y-prosemirror/-/y-prosemirror-1.2.9.tgz",
"integrity": "sha512-fThGIVmSqrqnG/ckywEGlHM9ElfILC4TcMZd5zxWPe/i+UuP97TEr4swsopRKG3Y+KHBVt4Y/5NVBC3AAsUoUg==",
"dependencies": {
"lib0": "^0.2.42"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=8.0.0"
},
"funding": {
"type": "GitHub Sponsors ❤",
"url": "https://github.com/sponsors/dmonad"
},
"peerDependencies": {
"prosemirror-model": "^1.7.1",
"prosemirror-state": "^1.2.3",
"prosemirror-view": "^1.9.10",
"y-protocols": "^1.0.1",
"yjs": "^13.5.38"
}
},
"node_modules/y-protocols": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/y-protocols/-/y-protocols-1.0.6.tgz",
@ -18049,7 +18033,8 @@
"devDependencies": {
"@tiptap/core": "^2.5.8",
"@tiptap/extension-code-block": "^2.5.8",
"@tiptap/pm": "^2.5.8"
"@tiptap/pm": "^2.5.8",
"lowlight": "^2 || ^3"
},
"funding": {
"type": "github",
@ -18058,7 +18043,9 @@
"peerDependencies": {
"@tiptap/core": "^2.5.8",
"@tiptap/extension-code-block": "^2.5.8",
"@tiptap/pm": "^2.5.8"
"@tiptap/pm": "^2.5.8",
"highlight.js": "^11",
"lowlight": "^2 || ^3"
}
},
"packages/extension-collaboration": {
@ -18068,7 +18055,7 @@
"devDependencies": {
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8",
"y-prosemirror": "^1.2.9"
"y-prosemirror": "^1.2.11"
},
"funding": {
"type": "github",
@ -18077,7 +18064,7 @@
"peerDependencies": {
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8",
"y-prosemirror": "^1.2.6"
"y-prosemirror": "^1.2.11"
}
},
"packages/extension-collaboration-cursor": {
@ -18086,7 +18073,7 @@
"license": "MIT",
"devDependencies": {
"@tiptap/core": "^2.5.8",
"y-prosemirror": "^1.2.9"
"y-prosemirror": "^1.2.11"
},
"funding": {
"type": "github",
@ -18094,7 +18081,55 @@
},
"peerDependencies": {
"@tiptap/core": "^2.5.8",
"y-prosemirror": "^1.2.6"
"y-prosemirror": "^1.2.11"
}
},
"packages/extension-collaboration-cursor/node_modules/y-prosemirror": {
"version": "1.2.11",
"resolved": "https://registry.npmjs.org/y-prosemirror/-/y-prosemirror-1.2.11.tgz",
"integrity": "sha512-MUGMYyokOb9DpBRHr4Cadob2KheDCKW2LHceAM2yrWp9dfX+3HZZUNEubEPd4zszq4DF2fGCFhE3N66zOTLoxA==",
"dev": true,
"dependencies": {
"lib0": "^0.2.42"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=8.0.0"
},
"funding": {
"type": "GitHub Sponsors ❤",
"url": "https://github.com/sponsors/dmonad"
},
"peerDependencies": {
"prosemirror-model": "^1.7.1",
"prosemirror-state": "^1.2.3",
"prosemirror-view": "^1.9.10",
"y-protocols": "^1.0.1",
"yjs": "^13.5.38"
}
},
"packages/extension-collaboration/node_modules/y-prosemirror": {
"version": "1.2.11",
"resolved": "https://registry.npmjs.org/y-prosemirror/-/y-prosemirror-1.2.11.tgz",
"integrity": "sha512-MUGMYyokOb9DpBRHr4Cadob2KheDCKW2LHceAM2yrWp9dfX+3HZZUNEubEPd4zszq4DF2fGCFhE3N66zOTLoxA==",
"dev": true,
"dependencies": {
"lib0": "^0.2.42"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=8.0.0"
},
"funding": {
"type": "GitHub Sponsors ❤",
"url": "https://github.com/sponsors/dmonad"
},
"peerDependencies": {
"prosemirror-model": "^1.7.1",
"prosemirror-state": "^1.2.3",
"prosemirror-view": "^1.9.10",
"y-protocols": "^1.0.1",
"yjs": "^13.5.38"
}
},
"packages/extension-color": {

View File

@ -1,5 +1,15 @@
# Change Log
## 2.5.9
### Patch Changes
- 84ebd51: Fix change criteria for isNodeEmpty to resolve #5415
- 0ec0af6: fix(core): findDuplicates - use Array.from when converting Set
- ae0254d: Add `ignoreWhitespace` option to `isNodeEmpty` to ignore any whitespace and hardbreaks in a node to check for emptiness
- efb27fa: This fixes a discrepency between `getMarksBetween` and `isActive(markName)` where the position used for getMarksBetween was off by one
- @tiptap/pm@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,13 +1,34 @@
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 function isNodeEmpty(
node: ProseMirrorNode,
{ checkChildren }: { checkChildren: boolean } = { checkChildren: true },
{
checkChildren = true,
ignoreWhitespace = false,
}: {
/**
* 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 {
if (ignoreWhitespace) {
if (node.type.name === 'hardBreak') {
// Hard breaks are considered empty
return true
}
if (node.isText) {
return /^\s*$/m.test(node.text ?? '')
}
}
if (node.isText) {
return !node.text
}
@ -21,20 +42,20 @@ export function isNodeEmpty(
}
if (checkChildren) {
let hasSameContent = true
let isContentEmpty = true
node.content.forEach(childNode => {
if (hasSameContent === false) {
if (isContentEmpty === false) {
// Exit early for perf
return
}
if (!isNodeEmpty(childNode)) {
hasSameContent = false
if (!isNodeEmpty(childNode, { ignoreWhitespace, checkChildren })) {
isContentEmpty = false
}
})
return hasSameContent
return isContentEmpty
}
return false

View File

@ -1,5 +1,15 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,15 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
- @tiptap/pm@2.5.9
## 2.5.8
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-bubble-menu",
"description": "bubble-menu extension for tiptap",
"version": "2.5.8",
"version": "2.5.9",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -38,12 +38,12 @@
},
"sideEffects": false,
"devDependencies": {
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
"@tiptap/core": "^2.5.9",
"@tiptap/pm": "^2.5.9"
},
"peerDependencies": {
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
"@tiptap/core": "^2.5.9",
"@tiptap/pm": "^2.5.9"
},
"scripts": {
"clean": "rm -rf dist",

View File

@ -1,5 +1,15 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
- @tiptap/pm@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,20 @@
# Change Log
## 2.5.9
### Patch Changes
- d6e56c4: declare lowlight to be a peer dep of extension-code-block-lowlight, update usage to v3
- 4b215f7: `defaultLanguage` on Code Block Lowlight was not being respected properly, to address this we added `defaultLanguage` as an option to the code-block extension.
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [4b215f7]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
- @tiptap/extension-code-block@2.5.9
- @tiptap/pm@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -7,13 +7,6 @@ export interface CodeBlockLowlightOptions extends CodeBlockOptions {
* The lowlight instance.
*/
lowlight: any,
/**
* The default language.
* @default null
* @example 'javascript'
*/
defaultLanguage: string | null | undefined,
}
/**
@ -25,7 +18,6 @@ export const CodeBlockLowlight = CodeBlock.extend<CodeBlockLowlightOptions>({
return {
...this.parent?.(),
lowlight: {},
defaultLanguage: null,
}
},

View File

@ -1,5 +1,17 @@
# Change Log
## 2.5.9
### Patch Changes
- 4b215f7: `defaultLanguage` on Code Block Lowlight was not being respected properly, to address this we added `defaultLanguage` as an option to the code-block extension.
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
- @tiptap/pm@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -22,6 +22,12 @@ export interface CodeBlockOptions {
* @default true
*/
exitOnArrowDown: boolean
/**
* The default language.
* @default null
* @example 'js'
*/
defaultLanguage: string | null | undefined
/**
* Custom HTML attributes that should be added to the rendered HTML tag.
* @default {}
@ -71,6 +77,7 @@ export const CodeBlock = Node.create<CodeBlockOptions>({
languageClassPrefix: 'language-',
exitOnTripleEnter: true,
exitOnArrowDown: true,
defaultLanguage: null,
HTMLAttributes: {},
}
},
@ -88,7 +95,7 @@ export const CodeBlock = Node.create<CodeBlockOptions>({
addAttributes() {
return {
language: {
default: null,
default: this.options.defaultLanguage,
parseHTML: element => {
const { languageClassPrefix } = this.options
const classNames = [...(element.firstElementChild?.classList || [])]

View File

@ -1,5 +1,15 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# Change Log
## 2.5.9
### Patch Changes
- 174aefe: This updates y-prosemirror to a version that no longer has syncing problems and extension collaboration now respects the onFirstRender option
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -127,6 +127,9 @@ export const CollaborationCursor = Extension.create<CollaborationCursorOptions,
if (this.options.onUpdate !== defaultOnUpdate) {
console.warn('[tiptap warn]: DEPRECATED: The "onUpdate" option is deprecated. Please use `editor.storage.collaborationCursor.users` instead. Read more: https://tiptap.dev/api/extensions/collaboration-cursor')
}
if (!this.options.provider) {
throw new Error('The "provider" option is required for the CollaborationCursor extension')
}
},
addStorage() {

View File

@ -1,5 +1,17 @@
# Change Log
## 2.5.9
### Patch Changes
- 174aefe: This updates y-prosemirror to a version that no longer has syncing problems and extension collaboration now respects the onFirstRender option
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
- @tiptap/pm@2.5.9
## 2.5.8
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-collaboration",
"description": "collaboration extension for tiptap",
"version": "2.5.8",
"version": "2.5.9",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,14 +29,14 @@
"dist"
],
"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"
},
"repository": {
"type": "git",

View File

@ -167,8 +167,8 @@ export const Collaboration = Extension.create<CollaborationOptions>({
}
const ySyncPluginOptions: YSyncOpts = {
...(this.options.ySyncOptions ? { ...this.options.ySyncOptions } : {}),
...(this.options.onFirstRender ? { ...this.options.onFirstRender } : {}),
...this.options.ySyncOptions,
onFirstRender: this.options.onFirstRender,
}
const ySyncPluginInstance = ySyncPlugin(fragment, ySyncPluginOptions)

View File

@ -1,5 +1,16 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
- @tiptap/extension-text-style@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,15 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
- @tiptap/pm@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
- @tiptap/pm@2.5.9
## 2.5.8
### Patch Changes

View File

@ -1,7 +1,7 @@
{
"name": "@tiptap/extension-floating-menu",
"description": "floating-menu extension for tiptap",
"version": "2.5.8",
"version": "2.5.9",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
@ -29,12 +29,12 @@
"dist"
],
"devDependencies": {
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
"@tiptap/core": "^2.5.9",
"@tiptap/pm": "^2.5.9"
},
"peerDependencies": {
"@tiptap/core": "^2.5.8",
"@tiptap/pm": "^2.5.8"
"@tiptap/core": "^2.5.9",
"@tiptap/pm": "^2.5.9"
},
"dependencies": {
"tippy.js": "^6.3.7"

View File

@ -1,5 +1,16 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
- @tiptap/pm@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
- @tiptap/extension-text-style@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
- @tiptap/pm@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,15 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,15 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,15 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
- @tiptap/pm@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
- @tiptap/pm@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,15 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,15 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
- @tiptap/pm@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,15 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,15 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,17 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
- @tiptap/pm@2.5.9
- @tiptap/suggestion@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,15 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,15 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,17 @@
# Change Log
## 2.5.9
### Patch Changes
- c1ff1b0: add back `considerAsAny` type but mark it deprecated
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
- @tiptap/pm@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,15 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,15 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,15 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,15 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,15 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,15 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# Change Log
## 2.5.9
### Patch Changes
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
- @tiptap/pm@2.5.9
## 2.5.8
### Patch Changes

View File

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

View File

@ -1,5 +1,17 @@
# Change Log
## 2.5.9
### Patch Changes
- 6543f05: allow task items to be parsed when only having `<li data-checked` instead of only when `<li data-checked="true"` (re-fix of #5366)
- Updated dependencies [84ebd51]
- Updated dependencies [0ec0af6]
- Updated dependencies [ae0254d]
- Updated dependencies [efb27fa]
- @tiptap/core@2.5.9
- @tiptap/pm@2.5.9
## 2.5.8
### Patch Changes

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