mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-19 11:06:25 +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:
+4
-4
@@ -1,4 +1,4 @@
|
||||
import type { BlockElement } from '@blocksuite/block-std';
|
||||
import type { BlockComponent } from '@blocksuite/block-std';
|
||||
import type {
|
||||
AffineEditorContainer,
|
||||
EdgelessEditor,
|
||||
@@ -56,7 +56,7 @@ type BlocksuiteEditorContainerRef = Pick<
|
||||
function findBlockElementById(container: HTMLElement, blockId: string) {
|
||||
const element = container.querySelector(
|
||||
`[data-block-id="${blockId}"]`
|
||||
) as BlockElement | null;
|
||||
) as BlockComponent | null;
|
||||
return element;
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ const useBlockElementById = (
|
||||
blockId: string | undefined,
|
||||
timeout = 1000
|
||||
) => {
|
||||
const [blockElement, setBlockElement] = useState<BlockElement | null>(null);
|
||||
const [blockElement, setBlockElement] = useState<BlockComponent | null>(null);
|
||||
useEffect(() => {
|
||||
if (!blockId) {
|
||||
return;
|
||||
@@ -210,7 +210,7 @@ export const BlocksuiteEditorContainer = forwardRef<
|
||||
|
||||
useEffect(() => {
|
||||
let canceled = false;
|
||||
const handleScrollToBlock = (blockElement: BlockElement) => {
|
||||
const handleScrollToBlock = (blockElement: BlockComponent) => {
|
||||
if (!mode || !blockElement) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user