ketcher-react 3.12.0-rc.1 → 3.12.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 +18 -13
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/{index.modern-4b58287a.js → index.modern-b0607a67.js} +4 -3
- package/dist/cjs/index.modern-b0607a67.js.map +1 -0
- package/dist/cjs/script/editor/Editor.d.ts +2 -2
- package/dist/index.js +18 -13
- package/dist/index.js.map +1 -1
- package/dist/{index.modern-521d26f9.js → index.modern-b9db71c5.js} +5 -4
- package/dist/index.modern-b9db71c5.js.map +1 -0
- package/dist/script/editor/Editor.d.ts +2 -2
- package/package.json +1 -1
- package/dist/cjs/index.modern-4b58287a.js.map +0 -1
- package/dist/index.modern-521d26f9.js.map +0 -1
package/dist/cjs/index.js
CHANGED
|
@@ -8535,7 +8535,7 @@ var zoom = {
|
|
|
8535
8535
|
|
|
8536
8536
|
var openHelpLink = function openHelpLink() {
|
|
8537
8537
|
var _window$open;
|
|
8538
|
-
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v3.12.0
|
|
8538
|
+
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v3.12.0\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
|
|
8539
8539
|
};
|
|
8540
8540
|
var help = {
|
|
8541
8541
|
help: {
|
|
@@ -26297,6 +26297,7 @@ var Editor$3 = function () {
|
|
|
26297
26297
|
var _this2 = this;
|
|
26298
26298
|
var forceAddNewLeavingGroupAtom = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
|
|
26299
26299
|
var leavingAtomLabel = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : ketcherCore.AtomLabel.H;
|
|
26300
|
+
var leavingAtomPosition = arguments.length > 6 ? arguments[6] : undefined;
|
|
26300
26301
|
assert_1(this.monomerCreationState);
|
|
26301
26302
|
var potentialLeavingAtoms = this.monomerCreationState.potentialAttachmentPoints.get(atomId);
|
|
26302
26303
|
var leavingAtomId;
|
|
@@ -26326,7 +26327,7 @@ var Editor$3 = function () {
|
|
|
26326
26327
|
stereo: ketcherCore.Bond.PATTERN.STEREO.NONE
|
|
26327
26328
|
}, atomId, {
|
|
26328
26329
|
label: leavingAtomLabel
|
|
26329
|
-
}),
|
|
26330
|
+
}, undefined, leavingAtomPosition),
|
|
26330
26331
|
_fromBondAddition2 = _slicedToArray__default["default"](_fromBondAddition, 4),
|
|
26331
26332
|
bondAdditionAction = _fromBondAddition2[0],
|
|
26332
26333
|
endAtomId = _fromBondAddition2[2],
|
|
@@ -32487,14 +32488,18 @@ var MonomerCreationWizard = function MonomerCreationWizard() {
|
|
|
32487
32488
|
});
|
|
32488
32489
|
var bondBetweenSugarAndBase = _toConsumableArray__default["default"](bondsBetweenSugarAndBase.values())[0];
|
|
32489
32490
|
var bondBetweenSugarAndPhosphate = _toConsumableArray__default["default"](bondsBetweenSugarAndPhosphate.values())[0];
|
|
32490
|
-
var
|
|
32491
|
-
var
|
|
32492
|
-
var
|
|
32493
|
-
var
|
|
32494
|
-
|
|
32495
|
-
|
|
32496
|
-
|
|
32497
|
-
|
|
32491
|
+
var sugarR3AttachmentPointAtomId = sugarStructure !== null && sugarStructure !== void 0 && (_sugarStructure$atoms5 = sugarStructure.atoms) !== null && _sugarStructure$atoms5 !== void 0 && _sugarStructure$atoms5.includes(bondBetweenSugarAndBase.begin) ? bondBetweenSugarAndBase.begin : bondBetweenSugarAndBase.end;
|
|
32492
|
+
var sugarR3AttachmentAtom = struct.atoms.get(sugarR3AttachmentPointAtomId);
|
|
32493
|
+
var sugarR2AttachmentPointAtomId = sugarStructure !== null && sugarStructure !== void 0 && (_sugarStructure$atoms6 = sugarStructure.atoms) !== null && _sugarStructure$atoms6 !== void 0 && _sugarStructure$atoms6.includes(bondBetweenSugarAndPhosphate.begin) ? bondBetweenSugarAndPhosphate.begin : bondBetweenSugarAndPhosphate.end;
|
|
32494
|
+
var sugarR2AttachmentAtom = struct.atoms.get(sugarR2AttachmentPointAtomId);
|
|
32495
|
+
var baseR1AttachmentPointAtomId = baseStructure !== null && baseStructure !== void 0 && (_baseStructure$atoms3 = baseStructure.atoms) !== null && _baseStructure$atoms3 !== void 0 && _baseStructure$atoms3.includes(bondBetweenSugarAndBase.begin) ? bondBetweenSugarAndBase.begin : bondBetweenSugarAndBase.end;
|
|
32496
|
+
var baseR1AttachmentAtom = struct.atoms.get(baseR1AttachmentPointAtomId);
|
|
32497
|
+
var phosphateR1AttachmentPointAtomId = phosphateStructure !== null && phosphateStructure !== void 0 && (_phosphateStructure$a3 = phosphateStructure.atoms) !== null && _phosphateStructure$a3 !== void 0 && _phosphateStructure$a3.includes(bondBetweenSugarAndPhosphate.begin) ? bondBetweenSugarAndPhosphate.begin : bondBetweenSugarAndPhosphate.end;
|
|
32498
|
+
var phosphateR1AttachmentAtom = struct.atoms.get(phosphateR1AttachmentPointAtomId);
|
|
32499
|
+
editor.assignConnectionPointAtom(baseR1AttachmentPointAtomId, ketcherCore.AttachmentPointName.R1, assignedAttachmentPointsByMonomer.get(rnaPresetWizardState.base), rnaPresetWizardState.base.structure, true, getLeavingAtomForAttachmentPoint(ketcherCore.KetMonomerClass.Base, ketcherCore.AttachmentPointName.R1), sugarR3AttachmentAtom === null || sugarR3AttachmentAtom === void 0 ? void 0 : sugarR3AttachmentAtom.pp);
|
|
32500
|
+
editor.assignConnectionPointAtom(sugarR2AttachmentPointAtomId, ketcherCore.AttachmentPointName.R2, assignedAttachmentPointsByMonomer.get(rnaPresetWizardState.sugar), rnaPresetWizardState.sugar.structure, true, getLeavingAtomForAttachmentPoint(ketcherCore.KetMonomerClass.Sugar, ketcherCore.AttachmentPointName.R2), phosphateR1AttachmentAtom === null || phosphateR1AttachmentAtom === void 0 ? void 0 : phosphateR1AttachmentAtom.pp);
|
|
32501
|
+
editor.assignConnectionPointAtom(sugarR3AttachmentPointAtomId, ketcherCore.AttachmentPointName.R3, assignedAttachmentPointsByMonomer.get(rnaPresetWizardState.sugar), rnaPresetWizardState.sugar.structure, true, getLeavingAtomForAttachmentPoint(ketcherCore.KetMonomerClass.Sugar, ketcherCore.AttachmentPointName.R3), baseR1AttachmentAtom === null || baseR1AttachmentAtom === void 0 ? void 0 : baseR1AttachmentAtom.pp);
|
|
32502
|
+
editor.assignConnectionPointAtom(phosphateR1AttachmentPointAtomId, ketcherCore.AttachmentPointName.R1, assignedAttachmentPointsByMonomer.get(rnaPresetWizardState.phosphate), rnaPresetWizardState.phosphate.structure, true, getLeavingAtomForAttachmentPoint(ketcherCore.KetMonomerClass.Phosphate, ketcherCore.AttachmentPointName.R1), sugarR2AttachmentAtom === null || sugarR2AttachmentAtom === void 0 ? void 0 : sugarR2AttachmentAtom.pp);
|
|
32498
32503
|
}
|
|
32499
32504
|
monomersToSave.forEach(function (monomerToSave) {
|
|
32500
32505
|
var atomIdMap = new Map();
|
|
@@ -40976,8 +40981,8 @@ var KetcherBuilder = function () {
|
|
|
40976
40981
|
cleanup = initApp(prevKetcherId, ketcherId, element, appRoot, staticResourcesUrl, {
|
|
40977
40982
|
buttons: buttons || {},
|
|
40978
40983
|
errorHandler: errorHandler || null,
|
|
40979
|
-
version: "3.12.0
|
|
40980
|
-
buildDate: "2026-
|
|
40984
|
+
version: "3.12.0" ,
|
|
40985
|
+
buildDate: "2026-03-04T11:10:15" ,
|
|
40981
40986
|
buildNumber: '',
|
|
40982
40987
|
customButtons: customButtons || []
|
|
40983
40988
|
}, structService, resolve, togglerComponent);
|
|
@@ -41278,7 +41283,7 @@ var ModeControl = function ModeControl(_ref3) {
|
|
|
41278
41283
|
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; }
|
|
41279
41284
|
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; }
|
|
41280
41285
|
var MacromoleculesEditorComponent = React.lazy(function () {
|
|
41281
|
-
return Promise.resolve().then(function () { return require('./index.modern-
|
|
41286
|
+
return Promise.resolve().then(function () { return require('./index.modern-b0607a67.js'); });
|
|
41282
41287
|
});
|
|
41283
41288
|
var Editor = function Editor(props) {
|
|
41284
41289
|
var _useState = React.useState(false),
|