amis 1.6.0 → 1.6.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/lib/components/Alert.d.ts +588 -588
  2. package/lib/components/Alert2.d.ts +125 -20
  3. package/lib/components/AnchorNav.d.ts +104 -20
  4. package/lib/components/ArrayInput.d.ts +420 -420
  5. package/lib/components/AsideNav.d.ts +125 -125
  6. package/lib/components/AssociatedSelection.d.ts +504 -504
  7. package/lib/components/Avatar.d.ts +461 -20
  8. package/lib/components/Button.d.ts +167 -20
  9. package/lib/components/CalendarMobile.d.ts +420 -84
  10. package/lib/components/Card.d.ts +671 -20
  11. package/lib/components/ChainedSelection.d.ts +504 -504
  12. package/lib/components/Checkbox.d.ts +104 -20
  13. package/lib/components/Collapse.d.ts +587 -20
  14. package/lib/components/CollapseGroup.d.ts +230 -20
  15. package/lib/components/ColorPicker.d.ts +504 -504
  16. package/lib/components/DatePicker.d.ts +588 -588
  17. package/lib/components/DateRangePicker.d.ts +1008 -1008
  18. package/lib/components/Drawer.d.ts +125 -20
  19. package/lib/components/Editor.d.ts +840 -672
  20. package/lib/components/GroupedSelection.d.ts +504 -504
  21. package/lib/components/Html.d.ts +62 -62
  22. package/lib/components/InputBox.d.ts +83 -83
  23. package/lib/components/Layout.d.ts +146 -146
  24. package/lib/components/ListGroup.d.ts +62 -62
  25. package/lib/components/ListMenu.d.ts +504 -504
  26. package/lib/components/LocationPicker.d.ts +336 -336
  27. package/lib/components/Modal.d.ts +420 -420
  28. package/lib/components/MonthRangePicker.d.ts +924 -924
  29. package/lib/components/NumberInput.d.ts +104 -20
  30. package/lib/components/PopUp.d.ts +672 -672
  31. package/lib/components/Progress.d.ts +440 -20
  32. package/lib/components/Radios.d.ts +167 -167
  33. package/lib/components/Rating.d.ts +272 -314
  34. package/lib/components/ResultBox.d.ts +504 -84
  35. package/lib/components/ResultList.d.ts +336 -84
  36. package/lib/components/SearchBox.d.ts +336 -336
  37. package/lib/components/Select.d.ts +4977 -4977
  38. package/lib/components/Selection.d.ts +504 -504
  39. package/lib/components/SparkLine.d.ts +336 -336
  40. package/lib/components/Spinner.d.ts +146 -146
  41. package/lib/components/Switch.d.ts +83 -83
  42. package/lib/components/TableSelection.d.ts +672 -672
  43. package/lib/components/Tabs.d.ts +83 -20
  44. package/lib/components/TitleBar.d.ts +146 -125
  45. package/lib/components/Toast.d.ts +504 -84
  46. package/lib/components/TooltipWrapper.d.ts +125 -20
  47. package/lib/components/Transfer.d.ts +252 -84
  48. package/lib/components/TransferDropDown.d.ts +252 -84
  49. package/lib/components/Tree.d.ts +2688 -2688
  50. package/lib/components/TreeSelection.d.ts +588 -588
  51. package/lib/components/formula/Editor.d.ts +420 -84
  52. package/lib/index.js +1 -1
  53. package/lib/renderers/Dialog.d.ts +420 -420
  54. package/lib/renderers/Form/InputCity.d.ts +672 -672
  55. package/lib/renderers/Form/InputColor.d.ts +504 -504
  56. package/lib/renderers/Nav.d.ts +62 -62
  57. package/package.json +1 -1
  58. package/sdk/ang-ie11.css +1 -0
  59. package/sdk/ang.css +1 -0
  60. package/sdk/antd-ie11.css +1 -0
  61. package/sdk/antd.css +1 -0
  62. package/sdk/charts.js +14 -14
  63. package/sdk/codemirror.js +7 -7
  64. package/sdk/color-picker.js +65 -65
  65. package/sdk/cropperjs.js +2 -2
  66. package/sdk/cxd-ie11.css +1 -0
  67. package/sdk/cxd.css +1 -0
  68. package/sdk/dark-ie11.css +1 -0
  69. package/sdk/dark.css +1 -0
  70. package/sdk/exceljs.js +1 -1
  71. package/sdk/markdown.js +69 -69
  72. package/sdk/papaparse.js +3 -3
  73. package/sdk/renderers/Form/CityDB.js +1 -1
  74. package/sdk/rest.js +18 -18
  75. package/sdk/rich-text.js +62 -62
  76. package/sdk/sdk-ie11.css +1 -0
  77. package/sdk/sdk.css +1 -0
  78. package/sdk/sdk.js +1318 -1253
  79. package/sdk/thirds/hls.js/hls.js +1 -1
  80. package/sdk/thirds/mpegts.js/mpegts.js +1 -1
  81. package/sdk/tinymce.js +57 -57
@@ -66,49 +66,57 @@ export declare class Editor extends React.Component<EditorProps, any> {
66
66
  render(): JSX.Element;
67
67
  }
68
68
  declare const _default: {
69
- new (props: (Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
70
- language: string;
71
- editorTheme: string;
72
- width: string;
73
- height: string;
74
- allowFullscreen: boolean;
75
- options: {};
76
- }, never>> & {
69
+ new (props: (Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
70
+ height?: string | number | undefined;
71
+ width?: string | number | undefined;
72
+ options?: {
73
+ [propName: string]: any;
74
+ } | undefined;
75
+ language?: string | undefined;
76
+ allowFullscreen?: boolean | undefined;
77
+ editorTheme?: string | undefined;
78
+ } & {} & {
77
79
  locale?: string | undefined;
78
80
  translate?: ((str: string, ...args: any[]) => string) | undefined;
79
- }, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps) | Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
80
- language: string;
81
- editorTheme: string;
82
- width: string;
83
- height: string;
84
- allowFullscreen: boolean;
85
- options: {};
86
- }, never>> & {
81
+ }, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps) | Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
82
+ height?: string | number | undefined;
83
+ width?: string | number | undefined;
84
+ options?: {
85
+ [propName: string]: any;
86
+ } | undefined;
87
+ language?: string | undefined;
88
+ allowFullscreen?: boolean | undefined;
89
+ editorTheme?: string | undefined;
90
+ } & {} & {
87
91
  locale?: string | undefined;
88
92
  translate?: ((str: string, ...args: any[]) => string) | undefined;
89
93
  }, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>): {
90
94
  render(): JSX.Element;
91
95
  context: any;
92
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
93
- language: string;
94
- editorTheme: string;
95
- width: string;
96
- height: string;
97
- allowFullscreen: boolean;
98
- options: {};
99
- }, never>> & {
96
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
97
+ height?: string | number | undefined;
98
+ width?: string | number | undefined;
99
+ options?: {
100
+ [propName: string]: any;
101
+ } | undefined;
102
+ language?: string | undefined;
103
+ allowFullscreen?: boolean | undefined;
104
+ editorTheme?: string | undefined;
105
+ } & {} & {
100
106
  locale?: string | undefined;
101
107
  translate?: ((str: string, ...args: any[]) => string) | undefined;
102
108
  }, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
103
109
  forceUpdate(callback?: (() => void) | undefined): void;
104
- readonly props: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
105
- language: string;
106
- editorTheme: string;
107
- width: string;
108
- height: string;
109
- allowFullscreen: boolean;
110
- options: {};
111
- }, never>> & {
110
+ readonly props: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
111
+ height?: string | number | undefined;
112
+ width?: string | number | undefined;
113
+ options?: {
114
+ [propName: string]: any;
115
+ } | undefined;
116
+ language?: string | undefined;
117
+ allowFullscreen?: boolean | undefined;
118
+ editorTheme?: string | undefined;
119
+ } & {} & {
112
120
  locale?: string | undefined;
113
121
  translate?: ((str: string, ...args: any[]) => string) | undefined;
114
122
  }, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps> & Readonly<{
@@ -119,121 +127,141 @@ declare const _default: {
119
127
  [key: string]: React.ReactInstance;
120
128
  };
121
129
  componentDidMount?(): void;
122
- shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
123
- language: string;
124
- editorTheme: string;
125
- width: string;
126
- height: string;
127
- allowFullscreen: boolean;
128
- options: {};
129
- }, never>> & {
130
+ shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
131
+ height?: string | number | undefined;
132
+ width?: string | number | undefined;
133
+ options?: {
134
+ [propName: string]: any;
135
+ } | undefined;
136
+ language?: string | undefined;
137
+ allowFullscreen?: boolean | undefined;
138
+ editorTheme?: string | undefined;
139
+ } & {} & {
130
140
  locale?: string | undefined;
131
141
  translate?: ((str: string, ...args: any[]) => string) | undefined;
132
142
  }, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
