ketcher-react 2.3.0 → 2.4.0

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 (243) hide show
  1. package/dist/Editor.d.ts +2 -2
  2. package/dist/contexts/appContext.d.ts +17 -1
  3. package/dist/{script/editor/operations/FragmentStereoFlag.d.ts → contexts/errorsContext.d.ts} +5 -7
  4. package/dist/contexts/formContext.d.ts +15 -0
  5. package/dist/contexts/index.d.ts +19 -3
  6. package/dist/contexts/settingsContext.d.ts +15 -0
  7. package/dist/hooks/index.d.ts +16 -0
  8. package/dist/hooks/useAppContext.d.ts +15 -0
  9. package/dist/hooks/useFormContext.d.ts +15 -0
  10. package/dist/{script/ui/dialog/template/TemplateLib.d.ts → hooks/useInterval.d.ts} +1 -8
  11. package/dist/hooks/useSettingsContext.d.ts +15 -0
  12. package/dist/icons/index.d.ts +15 -0
  13. package/dist/index.css +1 -3
  14. package/dist/index.css.map +1 -1
  15. package/dist/index.d.ts +0 -1
  16. package/dist/index.js +15741 -19573
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.modern.js +15698 -19547
  19. package/dist/index.modern.js.map +1 -1
  20. package/dist/script/builders/ketcher/ButtonName.d.ts +1 -1
  21. package/dist/script/builders/ketcher/KetcherBuilder.d.ts +2 -5
  22. package/dist/script/editor/Editor.d.ts +7 -4
  23. package/dist/script/editor/index.d.ts +15 -0
  24. package/dist/script/editor/shared/utils.d.ts +2 -4
  25. package/dist/script/editor/tool/apoint.d.ts +5 -1
  26. package/dist/script/editor/tool/atom.d.ts +4 -0
  27. package/dist/script/editor/tool/attach.d.ts +5 -1
  28. package/dist/script/editor/tool/bond.d.ts +6 -2
  29. package/dist/script/editor/tool/chain.d.ts +6 -2
  30. package/dist/script/editor/tool/charge.d.ts +5 -1
  31. package/dist/script/editor/tool/enhanced-stereo.d.ts +15 -0
  32. package/dist/script/editor/tool/eraser.d.ts +4 -0
  33. package/dist/script/editor/tool/helper/lasso.d.ts +1 -0
  34. package/dist/script/editor/tool/paste.d.ts +7 -7
  35. package/dist/script/editor/tool/reactionarrow.d.ts +3 -4
  36. package/dist/script/editor/tool/rgroupatom.d.ts +4 -1
  37. package/dist/script/editor/tool/rgroupfragment.d.ts +5 -1
  38. package/dist/script/editor/tool/rotate.d.ts +1 -1
  39. package/dist/script/editor/tool/select.d.ts +23 -12
  40. package/dist/script/editor/tool/sgroup.d.ts +4 -0
  41. package/dist/script/editor/tool/template.d.ts +6 -1
  42. package/dist/script/editor/utils/customOnChangeHandler.d.ts +15 -0
  43. package/dist/script/index.d.ts +3 -2
  44. package/dist/script/ui/App/App.container.d.ts +17 -1
  45. package/dist/script/ui/App/AppHidden/AppHidden.container.d.ts +17 -1
  46. package/dist/script/ui/App/AppHidden/AppHidden.d.ts +15 -0
  47. package/dist/script/ui/App/initApp.d.ts +1 -5
  48. package/dist/script/ui/Portal/Portal.d.ts +1 -1
  49. package/dist/script/ui/action/action.types.d.ts +1 -1
  50. package/dist/script/ui/action/copyAs.d.ts +1 -0
  51. package/dist/script/ui/action/copyImageToClipboard.d.ts +2 -0
  52. package/dist/script/ui/action/debug.d.ts +2 -0
  53. package/dist/script/{editor/operations/rxn/RxnArrowMove.d.ts → ui/action/functionalGroups.d.ts} +12 -11
  54. package/dist/script/ui/action/index.d.ts +196 -10
  55. package/dist/script/ui/action/isHidden.d.ts +18 -0
  56. package/dist/script/ui/action/templates.d.ts +2 -0
  57. package/dist/script/ui/action/tools.d.ts +134 -4
  58. package/dist/script/ui/action/zoom.d.ts +6 -0
  59. package/dist/script/ui/component/ContextMenu/ContextMenu.d.ts +2 -0
  60. package/dist/script/ui/component/{cliparea.d.ts → cliparea/cliparea.d.ts} +3 -3
  61. package/dist/script/ui/component/form/buttonlist.d.ts +2 -1
  62. package/dist/script/ui/component/form/colorPicker/ColorPicker.d.ts +15 -0
  63. package/dist/script/ui/component/form/{combobox.d.ts → combobox/combobox.d.ts} +2 -2
  64. package/dist/script/ui/component/form/form/form.d.ts +20 -0
  65. package/dist/script/ui/component/form/input.d.ts +2 -2
  66. package/dist/script/ui/component/form/measure-input.d.ts +2 -2
  67. package/dist/script/ui/component/form/select.d.ts +17 -1
  68. package/dist/script/ui/component/structrender.d.ts +3 -3
  69. package/dist/script/ui/component/view/Tabs/Tabs.d.ts +2 -2
  70. package/dist/script/ui/component/view/openbutton.d.ts +2 -2
  71. package/dist/script/ui/data/schema/struct-schema.d.ts +22 -0
  72. package/dist/script/ui/dialog/index.d.ts +1 -61
  73. package/dist/script/ui/dialog/template/EmptySearchResult.d.ts +19 -0
  74. package/dist/script/ui/dialog/template/TemplateDialog.d.ts +43 -0
  75. package/dist/script/ui/dialog/template/TemplateTable.d.ts +6 -7
  76. package/dist/script/ui/dialog/template/template-attach.d.ts +1 -1
  77. package/dist/script/ui/dialog/toolbox/enhancedStereo/enhancedStereo.d.ts +42 -0
  78. package/dist/script/ui/dialog/toolbox/labeledit.d.ts +2 -1
  79. package/dist/script/ui/dialog/toolbox/rgroup/rgroup.d.ts +15 -0
  80. package/dist/script/ui/dialog/toolbox/sdata.d.ts +18 -1
  81. package/dist/script/ui/dialog/toolbox/sgroup.d.ts +8 -1
  82. package/dist/script/ui/state/action/index.d.ts +4 -2
  83. package/dist/script/ui/state/constants.d.ts +7 -0
  84. package/dist/script/ui/state/editor/index.d.ts +1 -0
  85. package/dist/script/{editor/operations/bond/BondMove.d.ts → ui/state/functionalGroups/index.d.ts} +7 -10
  86. package/dist/script/ui/state/functionalGroups/selectors/index.d.ts +17 -0
  87. package/dist/script/ui/state/hotkeys.d.ts +0 -2
  88. package/dist/script/ui/state/modal/form.d.ts +8 -0
  89. package/dist/script/ui/state/modal/index.d.ts +1 -1
  90. package/dist/script/ui/state/options/index.d.ts +1 -0
  91. package/dist/script/ui/state/templates/index.d.ts +2 -0
  92. package/dist/script/ui/state/templates/init-lib.d.ts +2 -1
  93. package/dist/script/ui/utils/index.d.ts +3 -0
  94. package/dist/script/ui/views/AppClipArea.d.ts +2 -1
  95. package/dist/script/ui/views/Editor.d.ts +2 -1
  96. package/dist/script/ui/views/components/Dialog/Dialog.d.ts +2 -2
  97. package/dist/script/ui/views/components/FunctionalGroups/FunctionalGroups.d.ts +23 -0
  98. package/dist/script/{editor/operations/rgroup → ui/views/components/FunctionalGroups}/index.d.ts +1 -2
  99. package/dist/script/ui/views/components/StructEditor/StructEditor.d.ts +4 -4
  100. package/dist/script/ui/views/components/index.d.ts +1 -1
  101. package/dist/script/ui/views/modal/Modal.container.d.ts +3 -1
  102. package/dist/script/ui/views/modal/components/PeriodTable/PeriodTable.d.ts +31 -1
  103. package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/ElementsTable.d.ts +2 -2
  104. package/dist/script/ui/views/modal/components/PeriodTable/components/index.d.ts +2 -2
  105. package/dist/script/ui/views/modal/components/Text/FontControl/FontControl.d.ts +21 -0
  106. package/dist/script/ui/views/modal/components/{meta/Help → Text/FontControl}/index.d.ts +1 -1
  107. package/dist/script/ui/views/modal/components/Text/Text.d.ts +8 -1
  108. package/dist/script/ui/views/modal/components/Text/TextButton/TextButton.d.ts +15 -0
  109. package/dist/script/ui/views/modal/components/Text/TextButton/index.d.ts +15 -0
  110. package/dist/script/ui/views/modal/components/document/Open/Open.container.d.ts +4 -2
  111. package/dist/script/ui/views/modal/components/document/Open/Open.d.ts +1 -1
  112. package/dist/script/ui/views/modal/components/document/Save/Save.d.ts +33 -1
  113. package/dist/script/ui/views/modal/components/meta/About/About.d.ts +2 -1
  114. package/dist/script/ui/views/modal/components/meta/Settings/Settings.d.ts +21 -1
  115. package/dist/script/ui/views/modal/components/meta/index.d.ts +1 -2
  116. package/dist/script/ui/views/modal/components/process/Analyse/Analyse.d.ts +6 -1
  117. package/dist/script/ui/views/modal/components/process/Analyse/components/FrozenInput/FrozenInput.d.ts +15 -0
  118. package/dist/script/ui/views/modal/components/process/Check/Check.d.ts +2 -1
  119. package/dist/script/ui/views/modal/components/process/Check/components/ErrorsCheck.d.ts +15 -0
  120. package/dist/script/ui/views/modal/components/process/Miew/Miew.d.ts +9 -1
  121. package/dist/script/ui/views/modal/components/process/Recognize/Recognize.d.ts +2 -1
  122. package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.container.d.ts +2 -4
  123. package/dist/script/ui/views/modal/components/toolbox/Atom/ElementNumber/ElementNumber.d.ts +15 -0
  124. package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.container.d.ts +1 -4
  125. package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.d.ts +1 -1
  126. package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.container.d.ts +2 -4
  127. package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.d.ts +1 -1
  128. package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.container.d.ts +1 -4
  129. package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.d.ts +16 -1
  130. package/dist/script/{editor/operations/calcimplicitH.d.ts → ui/views/modal/components/toolbox/FG/RemoveFG.d.ts} +7 -7
  131. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.container.d.ts +1 -4
  132. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.d.ts +2 -1
  133. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/IfThenSelect.d.ts +1 -1
  134. package/dist/script/ui/views/modal/components/toolbox/index.d.ts +1 -1
  135. package/dist/script/ui/views/toolbars/ArrowScroll/ArrowScroll.d.ts +23 -0
  136. package/dist/script/ui/views/toolbars/ArrowScroll/index.d.ts +2 -0
  137. package/dist/script/ui/views/toolbars/BottomToolbar/BottomToolbar.container.d.ts +1 -1
  138. package/dist/script/ui/views/toolbars/BottomToolbar/BottomToolbar.d.ts +15 -0
  139. package/dist/script/ui/views/toolbars/BottomToolbar/TemplatesList/TemplatesList.d.ts +15 -0
  140. package/dist/script/ui/views/toolbars/LeftToolbar/Bond/Bond.d.ts +15 -0
  141. package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.container.d.ts +2 -4
  142. package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.d.ts +15 -0
  143. package/dist/script/ui/views/toolbars/LeftToolbar/RGroup/RGroup.d.ts +15 -0
  144. package/dist/script/ui/views/toolbars/LeftToolbar/Shape/Shape.d.ts +15 -0
  145. package/dist/script/ui/views/toolbars/LeftToolbar/Transform/Transform.d.ts +15 -0
  146. package/dist/script/ui/views/toolbars/LeftToolbar/leftToolbarOptions.d.ts +9 -0
  147. package/dist/script/ui/views/toolbars/RightToolbar/AtomsList/AtomsList.d.ts +17 -2
  148. package/dist/script/ui/views/toolbars/RightToolbar/RightToolbar.container.d.ts +1 -1
  149. package/dist/script/ui/views/toolbars/RightToolbar/RightToolbar.d.ts +15 -0
  150. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ActionButton/ActionButton.d.ts +15 -0
  151. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ActionButton/index.d.ts +15 -0
  152. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarGroupItem.d.ts +16 -0
  153. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/ToolbarMultiToolItem.d.ts +19 -3
  154. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/usePortalOpening.d.ts +15 -0
  155. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/DefaultMultiTool/DefaultMultiTool.d.ts +15 -0
  156. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/GroupedMultiTool/GroupedMultiTool.d.ts +15 -0
  157. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/chooseMultiTool.d.ts +1 -1
  158. package/dist/script/ui/views/toolbars/TopToolbar/HelpLink/HelpLink.d.ts +19 -0
  159. package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.container.d.ts +2 -4
  160. package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.d.ts +15 -0
  161. package/dist/script/ui/views/toolbars/TopToolbar/ZoomList/ZoomList.d.ts +15 -0
  162. package/dist/script/ui/views/toolbars/mediaSizes.d.ts +0 -1
  163. package/dist/script/ui/views/toolbars/shortcutStr.d.ts +15 -0
  164. package/dist/script/ui/views/toolbars/toolbar.types.d.ts +3 -3
  165. package/package.json +32 -27
  166. package/dist/index.test.d.ts +0 -1
  167. package/dist/overlay.svg +0 -1
  168. package/dist/script/editor/actions/aromatic-fusing.d.ts +0 -15
  169. package/dist/script/editor/actions/atom.d.ts +0 -20
  170. package/dist/script/editor/actions/basic.d.ts +0 -3
  171. package/dist/script/editor/actions/bond.d.ts +0 -24
  172. package/dist/script/editor/actions/chain.d.ts +0 -5
  173. package/dist/script/editor/actions/closely-fusing.d.ts +0 -14
  174. package/dist/script/editor/actions/erase.d.ts +0 -4
  175. package/dist/script/editor/actions/fragment.d.ts +0 -10
  176. package/dist/script/editor/actions/paste.d.ts +0 -5
  177. package/dist/script/editor/actions/reaction.d.ts +0 -5
  178. package/dist/script/editor/actions/rgroup.d.ts +0 -4
  179. package/dist/script/editor/actions/rotate.d.ts +0 -4
  180. package/dist/script/editor/actions/sgroup.d.ts +0 -9
  181. package/dist/script/editor/actions/simpleobject.d.ts +0 -4
  182. package/dist/script/editor/actions/template.d.ts +0 -13
  183. package/dist/script/editor/actions/text.d.ts +0 -6
  184. package/dist/script/editor/actions/utils.d.ts +0 -15
  185. package/dist/script/editor/operations/CanvasLoad.d.ts +0 -26
  186. package/dist/script/editor/operations/EnhancedFlagMove.d.ts +0 -11
  187. package/dist/script/editor/operations/LoopMove.d.ts +0 -26
  188. package/dist/script/editor/operations/OperationType.d.ts +0 -62
  189. package/dist/script/editor/operations/Text/TextCreateDelete.d.ts +0 -41
  190. package/dist/script/editor/operations/Text/TextMove.d.ts +0 -29
  191. package/dist/script/editor/operations/Text/TextUpdate.d.ts +0 -29
  192. package/dist/script/editor/operations/Text/index.d.ts +0 -3
  193. package/dist/script/editor/operations/atom/AtomAttr.d.ts +0 -31
  194. package/dist/script/editor/operations/atom/AtomMove.d.ts +0 -28
  195. package/dist/script/editor/operations/atom/index.d.ts +0 -22
  196. package/dist/script/editor/operations/base.d.ts +0 -36
  197. package/dist/script/editor/operations/bond/BondAttr.d.ts +0 -31
  198. package/dist/script/editor/operations/bond/index.d.ts +0 -38
  199. package/dist/script/editor/operations/descriptors.d.ts +0 -15
  200. package/dist/script/editor/operations/fragment.d.ts +0 -15
  201. package/dist/script/editor/operations/fragmentStereoAtom.d.ts +0 -34
  202. package/dist/script/editor/operations/ifThen.d.ts +0 -35
  203. package/dist/script/editor/operations/index.d.ts +0 -32
  204. package/dist/script/editor/operations/rgroup/RGroupAttr.d.ts +0 -31
  205. package/dist/script/editor/operations/rgroup/RGroupFragment.d.ts +0 -29
  206. package/dist/script/editor/operations/rxn/index.d.ts +0 -38
  207. package/dist/script/editor/operations/rxn/plus/RxnPlusMove.d.ts +0 -27
  208. package/dist/script/editor/operations/rxn/plus/index.d.ts +0 -20
  209. package/dist/script/editor/operations/sgroup/SGroupAttr.d.ts +0 -27
  210. package/dist/script/editor/operations/sgroup/SGroupDataMove.d.ts +0 -26
  211. package/dist/script/editor/operations/sgroup/index.d.ts +0 -39
  212. package/dist/script/editor/operations/sgroup/sgroupAtom.d.ts +0 -34
  213. package/dist/script/editor/operations/sgroup/sgroupHierarchy.d.ts +0 -35
  214. package/dist/script/editor/operations/simpleObject.d.ts +0 -69
  215. package/dist/script/editor/shared/action.d.ts +0 -26
  216. package/dist/script/editor/shared/constants.d.ts +0 -7
  217. package/dist/script/ketcher.d.ts +0 -44
  218. package/dist/script/raphael-ext.d.ts +0 -1
  219. package/dist/script/render/draw.d.ts +0 -63
  220. package/dist/script/render/index.d.ts +0 -28
  221. package/dist/script/render/options.d.ts +0 -2
  222. package/dist/script/render/restruct/GeneralEnumTypes.d.ts +0 -35
  223. package/dist/script/render/restruct/ReEnhancedFlag.d.ts +0 -28
  224. package/dist/script/render/restruct/ReObject.d.ts +0 -32
  225. package/dist/script/render/restruct/ReSimpleObject.d.ts +0 -40
  226. package/dist/script/render/restruct/ReStruct.d.ts +0 -110
  227. package/dist/script/render/restruct/ReText.d.ts +0 -38
  228. package/dist/script/render/restruct/index.d.ts +0 -13
  229. package/dist/script/render/restruct/reatom.d.ts +0 -46
  230. package/dist/script/render/restruct/rebond.d.ts +0 -40
  231. package/dist/script/render/restruct/redatasgroupdata.d.ts +0 -8
  232. package/dist/script/render/restruct/refrag.d.ts +0 -12
  233. package/dist/script/render/restruct/reloop.d.ts +0 -12
  234. package/dist/script/render/restruct/rergroup.d.ts +0 -15
  235. package/dist/script/render/restruct/rerxnarrow.d.ts +0 -9
  236. package/dist/script/render/restruct/rerxnplus.d.ts +0 -9
  237. package/dist/script/render/restruct/resgroup.d.ts +0 -9
  238. package/dist/script/render/restruct/visel.d.ts +0 -12
  239. package/dist/script/render/util.d.ts +0 -22
  240. package/dist/script/ui/component/form/form.d.ts +0 -4
  241. package/dist/script/ui/dialog/toolbox/enhancedStereo.d.ts +0 -2
  242. package/dist/script/ui/dialog/toolbox/rgroup.d.ts +0 -2
  243. package/dist/script/ui/views/modal/components/meta/Help/Help.d.ts +0 -2
