UNPKG

@prisma-cms/editor

Version:
25 lines (24 loc) 1.05 kB
import React from 'react'; import PropTypes from 'prop-types'; import Decorator from '../../../components/decorator'; export declare class LinkDecorator extends Decorator { static propTypes: { /** * Link component to render */ Component: PropTypes.Validator<(...args: any[]) => any>; entityKey: PropTypes.Validator<string>; children: PropTypes.Requireable<any[]>; contentState: PropTypes.Requireable<object>; onEditStart: PropTypes.Validator<(...args: any[]) => any>; onEditEnd: PropTypes.Validator<(...args: any[]) => any>; onChange: PropTypes.Validator<(...args: any[]) => any>; getEditorState: PropTypes.Validator<(...args: any[]) => any>; isReadOnly: PropTypes.Validator<(...args: any[]) => any>; }; onUrlChange: (event: React.ChangeEvent<HTMLInputElement>) => void; onClick: (event: React.MouseEvent) => any; render(): JSX.Element; } declare const EditorLinkDecorator: (config: any) => any; export default EditorLinkDecorator;