133
143
  componentWillUnmount?(): void;
134
144
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
135
- getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
136
- language: string;
137
- editorTheme: string;
138
- width: string;
139
- height: string;
140
- allowFullscreen: boolean;
141
- options: {};
142
- }, never>> & {
145
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
146
+ height?: string | number | undefined;
147
+ width?: string | number | undefined;
148
+ options?: {
149
+ [propName: string]: any;
150
+ } | undefined;
151
+ language?: string | undefined;
152
+ allowFullscreen?: boolean | undefined;
153
+ editorTheme?: string | undefined;
154
+ } & {} & {
143
155
  locale?: string | undefined;
144
156
  translate?: ((str: string, ...args: any[]) => string) | undefined;
145
157
  }, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
146
- componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
147
- language: string;
148
- editorTheme: string;
149
- width: string;
150
- height: string;
151
- allowFullscreen: boolean;
152
- options: {};
153
- }, never>> & {
158
+ componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
159
+ height?: string | number | undefined;
160
+ width?: string | number | undefined;
161
+ options?: {
162
+ [propName: string]: any;
163
+ } | undefined;
164
+ language?: string | undefined;
165
+ allowFullscreen?: boolean | undefined;
166
+ editorTheme?: string | undefined;
167
+ } & {} & {
154
168
  locale?: string | undefined;
155
169
  translate?: ((str: string, ...args: any[]) => string) | undefined;
156
170
  }, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
157
171
  componentWillMount?(): void;
158
172
  UNSAFE_componentWillMount?(): void;
159
- componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
160
- language: string;
161
- editorTheme: string;
162
- width: string;
163
- height: string;
164
- allowFullscreen: boolean;
165
- options: {};
166
- }, never>> & {
173
+ componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
174
+ height?: string | number | undefined;
175
+ width?: string | number | undefined;
176
+ options?: {
177
+ [propName: string]: any;
178
+ } | undefined;
179
+ language?: string | undefined;
180
+ allowFullscreen?: boolean | undefined;
181
+ editorTheme?: string | undefined;
182
+ } & {} & {
167
183
  locale?: string | undefined;
168
184
  translate?: ((str: string, ...args: any[]) => string) | undefined;
169
185
  }, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
170
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
171
- language: string;
172
- editorTheme: string;
173
- width: string;
174
- height: string;
175
- allowFullscreen: boolean;
176
- options: {};
177
- }, never>> & {
186
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
187
+ height?: string | number | undefined;
188
+ width?: string | number | undefined;
189
+ options?: {
190
+ [propName: string]: any;
191
+ } | undefined;
192
+ language?: string | undefined;
193
+ allowFullscreen?: boolean | undefined;
194
+ editorTheme?: string | undefined;
195
+ } & {} & {
178
196
  locale?: string | undefined;
179
197
  translate?: ((str: string, ...args: any[]) => string) | undefined;
180
198
  }, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
181
- componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
182
- language: string;
183
- editorTheme: string;
184
- width: string;
185
- height: string;
186
- allowFullscreen: boolean;
187
- options: {};
188
- }, never>> & {
199
+ componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
200
+ height?: string | number | undefined;
201
+ width?: string | number | undefined;
202
+ options?: {
203
+ [propName: string]: any;
204
+ } | undefined;
205
+ language?: string | undefined;
206
+ allowFullscreen?: boolean | undefined;
207
+ editorTheme?: string | undefined;
208
+ } & {} & {
189
209
  locale?: string | undefined;
190
210
  translate?: ((str: string, ...args: any[]) => string) | undefined;
191
211
  }, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
192
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
193
- language: string;
194
- editorTheme: string;
195
- width: string;
196
- height: string;
197
- allowFullscreen: boolean;
198
- options: {};
199
- }, never>> & {
212
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
213
+ height?: string | number | undefined;
214
+ width?: string | number | undefined;
215
+ options?: {
216
+ [propName: string]: any;
217
+ } | undefined;
218
+ language?: string | undefined;
219
+ allowFullscreen?: boolean | undefined;
220
+ editorTheme?: string | undefined;
221
+ } & {} & {
200
222
  locale?: string | undefined;
201
223
  translate?: ((str: string, ...args: any[]) => string) | undefined;
202
224
  }, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
203
225
  };
204
- new (props: Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
205
- language: string;
206
- editorTheme: string;
207
- width: string;
208
- height: string;
209
- allowFullscreen: boolean;
210
- options: {};
211
- }, never>> & {
226
+ new (props: Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
227
+ height?: string | number | undefined;
228
+ width?: string | number | undefined;
229
+ options?: {
230
+ [propName: string]: any;
231
+ } | undefined;
232
+ language?: string | undefined;
233
+ allowFullscreen?: boolean | undefined;
234
+ editorTheme?: string | undefined;
235
+ } & {} & {
212
236
  locale?: string | undefined;
213
237
  translate?: ((str: string, ...args: any[]) => string) | undefined;
214
238
  }, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps, context: any): {
215
239
  render(): JSX.Element;
216
240
  context: any;
217
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
218
- language: string;
219
- editorTheme: string;
220
- width: string;
221
- height: string;
222
- allowFullscreen: boolean;
223
- options: {};
224
- }, never>> & {
241
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
242
+ height?: string | number | undefined;
243
+ width?: string | number | undefined;
244
+ options?: {
245
+ [propName: string]: any;
246
+ } | undefined;
247
+ language?: string | undefined;
248
+ allowFullscreen?: boolean | undefined;
249
+ editorTheme?: string | undefined;
250
+ } & {} & {
225
251
  locale?: string | undefined;
226
252
  translate?: ((str: string, ...args: any[]) => string) | undefined;
227
253
  }, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
228
254
  forceUpdate(callback?: (() => void) | undefined): void;
229
- readonly props: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
230
- language: string;
231
- editorTheme: string;
232
- width: string;
233
- height: string;
234
- allowFullscreen: boolean;
235
- options: {};
236
- }, never>> & {
255
+ readonly props: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
256
+ height?: string | number | undefined;
257
+ width?: string | number | undefined;
258
+ options?: {
259
+ [propName: string]: any;
260
+ } | undefined;
261
+ language?: string | undefined;
262
+ allowFullscreen?: boolean | undefined;
263
+ editorTheme?: string | undefined;
264
+ } & {} & {
237
265
  locale?: string | undefined;
238
266
  translate?: ((str: string, ...args: any[]) => string) | undefined;
239
267
  }, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps> & Readonly<{
@@ -244,84 +272,98 @@ declare const _default: {
244
272
  [key: string]: React.ReactInstance;
245
273
  };
246
274
  componentDidMount?(): void;
247
- shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
248
- language: string;
249
- editorTheme: string;
250
- width: string;
251
- height: string;
252
- allowFullscreen: boolean;
253
- options: {};
254
- }, never>> & {
275
+ shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
276
+ height?: string | number | undefined;
277
+ width?: string | number | undefined;
278
+ options?: {
279
+ [propName: string]: any;
280
+ } | undefined;
281
+ language?: string | undefined;
282
+ allowFullscreen?: boolean | undefined;
283
+ editorTheme?: string | undefined;
284
+ } & {} & {
255
285
  locale?: string | undefined;
256
286
  translate?: ((str: string, ...args: any[]) => string) | undefined;
257
287
  }, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
258
288
  componentWillUnmount?(): void;
259
289
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
260
- getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
261
- language: string;
262
- editorTheme: string;
263
- width: string;
264
- height: string;
265
- allowFullscreen: boolean;
266
- options: {};
267
- }, never>> & {
290
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
291
+ height?: string | number | undefined;
292
+ width?: string | number | undefined;
293
+ options?: {
294
+ [propName: string]: any;
295
+ } | undefined;
296
+ language?: string | undefined;
297
+ allowFullscreen?: boolean | undefined;
298
+ editorTheme?: string | undefined;
299
+ } & {} & {
268
300
  locale?: string | undefined;
269
301
  translate?: ((str: string, ...args: any[]) => string) | undefined;
270
302
  }, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
