ketcher-react 2.23.0-rc.1 → 2.23.0-rc.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 CHANGED
@@ -3660,7 +3660,7 @@ var zoom = {
3660
3660
 
3661
3661
  var openHelpLink = function openHelpLink() {
3662
3662
  var _window$open;
3663
- return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.23.0-rc.1\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
3663
+ return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.23.0-rc.2\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
3664
3664
  };
3665
3665
  var help = {
3666
3666
  help: {
@@ -13761,6 +13761,9 @@ function hideTooltip(editor) {
13761
13761
  }
13762
13762
  function showTooltip(editor, infoPanelData) {
13763
13763
  hideTooltip(editor);
13764
+ if ((infoPanelData === null || infoPanelData === void 0 ? void 0 : infoPanelData.sGroup) instanceof ketcherCore.MonomerMicromolecule && infoPanelData.sGroup.monomer instanceof ketcherCore.UnresolvedMonomer) {
13765
+ return;
13766
+ }
13764
13767
  showTooltipTimer = setTimeout(function () {
13765
13768
  editor.event.showInfo.dispatch(infoPanelData);
13766
13769
  }, TOOLTIP_DELAY);
@@ -16049,13 +16052,17 @@ function deleteFunctionalGroups(sGroupsId, struct, action) {
16049
16052
  }
16050
16053
 
16051
16054
  function getGroupIdsFromItemArrays(struct, items) {
16052
- var _items$atoms, _items$bonds;
16055
+ var _items$bonds;
16053
16056
  if (!struct.sgroups.size) return [];
16054
16057
  var groupsIds = new Set();
16055
- items === null || items === void 0 || (_items$atoms = items.atoms) === null || _items$atoms === void 0 || _items$atoms.forEach(function (atomId) {
16056
- var groupId = struct.getGroupIdFromAtomId(atomId);
16057
- if (groupId !== null) groupsIds.add(groupId);
16058
- });
16058
+ if (items !== null && items !== void 0 && items.atoms) {
16059
+ items.atoms.filter(function (atomId) {
16060
+ return !ketcherCore.Atom.isSuperatomLeavingGroupAtom(struct, atomId);
16061
+ }).forEach(function (atomId) {
16062
+ var groupId = struct.getGroupIdFromAtomId(atomId);
16063
+ if (groupId !== null) groupsIds.add(groupId);
16064
+ });
16065
+ }
16059
16066
  items === null || items === void 0 || (_items$bonds = items.bonds) === null || _items$bonds === void 0 || _items$bonds.forEach(function (bondId) {
16060
16067
  var groupId = struct.getGroupIdFromBondId(bondId);
16061
16068
  if (groupId !== null) groupsIds.add(groupId);
@@ -16096,7 +16103,9 @@ var AtomTool = function () {
16096
16103
  var action = new ketcherCore.Action();
16097
16104
  var selectedSGroupsId = editorSelection && getGroupIdsFromItemArrays(struct.molecule, editorSelection);
16098
16105
  var sgroups = struct.molecule.functionalGroups;
16099
- var atomsInFunctionalGroup = editorSelection.atoms.map(function (atom) {
16106
+ var atomsInFunctionalGroup = editorSelection.atoms.filter(function (atomId) {
16107
+ return !ketcherCore.Atom.isSuperatomLeavingGroupAtom(struct.molecule, atomId);
16108
+ }).map(function (atom) {
16100
16109
  return ketcherCore.FunctionalGroup.atomsInFunctionalGroup(sgroups, atom);
16101
16110
  });
16102
16111
  if (atomsInFunctionalGroup.some(function (atom) {
@@ -33150,8 +33159,8 @@ var KetcherBuilder = function () {
33150
33159
  initApp(element, appRoot, staticResourcesUrl, {
33151
33160
  buttons: buttons || {},
33152
33161
  errorHandler: errorHandler || null,
33153
- version: "2.23.0-rc.1" ,
33154
- buildDate: "2024-07-02T08:53:16" ,
33162
+ version: "2.23.0-rc.2" ,
33163
+ buildDate: "2024-07-10T19:46:12" ,
33155
33164
  buildNumber: ''
33156
33165
  }, structService, resolve, togglerComponent);
33157
33166
  });