refactor(core): favorite adapter (#6285)

1. abstraction over favourites that supports different type of resources
2. sorting abstraction
This commit is contained in:
pengx17
2024-03-29 04:04:07 +00:00
parent 296362ced1
commit 5490944d04
26 changed files with 450 additions and 213 deletions
+3
View File
@@ -20,6 +20,9 @@ declare global {
declare module '@blocksuite/store' {
interface DocMeta {
/**
* @deprecated
*/
favorite?: boolean;
// If a page remove to trash, and it is a subpage, it will remove from its parent `subpageIds`, 'trashRelate' is use for save it parent
trashRelate?: string;