ketcher-react 2.23.0-rc.4 → 2.23.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
|
@@ -3142,7 +3142,7 @@ var getSelectionFromStruct = function getSelectionFromStruct(struct) {
|
|
|
3142
3142
|
function load(struct, options) {
|
|
3143
3143
|
return function () {
|
|
3144
3144
|
var _ref = _asyncToGenerator__default["default"]( _regeneratorRuntime__default["default"].mark(function _callee(dispatch, getState) {
|
|
3145
|
-
var state, editor, server, errorHandler, _options2, isPaste, method, otherOptions, parsedStruct, _otherOptions, fragment, hasUnsupportedGroups, hasMoleculeToMonomerConnections, oldStruct,
|
|
3145
|
+
var state, editor, server, errorHandler, _options2, isPaste, method, otherOptions, parsedStruct, _otherOptions, fragment, hasUnsupportedGroups, hasMoleculeToMonomerConnections, oldStruct, isIndigoFunctionCalled;
|
|
3146
3146
|
return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
|
|
3147
3147
|
while (1) switch (_context.prev = _context.next) {
|
|
3148
3148
|
case 0:
|
|
@@ -3196,20 +3196,7 @@ function load(struct, options) {
|
|
|
3196
3196
|
}
|
|
3197
3197
|
parsedStruct.findConnectedComponents();
|
|
3198
3198
|
parsedStruct.setImplicitHydrogen();
|
|
3199
|
-
|
|
3200
|
-
parsedStruct.atoms.forEach(function (atom, id) {
|
|
3201
|
-
var _parsedStruct$atomGet;
|
|
3202
|
-
if ((parsedStruct === null || parsedStruct === void 0 || (_parsedStruct$atomGet = parsedStruct.atomGetNeighbors(id)) === null || _parsedStruct$atomGet === void 0 ? void 0 : _parsedStruct$atomGet.length) === 0) {
|
|
3203
|
-
atom.stereoLabel = null;
|
|
3204
|
-
atom.stereoParity = 0;
|
|
3205
|
-
} else {
|
|
3206
|
-
var stereoProp = stereAtomsMap.get(id);
|
|
3207
|
-
if (stereoProp) {
|
|
3208
|
-
atom.stereoLabel = stereoProp.stereoLabel;
|
|
3209
|
-
atom.stereoParity = stereoProp.stereoParity;
|
|
3210
|
-
}
|
|
3211
|
-
}
|
|
3212
|
-
});
|
|
3199
|
+
parsedStruct.setStereoLabelsToAtoms();
|
|
3213
3200
|
parsedStruct.markFragments();
|
|
3214
3201
|
if (fragment) {
|
|
3215
3202
|
if (parsedStruct.isBlank()) {
|
|
@@ -3236,23 +3223,23 @@ function load(struct, options) {
|
|
|
3236
3223
|
dispatch({
|
|
3237
3224
|
type: 'MODAL_CLOSE'
|
|
3238
3225
|
});
|
|
3239
|
-
_context.next =
|
|
3226
|
+
_context.next = 40;
|
|
3240
3227
|
break;
|
|
3241
|
-
case
|
|
3242
|
-
_context.prev =
|
|
3228
|
+
case 35:
|
|
3229
|
+
_context.prev = 35;
|
|
3243
3230
|
_context.t0 = _context["catch"](8);
|
|
3244
3231
|
ketcherCore.KetcherLogger.error('shared.ts::load', _context.t0);
|
|
3245
3232
|
dispatch(setAnalyzingFile(false));
|
|
3246
3233
|
_context.t0 && errorHandler && errorHandler(_context.t0.message);
|
|
3247
|
-
case
|
|
3248
|
-
_context.prev =
|
|
3234
|
+
case 40:
|
|
3235
|
+
_context.prev = 40;
|
|
3249
3236
|
ketcherCore.notifyRequestCompleted();
|
|
3250
|
-
return _context.finish(
|
|
3251
|
-
case
|
|
3237
|
+
return _context.finish(40);
|
|
3238
|
+
case 43:
|
|
3252
3239
|
case "end":
|
|
3253
3240
|
return _context.stop();
|
|
3254
3241
|
}
|
|
3255
|
-
}, _callee, null, [[8,
|
|
3242
|
+
}, _callee, null, [[8, 35, 40, 43]]);
|
|
3256
3243
|
}));
|
|
3257
3244
|
return function (_x, _x2) {
|
|
3258
3245
|
return _ref.apply(this, arguments);
|
|
@@ -3676,7 +3663,7 @@ var zoom = {
|
|
|
3676
3663
|
|
|
3677
3664
|
var openHelpLink = function openHelpLink() {
|
|
3678
3665
|
var _window$open;
|
|
3679
|
-
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.23.0
|
|
3666
|
+
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.23.0\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
|
|
3680
3667
|
};
|
|
3681
3668
|
var help = {
|
|
3682
3669
|
help: {
|
|
@@ -33175,8 +33162,8 @@ var KetcherBuilder = function () {
|
|
|
33175
33162
|
initApp(element, appRoot, staticResourcesUrl, {
|
|
33176
33163
|
buttons: buttons || {},
|
|
33177
33164
|
errorHandler: errorHandler || null,
|
|
33178
|
-
version: "2.23.0
|
|
33179
|
-
buildDate: "2024-
|
|
33165
|
+
version: "2.23.0" ,
|
|
33166
|
+
buildDate: "2024-09-10T00:38:38" ,
|
|
33180
33167
|
buildNumber: ''
|
|
33181
33168
|
}, structService, resolve, togglerComponent);
|
|
33182
33169
|
});
|