ketcher-react 3.13.0-rc.1 → 3.13.0
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 +19 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/{index.modern-90580903.js → index.modern-9c208c87.js} +3 -3
- package/dist/cjs/index.modern-9c208c87.js.map +1 -0
- package/dist/cjs/script/ui/views/components/MonomerCreationWizard/MonomerCreationWizard.types.d.ts +1 -1
- package/dist/index.js +19 -5
- package/dist/index.js.map +1 -1
- package/dist/{index.modern-f4e4476a.js → index.modern-d2c32a92.js} +3 -3
- package/dist/index.modern-d2c32a92.js.map +1 -0
- package/dist/script/ui/views/components/MonomerCreationWizard/MonomerCreationWizard.types.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/index.modern-90580903.js.map +0 -1
- package/dist/index.modern-f4e4476a.js.map +0 -1
package/dist/cjs/script/ui/views/components/MonomerCreationWizard/MonomerCreationWizard.types.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare type WizardValues = {
|
|
|
19
19
|
[key in StringWizardFormFieldId]: string;
|
|
20
20
|
};
|
|
21
21
|
export declare type WizardNotificationType = 'info' | 'error' | 'warning';
|
|
22
|
-
export declare type WizardNotificationId = 'defaultAttachmentPoints' | 'emptyMandatoryFields' | 'invalidSymbol' | 'symbolExists' | 'editingIsNotAllowed' | 'noAttachmentPoints' | 'incorrectAttachmentPointsOrder' | 'creationSuccessful' | 'creationRNASuccessful' | 'incontinuousStructure' | 'notUniqueModificationTypes' | 'modificationTypeExists' | 'notMinimalViableStructure' | 'impureStructure' | 'notUniqueHELMAlias' | 'invalidHELMAlias' | 'invalidRnaPresetStructure' | 'notUniquePresetCode' | 'invalidPresetCode';
|
|
22
|
+
export declare type WizardNotificationId = 'defaultAttachmentPoints' | 'emptyMandatoryFields' | 'invalidSymbol' | 'symbolExists' | 'editingIsNotAllowed' | 'noAttachmentPoints' | 'incorrectAttachmentPointsOrder' | 'attachmentPointsNotUnique' | 'creationSuccessful' | 'creationRNASuccessful' | 'incontinuousStructure' | 'notUniqueModificationTypes' | 'modificationTypeExists' | 'notMinimalViableStructure' | 'impureStructure' | 'notUniqueHELMAlias' | 'invalidHELMAlias' | 'invalidRnaPresetStructure' | 'notUniquePresetCode' | 'invalidPresetCode';
|
|
23
23
|
export declare type WizardNotificationTypeMap = Record<WizardNotificationId, WizardNotificationType>;
|
|
24
24
|
export declare type WizardNotificationMessageMap = Record<WizardNotificationId, string>;
|
|
25
25
|
export declare type WizardNotification = {
|
package/dist/index.js
CHANGED
|
@@ -8507,7 +8507,7 @@ var zoom = {
|
|
|
8507
8507
|
|
|
8508
8508
|
var openHelpLink = function openHelpLink() {
|
|
8509
8509
|
var _window$open;
|
|
8510
|
-
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v3.13.0
|
|
8510
|
+
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v3.13.0\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
|
|
8511
8511
|
};
|
|
8512
8512
|
var help = {
|
|
8513
8513
|
help: {
|
|
@@ -28398,6 +28398,7 @@ var NotificationMessages = {
|
|
|
28398
28398
|
editingIsNotAllowed: 'Editing of the structure is not allowed.',
|
|
28399
28399
|
noAttachmentPoints: 'The monomer must have at least one attachment point.',
|
|
28400
28400
|
incorrectAttachmentPointsOrder: 'Attachment point numbers must be in order, but R1 and R2 may be skipped.',
|
|
28401
|
+
attachmentPointsNotUnique: 'Only one attachment point can have the same number.',
|
|
28401
28402
|
creationSuccessful: 'The monomer was successfully added to the library.',
|
|
28402
28403
|
creationRNASuccessful: 'The preset was successfully added to the library.',
|
|
28403
28404
|
incontinuousStructure: 'All monomers must have a continuous structure.',
|
|
@@ -28419,6 +28420,7 @@ var NotificationTypes = {
|
|
|
28419
28420
|
editingIsNotAllowed: 'error',
|
|
28420
28421
|
noAttachmentPoints: 'error',
|
|
28421
28422
|
incorrectAttachmentPointsOrder: 'error',
|
|
28423
|
+
attachmentPointsNotUnique: 'error',
|
|
28422
28424
|
creationSuccessful: 'info',
|
|
28423
28425
|
creationRNASuccessful: 'info',
|
|
28424
28426
|
incontinuousStructure: 'error',
|
|
@@ -32701,7 +32703,7 @@ var MonomerCreationWizard = function MonomerCreationWizard() {
|
|
|
32701
32703
|
return needSaveMonomers;
|
|
32702
32704
|
};
|
|
32703
32705
|
var validateRnaPresetWizard = function validateRnaPresetWizard(assignedAttachmentPointsByMonomer) {
|
|
32704
|
-
var _rnaPresetWizardState16, _rnaPresetWizardState17, _rnaPresetWizardState18, _rnaPresetWizardState19;
|
|
32706
|
+
var _rnaPresetWizardState16, _rnaPresetWizardState17, _rnaPresetWizardState18, _assignedAttachmentPo, _assignedAttachmentPo2, _assignedAttachmentPo3, _assignedAttachmentPo4, _rnaPresetWizardState19;
|
|
32705
32707
|
var needSaveMonomers = true;
|
|
32706
32708
|
var componentsToValidate = [{
|
|
32707
32709
|
name: 'base',
|
|
@@ -32752,6 +32754,18 @@ var MonomerCreationWizard = function MonomerCreationWizard() {
|
|
|
32752
32754
|
editor: editor
|
|
32753
32755
|
});
|
|
32754
32756
|
}
|
|
32757
|
+
if ((_assignedAttachmentPo = assignedAttachmentPointsByMonomer.get(rnaPresetWizardState.sugar)) !== null && _assignedAttachmentPo !== void 0 && _assignedAttachmentPo.get(AttachmentPointName.R2) || (_assignedAttachmentPo2 = assignedAttachmentPointsByMonomer.get(rnaPresetWizardState.phosphate)) !== null && _assignedAttachmentPo2 !== void 0 && _assignedAttachmentPo2.get(AttachmentPointName.R1) || (_assignedAttachmentPo3 = assignedAttachmentPointsByMonomer.get(rnaPresetWizardState.sugar)) !== null && _assignedAttachmentPo3 !== void 0 && _assignedAttachmentPo3.get(AttachmentPointName.R3) || (_assignedAttachmentPo4 = assignedAttachmentPointsByMonomer.get(rnaPresetWizardState.base)) !== null && _assignedAttachmentPo4 !== void 0 && _assignedAttachmentPo4.get(AttachmentPointName.R1)) {
|
|
32758
|
+
needSaveMonomers = false;
|
|
32759
|
+
rnaPresetWizardStateDispatch({
|
|
32760
|
+
type: 'SetNotifications',
|
|
32761
|
+
notifications: new Map([['invalidRnaPresetStructure', {
|
|
32762
|
+
type: 'error',
|
|
32763
|
+
message: NotificationMessages.attachmentPointsNotUnique
|
|
32764
|
+
}]]),
|
|
32765
|
+
rnaComponentKey: 'preset',
|
|
32766
|
+
editor: editor
|
|
32767
|
+
});
|
|
32768
|
+
}
|
|
32755
32769
|
var presetCode = (_rnaPresetWizardState19 = rnaPresetWizardState.preset.name) === null || _rnaPresetWizardState19 === void 0 ? void 0 : _rnaPresetWizardState19.trim();
|
|
32756
32770
|
if (!presetCode) {
|
|
32757
32771
|
needSaveMonomers = false;
|
|
@@ -41459,8 +41473,8 @@ var KetcherBuilder = function () {
|
|
|
41459
41473
|
cleanup = initApp(prevKetcherId, ketcherId, element, appRoot, staticResourcesUrl, {
|
|
41460
41474
|
buttons: buttons || {},
|
|
41461
41475
|
errorHandler: errorHandler || null,
|
|
41462
|
-
version: "3.13.0
|
|
41463
|
-
buildDate: "2026-
|
|
41476
|
+
version: "3.13.0" ,
|
|
41477
|
+
buildDate: "2026-06-10T09:23:50" ,
|
|
41464
41478
|
buildNumber: '',
|
|
41465
41479
|
customButtons: customButtons || []
|
|
41466
41480
|
}, structService, resolve, togglerComponent);
|
|
@@ -41761,7 +41775,7 @@ var ModeControl = function ModeControl(_ref3) {
|
|
|
41761
41775
|
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; }
|
|
41762
41776
|
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$1(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; }
|
|
41763
41777
|
var MacromoleculesEditorComponent = lazy(function () {
|
|
41764
|
-
return import('./index.modern-
|
|
41778
|
+
return import('./index.modern-d2c32a92.js');
|
|
41765
41779
|
});
|
|
41766
41780
|
var Editor = function Editor(props) {
|
|
41767
41781
|
var _useState = useState(false),
|