amis-ui 6.9.0-rc.3 → 6.9.0-rc.4

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 (772) hide show
  1. package/esm/components/404.js +1 -1
  2. package/esm/components/Alert.d.ts +40 -40
  3. package/esm/components/Alert.js +1 -1
  4. package/esm/components/Alert2.js +1 -1
  5. package/esm/components/AnchorNav.d.ts +10 -10
  6. package/esm/components/AnchorNav.js +1 -1
  7. package/esm/components/AnchorNavSection.js +1 -1
  8. package/esm/components/ArrayInput.d.ts +40 -40
  9. package/esm/components/ArrayInput.js +1 -1
  10. package/esm/components/AsideNav.js +1 -1
  11. package/esm/components/AssociatedSelection.d.ts +80 -80
  12. package/esm/components/AssociatedSelection.js +1 -1
  13. package/esm/components/AutoSizer.js +1 -1
  14. package/esm/components/Avatar.d.ts +50 -50
  15. package/esm/components/Avatar.js +1 -1
  16. package/esm/components/Badge.d.ts +1 -1
  17. package/esm/components/Badge.js +1 -1
  18. package/esm/components/BaiduMapPicker.js +1 -1
  19. package/esm/components/BarCode.js +1 -1
  20. package/esm/components/Breadcrumb.js +1 -1
  21. package/esm/components/Button.d.ts +20 -20
  22. package/esm/components/Button.js +1 -1
  23. package/esm/components/CalendarMobile.d.ts +40 -40
  24. package/esm/components/CalendarMobile.js +7 -9
  25. package/esm/components/Card.d.ts +61 -50
  26. package/esm/components/Card.js +14 -13
  27. package/esm/components/Cascader.js +1 -1
  28. package/esm/components/ChainedDropdownSelection.d.ts +80 -80
  29. package/esm/components/ChainedDropdownSelection.js +1 -1
  30. package/esm/components/ChainedSelection.d.ts +80 -80
  31. package/esm/components/ChainedSelection.js +1 -1
  32. package/esm/components/Checkbox.d.ts +10 -10
  33. package/esm/components/Checkbox.js +1 -1
  34. package/esm/components/CityArea.js +1 -1
  35. package/esm/components/CityDB.js +1 -1
  36. package/esm/components/CodeMirror.js +1 -1
  37. package/esm/components/Collapse.d.ts +40 -40
  38. package/esm/components/Collapse.js +1 -1
  39. package/esm/components/CollapseGroup.d.ts +30 -30
  40. package/esm/components/CollapseGroup.js +1 -1
  41. package/esm/components/ColorPicker.d.ts +80 -80
  42. package/esm/components/ColorPicker.js +1 -1
  43. package/esm/components/Combo.js +1 -1
  44. package/esm/components/ConditionBuilder.js +1 -1
  45. package/esm/components/ConfirmBox.d.ts +40 -40
  46. package/esm/components/ConfirmBox.js +1 -1
  47. package/esm/components/ContextMenu.js +1 -1
  48. package/esm/components/DatePicker.d.ts +80 -80
  49. package/esm/components/DatePicker.js +1 -1
  50. package/esm/components/DateRangePicker.d.ts +240 -240
  51. package/esm/components/DateRangePicker.js +1 -1
  52. package/esm/components/DiffEditor.d.ts +20 -0
  53. package/esm/components/DiffEditor.js +99 -0
  54. package/esm/components/DndContainer.js +1 -1
  55. package/esm/components/Drawer.d.ts +30 -30
  56. package/esm/components/Drawer.js +1 -1
  57. package/esm/components/DropDownSelection.d.ts +80 -80
  58. package/esm/components/DropDownSelection.js +1 -1
  59. package/esm/components/Editor.d.ts +59 -61
  60. package/esm/components/Editor.js +12 -14
  61. package/esm/components/Form.js +1 -1
  62. package/esm/components/FormField.js +1 -1
  63. package/esm/components/FormulaPicker.js +1 -1
  64. package/esm/components/GaodeMapPicker.js +1 -1
  65. package/esm/components/GridNav.js +1 -1
  66. package/esm/components/GridNavItem.js +1 -1
  67. package/esm/components/GroupedSelection.d.ts +80 -80
  68. package/esm/components/GroupedSelection.js +1 -1
  69. package/esm/components/HeadCellDropDown.js +1 -1
  70. package/esm/components/Html.js +1 -1
  71. package/esm/components/Icon.js +1 -1
  72. package/esm/components/ImageGallery.d.ts +43 -43
  73. package/esm/components/ImageGallery.js +1 -1
  74. package/esm/components/Input.js +1 -1
  75. package/esm/components/InputBox.d.ts +20 -20
  76. package/esm/components/InputBox.js +1 -1
  77. package/esm/components/InputBoxWithSuggestion.js +1 -1
  78. package/esm/components/InputJSONSchema.js +1 -1
  79. package/esm/components/InputTable.js +1 -1
  80. package/esm/components/JSONSchemaEditor.js +1 -1
  81. package/esm/components/Layout.js +1 -1
  82. package/esm/components/Link.js +1 -1
  83. package/esm/components/ListGroup.d.ts +10 -10
  84. package/esm/components/ListGroup.js +1 -1
  85. package/esm/components/ListMenu.d.ts +40 -40
  86. package/esm/components/ListMenu.js +1 -1
  87. package/esm/components/LocationPicker.d.ts +80 -80
  88. package/esm/components/LocationPicker.js +1 -1
  89. package/esm/components/Markdown.js +1 -1
  90. package/esm/components/Menu.js +1 -1
  91. package/esm/components/MobileDevTool.d.ts +10 -0
  92. package/esm/components/MobileDevTool.js +300 -0
  93. package/esm/components/Modal.d.ts +120 -120
  94. package/esm/components/Modal.js +1 -1
  95. package/esm/components/ModalManager.js +1 -1
  96. package/esm/components/MonthRangePicker.d.ts +200 -200
  97. package/esm/components/MultilineText.d.ts +40 -40
  98. package/esm/components/MultilineText.js +1 -1
  99. package/esm/components/NumberInput.d.ts +26 -26
  100. package/esm/components/NumberInput.js +1 -1
  101. package/esm/components/OverflowTpl.d.ts +0 -1
  102. package/esm/components/OverflowTpl.js +1 -1
  103. package/esm/components/Pagination.d.ts +84 -161
  104. package/esm/components/Pagination.js +1 -1
  105. package/esm/components/PdfViewer.js +1 -1
  106. package/esm/components/Picker.js +1 -1
  107. package/esm/components/PickerColumn.js +1 -1
  108. package/esm/components/PickerContainer.js +1 -1
  109. package/esm/components/PopOverContainer.js +1 -1
  110. package/esm/components/PopUp.d.ts +80 -80
  111. package/esm/components/PopUp.js +1 -1
  112. package/esm/components/Progress.d.ts +50 -50
  113. package/esm/components/Progress.js +1 -1
  114. package/esm/components/PullRefresh.d.ts +4 -0
  115. package/esm/components/PullRefresh.js +47 -26
  116. package/esm/components/Radios.d.ts +30 -30
  117. package/esm/components/Radios.js +1 -1
  118. package/esm/components/Range.js +1 -1
  119. package/esm/components/Rating.d.ts +10 -10
  120. package/esm/components/Rating.js +1 -1
  121. package/esm/components/ResultBox.d.ts +120 -120
  122. package/esm/components/ResultBox.js +1 -1
  123. package/esm/components/ResultList.d.ts +40 -40
  124. package/esm/components/ResultList.js +1 -1
  125. package/esm/components/ResultTableList.d.ts +80 -80
  126. package/esm/components/ResultTableList.js +1 -1
  127. package/esm/components/ResultTreeList.d.ts +40 -40
  128. package/esm/components/ResultTreeList.js +1 -1
  129. package/esm/components/RichText.js +1 -1
  130. package/esm/components/SearchBox.d.ts +40 -40
  131. package/esm/components/SearchBox.js +1 -1
  132. package/esm/components/Select.d.ts +1887 -1886
  133. package/esm/components/Select.js +3 -3
  134. package/esm/components/SelectMobile.js +1 -1
  135. package/esm/components/Selection.d.ts +80 -80
  136. package/esm/components/Selection.js +1 -1
  137. package/esm/components/Signature.js +5 -1
  138. package/esm/components/SparkLine.d.ts +40 -40
  139. package/esm/components/SparkLine.js +1 -1
  140. package/esm/components/Spinner.d.ts +60 -60
  141. package/esm/components/Spinner.js +1 -1
  142. package/esm/components/Steps.js +1 -1
  143. package/esm/components/Switch.d.ts +10 -10
  144. package/esm/components/Switch.js +1 -1
  145. package/esm/components/Tab.js +1 -1
  146. package/esm/components/Table.js +1 -1
  147. package/esm/components/TableSelection.d.ts +80 -80
  148. package/esm/components/TableSelection.js +1 -1
  149. package/esm/components/Tabs.d.ts +40 -40
  150. package/esm/components/Tabs.js +1 -1
  151. package/esm/components/TabsTransfer.d.ts +40 -40
  152. package/esm/components/TabsTransfer.js +1 -1
  153. package/esm/components/TabsTransferPicker.js +1 -1
  154. package/esm/components/Tag.d.ts +40 -40
  155. package/esm/components/Tag.js +1 -1
  156. package/esm/components/Textarea.d.ts +40 -40
  157. package/esm/components/Textarea.js +1 -1
  158. package/esm/components/Timeline.js +1 -1
  159. package/esm/components/TimelineItem.js +1 -1
  160. package/esm/components/Tinymce.js +1 -1
  161. package/esm/components/TitleBar.js +1 -1
  162. package/esm/components/Toast.d.ts +40 -40
  163. package/esm/components/Toast.js +1 -1
  164. package/esm/components/Tooltip.js +1 -1
  165. package/esm/components/TooltipWrapper.d.ts +10 -10
  166. package/esm/components/TooltipWrapper.js +1 -1
  167. package/esm/components/Transfer.d.ts +108 -93
  168. package/esm/components/Transfer.js +1 -1
  169. package/esm/components/TransferDropDown.d.ts +80 -80
  170. package/esm/components/TransferDropDown.js +1 -1
  171. package/esm/components/TransferPicker.js +1 -1
  172. package/esm/components/TransferSearch.js +1 -1
  173. package/esm/components/Tree.d.ts +203 -201
  174. package/esm/components/Tree.js +1 -1
  175. package/esm/components/TreeSelection.d.ts +80 -80
  176. package/esm/components/TreeSelection.js +1 -1
  177. package/esm/components/UserSelect.d.ts +80 -80
  178. package/esm/components/UserSelect.js +1 -1
  179. package/esm/components/UserTabSelect.d.ts +40 -40
  180. package/esm/components/UserTabSelect.js +1 -1
  181. package/esm/components/VerificationCode.js +1 -1
  182. package/esm/components/VirtualList.js +1 -1
  183. package/esm/components/WithRemoteConfig.js +1 -1
  184. package/esm/components/WithStore.js +1 -1
  185. package/esm/components/calendar/Calendar.js +1 -1
  186. package/esm/components/calendar/CalendarContainer.js +1 -1
  187. package/esm/components/calendar/DaysView.js +1 -1
  188. package/esm/components/calendar/MonthsView.js +1 -1
  189. package/esm/components/calendar/QuartersView.js +1 -1
  190. package/esm/components/calendar/TimeView.d.ts +1 -0
  191. package/esm/components/calendar/TimeView.js +1 -1
  192. package/esm/components/calendar/YearsView.js +1 -1
  193. package/esm/components/condition-builder/Expression.js +1 -1
  194. package/esm/components/condition-builder/Field.js +1 -1
  195. package/esm/components/condition-builder/Func.js +1 -1
  196. package/esm/components/condition-builder/Group.js +1 -1
  197. package/esm/components/condition-builder/GroupOrItem.js +1 -1
  198. package/esm/components/condition-builder/InputSwitch.js +1 -1
  199. package/esm/components/condition-builder/Item.d.ts +1 -1
  200. package/esm/components/condition-builder/Item.js +1 -1
  201. package/esm/components/condition-builder/Value.js +1 -1
  202. package/esm/components/condition-builder/config.js +1 -1
  203. package/esm/components/condition-builder/index.js +1 -1
  204. package/esm/components/formula/CodeEditor.js +1 -1
  205. package/esm/components/formula/Editor.d.ts +82 -52
  206. package/esm/components/formula/Editor.js +1 -1
  207. package/esm/components/formula/FuncList.js +1 -1
  208. package/esm/components/formula/Input.d.ts +3 -0
  209. package/esm/components/formula/Input.js +1 -1
  210. package/esm/components/formula/Picker.d.ts +64 -59
  211. package/esm/components/formula/Picker.js +1 -1
  212. package/esm/components/formula/VariableList.js +1 -1
  213. package/esm/components/formula/plugin.js +1 -1
  214. package/esm/components/icons.js +3 -1
  215. package/esm/components/index.d.ts +3 -1
  216. package/esm/components/json-schema/Array.js +1 -1
  217. package/esm/components/json-schema/Item.js +1 -1
  218. package/esm/components/json-schema/Object.js +1 -1
  219. package/esm/components/json-schema/index.js +1 -1
  220. package/esm/components/menu/MenuContext.js +1 -1
  221. package/esm/components/menu/MenuItem.js +1 -1
  222. package/esm/components/menu/SubMenu.js +1 -1
  223. package/esm/components/menu/index.d.ts +24 -27
  224. package/esm/components/menu/index.js +1 -1
  225. package/esm/components/schema-editor/Array.js +3 -2
  226. package/esm/components/schema-editor/Common.d.ts +3 -0
  227. package/esm/components/schema-editor/Common.js +3 -2
  228. package/esm/components/schema-editor/Item.js +3 -13
  229. package/esm/components/schema-editor/Object.js +3 -2
  230. package/esm/components/schema-editor/SchemaVariableList.js +1 -1
  231. package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
  232. package/esm/components/schema-editor/index.d.ts +51 -52
  233. package/esm/components/schema-editor/index.js +3 -1
  234. package/esm/components/table/Cell.js +1 -1
  235. package/esm/components/table/ColGroup.js +1 -1
  236. package/esm/components/table/Head.js +1 -1
  237. package/esm/components/table/HeadCellDropDown.js +1 -1
  238. package/esm/components/table/HeadCellFilter.d.ts +40 -40
  239. package/esm/components/table/HeadCellFilter.js +1 -1
  240. package/esm/components/table/HeadCellSelect.d.ts +40 -40
  241. package/esm/components/table/HeadCellSelect.js +1 -1
  242. package/esm/components/table/HeadCellSort.js +1 -1
  243. package/esm/components/table/ItemActionsWrapper.js +1 -1
  244. package/esm/components/table/Row.js +1 -1
  245. package/esm/components/table/SummaryRow.js +1 -1
  246. package/esm/components/table/index.d.ts +80 -80
  247. package/esm/components/table/index.js +1 -1
  248. package/esm/components/table/util.d.ts +5 -5
  249. package/esm/components/table/util.js +1 -1
  250. package/esm/components/virtual-list/AutoSizer.js +1 -1
  251. package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
  252. package/esm/components/virtual-list/constants.js +1 -1
  253. package/esm/components/virtual-list/index.js +1 -1
  254. package/esm/components/withBadge.js +1 -1
  255. package/esm/hooks/index.d.ts +1 -0
  256. package/esm/hooks/use-on-screen.d.ts +2 -0
  257. package/esm/hooks/use-on-screen.js +28 -0
  258. package/esm/hooks/use-set-state.js +1 -1
  259. package/esm/hooks/use-sub-form.js +1 -1
  260. package/esm/hooks/use-touch.js +1 -1
  261. package/esm/hooks/use-update-effect.js +1 -1
  262. package/esm/hooks/use-validation-resolver.js +1 -1
  263. package/esm/icons/alert-danger.svg.js +1 -1
  264. package/esm/icons/alert-info.svg.js +1 -1
  265. package/esm/icons/alert-success.svg.js +1 -1
  266. package/esm/icons/alert-warning.svg.js +1 -1
  267. package/esm/icons/arrow-double-left.svg.js +1 -1
  268. package/esm/icons/arrow-double-right.svg.js +1 -1
  269. package/esm/icons/back.svg.js +1 -1
  270. package/esm/icons/calendar.svg.js +1 -1
  271. package/esm/icons/caret.svg.js +1 -1
  272. package/esm/icons/check.svg.js +1 -1
  273. package/esm/icons/clock.svg.js +1 -1
  274. package/esm/icons/close-small.svg.js +1 -1
  275. package/esm/icons/close.svg.js +1 -1
  276. package/esm/icons/cloud-upload.svg.js +1 -1
  277. package/esm/icons/column-filter.svg.js +1 -1
  278. package/esm/icons/columns.svg.js +1 -1
  279. package/esm/icons/compress-alt.svg.js +1 -1
  280. package/esm/icons/copy.svg.js +1 -1
  281. package/esm/icons/date.svg.js +1 -1
  282. package/esm/icons/department.svg.js +1 -1
  283. package/esm/icons/desk-empty.svg.js +1 -1
  284. package/esm/icons/dot.svg.js +1 -1
  285. package/esm/icons/down-arrow-bold.svg.js +1 -1
  286. package/esm/icons/down.svg.js +1 -1
  287. package/esm/icons/download.svg.js +1 -1
  288. package/esm/icons/drag-bar.svg.js +1 -1
  289. package/esm/icons/drag.svg.js +1 -1
  290. package/esm/icons/edit.svg.js +1 -1
  291. package/esm/icons/ellipsis-v.svg.js +1 -1
  292. package/esm/icons/enter.svg.js +1 -1
  293. package/esm/icons/exchange.svg.js +1 -1
  294. package/esm/icons/expand-alt.svg.js +1 -1
  295. package/esm/icons/fail.svg.js +1 -1
  296. package/esm/icons/file.svg.js +1 -1
  297. package/esm/icons/filter.svg.js +1 -1
  298. package/esm/icons/folder.svg.js +1 -1
  299. package/esm/icons/fullscreen.svg.js +1 -1
  300. package/esm/icons/function.svg.js +1 -1
  301. package/esm/icons/home.svg.js +1 -1
  302. package/esm/icons/if.svg.js +1 -1
  303. package/esm/icons/image.svg.js +1 -1
  304. package/esm/icons/info-circle.svg.js +1 -1
  305. package/esm/icons/info.svg.js +1 -1
  306. package/esm/icons/input-clear.svg.js +1 -1
  307. package/esm/icons/invisible.svg.js +1 -1
  308. package/esm/icons/left-arrow.svg.js +1 -1
  309. package/esm/icons/loading-outline.svg.js +1 -1
  310. package/esm/icons/location.svg.js +1 -1
  311. package/esm/icons/menu.svg.js +1 -1
  312. package/esm/icons/minus.svg.js +1 -1
  313. package/esm/icons/move.svg.js +1 -1
  314. package/esm/icons/mute.svg.js +1 -1
  315. package/esm/icons/new-edit.svg.js +1 -1
  316. package/esm/icons/pause.svg.js +1 -1
  317. package/esm/icons/pencil.svg.js +1 -1
  318. package/esm/icons/play.svg.js +1 -1
  319. package/esm/icons/plus-cicle.svg.js +1 -1
  320. package/esm/icons/plus-fine.svg.js +1 -1
  321. package/esm/icons/plus.svg.js +1 -1
  322. package/esm/icons/post.svg.js +1 -1
  323. package/esm/icons/question-mark.svg.js +1 -1
  324. package/esm/icons/question.svg.js +1 -1
  325. package/esm/icons/redo.svg.js +1 -1
  326. package/esm/icons/refresh.svg.js +1 -1
  327. package/esm/icons/reload.svg.js +1 -1
  328. package/esm/icons/remove.svg.js +1 -1
  329. package/esm/icons/retry.svg.js +1 -1
  330. package/esm/icons/right-arrow-bold.svg.js +1 -1
  331. package/esm/icons/right-arrow.svg.js +1 -1
  332. package/esm/icons/right-double-arrow.svg.js +1 -1
  333. package/esm/icons/role.svg.js +1 -1
  334. package/esm/icons/rotate-left.svg.js +1 -1
  335. package/esm/icons/rotate-right.svg.js +1 -1
  336. package/esm/icons/rotate-screen.svg.js +21 -0
  337. package/esm/icons/scale-origin.svg.js +1 -1
  338. package/esm/icons/schedule.svg.js +1 -1
  339. package/esm/icons/search.svg.js +1 -1
  340. package/esm/icons/setting.svg.js +1 -1
  341. package/esm/icons/slider-handle-icon.svg.js +1 -1
  342. package/esm/icons/sort-asc.svg.js +1 -1
  343. package/esm/icons/sort-default.svg.js +1 -1
  344. package/esm/icons/sort-desc.svg.js +1 -1
  345. package/esm/icons/star.svg.js +1 -1
  346. package/esm/icons/status-close.svg.js +1 -1
  347. package/esm/icons/steps-finsh.svg.js +1 -1
  348. package/esm/icons/sub-plus.svg.js +1 -1
  349. package/esm/icons/success.svg.js +1 -1
  350. package/esm/icons/transparent.svg.js +1 -1
  351. package/esm/icons/trash.svg.js +1 -1
  352. package/esm/icons/tree-down.svg.js +1 -1
  353. package/esm/icons/undo-normal.svg.js +1 -1
  354. package/esm/icons/undo.svg.js +1 -1
  355. package/esm/icons/unfullscreen.svg.js +1 -1
  356. package/esm/icons/upload.svg.js +1 -1
  357. package/esm/icons/user-remove.svg.js +1 -1
  358. package/esm/icons/view.svg.js +1 -1
  359. package/esm/icons/volume.svg.js +1 -1
  360. package/esm/icons/warning-mark.svg.js +1 -1
  361. package/esm/icons/warning.svg.js +1 -1
  362. package/esm/icons/window-restore.svg.js +1 -1
  363. package/esm/icons/zoom-in.svg.js +1 -1
  364. package/esm/icons/zoom-out.svg.js +1 -1
  365. package/esm/index.js +4 -1
  366. package/esm/locale/de-DE.js +6 -1
  367. package/esm/locale/en-US.js +6 -1
  368. package/esm/locale/zh-CN.js +6 -1
  369. package/esm/themes/ang.js +1 -1
  370. package/esm/themes/antd.js +1 -1
  371. package/esm/themes/cxd.js +1 -1
  372. package/esm/themes/dark.js +1 -1
  373. package/esm/withRemoteConfig.js +1 -1
  374. package/esm/withStore.js +1 -1
  375. package/lib/components/404.js +1 -1
  376. package/lib/components/Alert.d.ts +40 -40
  377. package/lib/components/Alert.js +1 -1
  378. package/lib/components/Alert2.d.ts +20 -20
  379. package/lib/components/Alert2.js +1 -1
  380. package/lib/components/AnchorNav.d.ts +20 -20
  381. package/lib/components/AnchorNav.js +1 -1
  382. package/lib/components/AnchorNavSection.js +1 -1
  383. package/lib/components/ArrayInput.d.ts +40 -40
  384. package/lib/components/ArrayInput.js +1 -1
  385. package/lib/components/AsideNav.js +1 -1
  386. package/lib/components/AssociatedSelection.d.ts +40 -40
  387. package/lib/components/AssociatedSelection.js +1 -1
  388. package/lib/components/AutoSizer.js +1 -1
  389. package/lib/components/Avatar.d.ts +90 -90
  390. package/lib/components/Avatar.js +1 -1
  391. package/lib/components/Badge.js +1 -1
  392. package/lib/components/BaiduMapPicker.js +1 -1
  393. package/lib/components/BarCode.js +1 -1
  394. package/lib/components/Breadcrumb.js +1 -1
  395. package/lib/components/Button.d.ts +20 -20
  396. package/lib/components/Button.js +1 -1
  397. package/lib/components/CalendarMobile.d.ts +40 -40
  398. package/lib/components/CalendarMobile.js +7 -9
  399. package/lib/components/Card.d.ts +81 -70
  400. package/lib/components/Card.js +14 -13
  401. package/lib/components/Cascader.js +1 -1
  402. package/lib/components/ChainedDropdownSelection.d.ts +40 -40
  403. package/lib/components/ChainedDropdownSelection.js +1 -1
  404. package/lib/components/ChainedSelection.d.ts +40 -40
  405. package/lib/components/ChainedSelection.js +1 -1
  406. package/lib/components/Checkbox.d.ts +10 -10
  407. package/lib/components/Checkbox.js +1 -1
  408. package/lib/components/CityArea.js +1 -1
  409. package/lib/components/CityDB.js +1 -1
  410. package/lib/components/CodeMirror.js +1 -1
  411. package/lib/components/Collapse.d.ts +70 -70
  412. package/lib/components/Collapse.js +1 -1
  413. package/lib/components/CollapseGroup.d.ts +30 -30
  414. package/lib/components/CollapseGroup.js +1 -1
  415. package/lib/components/ColorPicker.d.ts +80 -80
  416. package/lib/components/ColorPicker.js +1 -1
  417. package/lib/components/Combo.js +1 -1
  418. package/lib/components/ConditionBuilder.js +1 -1
  419. package/lib/components/ConfirmBox.d.ts +80 -80
  420. package/lib/components/ConfirmBox.js +1 -1
  421. package/lib/components/ContextMenu.js +1 -1
  422. package/lib/components/DatePicker.d.ts +121 -121
  423. package/lib/components/DatePicker.js +1 -1
  424. package/lib/components/DateRangePicker.d.ts +320 -320
  425. package/lib/components/DateRangePicker.js +1 -1
  426. package/lib/components/DiffEditor.d.ts +20 -0
  427. package/lib/components/DiffEditor.js +110 -0
  428. package/lib/components/DndContainer.js +1 -1
  429. package/lib/components/Drawer.d.ts +20 -20
  430. package/lib/components/Drawer.js +1 -1
  431. package/lib/components/DropDownSelection.d.ts +40 -40
  432. package/lib/components/DropDownSelection.js +1 -1
  433. package/lib/components/Editor.d.ts +59 -61
  434. package/lib/components/Editor.js +12 -14
  435. package/lib/components/Form.js +1 -1
  436. package/lib/components/FormField.js +1 -1
  437. package/lib/components/FormulaPicker.js +1 -1
  438. package/lib/components/GaodeMapPicker.js +1 -1
  439. package/lib/components/GridNav.js +1 -1
  440. package/lib/components/GridNavItem.js +1 -1
  441. package/lib/components/GroupedSelection.d.ts +40 -40
  442. package/lib/components/GroupedSelection.js +1 -1
  443. package/lib/components/HeadCellDropDown.js +1 -1
  444. package/lib/components/Html.js +1 -1
  445. package/lib/components/Icon.js +1 -1
  446. package/lib/components/ImageGallery.d.ts +43 -43
  447. package/lib/components/ImageGallery.js +1 -1
  448. package/lib/components/Input.js +1 -1
  449. package/lib/components/InputBox.d.ts +10 -10
  450. package/lib/components/InputBox.js +1 -1
  451. package/lib/components/InputBoxWithSuggestion.js +1 -1
  452. package/lib/components/InputJSONSchema.js +1 -1
  453. package/lib/components/InputTable.js +1 -1
  454. package/lib/components/JSONSchemaEditor.js +1 -1
  455. package/lib/components/Layout.js +1 -1
  456. package/lib/components/Link.js +1 -1
  457. package/lib/components/ListGroup.d.ts +10 -10
  458. package/lib/components/ListGroup.js +1 -1
  459. package/lib/components/ListMenu.d.ts +40 -40
  460. package/lib/components/ListMenu.js +1 -1
  461. package/lib/components/LocationPicker.d.ts +40 -40
  462. package/lib/components/LocationPicker.js +1 -1
  463. package/lib/components/Markdown.js +1 -1
  464. package/lib/components/Menu.js +1 -1
  465. package/lib/components/MobileDevTool.d.ts +10 -0
  466. package/lib/components/MobileDevTool.js +313 -0
  467. package/lib/components/Modal.d.ts +80 -80
  468. package/lib/components/Modal.js +1 -1
  469. package/lib/components/ModalManager.js +1 -1
  470. package/lib/components/MonthRangePicker.d.ts +200 -200
  471. package/lib/components/MultilineText.d.ts +40 -40
  472. package/lib/components/MultilineText.js +1 -1
  473. package/lib/components/NumberInput.d.ts +30 -30
  474. package/lib/components/NumberInput.js +1 -1
  475. package/lib/components/OverflowTpl.d.ts +0 -1
  476. package/lib/components/OverflowTpl.js +1 -1
  477. package/lib/components/Pagination.d.ts +124 -201
  478. package/lib/components/Pagination.js +1 -1
  479. package/lib/components/PdfViewer.js +1 -1
  480. package/lib/components/Picker.js +1 -1
  481. package/lib/components/PickerColumn.js +1 -1
  482. package/lib/components/PickerContainer.js +1 -1
  483. package/lib/components/PopOverContainer.js +1 -1
  484. package/lib/components/PopUp.d.ts +80 -80
  485. package/lib/components/PopUp.js +1 -1
  486. package/lib/components/Progress.d.ts +50 -50
  487. package/lib/components/Progress.js +1 -1
  488. package/lib/components/PullRefresh.d.ts +4 -0
  489. package/lib/components/PullRefresh.js +50 -25
  490. package/lib/components/Radios.d.ts +20 -20
  491. package/lib/components/Radios.js +1 -1
  492. package/lib/components/Range.js +1 -1
  493. package/lib/components/Rating.d.ts +20 -20
  494. package/lib/components/Rating.js +1 -1
  495. package/lib/components/ResultBox.d.ts +40 -40
  496. package/lib/components/ResultBox.js +1 -1
  497. package/lib/components/ResultList.d.ts +40 -40
  498. package/lib/components/ResultList.js +1 -1
  499. package/lib/components/ResultTableList.d.ts +40 -40
  500. package/lib/components/ResultTableList.js +1 -1
  501. package/lib/components/ResultTreeList.d.ts +40 -40
  502. package/lib/components/ResultTreeList.js +1 -1
  503. package/lib/components/RichText.js +1 -1
  504. package/lib/components/SearchBox.d.ts +80 -80
  505. package/lib/components/SearchBox.js +1 -1
  506. package/lib/components/Select.d.ts +749 -749
  507. package/lib/components/Select.js +3 -3
  508. package/lib/components/SelectMobile.js +1 -1
  509. package/lib/components/Selection.d.ts +40 -40
  510. package/lib/components/Selection.js +1 -1
  511. package/lib/components/Signature.js +3 -1
  512. package/lib/components/SparkLine.d.ts +40 -40
  513. package/lib/components/SparkLine.js +1 -1
  514. package/lib/components/Spinner.d.ts +70 -70
  515. package/lib/components/Spinner.js +1 -1
  516. package/lib/components/Steps.js +1 -1
  517. package/lib/components/Switch.d.ts +10 -10
  518. package/lib/components/Switch.js +1 -1
  519. package/lib/components/Tab.js +1 -1
  520. package/lib/components/Table.js +1 -1
  521. package/lib/components/TableSelection.d.ts +40 -40
  522. package/lib/components/TableSelection.js +1 -1
  523. package/lib/components/Tabs.d.ts +120 -120
  524. package/lib/components/Tabs.js +1 -1
  525. package/lib/components/TabsTransfer.d.ts +40 -40
  526. package/lib/components/TabsTransfer.js +1 -1
  527. package/lib/components/TabsTransferPicker.js +1 -1
  528. package/lib/components/Tag.d.ts +60 -60
  529. package/lib/components/Tag.js +1 -1
  530. package/lib/components/Textarea.d.ts +40 -40
  531. package/lib/components/Textarea.js +1 -1
  532. package/lib/components/Timeline.js +1 -1
  533. package/lib/components/TimelineItem.js +1 -1
  534. package/lib/components/Tinymce.js +1 -1
  535. package/lib/components/TitleBar.js +1 -1
  536. package/lib/components/Toast.d.ts +120 -120
  537. package/lib/components/Toast.js +1 -1
  538. package/lib/components/Tooltip.js +1 -1
  539. package/lib/components/TooltipWrapper.d.ts +30 -30
  540. package/lib/components/TooltipWrapper.js +1 -1
  541. package/lib/components/Transfer.d.ts +77 -62
  542. package/lib/components/Transfer.js +1 -1
  543. package/lib/components/TransferDropDown.d.ts +40 -40
  544. package/lib/components/TransferDropDown.js +1 -1
  545. package/lib/components/TransferPicker.js +1 -1
  546. package/lib/components/TransferSearch.js +1 -1
  547. package/lib/components/Tree.d.ts +123 -121
  548. package/lib/components/Tree.js +1 -1
  549. package/lib/components/TreeSelection.d.ts +80 -80
  550. package/lib/components/TreeSelection.js +1 -1
  551. package/lib/components/UserSelect.d.ts +40 -40
  552. package/lib/components/UserSelect.js +1 -1
  553. package/lib/components/UserTabSelect.d.ts +40 -40
  554. package/lib/components/UserTabSelect.js +1 -1
  555. package/lib/components/VerificationCode.js +1 -1
  556. package/lib/components/VirtualList.js +1 -1
  557. package/lib/components/WithRemoteConfig.d.ts +0 -1
  558. package/lib/components/WithRemoteConfig.js +1 -1
  559. package/lib/components/WithStore.js +1 -1
  560. package/lib/components/calendar/Calendar.js +1 -1
  561. package/lib/components/calendar/CalendarContainer.js +1 -1
  562. package/lib/components/calendar/DaysView.js +1 -1
  563. package/lib/components/calendar/MonthsView.js +1 -1
  564. package/lib/components/calendar/QuartersView.js +1 -1
  565. package/lib/components/calendar/TimeView.d.ts +1 -0
  566. package/lib/components/calendar/TimeView.js +1 -1
  567. package/lib/components/calendar/YearsView.js +1 -1
  568. package/lib/components/condition-builder/Expression.js +1 -1
  569. package/lib/components/condition-builder/Field.js +1 -1
  570. package/lib/components/condition-builder/Func.js +1 -1
  571. package/lib/components/condition-builder/Group.js +1 -1
  572. package/lib/components/condition-builder/GroupOrItem.js +1 -1
  573. package/lib/components/condition-builder/InputSwitch.js +1 -1
  574. package/lib/components/condition-builder/Item.d.ts +1 -1
  575. package/lib/components/condition-builder/Item.js +1 -1
  576. package/lib/components/condition-builder/Value.js +1 -1
  577. package/lib/components/condition-builder/config.js +1 -1
  578. package/lib/components/condition-builder/index.d.ts +1 -1
  579. package/lib/components/condition-builder/index.js +1 -1
  580. package/lib/components/formula/CodeEditor.js +1 -1
  581. package/lib/components/formula/Editor.d.ts +82 -52
  582. package/lib/components/formula/Editor.js +1 -1
  583. package/lib/components/formula/FuncList.js +1 -1
  584. package/lib/components/formula/Input.d.ts +3 -0
  585. package/lib/components/formula/Input.js +1 -1
  586. package/lib/components/formula/Picker.d.ts +64 -59
  587. package/lib/components/formula/Picker.js +1 -1
  588. package/lib/components/formula/VariableList.js +1 -1
  589. package/lib/components/formula/plugin.js +1 -1
  590. package/lib/components/icons.js +3 -1
  591. package/lib/components/index.d.ts +3 -1
  592. package/lib/components/json-schema/Array.js +1 -1
  593. package/lib/components/json-schema/Item.js +1 -1
  594. package/lib/components/json-schema/Object.js +1 -1
  595. package/lib/components/json-schema/index.js +1 -1
  596. package/lib/components/menu/MenuContext.js +1 -1
  597. package/lib/components/menu/MenuItem.js +1 -1
  598. package/lib/components/menu/SubMenu.js +1 -1
  599. package/lib/components/menu/index.d.ts +54 -57
  600. package/lib/components/menu/index.js +1 -1
  601. package/lib/components/schema-editor/Array.js +2 -1
  602. package/lib/components/schema-editor/Common.d.ts +3 -0
  603. package/lib/components/schema-editor/Common.js +3 -1
  604. package/lib/components/schema-editor/Item.js +2 -12
  605. package/lib/components/schema-editor/Object.js +2 -1
  606. package/lib/components/schema-editor/SchemaVariableList.js +1 -1
  607. package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
  608. package/lib/components/schema-editor/index.d.ts +51 -52
  609. package/lib/components/schema-editor/index.js +3 -1
  610. package/lib/components/table/Cell.js +1 -1
  611. package/lib/components/table/ColGroup.js +1 -1
  612. package/lib/components/table/Head.js +1 -1
  613. package/lib/components/table/HeadCellDropDown.js +1 -1
  614. package/lib/components/table/HeadCellFilter.d.ts +40 -40
  615. package/lib/components/table/HeadCellFilter.js +1 -1
  616. package/lib/components/table/HeadCellSelect.d.ts +40 -40
  617. package/lib/components/table/HeadCellSelect.js +1 -1
  618. package/lib/components/table/HeadCellSort.js +1 -1
  619. package/lib/components/table/ItemActionsWrapper.js +1 -1
  620. package/lib/components/table/Row.js +1 -1
  621. package/lib/components/table/SummaryRow.js +1 -1
  622. package/lib/components/table/index.d.ts +80 -80
  623. package/lib/components/table/index.js +1 -1
  624. package/lib/components/table/util.d.ts +9 -9
  625. package/lib/components/table/util.js +1 -1
  626. package/lib/components/virtual-list/AutoSizer.js +1 -1
  627. package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
  628. package/lib/components/virtual-list/constants.js +1 -1
  629. package/lib/components/virtual-list/index.js +1 -1
  630. package/lib/components/withBadge.js +1 -1
  631. package/lib/hooks/index.d.ts +1 -0
  632. package/lib/hooks/use-on-screen.d.ts +2 -0
  633. package/lib/hooks/use-on-screen.js +32 -0
  634. package/lib/hooks/use-set-state.js +1 -1
  635. package/lib/hooks/use-sub-form.js +1 -1
  636. package/lib/hooks/use-touch.js +1 -1
  637. package/lib/hooks/use-update-effect.js +1 -1
  638. package/lib/hooks/use-validation-resolver.js +1 -1
  639. package/lib/icons/alert-danger.svg.js +1 -1
  640. package/lib/icons/alert-info.svg.js +1 -1
  641. package/lib/icons/alert-success.svg.js +1 -1
  642. package/lib/icons/alert-warning.svg.js +1 -1
  643. package/lib/icons/arrow-double-left.svg.js +1 -1
  644. package/lib/icons/arrow-double-right.svg.js +1 -1
  645. package/lib/icons/back.svg.js +1 -1
  646. package/lib/icons/calendar.svg.js +1 -1
  647. package/lib/icons/caret.svg.js +1 -1
  648. package/lib/icons/check.svg.js +1 -1
  649. package/lib/icons/clock.svg.js +1 -1
  650. package/lib/icons/close-small.svg.js +1 -1
  651. package/lib/icons/close.svg.js +1 -1
  652. package/lib/icons/cloud-upload.svg.js +1 -1
  653. package/lib/icons/column-filter.svg.js +1 -1
  654. package/lib/icons/columns.svg.js +1 -1
  655. package/lib/icons/compress-alt.svg.js +1 -1
  656. package/lib/icons/copy.svg.js +1 -1
  657. package/lib/icons/date.svg.js +1 -1
  658. package/lib/icons/department.svg.js +1 -1
  659. package/lib/icons/desk-empty.svg.js +1 -1
  660. package/lib/icons/dot.svg.js +1 -1
  661. package/lib/icons/down-arrow-bold.svg.js +1 -1
  662. package/lib/icons/down.svg.js +1 -1
  663. package/lib/icons/download.svg.js +1 -1
  664. package/lib/icons/drag-bar.svg.js +1 -1
  665. package/lib/icons/drag.svg.js +1 -1
  666. package/lib/icons/edit.svg.js +1 -1
  667. package/lib/icons/ellipsis-v.svg.js +1 -1
  668. package/lib/icons/enter.svg.js +1 -1
  669. package/lib/icons/exchange.svg.js +1 -1
  670. package/lib/icons/expand-alt.svg.js +1 -1
  671. package/lib/icons/fail.svg.js +1 -1
  672. package/lib/icons/file.svg.js +1 -1
  673. package/lib/icons/filter.svg.js +1 -1
  674. package/lib/icons/folder.svg.js +1 -1
  675. package/lib/icons/fullscreen.svg.js +1 -1
  676. package/lib/icons/function.svg.js +1 -1
  677. package/lib/icons/home.svg.js +1 -1
  678. package/lib/icons/if.svg.js +1 -1
  679. package/lib/icons/image.svg.js +1 -1
  680. package/lib/icons/info-circle.svg.js +1 -1
  681. package/lib/icons/info.svg.js +1 -1
  682. package/lib/icons/input-clear.svg.js +1 -1
  683. package/lib/icons/invisible.svg.js +1 -1
  684. package/lib/icons/left-arrow.svg.js +1 -1
  685. package/lib/icons/loading-outline.svg.js +1 -1
  686. package/lib/icons/location.svg.js +1 -1
  687. package/lib/icons/menu.svg.js +1 -1
  688. package/lib/icons/minus.svg.js +1 -1
  689. package/lib/icons/move.svg.js +1 -1
  690. package/lib/icons/mute.svg.js +1 -1
  691. package/lib/icons/new-edit.svg.js +1 -1
  692. package/lib/icons/pause.svg.js +1 -1
  693. package/lib/icons/pencil.svg.js +1 -1
  694. package/lib/icons/play.svg.js +1 -1
  695. package/lib/icons/plus-cicle.svg.js +1 -1
  696. package/lib/icons/plus-fine.svg.js +1 -1
  697. package/lib/icons/plus.svg.js +1 -1
  698. package/lib/icons/post.svg.js +1 -1
  699. package/lib/icons/question-mark.svg.js +1 -1
  700. package/lib/icons/question.svg.js +1 -1
  701. package/lib/icons/redo.svg.js +1 -1
  702. package/lib/icons/refresh.svg.js +1 -1
  703. package/lib/icons/reload.svg.js +1 -1
  704. package/lib/icons/remove.svg.js +1 -1
  705. package/lib/icons/retry.svg.js +1 -1
  706. package/lib/icons/right-arrow-bold.svg.js +1 -1
  707. package/lib/icons/right-arrow.svg.js +1 -1
  708. package/lib/icons/right-double-arrow.svg.js +1 -1
  709. package/lib/icons/role.svg.js +1 -1
  710. package/lib/icons/rotate-left.svg.js +1 -1
  711. package/lib/icons/rotate-right.svg.js +1 -1
  712. package/lib/icons/rotate-screen.svg.js +28 -0
  713. package/lib/icons/scale-origin.svg.js +1 -1
  714. package/lib/icons/schedule.svg.js +1 -1
  715. package/lib/icons/search.svg.js +1 -1
  716. package/lib/icons/setting.svg.js +1 -1
  717. package/lib/icons/slider-handle-icon.svg.js +1 -1
  718. package/lib/icons/sort-asc.svg.js +1 -1
  719. package/lib/icons/sort-default.svg.js +1 -1
  720. package/lib/icons/sort-desc.svg.js +1 -1
  721. package/lib/icons/star.svg.js +1 -1
  722. package/lib/icons/status-close.svg.js +1 -1
  723. package/lib/icons/steps-finsh.svg.js +1 -1
  724. package/lib/icons/sub-plus.svg.js +1 -1
  725. package/lib/icons/success.svg.js +1 -1
  726. package/lib/icons/transparent.svg.js +1 -1
  727. package/lib/icons/trash.svg.js +1 -1
  728. package/lib/icons/tree-down.svg.js +1 -1
  729. package/lib/icons/undo-normal.svg.js +1 -1
  730. package/lib/icons/undo.svg.js +1 -1
  731. package/lib/icons/unfullscreen.svg.js +1 -1
  732. package/lib/icons/upload.svg.js +1 -1
  733. package/lib/icons/user-remove.svg.js +1 -1
  734. package/lib/icons/view.svg.js +1 -1
  735. package/lib/icons/volume.svg.js +1 -1
  736. package/lib/icons/warning-mark.svg.js +1 -1
  737. package/lib/icons/warning.svg.js +1 -1
  738. package/lib/icons/window-restore.svg.js +1 -1
  739. package/lib/icons/zoom-in.svg.js +1 -1
  740. package/lib/icons/zoom-out.svg.js +1 -1
  741. package/lib/index.js +7 -1
  742. package/lib/locale/de-DE.js +6 -1
  743. package/lib/locale/en-US.js +6 -1
  744. package/lib/locale/zh-CN.js +6 -1
  745. package/lib/scss/helper.scss.js +1 -1
  746. package/lib/scss/themes/ang.scss.js +1 -1
  747. package/lib/scss/themes/antd.scss.js +1 -1
  748. package/lib/scss/themes/cxd.scss.js +1 -1
  749. package/lib/scss/themes/dark.scss.js +1 -1
  750. package/lib/scss/themes/default.scss.js +1 -1
  751. package/lib/themes/ang.css +312 -15
  752. package/lib/themes/ang.js +1 -1
  753. package/lib/themes/antd.css +312 -15
  754. package/lib/themes/antd.js +1 -1
  755. package/lib/themes/cxd.css +312 -15
  756. package/lib/themes/cxd.js +1 -1
  757. package/lib/themes/dark.css +312 -15
  758. package/lib/themes/dark.js +1 -1
  759. package/lib/themes/default.css +312 -15
  760. package/lib/withRemoteConfig.js +1 -1
  761. package/lib/withStore.js +1 -1
  762. package/package.json +3 -3
  763. package/scss/_properties.scss +4 -0
  764. package/scss/components/_card.scss +13 -0
  765. package/scss/components/_crud2.scss +119 -13
  766. package/scss/components/_mobile-dev-tool.scss +175 -0
  767. package/scss/components/_modal.scss +1 -0
  768. package/scss/components/_panel.scss +23 -9
  769. package/scss/components/_pull-refresh.scss +6 -1
  770. package/scss/components/_table.scss +6 -1
  771. package/scss/components/form/_form.scss +4 -5
  772. package/scss/themes/_common.scss +2 -0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.9.0-rc.3
