ketcher-macromolecules 2.24.0 → 2.25.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 (58) hide show
  1. package/dist/components/SequenceTypeGroupButton/SequenceTypeGroupButton.d.ts +16 -0
  2. package/dist/components/{shared/MonomerPreview/types.d.ts → SequenceTypeGroupButton/index.d.ts} +1 -4
  3. package/dist/components/ZoomControls/helpers.d.ts +3 -0
  4. package/dist/components/contextMenu/ContextMenu.d.ts +2 -2
  5. package/dist/components/menu/Menu.d.ts +1 -1
  6. package/dist/components/modal/monomerConnection/MonomerConnections.d.ts +0 -6
  7. package/dist/components/modal/monomerConnection/styledComponents.d.ts +0 -23
  8. package/dist/components/monomerLibrary/RnaPresetItem/styles.d.ts +1 -0
  9. package/dist/components/monomerLibrary/monomerLibraryGroup/styles.d.ts +0 -2
  10. package/dist/components/monomerLibrary/monomerLibraryGroup/types.d.ts +3 -3
  11. package/dist/components/monomerLibrary/monomerLibraryItem/styles.d.ts +12 -0
  12. package/dist/components/monomerLibrary/monomerLibraryItem/types.d.ts +2 -2
  13. package/dist/components/preview/components/AttachmentPoints/AttachmentPoints.d.ts +7 -0
  14. package/dist/components/preview/components/BondAttachmentPoints/BondAttachmentPoints.d.ts +7 -0
  15. package/dist/components/preview/components/BondAttachmentPoints/BondAttachmentPoints.styles.d.ts +24 -0
  16. package/dist/components/preview/components/BondPreview/BondPreview.d.ts +7 -0
  17. package/dist/components/preview/components/BondPreview/BondPreview.styles.d.ts +5 -0
  18. package/dist/components/preview/components/IDTAliases/IDTAliases.d.ts +7 -0
  19. package/dist/components/{shared/MonomerPreview/index.d.ts → preview/components/MonomerPreview/MonomerPreview.d.ts} +5 -3
  20. package/dist/components/{shared/PresetPreview/index.d.ts → preview/components/PresetPreview/PresetPreview.d.ts} +4 -2
  21. package/dist/components/preview/hooks/useAttachmentPoints.d.ts +16 -0
  22. package/dist/{hooks → components/preview/hooks}/useIDTAliasesTextForMonomer.d.ts +3 -3
  23. package/dist/{hooks → components/preview/hooks}/useIDTAliasesTextForPreset.d.ts +1 -1
  24. package/dist/components/shared/ConnectionOverview/ConnectionOverview.d.ts +11 -0
  25. package/dist/components/shared/ConnectionOverview/ConnectionOverview.styles.d.ts +17 -0
  26. package/dist/components/shared/ConnectionOverview/components/MonomerMiniature/MonomerMiniature.d.ts +10 -0
  27. package/dist/components/shared/ConnectionOverview/components/MonomerMiniature/MonomerMiniature.styles.d.ts +7 -0
  28. package/dist/components/shared/ConnectionOverview/components/MonomerOverview/MonomerOverview.d.ts +14 -0
  29. package/dist/components/shared/ConnectionOverview/components/MonomerOverview/MonomerOverview.styles.d.ts +12 -0
  30. package/dist/constants.d.ts +6 -8
  31. package/dist/helpers/getConnectedAttachmentPoints.d.ts +2 -0
  32. package/dist/helpers/getMonomerName.d.ts +3 -0
  33. package/dist/helpers/hydrateLeavingGroup.d.ts +2 -1
  34. package/dist/helpers/index.d.ts +1 -1
  35. package/dist/helpers/rnaValidations.d.ts +1 -1
  36. package/dist/index.js +3988 -676
  37. package/dist/index.js.map +1 -1
  38. package/dist/index.modern.js +3988 -678
  39. package/dist/index.modern.js.map +1 -1
  40. package/dist/state/common/editorSlice.d.ts +6 -19
  41. package/dist/state/index.d.ts +1 -0
  42. package/dist/state/library/librarySlice.d.ts +9 -3
  43. package/dist/state/types.d.ts +46 -0
  44. package/dist/testMockData/monomerPresets.d.ts +8 -1
  45. package/dist/theming/defaultTheme/theme.types.d.ts +4 -0
  46. package/dist/types/index.d.ts +0 -3
  47. package/package.json +1 -1
  48. package/dist/components/shared/AttachmentPoints/AttachmentPoints.d.ts +0 -7
  49. package/dist/components/shared/IDTAliases/index.d.ts +0 -6
  50. package/dist/helpers/calculatePreviewTop.d.ts +0 -2
  51. package/dist/hooks/useAttachmentPoints.d.ts +0 -16
  52. /package/dist/components/{shared/Preview/index.d.ts → preview/Preview.d.ts} +0 -0
  53. /package/dist/components/{shared → preview/components}/AttachmentPoints/AttachmentPoints.styles.d.ts +0 -0
  54. /package/dist/components/{shared/IDTAliases/styles.d.ts → preview/components/IDTAliases/IDTAliases.styles.d.ts} +0 -0
  55. /package/dist/components/{shared/MonomerPreview/styles.d.ts → preview/components/MonomerPreview/MonomerPreview.styles.d.ts} +0 -0
  56. /package/dist/components/{shared/PresetPreview/styles.d.ts → preview/components/PresetPreview/PresetPreview.styles.d.ts} +0 -0
  57. /package/dist/components/{shared → preview/components}/UnresolvedMonomerPreview/UnresolvedMonomerPreview.d.ts +0 -0
  58. /package/dist/components/{shared/UnresolvedMonomerPreview/styles.d.ts → preview/components/UnresolvedMonomerPreview/UnresolvedMonomerPreview.styles.d.ts} +0 -0
