-
-
Notifications
You must be signed in to change notification settings - Fork 643
simplify ui elements #288
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
simplify ui elements #288
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| updateSuggestionsMenu(this.suggestionsMenuState); | ||
| }; | ||
|
|
||
| this.itemCallback = (item: T) => { |
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.
I don't think this was used
matthewlipski
left a comment
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.
Nice! Much less code than before. As far as I can see it's mostly due to grouping the UI plugins in a single extension and and moving logic from BlockNoteEditor to EventEmitter. I am wondering though about using EventEmitter vs just adding similar logic to BlockNoteEditor, and I have a few questions about that.
packages/react/src/SlashMenu/components/SlashMenuPositioner.tsx
Outdated
Show resolved
Hide resolved
…BlockNote into react-rearchitecture-callbacks
* test react components as children * slashmenu * Major refactor * Exported plugin keys & cleaned up slash menu plugin * Removed redundant type * Commented out old factory & component wrapper * Removed old files & fixed build * Small cleanup * Fixed some bugs in the slash and side menus * Made menu & toolbar plugins load with the highest priority instead of the lowest * Disabled strict mode * Fixed a bug which caused plugin views to be created multiple times * several fixes for react rearchitecture (#272) * Major cleanup for menus & toolbars * Major cleanup for menus & toolbars * Cleaned up `useBlockNote`, menu & toolbar components * Changed menu & toolbar APIs to work with the new rendering architecture * Numerous changes: - Menu extensions are now initialized on editor creation and expose listeners - Cleaned up slash menu item creation and typing - Fixed drag & drop causing errors when calling `getBlockInfoFromPos` * Fixed menus being initialized early * Fixed some deps * Reverted some deps * Added lint ignore annotations to deps * Cleaned up slash menu and suggestion items * Cleaned up `BlockNoteEditor` * Revert "Cleaned up `BlockNoteEditor`" This reverts commit 5409f8b. * Minor changes * Minor changes & update to formatting toolbar docs * simplify ui elements (#288) * simplify ui elements * remove unused * fix view * Fixed build * add onUpdate * fix vanilla * fix build * allow props for blocknoteview --------- Co-authored-by: Matthew Lipski <[email protected]> * Implemented PR feedback * Implemented PR feedback * Implemented PR feedback * Implemented PR feedback * Added docs & small tweaks * Renamed remaining slashCommand references to slashMenuItems * Implemented PR feedback * Fixed lint warning * fix initialcontent and uniqueid (#289) * fix initialcontent and uniqueid * fix * Removed ready check in `BlockNoteView` --------- Co-authored-by: Matthew Lipski <[email protected]> * Added pre-made components for side menu * Added custom side menu docs * Updated docs * Updated unit tests & snapshots * Updated `useBlockNote` deps --------- Co-authored-by: yousefed <[email protected]>
Proposal for a simplified setup of the ui elements