/**
* @file Editor
* @description
* @author fex
*/
///
import React from 'react';
import { ClassNamesFn } from 'amis-core';
import { LocaleProps } from 'amis-core';
export declare function monacoFactory(containerElement: HTMLElement, monaco: any, options: any): any;
export interface EditorProps extends LocaleProps {
value?: string;
defaultValue?: string;
width?: number | string;
height?: number | string;
onChange?: (value: string, event: any) => void;
language?: string;
editorTheme?: string;
allowFullscreen?: boolean;
options: {
[propName: string]: any;
};
classPrefix: string;
className?: string;
classnames: ClassNamesFn;
context?: any;
style?: any;
isDiffEditor?: boolean;
placeholder?: string;
onFocus?: () => void;
onBlur?: () => void;
editorDidMount?: (editor: any, monaco: any) => void;
editorWillMount?: (monaco: any) => void;
editorWillUnmount?: (editor: any, monaco: any) => void;
editorFactory?: (conatainer: HTMLElement, monaco: any, options: any) => any;
}
export interface EditorState {
isFullscreen?: boolean;
innerWidth?: any;
innerHeight?: any;
}
export declare class Editor extends React.Component {
static defaultProps: {
language: string;
editorTheme: string;
width: string;
height: string;
allowFullscreen: boolean;
options: {};
};
state: {
isFullscreen: boolean;
innerWidth: string;
innerHeight: string;
};
editor: any;
container: any;
currentValue: any;
preventTriggerChangeEvent: boolean;
disposes: Array<{
dispose: () => void;
}>;
constructor(props: EditorProps);
componentDidUpdate(prevProps: EditorProps): void;
componentWillUnmount(): void;
wrapperRef(ref: any): void;
loadMonaco(): void;
initMonaco(monaco: any): void;
editorWillMount(monaco: any): void;
editorDidMount(editor: any, monaco: any): void;
handleFullscreenModeChange(): void;
render(): React.JSX.Element;
}
declare const _default: {
new (props: Omit, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType<{
new (props: Pick, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType;
} & import("hoist-non-react-statics").NonReactStatics & {
ComposedComponent: typeof Editor;
}>;
} & import("hoist-non-react-statics").NonReactStatics<{
new (props: Pick, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType;
} & import("hoist-non-react-statics").NonReactStatics & {
ComposedComponent: typeof Editor;
}, {}> & {
ComposedComponent: {
new (props: Pick, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
width?: string | number | undefined;
height?: string | number | undefined;
options?: {
[propName: string]: any;
} | undefined;
language?: string | undefined;
editorTheme?: string | undefined;
allowFullscreen?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType;
} & import("hoist-non-react-statics").NonReactStatics & {
ComposedComponent: typeof Editor;
};
};
export default _default;