feat: add ai entry to code toolbar and image toolbar (#7169)

This commit is contained in:
donteatfriedrice
2024-06-07 03:14:46 +00:00
parent 38dde7f5b7
commit 1a509d18a5
2 changed files with 9 additions and 5 deletions

View File

@@ -1,7 +1,6 @@
import type { BlockSpec } from '@blocksuite/block-std';
import {
BookmarkBlockSpec,
CodeBlockSpec,
DatabaseBlockSpec,
DataViewBlockSpec,
DividerBlockSpec,
@@ -12,11 +11,14 @@ import {
EmbedLoomBlockSpec,
EmbedSyncedDocBlockSpec,
EmbedYoutubeBlockSpec,
ImageBlockSpec,
ListBlockSpec,
NoteBlockSpec,
} from '@blocksuite/blocks';
import { AIParagraphBlockSpec } from '@blocksuite/presets';
import {
AICodeBlockSpec,
AIImageBlockSpec,
AIParagraphBlockSpec,
} from '@blocksuite/presets';
import { CustomAttachmentBlockSpec } from './custom/attachment-block';
@@ -26,8 +28,6 @@ export const CommonBlockSpecs: BlockSpec[] = [
DatabaseBlockSpec,
DataViewBlockSpec,
DividerBlockSpec,
CodeBlockSpec,
ImageBlockSpec,
BookmarkBlockSpec,
EmbedFigmaBlockSpec,
EmbedGithubBlockSpec,
@@ -38,5 +38,7 @@ export const CommonBlockSpecs: BlockSpec[] = [
EmbedLinkedDocBlockSpec,
// special
CustomAttachmentBlockSpec,
AICodeBlockSpec,
AIImageBlockSpec,
AIParagraphBlockSpec,
];