271
- componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
272
- language: string;
273
- editorTheme: string;
274
- width: string;
275
- height: string;
276
- allowFullscreen: boolean;
277
- options: {};
278
- }, never>> & {
303
+ componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
304
+ height?: string | number | undefined;
305
+ width?: string | number | undefined;
306
+ options?: {
307
+ [propName: string]: any;
308
+ } | undefined;
309
+ language?: string | undefined;
310
+ allowFullscreen?: boolean | undefined;
311
+ editorTheme?: string | undefined;
312
+ } & {} & {
279
313
  locale?: string | undefined;
280
314
  translate?: ((str: string, ...args: any[]) => string) | undefined;
281
315
  }, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
282
316
  componentWillMount?(): void;
283
317
  UNSAFE_componentWillMount?(): void;
284
- componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
285
- language: string;
286
- editorTheme: string;
287
- width: string;
288
- height: string;
289
- allowFullscreen: boolean;
290
- options: {};
291
- }, never>> & {
318
+ componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
319
+ height?: string | number | undefined;
320
+ width?: string | number | undefined;
321
+ options?: {
322
+ [propName: string]: any;
323
+ } | undefined;
324
+ language?: string | undefined;
325
+ allowFullscreen?: boolean | undefined;
326
+ editorTheme?: string | undefined;
327
+ } & {} & {
292
328
  locale?: string | undefined;
293
329
  translate?: ((str: string, ...args: any[]) => string) | undefined;
294
330
  }, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
295
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
296
- language: string;
297
- editorTheme: string;
298
- width: string;
299
- height: string;
300
- allowFullscreen: boolean;
301
- options: {};
302
- }, never>> & {
331
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
332
+ height?: string | number | undefined;
333
+ width?: string | number | undefined;
334
+ options?: {
335
+ [propName: string]: any;
336
+ } | undefined;
337
+ language?: string | undefined;
338
+ allowFullscreen?: boolean | undefined;
339
+ editorTheme?: string | undefined;
340
+ } & {} & {
303
341
  locale?: string | undefined;
304
342
  translate?: ((str: string, ...args: any[]) => string) | undefined;
305
343
  }, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
306
- componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
307
- language: string;
308
- editorTheme: string;
309
- width: string;
310
- height: string;
311
- allowFullscreen: boolean;
312
- options: {};
313
- }, never>> & {
344
+ componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
345
+ height?: string | number | undefined;
346
+ width?: string | number | undefined;
347
+ options?: {
348
+ [propName: string]: any;
349
+ } | undefined;
350
+ language?: string | undefined;
351
+ allowFullscreen?: boolean | undefined;
352
+ editorTheme?: string | undefined;
353
+ } & {} & {
314
354
  locale?: string | undefined;
315
355
  translate?: ((str: string, ...args: any[]) => string) | undefined;
316
356
  }, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
317
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
318
- language: string;
319
- editorTheme: string;
320
- width: string;
321
- height: string;
322
- allowFullscreen: boolean;
323
- options: {};
324
- }, never>> & {
357
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
358
+ height?: string | number | undefined;
359
+ width?: string | number | undefined;
360
+ options?: {
361
+ [propName: string]: any;
362
+ } | undefined;
363
+ language?: string | undefined;
364
+ allowFullscreen?: boolean | undefined;
365
+ editorTheme?: string | undefined;
366
+ } & {} & {
325
367
  locale?: string | undefined;
326
368
  translate?: ((str: string, ...args: any[]) => string) | undefined;
327
369
  }, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
@@ -329,49 +371,57 @@ declare const _default: {
329
371
  displayName: string;
330
372
  contextType: React.Context<string>;
331
373
  ComposedComponent: React.ComponentType<{
332
- new (props: (Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
333
- language: string;
334
- editorTheme: string;
335
- width: string;
336
- height: string;
337
- allowFullscreen: boolean;
338
- options: {};
339
- }, never>> & {
374
+ new (props: (Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
375
+ height?: string | number | undefined;
376
+ width?: string | number | undefined;
377
+ options?: {
378
+ [propName: string]: any;
379
+ } | undefined;
380
+ language?: string | undefined;
381
+ allowFullscreen?: boolean | undefined;
382
+ editorTheme?: string | undefined;
383
+ } & {} & {
340
384
  locale?: string | undefined;
341
385
  translate?: ((str: string, ...args: any[]) => string) | undefined;
342
- }) | Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
343
- language: string;
344
- editorTheme: string;
345
- width: string;
346
- height: string;
347
- allowFullscreen: boolean;
348
- options: {};
349
- }, never>> & {
386
+ }) | Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
387
+ height?: string | number | undefined;
388
+ width?: string | number | undefined;
389
+ options?: {
390
+ [propName: string]: any;
391
+ } | undefined;
392
+ language?: string | undefined;
393
+ allowFullscreen?: boolean | undefined;
394
+ editorTheme?: string | undefined;
395
+ } & {} & {
350
396
  locale?: string | undefined;
351
397
  translate?: ((str: string, ...args: any[]) => string) | undefined;
352
398
  }>): {
353
399
  render(): JSX.Element;
354
400
  context: any;
355
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
356
- language: string;
357
- editorTheme: string;
358
- width: string;
359
- height: string;
360
- allowFullscreen: boolean;
361
- options: {};
362
- }, never>> & {
401
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
402
+ height?: string | number | undefined;
403
+ width?: string | number | undefined;
404
+ options?: {
405
+ [propName: string]: any;
406
+ } | undefined;
407
+ language?: string | undefined;
408
+ allowFullscreen?: boolean | undefined;
409
+ editorTheme?: string | undefined;
410
+ } & {} & {
363
411
  locale?: string | undefined;
364
412
  translate?: ((str: string, ...args: any[]) => string) | undefined;
365
413
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
366
414
  forceUpdate(callback?: (() => void) | undefined): void;
367
- readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
368
- language: string;
369
- editorTheme: string;
370
- width: string;
371
- height: string;
372
- allowFullscreen: boolean;
373
- options: {};
374
- }, never>> & {
415
+ readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
416
+ height?: string | number | undefined;
417
+ width?: string | number | undefined;
418
+ options?: {
419
+ [propName: string]: any;
420
+ } | undefined;
421
+ language?: string | undefined;
422
+ allowFullscreen?: boolean | undefined;
423
+ editorTheme?: string | undefined;
424
+ } & {} & {
375
425
  locale?: string | undefined;
376
426
  translate?: ((str: string, ...args: any[]) => string) | undefined;
377
427
  }> & Readonly<{
@@ -382,121 +432,141 @@ declare const _default: {
382
432
  [key: string]: React.ReactInstance;
383
433
  };
384
434
  componentDidMount?(): void;
385
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
386
- language: string;
387
- editorTheme: string;
388
- width: string;
389
- height: string;
390
- allowFullscreen: boolean;
391
- options: {};
392
- }, never>> & {
435
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
436
+ height?: string | number | undefined;
437
+ width?: string | number | undefined;
438
+ options?: {
439
+ [propName: string]: any;
440
+ } | undefined;
441
+ language?: string | undefined;
442
+ allowFullscreen?: boolean | undefined;
443
+ editorTheme?: string | undefined;
444
+ } & {} & {
393
445
  locale?: string | undefined;
394
446
  translate?: ((str: string, ...args: any[]) => string) | undefined;
395
447
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
396
448
  componentWillUnmount?(): void;
397
449
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
398
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
399
- language: string;
400
- editorTheme: string;
401
- width: string;
402
- height: string;
403
- allowFullscreen: boolean;
404
- options: {};
405
- }, never>> & {
450
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
451
+ height?: string | number | undefined;
452
+ width?: string | number | undefined;
453
+ options?: {
454
+ [propName: string]: any;
455
+ } | undefined;
456
+ language?: string | undefined;
457
+ allowFullscreen?: boolean | undefined;
458
+ editorTheme?: string | undefined;
459
+ } & {} & {
406
460
  locale?: string | undefined;
407
461
  translate?: ((str: string, ...args: any[]) => string) | undefined;
408
462
  }>, prevState: Readonly<{}>): any;
409
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
410
- language: string;
411
- editorTheme: string;
412
- width: string;
413
- height: string;
414
- allowFullscreen: boolean;
415
- options: {};
416
- }, never>> & {
463
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
464
+ height?: string | number | undefined;
465
+ width?: string | number | undefined;
466
+ options?: {
467
+ [propName: string]: any;
468
+ } | undefined;
469
+ language?: string | undefined;
470
+ allowFullscreen?: boolean | undefined;
471
+ editorTheme?: string | undefined;
472
+ } & {} & {
417
473
  locale?: string | undefined;
418
474
  translate?: ((str: string, ...args: any[]) => string) | undefined;
419
475
  }>, prevState: Readonly<{}>, snapshot?: any): void;
420
476
  componentWillMount?(): void;
