@atlaskit/editor-plugin-table
Version:
Table plugin for the @atlaskit/editor
21 lines (20 loc) • 1.37 kB
TypeScript
import React from 'react';
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event';
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types/editor-container-width';
import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types/feature-flags';
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
import type { TablePlugin, 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;