ketcher-react 2.8.0-rc.2-dev → 2.8.0-rc.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.
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
- import { ReSGroup } from 'ketcher-core';
16
+ import { ReSGroup, Atom } from 'ketcher-core';
17
17
  import { Editor } from '../Editor';
18
18
  declare class SelectTool {
19
19
  #private;
@@ -33,4 +33,6 @@ declare class SelectTool {
33
33
  isDraggingStructureOnSaltOrSolvent(dragCtx: any, sgroups: Map<number, ReSGroup>): any;
34
34
  }
35
35
  export declare function selMerge(selection: any, add: any, reversible: boolean): any;
36
+ export declare function getSelectedAtoms(selection: any, molecule: any): Atom[];
37
+ export declare function mapAtomIdsToAtoms(atomsIds: number[], molecule: any): Atom[];
36
38
  export default SelectTool;
@@ -0,0 +1,13 @@
1
+ import { Atom } from 'ketcher-core';
2
+ export declare function isAtomsArray(selectedElements: Atom | Atom[]): boolean;
3
+ declare type somePropertiesOfAtom = Partial<{
4
+ [attribute in keyof Atom]: string | number | boolean;
5
+ }>;
6
+ export declare function generateCommonProperties(selectedElements: Atom[]): somePropertiesOfAtom;
7
+ export declare function updateOnlyChangedProperties(atomId: any, userChangedAtom: any, molecule: any): {};
8
+ export declare function updateSelectedAtoms({ selection, changeAtomPromise, editor }: {
9
+ selection: any;
10
+ changeAtomPromise: any;
11
+ editor: any;
12
+ }): void;
13
+ export {};
@@ -14,7 +14,11 @@
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
16
  /// <reference types="react" />
17
- declare const AtomContainer: import("react-redux").ConnectedComponent<import("react").FC<import("./Atom").AtomProps & import("../../../modal.types").BaseCallProps>, import("react-redux").Omit<import("./Atom").AtomProps & import("../../../modal.types").BaseCallProps & {
17
+ declare const AtomContainer: import("react-redux").ConnectedComponent<import("react").FC<import("./Atom").AtomProps & {
18
+ isMultipleAtoms?: boolean | undefined;
19
+ }>, import("react-redux").Omit<import("./Atom").AtomProps & {
20
+ isMultipleAtoms?: boolean | undefined;
21
+ } & {
18
22
  children?: import("react").ReactNode;
19
23
  }, "formState">>;
20
24
  export default AtomContainer;
@@ -15,7 +15,7 @@
15
15
  ***************************************************************************/
16
16
  import { BaseCallProps, BaseProps } from '../../../modal.types';
17
17
  import { FC } from 'react';
18
- interface AtomProps extends BaseProps {
18
+ interface AtomProps extends BaseCallProps, BaseProps {
19
19
  alias: string;
20
20
  charge: string;
21
21
  exactChangeFlag: boolean;
@@ -30,7 +30,9 @@ interface AtomProps extends BaseProps {
30
30
  substitutionCount: number;
31
31
  unsaturatedAtom: boolean;
32
32
  }
33
- declare type Props = AtomProps & BaseCallProps;
33
+ declare type Props = AtomProps & {
34
+ isMultipleAtoms?: boolean;
35
+ };
34
36
  declare const Atom: FC<Props>;
35
37
  export type { AtomProps };
36
38
  export default Atom;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ketcher-react",
3
- "version": "2.8.0-rc.2-dev",
3
+ "version": "2.8.0-rc.3",
4
4
  "description": "Web-based molecule sketcher",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "http://lifescience.opensource.epam.com/ketcher",