421
477
  UNSAFE_componentWillMount?(): void;
422
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
423
- language: string;
424
- editorTheme: string;
425
- width: string;
426
- height: string;
427
- allowFullscreen: boolean;
428
- options: {};
429
- }, never>> & {
478
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
479
+ height?: string | number | undefined;
480
+ width?: string | number | undefined;
481
+ options?: {
482
+ [propName: string]: any;
483
+ } | undefined;
484
+ language?: string | undefined;
485
+ allowFullscreen?: boolean | undefined;
486
+ editorTheme?: string | undefined;
487
+ } & {} & {
430
488
  locale?: string | undefined;
431
489
  translate?: ((str: string, ...args: any[]) => string) | undefined;
432
490
  }>, nextContext: any): void;
433
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
434
- language: string;
435
- editorTheme: string;
436
- width: string;
437
- height: string;
438
- allowFullscreen: boolean;
439
- options: {};
440
- }, never>> & {
491
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
492
+ height?: string | number | undefined;
493
+ width?: string | number | undefined;
494
+ options?: {
495
+ [propName: string]: any;
496
+ } | undefined;
497
+ language?: string | undefined;
498
+ allowFullscreen?: boolean | undefined;
499
+ editorTheme?: string | undefined;
500
+ } & {} & {
441
501
  locale?: string | undefined;
442
502
  translate?: ((str: string, ...args: any[]) => string) | undefined;
443
503
  }>, nextContext: any): void;
444
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
445
- language: string;
446
- editorTheme: string;
447
- width: string;
448
- height: string;
449
- allowFullscreen: boolean;
450
- options: {};
451
- }, never>> & {
504
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
505
+ height?: string | number | undefined;
506
+ width?: string | number | undefined;
507
+ options?: {
508
+ [propName: string]: any;
509
+ } | undefined;
510
+ language?: string | undefined;
511
+ allowFullscreen?: boolean | undefined;
512
+ editorTheme?: string | undefined;
513
+ } & {} & {
452
514
  locale?: string | undefined;
453
515
  translate?: ((str: string, ...args: any[]) => string) | undefined;
454
516
  }>, nextState: Readonly<{}>, nextContext: any): void;
455
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
456
- language: string;
457
- editorTheme: string;
458
- width: string;
459
- height: string;
460
- allowFullscreen: boolean;
461
- options: {};
462
- }, never>> & {
517
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
518
+ height?: string | number | undefined;
519
+ width?: string | number | undefined;
520
+ options?: {
521
+ [propName: string]: any;
522
+ } | undefined;
523
+ language?: string | undefined;
524
+ allowFullscreen?: boolean | undefined;
525
+ editorTheme?: string | undefined;
526
+ } & {} & {
463
527
  locale?: string | undefined;
464
528
  translate?: ((str: string, ...args: any[]) => string) | undefined;
465
529
  }>, nextState: Readonly<{}>, nextContext: any): void;
466
530
  };
467
- new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
468
- language: string;
469
- editorTheme: string;
470
- width: string;
471
- height: string;
472
- allowFullscreen: boolean;
473
- options: {};
474
- }, never>> & {
531
+ new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
532
+ height?: string | number | undefined;
533
+ width?: string | number | undefined;
534
+ options?: {
535
+ [propName: string]: any;
536
+ } | undefined;
537
+ language?: string | undefined;
538
+ allowFullscreen?: boolean | undefined;
539
+ editorTheme?: string | undefined;
540
+ } & {} & {
475
541
  locale?: string | undefined;
476
542
  translate?: ((str: string, ...args: any[]) => string) | undefined;
477
543
  }, context: any): {
478
544
  render(): JSX.Element;
479
545
  context: any;
480
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
481
- language: string;
482
- editorTheme: string;
483
- width: string;
484
- height: string;
485
- allowFullscreen: boolean;
486
- options: {};
487
- }, never>> & {
546
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
547
+ height?: string | number | undefined;
548
+ width?: string | number | undefined;
549
+ options?: {
550
+ [propName: string]: any;
551
+ } | undefined;
552
+ language?: string | undefined;
553
+ allowFullscreen?: boolean | undefined;
554
+ editorTheme?: string | undefined;
555
+ } & {} & {
488
556
  locale?: string | undefined;
489
557
  translate?: ((str: string, ...args: any[]) => string) | undefined;
490
558
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
491
559
  forceUpdate(callback?: (() => void) | undefined): void;
492
- readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
493
- language: string;
494
- editorTheme: string;
495
- width: string;
496
- height: string;
497
- allowFullscreen: boolean;
498
- options: {};
499
- }, never>> & {
560
+ readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
561
+ height?: string | number | undefined;
562
+ width?: string | number | undefined;
563
+ options?: {
564
+ [propName: string]: any;
565
+ } | undefined;
566
+ language?: string | undefined;
567
+ allowFullscreen?: boolean | undefined;
568
+ editorTheme?: string | undefined;
569
+ } & {} & {
500
570
  locale?: string | undefined;
501
571
  translate?: ((str: string, ...args: any[]) => string) | undefined;
502
572
  }> & Readonly<{
@@ -507,84 +577,98 @@ declare const _default: {
507
577
  [key: string]: React.ReactInstance;
508
578
  };
509
579
  componentDidMount?(): void;
510
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
511
- language: string;
512
- editorTheme: string;
513
- width: string;
514
- height: string;
515
- allowFullscreen: boolean;
516
- options: {};
517
- }, never>> & {
580
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
581
+ height?: string | number | undefined;
582
+ width?: string | number | undefined;
583
+ options?: {
584
+ [propName: string]: any;
585
+ } | undefined;
586
+ language?: string | undefined;
587
+ allowFullscreen?: boolean | undefined;
588
+ editorTheme?: string | undefined;
589
+ } & {} & {
518
590
  locale?: string | undefined;
519
591
  translate?: ((str: string, ...args: any[]) => string) | undefined;
520
592
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
521
593
  componentWillUnmount?(): void;
522
594
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
523
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
524
- language: string;
525
- editorTheme: string;
526
- width: string;
527
- height: string;
528
- allowFullscreen: boolean;
529
- options: {};
530
- }, never>> & {
595
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
596
+ height?: string | number | undefined;
597
+ width?: string | number | undefined;
598
+ options?: {
599
+ [propName: string]: any;
600
+ } | undefined;
601
+ language?: string | undefined;
602
+ allowFullscreen?: boolean | undefined;
603
+ editorTheme?: string | undefined;
604
+ } & {} & {
531
605
  locale?: string | undefined;
532
606
  translate?: ((str: string, ...args: any[]) => string) | undefined;
533
607
  }>, prevState: Readonly<{}>): any;
534
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
535
- language: string;
536
- editorTheme: string;
537
- width: string;
538
- height: string;
539
- allowFullscreen: boolean;
540
- options: {};
541
- }, never>> & {
608
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
609
+ height?: string | number | undefined;
610
+ width?: string | number | undefined;
611
+ options?: {
612
+ [propName: string]: any;
613
+ } | undefined;
614
+ language?: string | undefined;
615
+ allowFullscreen?: boolean | undefined;
616
+ editorTheme?: string | undefined;
617
+ } & {} & {
542
618
  locale?: string | undefined;
543
619
  translate?: ((str: string, ...args: any[]) => string) | undefined;
544
620
  }>, prevState: Readonly<{}>, snapshot?: any): void;
545
621
  componentWillMount?(): void;
546
622
  UNSAFE_componentWillMount?(): void;
547
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
548
- language: string;
549
- editorTheme: string;
550
- width: string;
551
- height: string;
552
- allowFullscreen: boolean;
553
- options: {};
554
- }, never>> & {
623
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
624
+ height?: string | number | undefined;
625
+ width?: string | number | undefined;
626
+ options?: {
627
+ [propName: string]: any;
628
+ } | undefined;
629
+ language?: string | undefined;
630
+ allowFullscreen?: boolean | undefined;
631
+ editorTheme?: string | undefined;
632
+ } & {} & {
555
633
  locale?: string | undefined;
556
634
  translate?: ((str: string, ...args: any[]) => string) | undefined;
557
635
  }>, nextContext: any): void;
558
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
559
- language: string;
560
- editorTheme: string;
561
- width: string;
562
- height: string;
563
- allowFullscreen: boolean;
564
- options: {};
565
- }, never>> & {
636
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
637
+ height?: string | number | undefined;
638
+ width?: string | number | undefined;
639
+ options?: {
640
+ [propName: string]: any;
641
+ } | undefined;
642
+ language?: string | undefined;
643
+ allowFullscreen?: boolean | undefined;
644
+ editorTheme?: string | undefined;
645
+ } & {} & {
566
646
  locale?: string | undefined;
567
647
  translate?: ((str: string, ...args: any[]) => string) | undefined;
568
648
  }>, nextContext: any): void;
