Originally created by: dependabot[bot]
Bumps @tiptap/react from 3.29.2 to 3.30.2.
Sourced from @tiptap/react's releases.
v3.30.2
@tiptap/corePatch Changes
- Keep mixed JSX children as separate siblings in DOM output.
- Fixed a bug where
editor.chainandeditor.cancan not be accessed on editor initialization
@tiptap/extension-imagePatch Changes
- Fix resizable images staying hidden when the image is cached or fails to load.
v3.30.1
@tiptap/extension-tablePatch Changes
- Fixed table markdown pipe escaping so the extension loads on older Safari and iOS versions (WebKit before Safari 16.4).
@tiptap/corePatch Changes
- Added new ProseMirror helpers that check whether a value is a specific ProseMirror type.
v3.30.0
@tiptap/vue-2Minor Changes
ceb0dac: New Decorations API
Finally the decorations API is here! Even though Decorations itself are nothing new in ProseMirror, the new API makes it much easier to use them in Tiptap without leaving your extensions.
Decorations change how the document looks without changing the document itself. Highlighting search results, marking spelling mistakes, showing collaborator cursors, putting a drag handle next to every block.
Until now you had to write a ProseMirror plugin by hand for this, keep the decoration set in plugin state, and map it forward on every transaction. Extensions can now declare decorations directly with a new
addDecorations()hook.addDecorations() { return { create: ({ state }) => // findMatches can be any function that returns an array of { from, to } ranges findMatches(state.doc).map(match => Decoration.Inline(match.from, match.to, { class: 'highlight' }), ), }
... (truncated)
Sourced from @tiptap/react's changelog.
3.30.2
Patch Changes
- Updated dependencies [3dffed5]
- Updated dependencies [214a140]
3.30.1
Patch Changes
3.30.0
Minor Changes
3099eef: New Decorations API
Finally the decorations API is here! Even though Decorations itself are nothing new in ProseMirror, the new API makes it much easier to use them in Tiptap without leaving your extensions.
Decorations change how the document looks without changing the document itself. Highlighting search results, marking spelling mistakes, showing collaborator cursors, putting a drag handle next to every block.
Until now you had to write a ProseMirror plugin by hand for this, keep the decoration set in plugin state, and map it forward on every transaction. Extensions can now declare decorations directly with a new
addDecorations()hook.addDecorations() { return { create: ({ state }) => // findMatches can be any function that returns an array of { from, to } ranges findMatches(state.doc).map(match => Decoration.Inline(match.from, match.to, { class: 'highlight' }), ), } }There are three kinds.
Decoration.Inline()styles a range of text.Decoration.Node()puts attributes on a block's DOM element.Decoration.Widget()renders your own element at a single position.Every extension that declares decorations is collected into one plugin, so several extensions can decorate the same document without fighting over it.
Doing less work on every keystroke
By default decorations are rebuilt whenever the document changes. That is fine for small documents and wasteful for large ones, so there are two ways to narrow it down.
shouldUpdate()skips transactions you do not care about. If your decorations only depend on headings, ignore everything else.
... (truncated)
cef2c9a chore(release): release new stable release (#8190](https://github.com/href="https://github.com/ueberdosis/tiptap/tree/HEAD/packages/react/issues/8190">/issues/8190))4c4933d chore(release): release new stable release (#8181](https://github.com/href="https://github.com/ueberdosis/tiptap/tree/HEAD/packages/react/issues/8181">/issues/8181))7901bc2 chore(release): release new stable release (#8142](https://github.com/href="https://github.com/ueberdosis/tiptap/tree/HEAD/packages/react/issues/8142">/issues/8142))3099eef feat(core): add Decorations API with framework widget renderers (#7902](https://github.com/href="https://github.com/ueberdosis/tiptap/tree/HEAD/packages/react/issues/7902">/issues/7902))31e176c fix(react): avoid stale position when syncing node view selection (#8165](https://github.com/href="https://github.com/ueberdosis/tiptap/tree/HEAD/packages/react/issues/8165">/issues/8165))
Originally posted by: github-actions[bot]
Code Reviewer is ready! Type
/reviewin a comment to start the code analysis.Originally posted by: dependabot[bot]
Superseded by [#160].
Related
Tickets: #160
Ticket changed by: dependabot[bot]