ketcher-react 2.5.1 → 2.5.2
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 +7 -6
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -6
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -336,7 +336,9 @@ var ClipArea = function (_Component) {
|
|
|
336
336
|
this.target = this.props.target || el.parentNode;
|
|
337
337
|
this.listeners = {
|
|
338
338
|
mouseup: function mouseup(event) {
|
|
339
|
-
if (el === event.target || !isActiveElement(event.target) && _this2.props.focused())
|
|
339
|
+
if (el === event.target || !isActiveElement(event.target) && _this2.props.focused()) {
|
|
340
|
+
autoselect(el);
|
|
341
|
+
}
|
|
340
342
|
},
|
|
341
343
|
mousedown: function mousedown(event) {
|
|
342
344
|
if (event.shiftKey && !isActiveElement(event.target)) event.preventDefault();
|
|
@@ -399,9 +401,8 @@ function isActiveElement(el) {
|
|
|
399
401
|
if (el.tagName === 'INPUT' && el.type === 'button') return false;
|
|
400
402
|
return ['INPUT', 'SELECT', 'TEXTAREA', 'OPTION', 'LABEL'].includes(el.tagName);
|
|
401
403
|
}
|
|
402
|
-
function
|
|
404
|
+
function autoselect(cliparea) {
|
|
403
405
|
cliparea.value = ' ';
|
|
404
|
-
cliparea.focus();
|
|
405
406
|
cliparea.select();
|
|
406
407
|
}
|
|
407
408
|
function _copy(cb, data) {
|
|
@@ -2898,7 +2899,7 @@ var zoom = {
|
|
|
2898
2899
|
|
|
2899
2900
|
var openHelpLink = function openHelpLink() {
|
|
2900
2901
|
var _window$open;
|
|
2901
|
-
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.5.
|
|
2902
|
+
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.5.2\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
|
|
2902
2903
|
};
|
|
2903
2904
|
var help = {
|
|
2904
2905
|
help: {
|
|
@@ -21729,8 +21730,8 @@ var KetcherBuilder = function () {
|
|
|
21729
21730
|
initApp(element, staticResourcesUrl, {
|
|
21730
21731
|
buttons: buttons || {},
|
|
21731
21732
|
errorHandler: errorHandler || null,
|
|
21732
|
-
version: "2.5.
|
|
21733
|
-
buildDate: "2022-
|
|
21733
|
+
version: "2.5.2" ,
|
|
21734
|
+
buildDate: "2022-09-07T08:32:56" ,
|
|
21734
21735
|
buildNumber: ''
|
|
21735
21736
|
}, structService, resolve);
|
|
21736
21737
|
});
|