L-Sun
2024-09-02 15:25:26 +00:00
parent 130e6ab4a3
commit 392fef663e
10 changed files with 151 additions and 152 deletions
+2 -2
View File
@@ -3,8 +3,8 @@
"private": true,
"type": "module",
"devDependencies": {
"@blocksuite/global": "0.0.0-canary-20240902070217",
"@blocksuite/store": "0.0.0-canary-20240902070217",
"@blocksuite/global": "0.0.0-canary-20240902140244",
"@blocksuite/store": "0.0.0-canary-20240902140244",
"react": "18.3.1",
"react-dom": "18.3.1",
"vitest": "1.6.0"
+6 -6
View File
@@ -14,10 +14,10 @@
"@affine/debug": "workspace:*",
"@affine/env": "workspace:*",
"@affine/templates": "workspace:*",
"@blocksuite/blocks": "0.0.0-canary-20240902070217",
"@blocksuite/global": "0.0.0-canary-20240902070217",
"@blocksuite/presets": "0.0.0-canary-20240902070217",
"@blocksuite/store": "0.0.0-canary-20240902070217",
"@blocksuite/blocks": "0.0.0-canary-20240902140244",
"@blocksuite/global": "0.0.0-canary-20240902140244",
"@blocksuite/presets": "0.0.0-canary-20240902140244",
"@blocksuite/store": "0.0.0-canary-20240902140244",
"@datastructures-js/binary-search-tree": "^5.3.2",
"foxact": "^0.2.33",
"fuse.js": "^7.0.0",
@@ -34,8 +34,8 @@
"devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine/templates": "workspace:*",
"@blocksuite/block-std": "0.0.0-canary-20240902070217",
"@blocksuite/presets": "0.0.0-canary-20240902070217",
"@blocksuite/block-std": "0.0.0-canary-20240902140244",
"@blocksuite/presets": "0.0.0-canary-20240902140244",
"@testing-library/react": "^16.0.0",
"async-call-rpc": "^6.4.0",
"fake-indexeddb": "^6.0.0",
+5 -5
View File
@@ -81,12 +81,12 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@blocksuite/block-std": "0.0.0-canary-20240902070217",
"@blocksuite/blocks": "0.0.0-canary-20240902070217",
"@blocksuite/global": "0.0.0-canary-20240902070217",
"@blocksuite/block-std": "0.0.0-canary-20240902140244",
"@blocksuite/blocks": "0.0.0-canary-20240902140244",
"@blocksuite/global": "0.0.0-canary-20240902140244",
"@blocksuite/icons": "2.1.66",
"@blocksuite/presets": "0.0.0-canary-20240902070217",
"@blocksuite/store": "0.0.0-canary-20240902070217",
"@blocksuite/presets": "0.0.0-canary-20240902140244",
"@blocksuite/store": "0.0.0-canary-20240902140244",
"@chromatic-com/storybook": "^1",
"@storybook/addon-actions": "^8.2.9",
"@storybook/addon-essentials": "^8.2.9",
+6 -6
View File
@@ -15,13 +15,13 @@
"@affine/graphql": "workspace:*",
"@affine/i18n": "workspace:*",
"@affine/templates": "workspace:*",
"@blocksuite/block-std": "0.0.0-canary-20240902070217",
"@blocksuite/blocks": "0.0.0-canary-20240902070217",
"@blocksuite/global": "0.0.0-canary-20240902070217",
"@blocksuite/block-std": "0.0.0-canary-20240902140244",
"@blocksuite/blocks": "0.0.0-canary-20240902140244",
"@blocksuite/global": "0.0.0-canary-20240902140244",
"@blocksuite/icons": "2.1.66",
"@blocksuite/inline": "0.0.0-canary-20240902070217",
"@blocksuite/presets": "0.0.0-canary-20240902070217",
"@blocksuite/store": "0.0.0-canary-20240902070217",
"@blocksuite/inline": "0.0.0-canary-20240902140244",
"@blocksuite/presets": "0.0.0-canary-20240902140244",
"@blocksuite/store": "0.0.0-canary-20240902140244",
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/modifiers": "^7.0.0",
"@dnd-kit/sortable": "^8.0.0",
@@ -6,7 +6,7 @@ import {
EdgelessTextBlockSpec,
FrameBlockSpec,
} from '@blocksuite/blocks';
import { EdgelessAIChatBlockSpec } from '@blocksuite/presets';
import { AIChatBlockSpec } from '@blocksuite/presets';
import type { FrameworkProvider } from '@toeverything/infra';
import { CommonBlockSpecs } from './common';
@@ -22,7 +22,7 @@ export function createEdgelessModeSpecs(
FrameBlockSpec,
EdgelessTextBlockSpec,
EdgelessNoteBlockSpec,
EdgelessAIChatBlockSpec,
AIChatBlockSpec,
// special
createEdgelessRootBlockSpec(framework),
].flat();
@@ -1,8 +1,8 @@
import type { ExtensionType } from '@blocksuite/block-std';
import { SpecProvider } from '@blocksuite/blocks';
import { EdgelessAIChatBlockSpec } from '@blocksuite/presets';
import { AIChatBlockSpec } from '@blocksuite/presets';
const CustomSpecs: ExtensionType[] = [EdgelessAIChatBlockSpec].flat();
const CustomSpecs: ExtensionType[] = [AIChatBlockSpec].flat();
function patchPreviewSpec(id: string, specs: ExtensionType[]) {
const specProvider = SpecProvider.getInstance();
+4 -4
View File
@@ -29,10 +29,10 @@
"@affine/env": "workspace:*",
"@affine/i18n": "workspace:*",
"@affine/native": "workspace:*",
"@blocksuite/block-std": "0.0.0-canary-20240902070217",
"@blocksuite/blocks": "0.0.0-canary-20240902070217",
"@blocksuite/presets": "0.0.0-canary-20240902070217",
"@blocksuite/store": "0.0.0-canary-20240902070217",
"@blocksuite/block-std": "0.0.0-canary-20240902140244",
"@blocksuite/blocks": "0.0.0-canary-20240902140244",
"@blocksuite/presets": "0.0.0-canary-20240902140244",
"@blocksuite/store": "0.0.0-canary-20240902140244",
"@electron-forge/cli": "^7.3.0",
"@electron-forge/core": "^7.3.0",
"@electron-forge/core-utils": "^7.3.0",