@atlaskit/editor-plugin-media
Version:
Media plugin for @atlaskit/editor-core
36 lines (35 loc) • 1.13 kB
TypeScript
/** @jsx jsx */
import React from 'react';
import { jsx } from '@emotion/react';
import type { IntlShape, WrappedComponentProps } from 'react-intl-next';
import type { RecentSearchInputTypes } from '@atlaskit/editor-common/link';
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
export type Props = {
intl: IntlShape;
providerFactory: ProviderFactory;
editing: boolean;
onBack: (url: string, meta: {
inputMethod?: RecentSearchInputTypes;
}) => void;
onUnlink: () => void;
onCancel: () => void;
onBlur: (href: string) => void;
onSubmit: (href: string, meta: {
inputMethod: RecentSearchInputTypes;
}) => void;
displayUrl?: string;
};
export declare class LinkAddToolbar extends React.PureComponent<Props & WrappedComponentProps> {
state: {
validationErrors: never[];
};
private handleSubmit;
private handleOnBack;
private handleCancel;
private handleUnlink;
private handleOnBlur;
private getValidationErrors;
private renderContainer;
render(): jsx.JSX.Element;
}
export default LinkAddToolbar;