UNPKG

@atlaskit/editor-plugin-table

Version:

Table plugin for the @atlaskit/editor

19 lines (18 loc) 1.2 kB
import React from 'react'; import { type DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics'; import { type ExtractInjectionAPI, type GetEditorContainerWidth, type GetEditorFeatureFlags } from '@atlaskit/editor-common/types'; import { type EditorView } from '@atlaskit/editor-prosemirror/view'; import { type TablePlugin, type TablePluginOptions } from '../tablePluginType'; export type ContentComponentProps = { api: ExtractInjectionAPI<TablePlugin> | undefined; defaultGetEditorContainerWidth: GetEditorContainerWidth; defaultGetEditorFeatureFlags: GetEditorFeatureFlags; dispatchAnalyticsEvent: DispatchAnalyticsEvent | undefined; editorView?: EditorView; isTableSelectorEnabled: boolean | undefined; options?: TablePluginOptions; popupsBoundariesElement?: HTMLElement; popupsMountPoint?: HTMLElement; popupsScrollableElement?: HTMLElement; }; export declare const ContentComponent: ({ api, editorView, dispatchAnalyticsEvent, options, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, isTableSelectorEnabled, defaultGetEditorContainerWidth, defaultGetEditorFeatureFlags, }: ContentComponentProps) => React.JSX.Element;