UNPKG

@atlaskit/editor-plugin-date

Version:

Date plugin for @atlaskit/editor-core

22 lines (21 loc) 960 B
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types'; import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics'; import type { AnnotationPlugin } from '@atlaskit/editor-plugin-annotation'; import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled'; import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode'; import type { DatePluginOptions, DatePluginSharedState, DeleteDate, InsertDate } from './types'; export type DatePluginDependencies = [ typeof analyticsPlugin, EditorDisabledPlugin, OptionalPlugin<AnnotationPlugin>, OptionalPlugin<EditorViewModePlugin> ]; export type DatePlugin = NextEditorPlugin<'date', { commands: { deleteDate: DeleteDate; insertDate: InsertDate; }; dependencies: DatePluginDependencies; pluginConfiguration: DatePluginOptions | undefined; sharedState: DatePluginSharedState; }>;