ketcher-react 2.24.0-rc.2 → 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 +38 -35
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +39 -36
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -556,7 +556,7 @@ function _copy(_x3) {
|
|
|
556
556
|
}
|
|
557
557
|
function _copy2() {
|
|
558
558
|
_copy2 = _asyncToGenerator__default["default"]( _regeneratorRuntime__default["default"].mark(function _callee3(data) {
|
|
559
|
-
var clipboardItemData;
|
|
559
|
+
var clipboardItemData, clipboardItem, textData;
|
|
560
560
|
return _regeneratorRuntime__default["default"].wrap(function _callee3$(_context3) {
|
|
561
561
|
while (1) switch (_context3.prev = _context3.next) {
|
|
562
562
|
case 0:
|
|
@@ -568,20 +568,36 @@ function _copy2() {
|
|
|
568
568
|
type: mimeTypeToSet
|
|
569
569
|
}));
|
|
570
570
|
});
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
571
|
+
clipboardItem = new ClipboardItem(clipboardItemData);
|
|
572
|
+
if (!(clipboardItem.presentationStyle && clipboardItem.presentationStyle === 'unspecified')) {
|
|
573
|
+
_context3.next = 11;
|
|
574
|
+
break;
|
|
575
|
+
}
|
|
576
|
+
if (!navigator.clipboard.writeText) {
|
|
577
|
+
_context3.next = 9;
|
|
578
|
+
break;
|
|
579
|
+
}
|
|
580
|
+
textData = data['text/plain'] || JSON.stringify(data);
|
|
581
|
+
_context3.next = 9;
|
|
582
|
+
return navigator.clipboard.writeText(textData);
|
|
583
|
+
case 9:
|
|
584
|
+
_context3.next = 13;
|
|
575
585
|
break;
|
|
576
|
-
case
|
|
577
|
-
_context3.
|
|
586
|
+
case 11:
|
|
587
|
+
_context3.next = 13;
|
|
588
|
+
return navigator.clipboard.write([clipboardItem]);
|
|
589
|
+
case 13:
|
|
590
|
+
_context3.next = 19;
|
|
591
|
+
break;
|
|
592
|
+
case 15:
|
|
593
|
+
_context3.prev = 15;
|
|
578
594
|
_context3.t0 = _context3["catch"](0);
|
|
579
595
|
ketcherCore.KetcherLogger.error('cliparea.jsx::copy', _context3.t0);
|
|
580
|
-
case
|
|
596
|
+
case 19:
|
|
581
597
|
case "end":
|
|
582
598
|
return _context3.stop();
|
|
583
599
|
}
|
|
584
|
-
}, _callee3, null, [[0,
|
|
600
|
+
}, _callee3, null, [[0, 15]]);
|
|
585
601
|
}));
|
|
586
602
|
return _copy2.apply(this, arguments);
|
|
587
603
|
}
|
|
@@ -3136,7 +3152,7 @@ var getSelectionFromStruct = function getSelectionFromStruct(struct) {
|
|
|
3136
3152
|
function load(struct, options) {
|
|
3137
3153
|
return function () {
|
|
3138
3154
|
var _ref = _asyncToGenerator__default["default"]( _regeneratorRuntime__default["default"].mark(function _callee(dispatch, getState) {
|
|
3139
|
-
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;
|
|
3140
3156
|
return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
|
|
3141
3157
|
while (1) switch (_context.prev = _context.next) {
|
|
3142
3158
|
case 0:
|
|
@@ -3190,20 +3206,7 @@ function load(struct, options) {
|
|
|
3190
3206
|
}
|
|
3191
3207
|
parsedStruct.findConnectedComponents();
|
|
3192
3208
|
parsedStruct.setImplicitHydrogen();
|
|
3193
|
-
|
|
3194
|
-
parsedStruct.atoms.forEach(function (atom, id) {
|
|
3195
|
-
var _parsedStruct$atomGet;
|
|
3196
|
-
if ((parsedStruct === null || parsedStruct === void 0 || (_parsedStruct$atomGet = parsedStruct.atomGetNeighbors(id)) === null || _parsedStruct$atomGet === void 0 ? void 0 : _parsedStruct$atomGet.length) === 0) {
|
|
3197
|
-
atom.stereoLabel = null;
|
|
3198
|
-
atom.stereoParity = 0;
|
|
3199
|
-
} else {
|
|
3200
|
-
var stereoProp = stereAtomsMap.get(id);
|
|
3201
|
-
if (stereoProp) {
|
|
3202
|
-
atom.stereoLabel = stereoProp.stereoLabel;
|
|
3203
|
-
atom.stereoParity = stereoProp.stereoParity;
|
|
3204
|
-
}
|
|
3205
|
-
}
|
|
3206
|
-
});
|
|
3209
|
+
parsedStruct.setStereoLabelsToAtoms();
|
|
3207
3210
|
parsedStruct.markFragments();
|
|
3208
3211
|
if (fragment) {
|
|
3209
3212
|
if (parsedStruct.isBlank()) {
|
|
@@ -3230,23 +3233,23 @@ function load(struct, options) {
|
|
|
3230
3233
|
dispatch({
|
|
3231
3234
|
type: 'MODAL_CLOSE'
|
|
3232
3235
|
});
|
|
3233
|
-
_context.next =
|
|
3236
|
+
_context.next = 40;
|
|
3234
3237
|
break;
|
|
3235
|
-
case
|
|
3236
|
-
_context.prev =
|
|
3238
|
+
case 35:
|
|
3239
|
+
_context.prev = 35;
|
|
3237
3240
|
_context.t0 = _context["catch"](8);
|
|
3238
3241
|
ketcherCore.KetcherLogger.error('shared.ts::load', _context.t0);
|
|
3239
3242
|
dispatch(setAnalyzingFile(false));
|
|
3240
3243
|
_context.t0 && errorHandler && errorHandler(_context.t0.message);
|
|
3241
|
-
case
|
|
3242
|
-
_context.prev =
|
|
3244
|
+
case 40:
|
|
3245
|
+
_context.prev = 40;
|
|
3243
3246
|
ketcherCore.notifyRequestCompleted();
|
|
3244
|
-
return _context.finish(
|
|
3245
|
-
case
|
|
3247
|
+
return _context.finish(40);
|
|
3248
|
+
case 43:
|
|
3246
3249
|
case "end":
|
|
3247
3250
|
return _context.stop();
|
|
3248
3251
|
}
|
|
3249
|
-
}, _callee, null, [[8,
|
|
3252
|
+
}, _callee, null, [[8, 35, 40, 43]]);
|
|
3250
3253
|
}));
|
|
3251
3254
|
return function (_x, _x2) {
|
|
3252
3255
|
return _ref.apply(this, arguments);
|
|
@@ -3670,7 +3673,7 @@ var zoom = {
|
|
|
3670
3673
|
|
|
3671
3674
|
var openHelpLink = function openHelpLink() {
|
|
3672
3675
|
var _window$open;
|
|
3673
|
-
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();
|
|
3674
3677
|
};
|
|
3675
3678
|
var help = {
|
|
3676
3679
|
help: {
|
|
@@ -33498,8 +33501,8 @@ var KetcherBuilder = function () {
|
|
|
33498
33501
|
cleanup = initApp(element, appRoot, staticResourcesUrl, {
|
|
33499
33502
|
buttons: buttons || {},
|
|
33500
33503
|
errorHandler: errorHandler || null,
|
|
33501
|
-
version: "2.24.0
|
|
33502
|
-
buildDate: "2024-
|
|
33504
|
+
version: "2.24.0" ,
|
|
33505
|
+
buildDate: "2024-09-10T00:57:17" ,
|
|
33503
33506
|
buildNumber: ''
|
|
33504
33507
|
}, structService, resolve, togglerComponent);
|
|
33505
33508
|
});
|