2
+ * amis-ui v6.9.0-rc.4
3
3
  * Copyright 2018-2024 fex
4
4
  */
5
5
 
@@ -5,35 +5,34 @@
5
5
  */
6
6
  /// <reference types="hoist-non-react-statics" />
7
7
  import React from 'react';
8
- import { ClassNamesFn } from 'amis-core';
8
+ import { ThemeProps } from 'amis-core';
9
9
  import { LocaleProps } from 'amis-core';
10
10
  export declare function monacoFactory(containerElement: HTMLElement, monaco: any, options: any): any;
11
- export interface EditorProps extends LocaleProps {
11
+ export interface EditorBaseProps {
12
12
  value?: string;
13
13
  defaultValue?: string;
14
14
  width?: number | string;
15
15
  height?: number | string;
16
16
  onChange?: (value: string, event: any) => void;
17
+ disabled?: boolean;
17
18
  language?: string;
18
19
  editorTheme?: string;
19
20
  allowFullscreen?: boolean;
20
21
  options: {
21
22
  [propName: string]: any;
22
23
  };
23
- classPrefix: string;
24
- className?: string;
25
- classnames: ClassNamesFn;
26
24
  context?: any;
27
- style?: any;
28
25
  isDiffEditor?: boolean;
29
26
  placeholder?: string;
30
- onFocus?: () => void;
31
- onBlur?: () => void;
27
+ onFocus?: (e: any) => void;
28
+ onBlur?: (e: any) => void;
32
29
  editorDidMount?: (editor: any, monaco: any) => void;
33
30
  editorWillMount?: (monaco: any) => void;
34
31
  editorWillUnmount?: (editor: any, monaco: any) => void;
35
32
  editorFactory?: (conatainer: HTMLElement, monaco: any, options: any) => any;
36
33
  }
34
+ export interface EditorProps extends EditorBaseProps, LocaleProps, ThemeProps {
35
+ }
37
36
  export interface EditorState {
38
37
  isFullscreen?: boolean;
39
38
  innerWidth?: any;
@@ -57,13 +56,12 @@ export declare class Editor extends React.Component<EditorProps, EditorState> {
57
56
  container: any;
58
57
  currentValue: any;
59
58
  preventTriggerChangeEvent: boolean;
60
- disposes: Array<{
61
- dispose: () => void;
62
- }>;
59
+ disposes: Array<() => void>;
63
60
  constructor(props: EditorProps);
64
61
  componentDidUpdate(prevProps: EditorProps): void;
65
62
  componentWillUnmount(): void;
66
63
  wrapperRef(ref: any): void;
64
+ getDom(): any;
67
65
  loadMonaco(): void;
68
66
  initMonaco(monaco: any): void;
69
67
  editorWillMount(monaco: any): void;
@@ -72,7 +70,7 @@ export declare class Editor extends React.Component<EditorProps, EditorState> {
72
70
  render(): React.JSX.Element;
73
71
  }
74
72
  declare const _default: {
75
- new (props: Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
73
+ new (props: Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
76
74
  width?: string | number | undefined;
77
75
  height?: string | number | undefined;
78
76
  options?: {
@@ -84,13 +82,13 @@ declare const _default: {
84
82
  } & {} & {
85
83
  locale?: string | undefined;
86
84
  translate?: ((str: string, ...args: any[]) => string) | undefined;
87
- }, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps): {
85
+ }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps): {
88
86
  ref: any;
89
87
  childRef(ref: any): void;
90
88
  getWrappedInstance(): any;
91
89
  render(): React.JSX.Element;
92
90
  context: unknown;
93
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
91
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
94
92
  width?: string | number | undefined;
95
93
  height?: string | number | undefined;
96
94
  options?: {
@@ -102,9 +100,9 @@ declare const _default: {
102
100
  } & {} & {
103
101
  locale?: string | undefined;
104
102
  translate?: ((str: string, ...args: any[]) => string) | undefined;
105
- }, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
103
+ }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
106
104
  forceUpdate(callback?: (() => void) | undefined): void;
107
- readonly props: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
105
+ readonly props: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
108
106
  width?: string | number | undefined;
109
107
  height?: string | number | undefined;
110
108
  options?: {
@@ -116,13 +114,13 @@ declare const _default: {
116
114
  } & {} & {
117
115
  locale?: string | undefined;
118
116
  translate?: ((str: string, ...args: any[]) => string) | undefined;
119
- }, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>;
117
+ }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>;
120
118
  state: Readonly<{}>;
121
119
  refs: {
122
120
  [key: string]: React.ReactInstance;
123
121
  };
124
122
  componentDidMount?(): void;
125
- shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
123
+ shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
126
124
  width?: string | number | undefined;
127
125
  height?: string | number | undefined;
128
126
  options?: {
@@ -134,10 +132,10 @@ declare const _default: {
134
132
  } & {} & {
135
133
  locale?: string | undefined;
136
134
  translate?: ((str: string, ...args: any[]) => string) | undefined;
137
- }, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
135
+ }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
138
136
  componentWillUnmount?(): void;
139
137
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
140
- getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
138
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
141
139
  width?: string | number | undefined;
142
140
  height?: string | number | undefined;
143
141
  options?: {
@@ -149,8 +147,8 @@ declare const _default: {
149
147
  } & {} & {
150
148
  locale?: string | undefined;
151
149
  translate?: ((str: string, ...args: any[]) => string) | undefined;
152
- }, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
153
- componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
150
+ }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
151
+ componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
154
152
  width?: string | number | undefined;
155
153
  height?: string | number | undefined;
156
154
  options?: {
@@ -162,10 +160,10 @@ declare const _default: {
162
160
  } & {} & {
163
161
  locale?: string | undefined;
164
162
  translate?: ((str: string, ...args: any[]) => string) | undefined;
165
- }, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
163
+ }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
166
164
  componentWillMount?(): void;
167
165
  UNSAFE_componentWillMount?(): void;
168
- componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
166
+ componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
169
167
  width?: string | number | undefined;
170
168
  height?: string | number | undefined;
171
169
  options?: {
@@ -177,8 +175,8 @@ declare const _default: {
177
175
  } & {} & {
178
176
  locale?: string | undefined;
179
177
  translate?: ((str: string, ...args: any[]) => string) | undefined;
180
- }, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
181
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
178
+ }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
179
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
182
180
  width?: string | number | undefined;
183
181
  height?: string | number | undefined;
184
182
  options?: {
@@ -190,8 +188,8 @@ declare const _default: {
190
188
  } & {} & {
191
189
  locale?: string | undefined;
192
190
  translate?: ((str: string, ...args: any[]) => string) | undefined;
193
- }, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
194
- componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
191
+ }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
192
+ componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
195
193
  width?: string | number | undefined;
196
194
  height?: string | number | undefined;
197
195
  options?: {
@@ -203,8 +201,8 @@ declare const _default: {
203
201
  } & {} & {
204
202
  locale?: string | undefined;
205
203
  translate?: ((str: string, ...args: any[]) => string) | undefined;
206
- }, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
207
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
204
+ }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
205
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
208
206
  width?: string | number | undefined;
209
207
  height?: string | number | undefined;
210
208
  options?: {
@@ -216,12 +214,12 @@ declare const _default: {
216
214
  } & {} & {
217
215
  locale?: string | undefined;
218
216
  translate?: ((str: string, ...args: any[]) => string) | undefined;
219
- }, keyof import("amis-core").ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
217
+ }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
220
218
  };
221
219
  displayName: string;
222
220
  contextType: React.Context<string>;
223
221
  ComposedComponent: React.ComponentType<{
224
- new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
222
+ new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
225
223
  width?: string | number | undefined;
226
224
  height?: string | number | undefined;
227
225
  options?: {
@@ -239,7 +237,7 @@ declare const _default: {
239
237
  getWrappedInstance(): any;
240
238
  render(): React.JSX.Element;
241
239
  context: unknown;
242
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
240
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
243
241
  width?: string | number | undefined;
244
242
  height?: string | number | undefined;
245
243
  options?: {
@@ -253,7 +251,7 @@ declare const _default: {
253
251
  translate?: ((str: string, ...args: any[]) => string) | undefined;
254
252
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
255
253
  forceUpdate(callback?: (() => void) | undefined): void;
256
- readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
254
+ readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
257
255
  width?: string | number | undefined;
258
256
  height?: string | number | undefined;
259
257
  options?: {
@@ -271,7 +269,7 @@ declare const _default: {
271
269
  [key: string]: React.ReactInstance;
272
270
  };
273
271
  componentDidMount?(): void;
274
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
272
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
275
273
  width?: string | number | undefined;
276
274
  height?: string | number | undefined;
277
275
  options?: {
@@ -286,7 +284,7 @@ declare const _default: {
286
284
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
287
285
  componentWillUnmount?(): void;
288
286
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
289
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
287
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
290
288
  width?: string | number | undefined;
291
289
  height?: string | number | undefined;
292
290
  options?: {
@@ -299,7 +297,7 @@ declare const _default: {
299
297
  locale?: string | undefined;
300
298
  translate?: ((str: string, ...args: any[]) => string) | undefined;
301
299
  }>, prevState: Readonly<{}>): any;
302
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
300
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
303
301
  width?: string | number | undefined;
304
302
  height?: string | number | undefined;
305
303
  options?: {
@@ -314,7 +312,7 @@ declare const _default: {
314
312
  }>, prevState: Readonly<{}>, snapshot?: any): void;
315
313
  componentWillMount?(): void;
316
314
  UNSAFE_componentWillMount?(): void;
317
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
315
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
318
316
  width?: string | number | undefined;
319
317
  height?: string | number | undefined;
320
318
  options?: {
@@ -327,7 +325,7 @@ declare const _default: {
327
325
  locale?: string | undefined;
328
326
  translate?: ((str: string, ...args: any[]) => string) | undefined;
329
327
  }>, nextContext: any): void;
330
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
328
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
331
329
  width?: string | number | undefined;
332
330
  height?: string | number | undefined;
333
331
  options?: {
@@ -340,7 +338,7 @@ declare const _default: {
340
338
  locale?: string | undefined;
341
339
  translate?: ((str: string, ...args: any[]) => string) | undefined;
342
340
  }>, nextContext: any): void;
343
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
341
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
344
342
  width?: string | number | undefined;
345
343
  height?: string | number | undefined;
346
344
  options?: {
@@ -353,7 +351,7 @@ declare const _default: {
353
351
  locale?: string | undefined;
354
352
  translate?: ((str: string, ...args: any[]) => string) | undefined;
355
353
  }>, nextState: Readonly<{}>, nextContext: any): void;
356
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
354
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
357
355
  width?: string | number | undefined;
358
356
  height?: string | number | undefined;
359
357
  options?: {
@@ -374,7 +372,7 @@ declare const _default: {
374
372
  ComposedComponent: typeof Editor;
375
373
  }>;
376
374
  } & import("hoist-non-react-statics").NonReactStatics<{
377
- new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
375
+ new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
378
376
  width?: string | number | undefined;
379
377
  height?: string | number | undefined;
380
378
  options?: {
@@ -392,7 +390,7 @@ declare const _default: {
392
390
  getWrappedInstance(): any;
393
391
  render(): React.JSX.Element;
394
392
  context: unknown;
395
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
393
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
396
394
  width?: string | number | undefined;
397
395
  height?: string | number | undefined;
398
396
  options?: {
@@ -406,7 +404,7 @@ declare const _default: {
406
404
  translate?: ((str: string, ...args: any[]) => string) | undefined;
407
405
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
408
406
  forceUpdate(callback?: (() => void) | undefined): void;
409
- readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
407
+ readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
410
408
  width?: string | number | undefined;
411
409
  height?: string | number | undefined;
412
410
  options?: {
@@ -424,7 +422,7 @@ declare const _default: {
424
422
  [key: string]: React.ReactInstance;
425
423
  };
426
424
  componentDidMount?(): void;
427
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
425
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
428
426
  width?: string | number | undefined;
429
427
  height?: string | number | undefined;
430
428
  options?: {
@@ -439,7 +437,7 @@ declare const _default: {
439
437
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
440
438
  componentWillUnmount?(): void;
441
439
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
442
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
440
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
443
441
  width?: string | number | undefined;
444
442
  height?: string | number | undefined;
445
443
  options?: {
@@ -452,7 +450,7 @@ declare const _default: {
452
450
  locale?: string | undefined;
453
451
  translate?: ((str: string, ...args: any[]) => string) | undefined;
454
452
  }>, prevState: Readonly<{}>): any;
455
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
453
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
456
454
  width?: string | number | undefined;
457
455
  height?: string | number | undefined;
458
456
  options?: {
@@ -467,7 +465,7 @@ declare const _default: {
467
465
  }>, prevState: Readonly<{}>, snapshot?: any): void;
468
466
  componentWillMount?(): void;
469
467
  UNSAFE_componentWillMount?(): void;
470
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
468
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
471
469
  width?: string | number | undefined;
472
470
  height?: string | number | undefined;
473
471
  options?: {
@@ -480,7 +478,7 @@ declare const _default: {
480
478
  locale?: string | undefined;
481
479
  translate?: ((str: string, ...args: any[]) => string) | undefined;
482
480
  }>, nextContext: any): void;
483
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
481
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
484
482
  width?: string | number | undefined;
485
483
  height?: string | number | undefined;
486
484
  options?: {
@@ -493,7 +491,7 @@ declare const _default: {
493
491
  locale?: string | undefined;
494
492
  translate?: ((str: string, ...args: any[]) => string) | undefined;
495
493
  }>, nextContext: any): void;
496
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
494
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
497
495
  width?: string | number | undefined;
498
496
  height?: string | number | undefined;
499
497
  options?: {
@@ -506,7 +504,7 @@ declare const _default: {
506
504
  locale?: string | undefined;
507
505
  translate?: ((str: string, ...args: any[]) => string) | undefined;
508
506
  }>, nextState: Readonly<{}>, nextContext: any): void;
509
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
507
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
510
508
  width?: string | number | undefined;
511
509
  height?: string | number | undefined;
512
510
  options?: {
@@ -527,7 +525,7 @@ declare const _default: {
527
525
  ComposedComponent: typeof Editor;
528
526
  }, {}> & {
529
527
  ComposedComponent: {
530
- new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
528
+ new (props: Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
531
529
  width?: string | number | undefined;
532
530
  height?: string | number | undefined;
533
531
  options?: {
@@ -545,7 +543,7 @@ declare const _default: {
545
543
  getWrappedInstance(): any;
546
544
  render(): React.JSX.Element;
547
545
  context: unknown;
548
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
546
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
549
547
  width?: string | number | undefined;
550
548
  height?: string | number | undefined;
551
549
  options?: {
@@ -559,7 +557,7 @@ declare const _default: {
559
557
  translate?: ((str: string, ...args: any[]) => string) | undefined;
560
558
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
561
559
  forceUpdate(callback?: (() => void) | undefined): void;
562
- readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
560
+ readonly props: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
563
561
  width?: string | number | undefined;
564
562
  height?: string | number | undefined;
565
563
  options?: {
@@ -577,7 +575,7 @@ declare const _default: {
577
575
  [key: string]: React.ReactInstance;
578
576
  };
579
577
  componentDidMount?(): void;
580
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
578
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
581
579
  width?: string | number | undefined;
582
580
  height?: string | number | undefined;
583
581
  options?: {
@@ -592,7 +590,7 @@ declare const _default: {
592
590
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
593
591
  componentWillUnmount?(): void;
594
592
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
595
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
593
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
596
594
  width?: string | number | undefined;
597
595
  height?: string | number | undefined;
598
596
  options?: {
@@ -605,7 +603,7 @@ declare const _default: {
605
603
  locale?: string | undefined;
606
604
  translate?: ((str: string, ...args: any[]) => string) | undefined;
607
605
  }>, prevState: Readonly<{}>): any;
608
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
606
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
609
607
  width?: string | number | undefined;
610
608
  height?: string | number | undefined;
611
609
  options?: {
@@ -620,7 +618,7 @@ declare const _default: {
620
618
  }>, prevState: Readonly<{}>, snapshot?: any): void;
621
619
  componentWillMount?(): void;
622
620
  UNSAFE_componentWillMount?(): void;
623
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
621
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
624
622
  width?: string | number | undefined;
625
623
  height?: string | number | undefined;
626
624
  options?: {
@@ -633,7 +631,7 @@ declare const _default: {
633
631
  locale?: string | undefined;
634
632
  translate?: ((str: string, ...args: any[]) => string) | undefined;
635
633
  }>, nextContext: any): void;
636
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
634
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
637
635
  width?: string | number | undefined;
638
636
  height?: string | number | undefined;
639
637
  options?: {
@@ -646,7 +644,7 @@ declare const _default: {
646
644
  locale?: string | undefined;
647
645
  translate?: ((str: string, ...args: any[]) => string) | undefined;
648
646
  }>, nextContext: any): void;
649
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
647
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
650
648
  width?: string | number | undefined;
651
649
  height?: string | number | undefined;
652
650
  options?: {
@@ -659,7 +657,7 @@ declare const _default: {
659
657
  locale?: string | undefined;
660
658
  translate?: ((str: string, ...args: any[]) => string) | undefined;
661
659
  }>, nextState: Readonly<{}>, nextContext: any): void;
662
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "onBlur" | "onFocus" | "defaultValue" | "value" | "onChange" | "placeholder" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
660
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<EditorProps, keyof LocaleProps>, "onChange" | "className" | "style" | "value" | "placeholder" | "disabled" | "onFocus" | "onBlur" | "classnames" | "classPrefix" | "theme" | "mobileUI" | "defaultValue" | "context" | "isDiffEditor" | "editorDidMount" | "editorWillMount" | "editorWillUnmount" | "editorFactory"> & {
663
661
  width?: string | number | undefined;
664
662
  height?: string | number | undefined;
665
663
  options?: {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.9.0-rc.3
2
+ * amis-ui v6.9.0-rc.4
3
3
  * Copyright 2018-2024 fex
4
4
  */
5
5
 
@@ -61,6 +61,7 @@ var Editor = /** @class */ (function (_super) {
61
61
  };
62
62
  _this.disposes = [];
63
63
  _this.wrapperRef = _this.wrapperRef.bind(_this);
64
+ _this.getDom = _this.getDom.bind(_this);
64
65
  _this.currentValue = props.value;
65
66
  return _this;
66
67
  }
@@ -105,10 +106,7 @@ var Editor = /** @class */ (function (_super) {
105
106
  var editorWillUnmount = this.props.editorWillUnmount;
106
107
  editorWillUnmount && editorWillUnmount(this.editor, monaco);
107
108
  }
108
- this.disposes.forEach(function (_a) {
109
- var dispose = _a.dispose;
110
- return dispose();
111
- });
109
+ this.disposes.forEach(function (dispose) { return dispose(); });
112
110
  this.disposes = [];
113
111
  (_a = this.editor) === null || _a === void 0 ? void 0 : _a.dispose();
114
112
  };
@@ -119,10 +117,7 @@ var Editor = /** @class */ (function (_super) {
119
117
  }
120
118
  else {
121
119
  try {
122
- this.disposes.forEach(function (_a) {
123
- var dispose = _a.dispose;
124
- return dispose();
125
- });
120
+ this.disposes.forEach(function (dispose) { return dispose(); });
126
121
  this.disposes = [];
127
122
  if (this.editor) {
128
123
  this.editor.getModel().dispose();
@@ -135,6 +130,9 @@ var Editor = /** @class */ (function (_super) {
135
130
  }
136
131
  }
137
132
  };
133
+ Editor.prototype.getDom = function () {
134
+ return this.container;
135
+ };
138
136
  Editor.prototype.loadMonaco = function () {
139
137
  var _this = this;
140
138
  // 由于 require.config({'vs/nls': { availableLanguages: { '*': 'xxxx' }}}) 只能在初始化之前设置有用,所以这里只能用全局变量的方式来设置。
@@ -161,7 +159,7 @@ var Editor = /** @class */ (function (_super) {
161
159
  }
162
160
  }
163
161
  var factory = editorFactory || monacoFactory;
164
- this.editor = factory(containerElement, monaco, __assign(__assign({}, options), { automaticLayout: true, value: value, language: language, editorTheme: editorTheme, theme: editorTheme }));
162
+ this.editor = factory(containerElement, monaco, __assign(__assign({}, options), { readOnly: this.props.disabled, automaticLayout: true, value: value, language: language, editorTheme: editorTheme, theme: editorTheme }));
165
163
  // json 默认开启验证。
166
164
  (_a = monaco.languages.json) === null || _a === void 0 ? void 0 : _a.jsonDefaults.setDiagnosticsOptions(__assign({ enableSchemaRequest: true, validate: true, allowComments: true }, (_b = monaco.languages.json) === null || _b === void 0 ? void 0 : _b.jsonDefaults.diagnosticsOptions));
167
165
  // After initializing monaco editor
@@ -185,13 +183,13 @@ var Editor = /** @class */ (function (_super) {
185
183
  if (!_this.preventTriggerChangeEvent && onChange) {
186
184
  onChange(value, event);
187
185
  }
188
- }));
186
+ }).dispose);
189
187
  onFocus &&
190
188
  editor.onDidFocusEditorWidget &&
191
- this.disposes.push(editor.onDidFocusEditorWidget(onFocus));
189
+ this.disposes.push(editor.onDidFocusEditorWidget(onFocus).dispose);
192
190
  onBlur &&
193
191
  editor.onDidBlurEditorWidget &&
194
- this.disposes.push(editor.onDidBlurEditorWidget(onBlur));
192
+ this.disposes.push(editor.onDidBlurEditorWidget(onBlur).dispose);
195
193
  var _e = (_c = (_b = (_a = this === null || this === void 0 ? void 0 : this.editor) === null || _a === void 0 ? void 0 : _a._configuration) === null || _b === void 0 ? void 0 : _b._elementSizeObserver) !== null && _c !== void 0 ? _c : {}, _f = _e.width, width = _f === void 0 ? 'auto' : _f, _g = _e.height, height = _g === void 0 ? 'auto' : _g;
196
194
  this.setState({ innerHeight: height, innerWidth: width });
197
195
  };
@@ -235,6 +233,6 @@ var Editor = /** @class */ (function (_super) {
235
233
  ], Editor.prototype, "handleFullscreenModeChange", null);
236
234
  return Editor;
237
235
  }(React__default.Component));
238
- var MonacoEditor = themeable(localeable(Editor));
236
+ var MonacoEditor = themeable(localeable(Editor, ['getDom']), ['getDom']);
239
237
 
240
238
  export { Editor, MonacoEditor as default, monacoFactory };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.9.0-rc.3
2
+ * amis-ui v6.9.0-rc.4
3
3
  * Copyright 2018-2024 fex
4
4
  */
5
5