ketcher-react 2.3.3 → 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 (239) hide show
  1. package/LICENSE +201 -0
  2. package/dist/Editor.d.ts +2 -2
  3. package/dist/contexts/appContext.d.ts +17 -1
  4. package/dist/{script/editor/operations/FragmentStereoFlag.d.ts → contexts/errorsContext.d.ts} +5 -7
  5. package/dist/contexts/formContext.d.ts +15 -0
  6. package/dist/contexts/index.d.ts +19 -3
  7. package/dist/contexts/settingsContext.d.ts +15 -0
  8. package/dist/hooks/index.d.ts +16 -0
  9. package/dist/hooks/useAppContext.d.ts +15 -0
  10. package/dist/hooks/useFormContext.d.ts +15 -0
  11. package/dist/{script/ui/dialog/template/TemplateLib.d.ts → hooks/useInterval.d.ts} +1 -8
  12. package/dist/hooks/useSettingsContext.d.ts +15 -0
  13. package/dist/icons/index.d.ts +15 -0
  14. package/dist/index.css +1 -3
  15. package/dist/index.css.map +1 -1
  16. package/dist/index.d.ts +0 -1
  17. package/dist/index.js +15840 -19663
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.modern.js +15723 -19563
  20. package/dist/index.modern.js.map +1 -1
  21. package/dist/script/builders/ketcher/ButtonName.d.ts +1 -1
  22. package/dist/script/builders/ketcher/KetcherBuilder.d.ts +2 -5
  23. package/dist/script/editor/Editor.d.ts +7 -4
  24. package/dist/script/editor/index.d.ts +15 -0
  25. package/dist/script/editor/shared/utils.d.ts +2 -4
  26. package/dist/script/editor/tool/apoint.d.ts +5 -1
  27. package/dist/script/editor/tool/atom.d.ts +4 -0
  28. package/dist/script/editor/tool/attach.d.ts +5 -1
  29. package/dist/script/editor/tool/bond.d.ts +6 -2
  30. package/dist/script/editor/tool/chain.d.ts +6 -2
  31. package/dist/script/editor/tool/charge.d.ts +5 -1
  32. package/dist/script/editor/tool/enhanced-stereo.d.ts +15 -0
  33. package/dist/script/editor/tool/eraser.d.ts +4 -0
  34. package/dist/script/editor/tool/helper/lasso.d.ts +1 -0
  35. package/dist/script/editor/tool/paste.d.ts +7 -7
  36. package/dist/script/editor/tool/reactionarrow.d.ts +3 -4
  37. package/dist/script/editor/tool/rgroupatom.d.ts +4 -1
  38. package/dist/script/editor/tool/rgroupfragment.d.ts +5 -1
  39. package/dist/script/editor/tool/rotate.d.ts +1 -1
  40. package/dist/script/editor/tool/select.d.ts +23 -12
  41. package/dist/script/editor/tool/sgroup.d.ts +4 -0
  42. package/dist/script/editor/tool/template.d.ts +6 -1
  43. package/dist/script/editor/utils/customOnChangeHandler.d.ts +15 -0
  44. package/dist/script/index.d.ts +3 -2
  45. package/dist/script/ui/App/App.container.d.ts +17 -1
  46. package/dist/script/ui/App/AppHidden/AppHidden.container.d.ts +17 -1
  47. package/dist/script/ui/App/AppHidden/AppHidden.d.ts +15 -0
  48. package/dist/script/ui/App/initApp.d.ts +1 -5
  49. package/dist/script/ui/Portal/Portal.d.ts +1 -1
  50. package/dist/script/ui/action/action.types.d.ts +1 -1
  51. package/dist/script/ui/action/copyAs.d.ts +1 -0
  52. package/dist/script/ui/action/copyImageToClipboard.d.ts +2 -0
  53. package/dist/script/ui/action/debug.d.ts +2 -0
  54. package/dist/script/{editor/operations/rxn/RxnArrowMove.d.ts → ui/action/functionalGroups.d.ts} +12 -11
  55. package/dist/script/ui/action/index.d.ts +196 -10
  56. package/dist/script/ui/action/isHidden.d.ts +18 -0
  57. package/dist/script/ui/action/templates.d.ts +2 -0
  58. package/dist/script/ui/action/tools.d.ts +134 -4
  59. package/dist/script/ui/action/zoom.d.ts +6 -0
  60. package/dist/script/ui/component/ContextMenu/ContextMenu.d.ts +2 -0
  61. package/dist/script/ui/component/{cliparea.d.ts → cliparea/cliparea.d.ts} +3 -3
  62. package/dist/script/ui/component/form/buttonlist.d.ts +2 -1
  63. package/dist/script/ui/component/form/colorPicker/ColorPicker.d.ts +15 -0
  64. package/dist/script/ui/component/form/{combobox.d.ts → combobox/combobox.d.ts} +2 -2
  65. package/dist/script/ui/component/form/form/form.d.ts +20 -0
  66. package/dist/script/ui/component/form/input.d.ts +2 -2
  67. package/dist/script/ui/component/form/measure-input.d.ts +2 -2
  68. package/dist/script/ui/component/form/select.d.ts +17 -1
  69. package/dist/script/ui/component/structrender.d.ts +3 -3
  70. package/dist/script/ui/component/view/Tabs/Tabs.d.ts +2 -2
  71. package/dist/script/ui/component/view/openbutton.d.ts +2 -2
  72. package/dist/script/ui/data/schema/struct-schema.d.ts +22 -0
  73. package/dist/script/ui/dialog/index.d.ts +1 -61
  74. package/dist/script/ui/dialog/template/EmptySearchResult.d.ts +19 -0
  75. package/dist/script/ui/dialog/template/TemplateDialog.d.ts +43 -0
  76. package/dist/script/ui/dialog/template/TemplateTable.d.ts +6 -7
  77. package/dist/script/ui/dialog/template/template-attach.d.ts +1 -1
  78. package/dist/script/ui/dialog/toolbox/enhancedStereo/enhancedStereo.d.ts +42 -0
  79. package/dist/script/ui/dialog/toolbox/labeledit.d.ts +2 -1
  80. package/dist/script/ui/dialog/toolbox/rgroup/rgroup.d.ts +15 -0
  81. package/dist/script/ui/dialog/toolbox/sdata.d.ts +18 -1
  82. package/dist/script/ui/dialog/toolbox/sgroup.d.ts +8 -1
  83. package/dist/script/ui/state/action/index.d.ts +4 -2
  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/Transform/Transform.d.ts +15 -0
  143. package/dist/script/ui/views/toolbars/LeftToolbar/leftToolbarOptions.d.ts +9 -0
  144. package/dist/script/ui/views/toolbars/RightToolbar/AtomsList/AtomsList.d.ts +17 -2
  145. package/dist/script/ui/views/toolbars/RightToolbar/RightToolbar.container.d.ts +1 -1
  146. package/dist/script/ui/views/toolbars/RightToolbar/RightToolbar.d.ts +15 -0
  147. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ActionButton/ActionButton.d.ts +15 -0
  148. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ActionButton/index.d.ts +15 -0
  149. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarGroupItem.d.ts +16 -0
  150. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/ToolbarMultiToolItem.d.ts +19 -3
  151. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/usePortalOpening.d.ts +15 -0
  152. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/DefaultMultiTool/DefaultMultiTool.d.ts +15 -0
  153. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/GroupedMultiTool/GroupedMultiTool.d.ts +15 -0
  154. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/chooseMultiTool.d.ts +1 -1
  155. package/dist/script/ui/views/toolbars/TopToolbar/HelpLink/HelpLink.d.ts +19 -0
  156. package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.container.d.ts +2 -4
  157. package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.d.ts +15 -0
  158. package/dist/script/ui/views/toolbars/TopToolbar/ZoomList/ZoomList.d.ts +15 -0
  159. package/dist/script/ui/views/toolbars/shortcutStr.d.ts +15 -0
  160. package/dist/script/ui/views/toolbars/toolbar.types.d.ts +3 -3
  161. package/package.json +32 -25
  162. package/dist/index.test.d.ts +0 -1
  163. package/dist/overlay.svg +0 -1
  164. package/dist/script/editor/actions/aromatic-fusing.d.ts +0 -15
  165. package/dist/script/editor/actions/atom.d.ts +0 -20
  166. package/dist/script/editor/actions/basic.d.ts +0 -3
  167. package/dist/script/editor/actions/bond.d.ts +0 -24
  168. package/dist/script/editor/actions/chain.d.ts +0 -5
  169. package/dist/script/editor/actions/closely-fusing.d.ts +0 -14
  170. package/dist/script/editor/actions/erase.d.ts +0 -4
  171. package/dist/script/editor/actions/fragment.d.ts +0 -10
  172. package/dist/script/editor/actions/paste.d.ts +0 -5
  173. package/dist/script/editor/actions/reaction.d.ts +0 -5
  174. package/dist/script/editor/actions/rgroup.d.ts +0 -4
  175. package/dist/script/editor/actions/rotate.d.ts +0 -4
  176. package/dist/script/editor/actions/sgroup.d.ts +0 -9
  177. package/dist/script/editor/actions/simpleobject.d.ts +0 -4
  178. package/dist/script/editor/actions/template.d.ts +0 -13
  179. package/dist/script/editor/actions/text.d.ts +0 -6
  180. package/dist/script/editor/actions/utils.d.ts +0 -15
  181. package/dist/script/editor/operations/CanvasLoad.d.ts +0 -26
  182. package/dist/script/editor/operations/EnhancedFlagMove.d.ts +0 -11
  183. package/dist/script/editor/operations/LoopMove.d.ts +0 -26
  184. package/dist/script/editor/operations/OperationType.d.ts +0 -62
  185. package/dist/script/editor/operations/Text/TextCreateDelete.d.ts +0 -41
  186. package/dist/script/editor/operations/Text/TextMove.d.ts +0 -29
  187. package/dist/script/editor/operations/Text/TextUpdate.d.ts +0 -29
  188. package/dist/script/editor/operations/Text/index.d.ts +0 -3
  189. package/dist/script/editor/operations/atom/AtomAttr.d.ts +0 -31
  190. package/dist/script/editor/operations/atom/AtomMove.d.ts +0 -28
  191. package/dist/script/editor/operations/atom/index.d.ts +0 -22
  192. package/dist/script/editor/operations/base.d.ts +0 -36
  193. package/dist/script/editor/operations/bond/BondAttr.d.ts +0 -31
  194. package/dist/script/editor/operations/bond/index.d.ts +0 -38
  195. package/dist/script/editor/operations/descriptors.d.ts +0 -15
  196. package/dist/script/editor/operations/fragment.d.ts +0 -15
  197. package/dist/script/editor/operations/fragmentStereoAtom.d.ts +0 -34
  198. package/dist/script/editor/operations/ifThen.d.ts +0 -35
  199. package/dist/script/editor/operations/index.d.ts +0 -32
  200. package/dist/script/editor/operations/rgroup/RGroupAttr.d.ts +0 -31
  201. package/dist/script/editor/operations/rgroup/RGroupFragment.d.ts +0 -29
  202. package/dist/script/editor/operations/rxn/index.d.ts +0 -38
  203. package/dist/script/editor/operations/rxn/plus/RxnPlusMove.d.ts +0 -27
  204. package/dist/script/editor/operations/rxn/plus/index.d.ts +0 -20
  205. package/dist/script/editor/operations/sgroup/SGroupAttr.d.ts +0 -27
  206. package/dist/script/editor/operations/sgroup/SGroupDataMove.d.ts +0 -26
  207. package/dist/script/editor/operations/sgroup/index.d.ts +0 -39
  208. package/dist/script/editor/operations/sgroup/sgroupAtom.d.ts +0 -34
  209. package/dist/script/editor/operations/sgroup/sgroupHierarchy.d.ts +0 -35
  210. package/dist/script/editor/operations/simpleObject.d.ts +0 -69
  211. package/dist/script/editor/shared/action.d.ts +0 -26
  212. package/dist/script/editor/shared/constants.d.ts +0 -7
  213. package/dist/script/ketcher.d.ts +0 -44
  214. package/dist/script/raphael-ext.d.ts +0 -1
  215. package/dist/script/render/draw.d.ts +0 -63
  216. package/dist/script/render/index.d.ts +0 -28
  217. package/dist/script/render/options.d.ts +0 -2
  218. package/dist/script/render/restruct/GeneralEnumTypes.d.ts +0 -35
  219. package/dist/script/render/restruct/ReEnhancedFlag.d.ts +0 -28
  220. package/dist/script/render/restruct/ReObject.d.ts +0 -32
  221. package/dist/script/render/restruct/ReSimpleObject.d.ts +0 -40
  222. package/dist/script/render/restruct/ReStruct.d.ts +0 -110
  223. package/dist/script/render/restruct/ReText.d.ts +0 -38
  224. package/dist/script/render/restruct/index.d.ts +0 -13
  225. package/dist/script/render/restruct/reatom.d.ts +0 -46
  226. package/dist/script/render/restruct/rebond.d.ts +0 -40
  227. package/dist/script/render/restruct/redatasgroupdata.d.ts +0 -8
  228. package/dist/script/render/restruct/refrag.d.ts +0 -12
  229. package/dist/script/render/restruct/reloop.d.ts +0 -12
  230. package/dist/script/render/restruct/rergroup.d.ts +0 -15
  231. package/dist/script/render/restruct/rerxnarrow.d.ts +0 -9
  232. package/dist/script/render/restruct/rerxnplus.d.ts +0 -9
  233. package/dist/script/render/restruct/resgroup.d.ts +0 -9
  234. package/dist/script/render/restruct/visel.d.ts +0 -12
  235. package/dist/script/render/util.d.ts +0 -22
  236. package/dist/script/ui/component/form/form.d.ts +0 -4
  237. package/dist/script/ui/dialog/toolbox/enhancedStereo.d.ts +0 -2
  238. package/dist/script/ui/dialog/toolbox/rgroup.d.ts +0 -2
  239. package/dist/script/ui/views/modal/components/meta/Help/Help.d.ts +0 -2
