@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
26 lines (25 loc) • 873 B
TypeScript
/**
* @jsxRuntime classic
* @jsx jsx
* @jsxFrag React.Fragment
*/
import React from 'react';
import { jsx } from '@emotion/react';
import type { IntlShape } from 'react-intl';
import type { MacroInteractionDesignFeatureFlags } from './types';
type Props = {
children: React.ReactNode;
intl: IntlShape | undefined;
macroInteractionDesignFeatureFlags?: MacroInteractionDesignFeatureFlags;
nodeType: string;
};
/**
* If inlineExtension, add zero width space to the end of the nodes and wrap with span;
* Also if showMacroInteractionDesignUpdates is true, then add the inline-block style to account for the lozenge.
* else wrap with a div (for multi bodied extensions)
*
* @param param0
* @returns
*/
export declare const ExtensionNodeWrapper: ({ children, nodeType, macroInteractionDesignFeatureFlags, intl, }: Props) => jsx.JSX.Element;
export {};