mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
54 lines
1.3 KiB
TypeScript
54 lines
1.3 KiB
TypeScript
import { BaseEditor } from 'slate';
|
|
import { ReactEditor } from 'slate-react';
|
|
import { LinkElement } from './text/plugins/link';
|
|
import { RefLinkElement } from './text/plugins/reflink';
|
|
|
|
export type CustomText = { text: string };
|
|
export type CustomElement =
|
|
| { type: string; children: CustomElement[] }
|
|
| CustomText
|
|
| LinkElement
|
|
| RefLinkElement;
|
|
declare module 'slate' {
|
|
interface CustomTypes {
|
|
Editor: BaseEditor & ReactEditor;
|
|
Element: CustomElement;
|
|
Text: CustomText;
|
|
}
|
|
}
|
|
|
|
export { BlockPreview, StyledBlockPreview } from './block-preview';
|
|
export { default as Button } from './button';
|
|
export type { CommonListItem } from './list';
|
|
export { CommonList, BackLink, commonListContainer } from './list';
|
|
export * from './Logo';
|
|
export { default as Toolbar } from './toolbar';
|
|
export { CollapsibleTitle } from './collapsible-title';
|
|
|
|
export * from './text';
|
|
|
|
export {
|
|
NewpageIcon,
|
|
ClockIcon,
|
|
ViewSidebarIcon,
|
|
ListIcon,
|
|
SpaceIcon,
|
|
PencilDotDuotoneIcon,
|
|
PencilDuotoneIcon,
|
|
HighlighterDuotoneIcon,
|
|
CodeBlockInlineIcon,
|
|
PagesIcon,
|
|
CloseIcon,
|
|
DocumentIcon,
|
|
TodoListIcon,
|
|
KanbanIcon,
|
|
TableIcon,
|
|
AddIcon,
|
|
FilterIcon,
|
|
SorterIcon,
|
|
FullScreenIcon,
|
|
UnGroupIcon,
|
|
} from './icon';
|
|
|
|
export * from './comming-soon/CommingSoon';
|