Skip to content

Commit

Permalink
revert: "chore(release): publish a new pre-release version"
Browse files Browse the repository at this point in the history
This reverts commit ff15704.
  • Loading branch information
nperez0111 committed Jul 14, 2024
1 parent ff15704 commit fb45149
Show file tree
Hide file tree
Showing 121 changed files with 871 additions and 956 deletions.
5 changes: 5 additions & 0 deletions .changeset/clever-mice-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tiptap/react": patch
---

Fixes strict mode accidentally destroying the editor instance
5 changes: 5 additions & 0 deletions .changeset/cuddly-socks-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tiptap/core": patch
---

Made some minor changes to how packages are built
5 changes: 5 additions & 0 deletions .changeset/curvy-windows-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tiptap/react": patch
---

Fix the typings
5 changes: 5 additions & 0 deletions .changeset/early-jokes-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tiptap/core": patch
---

When `parseOptions.whitespace === 'full' or parseOptions.whitespace === true` setting content will no longer strip whitespaces on setContent
5 changes: 5 additions & 0 deletions .changeset/five-tigers-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tiptap/starter-kit": patch
---

fix(starter-kit): make blockquote shortcut work in starter-kit
67 changes: 67 additions & 0 deletions .changeset/fresh-chefs-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
"@tiptap/react": patch
---

We've heard a number of complaints around the performance of our React integration, and we finally have a solution that we believe will satisfy everyone. We've made a number of optimizations to how the editor is rendered, as well give you more control over the rendering process.

Here is a summary of the changes and how you can take advantage of them:

- SSR rendering was holding back our ability to have an editor instance on first render of `useEditor`. We've now made the default behavior to render the editor immediately on the client. This behavior can be controlled with the new `immediatelyRender` option which when set to `false` will defer rendering until the second render (via a useEffect), this should only be used when server-side rendering.
- The default behavior of the useEditor hook is to re-render the editor on every editor transaction. Now with the `shouldRerenderOnTransaction` option, you can disable this behavior to optimize performance. Instead, to access the new editor state, you can use the `useEditorState` hook.
- `useEditorState` this new hook allows you to select from the editor instance any state you need to render your UI. This is useful when you want to optimize performance by only re-rendering the parts of your UI that need to be updated.

Here is a usage example:

```jsx
const editor = useEditor({
/**
* This option gives us the control to enable the default behavior of rendering the editor immediately.
*/
immediatelyRender: true,
/**
* This option gives us the control to disable the default behavior of re-rendering the editor on every transaction.
*/
shouldRerenderOnTransaction: false,
extensions: [StarterKit],
content: `
<p>
A highly optimized editor that only re-renders when it’s necessary.
</p>
`,
})

/**
* This hook allows us to select the editor state we want to use in our component.
*/
const currentEditorState = useEditorState({
/**
* The editor instance we want to use.
*/
editor,
/**
* This selector allows us to select the data we want to use in our component.
* It is evaluated on every editor transaction and compared to it's previously returned value.
* You can return any data shape you want.
*/
selector: ctx => ({
isBold: ctx.editor.isActive('bold'),
isItalic: ctx.editor.isActive('italic'),
isStrike: ctx.editor.isActive('strike'),
}),
/**
* This function allows us to customize the equality check for the selector.
* By default it is a `===` check.
*/
equalityFn: (prev, next) => {
// A deep-equal function would probably be more maintainable here, but, we use a shallow one to show that it can be customized.
if (!next) {
return false
}
return (
prev.isBold === next.isBold
&& prev.isItalic === next.isItalic
&& prev.isStrike === next.isStrike
)
},
})
```
5 changes: 5 additions & 0 deletions .changeset/mean-cooks-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tiptap/extension-placeholder": patch
---