569
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
570
- language: string;
571
- editorTheme: string;
572
- width: string;
573
- height: string;
574
- allowFullscreen: boolean;
575
- options: {};
576
- }, never>> & {
649
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
650
+ height?: string | number | undefined;
651
+ width?: string | number | undefined;
652
+ options?: {
653
+ [propName: string]: any;
654
+ } | undefined;
655
+ language?: string | undefined;
656
+ allowFullscreen?: boolean | undefined;
657
+ editorTheme?: string | undefined;
658
+ } & {} & {
577
659
  locale?: string | undefined;
578
660
  translate?: ((str: string, ...args: any[]) => string) | undefined;
579
661
  }>, nextState: Readonly<{}>, nextContext: any): void;
580
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
581
- language: string;
582
- editorTheme: string;
583
- width: string;
584
- height: string;
585
- allowFullscreen: boolean;
586
- options: {};
587
- }, never>> & {
662
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
663
+ height?: string | number | undefined;
664
+ width?: string | number | undefined;
665
+ options?: {
666
+ [propName: string]: any;
667
+ } | undefined;
668
+ language?: string | undefined;
669
+ allowFullscreen?: boolean | undefined;
670
+ editorTheme?: string | undefined;
671
+ } & {} & {
588
672
  locale?: string | undefined;
589
673
  translate?: ((str: string, ...args: any[]) => string) | undefined;
590
674
  }>, nextState: Readonly<{}>, nextContext: any): void;
@@ -596,49 +680,57 @@ declare const _default: {
596
680
  ComposedComponent: typeof Editor;
597
681
  }>;
598
682
  } & import("hoist-non-react-statics").NonReactStatics<{
599
- new (props: (Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
600
- language: string;
601
- editorTheme: string;
602
- width: string;
603
- height: string;
604
- allowFullscreen: boolean;
605
- options: {};
606
- }, never>> & {
683
+ new (props: (Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
684
+ height?: string | number | undefined;
685
+ width?: string | number | undefined;
686
+ options?: {
687
+ [propName: string]: any;
688
+ } | undefined;
689
+ language?: string | undefined;
690
+ allowFullscreen?: boolean | undefined;
691
+ editorTheme?: string | undefined;
692
+ } & {} & {
607
693
  locale?: string | undefined;
608
694
  translate?: ((str: string, ...args: any[]) => string) | undefined;
609
- }) | Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
610
- language: string;
611
- editorTheme: string;
612
- width: string;
613
- height: string;
614
- allowFullscreen: boolean;
615
- options: {};
616
- }, never>> & {
695
+ }) | Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
696
+ height?: string | number | undefined;
697
+ width?: string | number | undefined;
698
+ options?: {
699
+ [propName: string]: any;
700
+ } | undefined;
701
+ language?: string | undefined;
702
+ allowFullscreen?: boolean | undefined;
703
+ editorTheme?: string | undefined;
704
+ } & {} & {
617
705
  locale?: string | undefined;
618
706
  translate?: ((str: string, ...args: any[]) => string) | undefined;
619
707
  }>): {
620
708
  render(): JSX.Element;
621
709
  context: any;
622
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
623
- language: string;
624
- editorTheme: string;
625
- width: string;
626
- height: string;
627
- allowFullscreen: boolean;
628
- options: {};
629
- }, never>> & {
710
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
711
+ height?: string | number | undefined;
712
+ width?: string | number | undefined;
713
+ options?: {
714
+ [propName: string]: any;
715
+ } | undefined;
716
+ language?: string | undefined;
717
+ allowFullscreen?: boolean | undefined;
718
+ editorTheme?: string | undefined;
719
+ } & {} & {
630
720
  locale?: string | undefined;
631
721
  translate?: ((str: string, ...args: any[]) => string) | undefined;
632
722
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
633
723
  forceUpdate(callback?: (() => void) | undefined): void;
634
- readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
635
- language: string;
636
- editorTheme: string;
637
- width: string;
638
- height: string;
639
- allowFullscreen: boolean;
640
- options: {};
641
- }, never>> & {
724
+ readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
725
+ height?: string | number | undefined;
726
+ width?: string | number | undefined;
727
+ options?: {
728
+ [propName: string]: any;
729
+ } | undefined;
730
+ language?: string | undefined;
731
+ allowFullscreen?: boolean | undefined;
732
+ editorTheme?: string | undefined;
733
+ } & {} & {
642
734
  locale?: string | undefined;
643
735
  translate?: ((str: string, ...args: any[]) => string) | undefined;
644
736
  }> & Readonly<{
@@ -649,121 +741,141 @@ declare const _default: {
649
741
  [key: string]: React.ReactInstance;
650
742
  };
651
743
  componentDidMount?(): void;
652
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
653
- language: string;
654
- editorTheme: string;
655
- width: string;
656
- height: string;
657
- allowFullscreen: boolean;
658
- options: {};
659
- }, never>> & {
744
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
745
+ height?: string | number | undefined;
746
+ width?: string | number | undefined;
747
+ options?: {
748
+ [propName: string]: any;
749
+ } | undefined;
750
+ language?: string | undefined;
751
+ allowFullscreen?: boolean | undefined;
752
+ editorTheme?: string | undefined;
753
+ } & {} & {
660
754
  locale?: string | undefined;
661
755
  translate?: ((str: string, ...args: any[]) => string) | undefined;
662
756
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
663
757
  componentWillUnmount?(): void;
664
758
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
665
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
666
- language: string;
667
- editorTheme: string;
668
- width: string;
669
- height: string;
670
- allowFullscreen: boolean;
671
- options: {};
672
- }, never>> & {
759
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
760
+ height?: string | number | undefined;
761
+ width?: string | number | undefined;
762
+ options?: {
763
+ [propName: string]: any;
764
+ } | undefined;
765
+ language?: string | undefined;
766
+ allowFullscreen?: boolean | undefined;
767
+ editorTheme?: string | undefined;
768
+ } & {} & {
673
769
  locale?: string | undefined;
674
770
  translate?: ((str: string, ...args: any[]) => string) | undefined;
675
771
  }>, prevState: Readonly<{}>): any;
676
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
677
- language: string;
678
- editorTheme: string;
679
- width: string;
680
- height: string;
681
- allowFullscreen: boolean;
682
- options: {};
683
- }, never>> & {
772
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
773
+ height?: string | number | undefined;
774
+ width?: string | number | undefined;
775
+ options?: {
776
+ [propName: string]: any;
777
+ } | undefined;
778
+ language?: string | undefined;
779
+ allowFullscreen?: boolean | undefined;
780
+ editorTheme?: string | undefined;
781
+ } & {} & {
684
782
  locale?: string | undefined;
685
783
  translate?: ((str: string, ...args: any[]) => string) | undefined;
686
784
  }>, prevState: Readonly<{}>, snapshot?: any): void;
687
785
  componentWillMount?(): void;
688
786
  UNSAFE_componentWillMount?(): void;
689
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
690
- language: string;
691
- editorTheme: string;
692
- width: string;
693
- height: string;
694
- allowFullscreen: boolean;
695
- options: {};
696
- }, never>> & {
787
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
788
+ height?: string | number | undefined;
789
+ width?: string | number | undefined;
790
+ options?: {
791
+ [propName: string]: any;
792
+ } | undefined;
793
+ language?: string | undefined;
794
+ allowFullscreen?: boolean | undefined;
795
+ editorTheme?: string | undefined;
796
+ } & {} & {
697
797
  locale?: string | undefined;
698
798
  translate?: ((str: string, ...args: any[]) => string) | undefined;
699
799
  }>, nextContext: any): void;
700
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
701
- language: string;
702
- editorTheme: string;
703
- width: string;
704
- height: string;
705
- allowFullscreen: boolean;
706
- options: {};
707
- }, never>> & {
800
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
801
+ height?: string | number | undefined;
802
+ width?: string | number | undefined;
803
+ options?: {
804
+ [propName: string]: any;
805
+ } | undefined;
806
+ language?: string | undefined;
807
+ allowFullscreen?: boolean | undefined;
808
+ editorTheme?: string | undefined;
809
+ } & {} & {
708
810
  locale?: string | undefined;
709
811
  translate?: ((str: string, ...args: any[]) => string) | undefined;
710
812
  }>, nextContext: any): void;
