ketcher-react 2.2.0 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/LICENSE +1 -1
  2. package/dist/Editor.d.ts +3 -0
  3. package/dist/contexts/appContext.d.ts +6 -0
  4. package/dist/contexts/index.d.ts +3 -2
  5. package/dist/hooks/index.d.ts +1 -0
  6. package/dist/hooks/useAppContext.d.ts +1 -0
  7. package/dist/hooks/useResizeObserver.d.ts +1 -1
  8. package/dist/hooks/useSettingsContext.d.ts +1 -1
  9. package/dist/index.css +3 -2
  10. package/dist/index.css.map +1 -1
  11. package/dist/index.d.ts +2 -0
  12. package/dist/index.js +16256 -21706
  13. package/dist/index.js.map +1 -1
  14. package/dist/index.modern.js +16169 -21618
  15. package/dist/index.modern.js.map +1 -1
  16. package/dist/script/api.d.ts +2 -2
  17. package/dist/script/builders/ketcher/KetcherBuilder.d.ts +1 -1
  18. package/dist/script/editor/Editor.d.ts +11 -4
  19. package/dist/script/editor/actions/bond.d.ts +24 -24
  20. package/dist/script/editor/actions/reaction.d.ts +1 -1
  21. package/dist/script/editor/actions/text.d.ts +6 -0
  22. package/dist/script/editor/actions/utils.d.ts +1 -2
  23. package/dist/script/editor/operations/CanvasLoad.d.ts +1 -1
  24. package/dist/script/editor/operations/EnhancedFlagMove.d.ts +1 -1
  25. package/dist/script/editor/operations/FragmentStereoFlag.d.ts +3 -5
  26. package/dist/script/editor/operations/LoopMove.d.ts +1 -1
  27. package/dist/script/editor/operations/OperationType.d.ts +5 -0
  28. package/dist/script/editor/operations/Text/TextCreateDelete.d.ts +41 -0
  29. package/dist/script/{chem/struct/simpleObject.d.ts → editor/operations/Text/TextMove.d.ts} +12 -15
  30. package/dist/script/{util/pool.d.ts → editor/operations/Text/TextUpdate.d.ts} +14 -10
  31. package/dist/script/editor/operations/Text/index.d.ts +3 -0
  32. package/dist/script/editor/operations/atom/AtomAttr.d.ts +1 -1
  33. package/dist/script/editor/operations/atom/AtomMove.d.ts +1 -1
  34. package/dist/script/editor/operations/base.d.ts +2 -2
  35. package/dist/script/editor/operations/bond/BondAttr.d.ts +1 -1
  36. package/dist/script/editor/operations/bond/BondMove.d.ts +1 -1
  37. package/dist/script/editor/operations/bond/index.d.ts +15 -0
  38. package/dist/script/{util/pile.d.ts → editor/operations/calcimplicitH.d.ts} +8 -10
  39. package/dist/script/editor/operations/fragment.d.ts +1 -1
  40. package/dist/script/editor/operations/fragmentStereoAtom.d.ts +1 -1
  41. package/dist/script/editor/operations/index.d.ts +2 -0
  42. package/dist/script/editor/operations/rxn/index.d.ts +18 -1
  43. package/dist/script/editor/operations/rxn/plus/RxnPlusMove.d.ts +1 -1
  44. package/dist/script/editor/operations/sgroup/index.d.ts +1 -1
  45. package/dist/script/editor/operations/sgroup/sgroupHierarchy.d.ts +0 -2
  46. package/dist/script/editor/operations/simpleObject.d.ts +9 -11
  47. package/dist/script/editor/shared/action.d.ts +2 -2
  48. package/dist/script/editor/shared/utils.d.ts +2 -2
  49. package/dist/script/editor/tool/attach.d.ts +4 -1
  50. package/dist/script/editor/tool/enhanced-stereo.d.ts +2 -1
  51. package/dist/script/editor/tool/helper/lasso.d.ts +3 -0
  52. package/dist/script/editor/tool/helper/locate.d.ts +2 -0
  53. package/dist/script/editor/tool/index.d.ts +2 -0
  54. package/dist/script/editor/tool/reactionarrow.d.ts +4 -4
  55. package/dist/script/editor/tool/rotate.d.ts +1 -1
  56. package/dist/script/editor/tool/text.d.ts +27 -0
  57. package/dist/script/editor/utils/elementOffset.d.ts +1 -1
  58. package/dist/script/index.d.ts +1 -1
  59. package/dist/script/ketcher.d.ts +1 -2
  60. package/dist/script/render/draw.d.ts +13 -7
  61. package/dist/script/render/index.d.ts +5 -5
  62. package/dist/script/render/restruct/GeneralEnumTypes.d.ts +35 -0
  63. package/dist/script/render/restruct/ReEnhancedFlag.d.ts +28 -0
  64. package/dist/script/render/restruct/ReObject.d.ts +32 -0
  65. package/dist/script/render/restruct/ReSimpleObject.d.ts +40 -0
  66. package/dist/script/render/restruct/ReStruct.d.ts +110 -0
  67. package/dist/script/render/restruct/ReText.d.ts +38 -0
  68. package/dist/script/render/restruct/index.d.ts +5 -84
  69. package/dist/script/render/restruct/reatom.d.ts +41 -17
  70. package/dist/script/render/restruct/rebond.d.ts +36 -26
  71. package/dist/script/render/restruct/redatasgroupdata.d.ts +3 -7
  72. package/dist/script/render/restruct/refrag.d.ts +3 -7
  73. package/dist/script/render/restruct/reloop.d.ts +4 -8
  74. package/dist/script/render/restruct/rergroup.d.ts +4 -7
  75. package/dist/script/render/restruct/rerxnarrow.d.ts +3 -7
  76. package/dist/script/render/restruct/rerxnplus.d.ts +3 -7
  77. package/dist/script/render/restruct/resgroup.d.ts +3 -6
  78. package/dist/script/render/restruct/visel.d.ts +1 -2
  79. package/dist/script/render/util.d.ts +1 -1
  80. package/dist/script/ui/action/action.types.d.ts +1 -1
  81. package/dist/script/ui/action/atoms.d.ts +1 -1
  82. package/dist/script/ui/action/debug.d.ts +2 -2
  83. package/dist/script/ui/action/index.d.ts +392 -2
  84. package/dist/script/ui/action/templates.d.ts +10 -1
  85. package/dist/script/ui/action/tools.d.ts +16 -1
  86. package/dist/script/ui/component/form/colorPicker/ColorPicker.d.ts +12 -0
  87. package/dist/script/{chem/molfile/molfile.test.d.ts → ui/component/form/colorPicker/ColorPicker.test.d.ts} +0 -0
  88. package/dist/script/ui/component/view/savebutton.d.ts +1 -5
  89. package/dist/script/ui/data/convert/structConverter.d.ts +3 -3
  90. package/dist/script/ui/data/convert/structconv.d.ts +6 -4
  91. package/dist/script/ui/data/schema/options-schema.d.ts +25 -167
  92. package/dist/script/ui/data/schema/struct-schema.d.ts +20 -2
  93. package/dist/script/ui/data/templates.d.ts +1 -1
  94. package/dist/script/ui/dialog/index.d.ts +43 -7
  95. package/dist/script/ui/dialog/template/TemplateLib.d.ts +1 -1
  96. package/dist/script/ui/dialog/template/TemplateTable.d.ts +1 -1
  97. package/dist/script/ui/dialog/toolbox/enhancedStereo.d.ts +2 -0
  98. package/dist/script/ui/state/constants.d.ts +7 -0
  99. package/dist/script/ui/state/editor/index.d.ts +1 -2
  100. package/dist/script/ui/state/modal/form.d.ts +10 -2
  101. package/dist/script/ui/state/options/index.d.ts +4 -3
  102. package/dist/script/ui/state/shared.d.ts +1 -1
  103. package/dist/script/ui/views/components/Dialog/Dialog.d.ts +6 -8
  104. package/dist/script/ui/views/components/Dialog/index.d.ts +1 -1
  105. package/dist/script/ui/views/components/index.d.ts +1 -2
  106. package/dist/script/ui/views/modal/Modal.d.ts +4 -7
  107. package/dist/script/{format/chemGraph/toGraph/simpleObjectToGraph.d.ts → ui/views/modal/components/Text/Text.d.ts} +4 -5
  108. package/dist/script/ui/views/modal/components/Text/TextButton/TextButton.d.ts +14 -0
  109. package/dist/script/ui/views/modal/components/Text/TextButton/index.d.ts +1 -0
  110. package/dist/script/{util/scale.d.ts → ui/views/modal/components/Text/index.d.ts} +2 -8
  111. package/dist/script/ui/views/modal/components/document/Open/Open.container.d.ts +18 -0
  112. package/dist/script/ui/views/modal/components/document/Open/Open.d.ts +24 -2
  113. package/dist/script/ui/views/modal/components/document/Open/index.d.ts +1 -1
  114. package/dist/script/ui/views/modal/components/document/Save/SaveImageTab.d.ts +4 -0
  115. package/dist/script/ui/views/modal/components/meta/Settings/Settings.d.ts +16 -1
  116. package/dist/script/ui/views/modal/components/meta/Settings/components/Accordion/Accordion.d.ts +35 -13
  117. package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.container.d.ts +20 -0
  118. package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.d.ts +36 -0
  119. package/dist/script/ui/views/modal/components/toolbox/Atom/ElementNumber/ElementNumber.d.ts +6 -0
  120. package/dist/script/ui/views/modal/components/toolbox/Atom/ElementNumber/index.d.ts +16 -0
  121. package/dist/script/ui/views/modal/components/toolbox/Atom/index.d.ts +16 -0
  122. package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.container.d.ts +20 -0
  123. package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.d.ts +24 -0
  124. package/dist/script/ui/views/modal/components/toolbox/Attach/index.d.ts +16 -0
  125. package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.container.d.ts +20 -0
  126. package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.d.ts +32 -0
  127. package/dist/script/ui/views/modal/components/toolbox/Automap/index.d.ts +16 -0
  128. package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.container.d.ts +20 -0
  129. package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.d.ts +10 -0
  130. package/dist/script/ui/views/modal/components/toolbox/Bond/index.d.ts +16 -0
  131. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.container.d.ts +20 -0
  132. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.d.ts +28 -0
  133. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/IfThenSelect.d.ts +19 -0
  134. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/index.d.ts +16 -0
  135. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/index.d.ts +16 -0
  136. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/index.d.ts +16 -0
  137. package/dist/script/ui/views/modal/components/toolbox/index.d.ts +21 -0
  138. package/dist/script/ui/views/modal/modal.types.d.ts +28 -0
  139. package/dist/script/ui/views/toolbars/LeftToolbar/Bond/options.d.ts +2 -1
  140. package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.container.d.ts +1 -1
  141. package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.d.ts +15 -1
  142. package/dist/script/ui/views/toolbars/LeftToolbar/RGroup/RGroup.d.ts +15 -0
  143. package/dist/script/ui/views/toolbars/LeftToolbar/Shape/Shape.d.ts +15 -0
  144. package/dist/script/ui/views/toolbars/mediaSizes.d.ts +0 -1
  145. package/dist/script/ui/views/toolbars/toolbar.types.d.ts +3 -3
  146. package/package.json +7 -3
  147. package/dist/script/chem/element-color.d.ts +0 -2
  148. package/dist/script/chem/element.d.ts +0 -57
  149. package/dist/script/chem/generics.d.ts +0 -5
  150. package/dist/script/chem/molfile/common.d.ts +0 -34
  151. package/dist/script/chem/molfile/index.d.ts +0 -10
  152. package/dist/script/chem/molfile/molfile.d.ts +0 -47
  153. package/dist/script/chem/molfile/molfileFormat.d.ts +0 -1
  154. package/dist/script/chem/molfile/parseSGroup.d.ts +0 -42
  155. package/dist/script/chem/molfile/utils.d.ts +0 -66
  156. package/dist/script/chem/molfile/v2000.d.ts +0 -10
  157. package/dist/script/chem/molfile/v3000.d.ts +0 -10
  158. package/dist/script/chem/sdf.d.ts +0 -10
  159. package/dist/script/chem/smiles/cis_trans.d.ts +0 -25
  160. package/dist/script/chem/smiles/dfs.d.ts +0 -53
  161. package/dist/script/chem/smiles/index.d.ts +0 -5
  162. package/dist/script/chem/smiles/stereocenters.d.ts +0 -26
  163. package/dist/script/chem/struct/atom.d.ts +0 -66
  164. package/dist/script/chem/struct/atomlist.d.ts +0 -10
  165. package/dist/script/chem/struct/bond.d.ts +0 -72
  166. package/dist/script/chem/struct/fragment.d.ts +0 -50
  167. package/dist/script/chem/struct/index.d.ts +0 -137
  168. package/dist/script/chem/struct/rgroup.d.ts +0 -19
  169. package/dist/script/chem/struct/sgforest.d.ts +0 -42
  170. package/dist/script/chem/struct/sgroup.d.ts +0 -68
  171. package/dist/script/format/chemGraph/convertStruct.d.ts +0 -2
  172. package/dist/script/format/chemGraph/fromGraph/moleculeToStruct.d.ts +0 -10
  173. package/dist/script/format/chemGraph/fromGraph/rgroupToStruct.d.ts +0 -3
  174. package/dist/script/format/chemGraph/fromGraph/rxnToStruct.d.ts +0 -1
  175. package/dist/script/format/chemGraph/fromGraph/simpleObjectToStruct.d.ts +0 -1
  176. package/dist/script/format/chemGraph/index.d.ts +0 -13
  177. package/dist/script/format/chemGraph/toGraph/headerToGraph.d.ts +0 -1
  178. package/dist/script/format/chemGraph/toGraph/moleculeToGraph.d.ts +0 -4
  179. package/dist/script/format/chemGraph/toGraph/prepare.d.ts +0 -14
  180. package/dist/script/format/chemGraph/toGraph/rgroupToGraph.d.ts +0 -5
  181. package/dist/script/format/chemGraph/toGraph/rxnToGraph.d.ts +0 -10
  182. package/dist/script/format/graphValidator.d.ts +0 -1
  183. package/dist/script/format/schemes/moleculeSchema.d.ts +0 -596
  184. package/dist/script/format/schemes/rgroupSchema.d.ts +0 -60
  185. package/dist/script/format/schemes/rootSchema.d.ts +0 -102
  186. package/dist/script/format/schemes/rxnSchemas.d.ts +0 -58
  187. package/dist/script/format/schemes/simpleObjectSchema.d.ts +0 -45
  188. package/dist/script/format/utils.d.ts +0 -1
  189. package/dist/script/render/restruct/reenhancedflag.d.ts +0 -15
  190. package/dist/script/render/restruct/reobject.d.ts +0 -15
  191. package/dist/script/render/restruct/resimpleobject.d.ts +0 -23
  192. package/dist/script/ui/dialog/toolbox/atom.d.ts +0 -2
  193. package/dist/script/ui/dialog/toolbox/attach.d.ts +0 -2
  194. package/dist/script/ui/dialog/toolbox/automap.d.ts +0 -18
  195. package/dist/script/ui/dialog/toolbox/bond.d.ts +0 -2
  196. package/dist/script/ui/dialog/toolbox/enhanced-stereo.d.ts +0 -2
  197. package/dist/script/ui/dialog/toolbox/rgroup-logic.d.ts +0 -2
  198. package/dist/script/util/banner.d.ts +0 -0
  199. package/dist/script/util/box2abs.d.ts +0 -23
  200. package/dist/script/util/vec2.d.ts +0 -75
