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.js
CHANGED
|
@@ -3152,7 +3152,7 @@ var getSelectionFromStruct = function getSelectionFromStruct(struct) {
|
|
|
3152
3152
|
function load(struct, options) {
|
|
3153
3153
|
return function () {
|
|
3154
3154
|
var _ref = _asyncToGenerator__default["default"]( _regeneratorRuntime__default["default"].mark(function _callee(dispatch, getState) {
|
|
3155
|
-
var state, editor, server, errorHandler, _options2, isPaste, method, otherOptions, parsedStruct, _otherOptions, fragment, hasUnsupportedGroups, hasMoleculeToMonomerConnections, oldStruct,
|
|
3155
|
+
var state, editor, server, errorHandler, _options2, isPaste, method, otherOptions, parsedStruct, _otherOptions, fragment, hasUnsupportedGroups, hasMoleculeToMonomerConnections, oldStruct, isIndigoFunctionCalled;
|
|
3156
3156
|
return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
|
|
3157
3157
|
while (1) switch (_context.prev = _context.next) {
|
|
3158
3158
|
case 0:
|
|
@@ -3206,20 +3206,7 @@ function load(struct, options) {
|
|
|
3206
3206
|
}
|
|
3207
3207
|
parsedStruct.findConnectedComponents();
|
|
3208
3208
|
parsedStruct.setImplicitHydrogen();
|
|
3209
|
-
|
|
3210
|
-
parsedStruct.atoms.forEach(function (atom, id) {
|
|
3211
|
-
var _parsedStruct$atomGet;
|
|
3212
|
-
if ((parsedStruct === null || parsedStruct === void 0 || (_parsedStruct$atomGet = parsedStruct.atomGetNeighbors(id)) === null || _parsedStruct$atomGet === void 0 ? void 0 : _parsedStruct$atomGet.length) === 0) {
|
|
3213
|
-
atom.stereoLabel = null;
|
|
3214
|
-
atom.stereoParity = 0;
|
|
3215
|
-
} else {
|
|
3216
|
-
var stereoProp = stereAtomsMap.get(id);
|
|
3217
|
-
if (stereoProp) {
|
|
3218
|
-
atom.stereoLabel = stereoProp.stereoLabel;
|
|
3219
|
-
atom.stereoParity = stereoProp.stereoParity;
|
|
3220
|
-
}
|
|
3221
|
-
}
|
|
3222
|
-
});
|
|
3209
|
+
parsedStruct.setStereoLabelsToAtoms();
|
|
3223
3210
|
parsedStruct.markFragments();
|
|
3224
3211
|
if (fragment) {
|
|
3225
3212
|
if (parsedStruct.isBlank()) {
|
|
@@ -3246,23 +3233,23 @@ function load(struct, options) {
|
|
|
3246
3233
|
dispatch({
|
|
3247
3234
|
type: 'MODAL_CLOSE'
|
|
3248
3235
|
});
|
|
3249
|
-
_context.next =
|
|
3236
|
+
_context.next = 40;
|
|
3250
3237
|
break;
|
|
3251
|
-
case
|
|
3252
|
-
_context.prev =
|
|
3238
|
+
case 35:
|
|
3239
|
+
_context.prev = 35;
|
|
3253
3240
|
_context.t0 = _context["catch"](8);
|
|
3254
3241
|
ketcherCore.KetcherLogger.error('shared.ts::load', _context.t0);
|
|
3255
3242
|
dispatch(setAnalyzingFile(false));
|
|
3256
3243
|
_context.t0 && errorHandler && errorHandler(_context.t0.message);
|
|
3257
|
-
case
|
|
3258
|
-
_context.prev =
|
|
3244
|
+
case 40:
|
|
3245
|
+
_context.prev = 40;
|
|
3259
3246
|
ketcherCore.notifyRequestCompleted();
|
|
3260
|
-
return _context.finish(
|
|
3261
|
-
case
|
|
3247
|
+
return _context.finish(40);
|
|
3248
|
+
case 43:
|
|
3262
3249
|
case "end":
|
|
3263
3250
|
return _context.stop();
|
|
3264
3251
|
}
|
|
3265
|
-
}, _callee, null, [[8,
|
|
3252
|
+
}, _callee, null, [[8, 35, 40, 43]]);
|
|
3266
3253
|
}));
|
|
3267
3254
|
return function (_x, _x2) {
|
|
3268
3255
|
return _ref.apply(this, arguments);
|
|
@@ -3686,7 +3673,7 @@ var zoom = {
|
|
|
3686
3673
|
|
|
3687
3674
|
var openHelpLink = function openHelpLink() {
|
|
3688
3675
|
var _window$open;
|
|
3689
|
-
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.24.0
|
|
3676
|
+
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();
|
|
3690
3677
|
};
|
|
3691
3678
|
var help = {
|
|
3692
3679
|
help: {
|
|
@@ -33514,8 +33501,8 @@ var KetcherBuilder = function () {
|
|
|
33514
33501
|
cleanup = initApp(element, appRoot, staticResourcesUrl, {
|
|
33515
33502
|
buttons: buttons || {},
|
|
33516
33503
|
errorHandler: errorHandler || null,
|
|
33517
|
-
version: "2.24.0
|
|
33518
|
-
buildDate: "2024-
|
|
33504
|
+
version: "2.24.0" ,
|
|
33505
|
+
buildDate: "2024-09-10T00:57:17" ,
|
|
33519
33506
|
buildNumber: ''
|
|
33520
33507
|
}, structService, resolve, togglerComponent);
|
|
33521
33508
|
});
|