mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-18 02:26:21 +08:00
chore: bump blocksuite (#7579)
## Features - https://github.com/toeverything/BlockSuite/pull/7693 @akumatus ## Bugfix - https://github.com/toeverything/BlockSuite/pull/7713 @Saul-Mirone - https://github.com/toeverything/BlockSuite/pull/7710 @Saul-Mirone - https://github.com/toeverything/BlockSuite/pull/7709 @Saul-Mirone - https://github.com/toeverything/BlockSuite/pull/7707 @Saul-Mirone - https://github.com/toeverything/BlockSuite/pull/7689 @fourdim - https://github.com/toeverything/BlockSuite/pull/7699 @Saul-Mirone ## Refactor - https://github.com/toeverything/BlockSuite/pull/7715 @doodlewind - https://github.com/toeverything/BlockSuite/pull/7714 @doodlewind - https://github.com/toeverything/BlockSuite/pull/7705 @doodlewind ## Misc - https://github.com/toeverything/BlockSuite/pull/7712 @doodlewind - https://github.com/toeverything/BlockSuite/pull/7711 @doodlewind - https://github.com/toeverything/BlockSuite/pull/7706 @doodlewind - https://github.com/toeverything/BlockSuite/pull/7592 @doouding
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { BlockElement } from '@blocksuite/block-std';
|
||||
import type { BlockComponent } from '@blocksuite/block-std';
|
||||
import {
|
||||
AffineReference,
|
||||
type EmbedLinkedDocModel,
|
||||
@@ -17,7 +17,7 @@ import type { WorkbenchService } from '../../workbench';
|
||||
|
||||
export type PeekViewTarget =
|
||||
| HTMLElement
|
||||
| BlockElement
|
||||
| BlockComponent
|
||||
| AffineReference
|
||||
| HTMLAnchorElement
|
||||
| { docId: string; blockId?: string };
|
||||
|
||||
@@ -6,8 +6,8 @@ import { BlockSuiteEditor } from '@affine/core/components/blocksuite/block-suite
|
||||
import { useNavigateHelper } from '@affine/core/hooks/use-navigate-helper';
|
||||
import { PageNotFound } from '@affine/core/pages/404';
|
||||
import { DebugLogger } from '@affine/debug';
|
||||
import { Bound, type EdgelessRootService } from '@blocksuite/blocks';
|
||||
import { DisposableGroup } from '@blocksuite/global/utils';
|
||||
import { type EdgelessRootService } from '@blocksuite/blocks';
|
||||
import { Bound, DisposableGroup } from '@blocksuite/global/utils';
|
||||
import type { AffineEditorContainer } from '@blocksuite/presets';
|
||||
import type { DocMode } from '@toeverything/infra';
|
||||
import { DocsService, FrameworkScope, useService } from '@toeverything/infra';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { toReactNode } from '@affine/component';
|
||||
import { BlockElement } from '@blocksuite/block-std';
|
||||
import { BlockComponent } from '@blocksuite/block-std';
|
||||
import { useLiveData, useService } from '@toeverything/infra';
|
||||
import { useEffect, useMemo } from 'react';
|
||||
|
||||
@@ -91,7 +91,7 @@ export const PeekViewManagerModal = () => {
|
||||
|
||||
useEffect(() => {
|
||||
const subscription = peekViewEntity.show$.subscribe(() => {
|
||||
if (activePeekView?.target instanceof BlockElement) {
|
||||
if (activePeekView?.target instanceof BlockComponent) {
|
||||
activePeekView.target.requestUpdate();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user