@@ -0,0 +1,42 @@
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 { StereoLabel, Struct } from 'ketcher-core';
17
+ import { FC } from 'react';
18
+ interface EnhancedStereoResult {
19
+ andNumber: number;
20
+ orNumber: number;
21
+ type: StereoLabel;
22
+ }
23
+ interface EnhancedStereoFormState {
24
+ result: EnhancedStereoResult;
25
+ valid: boolean;
26
+ errors: string[];
27
+ }
28
+ interface EnhancedStereoProps {
29
+ className: string;
30
+ init: EnhancedStereoResult & {
31
+ init?: true;
32
+ };
33
+ formState: EnhancedStereoFormState;
34
+ struct: Struct;
35
+ }
36
+ interface EnhancedStereoCallProps {
37
+ onCancel: () => void;
38
+ onOk: (res: any) => void;
39
+ }
40
+ declare type Props = EnhancedStereoProps & EnhancedStereoCallProps;
41
+ declare const _default: import("react-redux").ConnectedComponent<FC<Props>, import("react-redux").Omit<Props, "formState" | "struct">>;
42
+ export default _default;
@@ -1,2 +1,3 @@
1
- declare var _default: any;
1
+ declare var _default: import("react-redux").ConnectedComponent<typeof LabelEdit, import("react-redux").Omit<any, "formState" | "dispatch">>;
2
2
  export default _default;
