diff --git a/apps/desktop/package.json b/apps/desktop/package.json index cd520498de..408f585ca8 100644 --- a/apps/desktop/package.json +++ b/apps/desktop/package.json @@ -14,10 +14,10 @@ "build:app": "tauri build" }, "dependencies": { - "@blocksuite/blocks": "0.5.0-20230303192351-13b0dd7", - "@blocksuite/editor": "0.5.0-20230303192351-13b0dd7", + "@blocksuite/blocks": "0.5.0-20230304192152-02cfe2b", + "@blocksuite/editor": "0.5.0-20230304192152-02cfe2b", "@blocksuite/icons": "2.0.17", - "@blocksuite/store": "0.5.0-20230303192351-13b0dd7", + "@blocksuite/store": "0.5.0-20230304192152-02cfe2b", "@emotion/react": "^11.10.6", "@emotion/styled": "^11.10.6", "@tauri-apps/api": "^1.2.0", diff --git a/apps/web/package.json b/apps/web/package.json index 757469bc73..71c623b624 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -14,11 +14,11 @@ "@affine/debug": "workspace:*", "@affine/env": "workspace:*", "@affine/i18n": "workspace:*", - "@blocksuite/blocks": "0.5.0-20230303192351-13b0dd7", - "@blocksuite/editor": "0.5.0-20230303192351-13b0dd7", + "@blocksuite/blocks": "0.5.0-20230304192152-02cfe2b", + "@blocksuite/editor": "0.5.0-20230304192152-02cfe2b", "@blocksuite/icons": "2.0.17", - "@blocksuite/react": "0.5.0-20230303192351-13b0dd7", - "@blocksuite/store": "0.5.0-20230303192351-13b0dd7", + "@blocksuite/react": "0.5.0-20230304192152-02cfe2b", + "@blocksuite/store": "0.5.0-20230304192152-02cfe2b", "@emotion/cache": "^11.10.5", "@emotion/react": "^11.10.6", "@emotion/server": "^11.10.0", diff --git a/apps/web/src/components/affine/workspace-setting-detail/panel/general/index.tsx b/apps/web/src/components/affine/workspace-setting-detail/panel/general/index.tsx index 0d527ee142..724f3d7168 100644 --- a/apps/web/src/components/affine/workspace-setting-detail/panel/general/index.tsx +++ b/apps/web/src/components/affine/workspace-setting-detail/panel/general/index.tsx @@ -125,7 +125,7 @@ export const GeneralPanel: React.FC = ({ shape="circle" style={{ marginLeft: '24px' }} onClick={() => { - setInput(workspace.blockSuiteWorkspace.meta.name); + setInput(workspace.blockSuiteWorkspace.meta.name ?? ''); setShowEditInput(false); }} > diff --git a/apps/web/src/components/pure/footer/index.tsx b/apps/web/src/components/pure/footer/index.tsx index 6b4e7e5130..d39d11b1b9 100644 --- a/apps/web/src/components/pure/footer/index.tsx +++ b/apps/web/src/components/pure/footer/index.tsx @@ -67,8 +67,8 @@ export const Footer: React.FC = ({ user, onLogin, onLogout }) => { interface WorkspaceAvatarProps { size: number; - name: string; - avatar: string; + name: string | undefined; + avatar: string | undefined; style?: CSSProperties; } diff --git a/apps/web/src/components/pure/workspace-avatar/index.tsx b/apps/web/src/components/pure/workspace-avatar/index.tsx index 4791c428e3..03d7da77f2 100644 --- a/apps/web/src/components/pure/workspace-avatar/index.tsx +++ b/apps/web/src/components/pure/workspace-avatar/index.tsx @@ -1,5 +1,7 @@ +import { UNTITLED_WORKSPACE_NAME } from '@affine/env'; import React from 'react'; +import { useBlockSuiteWorkspaceAvatar } from '../../../hooks/use-blocksuite-workspace-avatar'; import { useWorkspaceBlobImage } from '../../../hooks/use-workspace-blob'; import { BlockSuiteWorkspace, RemWorkspace } from '../../../shared'; import { stringToColour } from '../../../utils'; @@ -86,12 +88,13 @@ export const BlockSuiteWorkspaceAvatar: React.FC = ({ style, ...props }) => { - const avatarURL = useWorkspaceBlobImage(workspace.meta.avatar, workspace); + const [avatar] = useBlockSuiteWorkspaceAvatar(workspace); + const avatarURL = useWorkspaceBlobImage(avatar ?? null, workspace); return ( diff --git a/apps/web/src/hooks/use-blocksuite-workspace-avatar.ts b/apps/web/src/hooks/use-blocksuite-workspace-avatar.ts new file mode 100644 index 0000000000..adef404063 --- /dev/null +++ b/apps/web/src/hooks/use-blocksuite-workspace-avatar.ts @@ -0,0 +1,32 @@ +import { assertExists } from '@blocksuite/store'; +import { useCallback, useEffect, useState } from 'react'; + +import { BlockSuiteWorkspace } from '../shared'; + +export function useBlockSuiteWorkspaceAvatar( + blockSuiteWorkspace: BlockSuiteWorkspace | null +) { + const [avatar, set] = useState( + () => blockSuiteWorkspace?.meta.avatar + ); + useEffect(() => { + if (blockSuiteWorkspace) { + set(blockSuiteWorkspace.meta.avatar); + const dispose = blockSuiteWorkspace.meta.commonFieldsUpdated.on(() => { + set(blockSuiteWorkspace.meta.avatar); + }); + return () => { + dispose.dispose(); + }; + } + }, [blockSuiteWorkspace]); + const setAvatar = useCallback( + (avatar: string) => { + assertExists(blockSuiteWorkspace); + blockSuiteWorkspace.meta.setAvatar(avatar); + set(avatar); + }, + [blockSuiteWorkspace] + ); + return [avatar, setAvatar] as const; +} diff --git a/apps/web/src/hooks/use-blocksuite-workspace-name.ts b/apps/web/src/hooks/use-blocksuite-workspace-name.ts index 0dca66b5d9..50449f9fa2 100644 --- a/apps/web/src/hooks/use-blocksuite-workspace-name.ts +++ b/apps/web/src/hooks/use-blocksuite-workspace-name.ts @@ -10,16 +10,11 @@ export function useBlockSuiteWorkspaceName( const [name, set] = useState( () => blockSuiteWorkspace?.meta.name ?? DEFAULT_WORKSPACE_NAME ); - if (blockSuiteWorkspace) { - if (blockSuiteWorkspace.meta.name !== name) { - set(blockSuiteWorkspace.meta.name); - } - } useEffect(() => { if (blockSuiteWorkspace) { - set(blockSuiteWorkspace.meta.name); + set(blockSuiteWorkspace.meta.name ?? ''); const dispose = blockSuiteWorkspace.meta.commonFieldsUpdated.on(() => { - set(blockSuiteWorkspace.meta.name); + set(blockSuiteWorkspace.meta.name ?? ''); }); return () => { dispose.dispose(); diff --git a/apps/web/src/hooks/use-workspace-blob.ts b/apps/web/src/hooks/use-workspace-blob.ts index 6619f65e3f..f6f59b5a63 100644 --- a/apps/web/src/hooks/use-workspace-blob.ts +++ b/apps/web/src/hooks/use-workspace-blob.ts @@ -16,13 +16,17 @@ export function useWorkspaceBlob( } export function useWorkspaceBlobImage( - key: string, + key: string | null, blockSuiteWorkspace: BlockSuiteWorkspace ) { const blobStorage = useWorkspaceBlob(blockSuiteWorkspace); const [imageURL, setImageURL] = useState(null); useEffect(() => { const controller = new AbortController(); + if (key === null) { + setImageURL(null); + return; + } blobStorage?.get(key).then(blob => { if (controller.signal.aborted) { return; diff --git a/packages/component/package.json b/packages/component/package.json index b9e144edd8..4c93c49aab 100644 --- a/packages/component/package.json +++ b/packages/component/package.json @@ -10,12 +10,12 @@ "dependencies": { "@affine/debug": "workspace:*", "@affine/i18n": "workspace:*", - "@blocksuite/blocks": "0.5.0-20230303192351-13b0dd7", - "@blocksuite/editor": "0.5.0-20230303192351-13b0dd7", - "@blocksuite/global": "0.5.0-20230303192351-13b0dd7", + "@blocksuite/blocks": "0.5.0-20230304192152-02cfe2b", + "@blocksuite/editor": "0.5.0-20230304192152-02cfe2b", + "@blocksuite/global": "0.5.0-20230304192152-02cfe2b", "@blocksuite/icons": "2.0.17", - "@blocksuite/react": "0.5.0-20230303192351-13b0dd7", - "@blocksuite/store": "0.5.0-20230303192351-13b0dd7", + "@blocksuite/react": "0.5.0-20230304192152-02cfe2b", + "@blocksuite/store": "0.5.0-20230304192152-02cfe2b", "@emotion/cache": "^11.10.5", "@emotion/react": "^11.10.6", "@emotion/server": "^11.10.0", diff --git a/packages/data-center/package.json b/packages/data-center/package.json index 642191b9f3..af454d554a 100644 --- a/packages/data-center/package.json +++ b/packages/data-center/package.json @@ -14,8 +14,8 @@ }, "dependencies": { "@affine/debug": "workspace:*", - "@blocksuite/blocks": "0.5.0-20230303192351-13b0dd7", - "@blocksuite/store": "0.5.0-20230303192351-13b0dd7", + "@blocksuite/blocks": "0.5.0-20230304192152-02cfe2b", + "@blocksuite/store": "0.5.0-20230304192152-02cfe2b", "@tauri-apps/api": "^1.2.0", "encoding": "^0.1.13", "firebase": "^9.17.1", diff --git a/packages/data-center/src/datacenter.ts b/packages/data-center/src/datacenter.ts index dae7324cd3..dbf2938c61 100644 --- a/packages/data-center/src/datacenter.ts +++ b/packages/data-center/src/datacenter.ts @@ -201,8 +201,8 @@ export class DataCenter { const workspaceUnitForPublic = new WorkspaceUnit({ id: workspaceId, - name: blocksuiteWorkspace.meta.name, - avatar: blocksuiteWorkspace.meta.avatar, + name: blocksuiteWorkspace.meta.name ?? '', + avatar: blocksuiteWorkspace.meta.avatar ?? '', owner: undefined, published: true, provider: 'affine', diff --git a/packages/data-center/src/provider/utils.ts b/packages/data-center/src/provider/utils.ts index f158fb3db8..1501702bb6 100644 --- a/packages/data-center/src/provider/utils.ts +++ b/packages/data-center/src/provider/utils.ts @@ -9,7 +9,7 @@ export const setDefaultAvatar = async ( if (typeof document === 'undefined') { return; } - const blob = await getDefaultHeadImgBlob(blocksuiteWorkspace.meta.name); + const blob = await getDefaultHeadImgBlob(blocksuiteWorkspace.meta.name ?? ''); if (!blob) { return; } diff --git a/packages/env/package.json b/packages/env/package.json index b979bbca44..930a93af40 100644 --- a/packages/env/package.json +++ b/packages/env/package.json @@ -9,6 +9,6 @@ "zod": "^3.20.6" }, "dependencies": { - "@blocksuite/global": "0.5.0-20230303192351-13b0dd7" + "@blocksuite/global": "0.5.0-20230304192152-02cfe2b" } } diff --git a/packages/env/src/constant.ts b/packages/env/src/constant.ts index 72271986f0..c778a61a1f 100644 --- a/packages/env/src/constant.ts +++ b/packages/env/src/constant.ts @@ -1 +1,2 @@ export const DEFAULT_WORKSPACE_NAME = 'Untitled Workspace'; +export const UNTITLED_WORKSPACE_NAME = 'Untitled'; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 703aff61c2..21a3574ed4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -75,10 +75,10 @@ importers: apps/desktop: specifiers: - '@blocksuite/blocks': 0.5.0-20230303192351-13b0dd7 - '@blocksuite/editor': 0.5.0-20230303192351-13b0dd7 + '@blocksuite/blocks': 0.5.0-20230304192152-02cfe2b + '@blocksuite/editor': 0.5.0-20230304192152-02cfe2b '@blocksuite/icons': 2.0.17 - '@blocksuite/store': 0.5.0-20230303192351-13b0dd7 + '@blocksuite/store': 0.5.0-20230304192152-02cfe2b '@emotion/react': ^11.10.6 '@emotion/styled': ^11.10.6 '@tauri-apps/api': ^1.2.0 @@ -104,10 +104,10 @@ importers: yjs: ^13.5.48 zx: ^7.2.0 dependencies: - '@blocksuite/blocks': 0.5.0-20230303192351-13b0dd7_5xsxaxbhbu5ctd3lp3pkuuenhi - '@blocksuite/editor': 0.5.0-20230303192351-13b0dd7_7znjiaiopi2d4jmc57x372ojda + '@blocksuite/blocks': 0.5.0-20230304192152-02cfe2b_kk2x7gs6qx2gwg3kqbmoea6xry + '@blocksuite/editor': 0.5.0-20230304192152-02cfe2b_dhbn6t7323cdhh5stshxzwdcli '@blocksuite/icons': 2.0.17_pmekkgnqduwlme35zpnqhenc34 - '@blocksuite/store': 0.5.0-20230303192351-13b0dd7_lit@2.6.1+yjs@13.5.48 + '@blocksuite/store': 0.5.0-20230304192152-02cfe2b_lit@2.6.1+yjs@13.5.48 '@emotion/react': 11.10.6_pmekkgnqduwlme35zpnqhenc34 '@emotion/styled': 11.10.6_oouaibmszuch5k64ms7uxp2aia '@tauri-apps/api': 1.2.0_nb4isgkwd3sres4g7j7rgtldsu @@ -141,11 +141,11 @@ importers: '@affine/debug': workspace:* '@affine/env': workspace:* '@affine/i18n': workspace:* - '@blocksuite/blocks': 0.5.0-20230303192351-13b0dd7 - '@blocksuite/editor': 0.5.0-20230303192351-13b0dd7 + '@blocksuite/blocks': 0.5.0-20230304192152-02cfe2b + '@blocksuite/editor': 0.5.0-20230304192152-02cfe2b '@blocksuite/icons': 2.0.17 - '@blocksuite/react': 0.5.0-20230303192351-13b0dd7 - '@blocksuite/store': 0.5.0-20230303192351-13b0dd7 + '@blocksuite/react': 0.5.0-20230304192152-02cfe2b + '@blocksuite/store': 0.5.0-20230304192152-02cfe2b '@emotion/cache': ^11.10.5 '@emotion/react': ^11.10.6 '@emotion/server': ^11.10.0 @@ -189,11 +189,11 @@ importers: '@affine/debug': link:../../packages/debug '@affine/env': link:../../packages/env '@affine/i18n': link:../../packages/i18n - '@blocksuite/blocks': 0.5.0-20230303192351-13b0dd7_5xsxaxbhbu5ctd3lp3pkuuenhi - '@blocksuite/editor': 0.5.0-20230303192351-13b0dd7_7znjiaiopi2d4jmc57x372ojda + '@blocksuite/blocks': 0.5.0-20230304192152-02cfe2b_kk2x7gs6qx2gwg3kqbmoea6xry + '@blocksuite/editor': 0.5.0-20230304192152-02cfe2b_dhbn6t7323cdhh5stshxzwdcli '@blocksuite/icons': 2.0.17_pmekkgnqduwlme35zpnqhenc34 - '@blocksuite/react': 0.5.0-20230303192351-13b0dd7_qlfb2yy7nxtfdwqrqhb63y6k6i - '@blocksuite/store': 0.5.0-20230303192351-13b0dd7_lit@2.6.1+yjs@13.5.48 + '@blocksuite/react': 0.5.0-20230304192152-02cfe2b_i6kk3lpbibqmisc7vzhndhdwoa + '@blocksuite/store': 0.5.0-20230304192152-02cfe2b_lit@2.6.1+yjs@13.5.48 '@emotion/cache': 11.10.5 '@emotion/react': 11.10.6_pmekkgnqduwlme35zpnqhenc34 '@emotion/server': 11.10.0 @@ -237,12 +237,12 @@ importers: specifiers: '@affine/debug': workspace:* '@affine/i18n': workspace:* - '@blocksuite/blocks': 0.5.0-20230303192351-13b0dd7 - '@blocksuite/editor': 0.5.0-20230303192351-13b0dd7 - '@blocksuite/global': 0.5.0-20230303192351-13b0dd7 + '@blocksuite/blocks': 0.5.0-20230304192152-02cfe2b + '@blocksuite/editor': 0.5.0-20230304192152-02cfe2b + '@blocksuite/global': 0.5.0-20230304192152-02cfe2b '@blocksuite/icons': 2.0.17 - '@blocksuite/react': 0.5.0-20230303192351-13b0dd7 - '@blocksuite/store': 0.5.0-20230303192351-13b0dd7 + '@blocksuite/react': 0.5.0-20230304192152-02cfe2b + '@blocksuite/store': 0.5.0-20230304192152-02cfe2b '@emotion/cache': ^11.10.5 '@emotion/react': ^11.10.6 '@emotion/server': ^11.10.0 @@ -275,12 +275,12 @@ importers: dependencies: '@affine/debug': link:../debug '@affine/i18n': link:../i18n - '@blocksuite/blocks': 0.5.0-20230303192351-13b0dd7_5xsxaxbhbu5ctd3lp3pkuuenhi - '@blocksuite/editor': 0.5.0-20230303192351-13b0dd7_7znjiaiopi2d4jmc57x372ojda - '@blocksuite/global': 0.5.0-20230303192351-13b0dd7_lit@2.6.1 + '@blocksuite/blocks': 0.5.0-20230304192152-02cfe2b_kk2x7gs6qx2gwg3kqbmoea6xry + '@blocksuite/editor': 0.5.0-20230304192152-02cfe2b_dhbn6t7323cdhh5stshxzwdcli + '@blocksuite/global': 0.5.0-20230304192152-02cfe2b_lit@2.6.1 '@blocksuite/icons': 2.0.17_pmekkgnqduwlme35zpnqhenc34 - '@blocksuite/react': 0.5.0-20230303192351-13b0dd7_qlfb2yy7nxtfdwqrqhb63y6k6i - '@blocksuite/store': 0.5.0-20230303192351-13b0dd7_lit@2.6.1+yjs@13.5.48 + '@blocksuite/react': 0.5.0-20230304192152-02cfe2b_i6kk3lpbibqmisc7vzhndhdwoa + '@blocksuite/store': 0.5.0-20230304192152-02cfe2b_lit@2.6.1+yjs@13.5.48 '@emotion/cache': 11.10.5 '@emotion/react': 11.10.6_pmekkgnqduwlme35zpnqhenc34 '@emotion/server': 11.10.0 @@ -315,8 +315,8 @@ importers: packages/data-center: specifiers: '@affine/debug': workspace:* - '@blocksuite/blocks': 0.5.0-20230303192351-13b0dd7 - '@blocksuite/store': 0.5.0-20230303192351-13b0dd7 + '@blocksuite/blocks': 0.5.0-20230304192152-02cfe2b + '@blocksuite/store': 0.5.0-20230304192152-02cfe2b '@tauri-apps/api': ^1.2.0 encoding: ^0.1.13 fake-indexeddb: 4.0.1 @@ -332,8 +332,8 @@ importers: yjs: ^13.5.48 dependencies: '@affine/debug': link:../debug - '@blocksuite/blocks': 0.5.0-20230303192351-13b0dd7_5xsxaxbhbu5ctd3lp3pkuuenhi - '@blocksuite/store': 0.5.0-20230303192351-13b0dd7_lit@2.6.1+yjs@13.5.48 + '@blocksuite/blocks': 0.5.0-20230304192152-02cfe2b_kk2x7gs6qx2gwg3kqbmoea6xry + '@blocksuite/store': 0.5.0-20230304192152-02cfe2b_lit@2.6.1+yjs@13.5.48 '@tauri-apps/api': 1.2.0_nb4isgkwd3sres4g7j7rgtldsu encoding: 0.1.13 firebase: 9.17.1_encoding@0.1.13 @@ -362,13 +362,13 @@ importers: packages/env: specifiers: - '@blocksuite/global': 0.5.0-20230303192351-13b0dd7 + '@blocksuite/global': 0.5.0-20230304192152-02cfe2b next: ^13.2.3 react: ^18.2.0 react-dom: ^18.2.0 zod: ^3.20.6 dependencies: - '@blocksuite/global': 0.5.0-20230303192351-13b0dd7 + '@blocksuite/global': 0.5.0-20230304192152-02cfe2b devDependencies: next: 13.2.3_biqbaboplfbrettd7655fr4n2y react: 18.2.0 @@ -1779,41 +1779,41 @@ packages: resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} dev: true - /@blocksuite/blocks/0.5.0-20230303192351-13b0dd7_5xsxaxbhbu5ctd3lp3pkuuenhi: - resolution: {integrity: sha512-GRrO221M9QfIxOtzBfoTFkTq9CtRGL6EWe0SEP1MSyMOF+hoJYKGiCjWcEpm50hAK60gqE0EHCno8HTyPxgrfw==} + /@blocksuite/blocks/0.5.0-20230304192152-02cfe2b_kk2x7gs6qx2gwg3kqbmoea6xry: + resolution: {integrity: sha512-dVf9HG0lL3FeC4Y4VdsCF8PCTIkExIyp/aAgWYa5kC80ayfrTZcSTqdkfDzKMjUVfHm0pf3Df6cp3wzrrKjelg==} peerDependencies: - '@blocksuite/store': 0.5.0-20230303192351-13b0dd7 + '@blocksuite/store': 0.5.0-20230304192152-02cfe2b dependencies: - '@blocksuite/global': 0.5.0-20230303192351-13b0dd7_lit@2.6.1 - '@blocksuite/phasor': 0.5.0-20230303192351-13b0dd7_lit@2.6.1+yjs@13.5.48 - '@blocksuite/store': 0.5.0-20230303192351-13b0dd7_lit@2.6.1+yjs@13.5.48 - '@blocksuite/virgo': 0.5.0-20230303192351-13b0dd7_lit@2.6.1+yjs@13.5.48 + '@blocksuite/global': 0.5.0-20230304192152-02cfe2b_lit@2.6.1 + '@blocksuite/phasor': 0.5.0-20230304192152-02cfe2b_lit@2.6.1+yjs@13.5.48 + '@blocksuite/store': 0.5.0-20230304192152-02cfe2b_lit@2.6.1+yjs@13.5.48 + '@blocksuite/virgo': 0.5.0-20230304192152-02cfe2b_lit@2.6.1+yjs@13.5.48 '@popperjs/core': 2.11.6 highlight.js: 11.7.0 hotkeys-js: 3.10.1 lit: 2.6.1 quill: 1.3.7 - zod: 3.20.6 + zod: 3.21.0 transitivePeerDependencies: - yjs dev: false - /@blocksuite/editor/0.5.0-20230303192351-13b0dd7_7znjiaiopi2d4jmc57x372ojda: - resolution: {integrity: sha512-3V2vAxBaZmgaaENJd5yySCuiM7nkc9E28jV68BATuJpSBFYcZqgBg6J73WiWassS/Yo+WBdPg99n8BOzWTDRgQ==} + /@blocksuite/editor/0.5.0-20230304192152-02cfe2b_dhbn6t7323cdhh5stshxzwdcli: + resolution: {integrity: sha512-Sdbyq7axl9yGP9ykW1ISt8pEoyaTAd4HCiKsNe3/U0XveQ7vo2JyJ3T+l0jIVb0z8PauvzpZR5WtMpV6u/3t+w==} peerDependencies: - '@blocksuite/blocks': 0.5.0-20230303192351-13b0dd7 - '@blocksuite/store': 0.5.0-20230303192351-13b0dd7 + '@blocksuite/blocks': 0.5.0-20230304192152-02cfe2b + '@blocksuite/store': 0.5.0-20230304192152-02cfe2b dependencies: - '@blocksuite/blocks': 0.5.0-20230303192351-13b0dd7_5xsxaxbhbu5ctd3lp3pkuuenhi - '@blocksuite/global': 0.5.0-20230303192351-13b0dd7_lit@2.6.1 - '@blocksuite/store': 0.5.0-20230303192351-13b0dd7_lit@2.6.1+yjs@13.5.48 + '@blocksuite/blocks': 0.5.0-20230304192152-02cfe2b_kk2x7gs6qx2gwg3kqbmoea6xry + '@blocksuite/global': 0.5.0-20230304192152-02cfe2b_lit@2.6.1 + '@blocksuite/store': 0.5.0-20230304192152-02cfe2b_lit@2.6.1+yjs@13.5.48 lit: 2.6.1 marked: 4.2.12 turndown: 7.1.1 dev: false - /@blocksuite/global/0.5.0-20230303192351-13b0dd7: - resolution: {integrity: sha512-+p2sRKHF2D8UETh+Rl+5CK0HC4RbR8evytban57fZIathmHThwVes4AH/8lJpSUJ/6y8w4A7nr4wXMGDGisttw==} + /@blocksuite/global/0.5.0-20230304192152-02cfe2b: + resolution: {integrity: sha512-dtj0GE8I0VcmFllh6oMBpLrFnIhisLjUyBaJY/xDVeIK7bizcKvohMfIJIGfKqTsIL9eHTfSqMpq6vAiKBo0BQ==} peerDependencies: lit: ^2.6 peerDependenciesMeta: @@ -1821,11 +1821,11 @@ packages: optional: true dependencies: ansi-colors: 4.1.3 - zod: 3.20.6 + zod: 3.21.0 dev: false - /@blocksuite/global/0.5.0-20230303192351-13b0dd7_lit@2.6.1: - resolution: {integrity: sha512-+p2sRKHF2D8UETh+Rl+5CK0HC4RbR8evytban57fZIathmHThwVes4AH/8lJpSUJ/6y8w4A7nr4wXMGDGisttw==} + /@blocksuite/global/0.5.0-20230304192152-02cfe2b_lit@2.6.1: + resolution: {integrity: sha512-dtj0GE8I0VcmFllh6oMBpLrFnIhisLjUyBaJY/xDVeIK7bizcKvohMfIJIGfKqTsIL9eHTfSqMpq6vAiKBo0BQ==} peerDependencies: lit: ^2.6 peerDependenciesMeta: @@ -1834,7 +1834,7 @@ packages: dependencies: ansi-colors: 4.1.3 lit: 2.6.1 - zod: 3.20.6 + zod: 3.21.0 dev: false /@blocksuite/icons/2.0.17_pmekkgnqduwlme35zpnqhenc34: @@ -1847,12 +1847,12 @@ packages: react: 18.2.0 dev: false - /@blocksuite/phasor/0.5.0-20230303192351-13b0dd7_lit@2.6.1+yjs@13.5.48: - resolution: {integrity: sha512-KPPkzyXsIiwVpEeoe95XAXZW75a/WujEIjcXsb9XnmRIfAUHKC5ll5z3a6+DvvLHSkm96enfhsh6951dh8IGag==} + /@blocksuite/phasor/0.5.0-20230304192152-02cfe2b_lit@2.6.1+yjs@13.5.48: + resolution: {integrity: sha512-UtpF0ue1zF4k608YV0NvHhstq3zNwti8MI00fl+WgtufbQqScSwdDc8ObVW2iPc4RPCgLvsRNRP66AqDuQTWhA==} peerDependencies: yjs: ^13 dependencies: - '@blocksuite/global': 0.5.0-20230303192351-13b0dd7_lit@2.6.1 + '@blocksuite/global': 0.5.0-20230304192152-02cfe2b_lit@2.6.1 fractional-indexing: 3.2.0 nanoid: 4.0.1 perfect-freehand: 1.2.0 @@ -1861,19 +1861,19 @@ packages: - lit dev: false - /@blocksuite/react/0.5.0-20230303192351-13b0dd7_qlfb2yy7nxtfdwqrqhb63y6k6i: - resolution: {integrity: sha512-kU3M1YiUhXrfe0xi7aNWVb//VbV73lnaCqipb1VBk1G38y0OcwVcJCL8JPmFiRFM/B32X2CkhWnaSxpme0GSSg==} + /@blocksuite/react/0.5.0-20230304192152-02cfe2b_i6kk3lpbibqmisc7vzhndhdwoa: + resolution: {integrity: sha512-7GdJtykAVkXaFBa59d5hVCMXkBT5ReI+fRNwqj86z5xAJVPh1VJniM5NsIFmniebQcYfzPQBL2w1pIV2yKA3KA==} peerDependencies: - '@blocksuite/blocks': 0.5.0-20230303192351-13b0dd7 - '@blocksuite/editor': 0.5.0-20230303192351-13b0dd7 - '@blocksuite/store': 0.5.0-20230303192351-13b0dd7 + '@blocksuite/blocks': 0.5.0-20230304192152-02cfe2b + '@blocksuite/editor': 0.5.0-20230304192152-02cfe2b + '@blocksuite/store': 0.5.0-20230304192152-02cfe2b react: '>=18.0.0' react-dom: '>=18.0.0' dependencies: - '@blocksuite/blocks': 0.5.0-20230303192351-13b0dd7_5xsxaxbhbu5ctd3lp3pkuuenhi - '@blocksuite/editor': 0.5.0-20230303192351-13b0dd7_7znjiaiopi2d4jmc57x372ojda - '@blocksuite/global': 0.5.0-20230303192351-13b0dd7_lit@2.6.1 - '@blocksuite/store': 0.5.0-20230303192351-13b0dd7_lit@2.6.1+yjs@13.5.48 + '@blocksuite/blocks': 0.5.0-20230304192152-02cfe2b_kk2x7gs6qx2gwg3kqbmoea6xry + '@blocksuite/editor': 0.5.0-20230304192152-02cfe2b_dhbn6t7323cdhh5stshxzwdcli + '@blocksuite/global': 0.5.0-20230304192152-02cfe2b_lit@2.6.1 + '@blocksuite/store': 0.5.0-20230304192152-02cfe2b_lit@2.6.1+yjs@13.5.48 react: 18.2.0 react-dom: 18.2.0_react@18.2.0 zustand: 4.3.5_react@18.2.0 @@ -1882,13 +1882,13 @@ packages: - lit dev: false - /@blocksuite/store/0.5.0-20230303192351-13b0dd7_lit@2.6.1+yjs@13.5.48: - resolution: {integrity: sha512-lyFayQC8WWUykvvjzBt7yie7584KDs0wXd5icUt9aCASXLFcI4+fu7O0HDLkztM+2JAJElWemR8vHLtV1r3Bsg==} + /@blocksuite/store/0.5.0-20230304192152-02cfe2b_lit@2.6.1+yjs@13.5.48: + resolution: {integrity: sha512-IghswBKPpiOuovXuuU4XbbobBveeeEZYj4uxBki9N5yJoSK2d9IT+yLtqSs164zQtde8aYb0awNeCT1xtFPxRw==} peerDependencies: yjs: ^13 dependencies: - '@blocksuite/global': 0.5.0-20230303192351-13b0dd7_lit@2.6.1 - '@blocksuite/virgo': 0.5.0-20230303192351-13b0dd7_lit@2.6.1+yjs@13.5.48 + '@blocksuite/global': 0.5.0-20230304192152-02cfe2b_lit@2.6.1 + '@blocksuite/virgo': 0.5.0-20230304192152-02cfe2b_lit@2.6.1+yjs@13.5.48 '@types/flexsearch': 0.7.3 buffer: 6.0.3 flexsearch: 0.7.21 @@ -1900,7 +1900,7 @@ packages: y-protocols: 1.0.5 y-webrtc: 10.2.4 yjs: 13.5.48 - zod: 3.20.6 + zod: 3.21.0 transitivePeerDependencies: - bufferutil - lit @@ -1908,16 +1908,16 @@ packages: - utf-8-validate dev: false - /@blocksuite/virgo/0.5.0-20230303192351-13b0dd7_lit@2.6.1+yjs@13.5.48: - resolution: {integrity: sha512-5852CfyDOIpaWHdDEUNDiqdISNnG8ggwRR7F7J1ZblkhjYs1sqO/EPhgLXnIRMO2GizP4MqqOZtOb9Jx9EnajQ==} + /@blocksuite/virgo/0.5.0-20230304192152-02cfe2b_lit@2.6.1+yjs@13.5.48: + resolution: {integrity: sha512-KcGaRC1ge0lXw4M/agX8ZKLOd/NADcrC8eVThTELEUbDCcC6Z50ShhQJ9iobRY6goM30xQ6lGqU/SGrK182c1w==} peerDependencies: lit: ^2 yjs: ^13 dependencies: - '@blocksuite/global': 0.5.0-20230303192351-13b0dd7_lit@2.6.1 + '@blocksuite/global': 0.5.0-20230304192152-02cfe2b_lit@2.6.1 lit: 2.6.1 yjs: 13.5.48 - zod: 3.20.6 + zod: 3.21.0 dev: false /@changesets/apply-release-plan/6.1.3: @@ -5894,7 +5894,7 @@ packages: '@babel/plugin-transform-react-jsx-source': 7.19.6_@babel+core@7.20.12 magic-string: 0.27.0 react-refresh: 0.14.0 - vite: 4.1.4 + vite: 4.1.4_@types+node@18.14.4 transitivePeerDependencies: - supports-color dev: true @@ -14343,6 +14343,10 @@ packages: /zod/3.20.6: resolution: {integrity: sha512-oyu0m54SGCtzh6EClBVqDDlAYRz4jrVtKwQ7ZnsEmMI9HnzuZFj8QFwAY1M5uniIYACdGvv0PBWPF2kO0aNofA==} + /zod/3.21.0: + resolution: {integrity: sha512-UYdykTcVxB6lfdyLzAqLyyYAlOcpoluECvjsdoaqfQmz9p+3LRaIqYcNiL/J2kFYp66fBM8wwBvIGVEjq7KtZw==} + dev: false + /zustand/4.3.5_react@18.2.0: resolution: {integrity: sha512-2iPUzfwx+g3f0PagOMz2vDO9mZzEp2puFpNe7vrAymVPOEIEUjCPkC4/zy84eAscxIWmTU4j9g6upXYkJdzEFQ==} engines: {node: '>=12.7.0'}