feat: bump blocksuite (#5286)

Co-authored-by: donteatfriedrice <huisheng.chen7788@outlook.com>
This commit is contained in:
Yifeng Wang
2023-12-15 12:57:52 +08:00
committed by GitHub
co-authored by donteatfriedrice
parent 136b4ccb4e
commit af15aa06d4
37 changed files with 302 additions and 259 deletions
+2 -2
View File
@@ -3,8 +3,8 @@
"private": true, "private": true,
"type": "module", "type": "module",
"devDependencies": { "devDependencies": {
"@blocksuite/global": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/global": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/store": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/store": "0.11.0-nightly-202312150424-f13b992",
"react": "18.2.0", "react": "18.2.0",
"react-dom": "18.2.0", "react-dom": "18.2.0",
"vitest": "0.34.6", "vitest": "0.34.6",
-1
View File
@@ -6,7 +6,6 @@ import { isDesktop, isServer } from './constant.js';
import { UaHelper } from './ua-helper.js'; import { UaHelper } from './ua-helper.js';
export const blockSuiteFeatureFlags = z.object({ export const blockSuiteFeatureFlags = z.object({
enable_transformer_clipboard: z.boolean(),
enable_expand_database_block: z.boolean(), enable_expand_database_block: z.boolean(),
enable_bultin_ledits: z.boolean(), enable_bultin_ledits: z.boolean(),
}); });
+5 -5
View File
@@ -57,9 +57,9 @@
"@affine/debug": "workspace:*", "@affine/debug": "workspace:*",
"@affine/env": "workspace:*", "@affine/env": "workspace:*",
"@affine/sdk": "workspace:*", "@affine/sdk": "workspace:*",
"@blocksuite/blocks": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/blocks": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/global": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/global": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/store": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/store": "0.11.0-nightly-202312150424-f13b992",
"jotai": "^2.5.1", "jotai": "^2.5.1",
"jotai-effect": "^0.2.3", "jotai-effect": "^0.2.3",
"tinykeys": "^2.1.0", "tinykeys": "^2.1.0",
@@ -68,8 +68,8 @@
"devDependencies": { "devDependencies": {
"@affine-test/fixtures": "workspace:*", "@affine-test/fixtures": "workspace:*",
"@affine/templates": "workspace:*", "@affine/templates": "workspace:*",
"@blocksuite/lit": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/lit": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/presets": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/presets": "0.11.0-nightly-202312150424-f13b992",
"@testing-library/react": "^14.0.0", "@testing-library/react": "^14.0.0",
"async-call-rpc": "^6.3.1", "async-call-rpc": "^6.3.1",
"electron": "link:../../frontend/electron/node_modules/electron", "electron": "link:../../frontend/electron/node_modules/electron",
+5 -5
View File
@@ -22,11 +22,11 @@
"dist" "dist"
], ],
"dependencies": { "dependencies": {
"@blocksuite/block-std": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/block-std": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/blocks": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/blocks": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/global": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/global": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/presets": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/presets": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/store": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/store": "0.11.0-nightly-202312150424-f13b992",
"jotai": "^2.5.1", "jotai": "^2.5.1",
"zod": "^3.22.4" "zod": "^3.22.4"
}, },
+2 -2
View File
@@ -1,5 +1,5 @@
import type { BaseSelection } from '@blocksuite/block-std'; import type { BaseSelection } from '@blocksuite/block-std';
import type { EditorContainer } from '@blocksuite/presets'; import type { AffineEditorContainer } from '@blocksuite/presets';
import type { Page } from '@blocksuite/store'; import type { Page } from '@blocksuite/store';
import type { Workspace } from '@blocksuite/store'; import type { Workspace } from '@blocksuite/store';
import type { Atom, getDefaultStore } from 'jotai/vanilla'; import type { Atom, getDefaultStore } from 'jotai/vanilla';
@@ -10,7 +10,7 @@ export type Part = 'headerItem' | 'editor' | 'setting' | 'formatBar';
export type CallbackMap = { export type CallbackMap = {
headerItem: (root: HTMLElement) => () => void; headerItem: (root: HTMLElement) => () => void;
editor: (root: HTMLElement, editor: EditorContainer) => () => void; editor: (root: HTMLElement, editor: AffineEditorContainer) => () => void;
setting: (root: HTMLElement) => () => void; setting: (root: HTMLElement) => () => void;
formatBar: ( formatBar: (
root: HTMLElement, root: HTMLElement,
+2 -2
View File
@@ -37,8 +37,8 @@
"y-provider": "workspace:*" "y-provider": "workspace:*"
}, },
"devDependencies": { "devDependencies": {
"@blocksuite/blocks": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/blocks": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/store": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/store": "0.11.0-nightly-202312150424-f13b992",
"fake-indexeddb": "^5.0.0", "fake-indexeddb": "^5.0.0",
"vite": "^5.0.6", "vite": "^5.0.6",
"vite-plugin-dts": "3.6.0", "vite-plugin-dts": "3.6.0",
+1 -1
View File
@@ -24,7 +24,7 @@
"build": "vite build" "build": "vite build"
}, },
"devDependencies": { "devDependencies": {
"@blocksuite/store": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/store": "0.11.0-nightly-202312150424-f13b992",
"vite": "^5.0.6", "vite": "^5.0.6",
"vite-plugin-dts": "3.6.0", "vite-plugin-dts": "3.6.0",
"vitest": "0.34.6", "vitest": "0.34.6",
+5 -5
View File
@@ -71,12 +71,12 @@
"uuid": "^9.0.1" "uuid": "^9.0.1"
}, },
"devDependencies": { "devDependencies": {
"@blocksuite/blocks": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/blocks": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/global": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/global": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/icons": "2.1.36", "@blocksuite/icons": "2.1.36",
"@blocksuite/lit": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/lit": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/presets": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/presets": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/store": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/store": "0.11.0-nightly-202312150424-f13b992",
"@storybook/addon-actions": "^7.5.3", "@storybook/addon-actions": "^7.5.3",
"@storybook/addon-essentials": "^7.5.3", "@storybook/addon-essentials": "^7.5.3",
"@storybook/addon-interactions": "^7.5.3", "@storybook/addon-interactions": "^7.5.3",
@@ -0,0 +1,4 @@
import type { AffineEditorContainer } from '@blocksuite/presets';
import { atom } from 'jotai';
export const editorContainerAtom = atom<AffineEditorContainer | null>(null);
@@ -1,8 +1,9 @@
import { assertExists } from '@blocksuite/global/utils'; import { assertExists } from '@blocksuite/global/utils';
import { EditorContainer } from '@blocksuite/presets'; import { AffineEditorContainer } from '@blocksuite/presets';
import type { Page } from '@blocksuite/store'; import type { Page } from '@blocksuite/store';
import clsx from 'clsx'; import clsx from 'clsx';
import { use } from 'foxact/use'; import { use } from 'foxact/use';
import { useAtom } from 'jotai';
import type { CSSProperties, ReactElement } from 'react'; import type { CSSProperties, ReactElement } from 'react';
import { import {
memo, memo,
@@ -19,8 +20,11 @@ import {
blockSuiteEditorHeaderStyle, blockSuiteEditorHeaderStyle,
blockSuiteEditorStyle, blockSuiteEditorStyle,
} from './index.css'; } from './index.css';
import { editorContainerAtom } from './index.jotai';
import { editorSpecs } from './specs'; import { editorSpecs } from './specs';
export { editorContainerAtom } from './index.jotai';
interface BlockElement extends Element { interface BlockElement extends Element {
path: string[]; path: string[];
} }
@@ -31,7 +35,7 @@ export type EditorProps = {
defaultSelectedBlockId?: string; defaultSelectedBlockId?: string;
onModeChange?: (mode: 'page' | 'edgeless') => void; onModeChange?: (mode: 'page' | 'edgeless') => void;
// on Editor instance instantiated // on Editor instance instantiated
onLoadEditor?: (editor: EditorContainer) => () => void; onLoadEditor?: (editor: AffineEditorContainer) => () => void;
style?: CSSProperties; style?: CSSProperties;
className?: string; className?: string;
}; };
@@ -147,10 +151,11 @@ const BlockSuiteEditorImpl = ({
}: EditorProps): ReactElement => { }: EditorProps): ReactElement => {
usePageRoot(page); usePageRoot(page);
const [, setEditorContainer] = useAtom(editorContainerAtom);
assertExists(page, 'page should not be null'); assertExists(page, 'page should not be null');
const editorRef = useRef<EditorContainer | null>(null); const editorRef = useRef<AffineEditorContainer | null>(null);
if (editorRef.current === null) { if (editorRef.current === null) {
editorRef.current = new EditorContainer(); editorRef.current = new AffineEditorContainer();
editorRef.current.autofocus = true; editorRef.current.autofocus = true;
} }
const editor = editorRef.current; const editor = editorRef.current;
@@ -193,10 +198,11 @@ const BlockSuiteEditorImpl = ({
return; return;
} }
container.append(editor); container.append(editor);
setEditorContainer(editor);
return () => { return () => {
editor.remove(); editor.remove();
}; };
}, [editor]); }, [editor, setEditorContainer]);
const blockElement = useBlockElementById( const blockElement = useBlockElementById(
containerRef.current, containerRef.current,
+9 -3
View File
@@ -205,9 +205,15 @@ export const createConfiguration: (
'@blocksuite/store': blocksuiteBaseDir '@blocksuite/store': blocksuiteBaseDir
? join(blocksuiteBaseDir, 'packages', 'store', 'src') ? join(blocksuiteBaseDir, 'packages', 'store', 'src')
: join(workspaceRoot, 'node_modules', '@blocksuite', 'store', 'dist'), : join(workspaceRoot, 'node_modules', '@blocksuite', 'store', 'dist'),
'@blocksuite/virgo': blocksuiteBaseDir '@blocksuite/inline': blocksuiteBaseDir
? join(blocksuiteBaseDir, 'packages', 'virgo', 'src') ? join(blocksuiteBaseDir, 'packages', 'inline', 'src')
: join(workspaceRoot, 'node_modules', '@blocksuite', 'virgo', 'dist'), : join(
workspaceRoot,
'node_modules',
'@blocksuite',
'inline',
'dist'
),
}, },
}, },
@@ -6,7 +6,6 @@ const require = createRequire(import.meta.url);
const packageJson = require('../package.json'); const packageJson = require('../package.json');
const editorFlags: BlockSuiteFeatureFlags = { const editorFlags: BlockSuiteFeatureFlags = {
enable_transformer_clipboard: false,
enable_expand_database_block: false, enable_expand_database_block: false,
enable_bultin_ledits: false, enable_bultin_ledits: false,
}; };
+7 -7
View File
@@ -25,14 +25,14 @@
"@affine/i18n": "workspace:*", "@affine/i18n": "workspace:*",
"@affine/templates": "workspace:*", "@affine/templates": "workspace:*",
"@affine/workspace": "workspace:*", "@affine/workspace": "workspace:*",
"@blocksuite/block-std": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/block-std": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/blocks": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/blocks": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/global": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/global": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/icons": "2.1.36", "@blocksuite/icons": "2.1.36",
"@blocksuite/lit": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/inline": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/presets": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/lit": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/store": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/presets": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/virgo": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/store": "0.11.0-nightly-202312150424-f13b992",
"@dnd-kit/core": "^6.0.8", "@dnd-kit/core": "^6.0.8",
"@dnd-kit/sortable": "^8.0.0", "@dnd-kit/sortable": "^8.0.0",
"@emotion/cache": "^11.11.0", "@emotion/cache": "^11.11.0",
@@ -146,7 +146,7 @@ function createSetupImpl(rootStore: ReturnType<typeof createStore>) {
'@affine/component': import('@affine/component'), '@affine/component': import('@affine/component'),
'@blocksuite/icons': import('@blocksuite/icons'), '@blocksuite/icons': import('@blocksuite/icons'),
'@blocksuite/blocks': import('@blocksuite/blocks'), '@blocksuite/blocks': import('@blocksuite/blocks'),
'@blocksuite/virgo': import('@blocksuite/virgo'), '@blocksuite/inline': import('@blocksuite/inline'),
'@affine/sdk/entry': { '@affine/sdk/entry': {
rootStore, rootStore,
currentWorkspaceAtom: currentWorkspaceAtom, currentWorkspaceAtom: currentWorkspaceAtom,
@@ -541,7 +541,7 @@ function createSetupImpl(rootStore: ReturnType<typeof createStore>) {
} else if (part === 'formatBar') { } else if (part === 'formatBar') {
const register = (widget: AffineFormatBarWidget) => { const register = (widget: AffineFormatBarWidget) => {
const div = document.createElement('div'); const div = document.createElement('div');
const root = widget.root; const root = widget.host;
const cleanup = (callback as CallbackMap['formatBar'])( const cleanup = (callback as CallbackMap['formatBar'])(
div, div,
widget.page, widget.page,
@@ -1,6 +1,18 @@
import { registerTOCComponents } from '@blocksuite/blocks'; import { registerTOCPanelComponents } from '@blocksuite/presets';
import { registerFramePanelComponents } from '@blocksuite/presets';
registerTOCComponents(components => { registerTOCPanelComponents(components => {
for (const compName in components) {
if (window.customElements.get(compName)) continue;
window.customElements.define(
compName,
components[compName as keyof typeof components]
);
}
});
registerFramePanelComponents(components => {
for (const compName in components) { for (const compName in components) {
if (window.customElements.get(compName)) continue; if (window.customElements.get(compName)) continue;
@@ -12,7 +12,7 @@ export const PresentButton = () => {
const handlePresent = useCallback(() => { const handlePresent = useCallback(() => {
// TODO: use editor Atom // TODO: use editor Atom
const editorRoot = document.querySelector('block-suite-root'); const editorRoot = document.querySelector('editor-host');
if (!editorRoot || isPresent) return; if (!editorRoot || isPresent) return;
// TODO: use surfaceService subAtom // TODO: use surfaceService subAtom
@@ -28,7 +28,7 @@ export const PresentButton = () => {
if (!isPresent) return; if (!isPresent) return;
// TODO: use editor Atom // TODO: use editor Atom
const editorRoot = document.querySelector('block-suite-root'); const editorRoot = document.querySelector('editor-host');
if (!editorRoot) return; if (!editorRoot) return;
// TODO: use surfaceService subAtom // TODO: use surfaceService subAtom
@@ -2,7 +2,7 @@ import './page-detail-editor.css';
import { PageNotFoundError } from '@affine/env/constant'; import { PageNotFoundError } from '@affine/env/constant';
import { assertExists, DisposableGroup } from '@blocksuite/global/utils'; import { assertExists, DisposableGroup } from '@blocksuite/global/utils';
import type { EditorContainer } from '@blocksuite/presets'; import type { AffineEditorContainer } from '@blocksuite/presets';
import type { Page, Workspace } from '@blocksuite/store'; import type { Page, Workspace } from '@blocksuite/store';
import { useBlockSuitePageMeta } from '@toeverything/hooks/use-block-suite-page-meta'; import { useBlockSuitePageMeta } from '@toeverything/hooks/use-block-suite-page-meta';
import { useBlockSuiteWorkspacePage } from '@toeverything/hooks/use-block-suite-workspace-page'; import { useBlockSuiteWorkspacePage } from '@toeverything/hooks/use-block-suite-workspace-page';
@@ -23,10 +23,13 @@ import * as styles from './page-detail-editor.css';
declare global { declare global {
// eslint-disable-next-line no-var // eslint-disable-next-line no-var
var currentEditor: EditorContainer | undefined; var currentEditor: AffineEditorContainer | undefined;
} }
export type OnLoadEditor = (page: Page, editor: EditorContainer) => () => void; export type OnLoadEditor = (
page: Page,
editor: AffineEditorContainer
) => () => void;
export interface PageDetailEditorProps { export interface PageDetailEditorProps {
isPublic?: boolean; isPublic?: boolean;
@@ -93,11 +96,11 @@ const PageDetailEditorMain = memo(function PageDetailEditorMain({
[isPublic, switchToEdgelessMode, pageId, switchToPageMode] [isPublic, switchToEdgelessMode, pageId, switchToPageMode]
); );
const [, setEditor] = useState<EditorContainer>(); const [, setEditor] = useState<AffineEditorContainer>();
const blockId = useRouterHash(); const blockId = useRouterHash();
const onLoadEditor = useCallback( const onLoadEditor = useCallback(
(editor: EditorContainer) => { (editor: AffineEditorContainer) => {
// debug current detail editor // debug current detail editor
globalThis.currentEditor = editor; globalThis.currentEditor = editor;
setEditor(editor); setEditor(editor);
@@ -4,7 +4,11 @@ import {
} from '@affine/component/global-loading'; } from '@affine/component/global-loading';
import { pushNotificationAtom } from '@affine/component/notification-center'; import { pushNotificationAtom } from '@affine/component/notification-center';
import { useAFFiNEI18N } from '@affine/i18n/hooks'; import { useAFFiNEI18N } from '@affine/i18n/hooks';
import type { PageBlockModel } from '@blocksuite/blocks'; import {
HtmlTransformer,
MarkdownTransformer,
type PageBlockModel,
} from '@blocksuite/blocks';
import { ContentParser } from '@blocksuite/blocks/content-parser'; import { ContentParser } from '@blocksuite/blocks/content-parser';
import type { Page } from '@blocksuite/store'; import type { Page } from '@blocksuite/store';
import { useSetAtom } from 'jotai'; import { useSetAtom } from 'jotai';
@@ -12,12 +16,6 @@ import { nanoid } from 'nanoid';
import { useCallback } from 'react'; import { useCallback } from 'react';
type ExportType = 'pdf' | 'html' | 'png' | 'markdown'; type ExportType = 'pdf' | 'html' | 'png' | 'markdown';
const typeToContentParserMethodMap = {
pdf: 'exportPdf',
html: 'exportHtml',
png: 'exportPng',
markdown: 'exportMarkdown',
} satisfies Record<ExportType, keyof ContentParser>;
const contentParserWeakMap = new WeakMap<Page, ContentParser>(); const contentParserWeakMap = new WeakMap<Page, ContentParser>();
@@ -41,14 +39,26 @@ interface ExportHandlerOptions {
} }
async function exportHandler({ page, type }: ExportHandlerOptions) { async function exportHandler({ page, type }: ExportHandlerOptions) {
if (type === 'pdf' && environment.isDesktop && page.meta.mode === 'page') { const contentParser = getContentParser(page);
await window.apis?.export.savePDFFileAs( switch (type) {
(page.root as PageBlockModel).title.toString() case 'html':
); await HtmlTransformer.exportPage(page);
} else { break;
const contentParser = getContentParser(page); case 'markdown':
const method = typeToContentParserMethodMap[type]; await MarkdownTransformer.exportPage(page);
await contentParser[method](); break;
case 'pdf':
if (environment.isDesktop && page.meta.mode === 'page') {
await window.apis?.export.savePDFFileAs(
(page.root as PageBlockModel).title.toString()
);
} else {
await contentParser['exportPdf']();
}
break;
case 'png':
await contentParser['exportPng']();
break;
} }
} }
@@ -8,7 +8,7 @@ import { WorkspaceSubPath } from '@affine/env/workspace';
import { globalBlockSuiteSchema } from '@affine/workspace/manager'; import { globalBlockSuiteSchema } from '@affine/workspace/manager';
import { SyncEngineStep } from '@affine/workspace/providers'; import { SyncEngineStep } from '@affine/workspace/providers';
import { assertExists } from '@blocksuite/global/utils'; import { assertExists } from '@blocksuite/global/utils';
import type { EditorContainer } from '@blocksuite/presets'; import type { AffineEditorContainer } from '@blocksuite/presets';
import type { Page, Workspace } from '@blocksuite/store'; import type { Page, Workspace } from '@blocksuite/store';
import { useBlockSuitePageMeta } from '@toeverything/hooks/use-block-suite-page-meta'; import { useBlockSuitePageMeta } from '@toeverything/hooks/use-block-suite-page-meta';
import { import {
@@ -131,7 +131,7 @@ const DetailPageImpl = ({ page }: { page: Page }) => {
useRegisterBlocksuiteEditorCommands(currentPageId, mode); useRegisterBlocksuiteEditorCommands(currentPageId, mode);
const onLoad = useCallback( const onLoad = useCallback(
(page: Page, editor: EditorContainer) => { (page: Page, editor: AffineEditorContainer) => {
try { try {
// todo(joooye34): improve the following migration code // todo(joooye34): improve the following migration code
const surfaceBlock = page.getBlockByFlavour('affine:surface')[0]; const surfaceBlock = page.getBlockByFlavour('affine:surface')[0];
@@ -3,12 +3,16 @@ import { assertExists } from '@blocksuite/global/utils';
import { atom } from 'jotai'; import { atom } from 'jotai';
import { selectAtom } from 'jotai/utils'; import { selectAtom } from 'jotai/utils';
import { framePanelExtension } from './extensions/frame';
import { outlineExtension } from './extensions/outline'; import { outlineExtension } from './extensions/outline';
import type { EditorExtension, EditorExtensionName } from './types'; import type { EditorExtension, EditorExtensionName } from './types';
// the list of all possible extensions in affine. // the list of all possible extensions in affine.
// order matters (determines the order of the tabs) // order matters (determines the order of the tabs)
export const extensions: EditorExtension[] = [outlineExtension]; export const extensions: EditorExtension[] = [
outlineExtension,
framePanelExtension,
];
export interface EditorSidebarState { export interface EditorSidebarState {
isOpen: boolean; isOpen: boolean;
@@ -6,5 +6,5 @@ export const root = style({
flex: 1, flex: 1,
overflow: 'auto', overflow: 'auto',
width: '100%', width: '100%',
minWidth: '300px', minWidth: '320px',
}); });
@@ -1,41 +1,43 @@
import { TOCNotesPanel } from '@blocksuite/blocks'; import { editorContainerAtom } from '@affine/component/block-suite-editor';
import { assertExists } from '@blocksuite/global/utils'; import { assertExists } from '@blocksuite/global/utils';
import { FrameIcon } from '@blocksuite/icons'; import { FrameIcon } from '@blocksuite/icons';
import { FramePanel } from '@blocksuite/presets';
import { useAtom } from 'jotai';
import { useCallback, useRef } from 'react'; import { useCallback, useRef } from 'react';
import { useCurrentPage } from '../../../../../hooks/current/use-current-page';
import type { EditorExtension } from '../types'; import type { EditorExtension } from '../types';
import * as styles from './frame.css'; import * as styles from './frame.css';
// A wrapper for TOCNotesPanel // A wrapper for FramePanel
const EditorOutline = () => { const EditorFramePanel = () => {
const tocPanelRef = useRef<TOCNotesPanel | null>(null); const framePanelRef = useRef<FramePanel | null>(null);
const currentPage = useCurrentPage(); const [editorContainer] = useAtom(editorContainerAtom);
const onRefChange = useCallback((container: HTMLDivElement | null) => { const onRefChange = useCallback((container: HTMLDivElement | null) => {
if (container) { if (container) {
assertExists(tocPanelRef.current, 'toc panel should be initialized'); assertExists(framePanelRef.current, 'frame panel should be initialized');
container.append(tocPanelRef.current); container.append(framePanelRef.current);
} }
}, []); }, []);
if (!currentPage) { if (!editorContainer) {
return; return;
} }
if (!tocPanelRef.current) { if (!framePanelRef.current) {
tocPanelRef.current = new TOCNotesPanel(); framePanelRef.current = new FramePanel();
} }
if (currentPage !== tocPanelRef.current?.page) { if (editorContainer !== framePanelRef.current?.editor) {
(tocPanelRef.current as TOCNotesPanel).page = currentPage; (framePanelRef.current as FramePanel).editor = editorContainer;
(framePanelRef.current as FramePanel).fitPadding = [20, 20, 20, 20];
} }
return <div className={styles.root} ref={onRefChange} />; return <div className={styles.root} ref={onRefChange} />;
}; };
export const frameExtension: EditorExtension = { export const framePanelExtension: EditorExtension = {
name: 'frame', name: 'frame',
icon: <FrameIcon />, icon: <FrameIcon />,
Component: EditorOutline, Component: EditorFramePanel,
}; };
@@ -1,16 +1,17 @@
import { TOCNotesPanel } from '@blocksuite/blocks'; import { editorContainerAtom } from '@affine/component/block-suite-editor';
import { assertExists } from '@blocksuite/global/utils'; import { assertExists } from '@blocksuite/global/utils';
import { TocIcon } from '@blocksuite/icons'; import { TocIcon } from '@blocksuite/icons';
import { TOCPanel } from '@blocksuite/presets';
import { useAtom } from 'jotai';
import { useCallback, useRef } from 'react'; import { useCallback, useRef } from 'react';
import { useCurrentPage } from '../../../../../hooks/current/use-current-page';
import type { EditorExtension } from '../types'; import type { EditorExtension } from '../types';
import * as styles from './outline.css'; import * as styles from './outline.css';
// A wrapper for TOCNotesPanel // A wrapper for TOCNotesPanel
const EditorOutline = () => { const EditorOutline = () => {
const tocPanelRef = useRef<TOCNotesPanel | null>(null); const tocPanelRef = useRef<TOCPanel | null>(null);
const currentPage = useCurrentPage(); const [editorContainer] = useAtom(editorContainerAtom);
const onRefChange = useCallback((container: HTMLDivElement | null) => { const onRefChange = useCallback((container: HTMLDivElement | null) => {
if (container) { if (container) {
@@ -19,16 +20,17 @@ const EditorOutline = () => {
} }
}, []); }, []);
if (!currentPage) { if (!editorContainer) {
return; return;
} }
if (!tocPanelRef.current) { if (!tocPanelRef.current) {
tocPanelRef.current = new TOCNotesPanel(); tocPanelRef.current = new TOCPanel();
} }
if (currentPage !== tocPanelRef.current?.page) { if (editorContainer !== tocPanelRef.current?.editor) {
(tocPanelRef.current as TOCNotesPanel).page = currentPage; (tocPanelRef.current as TOCPanel).editor = editorContainer;
(tocPanelRef.current as TOCPanel).fitPadding = [20, 20, 20, 20];
} }
return <div className={styles.root} ref={onRefChange} />; return <div className={styles.root} ref={onRefChange} />;
+4 -4
View File
@@ -32,10 +32,10 @@
"@affine/sdk": "workspace:*", "@affine/sdk": "workspace:*",
"@affine/templates": "workspace:*", "@affine/templates": "workspace:*",
"@affine/vue-hello-world-plugin": "workspace:*", "@affine/vue-hello-world-plugin": "workspace:*",
"@blocksuite/blocks": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/blocks": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/lit": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/lit": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/presets": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/presets": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/store": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/store": "0.11.0-nightly-202312150424-f13b992",
"@electron-forge/cli": "^7.2.0", "@electron-forge/cli": "^7.2.0",
"@electron-forge/core": "^7.2.0", "@electron-forge/core": "^7.2.0",
"@electron-forge/core-utils": "^7.2.0", "@electron-forge/core-utils": "^7.2.0",
+6 -6
View File
@@ -20,12 +20,12 @@
"devDependencies": { "devDependencies": {
"@affine/debug": "workspace:*", "@affine/debug": "workspace:*",
"@affine/env": "workspace:*", "@affine/env": "workspace:*",
"@blocksuite/block-std": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/block-std": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/blocks": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/blocks": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/global": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/global": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/lit": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/lit": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/presets": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/presets": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/store": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/store": "0.11.0-nightly-202312150424-f13b992",
"@testing-library/react": "^14.0.0", "@testing-library/react": "^14.0.0",
"@toeverything/infra": "workspace:*", "@toeverything/infra": "workspace:*",
"@types/image-blob-reduce": "^4.1.3", "@types/image-blob-reduce": "^4.1.3",
@@ -191,7 +191,7 @@ const ImagePreviewModalImpl = (
const block = page.getBlockById(blockId) as ImageBlockModel; const block = page.getBlockById(blockId) as ImageBlockModel;
assertExists(block); assertExists(block);
const store = block.page.blob; const store = block.page.blob;
const url = store?.get(block.sourceId); const url = store?.get(block.sourceId as string);
const img = await url; const img = await url;
if (!img) { if (!img) {
return; return;
@@ -260,7 +260,7 @@ const ImagePreviewModalImpl = (
assertExists(page); assertExists(page);
const block = page.getBlockById(blockId) as ImageBlockModel; const block = page.getBlockById(blockId) as ImageBlockModel;
assertExists(block); assertExists(block);
return props.workspace.blob.get(block?.sourceId); return props.workspace.blob.get(block?.sourceId as string);
}, },
suspense: true, suspense: true,
} }
-5
View File
@@ -1,5 +0,0 @@
import { atom } from 'jotai';
export const blocksuiteRootAtom = atom(() =>
document.querySelector('block-suite-root')
);
+1 -1
View File
@@ -9,4 +9,4 @@ yarn up "@blocksuite/presets@${LATEST_NIGHTLY}"
yarn up "@blocksuite/global@${LATEST_NIGHTLY}" yarn up "@blocksuite/global@${LATEST_NIGHTLY}"
yarn up "@blocksuite/block-std@${LATEST_NIGHTLY}" yarn up "@blocksuite/block-std@${LATEST_NIGHTLY}"
yarn up "@blocksuite/lit@${LATEST_NIGHTLY}" yarn up "@blocksuite/lit@${LATEST_NIGHTLY}"
yarn up "@blocksuite/virgo@${LATEST_NIGHTLY}" yarn up "@blocksuite/inline@${LATEST_NIGHTLY}"
+1 -1
View File
@@ -5,7 +5,7 @@ vi.mock('lottie-web', () => ({
})); }));
vi.mock('@blocksuite/presets', () => ({ vi.mock('@blocksuite/presets', () => ({
EditorContainer: vi.fn(), AffineEditorContainer: vi.fn(),
})); }));
if (typeof window !== 'undefined' && HTMLCanvasElement) { if (typeof window !== 'undefined' && HTMLCanvasElement) {
@@ -9,10 +9,10 @@
"devDependencies": { "devDependencies": {
"@affine-test/fixtures": "workspace:*", "@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*", "@affine-test/kit": "workspace:*",
"@blocksuite/block-std": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/block-std": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/blocks": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/blocks": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/global": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/global": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/store": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/store": "0.11.0-nightly-202312150424-f13b992",
"@playwright/test": "^1.39.0", "@playwright/test": "^1.39.0",
"express": "^4.18.2", "express": "^4.18.2",
"http-proxy-middleware": "^3.0.0-beta.1", "http-proxy-middleware": "^3.0.0-beta.1",
@@ -9,10 +9,10 @@
"devDependencies": { "devDependencies": {
"@affine-test/fixtures": "workspace:*", "@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*", "@affine-test/kit": "workspace:*",
"@blocksuite/block-std": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/block-std": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/blocks": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/blocks": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/global": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/global": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/store": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/store": "0.11.0-nightly-202312150424-f13b992",
"@playwright/test": "^1.39.0", "@playwright/test": "^1.39.0",
"express": "^4.18.2", "express": "^4.18.2",
"http-proxy-middleware": "^3.0.0-beta.1", "http-proxy-middleware": "^3.0.0-beta.1",
@@ -9,10 +9,10 @@
"devDependencies": { "devDependencies": {
"@affine-test/fixtures": "workspace:*", "@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*", "@affine-test/kit": "workspace:*",
"@blocksuite/block-std": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/block-std": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/blocks": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/blocks": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/global": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/global": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/store": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/store": "0.11.0-nightly-202312150424-f13b992",
"@playwright/test": "^1.39.0", "@playwright/test": "^1.39.0",
"express": "^4.18.2", "express": "^4.18.2",
"http-proxy-middleware": "^3.0.0-beta.1", "http-proxy-middleware": "^3.0.0-beta.1",
+4 -4
View File
@@ -9,10 +9,10 @@
"devDependencies": { "devDependencies": {
"@affine-test/fixtures": "workspace:*", "@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*", "@affine-test/kit": "workspace:*",
"@blocksuite/block-std": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/block-std": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/blocks": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/blocks": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/global": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/global": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/store": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/store": "0.11.0-nightly-202312150424-f13b992",
"@playwright/test": "^1.39.0", "@playwright/test": "^1.39.0",
"express": "^4.18.2", "express": "^4.18.2",
"http-proxy-middleware": "^3.0.0-beta.1", "http-proxy-middleware": "^3.0.0-beta.1",
+2 -2
View File
@@ -400,7 +400,7 @@ test('can use cmdk to search page content and scroll to it, then the block will
await page.keyboard.press('Enter', { delay: 10 }); await page.keyboard.press('Enter', { delay: 10 });
} }
await page.keyboard.insertText('123456'); await page.keyboard.insertText('123456');
const textBlock = page.locator('editor-container').getByText('123456'); const textBlock = page.locator('affine-editor-container').getByText('123456');
await expect(textBlock).toBeVisible(); await expect(textBlock).toBeVisible();
await clickSideBarAllPageButton(page); await clickSideBarAllPageButton(page);
await openQuickSearchByShortcut(page); await openQuickSearchByShortcut(page);
@@ -414,7 +414,7 @@ test('can use cmdk to search page content and scroll to it, then the block will
await waitForScrollToFinish(page); await waitForScrollToFinish(page);
const isVisitable = await checkElementIsInView( const isVisitable = await checkElementIsInView(
page, page,
page.locator('editor-container').getByText('123456') page.locator('affine-editor-container').getByText('123456')
); );
expect(isVisitable).toBe(true); expect(isVisitable).toBe(true);
const selectionElement = page.locator('affine-block-selection'); const selectionElement = page.locator('affine-block-selection');
+4 -4
View File
@@ -7,10 +7,10 @@
"devDependencies": { "devDependencies": {
"@affine-test/fixtures": "workspace:*", "@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*", "@affine-test/kit": "workspace:*",
"@blocksuite/block-std": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/block-std": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/blocks": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/blocks": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/global": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/global": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/store": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/store": "0.11.0-nightly-202312150424-f13b992",
"@playwright/test": "^1.39.0" "@playwright/test": "^1.39.0"
}, },
"version": "0.10.3-canary.2" "version": "0.10.3-canary.2"
+7 -7
View File
@@ -31,14 +31,14 @@
"wait-on": "^7.2.0" "wait-on": "^7.2.0"
}, },
"devDependencies": { "devDependencies": {
"@blocksuite/block-std": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/block-std": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/blocks": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/blocks": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/global": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/global": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/icons": "2.1.36", "@blocksuite/icons": "2.1.36",
"@blocksuite/lit": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/inline": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/presets": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/lit": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/store": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/presets": "0.11.0-nightly-202312150424-f13b992",
"@blocksuite/virgo": "0.11.0-nightly-202312120309-2b3d2ba", "@blocksuite/store": "0.11.0-nightly-202312150424-f13b992",
"@dnd-kit/sortable": "^8.0.0", "@dnd-kit/sortable": "^8.0.0",
"@tomfreudenberg/next-auth-mock": "^0.5.6", "@tomfreudenberg/next-auth-mock": "^0.5.6",
"chromatic": "^9.1.0", "chromatic": "^9.1.0",
+120 -119
View File
@@ -25,10 +25,10 @@ __metadata:
dependencies: dependencies:
"@affine-test/fixtures": "workspace:*" "@affine-test/fixtures": "workspace:*"
"@affine-test/kit": "workspace:*" "@affine-test/kit": "workspace:*"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/block-std": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/blocks": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/global": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/global": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/store": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/store": "npm:0.11.0-nightly-202312150424-f13b992"
"@playwright/test": "npm:^1.39.0" "@playwright/test": "npm:^1.39.0"
express: "npm:^4.18.2" express: "npm:^4.18.2"
http-proxy-middleware: "npm:^3.0.0-beta.1" http-proxy-middleware: "npm:^3.0.0-beta.1"
@@ -42,10 +42,10 @@ __metadata:
dependencies: dependencies:
"@affine-test/fixtures": "workspace:*" "@affine-test/fixtures": "workspace:*"
"@affine-test/kit": "workspace:*" "@affine-test/kit": "workspace:*"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/block-std": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/blocks": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/global": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/global": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/store": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/store": "npm:0.11.0-nightly-202312150424-f13b992"
"@playwright/test": "npm:^1.39.0" "@playwright/test": "npm:^1.39.0"
express: "npm:^4.18.2" express: "npm:^4.18.2"
http-proxy-middleware: "npm:^3.0.0-beta.1" http-proxy-middleware: "npm:^3.0.0-beta.1"
@@ -59,10 +59,10 @@ __metadata:
dependencies: dependencies:
"@affine-test/fixtures": "workspace:*" "@affine-test/fixtures": "workspace:*"
"@affine-test/kit": "workspace:*" "@affine-test/kit": "workspace:*"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/block-std": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/blocks": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/global": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/global": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/store": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/store": "npm:0.11.0-nightly-202312150424-f13b992"
"@playwright/test": "npm:^1.39.0" "@playwright/test": "npm:^1.39.0"
express: "npm:^4.18.2" express: "npm:^4.18.2"
http-proxy-middleware: "npm:^3.0.0-beta.1" http-proxy-middleware: "npm:^3.0.0-beta.1"
@@ -76,10 +76,10 @@ __metadata:
dependencies: dependencies:
"@affine-test/fixtures": "workspace:*" "@affine-test/fixtures": "workspace:*"
"@affine-test/kit": "workspace:*" "@affine-test/kit": "workspace:*"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/block-std": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/blocks": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/global": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/global": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/store": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/store": "npm:0.11.0-nightly-202312150424-f13b992"
"@playwright/test": "npm:^1.39.0" "@playwright/test": "npm:^1.39.0"
express: "npm:^4.18.2" express: "npm:^4.18.2"
http-proxy-middleware: "npm:^3.0.0-beta.1" http-proxy-middleware: "npm:^3.0.0-beta.1"
@@ -138,10 +138,10 @@ __metadata:
dependencies: dependencies:
"@affine-test/fixtures": "workspace:*" "@affine-test/fixtures": "workspace:*"
"@affine-test/kit": "workspace:*" "@affine-test/kit": "workspace:*"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/block-std": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/blocks": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/global": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/global": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/store": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/store": "npm:0.11.0-nightly-202312150424-f13b992"
"@playwright/test": "npm:^1.39.0" "@playwright/test": "npm:^1.39.0"
languageName: unknown languageName: unknown
linkType: soft linkType: soft
@@ -222,12 +222,12 @@ __metadata:
"@affine/graphql": "workspace:*" "@affine/graphql": "workspace:*"
"@affine/i18n": "workspace:*" "@affine/i18n": "workspace:*"
"@affine/workspace": "workspace:*" "@affine/workspace": "workspace:*"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/blocks": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/global": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/global": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/icons": "npm:2.1.36" "@blocksuite/icons": "npm:2.1.36"
"@blocksuite/lit": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/lit": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/presets": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/presets": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/store": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/store": "npm:0.11.0-nightly-202312150424-f13b992"
"@dnd-kit/core": "npm:^6.0.8" "@dnd-kit/core": "npm:^6.0.8"
"@dnd-kit/modifiers": "npm:^7.0.0" "@dnd-kit/modifiers": "npm:^7.0.0"
"@dnd-kit/sortable": "npm:^8.0.0" "@dnd-kit/sortable": "npm:^8.0.0"
@@ -350,14 +350,14 @@ __metadata:
"@affine/templates": "workspace:*" "@affine/templates": "workspace:*"
"@affine/workspace": "workspace:*" "@affine/workspace": "workspace:*"
"@aws-sdk/client-s3": "npm:3.433.0" "@aws-sdk/client-s3": "npm:3.433.0"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/block-std": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/blocks": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/global": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/global": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/icons": "npm:2.1.36" "@blocksuite/icons": "npm:2.1.36"
"@blocksuite/lit": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/inline": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/presets": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/lit": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/store": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/presets": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/virgo": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/store": "npm:0.11.0-nightly-202312150424-f13b992"
"@dnd-kit/core": "npm:^6.0.8" "@dnd-kit/core": "npm:^6.0.8"
"@dnd-kit/sortable": "npm:^8.0.0" "@dnd-kit/sortable": "npm:^8.0.0"
"@emotion/cache": "npm:^11.11.0" "@emotion/cache": "npm:^11.11.0"
@@ -463,10 +463,10 @@ __metadata:
"@affine/sdk": "workspace:*" "@affine/sdk": "workspace:*"
"@affine/templates": "workspace:*" "@affine/templates": "workspace:*"
"@affine/vue-hello-world-plugin": "workspace:*" "@affine/vue-hello-world-plugin": "workspace:*"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/blocks": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/lit": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/lit": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/presets": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/presets": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/store": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/store": "npm:0.11.0-nightly-202312150424-f13b992"
"@electron-forge/cli": "npm:^7.2.0" "@electron-forge/cli": "npm:^7.2.0"
"@electron-forge/core": "npm:^7.2.0" "@electron-forge/core": "npm:^7.2.0"
"@electron-forge/core-utils": "npm:^7.2.0" "@electron-forge/core-utils": "npm:^7.2.0"
@@ -515,8 +515,8 @@ __metadata:
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@affine/env@workspace:packages/common/env" resolution: "@affine/env@workspace:packages/common/env"
dependencies: dependencies:
"@blocksuite/global": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/global": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/store": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/store": "npm:0.11.0-nightly-202312150424-f13b992"
lit: "npm:^3.0.2" lit: "npm:^3.0.2"
react: "npm:18.2.0" react: "npm:18.2.0"
react-dom: "npm:18.2.0" react-dom: "npm:18.2.0"
@@ -707,11 +707,11 @@ __metadata:
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@affine/sdk@workspace:packages/common/sdk" resolution: "@affine/sdk@workspace:packages/common/sdk"
dependencies: dependencies:
"@blocksuite/block-std": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/block-std": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/blocks": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/global": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/global": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/presets": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/presets": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/store": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/store": "npm:0.11.0-nightly-202312150424-f13b992"
jotai: "npm:^2.5.1" jotai: "npm:^2.5.1"
vite: "npm:^5.0.6" vite: "npm:^5.0.6"
vite-plugin-dts: "npm:3.6.0" vite-plugin-dts: "npm:3.6.0"
@@ -836,14 +836,14 @@ __metadata:
dependencies: dependencies:
"@affine/component": "workspace:*" "@affine/component": "workspace:*"
"@affine/i18n": "workspace:*" "@affine/i18n": "workspace:*"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/block-std": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/blocks": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/global": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/global": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/icons": "npm:2.1.36" "@blocksuite/icons": "npm:2.1.36"
"@blocksuite/lit": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/inline": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/presets": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/lit": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/store": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/presets": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/virgo": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/store": "npm:0.11.0-nightly-202312150424-f13b992"
"@dnd-kit/sortable": "npm:^8.0.0" "@dnd-kit/sortable": "npm:^8.0.0"
"@storybook/addon-actions": "npm:^7.5.3" "@storybook/addon-actions": "npm:^7.5.3"
"@storybook/addon-essentials": "npm:^7.5.3" "@storybook/addon-essentials": "npm:^7.5.3"
@@ -4230,29 +4230,29 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@blocksuite/block-std@npm:0.11.0-nightly-202312120309-2b3d2ba": "@blocksuite/block-std@npm:0.11.0-nightly-202312150424-f13b992":
version: 0.11.0-nightly-202312120309-2b3d2ba version: 0.11.0-nightly-202312150424-f13b992
resolution: "@blocksuite/block-std@npm:0.11.0-nightly-202312120309-2b3d2ba" resolution: "@blocksuite/block-std@npm:0.11.0-nightly-202312150424-f13b992"
dependencies: dependencies:
"@blocksuite/global": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/global": "npm:0.11.0-nightly-202312150424-f13b992"
lz-string: "npm:^1.5.0" lz-string: "npm:^1.5.0"
w3c-keyname: "npm:^2.2.8" w3c-keyname: "npm:^2.2.8"
zod: "npm:^3.22.4" zod: "npm:^3.22.4"
peerDependencies: peerDependencies:
"@blocksuite/store": 0.11.0-nightly-202312120309-2b3d2ba "@blocksuite/store": 0.11.0-nightly-202312150424-f13b992
checksum: 0bfdfb84e3d39cdc28a36e66c5f426b7459880d1c29b3abb605ffd3d8ca21fa62ef1faf3634a5403425303f15f3b3b8df0ab7e03307bdb6ce29da62db358d60e checksum: 405b49a9eb6eccc782a124af99178c085d3119c36ee0d20881cac29dc50cca96512a362cd6eeb0039e203ef271540057c747ef86ff9b4d75eabc56d1653241a5
languageName: node languageName: node
linkType: hard linkType: hard
"@blocksuite/blocks@npm:0.11.0-nightly-202312120309-2b3d2ba": "@blocksuite/blocks@npm:0.11.0-nightly-202312150424-f13b992":
version: 0.11.0-nightly-202312120309-2b3d2ba version: 0.11.0-nightly-202312150424-f13b992
resolution: "@blocksuite/blocks@npm:0.11.0-nightly-202312120309-2b3d2ba" resolution: "@blocksuite/blocks@npm:0.11.0-nightly-202312150424-f13b992"
dependencies: dependencies:
"@blocksuite/block-std": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/block-std": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/global": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/global": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/lit": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/inline": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/store": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/lit": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/virgo": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/store": "npm:0.11.0-nightly-202312150424-f13b992"
"@floating-ui/dom": "npm:^1.5.3" "@floating-ui/dom": "npm:^1.5.3"
"@toeverything/theme": "npm:^0.7.27" "@toeverything/theme": "npm:^0.7.27"
"@types/hast": "npm:^3.0.3" "@types/hast": "npm:^3.0.3"
@@ -4286,16 +4286,16 @@ __metadata:
unified: "npm:^11.0.4" unified: "npm:^11.0.4"
webfontloader: "npm:^1.6.28" webfontloader: "npm:^1.6.28"
zod: "npm:^3.22.4" zod: "npm:^3.22.4"
checksum: a6f0359486e305b80e466be3f23edde2559cf82cee35075001ba55160d243ab82c217cda89ad5ee7d3594b4eee943f48bdd489c8cb28365ef3d40db97bda0427 checksum: 0b775648a9a3151b0a14a7483e5080ea319aeede19112e6be738696da1cb578f22362fe9bc824e2310f12f3a4ea8e737db4073a0573c3503c841e22d606ea709
languageName: node languageName: node
linkType: hard linkType: hard
"@blocksuite/global@npm:0.11.0-nightly-202312120309-2b3d2ba": "@blocksuite/global@npm:0.11.0-nightly-202312150424-f13b992":
version: 0.11.0-nightly-202312120309-2b3d2ba version: 0.11.0-nightly-202312150424-f13b992
resolution: "@blocksuite/global@npm:0.11.0-nightly-202312120309-2b3d2ba" resolution: "@blocksuite/global@npm:0.11.0-nightly-202312150424-f13b992"
dependencies: dependencies:
zod: "npm:^3.22.4" zod: "npm:^3.22.4"
checksum: c9d000d63e97776866045961affeae98c5f80f6336a643a5ae1d26b4e7c3de866482b97f545a86c9043d0c02653a50de7d4a1ef43cc0a60e0af2f5cc928f83be checksum: 60a9e65f9bdd837e3dc9f342c1ff145565baca0bcb03abf43d1cb051a5697e2d439f3046ede79d53e2795fbd4cf8a4734f1b2bedac0357c40d873368aab5c83c
languageName: node languageName: node
linkType: hard linkType: hard
@@ -4309,41 +4309,55 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@blocksuite/lit@npm:0.11.0-nightly-202312120309-2b3d2ba": "@blocksuite/inline@npm:0.11.0-nightly-202312150424-f13b992":
version: 0.11.0-nightly-202312120309-2b3d2ba version: 0.11.0-nightly-202312150424-f13b992
resolution: "@blocksuite/lit@npm:0.11.0-nightly-202312120309-2b3d2ba" resolution: "@blocksuite/inline@npm:0.11.0-nightly-202312150424-f13b992"
dependencies: dependencies:
"@blocksuite/global": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/global": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/virgo": "npm:0.11.0-nightly-202312120309-2b3d2ba" zod: "npm:^3.22.4"
lit: "npm:^3.1.0"
peerDependencies: peerDependencies:
"@blocksuite/block-std": 0.11.0-nightly-202312120309-2b3d2ba lit: ^3.0.2
"@blocksuite/store": 0.11.0-nightly-202312120309-2b3d2ba yjs: ^13
checksum: d41f336b485c1fe84b0879dfada2d0e92eb31ea94ecf5bf192e2253b7693103a52d648b91261285c9dc19eff68d964b4c62d9ddbcab688f019413937a1609256 checksum: 2eca53507377adca1aae286438ea02de05510c645eceb181649fe0ad7385239c09089860a0beb45c6fb4a6409a84492a7546daa13659a678624e29d19a15e140
languageName: node languageName: node
linkType: hard linkType: hard
"@blocksuite/presets@npm:0.11.0-nightly-202312120309-2b3d2ba": "@blocksuite/lit@npm:0.11.0-nightly-202312150424-f13b992":
version: 0.11.0-nightly-202312120309-2b3d2ba version: 0.11.0-nightly-202312150424-f13b992
resolution: "@blocksuite/presets@npm:0.11.0-nightly-202312120309-2b3d2ba" resolution: "@blocksuite/lit@npm:0.11.0-nightly-202312150424-f13b992"
dependencies: dependencies:
"@blocksuite/blocks": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/global": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/global": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/inline": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/lit": "npm:0.11.0-nightly-202312120309-2b3d2ba" lit: "npm:^3.1.0"
"@blocksuite/store": "npm:0.11.0-nightly-202312120309-2b3d2ba" peerDependencies:
"@blocksuite/block-std": 0.11.0-nightly-202312150424-f13b992
"@blocksuite/store": 0.11.0-nightly-202312150424-f13b992
checksum: a5ef79d2d0e130e83b8922f8fe8b42cb70df6962f8cd4a03f03c6eb81397b499df9f26a4146f5ebe5c6b8001aceb2718bb2924379a323ad1a9db100c893894ea
languageName: node
linkType: hard
"@blocksuite/presets@npm:0.11.0-nightly-202312150424-f13b992":
version: 0.11.0-nightly-202312150424-f13b992
resolution: "@blocksuite/presets@npm:0.11.0-nightly-202312150424-f13b992"
dependencies:
"@blocksuite/block-std": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/global": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/lit": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/store": "npm:0.11.0-nightly-202312150424-f13b992"
"@toeverything/theme": "npm:^0.7.27" "@toeverything/theme": "npm:^0.7.27"
lit: "npm:^3.1.0" lit: "npm:^3.1.0"
openai: "npm:^4.20.1" openai: "npm:^4.20.1"
checksum: b7b17f5193f9ad28c5c2c5e1cf9c261f20dea766f31338317716ec3bf4d9e126e1875a86076a121b01cfd0187abf63b8e5a1321afaf861721ed18ed3365af1b8 checksum: f7e9a9df282d653a1a976cd0b686a8b4d5eb34533c572e7d4f9c4ae4c2d1957c757330952c17ba5621d79c4f57e019ec0c753537ae2710a1f5a9b1e393965fef
languageName: node languageName: node
linkType: hard linkType: hard
"@blocksuite/store@npm:0.11.0-nightly-202312120309-2b3d2ba": "@blocksuite/store@npm:0.11.0-nightly-202312150424-f13b992":
version: 0.11.0-nightly-202312120309-2b3d2ba version: 0.11.0-nightly-202312150424-f13b992
resolution: "@blocksuite/store@npm:0.11.0-nightly-202312120309-2b3d2ba" resolution: "@blocksuite/store@npm:0.11.0-nightly-202312150424-f13b992"
dependencies: dependencies:
"@blocksuite/global": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/global": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/virgo": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/inline": "npm:0.11.0-nightly-202312150424-f13b992"
"@types/flexsearch": "npm:^0.7.3" "@types/flexsearch": "npm:^0.7.3"
flexsearch: "npm:0.7.21" flexsearch: "npm:0.7.21"
idb-keyval: "npm:^6.2.1" idb-keyval: "npm:^6.2.1"
@@ -4356,20 +4370,7 @@ __metadata:
peerDependencies: peerDependencies:
async-call-rpc: ^6 async-call-rpc: ^6
yjs: ^13 yjs: ^13
checksum: 4c2bd4db3ffa4a0eee3eba2895817ee03fade556bd78f3dac13baf3cd20f1a2d65c3d7066204559b6f7b2371c66eb254da565bbcb9f55c2cd837d16e1d5ab0f0 checksum: 051f13964001676af77157b85ca411024979ed1df28453cf61d8490b9b4e4e2c189bf3204a56572dfb6565e18a48b8657d0c726c8a83976062d8cac819716401
languageName: node
linkType: hard
"@blocksuite/virgo@npm:0.11.0-nightly-202312120309-2b3d2ba":
version: 0.11.0-nightly-202312120309-2b3d2ba
resolution: "@blocksuite/virgo@npm:0.11.0-nightly-202312120309-2b3d2ba"
dependencies:
"@blocksuite/global": "npm:0.11.0-nightly-202312120309-2b3d2ba"
zod: "npm:^3.22.4"
peerDependencies:
lit: ^3.0.2
yjs: ^13
checksum: 004f43a72f6bec6d8d4049337dd8307031da0f4d0a745bdecc7b9dd7fe6dc26c9b3209bcbb414cd5207bb7d1d932abf03d2c9d9a9c2f8533d2a51c8f3c6c7375
languageName: node languageName: node
linkType: hard linkType: hard
@@ -14108,12 +14109,12 @@ __metadata:
dependencies: dependencies:
"@affine/debug": "workspace:*" "@affine/debug": "workspace:*"
"@affine/env": "workspace:*" "@affine/env": "workspace:*"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/block-std": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/blocks": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/global": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/global": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/lit": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/lit": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/presets": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/presets": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/store": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/store": "npm:0.11.0-nightly-202312150424-f13b992"
"@testing-library/react": "npm:^14.0.0" "@testing-library/react": "npm:^14.0.0"
"@toeverything/infra": "workspace:*" "@toeverything/infra": "workspace:*"
"@types/image-blob-reduce": "npm:^4.1.3" "@types/image-blob-reduce": "npm:^4.1.3"
@@ -14165,11 +14166,11 @@ __metadata:
"@affine/env": "workspace:*" "@affine/env": "workspace:*"
"@affine/sdk": "workspace:*" "@affine/sdk": "workspace:*"
"@affine/templates": "workspace:*" "@affine/templates": "workspace:*"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/blocks": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/global": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/global": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/lit": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/lit": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/presets": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/presets": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/store": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/store": "npm:0.11.0-nightly-202312150424-f13b992"
"@testing-library/react": "npm:^14.0.0" "@testing-library/react": "npm:^14.0.0"
async-call-rpc: "npm:^6.3.1" async-call-rpc: "npm:^6.3.1"
electron: "link:../../frontend/electron/node_modules/electron" electron: "link:../../frontend/electron/node_modules/electron"
@@ -14218,8 +14219,8 @@ __metadata:
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@toeverything/y-indexeddb@workspace:packages/common/y-indexeddb" resolution: "@toeverything/y-indexeddb@workspace:packages/common/y-indexeddb"
dependencies: dependencies:
"@blocksuite/blocks": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/blocks": "npm:0.11.0-nightly-202312150424-f13b992"
"@blocksuite/store": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/store": "npm:0.11.0-nightly-202312150424-f13b992"
fake-indexeddb: "npm:^5.0.0" fake-indexeddb: "npm:^5.0.0"
idb: "npm:^8.0.0" idb: "npm:^8.0.0"
nanoid: "npm:^5.0.3" nanoid: "npm:^5.0.3"
@@ -37474,7 +37475,7 @@ __metadata:
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "y-provider@workspace:packages/common/y-provider" resolution: "y-provider@workspace:packages/common/y-provider"
dependencies: dependencies:
"@blocksuite/store": "npm:0.11.0-nightly-202312120309-2b3d2ba" "@blocksuite/store": "npm:0.11.0-nightly-202312150424-f13b992"
vite: "npm:^5.0.6" vite: "npm:^5.0.6"
vite-plugin-dts: "npm:3.6.0" vite-plugin-dts: "npm:3.6.0"
vitest: "npm:0.34.6" vitest: "npm:0.34.6"