UNPKG

@dndbuilder.com/react

Version:

Drag and drop builder for React

28 lines (27 loc) 1.07 kB
import { BuilderRightPanelType } from '../types'; import { Dispatch, ReactNode, SetStateAction } from 'react'; export type ActionContextType = { save: () => void; isSaving: boolean; duplicate: (blockId: string) => void; pasteFromClipboard: ({ blockId }: { blockId: string; }) => void; getPlatformSpecificCopyShortcut: () => string; getPlatformSpecificPasteShortcut: () => string; getPlatformSpecificSaveShortcut: () => string; isLeftPanelOpen: boolean; setIsLeftPanelOpen: Dispatch<SetStateAction<boolean>>; activeRightPanel: BuilderRightPanelType | null; toggleRightPanel: (panel: BuilderRightPanelType) => void; getClipboardData: () => Promise<any>; isUndoable: boolean; isRedoable: boolean; undo: () => void; redo: () => void; }; export declare const ActionContext: import('react').Context<ActionContextType | undefined>; export declare const ActionProvider: ({ children }: { children: ReactNode; }) => import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=action-context.d.ts.map