@atlaskit/editor-plugin-synced-block
Version:
SyncedBlock plugin for @atlaskit/editor-core
18 lines (17 loc) • 1.1 kB
TypeScript
import type { IntlShape } from 'react-intl';
import type { ExtractInjectionAPI, FloatingToolbarCustomRenderContext } from '@atlaskit/editor-common/types';
import type { SyncBlockSourceInfo, SyncBlockStoreManager, ReferencesSourceInfo } from '@atlaskit/editor-synced-block-provider';
import type { SyncedBlockPlugin } from '../syncedBlockPluginType';
interface Props {
api?: ExtractInjectionAPI<SyncedBlockPlugin>;
floatingToolbarRenderContext?: FloatingToolbarCustomRenderContext;
intl: IntlShape;
isSource: boolean;
localId: string;
resourceId: string;
syncBlockStore: SyncBlockStoreManager;
}
export declare const processReferenceData: (referenceData: ReferencesSourceInfo['references'], intl: IntlShape) => SyncBlockSourceInfo[];
export declare const SyncedLocationDropdown: ({ syncBlockStore, resourceId, intl, isSource, localId, api, floatingToolbarRenderContext, }: Props) => JSX.Element;
export declare const SyncedLocationDropdownWithCount: ({ syncBlockStore, resourceId, intl, isSource, localId, api, floatingToolbarRenderContext, }: Props) => JSX.Element;
export {};