3
+ declare function LabelEdit(props: any): JSX.Element;
@@ -0,0 +1,15 @@
1
+ declare var _default: import("react-redux").ConnectedComponent<typeof RGroup, import("react-redux").Omit<{
2
+ [x: string]: any;
3
+ disabledIds: any;
4
+ values: any;
5
+ formState: any;
6
+ type: any;
7
+ }, "formState" | "dispatch">>;
8
+ export default _default;
9
+ declare function RGroup({ disabledIds, values, formState, type, ...props }: {
10
+ [x: string]: any;
11
+ disabledIds: any;
12
+ values: any;
13
+ formState: any;
14
+ type: any;
15
+ }): JSX.Element;
@@ -1,2 +1,19 @@
1
- declare var _default: any;
1
+ declare var _default: import("react-redux").ConnectedComponent<typeof SData, import("react-redux").Omit<{
2
+ [x: string]: any;
3
+ context: any;
4
+ fieldName: any;
5
+ fieldValue: any;
6
+ type: any;
7
+ radiobuttons: any;
8
+ formState: any;
9
+ }, "formState" | "dispatch">>;
2
10
  export default _default;
11
+ declare function SData({ context, fieldName, fieldValue, type, radiobuttons, formState, ...prop }: {
12
+ [x: string]: any;
13
+ context: any;
14
+ fieldName: any;
15
+ fieldValue: any;
16
+ type: any;
17
+ radiobuttons: any;
18
+ formState: any;
19
+ }): JSX.Element;
@@ -1,2 +1,9 @@
1
- declare var _default: any;
1
+ declare var _default: import("react-redux").ConnectedComponent<typeof Sgroup, import("react-redux").Omit<{
2
+ [x: string]: any;
3
+ formState: any;
4
+ }, "formState" | "dispatch">>;
2
5
  export default _default;