711
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
712
- language: string;
713
- editorTheme: string;
714
- width: string;
715
- height: string;
716
- allowFullscreen: boolean;
717
- options: {};
718
- }, never>> & {
813
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
814
+ height?: string | number | undefined;
815
+ width?: string | number | undefined;
816
+ options?: {
817
+ [propName: string]: any;
818
+ } | undefined;
819
+ language?: string | undefined;
820
+ allowFullscreen?: boolean | undefined;
821
+ editorTheme?: string | undefined;
822
+ } & {} & {
719
823
  locale?: string | undefined;
720
824
  translate?: ((str: string, ...args: any[]) => string) | undefined;
721
825
  }>, nextState: Readonly<{}>, nextContext: any): void;
722
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
723
- language: string;
724
- editorTheme: string;
725
- width: string;
726
- height: string;
727
- allowFullscreen: boolean;
728
- options: {};
729
- }, never>> & {
826
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
827
+ height?: string | number | undefined;
828
+ width?: string | number | undefined;
829
+ options?: {
830
+ [propName: string]: any;
831
+ } | undefined;
832
+ language?: string | undefined;
833
+ allowFullscreen?: boolean | undefined;
834
+ editorTheme?: string | undefined;
835
+ } & {} & {
730
836
  locale?: string | undefined;
731
837
  translate?: ((str: string, ...args: any[]) => string) | undefined;
732
838
  }>, nextState: Readonly<{}>, nextContext: any): void;
733
839
  };
734
- new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
735
- language: string;
736
- editorTheme: string;
737
- width: string;
738
- height: string;
739
- allowFullscreen: boolean;
740
- options: {};
741
- }, never>> & {
840
+ new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
841
+ height?: string | number | undefined;
842
+ width?: string | number | undefined;
843
+ options?: {
844
+ [propName: string]: any;
845
+ } | undefined;
846
+ language?: string | undefined;
847
+ allowFullscreen?: boolean | undefined;
848
+ editorTheme?: string | undefined;
849
+ } & {} & {
742
850
  locale?: string | undefined;
743
851
  translate?: ((str: string, ...args: any[]) => string) | undefined;
744
852
  }, context: any): {
745
853
  render(): JSX.Element;
746
854
  context: any;
747
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
748
- language: string;
749
- editorTheme: string;
750
- width: string;
751
- height: string;
752
- allowFullscreen: boolean;
753
- options: {};
754
- }, never>> & {
855
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
856
+ height?: string | number | undefined;
857
+ width?: string | number | undefined;
858
+ options?: {
859
+ [propName: string]: any;
860
+ } | undefined;
861
+ language?: string | undefined;
862
+ allowFullscreen?: boolean | undefined;
863
+ editorTheme?: string | undefined;
864
+ } & {} & {
755
865
  locale?: string | undefined;
756
866
  translate?: ((str: string, ...args: any[]) => string) | undefined;
757
867
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
758
868
  forceUpdate(callback?: (() => void) | undefined): void;
759
- readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
760
- language: string;
761
- editorTheme: string;
762
- width: string;
763
- height: string;
764
- allowFullscreen: boolean;
765
- options: {};
766
- }, never>> & {
869
+ readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
870
+ height?: string | number | undefined;
871
+ width?: string | number | undefined;
872
+ options?: {
873
+ [propName: string]: any;
874
+ } | undefined;
875
+ language?: string | undefined;
876
+ allowFullscreen?: boolean | undefined;
877
+ editorTheme?: string | undefined;
878
+ } & {} & {
767
879
  locale?: string | undefined;
768
880
  translate?: ((str: string, ...args: any[]) => string) | undefined;
769
881
  }> & Readonly<{
@@ -774,84 +886,98 @@ declare const _default: {
774
886
  [key: string]: React.ReactInstance;
775
887
  };
776
888
  componentDidMount?(): void;
777
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
778
- language: string;
779
- editorTheme: string;
780
- width: string;
781
- height: string;
782
- allowFullscreen: boolean;
783
- options: {};
784
- }, never>> & {
889
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
890
+ height?: string | number | undefined;
891
+ width?: string | number | undefined;
892
+ options?: {
893
+ [propName: string]: any;
894
+ } | undefined;
895
+ language?: string | undefined;
896
+ allowFullscreen?: boolean | undefined;
897
+ editorTheme?: string | undefined;
898
+ } & {} & {
785
899
  locale?: string | undefined;
786
900
  translate?: ((str: string, ...args: any[]) => string) | undefined;
787
901
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
788
902
  componentWillUnmount?(): void;
789
903
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
790
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
791
- language: string;
792
- editorTheme: string;
793
- width: string;
794
- height: string;
795
- allowFullscreen: boolean;
796
- options: {};
797
- }, never>> & {
904
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
905
+ height?: string | number | undefined;
906
+ width?: string | number | undefined;
907
+ options?: {
908
+ [propName: string]: any;
909
+ } | undefined;
910
+ language?: string | undefined;
911
+ allowFullscreen?: boolean | undefined;
912
+ editorTheme?: string | undefined;
913
+ } & {} & {
798
914
  locale?: string | undefined;
799
915
  translate?: ((str: string, ...args: any[]) => string) | undefined;
800
916
  }>, prevState: Readonly<{}>): any;
801
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
802
- language: string;
803
- editorTheme: string;
804
- width: string;
805
- height: string;
806
- allowFullscreen: boolean;
807
- options: {};
808
- }, never>> & {
917
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
918
+ height?: string | number | undefined;
919
+ width?: string | number | undefined;
920
+ options?: {
921
+ [propName: string]: any;
922
+ } | undefined;
923
+ language?: string | undefined;
924
+ allowFullscreen?: boolean | undefined;
925
+ editorTheme?: string | undefined;
926
+ } & {} & {
809
927
  locale?: string | undefined;
810
928
  translate?: ((str: string, ...args: any[]) => string) | undefined;
811
929
  }>, prevState: Readonly<{}>, snapshot?: any): void;
812
930
  componentWillMount?(): void;
813
931
  UNSAFE_componentWillMount?(): void;
814
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
815
- language: string;
816
- editorTheme: string;
817
- width: string;
818
- height: string;
819
- allowFullscreen: boolean;
820
- options: {};
821
- }, never>> & {
932
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
933
+ height?: string | number | undefined;
934
+ width?: string | number | undefined;
935
+ options?: {
936
+ [propName: string]: any;
937
+ } | undefined;
938
+ language?: string | undefined;
939
+ allowFullscreen?: boolean | undefined;
940
+ editorTheme?: string | undefined;
941
+ } & {} & {
822
942
  locale?: string | undefined;
823
943
  translate?: ((str: string, ...args: any[]) => string) | undefined;
824
944
  }>, nextContext: any): void;
825
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
826
- language: string;
827
- editorTheme: string;
828
- width: string;
829
- height: string;
830
- allowFullscreen: boolean;
831
- options: {};
832
- }, never>> & {
945
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
946
+ height?: string | number | undefined;
947
+ width?: string | number | undefined;
948
+ options?: {
949
+ [propName: string]: any;
950
+ } | undefined;
951
+ language?: string | undefined;
952
+ allowFullscreen?: boolean | undefined;
953
+ editorTheme?: string | undefined;
954
+ } & {} & {
833
955
  locale?: string | undefined;
834
956
  translate?: ((str: string, ...args: any[]) => string) | undefined;
835
957
  }>, nextContext: any): void;
836
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
837
- language: string;
838
- editorTheme: string;
839
- width: string;
840
- height: string;
841
- allowFullscreen: boolean;
842
- options: {};
843
- }, never>> & {
958
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
959
+ height?: string | number | undefined;
960
+ width?: string | number | undefined;
961
+ options?: {
962
+ [propName: string]: any;
963
+ } | undefined;
964
+ language?: string | undefined;
965
+ allowFullscreen?: boolean | undefined;
966
+ editorTheme?: string | undefined;
967
+ } & {} & {
844
968
  locale?: string | undefined;
845
969
  translate?: ((str: string, ...args: any[]) => string) | undefined;
846
970
  }>, nextState: Readonly<{}>, nextContext: any): void;
847
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
848
- language: string;
849
- editorTheme: string;
850
- width: string;
851
- height: string;
852
- allowFullscreen: boolean;
853
- options: {};
854
- }, never>> & {
971
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
972
+ height?: string | number | undefined;
973
+ width?: string | number | undefined;
974
+ options?: {
975
+ [propName: string]: any;
976
+ } | undefined;
977
+ language?: string | undefined;
978
+ allowFullscreen?: boolean | undefined;
979
+ editorTheme?: string | undefined;
980
+ } & {} & {
855
981
  locale?: string | undefined;
856
982
  translate?: ((str: string, ...args: any[]) => string) | undefined;
857
983
  }>, nextState: Readonly<{}>, nextContext: any): void;