Placeholders can now handle more complex default content
70 changes: 70 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"mode": "exit",
"tag": "pre",
"initialVersions": {
"tiptap-demos": "2.4.0",
"@tiptap/core": "2.4.0",
"@tiptap/extension-blockquote": "2.4.0",
"@tiptap/extension-bold": "2.4.0",
"@tiptap/extension-bubble-menu": "2.4.0",
"@tiptap/extension-bullet-list": "2.4.0",
"@tiptap/extension-character-count": "2.4.0",
"@tiptap/extension-code": "2.4.0",
"@tiptap/extension-code-block": "2.4.0",
"@tiptap/extension-code-block-lowlight": "2.4.0",
"@tiptap/extension-collaboration": "2.4.0",
"@tiptap/extension-collaboration-cursor": "2.4.0",
"@tiptap/extension-color": "2.4.0",
"@tiptap/extension-document": "2.4.0",
"@tiptap/extension-dropcursor": "2.4.0",
"@tiptap/extension-floating-menu": "2.4.0",
"@tiptap/extension-focus": "2.4.0",
"@tiptap/extension-font-family": "2.4.0",
"@tiptap/extension-gapcursor": "2.4.0",
"@tiptap/extension-hard-break": "2.4.0",
"@tiptap/extension-heading": "2.4.0",
"@tiptap/extension-highlight": "2.4.0",
"@tiptap/extension-history": "2.4.0",
"@tiptap/extension-horizontal-rule": "2.4.0",
"@tiptap/extension-image": "2.4.0",
"@tiptap/extension-italic": "2.4.0",
"@tiptap/extension-link": "2.4.0",
"@tiptap/extension-list-item": "2.4.0",
"@tiptap/extension-list-keymap": "2.4.0",
"@tiptap/extension-mention": "2.4.0",
"@tiptap/extension-ordered-list": "2.4.0",
"@tiptap/extension-paragraph": "2.4.0",
"@tiptap/extension-placeholder": "2.4.0",
"@tiptap/extension-strike": "2.4.0",
"@tiptap/extension-subscript": "2.4.0",
"@tiptap/extension-superscript": "2.4.0",
"@tiptap/extension-table": "2.4.0",
"@tiptap/extension-table-cell": "2.4.0",
"@tiptap/extension-table-header": "2.4.0",
"@tiptap/extension-table-row": "2.4.0",
"@tiptap/extension-task-item": "2.4.0",
"@tiptap/extension-task-list": "2.4.0",
"@tiptap/extension-text": "2.4.0",
"@tiptap/extension-text-align": "2.4.0",
"@tiptap/extension-text-style": "2.4.0",
"@tiptap/extension-typography": "2.4.0",
"@tiptap/extension-underline": "2.4.0",
"@tiptap/extension-youtube": "2.4.0",
"@tiptap/html": "2.4.0",
"@tiptap/pm": "2.4.0",
"@tiptap/react": "2.4.0",
"@tiptap/starter-kit": "2.4.0",
"@tiptap/suggestion": "2.4.0",
"@tiptap/vue-2": "2.4.0",
"@tiptap/vue-3": "2.4.0"
},
"changesets": [
"clever-mice-search",
"cuddly-socks-beg",
"curvy-windows-know",
"five-tigers-kick",
"fresh-chefs-agree",
"mean-cooks-cheer",
"tasty-moons-move"
]
}
5 changes: 5 additions & 0 deletions .changeset/shaggy-chefs-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tiptap/core": patch
---

Faster performance for checking if a node is empty and if something is a fragment
5 changes: 5 additions & 0 deletions .changeset/strong-sloths-pay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tiptap/extension-collaboration": minor
---

Add `ySyncOptions` property to `@tiptap/extension-collaboration` to allow passing options directly to y-prosemirror's plugin
6 changes: 6 additions & 0 deletions .changeset/tasty-moons-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@tiptap/core": patch
"@tiptap/vue-3": patch
---

Vue 3 bubble menus are properly synchronized with state transitions with the new beforeTransaction hook which is fired before the transaction is applied to the view
Loading

0 comments on commit fb45149

Please sign in to comment.