ketcher-react 2.16.0-rc.2 → 2.17.0-rc.1

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 (155) hide show
  1. package/dist/Editor.d.ts +1 -2
  2. package/dist/components/Accordion/Accordion.d.ts +1 -2
  3. package/dist/components/Buttons/Button/Button.d.ts +1 -2
  4. package/dist/components/Buttons/IconButton/IconButton.d.ts +1 -2
  5. package/dist/{script/ui/views/components → components}/Dialog/Dialog.d.ts +4 -4
  6. package/dist/{script/ui/views/components → components}/Dialog/index.d.ts +1 -1
  7. package/dist/components/Icon/Icon.d.ts +1 -2
  8. package/dist/components/Icon/utils/iconNameToIcon.d.ts +4 -0
  9. package/dist/components/Input/Input.d.ts +1 -2
  10. package/dist/components/StructRender/StructRender.d.ts +1 -2
  11. package/dist/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -2
  12. package/dist/components/index.d.ts +1 -0
  13. package/dist/constants.d.ts +0 -2
  14. package/dist/index.css +1 -1
  15. package/dist/index.css.map +1 -1
  16. package/dist/index.js +3190 -2763
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.modern.js +3222 -2796
  19. package/dist/index.modern.js.map +1 -1
  20. package/dist/script/builders/ketcher/KetcherBuilder.d.ts +2 -1
  21. package/dist/script/editor/Editor.d.ts +5 -4
  22. package/dist/script/editor/HoverIcon.d.ts +1 -1
  23. package/dist/script/editor/tool/helper/dropAndMerge.d.ts +1 -1
  24. package/dist/script/editor/tool/select.d.ts +3 -1
  25. package/dist/script/editor/utils/structLayout.d.ts +1 -2
  26. package/dist/script/index.d.ts +4 -1
  27. package/dist/script/providers/index.d.ts +1 -0
  28. package/dist/script/providers/indigoProvider.d.ts +5 -0
  29. package/dist/script/ui/App/App.container.d.ts +3 -1
  30. package/dist/script/ui/App/App.d.ts +2 -1
  31. package/dist/script/ui/App/AppHidden/AppHidden.container.d.ts +1 -2
  32. package/dist/script/ui/App/AppHidden/AppHidden.d.ts +1 -2
  33. package/dist/script/ui/App/initApp.d.ts +2 -1
  34. package/dist/script/ui/action/atoms.d.ts +1 -1
  35. package/dist/script/ui/action/index.d.ts +3 -3
  36. package/dist/script/ui/action/templates.d.ts +1 -1
  37. package/dist/script/ui/action/tools.d.ts +1 -1
  38. package/dist/script/ui/action/zoom.d.ts +4 -4
  39. package/dist/script/ui/component/actionmenu.d.ts +1 -1
  40. package/dist/script/ui/component/cliparea/cliparea.d.ts +2 -2
  41. package/dist/script/ui/component/cliparea/clipboardUtils.d.ts +7 -0
  42. package/dist/script/ui/component/form/Input/Input.d.ts +1 -1
  43. package/dist/script/ui/component/form/MeasureInput/measure-input.d.ts +1 -1
  44. package/dist/script/ui/component/form/Select/Select.d.ts +2 -2
  45. package/dist/script/ui/component/form/buttonlist.d.ts +1 -1
  46. package/dist/script/ui/component/form/colorPicker/ColorPicker.d.ts +1 -2
  47. package/dist/script/ui/component/form/combobox/combobox.d.ts +1 -1
  48. package/dist/script/ui/component/form/form/errorPopover.d.ts +1 -1
  49. package/dist/script/ui/component/form/form/form.d.ts +6 -6
  50. package/dist/script/ui/component/form/select-checkbox.d.ts +1 -1
  51. package/dist/script/ui/component/form/select-list.d.ts +1 -1
  52. package/dist/script/ui/component/form/systemfonts.d.ts +1 -1
  53. package/dist/script/ui/component/view/Atom/Atom.d.ts +1 -1
  54. package/dist/script/ui/component/view/Tabs/Tabs.d.ts +1 -1
  55. package/dist/script/ui/component/view/openbutton.d.ts +1 -1
  56. package/dist/script/ui/component/view/savebutton.d.ts +1 -1
  57. package/dist/script/ui/data/templates.d.ts +1 -1
  58. package/dist/script/ui/dialog/AbbreviationLookup/AbbreviationLookup.container.d.ts +1 -2
  59. package/dist/script/ui/dialog/AbbreviationLookup/AbbreviationLookup.d.ts +1 -2
  60. package/dist/script/ui/dialog/AbbreviationLookup/AbbreviationLookup.test.utils.d.ts +3 -4
  61. package/dist/script/ui/dialog/AbbreviationLookup/AbbreviationLookup.utils.d.ts +2 -3
  62. package/dist/script/ui/dialog/template/EmptySearchResult.d.ts +1 -2
  63. package/dist/script/ui/dialog/template/template-attach.d.ts +2 -2
  64. package/dist/script/ui/dialog/toolbox/SDataFieldset.d.ts +1 -1
  65. package/dist/script/ui/dialog/toolbox/SGroupFieldset.d.ts +1 -1
  66. package/dist/script/ui/dialog/toolbox/labeledit.d.ts +2 -2
  67. package/dist/script/ui/dialog/toolbox/rgroup/rgroup.d.ts +2 -2
  68. package/dist/script/ui/dialog/toolbox/sgroup.d.ts +2 -2
  69. package/dist/script/ui/state/editor/index.d.ts +1 -0
  70. package/dist/script/ui/state/functionalGroups/index.d.ts +7 -0
  71. package/dist/script/ui/state/hotkeys.d.ts +6 -3
  72. package/dist/script/ui/state/saltsAndSolvents/index.d.ts +7 -0
  73. package/dist/script/ui/state/shared.d.ts +9 -0
  74. package/dist/script/ui/views/components/Cursor.d.ts +1 -1
  75. package/dist/script/ui/views/components/Spinner/LoadingCircles.d.ts +1 -2
  76. package/dist/script/ui/views/components/StructEditor/StructEditor.d.ts +14 -2
  77. package/dist/script/ui/views/components/StructEditor/helpers.d.ts +2 -3
  78. package/dist/script/ui/views/components/index.d.ts +1 -1
  79. package/dist/script/ui/views/modal/Modal.d.ts +1 -2
  80. package/dist/script/ui/views/modal/components/Confirm/Confirm.d.ts +1 -2
  81. package/dist/script/ui/views/modal/components/ExtendedTable/ExtendedTable.d.ts +1 -1
  82. package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/BoxWithLines.d.ts +2 -3
  83. package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenGroup.d.ts +1 -2
  84. package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenSet.d.ts +1 -2
  85. package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenericGroups.d.ts +1 -2
  86. package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/components/ButtonGenSet/ButtonGenSet.d.ts +1 -2
  87. package/dist/script/ui/views/modal/components/InfoModal/InfoModal.d.ts +1 -2
  88. package/dist/script/ui/views/modal/components/PeriodTable/PeriodTable.d.ts +2 -2
  89. package/dist/script/ui/views/modal/components/PeriodTable/components/AtomInfo/AtomInfo.d.ts +1 -1
  90. package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/ElementsTable.d.ts +1 -1
  91. package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/Header.d.ts +1 -1
  92. package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/MainRow.d.ts +1 -1
  93. package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/OutinerRow.d.ts +1 -1
  94. package/dist/script/ui/views/modal/components/PeriodTable/components/TypeChoice/TypeChoice.d.ts +1 -1
  95. package/dist/script/ui/views/modal/components/Text/FontControl/FontControl.d.ts +1 -2
  96. package/dist/script/ui/views/modal/components/Text/SpecialSymbols/SpecialSymbolsButton.d.ts +1 -2
  97. package/dist/script/ui/views/modal/components/Text/SpecialSymbolsList/SpecialSymbolsList.d.ts +1 -2
  98. package/dist/script/ui/views/modal/components/Text/Text.d.ts +2 -3
  99. package/dist/script/ui/views/modal/components/Text/TextButton/TextButton.d.ts +1 -2
  100. package/dist/script/ui/views/modal/components/document/Open/components/AnalyzingFile.d.ts +1 -2
  101. package/dist/script/ui/views/modal/components/document/Open/components/DialogActionButton.d.ts +1 -2
  102. package/dist/script/ui/views/modal/components/document/Open/components/FileDrop.d.ts +1 -2
  103. package/dist/script/ui/views/modal/components/document/Open/components/TextEditor.d.ts +1 -2
  104. package/dist/script/ui/views/modal/components/document/Save/Save.d.ts +5 -5
  105. package/dist/script/ui/views/modal/components/meta/About/About.d.ts +1 -1
  106. package/dist/script/ui/views/modal/components/meta/Settings/Settings.d.ts +1 -2
  107. package/dist/script/ui/views/modal/components/process/Analyse/Analyse.d.ts +1 -1
  108. package/dist/script/ui/views/modal/components/process/Analyse/components/FormulaInput/FormulaInput.d.ts +1 -1
  109. package/dist/script/ui/views/modal/components/process/Analyse/components/FrozenInput/FrozenInput.d.ts +1 -1
  110. package/dist/script/ui/views/modal/components/process/Check/Check.d.ts +1 -1
  111. package/dist/script/ui/views/modal/components/process/Check/components/ErrorsCheck.d.ts +1 -1
  112. package/dist/script/ui/views/modal/components/process/Miew/Miew.d.ts +1 -2
  113. package/dist/script/ui/views/modal/components/process/Recognize/Recognize.d.ts +1 -1
  114. package/dist/script/ui/views/modal/components/toolbox/Atom/AtomElement/AtomElement.d.ts +1 -2
  115. package/dist/script/ui/views/modal/components/toolbox/Atom/ElementNumber/ElementNumber.d.ts +1 -2
  116. package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.container.d.ts +1 -2
  117. package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.d.ts +1 -2
  118. package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.container.d.ts +1 -2
  119. package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.d.ts +1 -2
  120. package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.container.d.ts +1 -2
  121. package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.d.ts +1 -2
  122. package/dist/script/ui/views/modal/components/toolbox/FG/RemoveFG.d.ts +1 -2
  123. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.container.d.ts +1 -2
  124. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.d.ts +1 -2
  125. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/IfThenSelect.d.ts +1 -2
  126. package/dist/script/ui/views/toolbars/ArrowScroll/ArrowScroll.d.ts +1 -2
  127. package/dist/script/ui/views/toolbars/BottomToolbar/BottomToolbar.d.ts +1 -2
  128. package/dist/script/ui/views/toolbars/BottomToolbar/TemplatesList/TemplatesList.d.ts +1 -2
  129. package/dist/script/ui/views/toolbars/LeftToolbar/Bond/Bond.d.ts +1 -2
  130. package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.container.d.ts +1 -2
  131. package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.d.ts +1 -2
  132. package/dist/script/ui/views/toolbars/LeftToolbar/RGroup/RGroup.d.ts +1 -2
  133. package/dist/script/ui/views/toolbars/LeftToolbar/Shape/Shape.d.ts +1 -2
  134. package/dist/script/ui/views/toolbars/RightToolbar/RightToolbar.d.ts +1 -2
  135. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ActionButton/ActionButton.d.ts +1 -2
  136. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarGroupItem.d.ts +1 -2
  137. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/ToolbarMultiToolItem.d.ts +1 -2
  138. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/DefaultMultiTool/DefaultMultiTool.d.ts +1 -2
  139. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/GroupedMultiTool/GroupedMultiTool.d.ts +1 -2
  140. package/dist/script/ui/views/toolbars/TopToolbar/ClipboardControls.d.ts +1 -2
  141. package/dist/script/ui/views/toolbars/TopToolbar/Divider.d.ts +2 -3
  142. package/dist/script/ui/views/toolbars/TopToolbar/ElementWithDropdown.d.ts +1 -1
  143. package/dist/script/ui/views/toolbars/TopToolbar/ExternalFuncControls.d.ts +1 -2
  144. package/dist/script/ui/views/toolbars/TopToolbar/FileControls.d.ts +1 -2
  145. package/dist/script/ui/views/toolbars/TopToolbar/SystemControls.d.ts +1 -2
  146. package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.container.d.ts +1 -2
  147. package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.d.ts +2 -1
  148. package/dist/script/ui/views/toolbars/TopToolbar/UndoRedo.d.ts +1 -2
  149. package/dist/script/ui/views/toolbars/TopToolbar/ZoomControls.d.ts +1 -2
  150. package/dist/script/ui/views/toolbars/TopToolbar/ZoomInput.d.ts +1 -1
  151. package/dist/script/ui/views/toolbars/TopToolbar/ZoomList.d.ts +1 -2
  152. package/dist/script/ui/views/toolbars/TopToolbar/ZoomSlider.d.ts +1 -2
  153. package/package.json +1 -1
  154. package/dist/script/ui/utils/optionsManager.d.ts +0 -10
  155. package/dist/script/ui/utils/settingsManager.d.ts +0 -25
