ketcher-react 2.8.0-rc.3-dev.1 → 2.8.0-rc.3-dev.3

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 (349) hide show
  1. package/dist/Editor.d.ts +29 -0
  2. package/dist/constants.d.ts +17 -0
  3. package/dist/contexts/appContext.d.ts +22 -0
  4. package/dist/contexts/errorsContext.d.ts +21 -0
  5. package/dist/contexts/formContext.d.ts +18 -0
  6. package/dist/contexts/index.d.ts +21 -0
  7. package/dist/contexts/settingsContext.d.ts +21 -0
  8. package/dist/hooks/index.d.ts +21 -0
  9. package/dist/hooks/useAppContext.d.ts +16 -0
  10. package/dist/hooks/useFormContext.d.ts +16 -0
  11. package/dist/hooks/useInterval.d.ts +16 -0
  12. package/dist/hooks/useResizeObserver.d.ts +26 -0
  13. package/dist/hooks/useSettingsContext.d.ts +16 -0
  14. package/dist/hooks/useSubscribtionOnEvents.d.ts +16 -0
  15. package/dist/icons/index.d.ts +16 -0
  16. package/dist/index.css +2 -0
  17. package/dist/index.css.map +1 -0
  18. package/dist/index.d.ts +18 -0
  19. package/dist/index.js +23859 -0
  20. package/dist/index.js.map +1 -0
  21. package/dist/index.modern.js +23794 -0
  22. package/dist/index.modern.js.map +1 -0
  23. package/dist/script/api.d.ts +19 -0
  24. package/dist/script/builders/index.d.ts +16 -0
  25. package/dist/script/builders/ketcher/ButtonConfig.d.ts +18 -0
  26. package/dist/script/builders/ketcher/ButtonName.d.ts +16 -0
  27. package/dist/script/builders/ketcher/ButtonsConfig.d.ts +20 -0
  28. package/dist/script/builders/ketcher/KetcherBuilder.d.ts +29 -0
  29. package/dist/script/builders/ketcher/index.d.ts +17 -0
  30. package/dist/script/editor/Editor.d.ts +96 -0
  31. package/dist/script/editor/highlighter.d.ts +32 -0
  32. package/dist/script/editor/index.d.ts +18 -0
  33. package/dist/script/editor/shared/closest.d.ts +25 -0
  34. package/dist/script/editor/shared/utils.d.ts +48 -0
  35. package/dist/script/editor/tool/apoint.d.ts +23 -0
  36. package/dist/script/editor/tool/atom.d.ts +31 -0
  37. package/dist/script/editor/tool/attach.d.ts +24 -0
  38. package/dist/script/editor/tool/bond.d.ts +32 -0
  39. package/dist/script/editor/tool/chain.d.ts +27 -0
  40. package/dist/script/editor/tool/charge.d.ts +24 -0
  41. package/dist/script/editor/tool/enhanced-stereo.d.ts +24 -0
  42. package/dist/script/editor/tool/eraser.d.ts +31 -0
  43. package/dist/script/editor/tool/hand.d.ts +30 -0
  44. package/dist/script/editor/tool/helper/dropAndMerge.d.ts +8 -0
  45. package/dist/script/editor/tool/helper/getGroupIdsFromItems.d.ts +12 -0
  46. package/dist/script/editor/tool/helper/getMergeItems.d.ts +2 -0
  47. package/dist/script/editor/tool/helper/lasso.d.ts +59 -0
  48. package/dist/script/editor/tool/helper/locate.d.ts +40 -0
  49. package/dist/script/editor/tool/index.d.ts +47 -0
  50. package/dist/script/editor/tool/paste.d.ts +34 -0
  51. package/dist/script/editor/tool/reactionarrow.d.ts +27 -0
  52. package/dist/script/editor/tool/reactionmap.d.ts +28 -0
  53. package/dist/script/editor/tool/reactionplus.d.ts +26 -0
  54. package/dist/script/editor/tool/reactionunmap.d.ts +23 -0
  55. package/dist/script/editor/tool/rgroupatom.d.ts +23 -0
  56. package/dist/script/editor/tool/rgroupfragment.d.ts +24 -0
  57. package/dist/script/editor/tool/rotate.d.ts +28 -0
  58. package/dist/script/editor/tool/select.d.ts +38 -0
  59. package/dist/script/editor/tool/sgroup.d.ts +30 -0
  60. package/dist/script/editor/tool/simpleobject.d.ts +26 -0
  61. package/dist/script/editor/tool/template.d.ts +32 -0
  62. package/dist/script/editor/tool/text.d.ts +26 -0
  63. package/dist/script/editor/utils/customOnChangeHandler.d.ts +16 -0
  64. package/dist/script/editor/utils/elementOffset.d.ts +17 -0
  65. package/dist/script/editor/utils/functionalGroupsTooltip.d.ts +3 -0
  66. package/dist/script/editor/utils/index.d.ts +17 -0
  67. package/dist/script/index.d.ts +27 -0
  68. package/dist/script/ui/App/App.container.d.ts +20 -0
  69. package/dist/script/ui/App/App.d.ts +23 -0
  70. package/dist/script/ui/App/AppHidden/AppHidden.container.d.ts +19 -0
  71. package/dist/script/ui/App/AppHidden/AppHidden.d.ts +23 -0
  72. package/dist/script/ui/App/AppHidden/index.d.ts +16 -0
  73. package/dist/script/ui/App/index.d.ts +16 -0
  74. package/dist/script/ui/App/initApp.d.ts +18 -0
  75. package/dist/script/ui/Portal/Portal.d.ts +38 -0
  76. package/dist/script/ui/Portal/index.d.ts +16 -0
  77. package/dist/script/ui/action/action.types.d.ts +44 -0
  78. package/dist/script/ui/action/atoms.d.ts +40 -0
  79. package/dist/script/ui/action/copyAs.d.ts +1 -0
  80. package/dist/script/ui/action/copyImageToClipboard.d.ts +2 -0
  81. package/dist/script/ui/action/debug.d.ts +13 -0
  82. package/dist/script/ui/action/flips.d.ts +1 -0
  83. package/dist/script/ui/action/fullscreen.d.ts +23 -0
  84. package/dist/script/ui/action/functionalGroups.d.ts +31 -0
  85. package/dist/script/ui/action/help.d.ts +8 -0
  86. package/dist/script/ui/action/index.d.ts +662 -0
  87. package/dist/script/ui/action/isHidden.d.ts +16 -0
  88. package/dist/script/ui/action/server.d.ts +125 -0
  89. package/dist/script/ui/action/templates.d.ts +13 -0
  90. package/dist/script/ui/action/tools.d.ts +350 -0
  91. package/dist/script/ui/action/zoom.d.ts +27 -0
  92. package/dist/script/ui/component/actionmenu.d.ts +9 -0
  93. package/dist/script/ui/component/cliparea/cliparea.d.ts +20 -0
  94. package/dist/script/ui/component/form/MeasureInput/measure-input.d.ts +8 -0
  95. package/dist/script/ui/component/form/Select/Select.d.ts +30 -0
  96. package/dist/script/ui/component/form/Select/Select.test.d.ts +1 -0
  97. package/dist/script/ui/component/form/Select/index.d.ts +17 -0
  98. package/dist/script/ui/component/form/buttonlist.d.ts +9 -0
  99. package/dist/script/ui/component/form/colorPicker/ColorPicker.d.ts +28 -0
  100. package/dist/script/ui/component/form/colorPicker/ColorPicker.test.d.ts +1 -0
  101. package/dist/script/ui/component/form/combobox/combobox.d.ts +12 -0
  102. package/dist/script/ui/component/form/form/errorPopover.d.ts +5 -0
  103. package/dist/script/ui/component/form/form/form.d.ts +25 -0
  104. package/dist/script/ui/component/form/input.d.ts +43 -0
  105. package/dist/script/ui/component/form/select-checkbox.d.ts +5 -0
  106. package/dist/script/ui/component/form/select-list.d.ts +26 -0
  107. package/dist/script/ui/component/form/systemfonts.d.ts +2 -0
  108. package/dist/script/ui/component/structrender.d.ts +33 -0
  109. package/dist/script/ui/component/view/Atom/Atom.d.ts +7 -0
  110. package/dist/script/ui/component/view/Atom/index.d.ts +16 -0
  111. package/dist/script/ui/component/view/Tabs/Tabs.d.ts +9 -0
  112. package/dist/script/ui/component/view/Tabs/index.d.ts +16 -0
  113. package/dist/script/ui/component/view/icon.d.ts +5 -0
  114. package/dist/script/ui/component/view/openbutton.d.ts +9 -0
  115. package/dist/script/ui/component/view/savebutton.d.ts +32 -0
  116. package/dist/script/ui/data/convert/keynorm.d.ts +6 -0
  117. package/dist/script/ui/data/convert/structConverter.d.ts +17 -0
  118. package/dist/script/ui/data/convert/structconv.d.ts +40 -0
  119. package/dist/script/ui/data/schema/options-schema.d.ts +26 -0
  120. package/dist/script/ui/data/schema/schema-helper.d.ts +2 -0
  121. package/dist/script/ui/data/schema/sdata-schema.d.ts +60 -0
  122. package/dist/script/ui/data/schema/struct-schema.d.ts +301 -0
  123. package/dist/script/ui/data/templates.d.ts +2 -0
  124. package/dist/script/ui/dialog/index.d.ts +17 -0
  125. package/dist/script/ui/dialog/template/EmptySearchResult.d.ts +20 -0
  126. package/dist/script/ui/dialog/template/TemplateDialog.d.ts +42 -0
  127. package/dist/script/ui/dialog/template/TemplateTable.d.ts +39 -0
  128. package/dist/script/ui/dialog/template/template-attach.d.ts +28 -0
  129. package/dist/script/ui/dialog/template/useSaltsAndSolvets.d.ts +2 -0
  130. package/dist/script/ui/dialog/toolbox/SDataFieldset.d.ts +4 -0
  131. package/dist/script/ui/dialog/toolbox/SGroupFieldset.d.ts +4 -0
  132. package/dist/script/ui/dialog/toolbox/enhancedStereo/enhancedStereo.d.ts +42 -0
  133. package/dist/script/ui/dialog/toolbox/labeledit.d.ts +3 -0
  134. package/dist/script/ui/dialog/toolbox/rgroup/rgroup.d.ts +15 -0
  135. package/dist/script/ui/dialog/toolbox/sgroup.d.ts +9 -0
  136. package/dist/script/ui/index.d.ts +16 -0
  137. package/dist/script/ui/state/action/index.d.ts +7 -0
  138. package/dist/script/ui/state/constants.d.ts +6 -0
  139. package/dist/script/ui/state/editor/index.d.ts +23 -0
  140. package/dist/script/ui/state/functionalGroups/index.d.ts +25 -0
  141. package/dist/script/ui/state/functionalGroups/selectors/index.d.ts +18 -0
  142. package/dist/script/ui/state/handleHotkeysOverItem.d.ts +15 -0
  143. package/dist/script/ui/state/hotkeys.d.ts +23 -0
  144. package/dist/script/ui/state/index.d.ts +6 -0
  145. package/dist/script/ui/state/modal/atoms.d.ts +13 -0
  146. package/dist/script/ui/state/modal/form.d.ts +153 -0
  147. package/dist/script/ui/state/modal/index.d.ts +3 -0
  148. package/dist/script/ui/state/modal/sdata.d.ts +16 -0
  149. package/dist/script/ui/state/options/index.d.ts +68 -0
  150. package/dist/script/ui/state/request/index.d.ts +22 -0
  151. package/dist/script/ui/state/request/reducer.test.d.ts +16 -0
  152. package/dist/script/ui/state/request/request.types.d.ts +27 -0
  153. package/dist/script/ui/state/saltsAndSolvents/index.d.ts +23 -0
  154. package/dist/script/ui/state/saltsAndSolvents/selectors/index.d.ts +16 -0
  155. package/dist/script/ui/state/server/index.d.ts +7 -0
  156. package/dist/script/ui/state/shared.d.ts +19 -0
  157. package/dist/script/ui/state/templates/index.d.ts +77 -0
  158. package/dist/script/ui/state/templates/init-lib.d.ts +8 -0
  159. package/dist/script/ui/state/toolbar/index.d.ts +33 -0
  160. package/dist/script/ui/storage-ext.d.ts +9 -0
  161. package/dist/script/ui/utils/fileOpener.d.ts +16 -0
  162. package/dist/script/ui/utils/index.d.ts +15 -0
  163. package/dist/script/ui/utils/renderStruct.d.ts +9 -0
  164. package/dist/script/ui/utils/settingsManager.d.ts +25 -0
  165. package/dist/script/ui/views/AppClipArea.d.ts +18 -0
  166. package/dist/script/ui/views/Editor.d.ts +3 -0
  167. package/dist/script/ui/views/components/ContextMenu/ContextMenu.d.ts +19 -0
  168. package/dist/script/ui/views/components/ContextMenu/ContextMenuTrigger.d.ts +18 -0
  169. package/dist/script/ui/views/components/ContextMenu/contextMenu.types.d.ts +16 -0
  170. package/dist/script/ui/views/components/ContextMenu/hooks/useAtomEdit.d.ts +3 -0
  171. package/dist/script/ui/views/components/ContextMenu/hooks/useAtomStereo.d.ts +3 -0
  172. package/dist/script/ui/views/components/ContextMenu/hooks/useBondEdit.d.ts +3 -0
  173. package/dist/script/ui/views/components/ContextMenu/hooks/useBondSGroupAttach.d.ts +3 -0
  174. package/dist/script/ui/views/components/ContextMenu/hooks/useBondSGroupEdit.d.ts +3 -0
  175. package/dist/script/ui/views/components/ContextMenu/hooks/useBondTypeChange.d.ts +3 -0
  176. package/dist/script/ui/views/components/ContextMenu/hooks/useDelete.d.ts +3 -0
  177. package/dist/script/ui/views/components/ContextMenu/hooks/useFunctionalGroupEoc.d.ts +6 -0
  178. package/dist/script/ui/views/components/ContextMenu/hooks/useFunctionalGroupRemove.d.ts +3 -0
  179. package/dist/script/ui/views/components/ContextMenu/index.d.ts +2 -0
  180. package/dist/script/ui/views/components/ContextMenu/menuItems/AtomMenuItems.d.ts +3 -0
  181. package/dist/script/ui/views/components/ContextMenu/menuItems/BondMenuItems.d.ts +3 -0
  182. package/dist/script/ui/views/components/ContextMenu/menuItems/FunctionalGroupMenuItems.d.ts +3 -0
  183. package/dist/script/ui/views/components/ContextMenu/menuItems/SelectionMenuItems.d.ts +3 -0
  184. package/dist/script/ui/views/components/ContextMenu/utils.d.ts +25 -0
  185. package/dist/script/ui/views/components/Cursor.d.ts +6 -0
  186. package/dist/script/ui/views/components/Dialog/Dialog.d.ts +44 -0
  187. package/dist/script/ui/views/components/Dialog/index.d.ts +16 -0
  188. package/dist/script/ui/views/components/Spinner/LoadingCircles.d.ts +17 -0
  189. package/dist/script/ui/views/components/Spinner/index.d.ts +16 -0
  190. package/dist/script/ui/views/components/StructEditor/InfoPanel.d.ts +27 -0
  191. package/dist/script/ui/views/components/StructEditor/StructEditor.d.ts +19 -0
  192. package/dist/script/ui/views/components/StructEditor/index.d.ts +16 -0
  193. package/dist/script/ui/views/components/index.d.ts +19 -0
  194. package/dist/script/ui/views/modal/Modal.container.d.ts +19 -0
  195. package/dist/script/ui/views/modal/Modal.d.ts +28 -0
  196. package/dist/script/ui/views/modal/components/Confirm/Confirm.d.ts +7 -0
  197. package/dist/script/ui/views/modal/components/Confirm/index.d.ts +1 -0
  198. package/dist/script/ui/views/modal/components/ExtendedTable/ExtendedTable.d.ts +2 -0
  199. package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/BoxWithLines.d.ts +18 -0
  200. package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenGroup.d.ts +24 -0
  201. package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenSet.d.ts +26 -0
  202. package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenericGroups.d.ts +22 -0
  203. package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/index.d.ts +27 -0
  204. package/dist/script/ui/views/modal/components/ExtendedTable/helpers.d.ts +1 -0
  205. package/dist/script/ui/views/modal/components/ExtendedTable/index.d.ts +1 -0
  206. package/dist/script/ui/views/modal/components/PeriodTable/PeriodTable.d.ts +37 -0
  207. package/dist/script/ui/views/modal/components/PeriodTable/components/AtomInfo/AtomInfo.d.ts +5 -0
  208. package/dist/script/ui/views/modal/components/PeriodTable/components/AtomInfo/index.d.ts +16 -0
  209. package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/ElementsTable.d.ts +9 -0
  210. package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/Header.d.ts +2 -0
  211. package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/MainRow.d.ts +11 -0
  212. package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/OutinerRow.d.ts +10 -0
  213. package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/index.d.ts +19 -0
  214. package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/index.d.ts +16 -0
  215. package/dist/script/ui/views/modal/components/PeriodTable/components/TypeChoice/TypeChoice.d.ts +6 -0
  216. package/dist/script/ui/views/modal/components/PeriodTable/components/TypeChoice/index.d.ts +16 -0
  217. package/dist/script/ui/views/modal/components/PeriodTable/components/index.d.ts +20 -0
  218. package/dist/script/ui/views/modal/components/PeriodTable/index.d.ts +16 -0
  219. package/dist/script/ui/views/modal/components/Text/FontControl/FontControl.d.ts +22 -0
  220. package/dist/script/ui/views/modal/components/Text/FontControl/index.d.ts +16 -0
  221. package/dist/script/ui/views/modal/components/Text/SpecialSymbols/SpecialSymbolsButton.d.ts +22 -0
  222. package/dist/script/ui/views/modal/components/Text/SpecialSymbolsList/SpecialSymbolsList.d.ts +20 -0
  223. package/dist/script/ui/views/modal/components/Text/Text.d.ts +26 -0
  224. package/dist/script/ui/views/modal/components/Text/TextButton/TextButton.d.ts +30 -0
  225. package/dist/script/ui/views/modal/components/Text/TextButton/index.d.ts +16 -0
  226. package/dist/script/ui/views/modal/components/Text/index.d.ts +16 -0
  227. package/dist/script/ui/views/modal/components/document/Open/Open.container.d.ts +24 -0
  228. package/dist/script/ui/views/modal/components/document/Open/Open.d.ts +29 -0
  229. package/dist/script/ui/views/modal/components/document/Open/components/AnalyzingFile.d.ts +20 -0
  230. package/dist/script/ui/views/modal/components/document/Open/components/DialogActionButton.d.ts +25 -0
  231. package/dist/script/ui/views/modal/components/document/Open/components/FileDrop.d.ts +26 -0
  232. package/dist/script/ui/views/modal/components/document/Open/components/OpenOptions.d.ts +24 -0
  233. package/dist/script/ui/views/modal/components/document/Open/components/TextEditor.d.ts +22 -0
  234. package/dist/script/ui/views/modal/components/document/Open/components/ViewSwitcher.d.ts +31 -0
  235. package/dist/script/ui/views/modal/components/document/Open/index.d.ts +16 -0
  236. package/dist/script/ui/views/modal/components/document/Save/Save.d.ts +45 -0
  237. package/dist/script/ui/views/modal/components/document/Save/index.d.ts +16 -0
  238. package/dist/script/ui/views/modal/components/document/index.d.ts +18 -0
  239. package/dist/script/ui/views/modal/components/meta/About/About.d.ts +3 -0
  240. package/dist/script/ui/views/modal/components/meta/About/index.d.ts +16 -0
  241. package/dist/script/ui/views/modal/components/meta/Settings/Accordion/Accordion.d.ts +22 -0
  242. package/dist/script/ui/views/modal/components/meta/Settings/Accordion/index.d.ts +16 -0
  243. package/dist/script/ui/views/modal/components/meta/Settings/Settings.d.ts +38 -0
  244. package/dist/script/ui/views/modal/components/meta/Settings/fieldGroups.d.ts +41 -0
  245. package/dist/script/ui/views/modal/components/meta/Settings/index.d.ts +16 -0
  246. package/dist/script/ui/views/modal/components/meta/index.d.ts +18 -0
  247. package/dist/script/ui/views/modal/components/process/Analyse/Analyse.d.ts +10 -0
  248. package/dist/script/ui/views/modal/components/process/Analyse/components/FormulaInput/FormulaInput.d.ts +5 -0
  249. package/dist/script/ui/views/modal/components/process/Analyse/components/FormulaInput/index.d.ts +16 -0
  250. package/dist/script/ui/views/modal/components/process/Analyse/components/FrozenInput/FrozenInput.d.ts +19 -0
  251. package/dist/script/ui/views/modal/components/process/Analyse/components/FrozenInput/index.d.ts +16 -0
  252. package/dist/script/ui/views/modal/components/process/Analyse/components/index.d.ts +18 -0
  253. package/dist/script/ui/views/modal/components/process/Analyse/index.d.ts +16 -0
  254. package/dist/script/ui/views/modal/components/process/Check/Check.d.ts +3 -0
  255. package/dist/script/ui/views/modal/components/process/Check/components/ErrorsCheck.d.ts +17 -0
  256. package/dist/script/ui/views/modal/components/process/Check/components/index.d.ts +16 -0
  257. package/dist/script/ui/views/modal/components/process/Check/index.d.ts +16 -0
  258. package/dist/script/ui/views/modal/components/process/Miew/Miew.d.ts +31 -0
  259. package/dist/script/ui/views/modal/components/process/Miew/index.d.ts +16 -0
  260. package/dist/script/ui/views/modal/components/process/Recognize/Recognize.d.ts +3 -0
  261. package/dist/script/ui/views/modal/components/process/Recognize/index.d.ts +16 -0
  262. package/dist/script/ui/views/modal/components/process/index.d.ts +20 -0
  263. package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.container.d.ts +22 -0
  264. package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.d.ts +38 -0
  265. package/dist/script/ui/views/modal/components/toolbox/Atom/ElementNumber/ElementNumber.d.ts +22 -0
  266. package/dist/script/ui/views/modal/components/toolbox/Atom/ElementNumber/index.d.ts +16 -0
  267. package/dist/script/ui/views/modal/components/toolbox/Atom/index.d.ts +16 -0
  268. package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.container.d.ts +18 -0
  269. package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.d.ts +25 -0
  270. package/dist/script/ui/views/modal/components/toolbox/Attach/index.d.ts +16 -0
  271. package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.container.d.ts +19 -0
  272. package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.d.ts +33 -0
  273. package/dist/script/ui/views/modal/components/toolbox/Automap/index.d.ts +16 -0
  274. package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.container.d.ts +18 -0
  275. package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.d.ts +26 -0
  276. package/dist/script/ui/views/modal/components/toolbox/Bond/index.d.ts +16 -0
  277. package/dist/script/ui/views/modal/components/toolbox/FG/RemoveFG.d.ts +24 -0
  278. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.container.d.ts +18 -0
  279. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.d.ts +30 -0
  280. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/IfThenSelect.d.ts +20 -0
  281. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/index.d.ts +16 -0
  282. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/index.d.ts +16 -0
  283. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/index.d.ts +16 -0
  284. package/dist/script/ui/views/modal/components/toolbox/index.d.ts +21 -0
  285. package/dist/script/ui/views/modal/index.d.ts +16 -0
  286. package/dist/script/ui/views/modal/mediaSizes.d.ts +20 -0
  287. package/dist/script/ui/views/modal/modal.types.d.ts +28 -0
  288. package/dist/script/ui/views/toolbars/ArrowScroll/ArrowScroll.d.ts +24 -0
  289. package/dist/script/ui/views/toolbars/ArrowScroll/index.d.ts +2 -0
  290. package/dist/script/ui/views/toolbars/BottomToolbar/BottomToolbar.container.d.ts +20 -0
  291. package/dist/script/ui/views/toolbars/BottomToolbar/BottomToolbar.d.ts +29 -0
  292. package/dist/script/ui/views/toolbars/BottomToolbar/TemplatesList/TemplatesList.d.ts +34 -0
  293. package/dist/script/ui/views/toolbars/BottomToolbar/TemplatesList/index.d.ts +16 -0
  294. package/dist/script/ui/views/toolbars/BottomToolbar/index.d.ts +16 -0
  295. package/dist/script/ui/views/toolbars/LeftToolbar/Bond/Bond.d.ts +25 -0
  296. package/dist/script/ui/views/toolbars/LeftToolbar/Bond/index.d.ts +16 -0
  297. package/dist/script/ui/views/toolbars/LeftToolbar/Bond/options.d.ts +24 -0
  298. package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.container.d.ts +19 -0
  299. package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.d.ts +25 -0
  300. package/dist/script/ui/views/toolbars/LeftToolbar/RGroup/RGroup.d.ts +25 -0
  301. package/dist/script/ui/views/toolbars/LeftToolbar/RGroup/index.d.ts +16 -0
  302. package/dist/script/ui/views/toolbars/LeftToolbar/Shape/Shape.d.ts +25 -0
  303. package/dist/script/ui/views/toolbars/LeftToolbar/Shape/index.d.ts +16 -0
  304. package/dist/script/ui/views/toolbars/LeftToolbar/Transform/Transform.d.ts +25 -0
  305. package/dist/script/ui/views/toolbars/LeftToolbar/Transform/index.d.ts +16 -0
  306. package/dist/script/ui/views/toolbars/LeftToolbar/index.d.ts +16 -0
  307. package/dist/script/ui/views/toolbars/LeftToolbar/leftToolbarOptions.d.ts +9 -0
  308. package/dist/script/ui/views/toolbars/RightToolbar/AtomsList/AtomsList.d.ts +32 -0
  309. package/dist/script/ui/views/toolbars/RightToolbar/AtomsList/index.d.ts +16 -0
  310. package/dist/script/ui/views/toolbars/RightToolbar/RightToolbar.container.d.ts +21 -0
  311. package/dist/script/ui/views/toolbars/RightToolbar/RightToolbar.d.ts +30 -0
  312. package/dist/script/ui/views/toolbars/RightToolbar/index.d.ts +16 -0
  313. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ActionButton/ActionButton.d.ts +36 -0
  314. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ActionButton/index.d.ts +16 -0
  315. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarGroupItem.d.ts +36 -0
  316. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/ToolbarMultiToolItem.d.ts +41 -0
  317. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/index.d.ts +16 -0
  318. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/usePortalOpening.d.ts +19 -0
  319. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/usePortalStyle.d.ts +19 -0
  320. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/DefaultMultiTool/DefaultMultiTool.d.ts +23 -0
  321. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/DefaultMultiTool/index.d.ts +18 -0
  322. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/GroupedMultiTool/GroupedMultiTool.d.ts +23 -0
  323. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/GroupedMultiTool/index.d.ts +16 -0
  324. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/chooseMultiTool.d.ts +18 -0
  325. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/variants.types.d.ts +35 -0
  326. package/dist/script/ui/views/toolbars/ToolbarGroupItem/index.d.ts +16 -0
  327. package/dist/script/ui/views/toolbars/ToolbarGroupItem/utils/index.d.ts +16 -0
  328. package/dist/script/ui/views/toolbars/ToolbarGroupItem/utils/makeItems.d.ts +18 -0
  329. package/dist/script/ui/views/toolbars/TopToolbar/ClipboardControls.d.ts +31 -0
  330. package/dist/script/ui/views/toolbars/TopToolbar/Divider.d.ts +17 -0
  331. package/dist/script/ui/views/toolbars/TopToolbar/ElementWithDropdown.d.ts +23 -0
  332. package/dist/script/ui/views/toolbars/TopToolbar/ExternalFuncControls.d.ts +35 -0
  333. package/dist/script/ui/views/toolbars/TopToolbar/FileControls.d.ts +26 -0
  334. package/dist/script/ui/views/toolbars/TopToolbar/IconButton.d.ts +26 -0
  335. package/dist/script/ui/views/toolbars/TopToolbar/ScaleTransformer.d.ts +24 -0
  336. package/dist/script/ui/views/toolbars/TopToolbar/SystemControls.d.ts +28 -0
  337. package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.container.d.ts +18 -0
  338. package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.d.ts +55 -0
  339. package/dist/script/ui/views/toolbars/TopToolbar/UndoRedo.d.ts +27 -0
  340. package/dist/script/ui/views/toolbars/TopToolbar/ZoomControls.d.ts +29 -0
  341. package/dist/script/ui/views/toolbars/TopToolbar/ZoomInput.d.ts +26 -0
  342. package/dist/script/ui/views/toolbars/TopToolbar/ZoomList.d.ts +23 -0
  343. package/dist/script/ui/views/toolbars/TopToolbar/ZoomSlider.d.ts +22 -0
  344. package/dist/script/ui/views/toolbars/TopToolbar/index.d.ts +16 -0
  345. package/dist/script/ui/views/toolbars/index.d.ts +19 -0
  346. package/dist/script/ui/views/toolbars/mediaSizes.d.ts +23 -0
  347. package/dist/script/ui/views/toolbars/shortcutStr.d.ts +1 -0
  348. package/dist/script/ui/views/toolbars/toolbar.types.d.ts +32 -0
  349. package/package.json +9 -10
