Skip to content

feat: implement mention re-open functionality and add related tests - #90

Merged
littlefrontender merged 1 commit into
masterfrom
feat/86
Jul 27, 2026
Merged

feat: implement mention re-open functionality and add related tests#90
littlefrontender merged 1 commit into
masterfrom
feat/86

Conversation

@littlefrontender

Copy link
Copy Markdown
Contributor
  • Introduced attachMentionReopen to re-open the mention menu when the caret is inside an existing mention token.
  • Updated MentionMenu to support a new reopenOnFocus prop for controlling the re-open behavior.
  • Added findMentionAtCaret function to detect mentions at the caret position.
  • Created tests for findMentionAtCaret to ensure accurate detection of mentions in various scenarios.
  • Refactored imports in index.ts to include new mention-related functionalities.

- Introduced `attachMentionReopen` to re-open the mention menu when the caret is inside an existing mention token.
- Updated `MentionMenu` to support a new `reopenOnFocus` prop for controlling the re-open behavior.
- Added `findMentionAtCaret` function to detect mentions at the caret position.
- Created tests for `findMentionAtCaret` to ensure accurate detection of mentions in various scenarios.
- Refactored imports in `index.ts` to include new mention-related functionalities.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying blocks with  Cloudflare Pages  Cloudflare Pages

Latest commit: d301685
Status: ✅  Deploy successful!
Preview URL: https://71f71213.blocks-cno.pages.dev
Branch Preview URL: https://feat-86.blocks-cno.pages.dev

View logs

@littlefrontender
littlefrontender merged commit 364d2be into master Jul 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant