ketcher-react 2.9.0-rc.7 → 2.9.0-rc.8

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 CHANGED
@@ -3076,7 +3076,7 @@ var zoom = {
3076
3076
 
3077
3077
  var openHelpLink = function openHelpLink() {
3078
3078
  var _window$open;
3079
- return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.9.0-rc.7\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
3079
+ return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.9.0-rc.8\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
3080
3080
  };
3081
3081
  var help = {
3082
3082
  help: {
@@ -12184,7 +12184,7 @@ function getGroupIdsFromItemMaps(struct, mergeMaps) {
12184
12184
  });
12185
12185
  }
12186
12186
 
12187
- function dropAndMerge(editor, mergeItems, action) {
12187
+ function dropAndMerge(editor, mergeItems, action, isPaste) {
12188
12188
  var _dropItemAction;
12189
12189
  var restruct = editor.render.ctab;
12190
12190
  var isMerging = !!mergeItems;
@@ -12201,7 +12201,7 @@ function dropAndMerge(editor, mergeItems, action) {
12201
12201
  if (isMerging) editor.selection(null);
12202
12202
  if (((_dropItemAction = dropItemAction) === null || _dropItemAction === void 0 ? void 0 : _dropItemAction.operations.length) > 0) {
12203
12203
  editor.update(dropItemAction, false, {
12204
- resizeCanvas: false
12204
+ resizeCanvas: !!isPaste
12205
12205
  });
12206
12206
  }
12207
12207
  }
@@ -13256,7 +13256,7 @@ var PasteTool = function () {
13256
13256
  } else {
13257
13257
  var action = this.action;
13258
13258
  delete this.action;
13259
- dropAndMerge(this.editor, this.mergeItems, action);
13259
+ dropAndMerge(this.editor, this.mergeItems, action, true);
13260
13260
  }
13261
13261
  }
13262
13262
  }, {
@@ -24111,8 +24111,8 @@ var KetcherBuilder = function () {
24111
24111
  initApp(element, staticResourcesUrl, {
24112
24112
  buttons: buttons || {},
24113
24113
  errorHandler: errorHandler || null,
24114
- version: "2.9.0-rc.7" ,
24115
- buildDate: "2023-04-19T07:45:20" ,
24114
+ version: "2.9.0-rc.8" ,
24115
+ buildDate: "2023-04-21T12:27:20" ,
24116
24116
  buildNumber: ''
24117
24117
  }, structService, resolve);
24118
24118
  });