-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into link-href-fix
- Loading branch information
Showing
231 changed files
with
3,604 additions
and
4,057 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@tiptap/react": patch | ||
--- | ||
|
||
Updates the typings to `useEditor` and `EditorProvider` to not conflict with the core Editor type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@tiptap/core": minor | ||
--- | ||
|
||
Add `getContent` to nodePasteRules to allow specifying inner content to a created node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@tiptap/extension-text-style": patch | ||
--- | ||
|
||
Give text-style extension a higher priority to have colors apply to things like underlines and strikethroughs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@tiptap/extension-ordered-list": minor | ||
--- | ||
|
||
Support the `type` attribute for ordered lists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@tiptap/react": patch | ||
--- | ||
|
||
This resolves a bug with `useEditor` where event handlers were being called 2x for what should have been a single registration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
"@tiptap/react": minor | ||
"@tiptap/core": minor | ||
--- | ||
|
||
This PR significantly improves the performance of React NodeViews in a couple of ways: | ||
|
||
- It now uses useSyncExternalStore to synchronize changes between React & the editor instance | ||
- It dramatically reduces the number of re-renders by re-using instances of React portals that have already been initialized and unaffected by the change made in the editor | ||
|
||
We were seeing performance problems with React NodeViews because a change to one of them would cause a re-render to all instances of node views. For an application that heavily relies on node views in React, this was quite expensive. | ||
This should dramatically cut down on the number of instances that have to re-render, and, making each of those re-renders much less costly. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@tiptap/vue-3": patch | ||
--- | ||
|
||
fix vue3 class components not working as node views |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,7 +103,7 @@ jobs: | |
|
||
- name: Test ${{ matrix.test-spec.name }} | ||
id: cypress | ||
uses: cypress-io/[email protected].1 | ||
uses: cypress-io/[email protected].2 | ||
with: | ||
cache-key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }} | ||
start: npm run serve | ||
|
@@ -114,15 +114,15 @@ jobs: | |
quiet: true | ||
|
||
- name: Export screenshots (on failure only) | ||
uses: actions/[email protected].3 | ||
uses: actions/[email protected].5 | ||
if: failure() | ||
with: | ||
name: cypress-screenshots | ||
path: tests/cypress/screenshots | ||
retention-days: 7 | ||
|
||
- name: Export screen recordings (on failure only) | ||
uses: actions/[email protected].3 | ||
uses: actions/[email protected].5 | ||
if: failure() | ||
with: | ||
name: cypress-videos | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
demos/src/Examples/InteractivityComponentProvideInject/Vue/Component.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<template> | ||
<node-view-wrapper class="vue-component"> | ||
<label>Vue Component</label> | ||
<ValidateInject /> | ||
</node-view-wrapper> | ||
</template> | ||
|
||
<script> | ||
import { nodeViewProps, NodeViewWrapper } from '@tiptap/vue-3' | ||
import ValidateInject from './ValidateInject.vue' | ||
export default { | ||
components: { | ||
NodeViewWrapper, | ||
ValidateInject, | ||
}, | ||
props: nodeViewProps, | ||
} | ||
</script> | ||
|
||
<style lang="scss"> | ||
.tiptap { | ||
/* Vue component */ | ||
.vue-component { | ||
background-color: var(--purple-light); | ||
border: 2px solid var(--purple); | ||
border-radius: 0.5rem; | ||
margin: 2rem 0; | ||
position: relative; | ||
label { | ||
background-color: var(--purple); | ||
border-radius: 0 0 0.5rem 0; | ||
color: var(--white); | ||
font-size: 0.75rem; | ||
font-weight: bold; | ||
padding: 0.25rem 0.5rem; | ||
position: absolute; | ||
top: 0; | ||
} | ||
.content { | ||
margin-top: 1.5rem; | ||
padding: 1rem; | ||
} | ||
} | ||
} | ||
</style> |
Oops, something went wrong.