-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename History extension to UndoRedo #6172
Conversation
🦋 Changeset detectedLatest commit: 6cafe00 The changes in this PR will be included in the next version bump. This PR includes changesets to release 59 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for tiptap-embed ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request renames the history extension to UndoRedo throughout the codebase to resolve naming conflicts with other history-related extensions.
- Renames import paths from "@tiptap/extension-history" to "@tiptap/extension-undo-redo" and updates related configuration properties.
- Updates demo files and codemods documentation to reflect the new naming convention.
Reviewed Changes
Copilot reviewed 39 out of 39 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
.changeset/thirty-rockets-act.md | Updated changeset description to reflect renaming. |
codemods/tiptap-2-migrate-imports/src/index.ts | Replaced import mappings for History with UndoRedo accordingly. |
demos/src/Extensions/UndoRedo/Vue/index.spec.js | Updated test context and visit paths to the new UndoRedo extension. |
demos/src/Extensions/UndoRedo/React/index.spec.js | Updated test context and visit paths to the new UndoRedo extension. |
demos/src/Demos/CollaborationSplitPane/React/Editor.jsx | Modified StarterKit configuration property from history to undoRedo. |
codemods/tiptap-2-migrate-imports/README.md | Updated import examples to use double quotes and reflect renaming. |
.changeset/chilly-lemons-remember.md | Adjusted migration instructions from History to UndoRedo. |
demos/src/Examples/CollaborativeEditing/React/index.jsx | Updated StarterKit configuration property from history to undoRedo. |
.changeset/chilled-trees-agree.md | Updated changeset dependency from history to undoRedo. |
.changeset/cuddly-impalas-heal.md | Updated changeset dependency from history to undoRedo. |
demos/src/Demos/SingleRoomCollab/React/index.jsx | Updated StarterKit configuration property from history to undoRedo. |
demos/src/Extensions/UndoRedo/React/index.jsx | Updated import name from History to UndoRedo and added button types. |
demos/src/Experiments/All/Vue/index.vue | Updated import statement to replace History with UndoRedo; minor formatting noted. |
Changes Overview
This PR renames the history extension and all it's occurrences to
UndoRedo
.This is done because there were a few other functionalities and extensions also named 'History' for example
CollaborationHistory
or the Prosemirror history plugin.Implementation Approach
I replaced all occurences of the history extension with it's undo-redo counterparts, updated the demo, tests and builds.
Testing Done
I've tested a few demos using the undo-redo extension locally & ran through tests locally.
Verification Steps
See above
Additional Notes
This is a breaking change for our
3.0.0
release.Checklist