ketcher-react 2.25.0 → 2.26.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/components/Buttons/IconButton/IconButton.d.ts +1 -2
  2. package/dist/components/Buttons/IconButton/IconButtonBase.d.ts +17 -0
  3. package/dist/components/Buttons/IconButton/IconButtonCustomIcon.d.ts +17 -0
  4. package/dist/components/Buttons/IconButton/index.d.ts +1 -0
  5. package/dist/components/Buttons/IconButton/styles.d.ts +4 -0
  6. package/dist/components/Buttons/IconButton/types.d.ts +11 -3
  7. package/dist/components/Icon/utils/iconNameToIcon.d.ts +7 -1
  8. package/dist/components/MonomerPreview/AmbiguousMonomerPreview/AmbiguousMonomerPreview.d.ts +2 -4
  9. package/dist/constants.d.ts +20 -0
  10. package/dist/index.css +1 -1
  11. package/dist/index.css.map +1 -1
  12. package/dist/index.js +2047 -1399
  13. package/dist/index.js.map +1 -1
  14. package/dist/index.modern.js +2046 -1400
  15. package/dist/index.modern.js.map +1 -1
  16. package/dist/script/builders/ketcher/CustomButtons.d.ts +5 -0
  17. package/dist/script/builders/ketcher/KetcherBuilder.d.ts +2 -1
  18. package/dist/script/editor/Editor.d.ts +4 -1
  19. package/dist/script/editor/tool/helper/dropAndMerge.d.ts +1 -1
  20. package/dist/script/editor/tool/select/index.d.ts +7 -0
  21. package/dist/script/editor/tool/{select.d.ts → select/select.d.ts} +7 -12
  22. package/dist/script/editor/tool/select/select.helpers.d.ts +17 -0
  23. package/dist/script/editor/tool/select/select.types.d.ts +1 -0
  24. package/dist/script/editor/tool/select/selectViewOnly.d.ts +14 -0
  25. package/dist/script/index.d.ts +3 -1
  26. package/dist/script/ui/action/action.types.d.ts +5 -4
  27. package/dist/script/ui/action/createCopyOfSelected.d.ts +14 -0
  28. package/dist/script/ui/action/fullscreen.d.ts +1 -0
  29. package/dist/script/ui/action/help.d.ts +1 -0
  30. package/dist/script/ui/action/highlightColors/HighlightColors.d.ts +6 -0
  31. package/dist/script/ui/action/highlightColors/style.d.ts +25 -0
  32. package/dist/script/ui/action/index.d.ts +19 -705
  33. package/dist/script/ui/action/server.d.ts +3 -0
  34. package/dist/script/ui/action/tools.d.ts +3 -0
  35. package/dist/script/ui/action/zoom.d.ts +4 -0
  36. package/dist/script/ui/component/view/savebutton.d.ts +2 -3
  37. package/dist/script/ui/state/options/index.d.ts +38 -2
  38. package/dist/script/ui/views/components/ContextMenu/contextMenu.types.d.ts +7 -2
  39. package/dist/script/ui/views/components/ContextMenu/hooks/useChangeBondDirection.d.ts +3 -0
  40. package/dist/script/ui/views/components/ContextMenu/hooks/useMonomerExpansionHandlers.d.ts +4 -0
  41. package/dist/script/ui/views/components/ContextMenu/menuItems/MacromoleculeMenuItems.d.ts +3 -0
  42. package/dist/script/ui/views/modal/components/meta/Settings/Settings.d.ts +1 -0
  43. package/dist/script/ui/views/modal/components/meta/Settings/fieldGroups.d.ts +1 -1
  44. package/dist/script/ui/views/toolbars/BottomToolbar/TemplatesList/TemplatesList.d.ts +2 -1
  45. package/dist/script/ui/views/toolbars/RightToolbar/AtomsList/AtomsList.d.ts +2 -1
  46. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarGroupItem.d.ts +2 -4
  47. package/dist/script/ui/views/toolbars/TopToolbar/CustomButtons.d.ts +8 -0
  48. package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.container.d.ts +1 -1
  49. package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.d.ts +3 -1
  50. package/dist/script/ui/views/toolbars/TopToolbar/TopToolbarIconButton.d.ts +3 -0
  51. package/package.json +1 -1
