ketcher-macromolecules 2.21.0-rc.2 → 2.22.0-rc.1-dev.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.
- package/dist/components/contextMenu/SequenceItemContextMenu/helpers.d.ts +5 -5
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/helpers/sequenceEdit.d.ts +3 -3
- package/dist/components/monomerLibrary/RnaBuilder/types.d.ts +1 -1
- package/dist/constants.d.ts +1 -0
- package/dist/helpers/countNucleoelents.d.ts +3 -0
- package/dist/helpers/formats/formatProperties.d.ts +1 -1
- package/dist/helpers/formats/supportedFormatProperties.d.ts +2 -1
- package/dist/helpers/getDefaultPreset.d.ts +2 -2
- package/dist/helpers/localStorage.d.ts +1 -0
- package/dist/helpers/manipulateCachedRnaPresets.d.ts +5 -0
- package/dist/hooks/useSetRnaPresets.d.ts +2 -0
- package/dist/index.js +429 -262
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +430 -265
- package/dist/index.modern.js.map +1 -1
- package/dist/state/rna-builder/rnaBuilderSlice.d.ts +15 -11
- package/dist/testMockData/monomerPresets.d.ts +22 -2
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LabeledNodesWithPositionInSequence, NodesSelection } from 'ketcher-core';
|
|
2
2
|
export declare const generateSequenceContextMenuProps: (selections?: NodesSelection) => {
|
|
3
3
|
title: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
selectedSequenceLabeledNodes: LabeledNodesWithPositionInSequence[];
|
|
5
|
+
isSelectedOnlyNucleoelements: boolean;
|
|
6
|
+
isSelectedAtLeastOneNucleoelement: boolean;
|
|
7
|
+
isSequenceFirstsOnlyNucleoelementsSelected: boolean;
|
|
8
8
|
} | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const generateSequenceSelectionGroupNames: (labeledNucleotides?:
|
|
1
|
+
import { LabeledNodesWithPositionInSequence } from 'ketcher-core';
|
|
2
|
+
export declare const generateSequenceSelectionGroupNames: (labeledNucleotides?: LabeledNodesWithPositionInSequence[]) => {
|
|
3
3
|
Sugars: string;
|
|
4
4
|
Bases: string;
|
|
5
5
|
Phosphates: string;
|
|
6
6
|
} | undefined;
|
|
7
|
-
export declare const generateSequenceSelectionName: (
|
|
7
|
+
export declare const generateSequenceSelectionName: (labeledNucleoelements: LabeledNodesWithPositionInSequence[]) => string;
|
|
@@ -19,10 +19,10 @@ export interface IExpandIconProps {
|
|
|
19
19
|
}
|
|
20
20
|
export interface IRnaPreset {
|
|
21
21
|
name?: string;
|
|
22
|
+
nameInList?: string;
|
|
22
23
|
base?: MonomerItemType;
|
|
23
24
|
sugar?: MonomerItemType;
|
|
24
25
|
phosphate?: MonomerItemType;
|
|
25
|
-
presetInList?: IRnaPreset;
|
|
26
26
|
default?: boolean;
|
|
27
27
|
favorite?: boolean;
|
|
28
28
|
editedName?: boolean;
|
package/dist/constants.d.ts
CHANGED
|
@@ -44,3 +44,4 @@ export declare enum MonomerGroupCodes {
|
|
|
44
44
|
}
|
|
45
45
|
export declare const MonomerCodeToGroup: Record<MonomerGroupCodes, MonomerGroups>;
|
|
46
46
|
export declare const FAVORITE_ITEMS_UNIQUE_KEYS = "favoriteItemsUniqueKeys";
|
|
47
|
+
export declare const CUSTOM_PRESETS = "ketcher_custom_presets";
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
import { SupportedFormatProperties } from './supportedFormatProperties';
|
|
17
|
-
export declare type SupportedFormats = 'mol' | 'ket' | 'fasta' | 'sequence';
|
|
17
|
+
export declare type SupportedFormats = 'mol' | 'ket' | 'fasta' | 'sequence' | 'idt';
|
|
18
18
|
export declare const getPropertiesByFormat: (format: SupportedFormats) => SupportedFormatProperties;
|
|
@@ -18,7 +18,8 @@ export declare enum ChemicalMimeType {
|
|
|
18
18
|
Mol = "chemical/x-mdl-molfile",
|
|
19
19
|
Helm = "chemical/x-helm",
|
|
20
20
|
Fasta = "chemical/x-fasta",
|
|
21
|
-
Sequence = "chemical/x-sequence"
|
|
21
|
+
Sequence = "chemical/x-sequence",
|
|
22
|
+
Idt = "chemical/x-idt"
|
|
22
23
|
}
|
|
23
24
|
interface SupportedFormatPropertiesOptions {
|
|
24
25
|
'molfile-saving-mode'?: '3000';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IRnaPreset } from "../components/monomerLibrary/RnaBuilder/types";
|
|
2
|
-
import { MonomerItemType } from 'ketcher-core';
|
|
3
|
-
export declare const getDefaultPresets: (monomers: MonomerItemType[]) => IRnaPreset[];
|
|
2
|
+
import { IKetMonomerGroupTemplate, MonomerItemType } from 'ketcher-core';
|
|
3
|
+
export declare const getDefaultPresets: (monomers: MonomerItemType[], rnaPresetsTemplates: IKetMonomerGroupTemplate[]) => IRnaPreset[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IRnaLabeledPreset, IRnaPreset } from 'ketcher-core';
|
|
2
|
+
export declare const getCachedCustomRnaPresets: () => IRnaLabeledPreset[] | undefined;
|
|
3
|
+
export declare const setCachedCustomRnaPreset: (preset: IRnaPreset | IRnaLabeledPreset) => void;
|
|
4
|
+
export declare const deleteCachedCustomRnaPreset: (presetName?: string) => void;
|
|
5
|
+
export declare const toggleCachedCustomRnaPresetFavorites: (presetName?: string) => void;
|