mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-01 01:29:31 +08:00
19 lines
494 B
TypeScript
19 lines
494 B
TypeScript
import { createIdentifier } from '@blocksuite/global/di';
|
|
import type { ExtensionType } from '@blocksuite/store';
|
|
import { Subject } from 'rxjs';
|
|
|
|
import type { RefNodeSlots } from '../inline/index.js';
|
|
|
|
export const RefNodeSlotsProvider =
|
|
createIdentifier<RefNodeSlots>('AffineRefNodeSlots');
|
|
|
|
const slots: RefNodeSlots = {
|
|
docLinkClicked: new Subject(),
|
|
};
|
|
|
|
export const RefNodeSlotsExtension: ExtensionType = {
|
|
setup: di => {
|
|
di.addImpl(RefNodeSlotsProvider, () => slots);
|
|
},
|
|
};
|