@@ -13,6 +13,7 @@
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 { Ketcher, ServiceMode, StructServiceProvider } from 'ketcher-core';
17
18
  import { ButtonsConfig } from './ButtonsConfig';
18
19
  import { Root } from 'react-dom/client';
@@ -24,7 +25,7 @@ declare class KetcherBuilder {
24
25
  constructor();
25
26
  appendApiAsync(structServiceProvider: StructServiceProvider): Promise<void>;
26
27
  appendServiceMode(mode: ServiceMode): void;
27
- appendUiAsync(element: HTMLDivElement | null, appRoot: Root, staticResourcesUrl: string, errorHandler: (message: string) => void, buttons?: ButtonsConfig): Promise<void>;
28
+ appendUiAsync(element: HTMLDivElement | null, appRoot: Root, staticResourcesUrl: string, errorHandler: (message: string) => void, buttons?: ButtonsConfig, togglerComponent?: JSX.Element): Promise<void>;
28
29
  build(): Ketcher;
29
30
  }
30
31
  export { KetcherBuilder };
@@ -69,6 +69,7 @@ declare class Editor implements KetcherEditor {
69
69
  updateFloatingTools: Subscription<FloatingToolsParams>;
70
70
  };
71
71
  lastEvent: any;
72
+ macromoleculeConvertionError: string | null | undefined;
72
73
  constructor(clientArea: any, options: any);
