-
Notifications
You must be signed in to change notification settings - Fork 519
⬆️(dependencies) bump blocknote to 0.44.2 #1733
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
Conversation
ed28a34 to
aae1584
Compare
aae1584 to
68bc2b4
Compare
|
Size Change: +721 B (+0.02%) Total Size: 4.14 MB
|
055e256 to
75b7d90
Compare
Ovgodd
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.
good for me ( just suggested 2 changes )
|
|
||
| // Should not happen | ||
| if (!editor) { | ||
| if (!editor || !editor._tiptapEditor?.view?.dom) { |
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.
nit :
| if (!editor || !editor._tiptapEditor?.view?.dom) { | |
| const isEditorReady = Boolean(editor) && | |
| Boolean(editor._tiptapEditor?.view?.dom); | |
| if (!isEditorReady ) { |
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.
| onKeyDown={(e) => { | ||
| if (e.key === 'Escape' && openEmojiPicker) { | ||
| setOpenEmojiPicker(false); | ||
| } | ||
| }} |
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.
Might be worth extracting this inline handler to keep the JSX more readable.maybe like this :
const handleEmojiButtonKeyDown = ( event: React.KeyboardEvent<HTMLElement> ) => { if (event.key === 'Escape' && openEmojiPicker) { event.stopPropagation(); setOpenEmojiPicker(false); } };
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.
For big chunk of code I agree it is better, but for small snippet I find it is easier to have it directly on the component, I don't have to search where the function is, I can see directly what it is doing like that.
75b7d90 to
01d6625
Compare
We bump the blocknote dependencies to version 0.44.2 to incorporate the latest features and bug fixes. It seems to fix an issue with Titap, when the text was selected and the user clicked on the Go Back button of the browser, the application was crashing. "[tiptap error]: The editor view is not available. Cannot access view['dom']. The editor may not be mounted yet."
WebSocketStatus.Connected does not mean we are totally connected because authentication can still be in progress and failed. So we will use the event onAuthenticated to assert that we are fully connected.
The recent update of Blocknote brokes a test because a element was not easily accessible anymore. We improved the CalloutBlock to be able to be closed when "escape" is pressed, we improve the positionning of the EmojiPicker too.
01d6625 to
2f612db
Compare

Purpose
We bump the blocknote dependencies to version 0.44.2 to incorporate the latest features and bug fixes.
It seems to fix an issue with Titap, when the text was selected and the user clicked on the Go Back button of the browser, the application was crashing.