ketcher-react 2.23.0-rc.4 → 2.23.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/index.js +13 -26
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +14 -27
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -24,7 +24,7 @@ import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
|
24
24
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
25
25
|
import _classCallCheck$2 from '@babel/runtime/helpers/classCallCheck';
|
|
26
26
|
import _createClass$2 from '@babel/runtime/helpers/createClass';
|
|
27
|
-
import { KetSerializer, MolSerializer, KetcherLogger, Ketcher, defaultBondThickness, FormatterFactory, isClipboardAPIAvailable, notifyCopyCut, notifyRequestCompleted, isControlKey, StereLabelStyleType, StereoColoringType, ShowHydrogenLabels, ShowHydrogenLabelNames, SettingsManager, SdfSerializer, KETCHER_SAVED_OPTIONS_KEY, Bond as Bond$2, Elements, AtomList, getAtomType, StereoLabel, isAttachmentBond, Atom as Atom$2, findStereoAtoms, RxnArrowMode, SimpleObjectMode, SGroup as SGroup$1, Pile,
|
|
27
|
+
import { KetSerializer, MolSerializer, KetcherLogger, Ketcher, defaultBondThickness, FormatterFactory, isClipboardAPIAvailable, notifyCopyCut, notifyRequestCompleted, isControlKey, StereLabelStyleType, StereoColoringType, ShowHydrogenLabels, ShowHydrogenLabelNames, SettingsManager, SdfSerializer, KETCHER_SAVED_OPTIONS_KEY, Bond as Bond$2, Elements, AtomList, getAtomType, StereoLabel, isAttachmentBond, Atom as Atom$2, findStereoAtoms, RxnArrowMode, SimpleObjectMode, SGroup as SGroup$1, Pile, identifyStructFormat, SupportedFormat, ChemicalMimeType, RenderStruct, Struct, shortcutStr, MonomerMicromolecule, UnresolvedMonomer, FunctionalGroupsProvider, SaltsAndSolventsProvider, KetcherAsyncEvents, ElementColor, generateMenuShortcuts, Vec2, Scale, fromMultipleMove, FunctionalGroup, fromSgroupDeletion, fromFragmentDeletion, mergeMapOfItemsToSet, vectorUtils, fromBondAddition, Action, fromAtomAddition, fromAtomsAttrs, checkOverlapping, fromSeveralSgroupAddition, expandSGroupWithMultipleAttachmentPoint, SgContexts, fromSgroupAction, fromItemsFuse, ReBond, setExpandSGroup, fromBondsAttrs, OperationType, ReStruct, fromSimpleObjectResizing, fromArrowResizing, getItemsToFuse, getHoverToFuse, fromTextDeletion, fromTextUpdating, CoordinateTransformation, fromTemplateOnCanvas, fromTemplateOnBondAction, fromTemplateOnAtom, BondAttr, AtomAttr, formatProperties, ketcherProvider, runAsyncAction, getStructStringFromClipboardData, getStructure, initHotKeys, keyNorm, Fragment as Fragment$1, fromRGroupAttachmentPointUpdate, fromOneBondDeletion, bondChangingAction, fromChain, fromStereoFlagUpdate, fromOneAtomDeletion, fromArrowDeletion, fromPlusDeletion, fromSimpleObjectDeletion, fromRGroupAttachmentPointDeletion, notifyItemsToMergeInitializationComplete, fromPaste, RGroup as RGroup$2, fromRGroupFragment, fromUpdateIfThen, fromRGroupAttrs, fromArrowAddition, fromPlusAddition, fromRotate, fromFlip, fromSimpleObjectAddition, fromTextCreation, fromHighlightCreate, fromHighlightClear, provideEditorSettings, fromNewCanvas, Render, fromDescriptorsAlign, fromSgroupAttachmentPointAddition, SGroupAttachmentPoint, fromSgroupAddition, atomGetAttr, genericsList, getAtomCustomQuery, getFormatMimeTypeByFileName, getPropertiesByFormat, StereoFlag, getPropertiesByImgFormat, b64toBlob, Generics, TextCommand, DefaultStructServiceOptions } from 'ketcher-core';
|
|
28
28
|
import * as React from 'react';
|
|
29
29
|
import React__default, { createRef, Component, useRef, useEffect, useLayoutEffect, useState, useMemo, createElement, forwardRef, useCallback, Fragment as Fragment$2, PureComponent, lazy, Suspense } from 'react';
|
|
30
30
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
@@ -3077,7 +3077,7 @@ var getSelectionFromStruct = function getSelectionFromStruct(struct) {
|
|
|
3077
3077
|
function load(struct, options) {
|
|
3078
3078
|
return function () {
|
|
3079
3079
|
var _ref = _asyncToGenerator( _regeneratorRuntime.mark(function _callee(dispatch, getState) {
|
|
3080
|
-
var state, editor, server, errorHandler, _options2, isPaste, method, otherOptions, parsedStruct, _otherOptions, fragment, hasUnsupportedGroups, hasMoleculeToMonomerConnections, oldStruct,
|
|
3080
|
+
var state, editor, server, errorHandler, _options2, isPaste, method, otherOptions, parsedStruct, _otherOptions, fragment, hasUnsupportedGroups, hasMoleculeToMonomerConnections, oldStruct, isIndigoFunctionCalled;
|
|
3081
3081
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
3082
3082
|
while (1) switch (_context.prev = _context.next) {
|
|
3083
3083
|
case 0:
|
|
@@ -3131,20 +3131,7 @@ function load(struct, options) {
|
|
|
3131
3131
|
}
|
|
3132
3132
|
parsedStruct.findConnectedComponents();
|
|
3133
3133
|
parsedStruct.setImplicitHydrogen();
|
|
3134
|
-
|
|
3135
|
-
parsedStruct.atoms.forEach(function (atom, id) {
|
|
3136
|
-
var _parsedStruct$atomGet;
|
|
3137
|
-
if ((parsedStruct === null || parsedStruct === void 0 || (_parsedStruct$atomGet = parsedStruct.atomGetNeighbors(id)) === null || _parsedStruct$atomGet === void 0 ? void 0 : _parsedStruct$atomGet.length) === 0) {
|
|
3138
|
-
atom.stereoLabel = null;
|
|
3139
|
-
atom.stereoParity = 0;
|
|
3140
|
-
} else {
|
|
3141
|
-
var stereoProp = stereAtomsMap.get(id);
|
|
3142
|
-
if (stereoProp) {
|
|
3143
|
-
atom.stereoLabel = stereoProp.stereoLabel;
|
|
3144
|
-
atom.stereoParity = stereoProp.stereoParity;
|
|
3145
|
-
}
|
|
3146
|
-
}
|
|
3147
|
-
});
|
|
3134
|
+
parsedStruct.setStereoLabelsToAtoms();
|
|
3148
3135
|
parsedStruct.markFragments();
|
|
3149
3136
|
if (fragment) {
|
|
3150
3137
|
if (parsedStruct.isBlank()) {
|
|
@@ -3171,23 +3158,23 @@ function load(struct, options) {
|
|
|
3171
3158
|
dispatch({
|
|
3172
3159
|
type: 'MODAL_CLOSE'
|
|
3173
3160
|
});
|
|
3174
|
-
_context.next =
|
|
3161
|
+
_context.next = 40;
|
|
3175
3162
|
break;
|
|
3176
|
-
case
|
|
3177
|
-
_context.prev =
|
|
3163
|
+
case 35:
|
|
3164
|
+
_context.prev = 35;
|
|
3178
3165
|
_context.t0 = _context["catch"](8);
|
|
3179
3166
|
KetcherLogger.error('shared.ts::load', _context.t0);
|
|
3180
3167
|
dispatch(setAnalyzingFile(false));
|
|
3181
3168
|
_context.t0 && errorHandler && errorHandler(_context.t0.message);
|
|
3182
|
-
case
|
|
3183
|
-
_context.prev =
|
|
3169
|
+
case 40:
|
|
3170
|
+
_context.prev = 40;
|
|
3184
3171
|
notifyRequestCompleted();
|
|
3185
|
-
return _context.finish(
|
|
3186
|
-
case
|
|
3172
|
+
return _context.finish(40);
|
|
3173
|
+
case 43:
|
|
3187
3174
|
case "end":
|
|
3188
3175
|
return _context.stop();
|
|
3189
3176
|
}
|
|
3190
|
-
}, _callee, null, [[8,
|
|
3177
|
+
}, _callee, null, [[8, 35, 40, 43]]);
|
|
3191
3178
|
}));
|
|
3192
3179
|
return function (_x, _x2) {
|
|
3193
3180
|
return _ref.apply(this, arguments);
|
|
@@ -3611,7 +3598,7 @@ var zoom = {
|
|
|
3611
3598
|
|
|
3612
3599
|
var openHelpLink = function openHelpLink() {
|
|
3613
3600
|
var _window$open;
|
|
3614
|
-
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.23.0
|
|
3601
|
+
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.23.0\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
|
|
3615
3602
|
};
|
|
3616
3603
|
var help = {
|
|
3617
3604
|
help: {
|
|
@@ -33110,8 +33097,8 @@ var KetcherBuilder = function () {
|
|
|
33110
33097
|
initApp(element, appRoot, staticResourcesUrl, {
|
|
33111
33098
|
buttons: buttons || {},
|
|
33112
33099
|
errorHandler: errorHandler || null,
|
|
33113
|
-
version: "2.23.0
|
|
33114
|
-
buildDate: "2024-
|
|
33100
|
+
version: "2.23.0" ,
|
|
33101
|
+
buildDate: "2024-09-10T00:38:38" ,
|
|
33115
33102
|
buildNumber: ''
|
|
33116
33103
|
}, structService, resolve, togglerComponent);
|
|
33117
33104
|
});
|