fix(editor): missing dependencies (#9436)

This commit is contained in:
Saul-Mirone
2024-12-30 14:10:37 +00:00
parent c28f918527
commit a9f890017e
22 changed files with 42 additions and 64 deletions

View File

@@ -28,10 +28,7 @@ export const ImageDropOption = FileDropConfigExtension({
const imageFiles = files.filter(file => file.type.startsWith('image/'));
if (!imageFiles.length) return false;
if (
targetModel &&
!matchFlavours(targetModel, ['affine:surface' as BlockSuite.Flavour])
) {
if (targetModel && !matchFlavours(targetModel, ['affine:surface'])) {
addSiblingImageBlock(
std.host,
imageFiles,

View File

@@ -1,3 +1,7 @@
import type * as SurfaceEffects from '@blocksuite/affine-block-surface/effects';
declare type _GLOBAL_ = typeof SurfaceEffects;
export * from './adapters';
export * from './image-block';
export * from './image-edgeless-block';

View File

@@ -523,7 +523,6 @@ export async function addImages(
editing: false,
});
if (isMultipleFiles) {
// @ts-expect-error FIXME(command): BS-2216
std.command.exec('autoResizeElements');
}
return blockIds;