UNPKG

@atlaskit/editor-plugin-table

Version:

Table plugin for the @atlaskit/editor

49 lines (48 loc) 2 kB
import React from 'react'; import type { IntlShape } from 'react-intl-next'; import type { TableColumnOrdering } from '@atlaskit/custom-steps'; import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics'; import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher'; import type { EditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types'; import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model'; import type { Selection } from '@atlaskit/editor-prosemirror/state'; import type { EditorView } from '@atlaskit/editor-prosemirror/view'; import type { CellHoverMeta, PluginInjectionAPI } from '../types'; import type { TableOptions } from './types'; interface ComponentProps { allowColumnResizing?: boolean; allowControls?: boolean; allowFixedColumnWidthOption?: boolean; allowTableAlignment?: boolean; allowTableResizing?: boolean; containerWidth: EditorContainerWidth; contentDOM: (node: HTMLElement | null) => void; dispatchAnalyticsEvent: DispatchAnalyticsEvent; eventDispatcher: EventDispatcher; getEditorFeatureFlags: GetEditorFeatureFlags; getNode: () => PmNode; getPos: () => number | undefined; hoveredCell?: CellHoverMeta; hoveredRows?: number[]; intl: IntlShape; isDragAndDropEnabled?: boolean; isHeaderColumnEnabled: boolean; isHeaderRowEnabled: boolean; isInDanger?: boolean; isMediaFullscreen?: boolean; isResizing?: boolean; isTableHovered?: boolean; isTableScalingEnabled?: boolean; isWholeTableInDanger?: boolean; limitedMode?: boolean; options?: TableOptions; ordering?: TableColumnOrdering; pluginInjectionApi?: PluginInjectionAPI; selection?: Selection; tableActive: boolean; view: EditorView; } declare const _default: React.FC<import("react-intl-next").WithIntlProps<ComponentProps>> & { WrappedComponent: React.ComponentType<ComponentProps>; }; export default _default;