ketcher-react 2.23.0-rc.3 → 2.23.0-rc.5
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
|
@@ -554,7 +554,7 @@ function _copy(_x3) {
|
|
|
554
554
|
}
|
|
555
555
|
function _copy2() {
|
|
556
556
|
_copy2 = _asyncToGenerator__default["default"]( _regeneratorRuntime__default["default"].mark(function _callee3(data) {
|
|
557
|
-
var clipboardItemData;
|
|
557
|
+
var clipboardItemData, clipboardItem, textData;
|
|
558
558
|
return _regeneratorRuntime__default["default"].wrap(function _callee3$(_context3) {
|
|
559
559
|
while (1) switch (_context3.prev = _context3.next) {
|
|
560
560
|
case 0:
|
|
@@ -566,20 +566,36 @@ function _copy2() {
|
|
|
566
566
|
type: mimeTypeToSet
|
|
567
567
|
}));
|
|
568
568
|
});
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
569
|
+
clipboardItem = new ClipboardItem(clipboardItemData);
|
|
570
|
+
if (!(clipboardItem.presentationStyle && clipboardItem.presentationStyle === 'unspecified')) {
|
|
571
|
+
_context3.next = 11;
|
|
572
|
+
break;
|
|
573
|
+
}
|
|
574
|
+
if (!navigator.clipboard.writeText) {
|
|
575
|
+
_context3.next = 9;
|
|
576
|
+
break;
|
|
577
|
+
}
|
|
578
|
+
textData = data['text/plain'] || JSON.stringify(data);
|
|
579
|
+
_context3.next = 9;
|
|
580
|
+
return navigator.clipboard.writeText(textData);
|
|
581
|
+
case 9:
|
|
582
|
+
_context3.next = 13;
|
|
573
583
|
break;
|
|
574
|
-
case
|
|
575
|
-
_context3.
|
|
584
|
+
case 11:
|
|
585
|
+
_context3.next = 13;
|
|
586
|
+
return navigator.clipboard.write([clipboardItem]);
|
|
587
|
+
case 13:
|
|
588
|
+
_context3.next = 19;
|
|
589
|
+
break;
|
|
590
|
+
case 15:
|
|
591
|
+
_context3.prev = 15;
|
|
576
592
|
_context3.t0 = _context3["catch"](0);
|
|
577
593
|
ketcherCore.KetcherLogger.error('cliparea.jsx::copy', _context3.t0);
|
|
578
|
-
case
|
|
594
|
+
case 19:
|
|
579
595
|
case "end":
|
|
580
596
|
return _context3.stop();
|
|
581
597
|
}
|
|
582
|
-
}, _callee3, null, [[0,
|
|
598
|
+
}, _callee3, null, [[0, 15]]);
|
|
583
599
|
}));
|
|
584
600
|
return _copy2.apply(this, arguments);
|
|
585
601
|
}
|
|
@@ -3126,7 +3142,7 @@ var getSelectionFromStruct = function getSelectionFromStruct(struct) {
|
|
|
3126
3142
|
function load(struct, options) {
|
|
3127
3143
|
return function () {
|
|
3128
3144
|
var _ref = _asyncToGenerator__default["default"]( _regeneratorRuntime__default["default"].mark(function _callee(dispatch, getState) {
|
|
3129
|
-
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;
|
|
3130
3146
|
return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
|
|
3131
3147
|
while (1) switch (_context.prev = _context.next) {
|
|
3132
3148
|
case 0:
|
|
@@ -3180,20 +3196,7 @@ function load(struct, options) {
|
|
|
3180
3196
|
}
|
|
3181
3197
|
parsedStruct.findConnectedComponents();
|
|
3182
3198
|
parsedStruct.setImplicitHydrogen();
|
|
3183
|
-
|
|
3184
|
-
parsedStruct.atoms.forEach(function (atom, id) {
|
|
3185
|
-
var _parsedStruct$atomGet;
|
|
3186
|
-
if ((parsedStruct === null || parsedStruct === void 0 || (_parsedStruct$atomGet = parsedStruct.atomGetNeighbors(id)) === null || _parsedStruct$atomGet === void 0 ? void 0 : _parsedStruct$atomGet.length) === 0) {
|
|
3187
|
-
atom.stereoLabel = null;
|
|
3188
|
-
atom.stereoParity = 0;
|
|
3189
|
-
} else {
|
|
3190
|
-
var stereoProp = stereAtomsMap.get(id);
|
|
3191
|
-
if (stereoProp) {
|
|
3192
|
-
atom.stereoLabel = stereoProp.stereoLabel;
|
|
3193
|
-
atom.stereoParity = stereoProp.stereoParity;
|
|
3194
|
-
}
|
|
3195
|
-
}
|
|
3196
|
-
});
|
|
3199
|
+
parsedStruct.setStereoLabelsToAtoms();
|
|
3197
3200
|
parsedStruct.markFragments();
|
|
3198
3201
|
if (fragment) {
|
|
3199
3202
|
if (parsedStruct.isBlank()) {
|
|
@@ -3220,23 +3223,23 @@ function load(struct, options) {
|
|
|
3220
3223
|
dispatch({
|
|
3221
3224
|
type: 'MODAL_CLOSE'
|
|
3222
3225
|
});
|
|
3223
|
-
_context.next =
|
|
3226
|
+
_context.next = 40;
|
|
3224
3227
|
break;
|
|
3225
|
-
case
|
|
3226
|
-
_context.prev =
|
|
3228
|
+
case 35:
|
|
3229
|
+
_context.prev = 35;
|
|
3227
3230
|
_context.t0 = _context["catch"](8);
|
|
3228
3231
|
ketcherCore.KetcherLogger.error('shared.ts::load', _context.t0);
|
|
3229
3232
|
dispatch(setAnalyzingFile(false));
|
|
3230
3233
|
_context.t0 && errorHandler && errorHandler(_context.t0.message);
|
|
3231
|
-
case
|
|
3232
|
-
_context.prev =
|
|
3234
|
+
case 40:
|
|
3235
|
+
_context.prev = 40;
|
|
3233
3236
|
ketcherCore.notifyRequestCompleted();
|
|
3234
|
-
return _context.finish(
|
|
3235
|
-
case
|
|
3237
|
+
return _context.finish(40);
|
|
3238
|
+
case 43:
|
|
3236
3239
|
case "end":
|
|
3237
3240
|
return _context.stop();
|
|
3238
3241
|
}
|
|
3239
|
-
}, _callee, null, [[8,
|
|
3242
|
+
}, _callee, null, [[8, 35, 40, 43]]);
|
|
3240
3243
|
}));
|
|
3241
3244
|
return function (_x, _x2) {
|
|
3242
3245
|
return _ref.apply(this, arguments);
|
|
@@ -3660,7 +3663,7 @@ var zoom = {
|
|
|
3660
3663
|
|
|
3661
3664
|
var openHelpLink = function openHelpLink() {
|
|
3662
3665
|
var _window$open;
|
|
3663
|
-
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.23.0-rc.
|
|
3666
|
+
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.23.0-rc.5\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
|
|
3664
3667
|
};
|
|
3665
3668
|
var help = {
|
|
3666
3669
|
help: {
|
|
@@ -33159,8 +33162,8 @@ var KetcherBuilder = function () {
|
|
|
33159
33162
|
initApp(element, appRoot, staticResourcesUrl, {
|
|
33160
33163
|
buttons: buttons || {},
|
|
33161
33164
|
errorHandler: errorHandler || null,
|
|
33162
|
-
version: "2.23.0-rc.
|
|
33163
|
-
buildDate: "2024-
|
|
33165
|
+
version: "2.23.0-rc.5" ,
|
|
33166
|
+
buildDate: "2024-08-22T16:03:01" ,
|
|
33164
33167
|
buildNumber: ''
|
|
33165
33168
|
}, structService, resolve, togglerComponent);
|
|
33166
33169
|
});
|