6
+ declare function Sgroup({ formState, ...prop }: {
7
+ [x: string]: any;
8
+ formState: any;
9
+ }): JSX.Element;
@@ -1,5 +1,7 @@
1
- export default function _default(state: any, { type, action, ...params }: {
1
+ export default function _default(state: null | undefined, { type, action, ...params }: {
2
2
  [x: string]: any;
3
3
  type: any;
4
4
  action: any;
5
- }): any;
5
+ }): {
6
+ activeTool: any;
7
+ } | null;
@@ -13,6 +13,7 @@ export default function initEditor(dispatch: any, getState: any): {
13
13
  type: any;
14
14
  attrs: any;
15
15
  }>;
16
+ onRemoveFG: (result: any) => Promise<any>;
16
17
  onSdataEdit: (sgroup: any) => Promise<{
17
18
  type: any;
18
19
  attrs: any;
@@ -13,14 +13,11 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
- import { BaseOperation } from '../base';
17
- import Restruct from '../../../render/restruct';
18
- export declare class BondMove extends BaseOperation {
19
- data: {
20
- bid: any;
21
- d: any;
22
- };
23
- constructor(bondId?: any, d?: any);
24
- execute(restruct: Restruct): void;
25
- invert(): BondMove;
16
+ import { AnyAction } from 'redux';
17
+ interface FGState {
18
+ lib: [];
19
+ mode: string;
26
20
  }
21
+ declare const functionalGroupsReducer: (state: FGState | undefined, { type, payload }: AnyAction) => any;
22
+ export declare function initFGTemplates(baseUrl: string): (dispatch: any) => Promise<void>;
23
+ export default functionalGroupsReducer;
@@ -0,0 +1,17 @@
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
+ export declare const functionalGroupsSelector: (state: any) => any;
17
+ export declare const modeSelector: (state: any) => any;
@@ -3,11 +3,9 @@ export function initClipboard(dispatch: any, getState: any): {
3
3
  formats: any[];
4
4
  focused(): boolean;
5
5
  onCut(): {
6
- 'application/json': string;
7
6
  'text/plain': string;
8
7
  } | null;
9
8
  onCopy(): {
10
- 'application/json': string;
11
9
  'text/plain': string;
12
10
  } | null;
13
11
  onPaste(data: any): void;
@@ -142,6 +142,14 @@ export namespace formsState {
142
142
  const result_10: {};
143
143
  export { result_10 as result };
144
144
  }
145
+ namespace attach {
146
+ const errors_12: {};
147
+ export { errors_12 as errors };
148
+ const valid_11: boolean;
149
+ export { valid_11 as valid };
150
+ const result_11: {};
151
+ export { result_11 as result };
152
+ }
145
153
  const sdata: {
146
154
  errors: {};
147
155
  valid: boolean;
@@ -1,3 +1,3 @@
1
1
  export function openDialog(dispatch: any, dialogName: any, props: any): Promise<any>;
2
2
  export default modalReducer;
3
- declare function modalReducer(state: any, action: any): any;
3
+ declare function modalReducer(state: null | undefined, action: any): any;
@@ -42,6 +42,7 @@ export namespace initOptionsState {
42
42
  namespace app {
43
43
  const server: boolean;
44
44
  const templates: boolean;
45
+ const functionalGroups: boolean;
45
46
  }
46
47
  namespace analyse {
47
48
  const values: null;
@@ -55,6 +55,7 @@ export namespace initTmplsState {
55
55
  const filter: string;
56
56
  const group: null;
57
57
  const attach: {};
58
+ const mode: string;
58
59
  }
59
60
  export default templatesReducer;
60
61
  import initTmplLib from "./init-lib";
@@ -64,4 +65,5 @@ declare function templatesReducer(state: {
64
65
  filter: string;
65
66
  group: null;
66
67
  attach: {};
68
+ mode: string;
67
69
  } | undefined, action: any): any;
@@ -4,4 +4,5 @@ export function initLib(lib: any): {
4
4
  lib: any;
5
5
  };
6
6
  };
7
- export default function initTmplLib(dispatch: any, baseUrl: any, cacheEl: any): void;
7
+ export default function initTmplLib(dispatch: any, baseUrl: any, cacheEl: any): Promise<void>;
8
+ export function prefetchStatic(url: any): Promise<string>;
@@ -0,0 +1,3 @@
1
+ export declare function greekify(str: string): string;
2
+ export declare function filterLib(lib: any, filter: any): {};
3
+ export declare function filterFGLib(lib: any, filter: any): {};
@@ -13,5 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
- declare const AppClipArea: any;
16
+ import ClipArea from '../component/cliparea/cliparea';
17
+ declare const AppClipArea: import("react-redux").ConnectedComponent<typeof ClipArea, import("react-redux").Omit<any, string | number | symbol>>;
17
18
  export default AppClipArea;
@@ -1,2 +1,3 @@
1
1
  export default Editor;
2
- declare const Editor: any;
2
+ declare const Editor: import("react-redux").ConnectedComponent<typeof StructEditor, import("react-redux").Omit<any, "type" | "indigoVerification" | "options">>;
3
+ import { StructEditor } from "./components";
@@ -13,11 +13,11 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
- import React, { FC } from 'react';
16
+ import { FC, ReactElement } from 'react';
17
17
  interface DialogProps {
18
18
  title: string;
19
19
  params: DialogParams;
20
- buttons?: Array<string | React.ReactElement>;
20
+ buttons?: Array<string | ReactElement>;
21
21
  className: string;
22
22
  }
23
23
  export interface DialogParams extends DialogParamsCallProps {
@@ -0,0 +1,23 @@
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
+ export interface FGProps {
18
+ className: string;
19
+ onOk: () => void;
20
+ onCancel: () => void;
21
+ }
22
+ declare const FunctionalGroups: FC<FGProps>;
23
+ export default FunctionalGroups;
@@ -13,5 +13,4 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
- export * from './RGroupAttr';
17
- export * from './RGroupFragment';
16
+ export { default as FunctionalGroups } from './FunctionalGroups';
@@ -1,9 +1,9 @@
1
1
  export default StructEditor;
2
- declare class StructEditor extends React.Component<any, any, any> {
2
+ declare class StructEditor extends Component<any, any, any> {
3
3
  constructor(props: any);
4
- editorRef: React.RefObject<any>;
5
- logRef: React.RefObject<any>;
4
+ editorRef: import("react").RefObject<any>;
5
+ logRef: import("react").RefObject<any>;
6
6
  editor: Editor | undefined;
7
7
  }
8
- import React from "react";
8
+ import { Component } from "react";
9
9
  import Editor from "../../../../editor";
@@ -14,6 +14,6 @@
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
16
  import Dialog from './Dialog';
17
- import StructEditor from './StructEditor';
18
17
  import Spinner from './Spinner';
18
+ import StructEditor from './StructEditor';
19
19
  export { Dialog, StructEditor, Spinner };
@@ -13,5 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
- declare const ModalContainer: any;
16
+ import { Modal, ModalProps } from './Modal';
17
+ import { BaseCallProps } from './modal.types';
18
+ declare const ModalContainer: import("react-redux").ConnectedComponent<typeof Modal, import("react-redux").Omit<ModalProps & BaseCallProps, "modal" | "onCancel" | "onOk">>;
17
19
  export default ModalContainer;
@@ -1,2 +1,32 @@
1
1
  export default PeriodTable;
2
- declare const PeriodTable: any;
2
+ declare const PeriodTable: import("react-redux").ConnectedComponent<typeof Table, any>;
3
+ declare class Table extends Component<any, any, any> {
4
+ constructor(props: any);
5
+ firstType: boolean;
6
+ changeType: (type: any) => void;
7
+ changeTabType: (event: any) => void;
8
+ selected: (label: any) => any;
9
+ onSelect: (label: any) => void;
10
+ result: () => {
11
+ label: any;
12
+ pseudo: null;
13
+ type?: undefined;
14
+ values?: undefined;
15
+ } | {
16
+ type: any;
17
+ label: any;
18
+ pseudo: any;
19
+ values?: undefined;
20
+ } | {
21
+ type: any;
22
+ values: any;
23
+ label?: undefined;
24
+ pseudo?: undefined;
25
+ } | null;
26
+ currentEvents: (element: any) => {
27
+ onMouseEnter: () => void;
28
+ onMouseLeave: () => void;
29
+ };
30
+ periodicTable: (value: any) => JSX.Element;
31
+ }
32
+ import { Component } from "react";
@@ -1,7 +1,7 @@
1
1
  export default ElementsTable;
2
- declare class ElementsTable extends React.Component<any, any, any> {
2
+ declare class ElementsTable extends Component<any, any, any> {
3
3
  constructor(props: any);
4
4
  constructor(props: any, context: any);
5
5
  getAtomClassNames: (item: any) => string[];
6
6
  }
7
- import React from "react";
7
+ import { Component } from "react";
@@ -13,8 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
- import ElementsTable from './ElementsTable';
17
16
  import AtomInfo from './AtomInfo';
18
- import TypeChoice from './TypeChoice';
17
+ import ElementsTable from './ElementsTable';
19
18
  import GenericGroups from './GenericGroups';
19
+ import TypeChoice from './TypeChoice';
20
20
  export { ElementsTable, AtomInfo, TypeChoice, GenericGroups };
@@ -0,0 +1,21 @@
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
+ export declare const FontControl: ({ editorState, setEditorState, styles }: {
17
+ editorState: any;
18
+ setEditorState: any;
19
+ styles: any;
20
+ }) => JSX.Element;
21
+ export default FontControl;
@@ -13,4 +13,4 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
- export { default } from './Help';
16
+ export * from './FontControl';
@@ -14,5 +14,12 @@
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
16
  import 'draft-js/dist/Draft.css';
17
- declare const _default: any;
17
+ import { DialogParams } from '../../../components/Dialog/Dialog';
18
+ interface TextProps extends DialogParams {
19
+ formState: any;
20
+ id?: any;
21
+ content: string;
22
+ position?: string;
23
+ }
24
+ declare const _default: import("react-redux").ConnectedComponent<(props: TextProps) => JSX.Element, import("react-redux").Omit<TextProps, "formState">>;
18
25
  export default _default;
@@ -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
  import { TextCommand } from 'ketcher-core';
2
17
  interface TextButtonProps {
3
18
  button: {
@@ -1 +1,16 @@
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
  export * from './TextButton';
@@ -13,6 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
- import { ComponentType } from 'react';
17
- declare const OpenContainer: ComponentType;
16
+ /// <reference types="react" />
17
+ import { OpenProps } from './Open';
18
+ import { BaseCallProps } from '../../../modal.types';
19
+ declare const OpenContainer: import("react-redux").ConnectedComponent<import("react").FC<OpenProps & Pick<import("../../../modal.types").BaseProps, "className"> & BaseCallProps>, import("react-redux").Omit<OpenProps & Pick<import("../../../modal.types").BaseProps, "className"> & BaseCallProps, "onOk" | "server">>;
18
20
  export default OpenContainer;
@@ -13,8 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
+ import { BaseCallProps, BaseProps } from '../../../modal.types';
16
17
  import { FC } from 'react';
17
- import { BaseProps, BaseCallProps } from '../../../modal.types';
18
18
  interface OpenProps {
19
19
  server: any;
20
20
  }
@@ -1,2 +1,34 @@
1
1
  export default Save;
2
- declare const Save: any;
2
+ declare const Save: import("react-redux").ConnectedComponent<typeof SaveDialog, import("react-redux").Omit<any, "struct" | "options" | "server" | "formState" | "checkState" | "onCheck" | "moleculeErrors" | "onTmplSave" | "onResetForm">>;
3
+ declare class SaveDialog extends Component<any, any, any> {
4
+ static contextType: import("react").Context<import("../../../../../../../contexts").IErrorsContext>;
5
+ constructor(props: any);
6
+ isRxn: any;
7
+ textAreaRef: import("react").RefObject<any>;
8
+ saveSchema: {
9
+ title: string;
10
+ type: string;
11
+ properties: {
12
+ filename: {
13
+ title: string;
14
+ type: string;
15
+ maxLength: number;
16
+ pattern: RegExp;
17
+ invalidMessage: (res: any) => "Filename should contain at least one character" | "Filename is too long" | "A filename cannot contain characters: \\ / : * ? \" < > | and cannot start with '.'";
18
+ };
19
+ format: {
20
+ title: string;
21
+ enum: string[];
22
+ enumNames: any[];
23
+ };
24
+ };
25
+ };
26
+ showStructWarningMessage: (format: any) => boolean;
27
+ changeType: (type: any) => Promise<any>;
28
+ getWarnings: (format: any) => any[];
29
+ changeTab: (tabIndex: any) => void;
30
+ changeImageFormat: (imageFormat: any) => void;
31
+ renderSaveFile: () => JSX.Element;
32
+ getButtons: () => (string | JSX.Element)[];
33
+ }
34
+ import { Component } from "react";
@@ -1,2 +1,3 @@
1
1
  export default About;
2
- declare const About: any;
2
+ declare const About: import("react-redux").ConnectedComponent<typeof AboutDialog, import("react-redux").Omit<any, string | number | symbol>>;
3
+ declare function AboutDialog(props: any): JSX.Element;
@@ -13,5 +13,25 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
- declare const Settings: any;
16
+ import { BaseCallProps, BaseProps } from '../../../modal.types';
17
+ import { StructService } from 'ketcher-core';
18
+ interface SettingsProps extends BaseProps {
19
+ initState: any;
20
+ appOpts: {
21
+ version: string;
22
+ buildDate: string;
23
+ buildNumber: string;
24
+ indigoVersion: string;
25
+ imagoVersions: Array<string>;
26
+ server: boolean;
27
+ templates: boolean;
28
+ };
29
+ server: StructService;
30
+ }
31
+ interface SettingsCallProps extends BaseCallProps {
32
+ onOpenFile: (any: any) => void;
33
+ onReset: () => void;
34
+ }
35
+ declare type Props = SettingsProps & SettingsCallProps;
36
+ declare const Settings: import("react-redux").ConnectedComponent<(props: Props) => JSX.Element, any>;
17
37
  export default Settings;
@@ -14,6 +14,5 @@
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
16
  import About from './About';
17
- import Help from './Help';
18
17
  import Settings from './Settings';
19
- export { About, Help, Settings };
18
+ export { About, Settings };
@@ -1,2 +1,7 @@
1
1
  export default Analyse;
2
- declare const Analyse: any;
2
+ declare const Analyse: import("react-redux").ConnectedComponent<typeof AnalyseDialog, import("react-redux").Omit<any, "values" | "onAnalyse" | "round" | "loading" | "onChangeRound">>;
3
+ declare class AnalyseDialog extends Component<any, any, any> {
4
+ static contextType: import("react").Context<import("../../../../../../../contexts").IErrorsContext>;
5
+ constructor(props: any);
6
+ }
7
+ import { Component } from "react";
@@ -1,4 +1,19 @@
1
1
  export default FrozenInput;
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
+ ***************************************************************************/
2
17
  declare function FrozenInput({ value }: {
3
18
  value: any;
4
19
  }): JSX.Element;
@@ -1,2 +1,3 @@
1
1
  export default Check;
2
- declare const Check: any;
2
+ declare const Check: import("react-redux").ConnectedComponent<typeof CheckDialog, any>;
3
+ declare function CheckDialog(props: any): JSX.Element;
@@ -1,2 +1,17 @@
1
1
  export default ErrorsCheck;
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
+ ***************************************************************************/
2
17
  declare function ErrorsCheck(props: any): JSX.Element;