@atlaskit/editor-plugin-date
Version:
Date plugin for @atlaskit/editor-core
14 lines (13 loc) • 906 B
TypeScript
import type { Command, CommandDispatch, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
import type { DatePlugin, DateType } from '../types';
export declare const createDate: (isQuickInsertAction?: boolean) => (state: EditorState) => Transaction;
/** Focus input */
export declare const focusDateInput: () => (state: EditorState, dispatch: CommandDispatch | undefined) => boolean;
export declare const setDatePickerAt: (showDatePickerAt: number | null) => (state: EditorState, dispatch: (tr: Transaction) => void) => boolean;
export declare const closeDatePicker: () => Command;
export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi, }: {
date?: DateType;
pluginInjectionApi?: ExtractInjectionAPI<DatePlugin>;
}) => Command;
export declare const openDatePicker: () => Command;