@@ -0,0 +1,22 @@
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 { RequestActionTypes, RequestState } from './request.types';
17
+ export declare function indigoVerification(data: boolean): RequestActionTypes;
18
+ export declare function setAnalyzingFile(data: boolean): RequestActionTypes;
19
+ export default function (state: {
20
+ indigoVerification: boolean;
21
+ isAnalyzingFile: boolean;
22
+ } | undefined, action: RequestActionTypes): RequestState;
@@ -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 {};
@@ -0,0 +1,27 @@
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 INDIGO_VERIFICATION = "INDIGO_VERIFICATION";
17
+ export declare const ANALYZING_FILE = "ANALYZING_FILE";
18
+ export interface RequestState {
19
+ indigoVerification: boolean;
20
+ isAnalyzingFile: boolean;
21
+ }
22
+ interface IndigoVerificationAction {
23
+ type: string;
24
+ data: boolean;
25
+ }
26
+ export declare type RequestActionTypes = IndigoVerificationAction;
27
+ export {};
@@ -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 { AnyAction } from 'redux';
17
+ interface SaltsAndSolventsState {
18
+ lib: [];
19
+ mode: string;
20
+ }
21
+ declare const saltsAndSolventsReducer: (state: SaltsAndSolventsState | undefined, { type, payload }: AnyAction) => any;
22
+ export declare function initSaltsAndSolventsTemplates(): (dispatch: any, getState: any) => Promise<void>;
23
+ export default saltsAndSolventsReducer;
@@ -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 declare const saltsAndSolventsSelector: (state: any) => any;
@@ -0,0 +1,7 @@
1
+ export function checkServer(): (dispatch: any, getState: any) => void;
2
+ export function recognize(file: any, version: any): (dispatch: any, getState: any) => void;
3
+ export function check(optsTypes: any): (dispatch: any, getState: any) => any;
4
+ export function automap(res: any): (dispatch: any, getState: any) => void;
5
+ export function analyse(): (dispatch: any, getState: any) => any;
6
+ export function serverTransform(method: any, data: any, struct: any): (dispatch: any, getState: any) => void;
7
+ export function serverCall(editor: any, server: any, method: any, options: any, struct: any): any;
@@ -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
+ import { Struct } from 'ketcher-core';
17
+ export declare function onAction(action: any): any;
18
+ export declare function loadStruct(struct: any): (_dispatch: any, getState: any) => void;
19
+ export declare function load(struct: Struct, options?: any): (dispatch: any, getState: any) => Promise<void>;
@@ -0,0 +1,77 @@
1
+ export function selectTmpl(tmpl: any): {
2
+ type: string;
3
+ data: {
4
+ selected: any;
5
+ };
6
+ };
7
+ export function changeGroup(group: any): {
8
+ type: string;
9
+ data: {
10
+ group: any;
11
+ selected: null;
12
+ };
13
+ };
14
+ export function changeFilter(filter: any): {
15
+ type: string;
16
+ data: {
17
+ filter: any;
18
+ selected: null;
19
+ };
20
+ };
21
+ export function changeTab(tab: any): {
22
+ type: string;
23
+ data: {
24
+ tab: any;
25
+ };
26
+ };
27
+ export function initAttach(name: any, attach: any): {
28
+ type: string;
29
+ data: {
30
+ name: any;
31
+ atomid: any;
32
+ bondid: any;
33
+ };
34
+ };
35
+ export function setAttachPoints(attach: any): {
36
+ type: string;
37
+ data: {
38
+ atomid: any;
39
+ bondid: any;
40
+ };
41
+ };
42
+ export function setTmplName(name: any): {
43
+ type: string;
44
+ data: {
45
+ name: any;
46
+ };
47
+ };
48
+ export function editTmpl(tmpl: any): (dispatch: any, getState: any) => void;
49
+ export function deleteUserTmpl(tmpl: any): {
50
+ type: string;
51
+ data: {
52
+ tmpl: any;
53
+ };
54
+ };
55
+ export function deleteTmpl(tmpl: any): (dispatch: any, getState: any) => void;
56
+ export function saveUserTmpl(struct: any): (dispatch: any, getState: any) => void;
57
+ export { initTmplLib };
58
+ export namespace initTmplsState {
59
+ const lib: never[];
60
+ const selected: null;
61
+ const filter: string;
62
+ const group: null;
63
+ const attach: {};
64
+ const mode: string;
65
+ const tab: number;
66
+ }
67
+ export default templatesReducer;
68
+ import initTmplLib from "./init-lib";
69
+ declare function templatesReducer(state: {
70
+ lib: never[];
71
+ selected: null;
72
+ filter: string;
73
+ group: null;
74
+ attach: {};
75
+ mode: string;
76
+ tab: number;
77
+ } | undefined, action: any): any;
@@ -0,0 +1,8 @@
1
+ export function initLib(lib: any): {
2
+ type: string;
3
+ data: {
4
+ lib: any;
5
+ };
6
+ };
7
+ export default function initTmplLib(dispatch: any, baseUrl: any, cacheEl: any): Promise<void>;
8
+ export function prefetchStatic(url: any): Promise<string>;
@@ -0,0 +1,33 @@
1
+ export function initResize(): (dispatch: any, getState: any) => void;
2
+ export default function _default(state: {
3
+ freqAtoms: never[];
4
+ currentAtom: number;
5
+ opened: null;
6
+ visibleTools: {
7
+ select: string;
8
+ };
9
+ } | undefined, action: any): {
10
+ freqAtoms: any;
11
+ currentAtom: any;
12
+ opened: null;
13
+ visibleTools: {
14
+ select: string;
15
+ };
16
+ } | {
17
+ opened: null;
18
+ visibleTools: any;
19
+ freqAtoms: never[];
20
+ currentAtom: number;
21
+ } | {
22
+ opened: any;
23
+ freqAtoms: never[];
24
+ currentAtom: number;
25
+ visibleTools: {
26
+ select: string;
27
+ };
28
+ };
29
+ export function addAtoms(atomLabel: any): {
30
+ type: string;
31
+ data: any;
32
+ };
33
+ export function hiddenAncestor(el: any, base: any): any;
@@ -0,0 +1,9 @@
1
+ export namespace storage {
2
+ const warningMessage: string;
3
+ function isAvailable(): false | Storage;
4
+ function isAvailable(): false | Storage;
5
+ function getItem(key: any): any;
6
+ function getItem(key: any): any;
7
+ function setItem(key: any, data: any): boolean;
8
+ function setItem(key: any, data: any): boolean;
9
+ }
@@ -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 function fileOpener(server: any): Promise<any>;
@@ -0,0 +1,15 @@
1
+ import { Option } from '../component/form/Select';
2
+ export declare function greekify(str: string): string;
3
+ export declare function filterLib(lib: any, filter: string): {};
4
+ export declare function filterFGLib(lib: any, filter: any): {};
5
+ export declare const getSelectOptionsFromSchema: (schema: any) => Array<Option>;
6
+ /**
7
+ * Creates a function, which is not called if the current argument is the same as the last one
8
+ * @param func function to be debounced
9
+ * @param delay delay in ms
10
+ * @param skipArguments indexes in arguments array to skip for comparison
11
+ * @returns debounced function, which is not called with previous argument
12
+ */
13
+ export declare function memoizedDebounce(func: any, delay?: number, skipArguments?: number[]): (...args: any[]) => void;
14
+ export { RenderStruct } from './renderStruct';
15
+ export { fileOpener } from './fileOpener';
@@ -0,0 +1,9 @@
1
+ import { Struct } from 'ketcher-core';
2
+ export declare class RenderStruct {
3
+ /**
4
+ * for S-Groups we want to show expanded structure
5
+ * without brackets
6
+ */
7
+ static prepareStruct(struct: Struct): Struct;
8
+ static render(el: HTMLElement | null, struct: Struct | null, options?: any): void;
9
+ }
@@ -0,0 +1,25 @@
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
+ interface SavedSettings {
17
+ selectionTool?: any;
18
+ }
19
+ export declare class SettingsManager {
20
+ static getSettings(): SavedSettings;
21
+ static saveSettings(settings: SavedSettings): void;
22
+ static get selectionTool(): any;
23
+ static set selectionTool(selectionTool: any);
24
+ }
25
+ export {};
@@ -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 ClipArea from '../component/cliparea/cliparea';
17
+ declare const AppClipArea: import("react-redux").ConnectedComponent<typeof ClipArea, import("react-redux").Omit<any, string | number | symbol>>;
18
+ export default AppClipArea;
@@ -0,0 +1,3 @@
1
+ export default Editor;
2
+ declare const Editor: import("react-redux").ConnectedComponent<typeof StructEditor, import("react-redux").Omit<any, "options" | "type" | "indigoVerification">>;
3
+ import { StructEditor } from "./components";
@@ -0,0 +1,19 @@
1
+ /****************************************************************************
2
+ * Copyright 2022 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
+ /// <reference types="react" />
17
+ import 'react-contexify/ReactContexify.css';
18
+ declare const ContextMenu: React.FC;
19
+ export default ContextMenu;
@@ -0,0 +1,18 @@
1
+ /****************************************************************************
2
+ * Copyright 2022 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 { PropsWithChildren } from 'react';
17
+ declare const ContextMenuTrigger: React.FC<PropsWithChildren>;
18
+ export default ContextMenuTrigger;
@@ -0,0 +1,16 @@
1
+ import { FunctionalGroup } from 'ketcher-core';
2
+ import type { PredicateParams } from 'react-contexify';
3
+ export declare enum CONTEXT_MENU_ID {
4
+ FOR_BONDS = "context-menu-for-bonds",
5
+ FOR_ATOMS = "context-menu-for-atoms",
6
+ FOR_SELECTION = "context-menu-for-selection",
7
+ FOR_FUNCTIONAL_GROUPS = "context-menu-for-functional-groups"
8
+ }
9
+ export declare type ItemData = unknown;
10
+ export declare type ContextMenuShowProps = {
11
+ id: CONTEXT_MENU_ID;
12
+ functionalGroups?: FunctionalGroup[];
13
+ bondIds?: number[];
14
+ atomIds?: number[];
15
+ } | null;
16
+ export declare type ItemEventParams = PredicateParams<ContextMenuShowProps, ItemData>;
@@ -0,0 +1,3 @@
1
+ import { ItemEventParams } from '../contextMenu.types';
2
+ declare const useAtomEdit: () => readonly [({ props }: ItemEventParams) => Promise<void>, ({ props }: ItemEventParams) => boolean];
3
+ export default useAtomEdit;
@@ -0,0 +1,3 @@
1
+ import { ItemEventParams } from '../contextMenu.types';
2
+ declare const useAtomStereo: () => readonly [({ props }: ItemEventParams) => Promise<void>, ({ props }: ItemEventParams) => boolean];
3
+ export default useAtomStereo;
@@ -0,0 +1,3 @@
1
+ import { ItemEventParams } from '../contextMenu.types';
2
+ declare const useBondEdit: () => readonly [({ props }: ItemEventParams) => Promise<void>, ({ props }: ItemEventParams) => boolean];
3
+ export default useBondEdit;
@@ -0,0 +1,3 @@
1
+ import { ItemEventParams } from '../contextMenu.types';
2
+ declare const useBondSGroupAttach: () => readonly [({ props }: ItemEventParams) => void, ({ props }: ItemEventParams) => boolean];
3
+ export default useBondSGroupAttach;
@@ -0,0 +1,3 @@
1
+ import { ItemEventParams } from '../contextMenu.types';
2
+ declare const useBondSGroupEdit: () => readonly [() => void, ({ props }: ItemEventParams) => boolean, () => boolean];
3
+ export default useBondSGroupEdit;
@@ -0,0 +1,3 @@
1
+ import { ItemEventParams } from '../contextMenu.types';
2
+ declare const useBondTypeChange: () => readonly [({ id, props }: ItemEventParams) => void, ({ props }: ItemEventParams) => boolean];
3
+ export default useBondTypeChange;
@@ -0,0 +1,3 @@
1
+ import { ItemEventParams } from '../contextMenu.types';
2
+ declare const useDelete: () => ({ props }: ItemEventParams) => Promise<void>;
3
+ export default useDelete;
@@ -0,0 +1,6 @@
1
+ import { ItemEventParams } from '../contextMenu.types';
2
+ /**
3
+ * Fullname: useFunctionalGroupExpandOrContract
4
+ */
5
+ declare const useFunctionalGroupEoc: () => readonly [({ props }: ItemEventParams, toExpand: boolean) => void, ({ props }: ItemEventParams, toExpand: boolean) => boolean];
6
+ export default useFunctionalGroupEoc;
@@ -0,0 +1,3 @@
1
+ import { ItemEventParams } from '../contextMenu.types';
2
+ declare const useFunctionalGroupRemove: () => ({ props }: ItemEventParams) => void;
3
+ export default useFunctionalGroupRemove;
@@ -0,0 +1,2 @@
1
+ export { default as ContextMenu } from './ContextMenu';
2
+ export { default as ContextMenuTrigger } from './ContextMenuTrigger';
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const AtomMenuItems: React.FC;
3
+ export default AtomMenuItems;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const BondMenuItems: React.FC;
3
+ export default BondMenuItems;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const FunctionalGroupMenuItems: React.FC;
3
+ export default FunctionalGroupMenuItems;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const SelectionMenuItems: React.FC;
3
+ export default SelectionMenuItems;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Remove the word `bond` out of the title
3
+ *
4
+ * @example
5
+ * formatTitle('Single Bond') === 'Single'
6
+ */
7
+ export declare const formatTitle: (title: string) => string;
8
+ /**
9
+ * Get bond names from default export of `src/script/ui/action/tools.js`
10
+ *
11
+ * @returns `['bond-single', 'bond-up', 'bond-down', 'bond-updown', 'bond-double',
12
+ * 'bond-crossed', 'bond-triple', 'bond-aromatic', 'bond-any', 'bond-hydrogen',
13
+ * 'bond-singledouble', 'bond-singlearomatic', 'bond-doublearomatic', 'bond-dative']`
14
+ */
15
+ export declare const getBondNames: (tools: any) => string[];
16
+ export declare const queryBondNames: string[];
17
+ /**
18
+ * Get bond names except for query bonds
19
+ *
20
+ * @returns `['bond-single', 'bond-up', 'bond-down', 'bond-updown', 'bond-double',
21
+ * 'bond-crossed', 'bond-triple', 'bond-aromatic', 'bond-hydrogen', 'bond-dative']`
22
+ */
23
+ export declare const getNonQueryBondNames: (tools: any) => string[];
24
+ export declare const noOperation: () => null;
25
+ export declare function onlyHasProperty<T extends object>(checkedObject: T, key: keyof T): boolean;
@@ -0,0 +1,6 @@
1
+ export default Cursor;
2
+ declare function Cursor({ Icon, PressedIcon, enableHandTool }: {
3
+ Icon: any;
4
+ PressedIcon: any;
5
+ enableHandTool: any;
6
+ }): JSX.Element | null;
@@ -0,0 +1,44 @@
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, PropsWithChildren, ReactElement } from 'react';
17
+ interface DialogParamsCallProps {
18
+ onCancel: () => void;
19
+ onOk: (result: any) => void;
20
+ }
21
+ export interface DialogParams extends DialogParamsCallProps {
22
+ className?: string;
23
+ }
24
+ interface DialogProps {
25
+ title?: string;
26
+ params: DialogParams;
27
+ buttons?: Array<string | ReactElement>;
28
+ className?: string;
29
+ needMargin?: boolean;
30
+ withDivider?: boolean;
31
+ headerContent?: ReactElement;
32
+ footerContent?: ReactElement;
33
+ buttonsNameMap?: {
34
+ [key in string]: string;
35
+ };
36
+ focusable?: boolean;
37
+ }
38
+ interface DialogCallProps {
39
+ result?: () => any;
40
+ valid?: () => boolean;
41
+ }
42
+ declare type Props = DialogProps & DialogCallProps;
43
+ declare const Dialog: FC<PropsWithChildren & Props>;
44
+ export default Dialog;
@@ -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 './Dialog';
@@ -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
+ /// <reference types="react" />
17
+ export declare const LoadingCircles: () => JSX.Element;
@@ -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 * from './LoadingCircles';