73
74
  isDitrty(): boolean;
74
75
  setOrigin(): void;
@@ -79,14 +80,12 @@ declare class Editor implements KetcherEditor {
79
80
  structToAddFragment(value: Struct): Struct;
80
81
  setOptions(opts: string): false | import("ketcher-core/dist/application/render/render.types").RenderOptions;
81
82
  options(value?: any): import("ketcher-core/dist/application/render/render.types").RenderOptions;
82
- zoom(value?: any): number;
83
+ zoom(value?: any, event?: WheelEvent): number;
83
84
  centerStruct(): void;
84
85
  zoomAccordingContent(struct: Struct): void;
85
86
  selection(ci?: any): Selection | null;
86
87
  hover(ci: any, newTool?: any, event?: PointerEvent): void;
87
- update(action: Action | true, ignoreHistory?: boolean, options?: {
88
- resizeCanvas: boolean;
89
- }): void;
88
+ update(action: Action | true, ignoreHistory?: boolean): void;
90
89
  historySize(): {
91
90
  undo: any;
92
91
  redo: number;
@@ -106,6 +105,8 @@ declare class Editor implements KetcherEditor {
106
105
  explicitSelected(): any;
107
106
  structSelected(): Struct;
108
107
  alignDescriptors(): void;
108
+ setMacromoleculeConvertionError(errorMessage: string): void;
109
+ clearMacromoleculeConvertionError(): void;
109
110
  }
110
111
  export { Editor };
111
112
  export default Editor;
@@ -8,7 +8,7 @@ export declare class HoverIcon {
8
8
  /**
9
9
  Is required for the case, when mouse moved outside the canvas, then loading of structure
10
10
  happens and icon needs to be shown above loader.
11
- */
11
+ */
12
12
  shouldBeShownWhenMouseBack: boolean;
13
13
  editor: Editor;
14
14
  constructor(editor: Editor);
@@ -1,3 +1,3 @@
1
1
  import { Action } from 'ketcher-core';
2
2
  import Editor from '../../Editor';
3
- export declare function dropAndMerge(editor: Editor, mergeItems: any, action?: Action, resizeCanvas?: boolean): Action;
3
+ export declare function dropAndMerge(editor: Editor, mergeItems: any, action?: Action): Action;
@@ -34,7 +34,9 @@ declare class SelectTool implements Tool {
34
34
  private selectElementsOnCanvas;
35
35
  private isDraggingStructureOnSaltOrSolvent;
36
36
  private updateArrowResizingState;
37
- private moveCanvas;
37
+ private isCloseToEdgeOfCanvas;
38
+ private handleMoveCloseToEdgeOfCanvas;
39
+ private moveViewBox;
38
40
  }
39
41
  export declare function selMerge(selection: any, add: any, reversible: boolean): any;
40
42
  export declare function getSelectedAtoms(selection: any, molecule: any): Atom[];
@@ -1,4 +1,3 @@
1
- import { Editor, ReStruct, Vec2 } from 'ketcher-core';
1
+ import { ReStruct, Vec2 } from 'ketcher-core';
2
2
  export declare function getSelectionMap(structure: ReStruct): {};
3
3
  export declare function getStructCenter(ReStruct: any, selection?: any): Vec2;
4
- export declare function recoordinate(editor: Editor, rp?: Vec2): void;
@@ -13,6 +13,7 @@
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 { Root } from 'react-dom/client';
17
18
  import { ButtonsConfig } from './builders';
18
19
  import { StructServiceProvider } from 'ketcher-core';
@@ -23,7 +24,9 @@ interface Config {
23
24
  structServiceProvider: StructServiceProvider;
24
25
  buttons?: ButtonsConfig;
25
26
  errorHandler: (message: string) => void;
27
+ togglerComponent?: JSX.Element;
26
28
  }
27
- declare function buildKetcherAsync({ element, appRoot, staticResourcesUrl, structServiceProvider, buttons, errorHandler, }: Config): Promise<import("ketcher-core").Ketcher>;
29
+ declare function buildKetcherAsync({ element, appRoot, staticResourcesUrl, structServiceProvider, buttons, errorHandler, togglerComponent, }: Config): Promise<import("ketcher-core").Ketcher>;
28
30
  export type { Config, ButtonsConfig };
31
+ export * from './providers';
29
32
  export default buildKetcherAsync;
@@ -0,0 +1 @@
1
+ export * from './indigoProvider';
@@ -0,0 +1,5 @@
1
+ import { StructService } from 'ketcher-core';
2
+ export declare class IndigoProvider {
3
+ static getIndigo(): StructService;
4
+ static setIndigo(newIndigo: StructService): void;
5
+ }
@@ -15,6 +15,8 @@
15
15
  ***************************************************************************/
16
16
  /// <reference types="react" />
17
17
  import { AppCallProps } from './App';
18
- declare const AppContainer: import("react-redux").ConnectedComponent<(props: AppCallProps) => JSX.Element, import("react-redux").Omit<AppCallProps, "checkServer">>;
18
+ declare const AppContainer: import("react-redux").ConnectedComponent<(props: AppCallProps) => import("react/jsx-runtime").JSX.Element, import("react-redux").Omit<AppCallProps, "checkServer" | "togglerComponent"> & {
19
+ togglerComponent?: JSX.Element | undefined;
20
+ }>;
19
21
  export { AppContainer };
20
22
  export default AppContainer;
@@ -16,8 +16,9 @@
16
16
  /// <reference types="react" />
17
17
  interface AppCallProps {
18
18
  checkServer: () => void;
19
+ togglerComponent?: JSX.Element;
19
20
  }
20
21
  declare type Props = AppCallProps;
21
- declare const App: (props: Props) => JSX.Element;
22
+ declare const App: (props: Props) => import("react/jsx-runtime").JSX.Element;
22
23
  export type { AppCallProps };
23
24
  export { App };
@@ -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
- /// <reference types="react" />
17
16
  import { AppHiddenCallProps } from './AppHidden';
18
- declare const AppHiddenContainer: import("react-redux").ConnectedComponent<(props: AppHiddenCallProps) => JSX.Element, import("react-redux").Omit<AppHiddenCallProps, "onInitTmpls">>;
17
+ declare const AppHiddenContainer: import("react-redux").ConnectedComponent<(props: AppHiddenCallProps) => import("react/jsx-runtime").JSX.Element, import("react-redux").Omit<AppHiddenCallProps, "onInitTmpls">>;
19
18
  export { AppHiddenContainer };
@@ -13,11 +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" />
17
16
  interface AppHiddenCallProps {
18
17
  onInitTmpls: (cacheEl: any, url: any) => void;
19
18
  }
20
19
  declare type Props = AppHiddenCallProps;
21
- declare const AppHidden: (props: Props) => JSX.Element;
20
+ declare const AppHidden: (props: Props) => import("react/jsx-runtime").JSX.Element;
22
21
  export type { AppHiddenCallProps };
23
22
  export { AppHidden };
@@ -13,7 +13,8 @@
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 { StructService } from 'ketcher-core';
17
18
  import { Root } from 'react-dom/client';
18
- declare function initApp(element: HTMLDivElement | null, appRoot: Root, staticResourcesUrl: string, options: any, server: StructService, setEditor: (editor: any) => void): void;
19
+ declare function initApp(element: HTMLDivElement | null, appRoot: Root, staticResourcesUrl: string, options: any, server: StructService, setEditor: (editor: any) => void, togglerComponent?: JSX.Element): void;
19
20
  export { initApp };
@@ -36,5 +36,5 @@ export namespace atomCuts {
36
36
  const D: string;
37
37
  const B: string;
38
38
  }
39
- declare var _default: {};
39
+ declare const _default: {};
40
40
  export default _default;
@@ -40,21 +40,21 @@ declare const config: {
40
40
  zoom: {
41
41
  shortcut: string[];
42
42
  selected: (editor: any) => any;
43
- action: (editor: any) => any;
43
+ action: (editor: any) => void;
44
44
  hidden: (options: any) => boolean;
45
45
  };
46
46
  'zoom-out': {
47
47
  shortcut: string[];
48
48
  title: string;
49
49
  disabled: (editor: any) => boolean;
50
- action: (editor: any) => void;
50
+ action: (event: any) => (editor: any) => void;
51
51
  hidden: (options: any) => boolean;
52
52
  };
53
53
  'zoom-in': {
54
54
  shortcut: string[];
55
55
  title: string;
56
56
  disabled: (editor: any) => boolean;
57
- action: (editor: any) => void;
57
+ action: (event: any) => (editor: any) => void;
58
58
  hidden: (options: any) => boolean;
59
59
  };
60
60
  'zoom-list': {
@@ -1,4 +1,4 @@
1
- declare var _default: {
1
+ declare const _default: {
2
2
  'template-lib': {
3
3
  shortcut: string;
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- declare var _default: {
1
+ declare const _default: {
2
2
  hand: {
3
3
  title: string;
4
4
  shortcut: string;
@@ -1,23 +1,23 @@
1
1
  export const zoomList: number[];
2
- declare var _default: {
2
+ declare const _default: {
3
3
  zoom: {
4
4
  shortcut: string[];
5
5
  selected: (editor: any) => any;
6
- action: (editor: any) => any;
6
+ action: (editor: any) => void;
7
7
  hidden: (options: any) => boolean;
8
8
  };
9
9
  'zoom-out': {
10
10
  shortcut: string[];
11
11
  title: string;
12
12
  disabled: (editor: any) => boolean;
13
- action: (editor: any) => void;
13
+ action: (event: any) => (editor: any) => void;
14
14
  hidden: (options: any) => boolean;
15
15
  };
16
16
  'zoom-in': {
17
17
  shortcut: string[];
18
18
  title: string;
19
19
  disabled: (editor: any) => boolean;
20
- action: (editor: any) => void;
20
+ action: (event: any) => (editor: any) => void;
21
21
  hidden: (options: any) => boolean;
22
22
  };
23
23
  'zoom-list': {
@@ -6,4 +6,4 @@ declare function ActionMenu({ name, menu, className, role, ...props }: {
6
6
  menu: any;
7
7
  className: any;
8
8
  role: any;
9
- }): JSX.Element;
9
+ }): import("react/jsx-runtime").JSX.Element;
@@ -11,12 +11,12 @@ declare class ClipArea extends Component<any, any, any> {
11
11
  mouseup: (event: any) => void;
12
12
  mousedown: (event: any) => void;
13
13
  copy: (event: any) => void;
14
- cut: (event: any) => void;
14
+ cut: (event: any) => Promise<void>;
15
15
  paste: (event: any) => void;
16
16
  keydown: (event: any) => Promise<void>;
17
17
  } | undefined;
18
18
  shouldComponentUpdate(): boolean;
19
19
  componentWillUnmount(): void;
20
- render(): JSX.Element;
20
+ render(): import("react/jsx-runtime").JSX.Element;
21
21
  }
22
22
  import { Component } from "react";
@@ -0,0 +1,7 @@
1
+ /**
2
+ *
3
+ * Legacy browser API doesn't support async operations, so it is not possible
4
+ * to call indigo, when copy/cut/paste
5
+ */
6
+ export function isClipboardAPIAvailable(): boolean;
7
+ export function notifyCopyCut(): void;
@@ -35,7 +35,7 @@ export declare function GenericInput({ schema, value, onChange, innerRef, type,
35
35
  innerRef: any;
36
36
  type?: string | undefined;
37
37
  isFocused?: boolean | undefined;
38
- }): JSX.Element;
38
+ }): import("react/jsx-runtime").JSX.Element;
39
39
  export declare namespace GenericInput {
40
40
  var val: (ev: any, schema: any) => any;
41
41
  }
@@ -6,4 +6,4 @@ declare function MeasureInput({ schema, value, onChange, name, className, ...res
6
6
  onChange: any;
7
7
  name: any;
8
8
  className: any;
9
- }): JSX.Element;
9
+ }): import("react/jsx-runtime").JSX.Element;
@@ -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
- /// <reference types="react" />
17
16
  export interface Option {
18
17
  value: string;
19
18
  label: string;
@@ -27,6 +26,7 @@ interface Props {
27
26
  disabled?: boolean;
28
27
  formName?: string;
29
28
  name?: string;
29
+ 'data-testid'?: string;
30
30
  }
31
- declare const Select: ({ className, value, onChange, multiple, disabled, options, formName, name, }: Props) => JSX.Element;
31
+ declare const Select: ({ className, value, onChange, multiple, disabled, options, formName, name, "data-testid": testId, }: Props) => import("react/jsx-runtime").JSX.Element;
32
32
  export default Select;
@@ -6,4 +6,4 @@ declare function ButtonList({ value, onChange, schema, disabledIds, multiple, cl
6
6
  disabledIds: any;
7
7
  multiple: any;
8
8
  classes: any;
9
- }): JSX.Element;
9
+ }): import("react/jsx-runtime").JSX.Element;
@@ -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
- /// <reference types="react" />
17
16
  interface ColorPickerProps {
18
17
  value: string;
19
18
  name: string;
@@ -24,5 +23,5 @@ interface ColorPickerCallProps {
24
23
  onChange: (value: string) => void;
25
24
  }
26
25
  declare type Props = ColorPickerProps & ColorPickerCallProps;
27
- declare const ColorPicker: (props: Props) => JSX.Element;
26
+ declare const ColorPicker: (props: Props) => import("react/jsx-runtime").JSX.Element;
28
27
  export default ColorPicker;
@@ -7,6 +7,6 @@ declare class ComboBox extends Component<any, any, any> {
7
7
  click(): void;
8
8
  blur(): void;
9
9
  updateInput(event: any): void;
10
- render(): JSX.Element;
10
+ render(): import("react/jsx-runtime").JSX.Element;
11
11
  }
12
12
  import { Component } from "react";
@@ -2,4 +2,4 @@ export function ErrorPopover({ error, anchorEl, handleClose }: {
2
2
  error: any;
3
3
  anchorEl: any;
4
4
  handleClose: any;
5
- }): JSX.Element;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- declare var _default: import("react-redux").ConnectedComponent<typeof Form, import("react-redux").Omit<any, "onUpdate">>;
1
+ declare const _default: import("react-redux").ConnectedComponent<typeof Form, import("react-redux").Omit<any, "onUpdate">>;
2
2
  export default _default;
3
3
  declare class Form extends Component<any, any, any> {
4
4
  constructor(props: any);
@@ -18,10 +18,10 @@ declare class Form extends Component<any, any, any> {
18
18
  value: any;
19
19
  onChange: (val: any) => void;
20
20
  };
21
- render(): JSX.Element;
21
+ render(): import("react/jsx-runtime").JSX.Element;
22
22
  }
23
- export function Field(props: any): JSX.Element;
24
- export function CustomQueryField(props: any): JSX.Element;
25
- export function FieldWithModal(props: any): JSX.Element;
26
- export function SelectOneOf(props: any): JSX.Element;
23
+ export function Field(props: any): import("react/jsx-runtime").JSX.Element;
24
+ export function CustomQueryField(props: any): import("react/jsx-runtime").JSX.Element;
25
+ export function FieldWithModal(props: any): import("react/jsx-runtime").JSX.Element;
26
+ export function SelectOneOf(props: any): import("react/jsx-runtime").JSX.Element;
27
27
  import { Component } from "react";
@@ -2,4 +2,4 @@ export default SelectCheckbox;
2
2
  declare function SelectCheckbox({ schema, ...props }: {
3
3
  [x: string]: any;
4
4
  schema: any;
5
- }): JSX.Element;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -23,4 +23,4 @@ declare function SelectList({ schema, value, onSelect, splitIndexes, selected, c
23
23
  selected: any;
24
24
  component: any;
25
25
  classes: any;
26
- }): JSX.Element;
26
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  export default SystemFonts;
2
- declare function SystemFonts(props: any): JSX.Element;
2
+ declare function SystemFonts(props: any): import("react/jsx-runtime").JSX.Element;
@@ -4,4 +4,4 @@ declare function Atom({ el, shortcut, selected, ...props }: {
4
4
  el: any;
5
5
  shortcut: any;
6
6
  selected: any;
7
- }): JSX.Element;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -4,6 +4,6 @@ declare class Tabs extends Component<any, any, any> {
4
4
  state: {};
5
5
  changeTab(ev: any, index: any): void;
6
6
  componentDidUpdate(prevProps: any): void;
7
- render(): JSX.Element;
7
+ render(): import("react/jsx-runtime").JSX.Element;
8
8
  }
9
9
  import { Component } from "react";
@@ -3,7 +3,7 @@ declare class OpenButton extends Component<any, any, any> {
3
3
  constructor(props: any);
4
4
  state: {};
5
5
  open(ev: any): void;
6
- render(): JSX.Element;
6
+ render(): import("react/jsx-runtime").JSX.Element;
7
7
  btn: HTMLInputElement | null | undefined;
8
8
  }
9
9
  import { Component } from "react";
@@ -30,5 +30,5 @@ declare type Props = {
30
30
  disabled?: boolean;
31
31
  };
32
32
  declare type SaveButtonProps = PropsWithChildren<Props>;
33
- declare const SaveButton: (props: SaveButtonProps) => JSX.Element;
33
+ declare const SaveButton: (props: SaveButtonProps) => import("react/jsx-runtime").JSX.Element;
34
34
  export { SaveButton };
@@ -1,2 +1,2 @@
1
- declare var _default: import("ketcher-core").Struct[];
1
+ declare const _default: import("ketcher-core").Struct[];
2
2
  export default _default;
@@ -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
- /// <reference types="react" />
17
- export declare const AbbreviationLookupContainer: () => JSX.Element | null;
16
+ export declare const AbbreviationLookupContainer: () => import("react/jsx-runtime").JSX.Element | null;
@@ -13,10 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
- /// <reference types="react" />
17
16
  import { AbbreviationOption } from './AbbreviationLookup.types';
18
17
  interface Props {
19
18
  options: AbbreviationOption[];
20
19
  }
21
- export declare const AbbreviationLookup: ({ options }: Props) => JSX.Element;
20
+ export declare const AbbreviationLookup: ({ options }: Props) => import("react/jsx-runtime").JSX.Element;
22
21
  export {};
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { AbbreviationGenericOption, AbbreviationOption, AbbreviationType } from './AbbreviationLookup.types';
3
- export declare const createGenericOption: (name: string, abbreviation?: string | undefined, type?: AbbreviationType) => AbbreviationGenericOption;
4
- export declare const createOption: (name: string, abbreviation?: string | undefined, type?: AbbreviationType) => AbbreviationOption;
2
+ export declare const createGenericOption: (name: string, abbreviation?: string, type?: AbbreviationType) => AbbreviationGenericOption;
3
+ export declare const createOption: (name: string, abbreviation?: string, type?: AbbreviationType) => AbbreviationOption;
5
4
  export declare const CLIP_AREA_TEST_ID = "cliparea";
6
5
  export declare const KetcherWrapper: ({ children }: {
7
6
  children: any;
8
- }) => JSX.Element;
7
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -13,11 +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" />
17
16
  import { AbbreviationGenericOption, AbbreviationOption } from './AbbreviationLookup.types';
18
17
  import { FilterOptionsState } from '@mui/material';
19
- export declare const getStringsSimilarity: (loweredText?: string | undefined, loweredSubString?: string | undefined) => number;
20
- export declare const highlightOptionLabel: (option: AbbreviationGenericOption, initialLoweredValue: string) => string | JSX.Element;
18
+ export declare const getStringsSimilarity: (loweredText?: string, loweredSubString?: string) => number;
19
+ export declare const highlightOptionLabel: (option: AbbreviationGenericOption, initialLoweredValue: string) => string | import("react/jsx-runtime").JSX.Element;
21
20
  export declare const getOptionLabel: (option: AbbreviationGenericOption) => string;
22
21
  export declare const getSimilarity: (option: AbbreviationGenericOption, loweredLookupValue: string) => number;
23
22
  export declare const filterOptions: (options: AbbreviationOption[], state: FilterOptionsState<AbbreviationOption>) => AbbreviationOption[];
@@ -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
- /// <reference types="react" />
17
16
  declare const EmptySearchResult: ({ textInfo }: {
18
17
  textInfo: any;
19
- }) => JSX.Element;
18
+ }) => import("react/jsx-runtime").JSX.Element;
20
19
  export default EmptySearchResult;
@@ -1,4 +1,4 @@
1
- declare var _default: import("react-redux").ConnectedComponent<typeof Attach, import("react-redux").Omit<import("react").ClassAttributes<Attach> & {
1
+ declare const _default: import("react-redux").ConnectedComponent<typeof Attach, import("react-redux").Omit<import("react").ClassAttributes<Attach> & {
2
2
  [x: string]: any;
3
3
  onInit: any;
4
4
  }, string | number>>;
@@ -28,6 +28,6 @@ declare class Attach extends Component<any, any, any> {
28
28
  };
29
29
  } | null;
30
30
  checkIsValidName(name: any): boolean;
31
- render(): JSX.Element;
31
+ render(): import("react/jsx-runtime").JSX.Element;
32
32
  }
33
33
  import { Component } from "react";
@@ -1,4 +1,4 @@
1
1
  export default SDataFieldset;
2
2
  declare function SDataFieldset({ formState }: {
3
3
  formState: any;
4
- }): JSX.Element;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  export default SGroupFieldset;
2
2
  declare function SGroupFieldset({ formState }: {
3
3
  formState: any;
4
- }): JSX.Element;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
- declare var _default: import("react-redux").ConnectedComponent<typeof LabelEdit, import("react-redux").Omit<any, "formState" | "dispatch">>;
1
+ declare const _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;
3
+ declare function LabelEdit(props: any): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- declare var _default: import("react-redux").ConnectedComponent<typeof RGroup, import("react-redux").Omit<{
1
+ declare const _default: import("react-redux").ConnectedComponent<typeof RGroup, import("react-redux").Omit<{
2
2
  [x: string]: any;
3
3
  disabledIds: any;
4
4
  values: any;
@@ -12,4 +12,4 @@ declare function RGroup({ disabledIds, values, formState, type, ...props }: {
12
12
  values: any;
13
13
  formState: any;
14
14
  type: any;
15
- }): JSX.Element;
15
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- declare var _default: import("react-redux").ConnectedComponent<typeof Sgroup, import("react-redux").Omit<{
1
+ declare const _default: import("react-redux").ConnectedComponent<typeof Sgroup, import("react-redux").Omit<{
2
2
  [x: string]: any;
3
3
  formState: any;
4
4
  }, "formState" | "dispatch">>;
@@ -6,4 +6,4 @@ export default _default;
6
6
  declare function Sgroup({ formState, ...props }: {
7
7
  [x: string]: any;
8
8
  formState: any;
9
- }): JSX.Element;
9
+ }): import("react/jsx-runtime").JSX.Element;
@@ -24,4 +24,5 @@ export default function initEditor(dispatch: any, getState: any): {
24
24
  onUpdateFloatingTools: (...args: any[]) => void;
25
25
  onZoomIn: import("lodash").DebouncedFunc<() => any>;
26
26
  onZoomOut: import("lodash").DebouncedFunc<() => any>;
27
+ onShowMacromoleculesErrorMessage: (payload: any) => any;
27
28
  };
@@ -14,12 +14,19 @@
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
16
  import { AnyAction } from 'redux';
17
+ import { SdfItem } from 'ketcher-core';
17
18
  interface FGState {
18
19
  lib: [];
19
20
  functionalGroupInfo: any;
20
21
  mode: string;
21
22
  }
22
23
  declare const functionalGroupsReducer: (state: FGState | undefined, { type, payload }: AnyAction) => any;
24
+ export declare const initFGroups: (lib: SdfItem[]) => {
25
+ type: string;
26
+ payload: {
27
+ lib: SdfItem[];
28
+ };
29
+ };
23
30
  export declare const highlightFG: (...args: any[]) => void;
24
31
  export declare function initFGTemplates(): (dispatch: any) => Promise<void>;
25
32
  export default functionalGroupsReducer;
@@ -17,7 +17,10 @@ export declare function initKeydownListener(element: any): (dispatch: any, getSt
17
17
  export declare function initClipboard(dispatch: any): {
18
18
  formats: any[];
19
19
  focused(): boolean;
20
- onCut(): {} | null;
21
- onCopy(): {} | null;
22
- onPaste(data: any, isSmarts: boolean): void;
20
+ onLegacyCut(): {} | null;
21
+ onCut(): Promise<{} | null | undefined>;
22
+ onLegacyCopy(): {} | null;
23
+ onCopy(): Promise<{} | null | undefined>;
24
+ onPaste(data: any, isSmarts: boolean): Promise<void | undefined>;
25
+ onLegacyPaste(data: any, isSmarts: boolean): void;
23
26
  };