mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-24 04:27:27 +08:00
chore(core): bump blocksuite (#6525)
## Features - https://github.com/toeverything/BlockSuite/pull/6728 @fundon - https://github.com/toeverything/BlockSuite/pull/6714 @doouding - https://github.com/toeverything/BlockSuite/pull/6733 @pengx17 - https://github.com/toeverything/BlockSuite/pull/6560 @golok727 - https://github.com/toeverything/BlockSuite/pull/6727 @pengx17 - https://github.com/toeverything/BlockSuite/pull/6645 @regischen - https://github.com/toeverything/BlockSuite/pull/6724 @fundon - https://github.com/toeverything/BlockSuite/pull/6719 @zzj3720 - https://github.com/toeverything/BlockSuite/pull/6682 @donteatfriedrice ## Bugfix - https://github.com/toeverything/BlockSuite/pull/6734 @Flrande - https://github.com/toeverything/BlockSuite/pull/6732 @fourdim - https://github.com/toeverything/BlockSuite/pull/6726 @pengx17 - https://github.com/toeverything/BlockSuite/pull/6721 @Flrande - https://github.com/toeverything/BlockSuite/pull/6725 @fundon - https://github.com/toeverything/BlockSuite/pull/6716 @golok727 - https://github.com/toeverything/BlockSuite/pull/6723 @donteatfriedrice - https://github.com/toeverything/BlockSuite/pull/6722 @pengx17 - https://github.com/toeverything/BlockSuite/pull/6718 @donteatfriedrice - https://github.com/toeverything/BlockSuite/pull/6702 @Tzyito - https://github.com/toeverything/BlockSuite/pull/6711 @Tzyito - https://github.com/toeverything/BlockSuite/pull/6694 @fundon - https://github.com/toeverything/BlockSuite/pull/6717 @golok727 ## Refactor - https://github.com/toeverything/BlockSuite/pull/6672 @Saul-Mirone ## Misc - https://github.com/toeverything/BlockSuite/pull/6720 @raintoway
This commit is contained in:
Vendored
+2
-2
@@ -3,8 +3,8 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@blocksuite/global": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/global": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@blocksuite/store": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/store": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.2.0",
|
||||||
"vitest": "1.4.0"
|
"vitest": "1.4.0"
|
||||||
|
|||||||
@@ -11,9 +11,9 @@
|
|||||||
"@affine/debug": "workspace:*",
|
"@affine/debug": "workspace:*",
|
||||||
"@affine/env": "workspace:*",
|
"@affine/env": "workspace:*",
|
||||||
"@affine/templates": "workspace:*",
|
"@affine/templates": "workspace:*",
|
||||||
"@blocksuite/blocks": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/blocks": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@blocksuite/global": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/global": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@blocksuite/store": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/store": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@datastructures-js/binary-search-tree": "^5.3.2",
|
"@datastructures-js/binary-search-tree": "^5.3.2",
|
||||||
"foxact": "^0.2.33",
|
"foxact": "^0.2.33",
|
||||||
"jotai": "^2.8.0",
|
"jotai": "^2.8.0",
|
||||||
@@ -28,10 +28,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@affine-test/fixtures": "workspace:*",
|
"@affine-test/fixtures": "workspace:*",
|
||||||
"@affine/templates": "workspace:*",
|
"@affine/templates": "workspace:*",
|
||||||
"@blocksuite/block-std": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/block-std": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@blocksuite/presets": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/presets": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@testing-library/react": "^15.0.0",
|
"@testing-library/react": "^14.2.1",
|
||||||
"async-call-rpc": "^6.4.2",
|
"async-call-rpc": "^6.4.0",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"rxjs": "^7.8.1",
|
"rxjs": "^7.8.1",
|
||||||
"vite": "^5.2.8",
|
"vite": "^5.2.8",
|
||||||
|
|||||||
@@ -32,14 +32,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blocksuite/global": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/global": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"idb": "^8.0.0",
|
"idb": "^8.0.0",
|
||||||
"nanoid": "^5.0.7",
|
"nanoid": "^5.0.7",
|
||||||
"y-provider": "workspace:*"
|
"y-provider": "workspace:*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@blocksuite/blocks": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/blocks": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@blocksuite/store": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/store": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"fake-indexeddb": "^5.0.2",
|
"fake-indexeddb": "^5.0.2",
|
||||||
"vite": "^5.2.8",
|
"vite": "^5.2.8",
|
||||||
"vite-plugin-dts": "3.8.1",
|
"vite-plugin-dts": "3.8.1",
|
||||||
|
|||||||
@@ -24,9 +24,9 @@
|
|||||||
"build": "vite build"
|
"build": "vite build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@blocksuite/store": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/store": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"vite": "^5.2.8",
|
"vite": "^5.1.4",
|
||||||
"vite-plugin-dts": "3.8.1",
|
"vite-plugin-dts": "3.7.3",
|
||||||
"vitest": "1.4.0",
|
"vitest": "1.4.0",
|
||||||
"yjs": "^13.6.14"
|
"yjs": "^13.6.14"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -75,12 +75,12 @@
|
|||||||
"zod": "^3.22.4"
|
"zod": "^3.22.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@blocksuite/block-std": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/block-std": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@blocksuite/blocks": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/blocks": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@blocksuite/global": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/global": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@blocksuite/icons": "2.1.46",
|
"@blocksuite/icons": "2.1.46",
|
||||||
"@blocksuite/presets": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/presets": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@blocksuite/store": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/store": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@storybook/addon-actions": "^7.6.17",
|
"@storybook/addon-actions": "^7.6.17",
|
||||||
"@storybook/addon-essentials": "^7.6.17",
|
"@storybook/addon-essentials": "^7.6.17",
|
||||||
"@storybook/addon-interactions": "^7.6.17",
|
"@storybook/addon-interactions": "^7.6.17",
|
||||||
|
|||||||
@@ -19,13 +19,13 @@
|
|||||||
"@affine/i18n": "workspace:*",
|
"@affine/i18n": "workspace:*",
|
||||||
"@affine/templates": "workspace:*",
|
"@affine/templates": "workspace:*",
|
||||||
"@affine/workspace-impl": "workspace:*",
|
"@affine/workspace-impl": "workspace:*",
|
||||||
"@blocksuite/block-std": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/block-std": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@blocksuite/blocks": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/blocks": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@blocksuite/global": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/global": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@blocksuite/icons": "2.1.46",
|
"@blocksuite/icons": "2.1.46",
|
||||||
"@blocksuite/inline": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/inline": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@blocksuite/presets": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/presets": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@blocksuite/store": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/store": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@dnd-kit/core": "^6.1.0",
|
"@dnd-kit/core": "^6.1.0",
|
||||||
"@dnd-kit/modifiers": "^7.0.0",
|
"@dnd-kit/modifiers": "^7.0.0",
|
||||||
"@dnd-kit/sortable": "^8.0.0",
|
"@dnd-kit/sortable": "^8.0.0",
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
|
import { useWorkspaceEnabledFeatures } from '@affine/core/hooks/use-workspace-features';
|
||||||
|
import { FeatureType } from '@affine/graphql';
|
||||||
import { assertExists } from '@blocksuite/global/utils';
|
import { assertExists } from '@blocksuite/global/utils';
|
||||||
import { AiIcon } from '@blocksuite/icons';
|
import { AiIcon } from '@blocksuite/icons';
|
||||||
import { ChatPanel } from '@blocksuite/presets';
|
import { ChatPanel } from '@blocksuite/presets';
|
||||||
|
import { useService, Workspace } from '@toeverything/infra';
|
||||||
import { useCallback, useRef } from 'react';
|
import { useCallback, useRef } from 'react';
|
||||||
|
|
||||||
import type { SidebarTab, SidebarTabProps } from '../sidebar-tab';
|
import type { SidebarTab, SidebarTabProps } from '../sidebar-tab';
|
||||||
@@ -8,14 +11,21 @@ import * as styles from './chat.css';
|
|||||||
|
|
||||||
// A wrapper for CopilotPanel
|
// A wrapper for CopilotPanel
|
||||||
const EditorChatPanel = ({ editor }: SidebarTabProps) => {
|
const EditorChatPanel = ({ editor }: SidebarTabProps) => {
|
||||||
|
const workspace = useService(Workspace);
|
||||||
|
const copilotEnabled = useWorkspaceEnabledFeatures(workspace.meta).includes(
|
||||||
|
FeatureType.Copilot
|
||||||
|
);
|
||||||
const chatPanelRef = useRef<ChatPanel | null>(null);
|
const chatPanelRef = useRef<ChatPanel | null>(null);
|
||||||
|
|
||||||
const onRefChange = useCallback((container: HTMLDivElement | null) => {
|
const onRefChange = useCallback(
|
||||||
if (container) {
|
(container: HTMLDivElement | null) => {
|
||||||
assertExists(chatPanelRef.current, 'chat panel should be initialized');
|
if (container && copilotEnabled) {
|
||||||
container.append(chatPanelRef.current);
|
assertExists(chatPanelRef.current, 'chat panel should be initialized');
|
||||||
}
|
container.append(chatPanelRef.current);
|
||||||
}, []);
|
}
|
||||||
|
},
|
||||||
|
[copilotEnabled]
|
||||||
|
);
|
||||||
|
|
||||||
if (!editor) {
|
if (!editor) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -28,19 +28,19 @@
|
|||||||
"@affine/env": "workspace:*",
|
"@affine/env": "workspace:*",
|
||||||
"@affine/i18n": "workspace:*",
|
"@affine/i18n": "workspace:*",
|
||||||
"@affine/native": "workspace:*",
|
"@affine/native": "workspace:*",
|
||||||
"@blocksuite/block-std": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/block-std": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@blocksuite/blocks": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/blocks": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@blocksuite/presets": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/presets": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@blocksuite/store": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/store": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@electron-forge/cli": "^7.3.1",
|
"@electron-forge/cli": "^7.3.0",
|
||||||
"@electron-forge/core": "^7.3.1",
|
"@electron-forge/core": "^7.3.0",
|
||||||
"@electron-forge/core-utils": "^7.3.1",
|
"@electron-forge/core-utils": "^7.3.0",
|
||||||
"@electron-forge/maker-deb": "^7.3.1",
|
"@electron-forge/maker-deb": "^7.3.0",
|
||||||
"@electron-forge/maker-dmg": "^7.3.1",
|
"@electron-forge/maker-dmg": "^7.3.0",
|
||||||
"@electron-forge/maker-squirrel": "^7.3.1",
|
"@electron-forge/maker-squirrel": "^7.3.0",
|
||||||
"@electron-forge/maker-zip": "^7.3.1",
|
"@electron-forge/maker-zip": "^7.3.0",
|
||||||
"@electron-forge/plugin-auto-unpack-natives": "^7.3.1",
|
"@electron-forge/plugin-auto-unpack-natives": "^7.3.0",
|
||||||
"@electron-forge/shared-types": "^7.3.1",
|
"@electron-forge/shared-types": "^7.3.0",
|
||||||
"@emotion/react": "^11.11.4",
|
"@emotion/react": "^11.11.4",
|
||||||
"@pengx17/electron-forge-maker-appimage": "^1.2.0",
|
"@pengx17/electron-forge-maker-appimage": "^1.2.0",
|
||||||
"@sentry/electron": "^4.22.0",
|
"@sentry/electron": "^4.22.0",
|
||||||
|
|||||||
@@ -23,13 +23,13 @@
|
|||||||
"storybook-addon-react-router-v6": "^2.0.15"
|
"storybook-addon-react-router-v6": "^2.0.15"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@blocksuite/block-std": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/block-std": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@blocksuite/blocks": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/blocks": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@blocksuite/global": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/global": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@blocksuite/icons": "2.1.46",
|
"@blocksuite/icons": "2.1.46",
|
||||||
"@blocksuite/inline": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/inline": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@blocksuite/presets": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/presets": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@blocksuite/store": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/store": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@storybook/addon-actions": "^7.6.17",
|
"@storybook/addon-actions": "^7.6.17",
|
||||||
"@storybook/addon-essentials": "^7.6.17",
|
"@storybook/addon-essentials": "^7.6.17",
|
||||||
"@storybook/addon-interactions": "^7.6.17",
|
"@storybook/addon-interactions": "^7.6.17",
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@affine/env": "workspace:*",
|
"@affine/env": "workspace:*",
|
||||||
"@affine/templates": "workspace:*",
|
"@affine/templates": "workspace:*",
|
||||||
"@aws-sdk/client-s3": "3.552.0",
|
"@aws-sdk/client-s3": "3.537.0",
|
||||||
"@blocksuite/presets": "0.14.0-canary-202404090831-25c5310",
|
"@blocksuite/presets": "0.14.0-canary-202404111515-fb8a834",
|
||||||
"@clack/core": "^0.3.4",
|
"@clack/core": "^0.3.4",
|
||||||
"@clack/prompts": "^0.7.0",
|
"@clack/prompts": "^0.7.0",
|
||||||
"@magic-works/i18n-codegen": "^0.5.0",
|
"@magic-works/i18n-codegen": "^0.5.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user