-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[lexical-react][lexical-playground] sync draggable block plugin to www #6397
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
…9382ad6991cd3917e33e9aca:66:6: ERROR - [JSC_BLOCK_SCOPED_DECL_MULTIPLY_DECLARED_ERROR] Block-scoped variable Rect declared more than once. First occurrence: externs.zip//w3c_css.js:858:9 66| class Rect {
@@ -17,7 +17,7 @@ type ContainsPointReturn = { | |||
}; | |||
}; | |||
|
|||
export class Rect { | |||
export class Rectangle { |
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.
rename because w3c bundle has a Rect class already and clash in naming cause compiling the prod build to fail
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.
LGTM, I would consider suffixing the component to __EXPERIMENTAL
while we polish the UI since it will give us more flexibility to change the API
} | ||
|
||
export default function DraggableBlockPlugin({ | ||
export default function PlaygroundDraggableBlockPlugin({ |
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.
export default function PlaygroundDraggableBlockPlugin({ | |
export default function DraggableBlockPlugin({ |
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.
ok added |
failure from flaky test |
Description
abstract out the ui components from draggable block plugin so we can customise the ui for menu and target line
currently sticking with original implementation which depends on the ui component to be a html element to be compatible with ref. will explore (in another PR) if its possible to make this more flexible so we can pass in any react component without having to maintain the ref
Closes #
Test plan
Before
Draggable block plugin works
After
Screen.Recording.2024-07-16.at.6.17.17.PM.mov
no regressions, draggable block plugin still works