@@ -14,5 +14,4 @@
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
16
  import { IIconButtonProps } from './types';
17
- export declare const IconButton: ({ onClick, iconName, shortcut, title, className, isActive, isHidden, disabled, testId, }: IIconButtonProps) => import("react/jsx-runtime").JSX.Element | null;
18
- export default IconButton;
17
+ export declare const IconButton: ({ iconName, ...props }: IIconButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -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
+ import { IIconButtonBaseProps } from './types';
17
+ export declare const IconButtonBase: ({ onClick, shortcut, title, className, isActive, isHidden, disabled, testId, children, }: IIconButtonBaseProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -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
+ import { IIconButtonCustomIconProps } from './types';
17
+ export declare const IconButtonCustomIcon: ({ link, ...props }: IIconButtonCustomIconProps) => import("react/jsx-runtime").JSX.Element;
@@ -14,3 +14,4 @@
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
16
  export { IconButton } from './IconButton';
17
+ export { IconButtonCustomIcon } from './IconButtonCustomIcon';
@@ -22,3 +22,7 @@ export declare const StyledButton: import("@emotion/styled").StyledComponent<{
22
22
  export declare const StyledIcon: import("@emotion/styled").StyledComponent<import("../../Icon/types").IIconProps & {
23
23
  theme?: import("@emotion/react").Theme | undefined;
24
24
  }, {}, {}>;
25
+ export declare const StyledCustomIcon: import("@emotion/styled").StyledComponent<{
26
+ theme?: import("@emotion/react").Theme | undefined;
27
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
28
+ }, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
@@ -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 { IconName } from '../../Icon/types';
18
- export interface IIconButtonProps {
19
- iconName: IconName;
17
+ import { ReactNode } from 'react';
18
+ export interface IIconButtonBaseProps {
20
19
  onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
21
20
  title?: string;
22
21
  className?: string;
@@ -25,8 +24,17 @@ export interface IIconButtonProps {
25
24
  isActive?: boolean;
26
25
  shortcut?: string;
27
26
  testId?: string;
27
+ children: ReactNode;
28
+ }
29
+ declare type IIconButtonBasePropsWithoutChildren = Omit<IIconButtonBaseProps, 'children'>;
30
+ export interface IIconButtonProps extends IIconButtonBasePropsWithoutChildren {
31
+ iconName: IconName;
32
+ }
33
+ export interface IIconButtonCustomIconProps extends IIconButtonBasePropsWithoutChildren {
34
+ link: string;
28
35
  }
29
36
  export interface IStyledButtonProps {
30
37
  isActive: boolean;
31
38
  testId?: string;
32
39
  }
40
+ export {};
@@ -66,6 +66,7 @@ export declare const iconNameToIcon: {
66
66
  readonly 'any-atom': ReactComponent;
67
67
  readonly arom: ReactComponent;
68
68
  readonly 'arrow-upward': ReactComponent;
69
+ readonly bonds: ReactComponent;
69
70
  readonly 'bond-any': ReactComponent;
70
71
  readonly 'bond-aromatic': ReactComponent;
71
72
  readonly 'bond-crossed': ReactComponent;
@@ -121,6 +122,7 @@ export declare const iconNameToIcon: {
121
122
  readonly open: ReactComponent;
122
123
  readonly paste: ReactComponent;
123
124
  readonly 'period-table': ReactComponent;
125
+ readonly arrows: ReactComponent;
124
126
  readonly 'reaction-arrow-elliptical-arc-arrow-filled-bow': ReactComponent;
125
127
  readonly 'reaction-arrow-elliptical-arc-arrow-filled-triangle': ReactComponent;
126
128
  readonly 'reaction-arrow-elliptical-arc-arrow-open-angle': ReactComponent;
@@ -141,11 +143,13 @@ export declare const iconNameToIcon: {
141
143
  readonly 'reaction-arrow-unbalanced-equilibrium-filled-half-triangle': ReactComponent;
142
144
  readonly "reaction-arrow-multitail": ReactComponent;
143
145
  readonly 'reaction-automap': ReactComponent;
146
+ readonly 'reaction-mapping-tools': ReactComponent;
144
147
  readonly 'reaction-map': ReactComponent;
145
148
  readonly 'reaction-plus': ReactComponent;
146
149
  readonly 'reaction-unmap': ReactComponent;
147
150
  readonly recognize: ReactComponent;
148
151
  readonly redo: ReactComponent;
152
+ readonly rgroup: ReactComponent;
149
153
  readonly 'rgroup-attpoints': ReactComponent;
150
154
  readonly 'rgroup-fragment': ReactComponent;
151
155
  readonly 'rgroup-label': ReactComponent;
@@ -179,6 +183,7 @@ export declare const iconNameToIcon: {
179
183
  readonly 'zoom-in': ReactComponent;
180
184
  readonly 'zoom-out': ReactComponent;
181
185
  readonly 'zoom-reset': ReactComponent;
186
+ readonly shapes: ReactComponent;
182
187
  readonly 'shape-ellipse': ReactComponent;
183
188
  readonly 'shape-rectangle': ReactComponent;
184
189
  readonly 'shape-polyline': ReactComponent;
@@ -194,7 +199,7 @@ export declare const iconNameToIcon: {
194
199
  readonly 'stereo-white': ReactComponent;
195
200
  readonly atoms: ReactComponent;
196
201
  readonly 'atoms-white': ReactComponent;
197
- readonly bonds: ReactComponent;
202
+ readonly 'bond-common': ReactComponent;
198
203
  readonly 'bonds-white': ReactComponent;
199
204
  readonly server: ReactComponent;
200
205
  readonly 'server-white': ReactComponent;
@@ -228,4 +233,5 @@ export declare const iconNameToIcon: {
228
233
  readonly 'snake-layout-mode': ReactComponent;
229
234
  readonly 'sequence-layout-mode': ReactComponent;
230
235
  readonly questionMark: ReactComponent;
236
+ readonly 'no-highlight-cross': ReactComponent;
231
237
  };
@@ -3,7 +3,5 @@ interface Props {
3
3
  className?: string;
4
4
  preview: AmbiguousMonomerPreviewState;
5
5
  }
6
- export declare const AmbiguousMonomerPreview: import("@emotion/styled").StyledComponent<Props & {
7
- theme?: import("@emotion/react").Theme | undefined;
8
- }, {}, {}>;
9
- export {};
6
+ declare const AmbiguousMonomerPreview: ({ className, preview }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export { AmbiguousMonomerPreview };
@@ -27,3 +27,23 @@ export declare const EditorClassName = "Ketcher-polymer-editor-root";
27
27
  export declare const KETCHER_MACROMOLECULES_ROOT_NODE_SELECTOR: string;
28
28
  export declare const STRUCT_SERVICE_NO_RENDER_INITIALIZED_EVENT = "struct-service-no-render-initialized";
29
29
  export declare const STRUCT_SERVICE_INITIALIZED_EVENT = "struct-service-initialized";
30
+ export declare const ACS_STYLE_DEFAULT_SETTINGS: {
31
+ atomColoring: boolean;
32
+ font: string;
33
+ fontsz: number;
34
+ fontszUnit: string;
35
+ fontszsub: number;
36
+ fontszsubUnit: string;
37
+ reactionComponentMarginSize: number;
38
+ reactionComponentMarginSizeUnit: string;
39
+ imageResolution: string;
40
+ bondLength: number;
41
+ bondLengthUnit: string;
42
+ bondSpacing: number;
43
+ bondThickness: number;
44
+ bondThicknessUnit: string;
45
+ stereoBondWidth: number;
46
+ stereoBondWidthUnit: string;
47
+ hashSpacing: number;
48
+ hashSpacingUnit: string;
49
+ };