UNPKG

@atlaskit/renderer

Version:
29 lines (28 loc) 1.23 kB
/** * @jsxRuntime classic * @jsx jsx */ import { jsx } from '@emotion/react'; import type { FC } from 'react'; import type { SmartLinksOptions } from '../../types/smartLinksOptions'; import type { EventHandlers } from '@atlaskit/editor-common/ui'; import type { RichMediaLayout } from '@atlaskit/adf-schema'; import type { RendererAppearance } from '../../ui/Renderer/types'; type EmbedCardInternalProps = { data?: object; eventHandlers?: EventHandlers; isInsideOfBlockNode?: boolean; isInsideOfInlineExtension?: boolean; layout: RichMediaLayout; onSetLinkTarget?: (url: string) => '_blank' | undefined; originalHeight?: number; originalWidth?: number; portal?: HTMLElement; rendererAppearance?: RendererAppearance; smartLinks?: SmartLinksOptions; url?: string; width?: number; }; export declare const EmbedOrBlockCardInternal: ({ url, data, eventHandlers, portal, originalHeight, originalWidth, width: embedWidth, layout, rendererAppearance, isInsideOfBlockNode, smartLinks, isInsideOfInlineExtension, onSetLinkTarget, }: EmbedCardInternalProps) => jsx.JSX.Element; declare const EmbedCardWithCondition: FC<EmbedCardInternalProps>; export default EmbedCardWithCondition;