Menu

#150 deps(deps): bump @tiptap/react from 3.29.2 to 3.30.2

closed
nobody
3 days ago
6 days ago
Anonymous
No

Originally created by: dependabot[bot]

Bumps @tiptap/react from 3.29.2 to 3.30.2.

Release notes

Sourced from @​tiptap/react's releases.

v3.30.2

@​tiptap/core

Patch Changes

  • Keep mixed JSX children as separate siblings in DOM output.
  • Fixed a bug where editor.chain and editor.can can not be accessed on editor initialization

@​tiptap/extension-image

Patch Changes

  • Fix resizable images staying hidden when the image is cached or fails to load.

v3.30.1

@​tiptap/extension-table

Patch Changes

  • Fixed table markdown pipe escaping so the extension loads on older Safari and iOS versions (WebKit before Safari 16.4).

@​tiptap/core

Patch Changes

  • Added new ProseMirror helpers that check whether a value is a specific ProseMirror type.

v3.30.0

@​tiptap/vue-2

Minor 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)

Changelog

Sourced from @​tiptap/react's changelog.

3.30.2

Patch Changes

  • Updated dependencies [3dffed5]
  • Updated dependencies [214a140]
    • @​tiptap/core@​3.30.2
    • @​tiptap/pm@​3.30.2

3.30.1

Patch Changes

  • Updated dependencies [abc8828]
    • @​tiptap/core@​3.30.1
    • @​tiptap/pm@​3.30.1

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)

Commits


Discussion

  • Anonymous

    Anonymous - 6 days ago

    Originally posted by: github-actions[bot]

    Code Reviewer is ready! Type /review in a comment to start the code analysis.

     
  • Anonymous

    Anonymous - 3 days ago

    Originally posted by: dependabot[bot]

    Superseded by [#160].

     

    Related

    Tickets: #160

  • Anonymous

    Anonymous - 3 days ago

    Ticket changed by: dependabot[bot]

    • status: open --> closed
     

Log in to post a comment.