@kedao/finder
Version:
Media manager for Kedao Editor.
50 lines (49 loc) • 1.48 kB
TypeScript
import './styles.scss';
import React from 'react';
export default class FinderView extends React.Component<any, any> {
controller: any;
dragCounter: number;
changeListenerId: any;
static defaultProps: {
accepts: {
image: string;
video: string;
audio: string;
};
externals: {
image: boolean;
video: boolean;
audio: boolean;
embed: boolean;
};
};
constructor(props: any);
mapPropsToState(props: any): {
fileAccept: string;
external: {
url: string;
type: string;
};
allowExternal: any;
};
componentDidMount(): void;
UNSAFE_componentWillReceiveProps(nextProps: any): void;
componentWillUnmount(): void;
render(): JSX.Element;
buildItemList(): JSX.Element;
toggleSelectItem: (event: any) => boolean;
removeItem: (event: any) => boolean;
selectAllItems: () => void;
deselectAllItems: () => void;
removeSelectedItems: () => void;
handleDragLeave: (event: any) => void;
handleDragDrop: (event: any) => void;
handleDragEnter: (event: any) => void;
reslovePickedFiles: (event: any) => boolean;
inputExternal: (event: any) => void;
switchExternalType: (event: any) => void;
confirmAddExternal: (event: any) => void;
toggleExternalForm: () => void;
cancelInsert: () => void;
confirmInsert: () => void;
}