Update tiptap monorepo to v3 (major) #87
Open
+625
−178
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.7.0
->^2.7.0 || ^3.0.0
2.26.1
->3.3.0
2.26.1
->3.3.0
2.26.1
->3.3.0
2.26.1
->3.3.0
2.26.1
->3.3.0
2.26.1
->3.3.0
2.26.1
->3.3.0
2.26.1
->3.3.0
2.26.1
->3.3.0
2.26.1
->3.3.0
2.26.1
->3.3.0
Release Notes
ueberdosis/tiptap (@tiptap/core)
v3.3.0
Compare Source
Minor Changes
5423726
: Make input rules and paste rules respect extensionpriority
by registeringthem per-extension instead of aggregating them into a single global plugin.
v3.2.2
Compare Source
Patch Changes
v3.2.1
Patch Changes
6a2873f
: Ensure drag previews for node views work correctly in Safari by attachingan offscreen clone of the node to the DOM while calling
setDragImage
, and by preserving the original element's pixelwidth
/height
so the preview matches the original. This preventsSafari from immediately cancelling the drag when a detached element is
used as the drag image.
v3.2.0
Minor Changes
5056e3e
: Fix Editor.unmount() failing in test environments due to missing DOM remove() methodPatch Changes
v3.1.0
Compare Source
Patch Changes
v3.0.9
Compare Source
Patch Changes
v3.0.8
Compare Source
Patch Changes
v3.0.7
Compare Source
Patch Changes
v3.0.6
Compare Source
Patch Changes
2e71d05
: Fix: Fix broken types for function chaining when calling extendv3.0.5
Compare Source
Patch Changes
v3.0.4
Compare Source
Patch Changes
7ed03fa
: Fix: Add correct overload for extension extend types"v3.0.3
Compare Source
Patch Changes
75cabde
: Fix: Avoid the JSX Runtime to globally overwrite React's Element types when/** @​jsxImportSource @​tiptap/core */
is not usedv3.0.2
Compare Source
Patch Changes
v3.0.1
Compare Source
Major Changes
a92f4a6
: We are now building packages with tsup which does not support UMD builds, please repackage if you require UMD builds5e957e5
: This resolves in issue with SSR where the isDestroyed property could not be read while in SSR37913d5
:getPos
inNodeViewRendererProps
type now includesundefined
as possible return valueBefore
After
32958d6
:Node
,Mark
andExtension
config options now are strongly typed and do not allow arbitrary keys on the options object.To add keys, like when using
extendNodeSchema
orextendMarkSchema
, you can do this:12bb31a
:insertContent
andinsertContentAt
commands should not split text nodes like paragraphs into multiple nodes when the inserted content is at the beginning of the text to avoid empty nodes being created062afaf
:clearContent
command defaults to emitting updates now062afaf
: Change signature ofsetContent
command to(content, options)
and default to emitting updates32958d6
:editor.storage
is now strongly typedStorage
instances, using a similar pattern as commands, where you can define the type of the storage value using namespaces like:32958d6
:editor.storage
is instantiated per editor rather than per extension.Previously, the storage value was a singleton per extension instance, this caused strange bugs when using multiple editor instances on a single page.
Now, storage instances are per editor instance, so changing the value on one
editor.storage
instance will not affect another editor's value.Minor Changes
8de8e13
: The editor instance now supports anunmount
method which allows for mounting and unmounting the editor to the DOM. This encourages re-use of editor instances by preserving all the same options between instances. This is different from thedestroy
method, which will unmount, emit thedestroy
event, and remove all event listeners.d0fda30
: Add config option to emit content error when content check is disabled0e3207f
: Add support for markviews, which allow you to render custom views for marks within the editor. This is useful for rendering custom UI for marks, like a color picker for a text color mark or a link editor for a link mark.Here is a plain JS markview example:
v3.0.0
Compare Source
Patch Changes
ueberdosis/tiptap (@tiptap/extension-highlight)
v3.3.0
Compare Source
Patch Changes
5423726
]5423726
]v3.2.2
Compare Source
Patch Changes
v3.2.1
Patch Changes
6a2873f
]v3.2.0
Patch Changes
5056e3e
]v3.1.0
Compare Source
Patch Changes
v3.0.9
Compare Source
Patch Changes
v3.0.8
Compare Source
Patch Changes
v3.0.7
Compare Source
Patch Changes
v3.0.6
Compare Source
Patch Changes
2e71d05
]v3.0.5
Compare Source
Patch Changes
v3.0.4
Compare Source
Patch Changes
7ed03fa
]v3.0.3
Compare Source
Patch Changes
75cabde
]v3.0.2
Compare Source
Patch Changes
v3.0.1
Compare Source
Major Changes
a92f4a6
: We are now building packages with tsup which does not support UMD builds, please repackage if you require UMD buildsPatch Changes
1b4c82b
: We are now using pnpm package aliases for versions to enable better version pinning for the monorepository89bd9c7
: Enforce type imports so that the bundler ignores TypeScript type imports when generating the index.js file of the dist directory8c69002
: Synced beta with stable features1b4c82b
]a92f4a6
]8de8e13
]20f68f6
]5e957e5
]89bd9c7
]d0fda30
]0e3207f
]37913d5
]28c5418
]32958d6
]12bb31a
]9f207a6
]412e1bd
]062afaf
]ff8eed6
]704f462
]95b8c71
]8c69002
]664834f
]ac897e7
]087d114
]32958d6
]fc17b21
]e20006b
]5ba480b
]d6c7558
]062afaf
]9ceeab4
]32958d6
]bf835b0
]4e2f6d8
]32958d6
]v3.0.0
Compare Source
Patch Changes
ueberdosis/tiptap (@tiptap/extension-image)
v3.3.0
Compare Source
Patch Changes
5423726
]5423726
]v3.2.2
Compare Source
Patch Changes
v3.2.1
Patch Changes
6a2873f
]v3.2.0
Patch Changes
5056e3e
]v3.1.0
Compare Source
Patch Changes
v3.0.9
Compare Source
Patch Changes
v3.0.8
Compare Source
Patch Changes
v3.0.7
Compare Source
Patch Changes
v3.0.6
Compare Source
Patch Changes
2e71d05
]v3.0.5
Compare Source
Patch Changes
v3.0.4
Compare Source
Patch Changes
7ed03fa
]v3.0.3
Compare Source
Patch Changes
75cabde
]v3.0.2
Compare Source
Patch Changes
v3.0.1
Compare Source
Major Changes
a92f4a6
: We are now building packages with tsup which does not support UMD builds, please repackage if you require UMD buildsMinor Changes
d230f7e
: Add width and height attributes to Image nodePatch Changes
1b4c82b
: We are now using pnpm package aliases for versions to enable better version pinning for the monorepository89bd9c7
: Enforce type imports so that the bundler ignores TypeScript type imports when generating the index.js file of the dist directory8c69002
: Synced beta with stable features1b4c82b
]a92f4a6
]8de8e13
]20f68f6
]5e957e5
]89bd9c7
]d0fda30
]0e3207f
]37913d5
]28c5418
]32958d6
]12bb31a
]9f207a6
]412e1bd
]062afaf
]ff8eed6
]704f462
]95b8c71
]8c69002
]664834f
]ac897e7
]087d114
]32958d6
]fc17b21
]e20006b
]5ba480b
]d6c7558
]062afaf
]9ceeab4
]32958d6
]bf835b0
]4e2f6d8
]32958d6
]v3.0.0
Compare Source
Patch Changes
ueberdosis/tiptap (@tiptap/extension-link)
v3.3.0
Compare Source
Patch Changes
5423726
]5423726
]v3.2.2
Compare Source
Patch Changes
v3.2.1
Patch Changes
6a2873f
]v3.2.0
Patch Changes
5056e3e
]v3.1.0
Compare Source
Patch Changes
v3.0.9
Compare Source
Patch Changes
v3.0.8
Compare Source
Patch Changes
990084c
: Bump linkifyjs version to latest to address the recently discovered prototype pollution vulnerabilityv3.0.7
Compare Source
Patch Changes
v3.0.6
Compare Source
Patch Changes
2e71d05
]v3.0.5
Compare Source
Patch Changes
v3.0.4
Compare Source
Patch Changes
7ed03fa
]v3.0.3
Compare Source
Patch Changes
75cabde
]v3.0.2
Compare Source
Patch Changes
v3.0.1
Compare Source
Major Changes
a92f4a6
: We are now building packages with tsup which does not support UMD builds, please repackage if you require UMD buildsMinor Changes
ced913d
: Add enableClickSelection option to clickHandler plugin to support selection link on click. Also add optional Escape key behaviour to clear selection and move the cursor to the end of the link.Patch Changes
1b4c82b
: We are now using pnpm package aliases for versions to enable better version pinning for the monorepository89bd9c7
: Enforce type imports so that the bundler ignores TypeScript type imports when generating the index.js file of the dist directoryc11c89e
: Fix autolink option in shadow dom by extending the whitespace detection to more unicode charactersd0557ef
: Fixed links with marks not registering click events correctly8c69002
: Synced beta with stable features27dd14b
: Made attributes fortoggleLink
optional1b4c82b
]1e91f9b
]a92f4a6
]8de8e13
]20f68f6
]5e957e5
]89bd9c7
]d0fda30
]0e3207f
]37913d5
]28c5418
]32958d6
]12bb31a
]9f207a6
]412e1bd
]062afaf
]ff8eed6
]704f462
]95b8c71
]8c69002
]664834f
]ac897e7
]087d114
]32958d6
]fc17b21
]62b0877
]e20006b
]5ba480b
]d6c7558
]062afaf
]9ceeab4
]32958d6
]bf835b0
]4e2f6d8
]32958d6
]v3.0.0
Compare Source
Patch Changes
ueberdosis/tiptap (@tiptap/extension-task-item)
v3.3.0
Compare Source
Releases
@tiptap/core@3.3.0
Minor Changes
5423726
: Make input rules and paste rules respect extensionpriority
by registeringthem per-extension instead of aggregating them into a single global plugin.
Why
What changed
Migration & compatibility
Patch Changes
5423726
: Fix paste rule handling for node views and defensively guard empty ranges.This patch ensures paste rules can correctly inspect node content when
node-specific size metadata (
nodeSize
) is present, falling back tonode.content.size
when needed. It also skips empty or invalid node rangesbefore calling
textBetween
, preventing runtime errors originating frominternal Fragment/Node traversals (for example: "Cannot read properties of
undefined (reading 'nodeSize')").
@tiptap/extension-unique-id@3.3.0
Patch Changes
5423726
: Change thegenerateID
option to accept a context object:{ node, pos }
.This lets ID generators access both the ProseMirror
node
and itspos
within the document when creating IDs, enabling logic that depends on node content, type, or position.The change is backwards-compatible: existing
generateID
functions that ignore the new context will continue to work. Example usage:@tiptap/react@3.3.0
Patch Changes
5423726
: EnsureReactRenderer.destroy()
removes the renderer DOM element when present.ReactRenderer
's.element
to the DOM (for example many demos append it todocument.body
), previously callingdestroy()
removed the portal renderer but left the DOM node in place which could lead to accumulating.react-renderer
elements.destroy()
now also removes the element from its parent node if present, preventing leaked DOM nodes / React roots.@tiptap/suggestion@3.3.0
Patch Changes
5423726
: Add a safe API to exit suggestions and remove decorations.{ exit: true }
will now reliably deactivate the suggestion plugin and remove inline decorations.exitSuggestion(view, pluginKey?)
helper to programmatically close suggestions safely.v3.2.2
Compare Source
Releases
@tiptap/extension-unique-id@3.2.2
Patch Changes
1cab7ff
: Change thegenerateID
option to accept a context object:{ node, pos }
.This lets ID generators access both the ProseMirror
node
and itspos
within the document when creating IDs, enabling logic that depends on node content, type, or position.v3.2.1
Releases
@tiptap/core@3.2.1
Patch Changes
6a2873f
: Ensure drag previews for node views work correctly in Safari by attachingan offscreen clone of the node to the DOM while calling
setDragImage
, and by preserving the original element's pixelwidth
/height
so the preview matches the original. This preventsSafari from immediately cancelling the drag when a detached element is
used as the drag image.
v3.1.0
Compare Source
Releases
@tiptap/extension-drag-handle@3.1.0
Minor Changes
978c548
: ExposeonDragStart
andonDragEnd
callbacks to improve custom drag behavior. This allows better UI control compared to relying oneditor.view.dragging
, especially when using absolute-positioned drag handles.@tiptap/extension-drag-handle-react@3.1.0
Minor Changes
978c548
: ExposeonDragStart
andonDragEnd
callbacks to improve custom drag behavior. This allows better UI control compared to relying oneditor.view.dragging
, especially when using absolute-positioned drag handles.@tiptap/extension-bubble-menu@3.1.0
Patch Changes
2718eea
: Fixed bubble menus having invalid positions on node selections@tiptap/extension-emoji@3.1.0
Patch Changes
43747ce
: Fixed a problem where the emoji extension would interfer with editor's in composing mode (for example in IME conversion)@tiptap/extension-mathematics@3.1.0
Patch Changes
c868252
: Fixed an issue with the mathematics regex using modern negative lookups causing crashes in older Safari versions.@tiptap/static-renderer@3.1.0
Patch Changes
c0d33fd
: Fixed a bug causing invalid number of columns being created while converting tables to Markdown0943a52
: Fixed an issue preventing overriding the default options of the static renderer'srenderToMarkdown
function.v3.0.9
Compare Source
Releases
@tiptap/extension-drag-handle-vue-3@3.0.9
Patch Changes
072b110
: Fixed the Vue 3 Drag Handle so it only appears when the user starts interacting with the text editor.@tiptap/extension-list@3.0.9
Patch Changes
22fcc31
: Update TaskItem aria-label when node changes@tiptap/static-renderer@3.0.9
Patch Changes
22d6050
: fix renderToMarkdown rendering a link href's as undefinedv3.0.8
[Compare Source](https://redirect.github.com/ueberdos
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.