ketcher-react 2.24.0-rc.3 → 2.24.0
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/index.js +13 -26
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +14 -27
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -24,7 +24,7 @@ import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
|
24
24
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
25
25
|
import _classCallCheck$2 from '@babel/runtime/helpers/classCallCheck';
|
|
26
26
|
import _createClass$2 from '@babel/runtime/helpers/createClass';
|
|
27
|
-
import { KetSerializer, MolSerializer, KetcherLogger, Ketcher, defaultBondThickness, FormatterFactory, isClipboardAPIAvailable, notifyCopyCut, notifyRequestCompleted, isControlKey, StereLabelStyleType, StereoColoringType, ShowHydrogenLabels, ShowHydrogenLabelNames, SettingsManager, SdfSerializer, KETCHER_SAVED_OPTIONS_KEY, Bond as Bond$2, Elements, AtomList, getAtomType, StereoLabel, isAttachmentBond, Atom as Atom$2, findStereoAtoms, RxnArrowMode, SimpleObjectMode, IMAGE_KEY, SGroup as SGroup$1, Pile,
|
|
27
|
+
import { KetSerializer, MolSerializer, KetcherLogger, Ketcher, defaultBondThickness, FormatterFactory, isClipboardAPIAvailable, notifyCopyCut, notifyRequestCompleted, isControlKey, StereLabelStyleType, StereoColoringType, ShowHydrogenLabels, ShowHydrogenLabelNames, SettingsManager, SdfSerializer, KETCHER_SAVED_OPTIONS_KEY, Bond as Bond$2, Elements, AtomList, getAtomType, StereoLabel, isAttachmentBond, Atom as Atom$2, findStereoAtoms, RxnArrowMode, SimpleObjectMode, IMAGE_KEY, SGroup as SGroup$1, Pile, identifyStructFormat, SupportedFormat, ChemicalMimeType, RenderStruct, Struct, shortcutStr, MonomerMicromolecule, UnresolvedMonomer, FunctionalGroupsProvider, SaltsAndSolventsProvider, KetcherAsyncEvents, ElementColor, generateMenuShortcuts, Vec2, Scale, fromMultipleMove, FunctionalGroup, fromSgroupDeletion, fromFragmentDeletion, mergeMapOfItemsToSet, vectorUtils, fromBondAddition, Action, fromAtomAddition, fromAtomsAttrs, checkOverlapping, fromSeveralSgroupAddition, expandSGroupWithMultipleAttachmentPoint, SgContexts, fromSgroupAction, fromItemsFuse, ReBond, setExpandSGroup, fromBondsAttrs, OperationType, ReStruct, CoordinateTransformation, fromImageResize, fromSimpleObjectResizing, fromArrowResizing, getItemsToFuse, getHoverToFuse, imageReferencePositionToCursor, fromTextDeletion, fromTextUpdating, fromTemplateOnCanvas, fromTemplateOnBondAction, fromTemplateOnAtom, BondAttr, AtomAttr, formatProperties, ketcherProvider, runAsyncAction, getStructStringFromClipboardData, getStructure, initHotKeys, keyNorm, Fragment as Fragment$1, fromRGroupAttachmentPointUpdate, fromOneBondDeletion, bondChangingAction, fromChain, fromStereoFlagUpdate, fromOneAtomDeletion, fromArrowDeletion, fromPlusDeletion, fromSimpleObjectDeletion, fromRGroupAttachmentPointDeletion, fromImageDeletion, notifyItemsToMergeInitializationComplete, fromPaste, RGroup as RGroup$2, fromRGroupFragment, fromUpdateIfThen, fromRGroupAttrs, fromArrowAddition, fromPlusAddition, fromRotate, fromFlip, fromSimpleObjectAddition, fromTextCreation, fromImageMove, fromImageCreation, fromHighlightCreate, fromHighlightClear, provideEditorSettings, fromNewCanvas, Render, fromDescriptorsAlign, fromSgroupAttachmentPointAddition, SGroupAttachmentPoint, fromSgroupAddition, atomGetAttr, genericsList, getAtomCustomQuery, getFormatMimeTypeByFileName, getPropertiesByFormat, StereoFlag, getPropertiesByImgFormat, b64toBlob, Generics, TextCommand, DefaultStructServiceOptions } from 'ketcher-core';
|
|
28
28
|
import * as React from 'react';
|
|
29
29
|
import React__default, { createRef, Component, useRef, useEffect, useLayoutEffect, useState, useMemo, createElement, forwardRef, useCallback, Fragment as Fragment$2, PureComponent, lazy, Suspense } from 'react';
|
|
30
30
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
@@ -3087,7 +3087,7 @@ var getSelectionFromStruct = function getSelectionFromStruct(struct) {
|
|
|
3087
3087
|
function load(struct, options) {
|
|
3088
3088
|
return function () {
|
|
3089
3089
|
var _ref = _asyncToGenerator( _regeneratorRuntime.mark(function _callee(dispatch, getState) {
|
|
3090
|
-
var state, editor, server, errorHandler, _options2, isPaste, method, otherOptions, parsedStruct, _otherOptions, fragment, hasUnsupportedGroups, hasMoleculeToMonomerConnections, oldStruct,
|
|
3090
|
+
var state, editor, server, errorHandler, _options2, isPaste, method, otherOptions, parsedStruct, _otherOptions, fragment, hasUnsupportedGroups, hasMoleculeToMonomerConnections, oldStruct, isIndigoFunctionCalled;
|
|
3091
3091
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
3092
3092
|
while (1) switch (_context.prev = _context.next) {
|
|
3093
3093
|
case 0:
|
|
@@ -3141,20 +3141,7 @@ function load(struct, options) {
|
|
|
3141
3141
|
}
|
|
3142
3142
|
parsedStruct.findConnectedComponents();
|
|
3143
3143
|
parsedStruct.setImplicitHydrogen();
|
|
3144
|
-
|
|
3145
|
-
parsedStruct.atoms.forEach(function (atom, id) {
|
|
3146
|
-
var _parsedStruct$atomGet;
|
|
3147
|
-
if ((parsedStruct === null || parsedStruct === void 0 || (_parsedStruct$atomGet = parsedStruct.atomGetNeighbors(id)) === null || _parsedStruct$atomGet === void 0 ? void 0 : _parsedStruct$atomGet.length) === 0) {
|
|
3148
|
-
atom.stereoLabel = null;
|
|
3149
|
-
atom.stereoParity = 0;
|
|
3150
|
-
} else {
|
|
3151
|
-
var stereoProp = stereAtomsMap.get(id);
|
|
3152
|
-
if (stereoProp) {
|
|
3153
|
-
atom.stereoLabel = stereoProp.stereoLabel;
|
|
3154
|
-
atom.stereoParity = stereoProp.stereoParity;
|
|
3155
|
-
}
|
|
3156
|
-
}
|
|
3157
|
-
});
|
|
3144
|
+
parsedStruct.setStereoLabelsToAtoms();
|
|
3158
3145
|
parsedStruct.markFragments();
|
|
3159
3146
|
if (fragment) {
|
|
3160
3147
|
if (parsedStruct.isBlank()) {
|
|
@@ -3181,23 +3168,23 @@ function load(struct, options) {
|
|
|
3181
3168
|
dispatch({
|
|
3182
3169
|
type: 'MODAL_CLOSE'
|
|
3183
3170
|
});
|
|
3184
|
-
_context.next =
|
|
3171
|
+
_context.next = 40;
|
|
3185
3172
|
break;
|
|
3186
|
-
case
|
|
3187
|
-
_context.prev =
|
|
3173
|
+
case 35:
|
|
3174
|
+
_context.prev = 35;
|
|
3188
3175
|
_context.t0 = _context["catch"](8);
|
|
3189
3176
|
KetcherLogger.error('shared.ts::load', _context.t0);
|
|
3190
3177
|
dispatch(setAnalyzingFile(false));
|
|
3191
3178
|
_context.t0 && errorHandler && errorHandler(_context.t0.message);
|
|
3192
|
-
case
|
|
3193
|
-
_context.prev =
|
|
3179
|
+
case 40:
|
|
3180
|
+
_context.prev = 40;
|
|
3194
3181
|
notifyRequestCompleted();
|
|
3195
|
-
return _context.finish(
|
|
3196
|
-
case
|
|
3182
|
+
return _context.finish(40);
|
|
3183
|
+
case 43:
|
|
3197
3184
|
case "end":
|
|
3198
3185
|
return _context.stop();
|
|
3199
3186
|
}
|
|
3200
|
-
}, _callee, null, [[8,
|
|
3187
|
+
}, _callee, null, [[8, 35, 40, 43]]);
|
|
3201
3188
|
}));
|
|
3202
3189
|
return function (_x, _x2) {
|
|
3203
3190
|
return _ref.apply(this, arguments);
|
|
@@ -3621,7 +3608,7 @@ var zoom = {
|
|
|
3621
3608
|
|
|
3622
3609
|
var openHelpLink = function openHelpLink() {
|
|
3623
3610
|
var _window$open;
|
|
3624
|
-
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.24.0
|
|
3611
|
+
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.24.0\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
|
|
3625
3612
|
};
|
|
3626
3613
|
var help = {
|
|
3627
3614
|
help: {
|
|
@@ -33449,8 +33436,8 @@ var KetcherBuilder = function () {
|
|
|
33449
33436
|
cleanup = initApp(element, appRoot, staticResourcesUrl, {
|
|
33450
33437
|
buttons: buttons || {},
|
|
33451
33438
|
errorHandler: errorHandler || null,
|
|
33452
|
-
version: "2.24.0
|
|
33453
|
-
buildDate: "2024-
|
|
33439
|
+
version: "2.24.0" ,
|
|
33440
|
+
buildDate: "2024-09-10T00:57:17" ,
|
|
33454
33441
|
buildNumber: ''
|
|
33455
33442
|
}, structService, resolve, togglerComponent);
|
|
33456
33443
|
});
|