-
-
Notifications
You must be signed in to change notification settings - Fork 441
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
refactor: @blocksuite/editor
-> @blocksuite/presets
#5570
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
@@ -190,7 +190,7 @@ export const PagePreset: BlockSpec[] = [ | |||
}, | |||
}, | |||
}, | |||
embedGithubBlockSpec, | |||
EmbedGithubBlockSpec, | |||
]; | |||
|
|||
export const EdgelessPreset: BlockSpec[] = [ |
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.
We may also want to rename _presets
in blocks to _blocks
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.
How about make it _specs
?
This is intended to expose more prebuilt editors and auxiliary components under the concept of preset. The auxiliary components will be defined as fragments.
EditorPreset
s includeDocEditor
,EdgelessEditor
and more.FragmentPreset
s include AI copilot panel and TOC panels, which shares the block tree under the samepage
instance, but may not share the same lifecycle of the editor component.Migration steps:
EditorContainer
kept for backwards compatibility.