UNPKG

@atlaskit/editor-plugin-synced-block

Version:

SyncedBlock plugin for @atlaskit/editor-core

16 lines (15 loc) 797 B
import React from 'react'; import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types'; import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model'; import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider'; import type { SyncedBlockPlugin, SyncedBlockRendererProps } from '../syncedBlockPluginType'; type Props = { api?: ExtractInjectionAPI<SyncedBlockPlugin>; localId: string; node: PMNode; resourceId: string; syncBlockStore: SyncBlockStoreManager; syncedBlockRenderer: (props: SyncedBlockRendererProps) => React.JSX.Element; }; export declare const SyncBlockRendererWrapper: React.MemoExoticComponent<({ syncedBlockRenderer, syncBlockStore, node, resourceId, localId, api, }: Props) => React.JSX.Element>; export {};