chore(editor): remove common utils in surface block (#9527)

This commit is contained in:
Saul-Mirone
2025-01-06 02:41:39 +00:00
parent 3d168ba2d2
commit c22804766d
22 changed files with 38 additions and 285 deletions

View File

@@ -1,5 +1,5 @@
import { CommonUtils } from '@blocksuite/affine-block-surface';
import type { BlockComponent } from '@blocksuite/block-std';
import { generateKeyBetween } from '@blocksuite/block-std/gfx';
import type {
EdgelessRootBlockComponent,
GroupElementModel,
@@ -238,7 +238,7 @@ test('blocks should rerender when their z-index changed', async () => {
service.crud.addElement('shape', {
shapeType: 'rect',
index: CommonUtils.generateKeyBetween(
index: generateKeyBetween(
service.crud.getElementById(blocks[1])!.index,
service.crud.getElementById(blocks[2])!.index
),