init: the first public commit for AFFiNE

This commit is contained in:
DarkSky
2022-07-22 15:49:21 +08:00
commit e3e3741393
1451 changed files with 108124 additions and 0 deletions
+51
View File
@@ -0,0 +1,51 @@
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';