@@ -132,9 +132,9 @@ export namespace rgroupSchema {
132
132
  export namespace items {
133
133
  const type_9: string;
134
134
  export { type_9 as type };
135
- const _enum_6: any;
135
+ const _enum_6: number[];
136
136
  export { _enum_6 as enum };
137
- const enumNames_6: any;
137
+ const enumNames_6: string[];
138
138
  export { enumNames_6 as enumNames };
139
139
  }
140
140
  }
@@ -257,3 +257,21 @@ export namespace rgroupLogic {
257
257
  }
258
258
  export { properties_5 as properties };
259
259
  }
260
+ export namespace textSchema {
261
+ const title_27: string;
262
+ export { title_27 as title };
263
+ const type_20: string;
264
+ export { type_20 as type };
265
+ const required_3: string[];
266
+ export { required_3 as required };
267
+ export namespace properties_6 {
268
+ export namespace label_2 {
269
+ const _default_14: string;
270
+ export { _default_14 as default };
271
+ const type_21: string;
272
+ export { type_21 as type };
273
+ }
274
+ export { label_2 as label };
275
+ }
276
+ export { properties_6 as properties };
277
+ }
@@ -1,2 +1,2 @@
1
- declare var _default: any[];
1
+ declare var _default: import("ketcher-core").Struct[];
2
2
  export default _default;
