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.modern.js
CHANGED
|
@@ -491,7 +491,7 @@ function _copy(_x3) {
|
|
|
491
491
|
}
|
|
492
492
|
function _copy2() {
|
|
493
493
|
_copy2 = _asyncToGenerator( _regeneratorRuntime.mark(function _callee3(data) {
|
|
494
|
-
var clipboardItemData;
|
|
494
|
+
var clipboardItemData, clipboardItem, textData;
|
|
495
495
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
496
496
|
while (1) switch (_context3.prev = _context3.next) {
|
|
497
497
|
case 0:
|
|
@@ -503,20 +503,36 @@ function _copy2() {
|
|
|
503
503
|
type: mimeTypeToSet
|
|
504
504
|
}));
|
|
505
505
|
});
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
506
|
+
clipboardItem = new ClipboardItem(clipboardItemData);
|
|
507
|
+
if (!(clipboardItem.presentationStyle && clipboardItem.presentationStyle === 'unspecified')) {
|
|
508
|
+
_context3.next = 11;
|
|
509
|
+
break;
|
|
510
|
+
}
|
|
511
|
+
if (!navigator.clipboard.writeText) {
|
|
512
|
+
_context3.next = 9;
|
|
513
|
+
break;
|
|
514
|
+
}
|
|
515
|
+
textData = data['text/plain'] || JSON.stringify(data);
|
|
516
|
+
_context3.next = 9;
|
|
517
|
+
return navigator.clipboard.writeText(textData);
|
|
518
|
+
case 9:
|
|
519
|
+
_context3.next = 13;
|
|
510
520
|
break;
|
|
511
|
-
case
|
|
512
|
-
_context3.
|
|
521
|
+
case 11:
|
|
522
|
+
_context3.next = 13;
|
|
523
|
+
return navigator.clipboard.write([clipboardItem]);
|
|
524
|
+
case 13:
|
|
525
|
+
_context3.next = 19;
|
|
526
|
+
break;
|
|
527
|
+
case 15:
|
|
528
|
+
_context3.prev = 15;
|
|
513
529
|
_context3.t0 = _context3["catch"](0);
|
|
514
530
|
KetcherLogger.error('cliparea.jsx::copy', _context3.t0);
|
|
515
|
-
case
|
|
531
|
+
case 19:
|
|
516
532
|
case "end":
|
|
517
533
|
return _context3.stop();
|
|
518
534
|
}
|
|
519
|
-
}, _callee3, null, [[0,
|
|
535
|
+
}, _callee3, null, [[0, 15]]);
|
|
520
536
|
}));
|
|
521
537
|
return _copy2.apply(this, arguments);
|
|
522
538
|
}
|
|
@@ -3605,7 +3621,7 @@ var zoom = {
|
|
|
3605
3621
|
|
|
3606
3622
|
var openHelpLink = function openHelpLink() {
|
|
3607
3623
|
var _window$open;
|
|
3608
|
-
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.24.0-rc.
|
|
3624
|
+
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();
|
|
3609
3625
|
};
|
|
3610
3626
|
var help = {
|
|
3611
3627
|
help: {
|
|
@@ -33433,8 +33449,8 @@ var KetcherBuilder = function () {
|
|
|
33433
33449
|
cleanup = initApp(element, appRoot, staticResourcesUrl, {
|
|
33434
33450
|
buttons: buttons || {},
|
|
33435
33451
|
errorHandler: errorHandler || null,
|
|
33436
|
-
version: "2.24.0-rc.
|
|
33437
|
-
buildDate: "2024-08-
|
|
33452
|
+
version: "2.24.0-rc.3" ,
|
|
33453
|
+
buildDate: "2024-08-20T13:09:11" ,
|
|
33438
33454
|
buildNumber: ''
|
|
33439
33455
|
}, structService, resolve, togglerComponent);
|
|
33440
33456
|
});
|