Skip to content

several fixes for react rearchitecture - #272

Merged
matthewlipski merged 1 commit into
react-rearchitecturefrom
react-rearchitecture-fixes
Jul 11, 2023
Merged

matthewlipski merged 1 commit into
react-rearchitecturefrom
react-rearchitecture-fixes

Conversation

@YousefED

Copy link
Copy Markdown
Collaborator

This addresses several issues in #270"

  • call unregisterPlugin as useEffect disposer
  • fixed event listener removal + reverted the plugin view instantation
  • now, strict mode works again
  • remove tippy appendTo, this is possible because I made the elements children of EditorView, and included a
    within the components
  • cleaned up the referenceRect logic a bit

@vercel

vercel Bot commented Jul 11, 2023

Copy link
Copy Markdown

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

Name Status Preview Updated (UTC)
blocknote-website ✅ Ready (Inspect) Visit Preview Jul 11, 2023 9:20am

export default {
onConnect(ws, room) {
return onConnect(ws, room, { persist: true });
return onConnect(ws, room, { persist: false, gc: true });

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

accidentally committed this, but we can keep it

@matthewlipski
matthewlipski marked this pull request as ready for review July 11, 2023 11:42
@matthewlipski
matthewlipski merged commit ca32ce3 into react-rearchitecture Jul 11, 2023
matthewlipski added a commit that referenced this pull request Aug 1, 2023
* 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 <matthewlipski@gmail.com>

* 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 <matthewlipski@gmail.com>

* 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 <yousefdardiry@gmail.com>

This branch was successfully deployed

1 active deployment
Preview – blocknote-website — 5ae27434 Deployed Jul 11, 2023 by vercel[bot]
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.

2 participants