@@ -1,5 +1,5 @@
1
1
  /****************************************************************************
2
- * Copyright 2020 EPAM Systems
2
+ * Copyright 2021 EPAM Systems
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -13,9 +13,10 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
+ /// <reference types="react" />
16
17
  import { Help } from '../views/modal/components/meta';
17
18
  declare const _default: {
18
- open: any;
19
+ open: import("react").ComponentType<{}>;
19
20
  analyse: any;
20
21
  recognize: any;
21
22
  'period-table': any;
@@ -25,17 +26,52 @@ declare const _default: {
25
26
  about: any;
26
27
  help: typeof Help;
27
28
  miew: any;
28
- atomProps: any;
29
- attachmentPoints: any;
30
- automap: any;
31
- bondProps: 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
+ }>;
32
59
  check: any;
33
60
  enhancedStereo: any;
34
61
  labelEdit: any;
35
- rgroupLogic: 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
+ }>;
36
71
  save: any;
37
72
  settings: any;
38
73
  sgroup: any;
39
74
  sdata: any;
75
+ text: any;
40
76
  };
41
77
  export default _default;
@@ -1,5 +1,5 @@
1
1
  /****************************************************************************
2
- * Copyright 2020 EPAM Systems
2
+ * Copyright 2021 EPAM Systems
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /****************************************************************************
2
- * Copyright 2020 EPAM Systems
2
+ * Copyright 2021 EPAM Systems
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,7 @@
1
+ export namespace supportedSGroupTypes {
2
+ const MUL: string;
3
+ const SRU: string;
4
+ const SUP: string;
5
+ const DAT: string;
6
+ const GEN: string;
7
+ }
@@ -3,9 +3,8 @@ export default function initEditor(dispatch: any, getState: any): {
3
3
  onChange: (action: any) => void;
4
4
  onSelectionChange: () => void;
5
5
  onElementEdit: (selem: any) => Promise<any>;
6
- onEnhancedStereoEdit: ({ type, ...init }: {
6
+ onEnhancedStereoEdit: ({ ...init }: {
7
7
  [x: string]: any;
8
- type: any;
9
8
  }) => Promise<any>;
10
9
  onQuickEdit: (atom: any) => Promise<any>;
11
10
  onBondEdit: (bond: any) => Promise<any>;
@@ -11,7 +11,7 @@ export function checkErrors(errors: any): {
11
11
  export function setDefaultSettings(): {
12
12
  type: string;
13
13
  data: {
14
- result: {};
14
+ result: Record<string, any>;
15
15
  valid: boolean;
16
16
  errors: {};
17
17
  };
@@ -120,7 +120,7 @@ export namespace formsState {
120
120
  export { errors_9 as errors };
121
121
  const valid_8: boolean;
122
122
  export { valid_8 as valid };
123
- const result_8: {};
123
+ const result_8: Record<string, any>;
124
124
  export { result_8 as result };
125
125
  }
126
126
  namespace sgroup {
@@ -134,6 +134,14 @@ export namespace formsState {
134
134
  }
135
135
  export { result_9 as result };
136
136
  }
137
+ namespace text {
138
+ const errors_11: {};
139
+ export { errors_11 as errors };
140
+ const valid_10: boolean;
141
+ export { valid_10 as valid };
142
+ const result_10: {};
143
+ export { result_10 as result };
144
+ }
137
145
  const sdata: {
138
146
  errors: {};
139
147
  valid: boolean;
@@ -47,6 +47,7 @@ export namespace initOptionsState {
47
47
  const values: null;
48
48
  const roundWeight: number;
49
49
  const roundMass: number;
50
+ const roundElAnalysis: number;
50
51
  }
51
52
  namespace check {
52
53
  const checkOptions: string[];
@@ -57,9 +58,9 @@ export namespace initOptionsState {
57
58
  const fragment: boolean;
58
59
  const version: null;
59
60
  }
60
- const settings: {};
61
- function getServerSettings(): any;
62
- function getServerSettings(): any;
61
+ const settings: Record<string, any> & Record<string, string>;
62
+ function getServerSettings(): Pick<Record<string, any> & Record<string, string>, string>;
63
+ function getServerSettings(): Pick<Record<string, any> & Record<string, string>, string>;
63
64
  }
64
65
  export default optionsReducer;
65
66
  declare function optionsReducer(state: {} | undefined, action: any): {};
@@ -1,3 +1,3 @@
1
1
  export function onAction(action: any): any;
2
2
  export function loadStruct(struct: any): (dispatch: any, getState: any) => void;
3
- export function load(structStr: any, options: any): (dispatch: any, getState: any) => Promise<void>;
3
+ export function load(struct: any, options: any): (dispatch: any, getState: any) => Promise<void>;
@@ -13,16 +13,15 @@
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 React, { FC } from 'react';
17
17
  interface DialogProps {
18
- children: React.ReactElement;
19
18
  title: string;
20
19
  params: DialogParams;
21
- buttons: Array<string | React.ReactElement>;
20
+ buttons?: Array<string | React.ReactElement>;
22
21
  className: string;
23
22
  }
24
- interface DialogParams extends DialogParamsCallProps {
25
- className: string;
23
+ export interface DialogParams extends DialogParamsCallProps {
24
+ className?: string;
26
25
  }
27
26
  interface DialogParamsCallProps {
28
27
  onCancel: () => void;
@@ -33,6 +32,5 @@ interface DialogCallProps {
33
32
  valid?: () => boolean;
34
33
  }
35
34
  declare type Props = DialogProps & DialogCallProps;
36
- declare const Dialog: (props: Props) => JSX.Element;
37
- export type { DialogParamsCallProps };
38
- export { Dialog };
35
+ declare const Dialog: FC<Props>;
36
+ export default Dialog;
@@ -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 * from './Dialog';
16
+ export { default } from './Dialog';
@@ -13,8 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
- import { Dialog, DialogParamsCallProps } from './Dialog';
16
+ import Dialog from './Dialog';
17
17
  import StructEditor from './StructEditor';
18
18
  import Spinner from './Spinner';
19
- export type { DialogParamsCallProps };
20
19
  export { Dialog, StructEditor, Spinner };
@@ -13,18 +13,15 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
- interface ModalProps {
16
+ import { BaseCallProps } from './modal.types';
17
+ interface ModalProps extends BaseCallProps {
17
18
  modal: {
18
19
  name: string;
19
20
  form: any;
20
21
  prop: any;
21
22
  };
22
23
  }
23
- interface ModalCallProps {
24
- onCancel: () => void;
25
- onOk: (result: any) => void;
26
- }
27
- declare type Props = ModalProps & ModalCallProps;
24
+ declare type Props = ModalProps & BaseCallProps;
28
25
  declare function Modal(props: Props): JSX.Element | null;
29
- export type { ModalProps, ModalCallProps };
26
+ export type { ModalProps };
30
27
  export { Modal };
@@ -1,5 +1,5 @@
1
1
  /****************************************************************************
2
- * Copyright 2020 EPAM Systems
2
+ * Copyright 2021 EPAM Systems
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
- export function simpleObjectToGraph(simpleObjectNode: any): {
17
- type: string;
18
- data: any;
19
- };
16
+ import 'draft-js/dist/Draft.css';
17
+ declare const _default: any;
18
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { TextCommand } from 'ketcher-core';
2
+ interface TextButtonProps {
3
+ button: {
4
+ command: TextCommand;
5
+ name: string;
6
+ };
7
+ active: boolean;
8
+ }
9
+ interface TextButtonPropsCallProps {
10
+ toggleStyle: (command: TextCommand) => void;
11
+ }
12
+ declare type Props = TextButtonProps & TextButtonPropsCallProps;
13
+ export declare const TextButton: (props: Props) => JSX.Element;
14
+ export {};
@@ -0,0 +1 @@
1
+ export * from './TextButton';
@@ -1,10 +1,5 @@
1
- declare namespace _default {
2
- export { scaled2obj };
3
- export { obj2scaled };
4
- }
5
- export default _default;
6
1
  /****************************************************************************
7
- * Copyright 2020 EPAM Systems
2
+ * Copyright 2021 EPAM Systems
8
3
  *
9
4
  * Licensed under the Apache License, Version 2.0 (the "License");
10
5
  * you may not use this file except in compliance with the License.
@@ -18,5 +13,4 @@ export default _default;
18
13
  * See the License for the specific language governing permissions and
19
14
  * limitations under the License.
20
15
  ***************************************************************************/
