ketcher-react 2.18.0-rc.6 → 2.18.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.
@@ -3595,7 +3595,7 @@ var zoom = {
3595
3595
 
3596
3596
  var openHelpLink = function openHelpLink() {
3597
3597
  var _window$open;
3598
- return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.18.0-rc.6\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
3598
+ return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.18.0-rc.7\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
3599
3599
  };
3600
3600
  var help = {
3601
3601
  help: {
@@ -3619,6 +3619,8 @@ var STRUCT_TYPE = {
3619
3619
  };
3620
3620
  var KETCHER_ROOT_NODE_CLASS_NAME = 'Ketcher-root';
3621
3621
  var KETCHER_ROOT_NODE_CSS_SELECTOR = ".".concat(KETCHER_ROOT_NODE_CLASS_NAME);
3622
+ var EditorClassName = 'Ketcher-polymer-editor-root';
3623
+ var KETCHER_MACROMOLECULES_ROOT_NODE_SELECTOR = ".".concat(EditorClassName);
3622
3624
 
3623
3625
  var functionalGroupsLib = {
3624
3626
  'functional-groups': {
@@ -14810,6 +14812,7 @@ var ZoomInput = function ZoomInput(_ref) {
14810
14812
  }, [inputRef]);
14811
14813
  return jsx(StyledInput, {
14812
14814
  ref: inputRef,
14815
+ "data-testid": "zoom-value",
14813
14816
  onFocus: onFocusHandler,
14814
14817
  onKeyDown: onKeyDown
14815
14818
  });
@@ -14898,14 +14901,13 @@ var ZoomControls = function ZoomControls(_ref) {
14898
14901
  open: isExpanded,
14899
14902
  onClose: onClose,
14900
14903
  anchorEl: containerRef.current,
14901
- container: containerRef.current,
14904
+ container: document.querySelector(KETCHER_ROOT_NODE_CSS_SELECTOR) || document.querySelector(KETCHER_MACROMOLECULES_ROOT_NODE_SELECTOR),
14902
14905
  anchorOrigin: {
14903
14906
  vertical: 'bottom',
14904
14907
  horizontal: 'left'
14905
14908
  },
14906
14909
  children: jsxs(DropDownContent, {
14907
14910
  children: [jsx(ZoomInput, {
14908
- "data-testid": "zoom-value",
14909
14911
  onZoomSubmit: onZoomSubmit,
14910
14912
  inputRef: inputRef,
14911
14913
  currentZoom: currentZoom,
@@ -25137,6 +25139,8 @@ function setupEditor(editor, props) {
25137
25139
  }
25138
25140
  }
25139
25141
  });
25142
+ editor.render.unobserveCanvasResize();
25143
+ editor.render.observeCanvasResize();
25140
25144
  }
25141
25145
  function removeEditorHandlers(editor, props) {
25142
25146
  Object.keys(editor.event).forEach(function (name) {
@@ -25305,7 +25309,6 @@ var StructEditor = function (_Component) {
25305
25309
  info: JSON.stringify(this.props.toolOpts)
25306
25310
  });
25307
25311
  this.editorRef.current.addEventListener('wheel', this.handleWheel);
25308
- this.editor.render.observeCanvasResize();
25309
25312
  }
25310
25313
  }, {
25311
25314
  key: "componentWillUnmount",
@@ -32778,8 +32781,8 @@ var KetcherBuilder = function () {
32778
32781
  initApp(element, appRoot, staticResourcesUrl, {
32779
32782
  buttons: buttons || {},
32780
32783
  errorHandler: errorHandler || null,
32781
- version: "2.18.0-rc.6" ,
32782
- buildDate: "2024-02-13T18:53:18" ,
32784
+ version: "2.18.0-rc.7" ,
32785
+ buildDate: "2024-02-16T18:39:46" ,
32783
32786
  buildNumber: ''
32784
32787
  }, structService, resolve, togglerComponent);
32785
32788
  });
@@ -32895,5 +32898,5 @@ function Editor(props) {
32895
32898
  });
32896
32899
  }
32897
32900
 
32898
- export { Accordion$1 as Accordion, Button, Dialog, Editor, Icon, IconButton, IndigoProvider, InfoModal$1 as InfoModal, Input$2 as Input, KETCHER_INIT_EVENT_NAME, KETCHER_ROOT_NODE_CLASS_NAME, KETCHER_ROOT_NODE_CSS_SELECTOR, MODES, STRUCT_TYPE, StructRender, getIconName };
32901
+ export { Accordion$1 as Accordion, Button, Dialog, Editor, EditorClassName, Icon, IconButton, IndigoProvider, InfoModal$1 as InfoModal, Input$2 as Input, KETCHER_INIT_EVENT_NAME, KETCHER_MACROMOLECULES_ROOT_NODE_SELECTOR, KETCHER_ROOT_NODE_CLASS_NAME, KETCHER_ROOT_NODE_CSS_SELECTOR, MODES, STRUCT_TYPE, StructRender, getIconName };
32899
32902
  //# sourceMappingURL=index.modern.js.map