@@ -863,49 +989,57 @@ declare const _default: {
863
989
  ComposedComponent: typeof Editor;
864
990
  }, {}> & {
865
991
  ComposedComponent: {
866
- new (props: (Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
867
- language: string;
868
- editorTheme: string;
869
- width: string;
870
- height: string;
871
- allowFullscreen: boolean;
872
- options: {};
873
- }, never>> & {
992
+ new (props: (Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
993
+ height?: string | number | undefined;
994
+ width?: string | number | undefined;
995
+ options?: {
996
+ [propName: string]: any;
997
+ } | undefined;
998
+ language?: string | undefined;
999
+ allowFullscreen?: boolean | undefined;
1000
+ editorTheme?: string | undefined;
1001
+ } & {} & {
874
1002
  locale?: string | undefined;
875
1003
  translate?: ((str: string, ...args: any[]) => string) | undefined;
876
- }) | Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
877
- language: string;
878
- editorTheme: string;
879
- width: string;
880
- height: string;
881
- allowFullscreen: boolean;
882
- options: {};
883
- }, never>> & {
1004
+ }) | Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
1005
+ height?: string | number | undefined;
1006
+ width?: string | number | undefined;
1007
+ options?: {
1008
+ [propName: string]: any;
1009
+ } | undefined;
1010
+ language?: string | undefined;
1011
+ allowFullscreen?: boolean | undefined;
1012
+ editorTheme?: string | undefined;
1013
+ } & {} & {
884
1014
  locale?: string | undefined;
885
1015
  translate?: ((str: string, ...args: any[]) => string) | undefined;
886
1016
  }>): {
887
1017
  render(): JSX.Element;
888
1018
  context: any;
889
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
890
- language: string;
891
- editorTheme: string;
892
- width: string;
893
- height: string;
894
- allowFullscreen: boolean;
895
- options: {};
896
- }, never>> & {
1019
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
1020
+ height?: string | number | undefined;
1021
+ width?: string | number | undefined;
1022
+ options?: {
1023
+ [propName: string]: any;
1024
+ } | undefined;
1025
+ language?: string | undefined;
1026
+ allowFullscreen?: boolean | undefined;
1027
+ editorTheme?: string | undefined;
1028
+ } & {} & {
897
1029
  locale?: string | undefined;
898
1030
  translate?: ((str: string, ...args: any[]) => string) | undefined;
899
1031
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
900
1032
  forceUpdate(callback?: (() => void) | undefined): void;
901
- readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
902
- language: string;
903
- editorTheme: string;
904
- width: string;
905
- height: string;
906
- allowFullscreen: boolean;
907
- options: {};
908
- }, never>> & {
1033
+ readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
1034
+ height?: string | number | undefined;
1035
+ width?: string | number | undefined;
1036
+ options?: {
1037
+ [propName: string]: any;
1038
+ } | undefined;
1039
+ language?: string | undefined;
1040
+ allowFullscreen?: boolean | undefined;
1041
+ editorTheme?: string | undefined;
1042
+ } & {} & {
909
1043
  locale?: string | undefined;
910
1044
  translate?: ((str: string, ...args: any[]) => string) | undefined;
911
1045
  }> & Readonly<{
@@ -916,121 +1050,141 @@ declare const _default: {
916
1050
  [key: string]: React.ReactInstance;
917
1051
  };
918
1052
  componentDidMount?(): void;
919
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
920
- language: string;
921
- editorTheme: string;
922
- width: string;
923
- height: string;
924
- allowFullscreen: boolean;
925
- options: {};
926
- }, never>> & {
1053
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
1054
+ height?: string | number | undefined;
1055
+ width?: string | number | undefined;
1056
+ options?: {
1057
+ [propName: string]: any;
1058
+ } | undefined;
1059
+ language?: string | undefined;
1060
+ allowFullscreen?: boolean | undefined;
1061
+ editorTheme?: string | undefined;
1062
+ } & {} & {
927
1063
  locale?: string | undefined;
928
1064
  translate?: ((str: string, ...args: any[]) => string) | undefined;
929
1065
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
930
1066
  componentWillUnmount?(): void;
931
1067
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
932
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
933
- language: string;
934
- editorTheme: string;
935
- width: string;
936
- height: string;
937
- allowFullscreen: boolean;
938
- options: {};
939
- }, never>> & {
1068
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
1069
+ height?: string | number | undefined;
1070
+ width?: string | number | undefined;
1071
+ options?: {
1072
+ [propName: string]: any;
1073
+ } | undefined;
1074
+ language?: string | undefined;
1075
+ allowFullscreen?: boolean | undefined;
1076
+ editorTheme?: string | undefined;
1077
+ } & {} & {
940
1078
  locale?: string | undefined;
941
1079
  translate?: ((str: string, ...args: any[]) => string) | undefined;
942
1080
  }>, prevState: Readonly<{}>): any;
943
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
944
- language: string;
945
- editorTheme: string;
946
- width: string;
947
- height: string;
948
- allowFullscreen: boolean;
949
- options: {};
950
- }, never>> & {
1081
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
1082
+ height?: string | number | undefined;
1083
+ width?: string | number | undefined;
1084
+ options?: {
1085
+ [propName: string]: any;
1086
+ } | undefined;
1087
+ language?: string | undefined;
1088
+ allowFullscreen?: boolean | undefined;
1089
+ editorTheme?: string | undefined;
1090
+ } & {} & {
951
1091
  locale?: string | undefined;
952
1092
  translate?: ((str: string, ...args: any[]) => string) | undefined;
953
1093
  }>, prevState: Readonly<{}>, snapshot?: any): void;
954
1094
  componentWillMount?(): void;
955
1095
  UNSAFE_componentWillMount?(): void;
956
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
957
- language: string;
958
- editorTheme: string;
959
- width: string;
960
- height: string;
961
- allowFullscreen: boolean;
962
- options: {};
963
- }, never>> & {
1096
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
1097
+ height?: string | number | undefined;
1098
+ width?: string | number | undefined;
1099
+ options?: {
1100
+ [propName: string]: any;
1101
+ } | undefined;
1102
+ language?: string | undefined;
1103
+ allowFullscreen?: boolean | undefined;
1104
+ editorTheme?: string | undefined;
1105
+ } & {} & {
964
1106
  locale?: string | undefined;
965
1107
  translate?: ((str: string, ...args: any[]) => string) | undefined;
966
1108
  }>, nextContext: any): void;
967
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
968
- language: string;
969
- editorTheme: string;
970
- width: string;
971
- height: string;
972
- allowFullscreen: boolean;
973
- options: {};
974
- }, never>> & {
1109
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
1110
+ height?: string | number | undefined;
1111
+ width?: string | number | undefined;
1112
+ options?: {
1113
+ [propName: string]: any;
1114
+ } | undefined;
1115
+ language?: string | undefined;
1116
+ allowFullscreen?: boolean | undefined;
1117
+ editorTheme?: string | undefined;
1118
+ } & {} & {
975
1119
  locale?: string | undefined;
976
1120
  translate?: ((str: string, ...args: any[]) => string) | undefined;
977
1121
  }>, nextContext: any): void;
978
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
979
- language: string;
980
- editorTheme: string;
981
- width: string;
982
- height: string;
983
- allowFullscreen: boolean;
984
- options: {};
985
- }, never>> & {
1122
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
1123
+ height?: string | number | undefined;
1124
+ width?: string | number | undefined;
1125
+ options?: {
1126
+ [propName: string]: any;
1127
+ } | undefined;
1128
+ language?: string | undefined;
1129
+ allowFullscreen?: boolean | undefined;
1130
+ editorTheme?: string | undefined;
1131
+ } & {} & {
986
1132
  locale?: string | undefined;
987
1133
  translate?: ((str: string, ...args: any[]) => string) | undefined;
988
1134
  }>, nextState: Readonly<{}>, nextContext: any): void;
989
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
990
- language: string;
991
- editorTheme: string;
992
- width: string;
993
- height: string;
994
- allowFullscreen: boolean;
995
- options: {};
996
- }, never>> & {
1135
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
1136
+ height?: string | number | undefined;
1137
+ width?: string | number | undefined;
1138
+ options?: {
1139
+ [propName: string]: any;
1140
+ } | undefined;
1141
+ language?: string | undefined;
1142
+ allowFullscreen?: boolean | undefined;
1143
+ editorTheme?: string | undefined;
1144
+ } & {} & {
997
1145
  locale?: string | undefined;
998
1146
  translate?: ((str: string, ...args: any[]) => string) | undefined;
999
1147
  }>, nextState: Readonly<{}>, nextContext: any): void;
