mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
refactor(editor): remove selection global types (#9532)
Closes: [BS-2217](https://linear.app/affine-design/issue/BS-2217/remove-global-types-in-selection)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { CaptionedBlockComponent } from '@blocksuite/affine-components/caption';
|
||||
import type { DividerBlockModel } from '@blocksuite/affine-model';
|
||||
import { BLOCK_CHILDREN_CONTAINER_PADDING_LEFT } from '@blocksuite/affine-shared/consts';
|
||||
import { BlockSelection } from '@blocksuite/block-std';
|
||||
import { html } from 'lit';
|
||||
|
||||
import { dividerBlockStyles } from './styles.js';
|
||||
@@ -15,7 +16,7 @@ export class DividerBlockComponent extends CaptionedBlockComponent<DividerBlockM
|
||||
|
||||
this.handleEvent('click', () => {
|
||||
this.host.selection.setGroup('note', [
|
||||
this.host.selection.create('block', {
|
||||
this.host.selection.create(BlockSelection, {
|
||||
blockId: this.blockId,
|
||||
}),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user