mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 22:37:04 +08:00
feat: new preload pages (#3674)
This commit is contained in:
@@ -11,12 +11,12 @@
|
||||
"devDependencies": {
|
||||
"@affine/env": "workspace:*",
|
||||
"@affine/y-provider": "workspace:*",
|
||||
"@blocksuite/block-std": "0.0.0-20230810005427-25adb757-nightly",
|
||||
"@blocksuite/blocks": "0.0.0-20230810005427-25adb757-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20230810005427-25adb757-nightly",
|
||||
"@blocksuite/global": "0.0.0-20230810005427-25adb757-nightly",
|
||||
"@blocksuite/lit": "0.0.0-20230810005427-25adb757-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230810005427-25adb757-nightly"
|
||||
"@blocksuite/block-std": "0.0.0-20230810154852-8a8eccea-nightly",
|
||||
"@blocksuite/blocks": "0.0.0-20230810154852-8a8eccea-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20230810154852-8a8eccea-nightly",
|
||||
"@blocksuite/global": "0.0.0-20230810154852-8a8eccea-nightly",
|
||||
"@blocksuite/lit": "0.0.0-20230810154852-8a8eccea-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230810154852-8a8eccea-nightly"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@affine/y-provider": "workspace:*",
|
||||
|
||||
@@ -5,22 +5,6 @@ import type { Atom } from 'jotai';
|
||||
import { atom, useAtomValue } from 'jotai';
|
||||
import { useMemo } from 'react';
|
||||
|
||||
declare module '@blocksuite/store' {
|
||||
interface PageMeta {
|
||||
favorite?: boolean;
|
||||
subpageIds: string[];
|
||||
// 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;
|
||||
trash?: boolean;
|
||||
trashDate?: number;
|
||||
updatedDate?: number;
|
||||
mode?: 'page' | 'edgeless';
|
||||
jumpOnce?: boolean;
|
||||
// todo: support `number` in the future
|
||||
isPublic?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
const weakMap = new WeakMap<Workspace, Atom<PageMeta[]>>();
|
||||
|
||||
export function useBlockSuitePageMeta(
|
||||
|
||||
Reference in New Issue
Block a user