UNPKG

@atlaskit/editor-plugin-synced-block

Version:

SyncedBlock plugin for @atlaskit/editor-core

20 lines (19 loc) 764 B
import { type ReactNode } from 'react'; import { type IntlShape } from 'react-intl'; interface Props { children: ReactNode; intl: IntlShape | undefined; } /** * Wraps syncBlock nodeview children with the editor's actual IntlProvider during * SSR streaming (renderToStaticMarkup). This ensures that components using * useIntl() — such as SyncBlockLabel, SyncedBlockLoadingState, and * ReactRenderer's table/code-block node renderers — have a valid intl context * and do not throw during the static render pass. * * Outside of SSR streaming this is a no-op passthrough. * * Follows the same pattern as MediaSSRReactContextsProvider. */ export declare function SyncBlockSSRReactContextsProvider({ children, intl }: Props): ReactNode; export {};