Skip to content

feat: Asynchronous slash menu item fetching - #506

Closed
matthewlipski wants to merge 7 commits into
mainfrom
async-slash-menu-items
Closed

feat: Asynchronous slash menu item fetching#506
matthewlipski wants to merge 7 commits into
mainfrom
async-slash-menu-items

Conversation

@matthewlipski

Copy link
Copy Markdown
Collaborator

This PR refactors the suggestion plugin to support fetching items asynchronously. To do this, some of the existing responsibility of the suggestion plugin has to be move. Specifically, the keyboard handling is moved to the slash menu component and item filtering is moved to the function provided in the slashMenuItems option.

I think we can move the plugin state to the plugin view like it is in the table handles plugin, though this is still TODO.

Closes #488

@vercel

vercel Bot commented Jan 10, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview Jan 15, 2024 2:24pm
blocknote-website ✅ Ready (Inspect) Visit Preview Jan 15, 2024 2:24pm

Comment thread packages/core/src/extensions-shared/suggestion/SuggestionPlugin.ts Outdated
Comment thread packages/react/src/components/SlashMenu/DefaultSlashMenu.tsx
Comment thread packages/react/src/components/SlashMenu/DefaultSlashMenu.tsx Outdated
Comment thread packages/react/src/components/SlashMenu/DefaultSlashMenu.tsx Outdated
@YousefED

YousefED commented Mar 5, 2024 via email

Copy link
Copy Markdown
Collaborator

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.

Custom search function for the slash menu

2 participants