@@ -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 SequenceTypeGroupButton: () => import("@emotion/react/jsx-runtime").JSX.Element | null;
@@ -13,7 +13,4 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
- export interface IPreviewProps {
17
- className?: string;
18
- unresolvedMonomer?: boolean;
19
- }
16
+ export * from './SequenceTypeGroupButton';
@@ -1,4 +1,7 @@
1
1
  export declare const shortcuts: {
2
+ RNASequenceType: string;
3
+ DNASequenceType: string;
4
+ PEPTIDESequenceTYpe: string;
2
5
  exit: string;
3
6
  undo: string;
4
7
  redo: string;
@@ -1,5 +1,5 @@
1
1
  import { ItemParams } from 'react-contexify';
2
- import { BaseSequenceItemRenderer, PolymerBondRenderer } from 'ketcher-core';
2
+ import { BaseSequenceItemRenderer, DeprecatedFlexModeOrSnakeModePolymerBondRenderer } from 'ketcher-core';
3
3
  import { CONTEXT_MENU_ID } from "./types";
4
4
  interface MenuItem {
5
5
  name: string;
@@ -8,8 +8,8 @@ interface MenuItem {
8
8
  disabled?: boolean;
9
9
  hidden?: ({ props, }: {
10
10
  props?: {
11
+ polymerBondRenderer?: DeprecatedFlexModeOrSnakeModePolymerBondRenderer;
11
12
  sequenceItemRenderer?: BaseSequenceItemRenderer;
12
- polymerBondRenderer?: PolymerBondRenderer;
13
13
  };
14
14
  }) => boolean;
15
15
  isMenuTitle?: boolean;
@@ -20,7 +20,7 @@ declare const Menu: {
20
20
  ({ children, onItemClick, activeMenuItems, testId, isHorizontal, }: React.PropsWithChildren<MenuProps>): import("@emotion/react/jsx-runtime").JSX.Element;
21
21
  Group: ({ children, divider, isHorizontal, }: React.PropsWithChildren<GroupProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
22
22
  Item: ({ itemId, title, disabled, testId, onClick, }: {
23
- itemId: "α" | "β" | "γ" | "δ" | "ε" | "ζ" | "η" | "θ" | "ι" | "κ" | "λ" | "μ" | "ν" | "ξ" | "ο" | "π" | "ρ" | "σ" | "τ" | "υ" | "φ" | "χ" | "ψ" | "ω" | "Å" | "°" | "ħ" | "±" | "‰" | "√" | "←" | "→" | "←/" | "/→" | "↔" | "∏" | "∑" | "∞" | "∂" | "∆" | "∫" | "≈" | "=/" | "≤" | "≥" | "℉" | "℃" | "about" | "analyse" | "any-atom" | "arom" | "arrow-upward" | "bond-any" | "bond-aromatic" | "bond-crossed" | "bond-hydrogen" | "bond-dative" | "bond-double" | "bond-doublearomatic" | "bond-down" | "bond-single" | "bond-singlearomatic" | "bond-singledouble" | "bond-triple" | "bond-up" | "bond-updown" | "capital-t" | "chain" | "charge-minus" | "charge-plus" | "check" | "check-mark" | "chiral-flag" | "cip" | "clean" | "copies" | "copy" | "copy-image" | "copy-mol" | "copy-ket" | "cut" | "dearom" | "delete" | "dropdown" | "enhanced-stereo" | "edit" | "elements-group" | "extended-table" | "erase" | "file-thumbnail" | "fullscreen-enter" | "fullscreen-exit" | "generic-groups" | "hand" | "compressedhand" | "help" | "history" | "image-frame" | "layout" | "logo" | "miew" | "macromolecules-mode" | "molecules-mode" | "clear" | "open" | "paste" | "period-table" | "reaction-arrow-elliptical-arc-arrow-filled-bow" | "reaction-arrow-elliptical-arc-arrow-filled-triangle" | "reaction-arrow-elliptical-arc-arrow-open-angle" | "reaction-arrow-elliptical-arc-arrow-open-half-angle" | "reaction-arrow-open-angle" | "reaction-arrow-filled-triangle" | "reaction-arrow-filled-bow" | "reaction-arrow-dashed-open-angle" | "reaction-arrow-failed" | "reaction-arrow-both-ends-filled-triangle" | "reaction-arrow-equilibrium-filled-half-bow" | "reaction-arrow-equilibrium-filled-triangle" | "reaction-arrow-equilibrium-open-angle" | "reaction-arrow-unbalanced-equilibrium-filled-half-bow" | "reaction-arrow-unbalanced-equilibrium-open-half-angle" | "reaction-arrow-unbalanced-equilibrium-large-filled-half-bow" | "reaction-arrow-unbalanced-equilibrium-filled-half-triangle" | "reaction-automap" | "reaction-map" | "reaction-plus" | "reaction-unmap" | "recognize" | "redo" | "rgroup-attpoints" | "rgroup-fragment" | "rgroup-label" | "save" | "search" | "select-fragment" | "select-lasso" | "select-rectangle" | "settings" | "sgroup" | "template-0" | "template-1" | "template-2" | "template-3" | "template-4" | "template-5" | "template-6" | "template-7" | "template-dialog" | "template-lib" | "snake-mode" | "text" | "images" | "text-bold" | "text-italic" | "text-subscript" | "text-superscript" | "transform-flip-h" | "transform-flip-v" | "undo" | "zoom-in" | "zoom-out" | "zoom-reset" | "shape-ellipse" | "shape-rectangle" | "shape-polyline" | "shape-line" | "not-found" | "save-1" | "open-1" | "reset" | "close" | "general" | "general-white" | "stereo" | "stereo-white" | "atoms" | "atoms-white" | "bonds" | "bonds-white" | "server" | "server-white" | "3dviewer" | "3dviewer-white" | "debugging" | "debugging-white" | "dropdown-indicator" | "text-special-symbols" | "chevron" | "open-window-paste-icon" | "open-window-upload-icon" | "bracket" | "error" | "rap-left-link" | "rap-middle-link" | "rap-right-link" | "arrows-left" | "arrows-right" | "sugar" | "base" | "phosphate" | "preset" | "nucleotide" | "edit-filled" | "vertical-dots" | "expand" | "minimize-expansion" | "explicit-hydrogens" | "flex-layout-mode" | "snake-layout-mode" | "sequence-layout-mode" | "questionMark";
23
+ itemId: "α" | "β" | "γ" | "δ" | "ε" | "ζ" | "η" | "θ" | "ι" | "κ" | "λ" | "μ" | "ν" | "ξ" | "ο" | "π" | "ρ" | "σ" | "τ" | "υ" | "φ" | "χ" | "ψ" | "ω" | "Å" | "°" | "ħ" | "±" | "‰" | "√" | "←" | "→" | "←/" | "/→" | "↔" | "∏" | "∑" | "∞" | "∂" | "∆" | "∫" | "≈" | "=/" | "≤" | "≥" | "℉" | "℃" | "about" | "analyse" | "any-atom" | "arom" | "arrow-upward" | "bond-any" | "bond-aromatic" | "bond-crossed" | "bond-hydrogen" | "bond-dative" | "bond-double" | "bond-doublearomatic" | "bond-down" | "bond-single" | "bond-singlearomatic" | "bond-singledouble" | "bond-triple" | "bond-up" | "bond-updown" | "capital-t" | "chain" | "charge-minus" | "charge-plus" | "check" | "check-mark" | "chiral-flag" | "cip" | "clean" | "copies" | "copy" | "copy-image" | "copy-mol" | "copy-ket" | "cut" | "dearom" | "delete" | "dropdown" | "enhanced-stereo" | "edit" | "elements-group" | "extended-table" | "erase" | "file-thumbnail" | "fullscreen-enter" | "fullscreen-exit" | "generic-groups" | "hand" | "compressedhand" | "help" | "history" | "image-frame" | "layout" | "logo" | "miew" | "macromolecules-mode" | "molecules-mode" | "clear" | "open" | "paste" | "period-table" | "reaction-arrow-elliptical-arc-arrow-filled-bow" | "reaction-arrow-elliptical-arc-arrow-filled-triangle" | "reaction-arrow-elliptical-arc-arrow-open-angle" | "reaction-arrow-elliptical-arc-arrow-open-half-angle" | "reaction-arrow-open-angle" | "reaction-arrow-filled-triangle" | "reaction-arrow-filled-bow" | "reaction-arrow-dashed-open-angle" | "reaction-arrow-failed" | "reaction-arrow-retrosynthetic" | "reaction-arrow-both-ends-filled-triangle" | "reaction-arrow-equilibrium-filled-half-bow" | "reaction-arrow-equilibrium-filled-triangle" | "reaction-arrow-equilibrium-open-angle" | "reaction-arrow-unbalanced-equilibrium-filled-half-bow" | "reaction-arrow-unbalanced-equilibrium-open-half-angle" | "reaction-arrow-unbalanced-equilibrium-large-filled-half-bow" | "reaction-arrow-unbalanced-equilibrium-filled-half-triangle" | "reaction-arrow-multitail" | "reaction-automap" | "reaction-map" | "reaction-plus" | "reaction-unmap" | "recognize" | "redo" | "rgroup-attpoints" | "rgroup-fragment" | "rgroup-label" | "save" | "search" | "select-fragment" | "select-lasso" | "select-rectangle" | "settings" | "sgroup" | "template-0" | "template-1" | "template-2" | "template-3" | "template-4" | "template-5" | "template-6" | "template-7" | "template-dialog" | "template-lib" | "snake-mode" | "text" | "images" | "text-bold" | "text-italic" | "text-subscript" | "text-superscript" | "transform-flip-h" | "transform-flip-v" | "undo" | "zoom-in" | "zoom-out" | "zoom-reset" | "shape-ellipse" | "shape-rectangle" | "shape-polyline" | "shape-line" | "not-found" | "save-1" | "open-1" | "reset" | "close" | "general" | "general-white" | "stereo" | "stereo-white" | "atoms" | "atoms-white" | "bonds" | "bonds-white" | "server" | "server-white" | "3dviewer" | "3dviewer-white" | "debugging" | "debugging-white" | "dropdown-indicator" | "text-special-symbols" | "chevron" | "open-window-paste-icon" | "open-window-upload-icon" | "bracket" | "error" | "rap-left-link" | "rap-middle-link" | "rap-right-link" | "arrows-left" | "arrows-right" | "sugar" | "base" | "phosphate" | "preset" | "nucleotide" | "edit-filled" | "vertical-dots" | "expand" | "minimize-expansion" | "explicit-hydrogens" | "flex-layout-mode" | "snake-layout-mode" | "sequence-layout-mode" | "questionMark";
24
24
  title?: string | undefined;
25
25
  testId?: string | undefined;
26
26
  disabled?: boolean | undefined;
@@ -3,12 +3,6 @@ import { MonomerConnectionProps } from '../modalContainer/types';
3
3
  interface IStyledButtonProps {
4
4
  disabled: boolean;
5
5
  }
6
- interface IStyledStyledStructRender {
7
- isExpanded?: boolean;
8
- }
9
- export declare const StyledStructRender: import("@emotion/styled").StyledComponent<import("ketcher-react/dist/components/StructRender/types").IStructRenderProps & {
10
- theme?: import("@emotion/react").Theme | undefined;
11
- } & IStyledStyledStructRender, {}, {}>;
12
6
  export declare const ActionButtonLeft: import("@emotion/styled").StyledComponent<{
13
7
  label: string;
14
8
  clickHandler: () => void;
@@ -1,18 +1,7 @@
1
1
  /// <reference types="react" />
2
- export declare const AttachmentPointList: import("@emotion/styled").StyledComponent<{
3
- theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
- export declare const UnknownStructureContent: import("@emotion/styled").StyledComponent<{
7
- theme?: import("@emotion/react").Theme | undefined;
8
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
2
  interface IStyledAttachmentPointNameProps {
11
3
  disabled?: boolean;
12
4
  }
13
- interface IStyledMonomerName {
14
- isExpanded?: boolean;
15
- }
16
5
  export declare const AttachmentPoint: import("@emotion/styled").StyledComponent<{
17
6
  theme?: import("@emotion/react").Theme | undefined;
18
7
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
@@ -21,18 +10,6 @@ export declare const AttachmentPointName: import("@emotion/styled").StyledCompon
21
10
  theme?: import("@emotion/react").Theme | undefined;
22
11
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
23
12
  } & IStyledAttachmentPointNameProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
24
- export declare const MonomerName: import("@emotion/styled").StyledComponent<{
25
- theme?: import("@emotion/react").Theme | undefined;
26
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
27
- } & IStyledMonomerName, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
28
- export declare const ConnectionSymbol: import("@emotion/styled").StyledComponent<{
29
- theme?: import("@emotion/react").Theme | undefined;
30
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
31
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
32
- export declare const AttachmentPointsRow: import("@emotion/styled").StyledComponent<{
33
- theme?: import("@emotion/react").Theme | undefined;
34
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
35
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
36
13
  export declare const ModalContent: import("@emotion/styled").StyledComponent<{
37
14
  theme?: import("@emotion/react").Theme | undefined;
38
15
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
@@ -6,6 +6,7 @@ export declare const Card: import("@emotion/styled").StyledComponent<{
6
6
  code?: string | undefined;
7
7
  selected?: boolean | undefined;
8
8
  disabled?: boolean | undefined;
9
+ isVariantMonomer?: boolean | undefined;
9
10
  } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
10
11
  theme?: import("@emotion/react").Theme | undefined;
11
12
  } & {
@@ -2,8 +2,6 @@
2
2
  export declare const ItemsContainer: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
4
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
- } & {
6
- useLeftMargin?: boolean | undefined;
7
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
6
  export declare const GroupContainerRow: import("@emotion/styled").StyledComponent<{
9
7
  theme?: import("@emotion/react").Theme | undefined;
@@ -14,10 +14,10 @@
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
16
  import { LibraryNameType } from '../../../constants';
17
- import { MonomerGroups, MonomerItemType } from 'ketcher-core';
17
+ import { MonomerGroups, MonomerOrAmbiguousType } from 'ketcher-core';
18
18
  export interface IMonomerGroupProps {
19
- items: MonomerItemType[];
20
- onItemClick?: (item: MonomerItemType) => void;
19
+ items: MonomerOrAmbiguousType[];
20
+ onItemClick?: (item: MonomerOrAmbiguousType) => void;
21
21
  title?: string;
22
22
  groupName?: MonomerGroups;
23
23
  libraryName?: LibraryNameType;
@@ -6,4 +6,16 @@ export declare const Card: import("@emotion/styled").StyledComponent<{
6
6
  code?: string | undefined;
7
7
  selected?: boolean | undefined;
8
8
  disabled?: boolean | undefined;
9
+ isVariantMonomer?: boolean | undefined;
9
10
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
11
+ export declare const NumberCircle: import("@emotion/styled").StyledComponent<{
12
+ theme?: import("@emotion/react").Theme | undefined;
13
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
14
+ } & {
15
+ selected?: boolean | undefined;
16
+ monomersAmount: number;
17
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
18
+ export declare const CardTitle: import("@emotion/styled").StyledComponent<{
19
+ theme?: import("@emotion/react").Theme | undefined;
20
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
21
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -14,9 +14,9 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  ***************************************************************************/
17
- import { MonomerGroups, MonomerItemType } from 'ketcher-core';
17
+ import { MonomerGroups, MonomerOrAmbiguousType } from 'ketcher-core';
18
18
  export interface IMonomerItemProps {
19
- item: MonomerItemType;
19
+ item: MonomerOrAmbiguousType;
20
20
  groupName?: MonomerGroups;
21
21
  disabled?: boolean;
22
22
  isSelected?: boolean;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { PreparedAttachmentPointData } from '../../hooks/useAttachmentPoints';
3
+ declare type Props = {
4
+ preparedAttachmentPointsData: PreparedAttachmentPointData[];
5
+ };
6
+ declare const AttachmentPoints: import("react").MemoExoticComponent<({ preparedAttachmentPointsData }: Props) => import("@emotion/react/jsx-runtime").JSX.Element | null>;
7
+ export default AttachmentPoints;
@@ -0,0 +1,7 @@
1
+ import { PreparedAttachmentPointData } from "../../hooks/useAttachmentPoints";
2
+ interface Props {
3
+ attachmentPoints: PreparedAttachmentPointData[];
4
+ attachmentPointInBond: string | undefined;
5
+ }
6
+ declare const BondAttachmentPoints: ({ attachmentPoints, attachmentPointInBond, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
7
+ export default BondAttachmentPoints;
@@ -0,0 +1,24 @@
1
+ /// <reference types="react" />
2
+ interface AttachmentPointProps {
3
+ connected: boolean;
4
+ inBond: boolean;
5
+ }
6
+ export declare const AttachmentPoint: import("@emotion/styled").StyledComponent<{
7
+ theme?: import("@emotion/react").Theme | undefined;
8
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
+ } & AttachmentPointProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
+ interface AttachmentPointNameProps {
11
+ connected?: boolean;
12
+ }
13
+ export declare const AttachmentPointName: import("@emotion/styled").StyledComponent<{
14
+ theme?: import("@emotion/react").Theme | undefined;
15
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
16
+ } & AttachmentPointNameProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
17
+ interface LeavingGroupProps {
18
+ inBond: boolean;
19
+ }
20
+ export declare const LeavingGroup: import("@emotion/styled").StyledComponent<{
21
+ theme?: import("@emotion/react").Theme | undefined;
22
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
23
+ } & LeavingGroupProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
24
+ export {};
@@ -0,0 +1,7 @@
1
+ interface Props {
2
+ className?: string;
3
+ }
4
+ declare const StyledPreview: import("@emotion/styled").StyledComponent<Props & {
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ }, {}, {}>;
7
+ export default StyledPreview;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const Container: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface IDTAliasesProps {
3
+ readonly idtAliasesText: string;
4
+ readonly preset?: boolean;
5
+ }
6
+ declare const IDTAliases: import("react").MemoExoticComponent<({ idtAliasesText, preset }: IDTAliasesProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
7
+ export default IDTAliases;
@@ -13,9 +13,11 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
- import { IPreviewProps } from './types';
17
- declare const MonomerPreview: ({ className }: IPreviewProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
18
- declare const StyledPreview: import("@emotion/styled").StyledComponent<IPreviewProps & {
16
+ interface Props {
17
+ className?: string;
18
+ }
19
+ declare const MonomerPreview: ({ className }: Props) => import("@emotion/react/jsx-runtime").JSX.Element | null;
20
+ declare const StyledPreview: import("@emotion/styled").StyledComponent<Props & {
19
21
  theme?: import("@emotion/react").Theme | undefined;
20
22
  }, {}, {}>;
21
23
  export default StyledPreview;
@@ -1,5 +1,7 @@
1
- import { IPreviewProps } from '../MonomerPreview/types';
2
- declare const PresetStyledPreview: import("@emotion/styled").StyledComponent<IPreviewProps & {
1
+ interface Props {
2
+ className?: string;
3
+ }
4
+ declare const PresetStyledPreview: import("@emotion/styled").StyledComponent<Props & {
3
5
  theme?: import("@emotion/react").Theme | undefined;
4
6
  }, {}, {}>;
5
7
  export default PresetStyledPreview;
@@ -0,0 +1,16 @@
1
+ import { AttachmentPointName, AttachmentPointsToBonds, LeavingGroup } from 'ketcher-core';
2
+ declare type Props = {
3
+ monomerCaps: Partial<Record<AttachmentPointName, string>> | undefined;
4
+ attachmentPointsToBonds: AttachmentPointsToBonds | undefined;
5
+ };
6
+ export declare type PreparedAttachmentPointData = {
7
+ id: string;
8
+ label: LeavingGroup;
9
+ connected: boolean;
10
+ };
11
+ declare type ReturnType = {
12
+ preparedAttachmentPointsData: PreparedAttachmentPointData[];
13
+ connectedAttachmentPoints: string[];
14
+ };
15
+ export declare const useAttachmentPoints: ({ monomerCaps, attachmentPointsToBonds, }: Props) => ReturnType;
16
+ export {};
@@ -1,8 +1,8 @@
1
- import { AttachmentPointName, IKetIdtAliases, KetMonomerClass, PolymerBond } from 'ketcher-core';
1
+ import { AttachmentPointsToBonds, IKetIdtAliases, KetMonomerClass } from 'ketcher-core';
2
2
  declare type Props = {
3
3
  idtAliases: IKetIdtAliases | undefined;
4
- attachmentPointsToBonds?: Record<AttachmentPointName, PolymerBond | null>;
5
- monomerClass: KetMonomerClass;
4
+ attachmentPointsToBonds: AttachmentPointsToBonds | undefined;
5
+ monomerClass: KetMonomerClass | undefined;
6
6
  };
7
7
  declare const useIDTAliasesTextForMonomer: ({ idtAliases, attachmentPointsToBonds, monomerClass, }: Props) => string | null | undefined;
8
8
  export default useIDTAliasesTextForMonomer;
@@ -1,5 +1,5 @@
1
1
  import { IKetIdtAliases } from 'ketcher-core';
2
- import { PresetPosition } from "../state/common";
2
+ import { PresetPosition } from "../../../state";
3
3
  declare type Props = {
4
4
  presetName: string | undefined;
5
5
  position: PresetPosition;
@@ -0,0 +1,11 @@
1
+ import { ReactNode } from 'react';
2
+ import { BaseMonomer } from 'ketcher-core';
3
+ interface Props {
4
+ firstMonomer: BaseMonomer;
5
+ secondMonomer: BaseMonomer;
6
+ expanded?: boolean;
7
+ firstMonomerOverview: ReactNode;
8
+ secondMonomerOverview: ReactNode;
9
+ }
10
+ declare const ConnectionOverview: ({ firstMonomer, secondMonomer, expanded, firstMonomerOverview, secondMonomerOverview, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
11
+ export default ConnectionOverview;
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ interface IStyledMonomerName {
3
+ isExpanded?: boolean;
4
+ }
5
+ export declare const MonomerName: import("@emotion/styled").StyledComponent<{
6
+ theme?: import("@emotion/react").Theme | undefined;
7
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
8
+ } & IStyledMonomerName, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
9
+ export declare const ConnectionSymbol: import("@emotion/styled").StyledComponent<{
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
12
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
13
+ export declare const AttachmentPointsRow: import("@emotion/styled").StyledComponent<{
14
+ theme?: import("@emotion/react").Theme | undefined;
15
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
16
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
17
+ export {};
@@ -0,0 +1,10 @@
1
+ import { BaseMonomer, UsageInMacromolecule } from 'ketcher-core';
2
+ interface Props {
3
+ monomer: BaseMonomer;
4
+ usage: UsageInMacromolecule;
5
+ connectedAttachmentPoints?: string[];
6
+ selectedAttachmentPoint?: string | null;
7
+ expanded?: boolean;
8
+ }
9
+ declare const MonomerMiniature: ({ monomer, expanded, selectedAttachmentPoint, connectedAttachmentPoints, usage, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
10
+ export default MonomerMiniature;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export declare const Container: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
+ } & {
6
+ expanded?: boolean | undefined;
7
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+ import { BaseMonomer, UsageInMacromolecule } from 'ketcher-core';
3
+ interface Props {
4
+ monomer: BaseMonomer;
5
+ attachmentPoints: ReactNode;
6
+ usage: UsageInMacromolecule;
7
+ connectedAttachmentPoints?: string[];
8
+ selectedAttachmentPoint?: string | null;
9
+ needCache?: boolean;
10
+ update?: boolean;
11
+ expanded?: boolean;
12
+ }
13
+ declare const MonomerOverview: ({ monomer, attachmentPoints, connectedAttachmentPoints, selectedAttachmentPoint, usage, needCache, update, expanded, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
14
+ export default MonomerOverview;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ interface IStyledStyledStructRender {
3
+ isExpanded?: boolean;
4
+ }
5
+ export declare const StyledStructRender: import("@emotion/styled").StyledComponent<import("ketcher-react/dist/components/StructRender/types").IStructRenderProps & {
6
+ theme?: import("@emotion/react").Theme | undefined;
7
+ } & IStyledStyledStructRender, {}, {}>;
8
+ export declare const AttachmentPointList: import("@emotion/styled").StyledComponent<{
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
11
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
+ export {};
@@ -14,23 +14,19 @@
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
16
  export declare const MONOMER_LIBRARY_FAVORITES = "FAVORITES";
17
+ export declare const MONOMER_LIBRARY_PEPTIDES = "PEPTIDE";
17
18
  export declare const MONOMER_TYPES: {
18
19
  readonly PEPTIDE: "PEPTIDE";
19
20
  readonly CHEM: "CHEM";
20
21
  readonly RNA: "RNA";
21
22
  };
22
23
  export declare type LibraryNameType = typeof MONOMER_LIBRARY_FAVORITES | keyof typeof MONOMER_TYPES;
23
- export declare const preview: {
24
- readonly width: 345;
25
- readonly height: 345;
26
- readonly gap: 5;
27
- readonly topPadding: 16;
28
- readonly heightForNucleotide: 105;
29
- };
30
24
  export declare enum MonomerGroups {
31
25
  SUGARS = "Sugars",
32
26
  BASES = "Bases",
33
- PHOSPHATES = "Phosphates"
27
+ PHOSPHATES = "Phosphates",
28
+ PEPTIDES = "Amino acids",
29
+ NUCLEOTIDES = "Nucleotides"
34
30
  }
35
31
  export declare enum MonomerGroupCodes {
36
32
  R = "R",
@@ -47,3 +43,5 @@ export declare const FAVORITE_ITEMS_UNIQUE_KEYS = "favoriteItemsUniqueKeys";
47
43
  export declare const CUSTOM_PRESETS = "ketcher_custom_presets";
48
44
  export declare const NoNaturalAnalogueGroupCode = "Z";
49
45
  export declare const NoNaturalAnalogueGroupTitle = "No natural analogue";
46
+ export declare const DNA_TEMPLATE_NAME_PART = "thymine";
47
+ export declare const RNA_TEMPLATE_NAME_PART = "uracil";
@@ -0,0 +1,2 @@
1
+ import { AttachmentPointsToBonds } from 'ketcher-core';
2
+ export declare const getConnectedAttachmentPoints: (bonds: AttachmentPointsToBonds) => string[];
@@ -0,0 +1,3 @@
1
+ import { BaseMonomer } from 'ketcher-core';
2
+ declare const getMonomerName: (monomer: BaseMonomer) => string;
3
+ export default getMonomerName;
@@ -1,2 +1,3 @@
1
- declare const hydrateLeavingGroup: (leavingGroup: string) => string;
1
+ import { LeavingGroup } from 'ketcher-core';
2
+ declare const hydrateLeavingGroup: (leavingGroup: LeavingGroup) => "OH" | "H";
2
3
  export default hydrateLeavingGroup;
@@ -15,5 +15,5 @@
15
15
  ***************************************************************************/
16
16
  export {};
17
17
  export * from './emptyFunction';
18
- export * from './calculatePreviewTop';
19
18
  export * from './getPreset';
19
+ export * from './getConnectedAttachmentPoints';
@@ -1,5 +1,5 @@
1
1
  import { IRnaPreset } from "../components/monomerLibrary/RnaBuilder/types";
2
- export declare const getValidations: (newPreset: IRnaPreset) => {
2
+ export declare const getValidations: (newPreset: IRnaPreset, isEditMode: boolean) => {
3
3
  sugarValidations: string[];
4
4
  phosphateValidations: string[];
5
5
  baseValidations: string[];