UNPKG

@yoopta/editor

Version:

<h2 align="center">Yoopta-Editor v1 🎉</h2> <p align="center">Yoopta-Editor - is an open source notion-like editor 💥</p> <div align="center"> <img width="574" alt="Screen Shot 2023-01-25 at 16 04 29" src="https://user-images.githubusercontent.com/2909311

33 lines • 927 B
import { YooEditor } from '../../editor/types'; type Params = { editor: YooEditor; onClose: () => void; empty?: boolean; withVoids?: boolean; view?: 'small' | 'default'; mode?: 'toggle' | 'create'; }; export declare function buildActionMenuRenderProps({ editor, view, onClose, mode }: Params): { actions: { type: string; title: any; description: any; icon: any; }[]; onClose: () => void; empty: boolean; getItemProps: (type: any) => { onMouseEnter: () => undefined; 'data-action-menu-item': boolean; 'data-action-menu-item-type': any; 'aria-selected': boolean; onClick: () => void; }; getRootProps: () => { 'data-action-menu-list': boolean; }; editor: YooEditor; view: "small" | "default" | undefined; }; export {}; //# sourceMappingURL=utils.d.ts.map