ketcher-react 3.13.0-rc.1 → 3.13.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/cjs/index.js CHANGED
@@ -8570,7 +8570,7 @@ var zoom = {
8570
8570
 
8571
8571
  var openHelpLink = function openHelpLink() {
8572
8572
  var _window$open;
8573
- return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v3.13.0-rc.1\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
8573
+ return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v3.13.0-rc.2\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
8574
8574
  };
8575
8575
  var help = {
8576
8576
  help: {
@@ -28461,6 +28461,7 @@ var NotificationMessages = {
28461
28461
  editingIsNotAllowed: 'Editing of the structure is not allowed.',
28462
28462
  noAttachmentPoints: 'The monomer must have at least one attachment point.',
28463
28463
  incorrectAttachmentPointsOrder: 'Attachment point numbers must be in order, but R1 and R2 may be skipped.',
28464
+ attachmentPointsNotUnique: 'Only one attachment point can have the same number.',
28464
28465
  creationSuccessful: 'The monomer was successfully added to the library.',
28465
28466
  creationRNASuccessful: 'The preset was successfully added to the library.',
28466
28467
  incontinuousStructure: 'All monomers must have a continuous structure.',
@@ -28482,6 +28483,7 @@ var NotificationTypes = {
28482
28483
  editingIsNotAllowed: 'error',
28483
28484
  noAttachmentPoints: 'error',
28484
28485
  incorrectAttachmentPointsOrder: 'error',
28486
+ attachmentPointsNotUnique: 'error',
28485
28487
  creationSuccessful: 'info',
28486
28488
  creationRNASuccessful: 'info',
28487
28489
  incontinuousStructure: 'error',
@@ -32764,7 +32766,7 @@ var MonomerCreationWizard = function MonomerCreationWizard() {
32764
32766
  return needSaveMonomers;
32765
32767
  };
32766
32768
  var validateRnaPresetWizard = function validateRnaPresetWizard(assignedAttachmentPointsByMonomer) {
32767
- var _rnaPresetWizardState16, _rnaPresetWizardState17, _rnaPresetWizardState18, _rnaPresetWizardState19;
32769
+ var _rnaPresetWizardState16, _rnaPresetWizardState17, _rnaPresetWizardState18, _assignedAttachmentPo, _assignedAttachmentPo2, _assignedAttachmentPo3, _assignedAttachmentPo4, _rnaPresetWizardState19;
32768
32770
  var needSaveMonomers = true;
32769
32771
  var componentsToValidate = [{
32770
32772
  name: 'base',
@@ -32815,6 +32817,18 @@ var MonomerCreationWizard = function MonomerCreationWizard() {
32815
32817
  editor: editor
32816
32818
  });
32817
32819
  }
32820
+ if ((_assignedAttachmentPo = assignedAttachmentPointsByMonomer.get(rnaPresetWizardState.sugar)) !== null && _assignedAttachmentPo !== void 0 && _assignedAttachmentPo.get(ketcherCore.AttachmentPointName.R2) || (_assignedAttachmentPo2 = assignedAttachmentPointsByMonomer.get(rnaPresetWizardState.phosphate)) !== null && _assignedAttachmentPo2 !== void 0 && _assignedAttachmentPo2.get(ketcherCore.AttachmentPointName.R1) || (_assignedAttachmentPo3 = assignedAttachmentPointsByMonomer.get(rnaPresetWizardState.sugar)) !== null && _assignedAttachmentPo3 !== void 0 && _assignedAttachmentPo3.get(ketcherCore.AttachmentPointName.R3) || (_assignedAttachmentPo4 = assignedAttachmentPointsByMonomer.get(rnaPresetWizardState.base)) !== null && _assignedAttachmentPo4 !== void 0 && _assignedAttachmentPo4.get(ketcherCore.AttachmentPointName.R1)) {
32821
+ needSaveMonomers = false;
32822
+ rnaPresetWizardStateDispatch({
32823
+ type: 'SetNotifications',
32824
+ notifications: new Map([['invalidRnaPresetStructure', {
32825
+ type: 'error',
32826
+ message: NotificationMessages.attachmentPointsNotUnique
32827
+ }]]),
32828
+ rnaComponentKey: 'preset',
32829
+ editor: editor
32830
+ });
32831
+ }
32818
32832
  var presetCode = (_rnaPresetWizardState19 = rnaPresetWizardState.preset.name) === null || _rnaPresetWizardState19 === void 0 ? void 0 : _rnaPresetWizardState19.trim();
32819
32833
  if (!presetCode) {
32820
32834
  needSaveMonomers = false;
@@ -41522,8 +41536,8 @@ var KetcherBuilder = function () {
41522
41536
  cleanup = initApp(prevKetcherId, ketcherId, element, appRoot, staticResourcesUrl, {
41523
41537
  buttons: buttons || {},
41524
41538
  errorHandler: errorHandler || null,
41525
- version: "3.13.0-rc.1" ,
41526
- buildDate: "2026-02-02T20:18:37" ,
41539
+ version: "3.13.0-rc.2" ,
41540
+ buildDate: "2026-02-05T17:39:57" ,
41527
41541
  buildNumber: '',
41528
41542
  customButtons: customButtons || []
41529
41543
  }, structService, resolve, togglerComponent);
@@ -41824,7 +41838,7 @@ var ModeControl = function ModeControl(_ref3) {
41824
41838
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
41825
41839
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
41826
41840
  var MacromoleculesEditorComponent = React.lazy(function () {
41827
- return Promise.resolve().then(function () { return require('./index.modern-90580903.js'); });
41841
+ return Promise.resolve().then(function () { return require('./index.modern-046987f4.js'); });
41828
41842
  });
41829
41843
  var Editor = function Editor(props) {
41830
41844
  var _useState = React.useState(false),