[pull] main from ueberdosis:main - #165
Merged
Merged
Conversation
* feat(extension-find-and-replace): add find and replace functionality - Introduced a new `@tiptap/extension-find-and-replace` extension that allows users to search for terms in the document, highlight matches, and replace them with specified text. - Added support for case-sensitive and regex searches. - Implemented UI components for the extension in both React and Vue demos. - Updated `.fallowrc.json` to include the new extension and modified `pnpm-lock.yaml` for dependency updates. - Added tests to ensure functionality works as expected. This feature enhances the editing capabilities of Tiptap by providing a robust find and replace mechanism. * feat(find-and-replace): add aria-labels to input fields for accessibility * fix(extension-find-and-replace): correct case sensitivity description in documentation * fix(extension-find-and-replace): update replacement term handling in tests * fix(extension-find-and-replace): change style tag content assignment from innerHTML to textContent for security * feat(extension-find-and-replace): implement regex safety checks to prevent catastrophic backtracking * feat(extension-find-and-replace): add whole word matching option - Enhanced the `@tiptap/extension-find-and-replace` to support whole word matching, which can be enabled or disabled by the user. - Updated the UI components in React and Vue demos to include a checkbox for the whole word option. - Added tests to verify the functionality of whole word matching and its interaction with regex mode. - Updated documentation to reflect the new feature and its usage. * fix(find-and-replace): don't overwrite pre-chained transaction meta * fix(find-and-replace): sync initial search results to storage * test(find-and-replace): set the result index to 0 when there are results but no index yet * test(find-and-replace): maintain the result index by mapping it through transaction * test(find-and-replace): add support for emojis * test(find-and-replace): add Unicode whole word matching * feat(extension-find-and-replace): integrate RE2 for safer regex handling * refactor(find-and-replace): improve decoration rendering and split out utils * refactor(find-and-replace): improve performance on position lookups * refactor(find-and-replace): enhance replace functionality with grouped results processing * feat(find-and-replace): implement find and replace functionality with hooks and improved state management * refactor(find-and-replace): move search debounce logic into extension and clean up UI hooks * refactor(find-and-replace): reorganize source files into subdirectories and split modules
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )