forked from toeverything/blocksuite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move doc page block slots to service (toeverything#6196)
- Loading branch information
1 parent
f844711
commit 6b04654
Showing
2 changed files
with
21 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
import { Slot } from '@blocksuite/store'; | ||
|
||
import type { Viewport } from '../../_common/utils/index.js'; | ||
import { PageService } from '../page-service.js'; | ||
|
||
export class DocPageService extends PageService {} | ||
export class DocPageService extends PageService { | ||
slots = { | ||
pageLinkClicked: new Slot<{ | ||
pageId: string; | ||
blockId?: string; | ||
}>(), | ||
tagClicked: new Slot<{ | ||
tagId: string; | ||
}>(), | ||
viewportUpdated: new Slot<Viewport>(), | ||
}; | ||
} |