UNPKG

@atlaskit/editor-plugin-synced-block

Version:

SyncedBlock plugin for @atlaskit/editor-core

8 lines (7 loc) • 801 B
import type { IntlShape } from 'react-intl'; import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types/floating-toolbar'; import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin'; import type { EditorState } from '@atlaskit/editor-prosemirror/state'; import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider/syncBlockStoreManager'; import type { SyncedBlockFeedbackContext, SyncedBlockPlugin } from '../syncedBlockPluginType'; export declare const getToolbarConfig: (state: EditorState, intl: IntlShape, api: ExtractInjectionAPI<SyncedBlockPlugin> | undefined, syncBlockStore: SyncBlockStoreManager, isLivePage?: boolean, onGiveFeedback?: (context: SyncedBlockFeedbackContext) => void) => FloatingToolbarConfig | undefined;