@atlaskit/editor-plugin-layout
Version:
Layout plugin for @atlaskit/editor-core
20 lines (19 loc) • 748 B
TypeScript
import { type ReactNode } from 'react';
import { type IntlShape } from 'react-intl';
interface Props {
children: ReactNode;
intl: IntlShape | undefined;
}
/**
* Wraps the layout section nodeview children with the editor's actual
* IntlProvider during SSR streaming (renderToStaticMarkup). This ensures any
* descendants that call `useIntl()` (e.g. `BreakoutResizer`'s ARIA labels)
* 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` and
* `SyncBlockSSRReactContextsProvider`.
*/
export declare function LayoutSSRReactContextsProvider({ children, intl }: Props): ReactNode;
export {};