ketcher-react 2.24.0-rc.2 → 2.24.0-rc.3
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 +28 -12
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +28 -12
- 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
|
}
|
|
@@ -3670,7 +3686,7 @@ var zoom = {
|
|
|
3670
3686
|
|
|
3671
3687
|
var openHelpLink = function openHelpLink() {
|
|
3672
3688
|
var _window$open;
|
|
3673
|
-
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.24.0-rc.
|
|
3689
|
+
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.24.0-rc.3\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
|
|
3674
3690
|
};
|
|
3675
3691
|
var help = {
|
|
3676
3692
|
help: {
|
|
@@ -33498,8 +33514,8 @@ var KetcherBuilder = function () {
|
|
|
33498
33514
|
cleanup = initApp(element, appRoot, staticResourcesUrl, {
|
|
33499
33515
|
buttons: buttons || {},
|
|
33500
33516
|
errorHandler: errorHandler || null,
|
|
33501
|
-
version: "2.24.0-rc.
|
|
33502
|
-
buildDate: "2024-08-
|
|
33517
|
+
version: "2.24.0-rc.3" ,
|
|
33518
|
+
buildDate: "2024-08-20T13:09:11" ,
|
|
33503
33519
|
buildNumber: ''
|
|
33504
33520
|
}, structService, resolve, togglerComponent);
|
|
33505
33521
|
});
|