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.
@@ -275,7 +275,9 @@ var ClipArea = function (_Component) {
275
275
  this.target = this.props.target || el.parentNode;
276
276
  this.listeners = {
277
277
  mouseup: function mouseup(event) {
278
- if (el === event.target || !isActiveElement(event.target) && _this2.props.focused()) autofocus(el);
278
+ if (el === event.target || !isActiveElement(event.target) && _this2.props.focused()) {
279
+ autoselect(el);
280
+ }
279
281
  },
280
282
  mousedown: function mousedown(event) {
281
283
  if (event.shiftKey && !isActiveElement(event.target)) event.preventDefault();
@@ -338,9 +340,8 @@ function isActiveElement(el) {
338
340
  if (el.tagName === 'INPUT' && el.type === 'button') return false;
339
341
  return ['INPUT', 'SELECT', 'TEXTAREA', 'OPTION', 'LABEL'].includes(el.tagName);
340
342
  }
341
- function autofocus(cliparea) {
343
+ function autoselect(cliparea) {
342
344
  cliparea.value = ' ';
343
- cliparea.focus();
344
345
  cliparea.select();
345
346
  }
346
347
  function _copy(cb, data) {
@@ -2837,7 +2838,7 @@ var zoom = {
2837
2838
 
2838
2839
  var openHelpLink = function openHelpLink() {
2839
2840
  var _window$open;
2840
- return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.5.0\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
2841
+ 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();
2841
2842
  };
2842
2843
  var help = {
2843
2844
  help: {
@@ -21668,8 +21669,8 @@ var KetcherBuilder = function () {
21668
21669
  initApp(element, staticResourcesUrl, {
21669
21670
  buttons: buttons || {},
21670
21671
  errorHandler: errorHandler || null,
21671
- version: "2.5.1" ,
21672
- buildDate: "2022-06-17T15:19:17" ,
21672
+ version: "2.5.2" ,
21673
+ buildDate: "2022-09-07T08:32:56" ,
21673
21674
  buildNumber: ''
21674
21675
  }, structService, resolve);
21675
21676
  });