ketcher-react 2.9.0-rc.6 → 2.9.0-rc.7

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.
@@ -3013,7 +3013,7 @@ var zoom = {
3013
3013
 
3014
3014
  var openHelpLink = function openHelpLink() {
3015
3015
  var _window$open;
3016
- return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.9.0-rc.6\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
3016
+ return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.9.0-rc.7\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
3017
3017
  };
3018
3018
  var help = {
3019
3019
  help: {
@@ -12137,7 +12137,9 @@ function dropAndMerge(editor, mergeItems, action) {
12137
12137
  editor.hover(null);
12138
12138
  if (isMerging) editor.selection(null);
12139
12139
  if (((_dropItemAction = dropItemAction) === null || _dropItemAction === void 0 ? void 0 : _dropItemAction.operations.length) > 0) {
12140
- editor.update(dropItemAction);
12140
+ editor.update(dropItemAction, false, {
12141
+ resizeCanvas: false
12142
+ });
12141
12143
  }
12142
12144
  }
12143
12145
  function getExpandGroupsInMergeAction(restruct, mergeItems) {
@@ -12368,9 +12370,9 @@ var SelectTool = function () {
12368
12370
  dragCtx.action = fromMultipleMove(restruct, expSel, editor.render.page2obj(event).sub(dragCtx.xy0));
12369
12371
  dragCtx.mergeItems = getMergeItems(editor, expSel);
12370
12372
  editor.hover(getHoverToFuse(dragCtx.mergeItems));
12371
- extendCanvas(rnd, event);
12373
+ resizeCanvas(rnd, event);
12372
12374
  editor.update(dragCtx.action, true, {
12373
- extendCanvas: false
12375
+ resizeCanvas: false
12374
12376
  });
12375
12377
  return true;
12376
12378
  }
@@ -12570,7 +12572,7 @@ var SelectTool = function () {
12570
12572
  }]);
12571
12573
  return SelectTool;
12572
12574
  }();
12573
- function extendCanvas(render, event) {
12575
+ function resizeCanvas(render, event) {
12574
12576
  var offset = 1;
12575
12577
  var _isCloseToEdgeOfCanva = isCloseToEdgeOfCanvas(event, render.sz),
12576
12578
  isCloseToLeftEdgeOfCanvas = _isCloseToEdgeOfCanva.isCloseToLeftEdgeOfCanvas,
@@ -13158,7 +13160,7 @@ var PasteTool = function () {
13158
13160
  pasteItems = _fromPaste6[1];
13159
13161
  this.action = _action;
13160
13162
  this.editor.update(this.action, true, {
13161
- extendCanvas: false
13163
+ resizeCanvas: false
13162
13164
  });
13163
13165
  this.mergeItems = getMergeItems(this.editor, pasteItems);
13164
13166
  this.editor.hover(getHoverToFuse(this.mergeItems));
@@ -16199,7 +16201,9 @@ var Editor$3 = function () {
16199
16201
  }
16200
16202
  this.render.ctab.setSelection(this._selection);
16201
16203
  this.event.selectionChange.dispatch(this._selection);
16202
- this.render.update();
16204
+ this.render.update(false, null, {
16205
+ resizeCanvas: false
16206
+ });
16203
16207
  return this._selection;
16204
16208
  }
16205
16209
  }, {
@@ -16218,7 +16222,7 @@ var Editor$3 = function () {
16218
16222
  key: "update",
16219
16223
  value: function update(action, ignoreHistory) {
16220
16224
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
16221
- extendCanvas: true
16225
+ resizeCanvas: true
16222
16226
  };
16223
16227
  if (action === true) {
16224
16228
  this.render.update(true, null, options);
@@ -17981,8 +17985,7 @@ function ownKeys$A(object, enumerableOnly) { var keys = Object.keys(object); if
17981
17985
  function _objectSpread$A(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$A(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$A(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
17982
17986
  function GenericInput(_ref) {
17983
17987
  _ref.schema;
17984
- var _ref$value = _ref.value,
17985
- value = _ref$value === void 0 ? '' : _ref$value,
17988
+ var value = _ref.value,
17986
17989
  onChange = _ref.onChange,
17987
17990
  innerRef = _ref.innerRef,
17988
17991
  _ref$type = _ref.type,
@@ -18004,7 +18007,7 @@ function GenericInput(_ref) {
18004
18007
  return jsxs(Fragment, {
18005
18008
  children: [jsx("input", _objectSpread$A({
18006
18009
  type: type,
18007
- value: value,
18010
+ value: value !== null && value !== void 0 ? value : '',
18008
18011
  onInput: onChange,
18009
18012
  onChange: onChange,
18010
18013
  className: clsx(classes$A.input, classes$A.genericInput),
@@ -24045,8 +24048,8 @@ var KetcherBuilder = function () {
24045
24048
  initApp(element, staticResourcesUrl, {
24046
24049
  buttons: buttons || {},
24047
24050
  errorHandler: errorHandler || null,
24048
- version: "2.9.0-rc.6" ,
24049
- buildDate: "2023-04-10T13:09:58" ,
24051
+ version: "2.9.0-rc.7" ,
24052
+ buildDate: "2023-04-19T07:45:20" ,
24050
24053
  buildNumber: ''
24051
24054
  }, structService, resolve);
24052
24055
  });