ketcher-react 2.26.0-rc.6 → 2.27.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.
@@ -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 { Action, FloatingToolsParams, Editor as KetcherEditor, Render, Struct, MULTITAIL_ARROW_KEY } from 'ketcher-core';
16
+ import { Action, Editor as KetcherEditor, FloatingToolsParams, MULTITAIL_ARROW_KEY, Render, Struct } from 'ketcher-core';
17
17
  import { PipelineSubscription, Subscription } from 'subscription';
18
18
  import { Highlighter } from './highlighter';
19
19
  import { ContextMenuInfo } from '../ui/views/components/ContextMenu/contextMenu.types';
@@ -17,6 +17,7 @@ import type { Editor } from './Editor';
17
17
  declare type HighlightAttributes = {
18
18
  atoms: number[];
19
19
  bonds: number[];
20
+ rgroupAttachmentPoints: number[];
20
21
  color: string;
21
22
  };
22
23
  export declare class Highlighter {
@@ -25,7 +25,12 @@ export interface AtomContextMenuProps extends BaseContextMenuProps, WithExtraIte
25
25
  id: CONTEXT_MENU_ID.FOR_ATOMS;
26
26
  atomIds: Array<number>;
27
27
  }
28
- export interface SelectionContextMenuProps extends BaseContextMenuProps, Partial<Pick<BondsContextMenuProps, 'bondIds'>>, Partial<Pick<AtomContextMenuProps, 'atomIds'>> {
28
+ export interface RGroupAttachmentPointContextMenuProps extends BaseContextMenuProps, WithExtraItems {
29
+ id: CONTEXT_MENU_ID.FOR_R_GROUP_ATTACHMENT_POINT;
30
+ rgroupAttachmentPoints: Array<number>;
31
+ atomIds?: AtomContextMenuProps['atomIds'];
32
+ }
33
+ export interface SelectionContextMenuProps extends BaseContextMenuProps, Partial<Pick<BondsContextMenuProps, 'bondIds'>>, Partial<Pick<AtomContextMenuProps, 'atomIds'>>, Partial<Pick<RGroupAttachmentPointContextMenuProps, 'rgroupAttachmentPoints'>> {
29
34
  id: CONTEXT_MENU_ID.FOR_SELECTION;
30
35
  }
31
36
  export interface FunctionalGroupsContextMenuProps extends BaseContextMenuProps {
@@ -36,11 +41,6 @@ export interface MacromoleculeContextMenuProps extends BaseContextMenuProps {
36
41
  id: CONTEXT_MENU_ID.FOR_MACROMOLECULE;
37
42
  functionalGroups: FunctionalGroup[];
38
43
  }
39
- export interface RGroupAttachmentPointContextMenuProps extends BaseContextMenuProps, WithExtraItems {
40
- id: CONTEXT_MENU_ID.FOR_R_GROUP_ATTACHMENT_POINT;
41
- rgroupAttachmentPoints: Array<number>;
42
- atomIds?: AtomContextMenuProps['atomIds'];
43
- }
44
44
  export interface MultitailArrowContextMenuProps {
45
45
  id: CONTEXT_MENU_ID.FOR_MULTITAIL_ARROW;
46
46
  itemId: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ketcher-react",
3
- "version": "2.26.0-rc.6",
3
+ "version": "2.27.0-rc.1",
4
4
  "description": "Web-based molecule sketcher",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "http://lifescience.opensource.epam.com/ketcher",