ketcher-react 3.8.0-rc.4 → 3.10.0-build.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 (69) hide show
  1. package/dist/Editor.d.ts +2 -0
  2. package/dist/cjs/Editor.d.ts +2 -0
  3. package/dist/cjs/components/Icon/utils/iconNameToIcon.d.ts +1 -0
  4. package/dist/cjs/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +9 -6
  5. package/dist/cjs/components/ToggleButtonGroup/ToggleButtonGroup.test.d.ts +1 -1
  6. package/dist/cjs/hooks/index.d.ts +1 -1
  7. package/dist/cjs/hooks/useRequestAnimationFrame.d.ts +16 -0
  8. package/dist/cjs/index.css +1 -1
  9. package/dist/cjs/index.css.map +1 -1
  10. package/dist/cjs/index.js +1982 -1108
  11. package/dist/cjs/index.js.map +1 -1
  12. package/dist/cjs/{index.modern-7604afae.js → index.modern-d2a5c11b.js} +202 -123
  13. package/dist/cjs/index.modern-d2a5c11b.js.map +1 -0
  14. package/dist/cjs/script/editor/Editor.d.ts +14 -4
  15. package/dist/cjs/script/editor/utils/customOnChangeHandler.d.ts +20 -0
  16. package/dist/cjs/script/ui/action/highlightColors/HighlightColors.d.ts +1 -0
  17. package/dist/cjs/script/ui/action/server.d.ts +7 -7
  18. package/dist/cjs/script/ui/action/tools.d.ts +37 -2
  19. package/dist/cjs/script/ui/dialog/template/TemplateDialog.d.ts +2 -0
  20. package/dist/cjs/script/ui/views/components/AttachmentPointEditPopup/AttachmentPointEditPopup.d.ts +5 -3
  21. package/dist/cjs/script/ui/views/components/ContextMenu/contextMenu.types.d.ts +10 -4
  22. package/dist/cjs/script/ui/views/components/ContextMenu/hooks/useCreateMonomer.d.ts +2 -0
  23. package/dist/{script/ui/views/components/ContextMenu/hooks/useMakeLeavingGroupAtomMenuItem.d.ts → cjs/script/ui/views/components/ContextMenu/hooks/useMakeAttachmentPointMenuItems.d.ts} +3 -2
  24. package/dist/cjs/script/ui/views/components/ContextMenu/menuItems/AttachmentPointLabelMenuItems.d.ts +3 -0
  25. package/dist/cjs/script/ui/views/components/MonomerCreationWizard/MonomerCreationWizard.types.d.ts +1 -1
  26. package/dist/cjs/script/ui/views/components/MonomerCreationWizard/components/AttachmentPoint/AttachmentPoint.d.ts +6 -3
  27. package/dist/cjs/script/ui/views/components/MonomerCreationWizard/components/AttachmentPointControls/AttachmentPointControls.d.ts +13 -0
  28. package/dist/cjs/script/ui/views/components/MonomerCreationWizard/hooks/useAttachmentPointSelectsData.d.ts +10 -0
  29. package/dist/cjs/script/ui/views/modal/components/PeriodTable/components/TypeChoice/TypeChoice.d.ts +2 -1
  30. package/dist/cjs/script/ui/views/modal/components/toolbox/Atom/Atom.container.d.ts +1 -0
  31. package/dist/cjs/script/ui/views/modal/components/toolbox/Atom/Atom.d.ts +1 -0
  32. package/dist/cjs/script/ui/views/modal/components/toolbox/Bond/Bond.container.d.ts +3 -1
  33. package/dist/cjs/script/ui/views/modal/components/toolbox/Bond/Bond.d.ts +3 -1
  34. package/dist/cjs/script/ui/views/toolbars/ArrowScroll/ArrowScroll.d.ts +2 -2
  35. package/dist/components/Icon/utils/iconNameToIcon.d.ts +1 -0
  36. package/dist/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +9 -6
  37. package/dist/components/ToggleButtonGroup/ToggleButtonGroup.test.d.ts +1 -1
  38. package/dist/hooks/index.d.ts +1 -1
  39. package/dist/hooks/useRequestAnimationFrame.d.ts +16 -0
  40. package/dist/index.css +1 -1
  41. package/dist/index.css.map +1 -1
  42. package/dist/index.js +1985 -1111
  43. package/dist/index.js.map +1 -1
  44. package/dist/{index.modern-eb9aa0eb.js → index.modern-7f9a0943.js} +203 -124
  45. package/dist/index.modern-7f9a0943.js.map +1 -0
  46. package/dist/script/editor/Editor.d.ts +14 -4
  47. package/dist/script/editor/utils/customOnChangeHandler.d.ts +20 -0
  48. package/dist/script/ui/action/highlightColors/HighlightColors.d.ts +1 -0
  49. package/dist/script/ui/action/server.d.ts +7 -7
  50. package/dist/script/ui/action/tools.d.ts +37 -2
  51. package/dist/script/ui/dialog/template/TemplateDialog.d.ts +2 -0
  52. package/dist/script/ui/views/components/AttachmentPointEditPopup/AttachmentPointEditPopup.d.ts +5 -3
  53. package/dist/script/ui/views/components/ContextMenu/contextMenu.types.d.ts +10 -4
  54. package/dist/script/ui/views/components/ContextMenu/hooks/useCreateMonomer.d.ts +2 -0
  55. package/dist/{cjs/script/ui/views/components/ContextMenu/hooks/useMakeLeavingGroupAtomMenuItem.d.ts → script/ui/views/components/ContextMenu/hooks/useMakeAttachmentPointMenuItems.d.ts} +3 -2
  56. package/dist/script/ui/views/components/ContextMenu/menuItems/AttachmentPointLabelMenuItems.d.ts +3 -0
  57. package/dist/script/ui/views/components/MonomerCreationWizard/MonomerCreationWizard.types.d.ts +1 -1
  58. package/dist/script/ui/views/components/MonomerCreationWizard/components/AttachmentPoint/AttachmentPoint.d.ts +6 -3
  59. package/dist/script/ui/views/components/MonomerCreationWizard/components/AttachmentPointControls/AttachmentPointControls.d.ts +13 -0
  60. package/dist/script/ui/views/components/MonomerCreationWizard/hooks/useAttachmentPointSelectsData.d.ts +10 -0
  61. package/dist/script/ui/views/modal/components/PeriodTable/components/TypeChoice/TypeChoice.d.ts +2 -1
  62. package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.container.d.ts +1 -0
  63. package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.d.ts +1 -0
  64. package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.container.d.ts +3 -1
  65. package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.d.ts +3 -1
  66. package/dist/script/ui/views/toolbars/ArrowScroll/ArrowScroll.d.ts +2 -2
  67. package/package.json +1 -1
  68. package/dist/cjs/index.modern-7604afae.js.map +0 -1
  69. package/dist/index.modern-eb9aa0eb.js.map +0 -1