1000
1148
  };
1001
- new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
1002
- language: string;
1003
- editorTheme: string;
1004
- width: string;
1005
- height: string;
1006
- allowFullscreen: boolean;
1007
- options: {};
1008
- }, never>> & {
1149
+ new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
1150
+ height?: string | number | undefined;
1151
+ width?: string | number | undefined;
1152
+ options?: {
1153
+ [propName: string]: any;
1154
+ } | undefined;
1155
+ language?: string | undefined;
1156
+ allowFullscreen?: boolean | undefined;
1157
+ editorTheme?: string | undefined;
1158
+ } & {} & {
1009
1159
  locale?: string | undefined;
1010
1160
  translate?: ((str: string, ...args: any[]) => string) | undefined;
1011
1161
  }, context: any): {
1012
1162
  render(): JSX.Element;
1013
1163
  context: any;
1014
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
1015
- language: string;
1016
- editorTheme: string;
1017
- width: string;
1018
- height: string;
1019
- allowFullscreen: boolean;
1020
- options: {};
1021
- }, never>> & {
1164
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
1165
+ height?: string | number | undefined;
1166
+ width?: string | number | undefined;
1167
+ options?: {
1168
+ [propName: string]: any;
1169
+ } | undefined;
1170
+ language?: string | undefined;
1171
+ allowFullscreen?: boolean | undefined;
1172
+ editorTheme?: string | undefined;
1173
+ } & {} & {
1022
1174
  locale?: string | undefined;
1023
1175
  translate?: ((str: string, ...args: any[]) => string) | undefined;
1024
1176
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
1025
1177
  forceUpdate(callback?: (() => void) | undefined): void;
1026
- readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
1027
- language: string;
1028
- editorTheme: string;
1029
- width: string;
1030
- height: string;
1031
- allowFullscreen: boolean;
1032
- options: {};
1033
- }, never>> & {
1178
+ readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
1179
+ height?: string | number | undefined;
1180
+ width?: string | number | undefined;
1181
+ options?: {
1182
+ [propName: string]: any;
1183
+ } | undefined;
1184
+ language?: string | undefined;
1185
+ allowFullscreen?: boolean | undefined;
1186
+ editorTheme?: string | undefined;
1187
+ } & {} & {
1034
1188
  locale?: string | undefined;
1035
1189
  translate?: ((str: string, ...args: any[]) => string) | undefined;
1036
1190
  }> & Readonly<{
@@ -1041,84 +1195,98 @@ declare const _default: {
1041
1195
  [key: string]: React.ReactInstance;
1042
1196
  };
1043
1197
  componentDidMount?(): void;
1044
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
1045
- language: string;
1046
- editorTheme: string;
1047
- width: string;
1048
- height: string;
1049
- allowFullscreen: boolean;
1050
- options: {};
1051
- }, never>> & {
1198
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
1199
+ height?: string | number | undefined;
1200
+ width?: string | number | undefined;
1201
+ options?: {
1202
+ [propName: string]: any;
1203
+ } | undefined;
1204
+ language?: string | undefined;
1205
+ allowFullscreen?: boolean | undefined;
1206
+ editorTheme?: string | undefined;
1207
+ } & {} & {
1052
1208
  locale?: string | undefined;
1053
1209
  translate?: ((str: string, ...args: any[]) => string) | undefined;
1054
1210
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
1055
1211
  componentWillUnmount?(): void;
1056
1212
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
1057
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
1058
- language: string;
1059
- editorTheme: string;
1060
- width: string;
1061
- height: string;
1062
- allowFullscreen: boolean;
1063
- options: {};
1064
- }, never>> & {
1213
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
1214
+ height?: string | number | undefined;
1215
+ width?: string | number | undefined;
1216
+ options?: {
1217
+ [propName: string]: any;
1218
+ } | undefined;
1219
+ language?: string | undefined;
1220
+ allowFullscreen?: boolean | undefined;
1221
+ editorTheme?: string | undefined;
1222
+ } & {} & {
1065
1223
  locale?: string | undefined;
1066
1224
  translate?: ((str: string, ...args: any[]) => string) | undefined;
1067
1225
  }>, prevState: Readonly<{}>): any;
1068
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
1069
- language: string;
1070
- editorTheme: string;
1071
- width: string;
1072
- height: string;
1073
- allowFullscreen: boolean;
1074
- options: {};
1075
- }, never>> & {
1226
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
1227
+ height?: string | number | undefined;
1228
+ width?: string | number | undefined;
1229
+ options?: {
1230
+ [propName: string]: any;
1231
+ } | undefined;
1232
+ language?: string | undefined;
1233
+ allowFullscreen?: boolean | undefined;
1234
+ editorTheme?: string | undefined;
1235
+ } & {} & {
1076
1236
  locale?: string | undefined;
1077
1237
  translate?: ((str: string, ...args: any[]) => string) | undefined;
1078
1238
  }>, prevState: Readonly<{}>, snapshot?: any): void;
1079
1239
  componentWillMount?(): void;
1080
1240
  UNSAFE_componentWillMount?(): void;
1081
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
1082
- language: string;
1083
- editorTheme: string;
1084
- width: string;
1085
- height: string;
1086
- allowFullscreen: boolean;
1087
- options: {};
1088
- }, never>> & {
1241
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
1242
+ height?: string | number | undefined;
1243
+ width?: string | number | undefined;
1244
+ options?: {
1245
+ [propName: string]: any;
1246
+ } | undefined;
1247
+ language?: string | undefined;
1248
+ allowFullscreen?: boolean | undefined;
1249
+ editorTheme?: string | undefined;
1250
+ } & {} & {
1089
1251
  locale?: string | undefined;
1090
1252
  translate?: ((str: string, ...args: any[]) => string) | undefined;
1091
1253
  }>, nextContext: any): void;
1092
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
1093
- language: string;
1094
- editorTheme: string;
1095
- width: string;
1096
- height: string;
1097
- allowFullscreen: boolean;
1098
- options: {};
1099
- }, never>> & {
1254
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
1255
+ height?: string | number | undefined;
1256
+ width?: string | number | undefined;
1257
+ options?: {
1258
+ [propName: string]: any;
1259
+ } | undefined;
1260
+ language?: string | undefined;
1261
+ allowFullscreen?: boolean | undefined;
1262
+ editorTheme?: string | undefined;
1263
+ } & {} & {
1100
1264
  locale?: string | undefined;
1101
1265
  translate?: ((str: string, ...args: any[]) => string) | undefined;
1102
1266
  }>, nextContext: any): void;
1103
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
1104
- language: string;
1105
- editorTheme: string;
1106
- width: string;
1107
- height: string;
1108
- allowFullscreen: boolean;
1109
- options: {};
1110
- }, never>> & {
1267
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
1268
+ height?: string | number | undefined;
1269
+ width?: string | number | undefined;
1270
+ options?: {
1271
+ [propName: string]: any;
1272
+ } | undefined;
1273
+ language?: string | undefined;
1274
+ allowFullscreen?: boolean | undefined;
1275
+ editorTheme?: string | undefined;
1276
+ } & {} & {
1111
1277
  locale?: string | undefined;
1112
1278
  translate?: ((str: string, ...args: any[]) => string) | undefined;
1113
1279
  }>, nextState: Readonly<{}>, nextContext: any): void;
1114
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & Partial<Pick<Omit<EditorProps, keyof LocaleProps>, "height" | "width" | "options" | "language" | "allowFullscreen" | "editorTheme">> & Partial<Pick<{
1115
- language: string;
1116
- editorTheme: string;
1117
- width: string;
1118
- height: string;
1119
- allowFullscreen: boolean;
1120
- options: {};
1121
- }, never>> & {
1280
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "style" | "className" | "value" | "defaultValue" | "onFocus" | "onBlur" | "onChange" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
1281
+ height?: string | number | undefined;
1282
+ width?: string | number | undefined;
1283
+ options?: {
1284
+ [propName: string]: any;
1285
+ } | undefined;
1286
+ language?: string | undefined;
1287
+ allowFullscreen?: boolean | undefined;
1288
+ editorTheme?: string | undefined;
1289
+ } & {} & {
1122
1290
  locale?: string | undefined;
1123
1291
  translate?: ((str: string, ...args: any[]) => string) | undefined;
1124
1292
  }>, nextState: Readonly<{}>, nextContext: any): void;