ketcher-react 2.7.1 → 2.7.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.
@@ -2873,7 +2873,7 @@ var zoom = {
2873
2873
 
2874
2874
  var openHelpLink = function openHelpLink() {
2875
2875
  var _window$open;
2876
- return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.7.1\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
2876
+ return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.7.2\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
2877
2877
  };
2878
2878
  var help = {
2879
2879
  help: {
@@ -13641,7 +13641,7 @@ var TemplateTool = function () {
13641
13641
  function TemplateTool(editor, tmpl) {
13642
13642
  _classCallCheck(this, TemplateTool);
13643
13643
  this.editor = editor;
13644
- this.mode = tmpl.mode;
13644
+ this.mode = getTemplateMode(tmpl);
13645
13645
  this.editor.selection(null);
13646
13646
  this.template = {
13647
13647
  aid: parseInt(tmpl.aid) || 0,
@@ -14007,6 +14007,12 @@ function addSaltsAndSolventsOnCanvasWithoutMerge(restruct, template, dragCtx, ed
14007
14007
  info: false
14008
14008
  });
14009
14009
  }
14010
+ function getTemplateMode(tmpl) {
14011
+ var _tmpl$props;
14012
+ if (tmpl.mode) return tmpl.mode;
14013
+ if (['Functional Groups', 'Salts and Solvents'].includes((_tmpl$props = tmpl.props) === null || _tmpl$props === void 0 ? void 0 : _tmpl$props.group)) return 'fg';
14014
+ return null;
14015
+ }
14010
14016
  function getSign(molecule, bond, v) {
14011
14017
  var begin = molecule.atoms.get(bond.begin).pp;
14012
14018
  var end = molecule.atoms.get(bond.end).pp;
@@ -22601,8 +22607,8 @@ var KetcherBuilder = function () {
22601
22607
  initApp(element, staticResourcesUrl, {
22602
22608
  buttons: buttons || {},
22603
22609
  errorHandler: errorHandler || null,
22604
- version: "2.7.1" ,
22605
- buildDate: "2023-01-31T15:06:32" ,
22610
+ version: "2.7.2" ,
22611
+ buildDate: "2023-02-08T19:57:37" ,
22606
22612
  buildNumber: ''
22607
22613
  }, structService, resolve);
22608
22614
  });