package/dist/Editor.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import { EditorProps } from './MicromoleculesEditor';
2
2
  declare type Props = Omit<EditorProps, 'ketcherId'> & {
3
3
  disableMacromoleculesEditor?: boolean;
4
+ monomersLibraryUpdate?: string | JSON;
5
+ monomersLibraryReplace?: string | JSON;
4
6
  };
5
7
  export declare const Editor: (props: Props) => import("react/jsx-runtime").JSX.Element;
6
8
  export {};
@@ -1,6 +1,8 @@
1
1
  import { EditorProps } from './MicromoleculesEditor';
2
2
  declare type Props = Omit<EditorProps, 'ketcherId'> & {
3
3
  disableMacromoleculesEditor?: boolean;
4
+ monomersLibraryUpdate?: string | JSON;
5
+ monomersLibraryReplace?: string | JSON;
4
6
  };
5
7
  export declare const Editor: (props: Props) => import("react/jsx-runtime").JSX.Element;
6
8
  export {};
@@ -250,4 +250,5 @@ export declare const iconNameToIcon: {
250
250
  readonly checkFilled: ReactComponent;
251
251
  readonly warningFilled: ReactComponent;
252
252
  readonly leavingGroup: ReactComponent;
253
+ readonly connectionPoint: ReactComponent;
253
254
  };
@@ -1,9 +1,12 @@
1
- export default function ButtonGroup<T>({ buttons, onClick, defaultValue, title, }: {
2
- buttons: {
3
- label: string;
4
- value: T;
5
- }[];
1
+ interface ButtonItem<T> {
2
+ label: string;
3
+ value: T;
4
+ }
5
+ interface ToggleButtonGroupProps<T> {
6
+ buttons: ButtonItem<T>[];
6
7
  onClick: (value: T) => void;
7
8
  defaultValue: T;
8
9
  title?: string;
9
- }): import("react/jsx-runtime").JSX.Element;
10
+ }
11
+ export default function ButtonGroup<T>({ buttons, onClick, defaultValue, title, }: ToggleButtonGroupProps<T>): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -13,4 +13,4 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
- export {};
16
+ import '@testing-library/jest-dom';
@@ -17,5 +17,5 @@ export * from './useSettingsContext';
17
17
  export * from './useResizeObserver';
18
18
  export * from './useFormContext';
19
19
  export * from './useAppContext';
20
- export * from './useInterval';
20
+ export * from './useRequestAnimationFrame';
21
21
  export * from './useSubscribtionOnEvents';
@@ -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 useRequestAnimationFrame: (active: boolean, onFrame: (deltaTimeInMilliseconds: number) => void) => void;