feat: bump blocksuite (#5624)

This commit is contained in:
regischen
2024-01-18 17:26:31 +08:00
committed by GitHub
parent c3fda80599
commit 8b1b5b2e93
17 changed files with 168 additions and 168 deletions

View File

@@ -3,8 +3,8 @@
"private": true,
"type": "module",
"devDependencies": {
"@blocksuite/global": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/store": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/global": "0.12.0-nightly-202401180838-f0c45fd",
"@blocksuite/store": "0.12.0-nightly-202401180838-f0c45fd",
"react": "18.2.0",
"react-dom": "18.2.0",
"vitest": "1.1.3"

View File

@@ -13,9 +13,9 @@
"@affine/debug": "workspace:*",
"@affine/env": "workspace:*",
"@affine/templates": "workspace:*",
"@blocksuite/blocks": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/global": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/store": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/blocks": "0.12.0-nightly-202401180838-f0c45fd",
"@blocksuite/global": "0.12.0-nightly-202401180838-f0c45fd",
"@blocksuite/store": "0.12.0-nightly-202401180838-f0c45fd",
"jotai": "^2.5.1",
"jotai-effect": "^0.2.3",
"nanoid": "^5.0.3",
@@ -26,8 +26,8 @@
"devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine/templates": "workspace:*",
"@blocksuite/lit": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/presets": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/lit": "0.12.0-nightly-202401180838-f0c45fd",
"@blocksuite/presets": "0.12.0-nightly-202401180838-f0c45fd",
"async-call-rpc": "^6.3.1",
"react": "^18.2.0",
"rxjs": "^7.8.1",

View File

@@ -32,14 +32,14 @@
}
},
"dependencies": {
"@blocksuite/global": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/global": "0.12.0-nightly-202401180838-f0c45fd",
"idb": "^8.0.0",
"nanoid": "^5.0.3",
"y-provider": "workspace:*"
},
"devDependencies": {
"@blocksuite/blocks": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/store": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/blocks": "0.12.0-nightly-202401180838-f0c45fd",
"@blocksuite/store": "0.12.0-nightly-202401180838-f0c45fd",
"fake-indexeddb": "^5.0.0",
"vite": "^5.0.6",
"vite-plugin-dts": "3.7.0",

View File

@@ -24,7 +24,7 @@
"build": "vite build"
},
"devDependencies": {
"@blocksuite/store": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/store": "0.12.0-nightly-202401180838-f0c45fd",
"vite": "^5.0.6",
"vite-plugin-dts": "3.7.0",
"vitest": "1.1.3",

View File

@@ -72,12 +72,12 @@
"uuid": "^9.0.1"
},
"devDependencies": {
"@blocksuite/blocks": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/global": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/blocks": "0.12.0-nightly-202401180838-f0c45fd",
"@blocksuite/global": "0.12.0-nightly-202401180838-f0c45fd",
"@blocksuite/icons": "2.1.41",
"@blocksuite/lit": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/presets": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/store": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/lit": "0.12.0-nightly-202401180838-f0c45fd",
"@blocksuite/presets": "0.12.0-nightly-202401180838-f0c45fd",
"@blocksuite/store": "0.12.0-nightly-202401180838-f0c45fd",
"@storybook/addon-actions": "^7.5.3",
"@storybook/addon-essentials": "^7.5.3",
"@storybook/addon-interactions": "^7.5.3",

View File

@@ -26,14 +26,14 @@
"@affine/templates": "workspace:*",
"@affine/workspace": "workspace:*",
"@affine/workspace-impl": "workspace:*",
"@blocksuite/block-std": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/blocks": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/global": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/block-std": "0.12.0-nightly-202401180838-f0c45fd",
"@blocksuite/blocks": "0.12.0-nightly-202401180838-f0c45fd",
"@blocksuite/global": "0.12.0-nightly-202401180838-f0c45fd",
"@blocksuite/icons": "2.1.41",
"@blocksuite/inline": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/lit": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/presets": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/store": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/inline": "0.12.0-nightly-202401180838-f0c45fd",
"@blocksuite/lit": "0.12.0-nightly-202401180838-f0c45fd",
"@blocksuite/presets": "0.12.0-nightly-202401180838-f0c45fd",
"@blocksuite/store": "0.12.0-nightly-202401180838-f0c45fd",
"@dnd-kit/core": "^6.0.8",
"@dnd-kit/sortable": "^8.0.0",
"@emotion/cache": "^11.11.0",

View File

@@ -1,9 +1,9 @@
import {
registerFramePanelComponents,
registerTOCPanelComponents,
registerOutlinePanelComponents,
} from '@blocksuite/presets';
registerTOCPanelComponents(components => {
registerOutlinePanelComponents(components => {
for (const compName in components) {
if (window.customElements.get(compName)) continue;

View File

@@ -1,7 +1,7 @@
import { useActiveBlocksuiteEditor } from '@affine/core/hooks/use-block-suite-editor';
import { assertExists } from '@blocksuite/global/utils';
import { TocIcon } from '@blocksuite/icons';
import { TOCPanel } from '@blocksuite/presets';
import { OutlinePanel } from '@blocksuite/presets';
import { useCallback, useRef } from 'react';
import type { EditorExtension } from '../types';
@@ -9,13 +9,13 @@ import * as styles from './outline.css';
// A wrapper for TOCNotesPanel
const EditorOutline = () => {
const tocPanelRef = useRef<TOCPanel | null>(null);
const outlinePanelRef = useRef<OutlinePanel | null>(null);
const [editor] = useActiveBlocksuiteEditor();
const onRefChange = useCallback((container: HTMLDivElement | null) => {
if (container) {
assertExists(tocPanelRef.current, 'toc panel should be initialized');
container.append(tocPanelRef.current);
assertExists(outlinePanelRef.current, 'toc panel should be initialized');
container.append(outlinePanelRef.current);
}
}, []);
@@ -23,13 +23,13 @@ const EditorOutline = () => {
return;
}
if (!tocPanelRef.current) {
tocPanelRef.current = new TOCPanel();
if (!outlinePanelRef.current) {
outlinePanelRef.current = new OutlinePanel();
}
if (editor !== tocPanelRef.current?.editor) {
(tocPanelRef.current as TOCPanel).editor = editor;
(tocPanelRef.current as TOCPanel).fitPadding = [20, 20, 20, 20];
if (editor !== outlinePanelRef.current?.editor) {
(outlinePanelRef.current as OutlinePanel).editor = editor;
(outlinePanelRef.current as OutlinePanel).fitPadding = [20, 20, 20, 20];
}
return <div className={styles.root} ref={onRefChange} />;

View File

@@ -25,10 +25,10 @@
"@affine-test/kit": "workspace:*",
"@affine/env": "workspace:*",
"@affine/native": "workspace:*",
"@blocksuite/blocks": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/lit": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/presets": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/store": "0.12.0-nightly-202401120404-4219e86",
"@blocksuite/blocks": "0.12.0-nightly-202401180838-f0c45fd",
"@blocksuite/lit": "0.12.0-nightly-202401180838-f0c45fd",
"@blocksuite/presets": "0.12.0-nightly-202401180838-f0c45fd",
"@blocksuite/store": "0.12.0-nightly-202401180838-f0c45fd",
"@electron-forge/cli": "^7.2.0",
"@electron-forge/core": "^7.2.0",
"@electron-forge/core-utils": "^7.2.0",