UNPKG

@atlaskit/editor-plugin-table

Version:

Table plugin for the @atlaskit/editor

11 lines (10 loc) • 1.5 kB
import type { IntlShape } from 'react-intl'; import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api'; import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event'; import type { PortalProviderAPI } from '@atlaskit/editor-common/common'; import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher'; import { SafePlugin } from '@atlaskit/editor-common/safe-plugin'; import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types/editor-container-width'; import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types/feature-flags'; import type { PluginConfig, PluginInjectionAPI, TablePluginState } from '../types'; export declare const createPlugin: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, portalProviderAPI: PortalProviderAPI, nodeViewPortalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginConfig: PluginConfig, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, getIntl: () => IntlShape, fullWidthModeEnabled?: boolean, previousFullWidthModeEnabled?: boolean, editorAnalyticsAPI?: EditorAnalyticsAPI, pluginInjectionApi?: PluginInjectionAPI, isTableScalingEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean, isChromelessEditor?: boolean, allowFixedColumnWidthOption?: boolean, __livePage?: boolean) => SafePlugin<TablePluginState>;