@@ -14,6 +14,7 @@ declare var _default: {
14
14
  tool: string;
15
15
  opts: string;
16
16
  };
17
+ hidden: (options: any) => boolean;
17
18
  };
18
19
  'select-fragment': {
19
20
  title: string;
@@ -22,6 +23,7 @@ declare var _default: {
22
23
  tool: string;
23
24
  opts: string;
24
25
  };
26
+ hidden: (options: any) => boolean;
25
27
  };
26
28
  erase: {
27
29
  title: string;
@@ -30,12 +32,14 @@ declare var _default: {
30
32
  tool: string;
31
33
  opts: number;
32
34
  };
35
+ hidden: (options: any) => boolean;
33
36
  };
34
37
  chain: {
35
38
  title: string;
36
39
  action: {
37
40
  tool: string;
38
41
  };
42
+ hidden: (options: any) => boolean;
39
43
  };
40
44
  'enhanced-stereo': {
41
45
  shortcut: string;
@@ -43,6 +47,7 @@ declare var _default: {
43
47
  action: {
44
48
  tool: string;
45
49
  };
50
+ hidden: (options: any) => boolean;
46
51
  };
47
52
  'charge-plus': {
48
53
  shortcut: string;
@@ -51,6 +56,7 @@ declare var _default: {
51
56
  tool: string;
52
57
  opts: number;
53
58
  };
59
+ hidden: (options: any) => boolean;
54
60
  };
55
61
  'charge-minus': {
56
62
  shortcut: string;
@@ -59,6 +65,10 @@ declare var _default: {
59
65
  tool: string;
60
66
  opts: number;
61
67
  };
68
+ hidden: (options: any) => boolean;
69
+ };
70
+ transforms: {
71
+ hidden: (options: any) => boolean;
62
72
  };
63
73
  'transform-rotate': {
64
74
  shortcut: string;
@@ -66,6 +76,7 @@ declare var _default: {
66
76
  action: {
67
77
  tool: string;
68
78
  };
79
+ hidden: (options: any) => boolean;
69
80
  };
70
81
  'transform-flip-h': {
71
82
  shortcut: string;
@@ -74,6 +85,7 @@ declare var _default: {
74
85
  tool: string;
75
86
  opts: string;
76
87
  };
88
+ hidden: (options: any) => boolean;
77
89
  };
78
90
  'transform-flip-v': {
79
91
  shortcut: string;
@@ -82,6 +94,7 @@ declare var _default: {
82
94
  tool: string;
83
95
  opts: string;
84
96
  };
97
+ hidden: (options: any) => boolean;
85
98
  };
86
99
  sgroup: {
87
100
  shortcut: string;
@@ -89,6 +102,7 @@ declare var _default: {
89
102
  action: {
90
103
  tool: string;
91
104
  };
105
+ hidden: (options: any) => boolean;
92
106
  };
93
107
  'sgroup-data': {
94
108
  shortcut: string;
@@ -97,38 +111,141 @@ declare var _default: {
97
111
  tool: string;
98
112
  opts: string;
99
113
  };
114
+ hidden: (options: any) => boolean;
115
+ };
116
+ arrows: {
117
+ hidden: (options: any) => boolean;
118
+ };
119
+ 'reaction-arrow-open-angle': {
120
+ title: string;
121
+ action: {
122
+ tool: string;
123
+ opts: RxnArrowMode;
124
+ };
125
+ hidden: (options: any) => boolean;
126
+ };
127
+ 'reaction-arrow-filled-triangle': {
128
+ title: string;
129
+ action: {
130
+ tool: string;
131
+ opts: RxnArrowMode;
132
+ };
133
+ hidden: (options: any) => boolean;
134
+ };
135
+ 'reaction-arrow-filled-bow': {
136
+ title: string;
137
+ action: {
138
+ tool: string;
139
+ opts: RxnArrowMode;
140
+ };
141
+ hidden: (options: any) => boolean;
142
+ };
143
+ 'reaction-arrow-dashed-open-angle': {
144
+ title: string;
145
+ action: {
146
+ tool: string;
147
+ opts: RxnArrowMode;
148
+ };
149
+ hidden: (options: any) => boolean;
150
+ };
151
+ 'reaction-arrow-failed': {
152
+ title: string;
153
+ action: {
154
+ tool: string;
155
+ opts: RxnArrowMode;
156
+ };
157
+ hidden: (options: any) => boolean;
158
+ };
159
+ 'reaction-arrow-both-ends-filled-triangle': {
160
+ title: string;
161
+ action: {
162
+ tool: string;
163
+ opts: RxnArrowMode;
164
+ };
165
+ hidden: (options: any) => boolean;
166
+ };
167
+ 'reaction-arrow-equilibrium-filled-half-bow': {
168
+ title: string;
169
+ action: {
170
+ tool: string;
171
+ opts: RxnArrowMode;
172
+ };
173
+ hidden: (options: any) => boolean;
174
+ };
175
+ 'reaction-arrow-equilibrium-filled-triangle': {
176
+ title: string;
177
+ action: {
178
+ tool: string;
179
+ opts: RxnArrowMode;
180
+ };
181
+ hidden: (options: any) => boolean;
182
+ };
183
+ 'reaction-arrow-equilibrium-open-angle': {
184
+ title: string;
185
+ action: {
186
+ tool: string;
187
+ opts: RxnArrowMode;
188
+ };
189
+ hidden: (options: any) => boolean;
190
+ };
191
+ 'reaction-arrow-unbalanced-equilibrium-filled-half-bow': {
192
+ title: string;
193
+ action: {
194
+ tool: string;
195
+ opts: RxnArrowMode;
196
+ };
197
+ hidden: (options: any) => boolean;
198
+ };
199
+ 'reaction-arrow-unbalanced-equilibrium-open-half-angle': {
200
+ title: string;
201
+ action: {
202
+ tool: string;
203
+ opts: RxnArrowMode;
204
+ };
205
+ hidden: (options: any) => boolean;
100
206
  };
101
- 'reaction-arrow': {
207
+ 'reaction-arrow-unbalanced-equilibrium-large-filled-half-bow': {
102
208
  title: string;
103
209
  action: {
104
210
  tool: string;
105
211
  opts: RxnArrowMode;
106
212
  };
213
+ hidden: (options: any) => boolean;
107
214
  };
108
- 'reaction-arrow-equilibrium': {
215
+ 'reaction-arrow-unbalanced-equilibrium-filled-half-triangle': {
109
216
  title: string;
110
217
  action: {
111
218
  tool: string;
112
219
  opts: RxnArrowMode;
113
220
  };
221
+ hidden: (options: any) => boolean;
114
222
  };
115
223
  'reaction-plus': {
116
224
  title: string;
117
225
  action: {
118
226
  tool: string;
119
227
  };
228
+ hidden: (options: any) => boolean;
229
+ };
230
+ 'reaction-mapping-tools': {
231
+ hidden: (options: any) => boolean;
120
232
  };
121
233
  'reaction-map': {
122
234
  title: string;
123
235
  action: {
124
236
  tool: string;
125
237
  };
238
+ hidden: (options: any) => boolean;
126
239
  };
127
240
  'reaction-unmap': {
128
241
  title: string;
129
242
  action: {
130
243
  tool: string;
131
244
  };
245
+ hidden: (options: any) => boolean;
246
+ };
247
+ rgroup: {
248
+ hidden: (options: any) => boolean;
132
249
  };
133
250
  'rgroup-label': {
134
251
  shortcut: string;
@@ -136,6 +253,7 @@ declare var _default: {
136
253
  action: {
137
254
  tool: string;
138
255
  };
256
+ hidden: (options: any) => boolean;
139
257
  };
140
258
  'rgroup-fragment': {
141
259
  shortcut: string[];
@@ -143,6 +261,7 @@ declare var _default: {
143
261
  action: {
144
262
  tool: string;
145
263
  };
264
+ hidden: (options: any) => boolean;
146
265
  };
147
266
  'rgroup-attpoints': {
148
267
  shortcut: string;
@@ -150,6 +269,10 @@ declare var _default: {
150
269
  action: {
151
270
  tool: string;
152
271
  };
272
+ hidden: (options: any) => boolean;
273
+ };
274
+ shapes: {
275
+ hidden: (options: any) => boolean;
153
276
  };
154
277
  'shape-ellipse': {
155
278
  title: string;
@@ -157,6 +280,7 @@ declare var _default: {
157
280
  tool: string;
158
281
  opts: SimpleObjectMode;
159
282
  };
283
+ hidden: (options: any) => boolean;
160
284
  };
161
285
  'shape-rectangle': {
162
286
  title: string;
@@ -164,6 +288,7 @@ declare var _default: {
164
288
  tool: string;
165
289
  opts: SimpleObjectMode;
166
290
  };
291
+ hidden: (options: any) => boolean;
167
292
  };
168
293
  'shape-line': {
169
294
  title: string;
@@ -171,14 +296,19 @@ declare var _default: {
171
296
  tool: string;
172
297
  opts: SimpleObjectMode;
173
298
  };
299
+ hidden: (options: any) => boolean;
174
300
  };
175
301
  text: {
176
302
  title: string;
177
303
  action: {
178
304
  tool: string;
179
305
  };
306
+ hidden: (options: any) => boolean;
307
+ };
308
+ bonds: {
309
+ hidden: (options: any) => boolean;
180
310
  };
181
311
  };
182
312
  export default _default;
183
- import { RxnArrowMode } from "ketcher-core/dist/domain/entities/RxnArrow";
184
- import { SimpleObjectMode } from "ketcher-core/dist/domain/entities/SimpleObject";
313
+ import { RxnArrowMode } from "ketcher-core/dist/domain/entities/rxnArrow";
314
+ import { SimpleObjectMode } from "ketcher-core/dist/domain/entities/simpleObject";
@@ -2,18 +2,24 @@ export const zoomList: number[];
2
2
  declare var _default: {
3
3
  zoom: {
4
4
  selected: (editor: any) => any;
5
+ hidden: (options: any) => boolean;
5
6
  };
6
7
  'zoom-out': {
7
8
  shortcut: string[];
8
9
  title: string;
9
10
  disabled: (editor: any) => boolean;
10
11
  action: (editor: any) => void;
12
+ hidden: (options: any) => boolean;
11
13
  };
12
14
  'zoom-in': {
13
15
  shortcut: string[];
14
16
  title: string;
15
17
  disabled: (editor: any) => boolean;
16
18
  action: (editor: any) => void;
19
+ hidden: (options: any) => boolean;
20
+ };
21
+ 'zoom-list': {
22
+ hidden: (options: any) => boolean;
17
23
  };
18
24
  };
19
25
  export default _default;
@@ -0,0 +1,2 @@
1
+ declare const FGContextMenu: () => JSX.Element;
2
+ export { FGContextMenu };
@@ -1,9 +1,9 @@
1
1
  export function exec(action: any): boolean;
2
2
  export const actions: string[];
3
3
  export default ClipArea;
4
- declare class ClipArea extends React.Component<any, any, any> {
4
+ declare class ClipArea extends Component<any, any, any> {
5
5
  constructor(props: any);
6
- textAreaRef: React.RefObject<any>;
6
+ textAreaRef: import("react").RefObject<any>;
7
7
  target: any;
8
8
  listeners: {
9
9
  mouseup: (event: any) => void;
@@ -13,4 +13,4 @@ declare class ClipArea extends React.Component<any, any, any> {
13
13
  paste: (event: any) => void;
14
14
  } | undefined;
15
15
  }
16
- import React from "react";
16
+ import { Component } from "react";
@@ -1,8 +1,9 @@
1
1
  export default ButtonList;
2
- declare function ButtonList({ value, onChange, schema, disabledIds, multiple }: {
2
+ declare function ButtonList({ value, onChange, schema, disabledIds, multiple, classes }: {
3
3
  value: any;
4
4
  onChange: any;
5
5
  schema: any;
6
6
  disabledIds: any;
7
7
  multiple: any;
8
+ classes: any;
8
9
  }): JSX.Element;
@@ -1,3 +1,18 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
1
16
  interface ColorPickerProps {
2
17
  value: string;
3
18
  name: string;
@@ -1,8 +1,8 @@
1
1
  export default ComboBox;
2
- declare class ComboBox extends React.Component<any, any, any> {
2
+ declare class ComboBox extends Component<any, any, any> {
3
3
  constructor(props: any);
4
4
  click(): void;
5
5
  blur(): void;
6
6
  updateInput(event: any): void;
7
7
  }
8
- import React from "react";
8
+ import { Component } from "react";
@@ -0,0 +1,20 @@
1
+ declare var _default: import("react-redux").ConnectedComponent<typeof Form, import("react-redux").Omit<any, "onUpdate">>;
2
+ export default _default;
3
+ declare class Form extends Component<any, any, any> {
4
+ constructor(props: any);
5
+ schema: {
6
+ key: any;
7
+ serialize: (inst: any) => jsonschema.ValidatorResult;
8
+ deserialize: (inst: any) => jsonschema.ValidatorResult;
9
+ };
10
+ updateState(newState: any): void;
11
+ field(name: any, onChange: any): {
12
+ dataError: any;
13
+ value: any;
14
+ onChange(val: any): void;
15
+ };
16
+ }
17
+ export function Field(props: any): JSX.Element;
18
+ export function SelectOneOf(props: any): JSX.Element;
19
+ import { Component } from "react";
20
+ import jsonschema from "jsonschema";
@@ -1,4 +1,4 @@
1
- export default class Input extends React.Component<any, any, any> {
1
+ export default class Input extends Component<any, any, any> {
2
2
  constructor(props: any);
3
3
  component: any;
4
4
  ctrl: {
@@ -12,4 +12,4 @@ export default class Input extends React.Component<any, any, any> {
12
12
  onSelect: (ev: any, values: any) => void;
13
13
  };
14
14
  }
15
- import React from "react";
15
+ import { Component } from "react";
@@ -1,8 +1,8 @@
1
1
  export default MeasureInput;
2
- declare class MeasureInput extends React.Component<any, any, any> {
2
+ declare class MeasureInput extends Component<any, any, any> {
3
3
  constructor(props: any);
4
4
  calcValue(): void;
5
5
  handleChange(value: any): void;
6
6
  handleMeasChange(m: any): void;
7
7
  }
8
- import React from "react";
8
+ import { Component } from "react";
@@ -1,5 +1,20 @@
1
1
  export default SelectList;
2
- declare function SelectList({ schema, value, onSelect, splitIndexes, selected, component, ...props }: {
2
+ /****************************************************************************
3
+ * Copyright 2021 EPAM Systems
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ ***************************************************************************/
17
+ declare function SelectList({ schema, value, onSelect, splitIndexes, selected, component, classes, ...props }: {
3
18
  [x: string]: any;
4
19
  schema: any;
5
20
  value: any;
@@ -7,4 +22,5 @@ declare function SelectList({ schema, value, onSelect, splitIndexes, selected, c
7
22
  splitIndexes: any;
8
23
  selected: any;
9
24
  component: any;
25
+ classes: any;
10
26
  }): JSX.Element;
@@ -1,6 +1,6 @@
1
1
  export default StructRender;
2
- declare class StructRender extends React.Component<any, any, any> {
2
+ declare class StructRender extends Component<any, any, any> {
3
3
  constructor(props: any);
4
- tagRef: React.RefObject<any>;
4
+ tagRef: import("react").RefObject<any>;
5
5
  }
6
- import React from "react";
6
+ import { Component } from "react";
@@ -1,6 +1,6 @@
1
1
  export default Tabs;
2
- declare class Tabs extends React.Component<any, any, any> {
2
+ declare class Tabs extends Component<any, any, any> {
3
3
  constructor(props: any);
4
4
  changeTab(ev: any, index: any): void;
5
5
  }
6
- import React from "react";
6
+ import { Component } from "react";
@@ -1,7 +1,7 @@
1
1
  export default OpenButton;
2
- declare class OpenButton extends React.Component<any, any, any> {
2
+ declare class OpenButton extends Component<any, any, any> {
3
3
  constructor(props: any);
4
4
  open(ev: any): void;
5
5
  btn: HTMLInputElement | null | undefined;
6
6
  }
7
- import React from "react";
7
+ import { Component } from "react";
@@ -275,3 +275,25 @@ export namespace textSchema {
275
275
  }
276
276
  export { properties_6 as properties };
277
277
  }
278
+ export namespace attachSchema {
279
+ const title_28: string;
280
+ export { title_28 as title };
281
+ const type_22: string;
282
+ export { type_22 as type };
283
+ const required_4: string[];
284
+ export { required_4 as required };
285
+ export namespace properties_7 {
286
+ namespace name {
287
+ const title_29: string;
288
+ export { title_29 as title };
289
+ const type_23: string;
290
+ export { type_23 as type };
291
+ export const minLength: number;
292
+ const maxLength_3: number;
293
+ export { maxLength_3 as maxLength };
294
+ const invalidMessage_6: string;
295
+ export { invalidMessage_6 as invalidMessage };
296
+ }
297
+ }
298
+ export { properties_7 as properties };
299
+ }
@@ -13,65 +13,5 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
- /// <reference types="react" />
17
- import { Help } from '../views/modal/components/meta';
18
- declare const _default: {
19
- open: import("react").ComponentType<{}>;
20
- analyse: any;
21
- recognize: any;
22
- 'period-table': any;
23
- rgroup: any;
24
- attach: any;
25
- templates: any;
26
- about: any;
27
- help: typeof Help;
28
- miew: any;
29
- atomProps: import("react").ComponentType<{
30
- alias: string;
31
- charge: string;
32
- exactChangeFlag: boolean;
33
- explicitValence: number;
34
- hCount: number;
35
- invRet: number;
36
- isotope: number;
37
- label: string;
38
- radical: number;
39
- ringBondCount: number;
40
- stereoParity: number;
41
- substitutionCount: number;
42
- unsaturatedAtom: boolean;
43
- className: string;
44
- }>;
45
- attachmentPoints: import("react").ComponentType<{
46
- className: string;
47
- primary: boolean;
48
- secondary: boolean;
49
- }>;
50
- automap: import("react").ComponentType<{
51
- className: string;
52
- }>;
53
- bondProps: import("react").ComponentType<{
54
- className: string;
55
- center: number;
56
- topology: number;
57
- type: string;
58
- }>;
59
- check: any;
60
- enhancedStereo: any;
61
- labelEdit: any;
62
- rgroupLogic: import("react").ComponentType<{
63
- label: number;
64
- className: string;
65
- frags: Set<number>;
66
- ifthen: number;
67
- range: string;
68
- resth: boolean;
69
- rgroupLabels: number[];
70
- }>;
71
- save: any;
72
- settings: any;
73
- sgroup: any;
74
- sdata: any;
75
- text: any;
76
- };
16
+ declare const _default: any;
77
17
  export default _default;
@@ -0,0 +1,19 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ declare const EmptySearchResult: ({ textInfo }: {
17
+ textInfo: any;
18
+ }) => JSX.Element;
19
+ export default EmptySearchResult;
@@ -0,0 +1,43 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ import { FC } from 'react';
17
+ import { Template } from './TemplateTable';
18
+ import { Struct } from 'ketcher-core';
19
+ interface TemplateLibProps {
20
+ filter: string;
21
+ group: string;
22
+ lib: Array<Template>;
23
+ selected: Template;
24
+ mode: string;
25
+ }
26
+ interface TemplateLibCallProps {
27
+ onAttach: (tmpl: Template) => void;
28
+ onCancel: () => void;
29
+ onChangeGroup: (group: string) => void;
30
+ onDelete: (tmpl: Template) => void;
31
+ onFilter: (filter: string) => void;
32
+ onOk: (res: any) => void;
33
+ onSelect: (res: any) => void;
34
+ }
35
+ declare type Props = TemplateLibProps & TemplateLibCallProps;
36
+ export interface Result {
37
+ struct: Struct;
38
+ aid: number | null;
39
+ bid: number | null;
40
+ mode: string;
41
+ }
42
+ declare const _default: import("react-redux").ConnectedComponent<FC<Props>, import("react-redux").Omit<Props, never>>;
43
+ export default _default;
@@ -13,14 +13,14 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
- import React from 'react';
16
+ import { FC } from 'react';
17
17
  import { Struct } from 'ketcher-core';
18
18
  interface TemplateTableProps {
19
19
  templates: Array<Template>;
20
- selected: Template;
20
+ selected: Template | null;
21
21
  onSelect: (tmpl: Template) => void;
22
- onDelete: (tmpl: Template) => void;
23
- onAttach: (tmpl: Template) => void;
22
+ onDelete?: (tmpl: Template) => void;
23
+ onAttach?: (tmpl: Template) => void;
24
24
  }
25
25
  export interface Template {
26
26
  struct: Struct;
@@ -28,9 +28,8 @@ export interface Template {
28
28
  atomid: number;
29
29
  bondid: number;
30
30
  group: string;
31
- prerender: string;
31
+ prerender?: string;
32
32
  };
33
33
  }
34
- export declare function greekify(str: string): string;
35
- declare const TemplateTable: React.FC<TemplateTableProps>;
34
+ declare const TemplateTable: FC<TemplateTableProps>;
36
35
  export default TemplateTable;
@@ -1,2 +1,2 @@
1
- declare var _default: any;
1
+ declare var _default: import("react-redux").ConnectedComponent<import("draft-js/node_modules/@types/react").ComponentType<import("react-redux").Matching<any, any>>, import("react-redux").Omit<import("react-redux").Matching<any, any>, string | number | symbol> | import("react-redux").Omit<import("draft-js/node_modules/@types/react").ClassAttributes<import("draft-js/node_modules/@types/react").Component<import("react-redux").Matching<any, any>, any, any>> & import("react-redux").Matching<any, any>, string | number | symbol>>;
2
2
  export default _default;