chore: bump bs to 0.17.10 (#8251)

-   e0d0016: - Fix database performance issue
    -   Fix frame panel display issue
    -   Fix editor settings for color with transparency
    -   Fix portal in modals
    -   Fix group selection rendering delay
    -   Remove unused and duplicated code
    -   Improve frame model
    -   Improve ParseDocUrl service
    -   Support custom max zoom
This commit is contained in:
Saul-Mirone
2024-09-13 12:13:22 +00:00
parent 85b9f21078
commit bafed8ed01
16 changed files with 197 additions and 210 deletions

View File

@@ -1,5 +1,4 @@
import type { MindmapElementModel } from '@blocksuite/affine-block-surface';
import { fitContent } from '@blocksuite/affine-block-surface';
import type { EditorHost } from '@blocksuite/block-std';
import type {
AffineAIPanelWidget,
@@ -16,6 +15,7 @@ import {
EDGELESS_TEXT_BLOCK_MIN_HEIGHT,
EDGELESS_TEXT_BLOCK_MIN_WIDTH,
EdgelessTextBlockModel,
fitContent,
ImageBlockModel,
InsertBelowIcon,
LightLoadingIcon,

View File

@@ -1,8 +1,8 @@
import { MindmapElementModel } from '@blocksuite/affine-block-surface';
import {
type AIItemGroupConfig,
AIStarIconWithAnimation,
BlocksUtils,
MindmapElementModel,
ShapeElementModel,
TextElementModel,
} from '@blocksuite/blocks';

View File

@@ -3,10 +3,10 @@ import './date-time';
import '../_common/components/chat-action-list';
import '../_common/components/copy-more';
import { CanvasElementType } from '@blocksuite/affine-block-surface';
import { type EditorHost } from '@blocksuite/block-std';
import {
type AIError,
CanvasElementType,
ConnectorMode,
DocModeProvider,
type EdgelessRootService,

View File

@@ -1,10 +1,10 @@
import { MindmapElementModel } from '@blocksuite/affine-block-surface';
import type { BlockComponent, EditorHost } from '@blocksuite/block-std';
import {
AFFINE_EDGELESS_COPILOT_WIDGET,
type EdgelessCopilotWidget,
type EdgelessRootService,
matchFlavours,
MindmapElementModel,
type ShapeElementModel,
} from '@blocksuite/blocks';

View File

@@ -1,7 +1,7 @@
import { EdgelessSurfaceBlockSpec } from '@blocksuite/affine-block-surface';
import type { ExtensionType } from '@blocksuite/block-std';
import {
EdgelessNoteBlockSpec,
EdgelessSurfaceBlockSpec,
EdgelessSurfaceRefBlockSpec,
EdgelessTextBlockSpec,
FrameBlockSpec,

View File

@@ -1,6 +1,9 @@
import { PageSurfaceBlockSpec } from '@blocksuite/affine-block-surface';
import type { ExtensionType } from '@blocksuite/block-std';
import { NoteBlockSpec, PageSurfaceRefBlockSpec } from '@blocksuite/blocks';
import {
NoteBlockSpec,
PageSurfaceBlockSpec,
PageSurfaceRefBlockSpec,
} from '@blocksuite/blocks';
import { type FrameworkProvider } from '@toeverything/infra';
import { AIBlockSpecs, DefaultBlockSpecs } from './common';

View File

@@ -28,8 +28,8 @@ export const EditorFramePanel = ({
framePanelRef.current = new FramePanel();
}
if (editor !== framePanelRef.current?.editor) {
(framePanelRef.current as FramePanel).editor = editor;
if (editor.host !== framePanelRef.current?.host && editor.host) {
(framePanelRef.current as FramePanel).host = editor.host;
(framePanelRef.current as FramePanel).fitPadding = [20, 20, 20, 20];
}