mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-22 20:46:38 +08:00
feat(core): add chat-panel track (#11323)
Close [AF-2434](https://linear.app/affine-design/issue/AF-2434).
This commit is contained in:
@@ -101,6 +101,10 @@ export const EditorChatPanel = forwardRef(function EditorChatPanel(
|
||||
const docRecord = docsService.list.doc$(docId).value;
|
||||
return docRecord?.meta$.value ?? null;
|
||||
},
|
||||
getDocPrimaryMode: (docId: string) => {
|
||||
const docRecord = docsService.list.doc$(docId).value;
|
||||
return docRecord?.primaryMode$.value ?? 'page';
|
||||
},
|
||||
getDoc: (docId: string) => {
|
||||
const doc = workspaceService.workspace.docCollection.getDoc(docId);
|
||||
return doc?.getStore() ?? null;
|
||||
|
||||
Reference in New Issue
Block a user