21
- declare function scaled2obj(v: any, options: any): any;
22
- declare function obj2scaled(v: any, options: any): any;
16
+ export { default } from './Text';
@@ -0,0 +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
+ ***************************************************************************/
16
+ import { ComponentType } from 'react';
17
+ declare const OpenContainer: ComponentType;
18
+ export default OpenContainer;
@@ -1,2 +1,24 @@
1
- declare var _default: any;
2
- export default _default;
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 { BaseProps, BaseCallProps } from '../../../modal.types';
18
+ interface OpenProps {
19
+ server: any;
20
+ }
21
+ declare type Props = OpenProps & Pick<BaseProps, 'className'> & BaseCallProps;
22
+ declare const Open: FC<Props>;
23
+ export type { OpenProps };
24
+ export default Open;
@@ -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 './Open';
16
+ export { default } from './Open.container';
@@ -0,0 +1,4 @@
1
+ export default SaveImageTab;
2
+ declare function SaveImageTab({ changeImageFormat }: {
3
+ changeImageFormat: any;
4
+ }): JSX.Element;
@@ -1,2 +1,17 @@
1
- export default Settings;
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
+ ***************************************************************************/
2
16
  declare const Settings: any;
17
+ export default Settings;
@@ -1,14 +1,36 @@
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 { Component, ReactNode } from 'react';
17
+ interface AccordionProps {
18
+ className: string;
19
+ multiple: boolean;
20
+ active: Array<number>;
21
+ }
22
+ interface AccordionState {
23
+ active: Array<number>;
24
+ }
25
+ interface GroupProps {
26
+ caption: string;
27
+ children: ReactNode;
28
+ }
29
+ declare class Accordion extends Component<AccordionProps, AccordionState> {
30
+ constructor(props: AccordionProps);
31
+ onActive(index: number): void;
32
+ groupIsActive(index: number): boolean;
33
+ static Group(props: GroupProps): JSX.Element;
34
+ render(): JSX.Element;
35
+ }
1
36
  export default Accordion;
