@atlaskit/renderer
Version:
Renderer component
23 lines (22 loc) • 1.15 kB
TypeScript
import type { ComponentClass } from 'react';
import type { Mark } from '@atlaskit/editor-prosemirror/model';
import type { EventHandlers } from '@atlaskit/editor-common/ui';
import type { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
import type { SmartLinksOptions } from '../../types/smartLinksOptions';
import type { MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
import type { RendererAppearance } from '../../ui/Renderer/types';
import type { AnalyticsEventPayload } from '../../analytics/events';
import type { Diff } from '@atlaskit/editor-common/utils';
export interface InlineCardProps extends MarkDataAttributes {
data?: object;
eventHandlers?: EventHandlers;
fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
marks?: Mark[];
onSetLinkTarget?: (url: string) => '_blank' | undefined;
portal?: HTMLElement;
rendererAppearance?: RendererAppearance;
smartLinks?: SmartLinksOptions;
url?: string;
}
declare const _default_1: ComponentClass<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>;
export default _default_1;