Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

feat: add `exportWorkspaceYDoc` (#942)

Himself6526c308147cd5
diff --git a/packages/data-center/src/workspace-unit.ts b/packages/data-center/src/workspace-unit.ts
index 1560ec7bf6..6b1548e26f 100644
--- a/packages/data-center/src/workspace-unit.ts
+++ b/packages/data-center/src/workspace-unit.ts
@@ -74,4 +74,11 @@ export class WorkspaceUnit {
syncMode: this.syncMode,
};
}
+
+ /**
+ * @internal only for debug use
+ */
+ exportWorkspaceYDoc(): void {
+ this._blocksuiteWorkspace?.exportYDoc();
+ }
}