2
- declare class Accordion extends React.Component<any, any, any> {
3
- static Group({ caption, isActive, onActive, index, children }: {
4
- caption: any;
5
- isActive: any;
6
- onActive: any;
7
- index: any;
8
- children: any;
9
- }): JSX.Element;
10
- constructor(props: any);
11
- onActive(index: any): void;
12
- groupIsActive(index: any): any;
13
- }
14
- import React from "react";
@@ -0,0 +1,20 @@
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 { ComponentType } from 'react';
17
+ import { AtomProps } from './Atom';
18
+ declare type OwnProps = Omit<AtomProps, 'formState'>;
19
+ declare const AtomContainer: ComponentType<OwnProps>;
20
+ export default AtomContainer;
@@ -0,0 +1,36 @@
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 { BaseCallProps, BaseProps } from '../../../modal.types';
17
+ import { FC } from 'react';
18
+ interface AtomProps extends BaseProps {
19
+ alias: string;
20
+ charge: string;
21
+ exactChangeFlag: boolean;
22
+ explicitValence: number;
23
+ hCount: number;
24
+ invRet: number;
25
+ isotope: number;
26
+ label: string;
27
+ radical: number;
28
+ ringBondCount: number;
29
+ stereoParity: number;
30
+ substitutionCount: number;
31
+ unsaturatedAtom: boolean;
32
+ }
33
+ declare type Props = AtomProps & BaseCallProps;
34
+ declare const Atom: FC<Props>;
35
+ export type { AtomProps };
36
+ export default Atom;
@@ -0,0 +1,6 @@
1
+ interface ElementNumberProps {
2
+ label: string;
3
+ }
4
+ declare type Props = ElementNumberProps;
5
+ declare const ElementNumber: (props: Props) => JSX.Element;
6
+ export default ElementNumber;
@@ -0,0 +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
+ ***************************************************************************/
16
+ export { default } from './ElementNumber';
@@ -0,0 +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
+ ***************************************************************************/
16
+ export { default } from './Atom.container';
@@ -0,0 +1,20 @@
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 { ComponentType } from 'react';
17
+ import { AttachPointsProps } from './Attach';
18
+ declare type OwnProps = Omit<AttachPointsProps, 'formState'>;
19
+ declare const AttachPointsContainer: ComponentType<OwnProps>;
20
+ export default AttachPointsContainer;
@@ -0,0 +1,24 @@
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 { BaseProps, BaseCallProps } from '../../../modal.types';
17
+ interface AttachPointsProps extends BaseProps {
18
+ primary: boolean;
19
+ secondary: boolean;
20
+ }
21
+ declare type Props = AttachPointsProps & BaseCallProps;
22
+ declare const AttachPoints: (props: Props) => JSX.Element;
23
+ export type { AttachPointsProps };
24
+ export default AttachPoints;
@@ -0,0 +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
+ ***************************************************************************/
16
+ export { default } from './Attach.container';