mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 09:21:24 +08:00
feat: bump blocksuite (#6541)
## Features - https://github.com/toeverything/BlockSuite/pull/6737 @Saul-Mirone - https://github.com/toeverything/BlockSuite/pull/6735 @pengx17 - https://github.com/toeverything/BlockSuite/pull/6740 @regischen ## Bugfix - https://github.com/toeverything/BlockSuite/pull/6744 @donteatfriedrice - https://github.com/toeverything/BlockSuite/pull/6742 @doouding ## Refactor ## Misc - https://github.com/toeverything/BlockSuite/pull/6741 @fundon
This commit is contained in:
@@ -167,7 +167,7 @@ export const Component = () => {
|
||||
const { page } = workspace.services.get(PageManager).open(pageId);
|
||||
|
||||
workspace.docCollection.awarenessStore.setReadonly(
|
||||
page.blockSuiteDoc,
|
||||
page.blockSuiteDoc.blockCollection,
|
||||
true
|
||||
);
|
||||
|
||||
|
||||
@@ -332,7 +332,7 @@ export const DetailPage = ({ pageId }: { pageId: string }): ReactElement => {
|
||||
useEffect(() => {
|
||||
if (page && pageRecord?.meta?.trash) {
|
||||
currentWorkspace.docCollection.awarenessStore.setReadonly(
|
||||
page.blockSuiteDoc,
|
||||
page.blockSuiteDoc.blockCollection,
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
@@ -65,7 +65,9 @@ export const Component = (): ReactElement => {
|
||||
window.exportWorkspaceSnapshot = async () => {
|
||||
const zip = await ZipTransformer.exportDocs(
|
||||
workspace.docCollection,
|
||||
Array.from(workspace.docCollection.docs.values())
|
||||
Array.from(workspace.docCollection.docs.values()).map(collection =>
|
||||
collection.getDoc()
|
||||
)
|
||||
);
|
||||
const url = URL.createObjectURL(zip);
|
||||
// download url
|
||||
|
||||
Reference in New Issue
Block a user