ketcher-react 3.9.0-rc.2 → 3.9.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 +13 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/{index.modern-bddb9120.js → index.modern-9d7f4284.js} +3 -3
- package/dist/cjs/index.modern-9d7f4284.js.map +1 -0
- package/dist/cjs/script/builders/ketcher/ButtonName.d.ts +1 -1
- package/dist/cjs/script/ui/action/tools.d.ts +1 -0
- package/dist/cjs/script/ui/state/options/selectors/index.d.ts +16 -0
- package/dist/index.js +13 -5
- package/dist/index.js.map +1 -1
- package/dist/{index.modern-87b29a80.js → index.modern-e3b4cf3f.js} +3 -3
- package/dist/index.modern-e3b4cf3f.js.map +1 -0
- package/dist/script/builders/ketcher/ButtonName.d.ts +1 -1
- package/dist/script/ui/action/tools.d.ts +1 -0
- package/dist/script/ui/state/options/selectors/index.d.ts +16 -0
- package/package.json +1 -1
- package/dist/cjs/index.modern-bddb9120.js.map +0 -1
- package/dist/index.modern-87b29a80.js.map +0 -1
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
import { MULTITAIL_ARROW_TOOL_NAME } from 'ketcher-core';
|
|
17
|
-
export declare type ButtonName = 'layout' | 'clean' | 'arom' | 'dearom' | 'cip' | 'check' | 'analyse' | 'recognize' | 'miew' | 'settings' | 'help' | 'about' | 'fullscreen' | 'sgroup' | 'reaction-plus' | 'arrows' | 'reaction-arrow-open-angle' | 'reaction-arrow-filled-triangle' | 'reaction-arrow-filled-bow' | 'reaction-arrow-dashed-open-angle' | 'reaction-arrow-failed' | 'reaction-arrow-both-ends-filled-triangle' | 'reaction-arrow-equilibrium-filled-half-bow' | 'reaction-arrow-equilibrium-filled-triangle' | 'reaction-arrow-equilibrium-open-angle' | 'reaction-arrow-unbalanced-equilibrium-filled-half-bow' | 'reaction-arrow-unbalanced-equilibrium-open-half-angle' | 'reaction-arrow-unbalanced-equilibrium-large-filled-half-bow' | 'reaction-arrow-unbalanced-equilibrium-filled-half-triangle' | 'reaction-arrow-elliptical-arc-arrow-filled-bow' | 'reaction-arrow-elliptical-arc-arrow-filled-triangle' | 'reaction-arrow-elliptical-arc-arrow-open-angle' | 'reaction-arrow-elliptical-arc-arrow-open-half-angle' | typeof MULTITAIL_ARROW_TOOL_NAME | 'reaction-mapping-tools' | 'reaction-automap' | 'reaction-map' | 'reaction-unmap' | 'rgroup' | 'rgroup-label' | 'rgroup-fragment' | 'rgroup-attpoints' | 'shape' | 'shape-ellipse' | 'shape-rectangle' | 'shape-line' | 'text' | 'enhanced-stereo';
|
|
17
|
+
export declare type ButtonName = 'layout' | 'clean' | 'arom' | 'dearom' | 'cip' | 'check' | 'analyse' | 'recognize' | 'miew' | 'settings' | 'help' | 'about' | 'fullscreen' | 'sgroup' | 'reaction-plus' | 'arrows' | 'reaction-arrow-open-angle' | 'reaction-arrow-filled-triangle' | 'reaction-arrow-filled-bow' | 'reaction-arrow-dashed-open-angle' | 'reaction-arrow-failed' | 'reaction-arrow-both-ends-filled-triangle' | 'reaction-arrow-equilibrium-filled-half-bow' | 'reaction-arrow-equilibrium-filled-triangle' | 'reaction-arrow-equilibrium-open-angle' | 'reaction-arrow-unbalanced-equilibrium-filled-half-bow' | 'reaction-arrow-unbalanced-equilibrium-open-half-angle' | 'reaction-arrow-unbalanced-equilibrium-large-filled-half-bow' | 'reaction-arrow-unbalanced-equilibrium-filled-half-triangle' | 'reaction-arrow-elliptical-arc-arrow-filled-bow' | 'reaction-arrow-elliptical-arc-arrow-filled-triangle' | 'reaction-arrow-elliptical-arc-arrow-open-angle' | 'reaction-arrow-elliptical-arc-arrow-open-half-angle' | typeof MULTITAIL_ARROW_TOOL_NAME | 'reaction-mapping-tools' | 'reaction-automap' | 'reaction-map' | 'reaction-unmap' | 'rgroup' | 'rgroup-label' | 'rgroup-fragment' | 'rgroup-attpoints' | 'shape' | 'shape-ellipse' | 'shape-rectangle' | 'shape-line' | 'text' | 'enhanced-stereo' | 'create-monomer';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/****************************************************************************
|
|
2
|
+
* Copyright 2021 EPAM Systems
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
***************************************************************************/
|
|
16
|
+
export declare const optionsSelector: (state: any) => any;
|
package/dist/index.js
CHANGED
|
@@ -3202,6 +3202,9 @@ var toolActions = (_toolActions = {
|
|
|
3202
3202
|
},
|
|
3203
3203
|
disabled: function disabled(editor) {
|
|
3204
3204
|
return editor.isMonomerCreationWizardActive || !editor.isMonomerCreationWizardEnabled;
|
|
3205
|
+
},
|
|
3206
|
+
hidden: function hidden(options) {
|
|
3207
|
+
return isHidden(options, CREATE_MONOMER_TOOL_NAME);
|
|
3205
3208
|
}
|
|
3206
3209
|
}), _defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_toolActions, "shapes", {
|
|
3207
3210
|
disabled: function disabled(editor) {
|
|
@@ -3891,7 +3894,7 @@ var zoom = {
|
|
|
3891
3894
|
|
|
3892
3895
|
var openHelpLink = function openHelpLink() {
|
|
3893
3896
|
var _window$open;
|
|
3894
|
-
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v3.9.0
|
|
3897
|
+
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v3.9.0\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
|
|
3895
3898
|
};
|
|
3896
3899
|
var help = {
|
|
3897
3900
|
help: {
|
|
@@ -27937,6 +27940,10 @@ var useCreateMonomer = function useCreateMonomer() {
|
|
|
27937
27940
|
return [handler, disabled];
|
|
27938
27941
|
};
|
|
27939
27942
|
|
|
27943
|
+
var optionsSelector = function optionsSelector(state) {
|
|
27944
|
+
return state.options;
|
|
27945
|
+
};
|
|
27946
|
+
|
|
27940
27947
|
function ownKeys$O(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; }
|
|
27941
27948
|
function _objectSpread$O(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$O(Object(t), !0).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$O(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27942
27949
|
var bondNames = getBondNames(tools);
|
|
@@ -27977,6 +27984,7 @@ var SelectionMenuItems = function SelectionMenuItems(props) {
|
|
|
27977
27984
|
color: color === '' ? 'transparent' : color
|
|
27978
27985
|
});
|
|
27979
27986
|
};
|
|
27987
|
+
var options = useSelector(optionsSelector);
|
|
27980
27988
|
return jsxs(Fragment, {
|
|
27981
27989
|
children: [jsx(Item, _objectSpread$O(_objectSpread$O({}, props), {}, {
|
|
27982
27990
|
"data-testid": "Edit selected bonds...-option",
|
|
@@ -28006,7 +28014,7 @@ var SelectionMenuItems = function SelectionMenuItems(props) {
|
|
|
28006
28014
|
})]
|
|
28007
28015
|
}, name);
|
|
28008
28016
|
})
|
|
28009
|
-
})), jsx(Item, _objectSpread$O(_objectSpread$O({}, props), {}, {
|
|
28017
|
+
})), !isHidden(options, CREATE_MONOMER_TOOL_NAME) && jsx(Item, _objectSpread$O(_objectSpread$O({}, props), {}, {
|
|
28010
28018
|
"data-testid": "Create a monomer-option",
|
|
28011
28019
|
onClick: handleCreateMonomer,
|
|
28012
28020
|
disabled: createMonomerDisabled,
|
|
@@ -38262,8 +38270,8 @@ var KetcherBuilder = function () {
|
|
|
38262
38270
|
cleanup = initApp(prevKetcherId, ketcherId, element, appRoot, staticResourcesUrl, {
|
|
38263
38271
|
buttons: buttons || {},
|
|
38264
38272
|
errorHandler: errorHandler || null,
|
|
38265
|
-
version: "3.9.0
|
|
38266
|
-
buildDate: "
|
|
38273
|
+
version: "3.9.0" ,
|
|
38274
|
+
buildDate: "2026-02-27T13:49:14" ,
|
|
38267
38275
|
buildNumber: '',
|
|
38268
38276
|
customButtons: customButtons || []
|
|
38269
38277
|
}, structService, resolve, togglerComponent);
|
|
@@ -38558,7 +38566,7 @@ var ModeControl = function ModeControl(_ref3) {
|
|
|
38558
38566
|
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; }
|
|
38559
38567
|
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; }
|
|
38560
38568
|
var MacromoleculesEditorComponent = lazy(function () {
|
|
38561
|
-
return import('./index.modern-
|
|
38569
|
+
return import('./index.modern-e3b4cf3f.js');
|
|
38562
38570
|
});
|
|
38563
38571
|
var Editor = function Editor(props) {
|
|
38564
38572
|
var _useState = useState(false),
|