mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
fix(plugin): left menu item refresh on blockId change
This commit is contained in:
@@ -7,12 +7,6 @@ export * from './commands/types';
|
||||
export { Editor as BlockEditor } from './editor';
|
||||
export * from './selection';
|
||||
export { BlockDropPlacement, HookType, GroupDirection } from './types';
|
||||
export type {
|
||||
BlockDomInfo,
|
||||
Plugin,
|
||||
PluginCreator,
|
||||
PluginHooks,
|
||||
Virgo,
|
||||
} from './types';
|
||||
export type { Plugin, PluginCreator, PluginHooks, Virgo } from './types';
|
||||
export { BaseView, getTextHtml, getTextProperties } from './views/base-view';
|
||||
export type { ChildrenView, CreateView } from './views/base-view';
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { DragEvent } from 'react';
|
||||
import { Observable, Subject } from 'rxjs';
|
||||
import { HooksRunner, HookType, BlockDomInfo, PluginHooks } from '../types';
|
||||
import { HooksRunner, HookType, PluginHooks } from '../types';
|
||||
|
||||
export class Hooks implements HooksRunner, PluginHooks {
|
||||
private _subject: Record<string, Subject<unknown>> = {};
|
||||
|
||||
@@ -183,14 +183,6 @@ export enum HookType {
|
||||
ON_ROOTNODE_SCROLL = 'onRootNodeScroll',
|
||||
}
|
||||
|
||||
export interface BlockDomInfo {
|
||||
blockId: string;
|
||||
dom: HTMLElement;
|
||||
type: BlockFlavorKeys;
|
||||
rect: DOMRect;
|
||||
properties: Record<string, unknown>;
|
||||
}
|
||||
|
||||
// Editor's various callbacks, used in Editor
|
||||
export interface HooksRunner {
|
||||
init: () => void;
|
||||
|
||||
Reference in New Issue
Block a user