@atlaskit/editor-plugin-media
Version:
Media plugin for @atlaskit/editor-core
40 lines (39 loc) • 1.24 kB
TypeScript
/**
* @jsxRuntime classic
* @jsx jsx
*/
import React from 'react';
import { jsx } from '@emotion/react';
import type { IntlShape, WrappedComponentProps } from 'react-intl';
import type { RecentSearchInputTypes } from '@atlaskit/editor-common/link';
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
type Props = {
areAnyNewToolbarFlagsEnabled: boolean;
displayUrl?: string;
editing: boolean;
intl: IntlShape;
onBack: (url: string, meta: {
inputMethod?: RecentSearchInputTypes;
}, setFocus?: boolean) => void;
onBlur: (href: string) => void;
onCancel: () => void;
onSubmit: (href: string, meta: {
inputMethod: RecentSearchInputTypes;
}, setFocus?: boolean) => void;
onUnlink: (setFocus?: boolean) => void;
providerFactory: ProviderFactory;
};
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;