ketcher-react 2.19.0-rc.2 → 2.19.0-rc.3

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.19.0-rc.2\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.19.0-rc.3\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: {
@@ -23760,74 +23760,6 @@ function setHover(ci, visible, render) {
23760
23760
 
23761
23761
  var classes$G = {"button-common-styles":"StructEditor-module_button-common-styles__3P7PO","scrollbar":"StructEditor-module_scrollbar__SUs-o","spinnerOverlay":"StructEditor-module_spinnerOverlay__5H1IM","canvas":"StructEditor-module_canvas__LLnzh","measureLog":"StructEditor-module_measureLog__B2wuy","visible":"StructEditor-module_visible__3eFNB","intermediateCanvas":"StructEditor-module_intermediateCanvas__fR3ws","enableCursor":"StructEditor-module_enableCursor__Qla0A"};
23762
23762
 
23763
- var Cursor = function Cursor(_ref) {
23764
- var Icon = _ref.Icon,
23765
- PressedIcon = _ref.PressedIcon,
23766
- enableHandTool = _ref.enableHandTool;
23767
- var _useState = useState({
23768
- clientX: 50,
23769
- clientY: 50
23770
- }),
23771
- _useState2 = _slicedToArray$1(_useState, 2),
23772
- position = _useState2[0],
23773
- setPosition = _useState2[1];
23774
- var _useState3 = useState(false),
23775
- _useState4 = _slicedToArray$1(_useState3, 2),
23776
- mousedown = _useState4[0],
23777
- setMouseDown = _useState4[1];
23778
- var updatePosition = function updatePosition(event) {
23779
- var clientX = event.clientX,
23780
- clientY = event.clientY;
23781
- setPosition({
23782
- clientX: clientX,
23783
- clientY: clientY
23784
- });
23785
- };
23786
- var handleMouseDown = function handleMouseDown() {
23787
- setMouseDown(true);
23788
- };
23789
- var handleMouseUp = function handleMouseUp() {
23790
- setMouseDown(false);
23791
- };
23792
- useEffect(function () {
23793
- document.addEventListener('mousemove', updatePosition, false);
23794
- document.addEventListener('mouseenter', updatePosition, false);
23795
- document.addEventListener('mousedown', handleMouseDown, false);
23796
- document.addEventListener('mouseup', handleMouseUp, false);
23797
- return function () {
23798
- document.removeEventListener('mousedown', handleMouseDown);
23799
- document.removeEventListener('mouseup', handleMouseUp);
23800
- document.removeEventListener('mousemove', updatePosition);
23801
- document.removeEventListener('mouseenter', updatePosition);
23802
- };
23803
- }, []);
23804
- if (!enableHandTool) return null;
23805
- return jsx("div", {
23806
- style: {
23807
- position: 'fixed',
23808
- top: 0,
23809
- bottom: 0,
23810
- left: 0,
23811
- right: 0,
23812
- zIndex: 9999,
23813
- pointerEvents: 'none'
23814
- },
23815
- children: mousedown ? jsx(PressedIcon, {
23816
- style: {
23817
- position: 'absolute',
23818
- left: position.clientX,
23819
- top: position.clientY
23820
- }
23821
- }) : jsx(Icon, {
23822
- style: {
23823
- position: 'absolute',
23824
- left: position.clientX,
23825
- top: position.clientY
23826
- }
23827
- })
23828
- });
23829
- };
23830
-
23831
23763
  var styles$e = {"button-common-styles":"ContextMenu-module_button-common-styles__pshYr","scrollbar":"ContextMenu-module_scrollbar__fCla5","contextMenu":"ContextMenu-module_contextMenu__oqyL-","icon":"ContextMenu-module_icon__KhXEk","sameGroup":"ContextMenu-module_sameGroup__0DPIX","devider":"ContextMenu-module_devider__-K9Bc","subMenu":"ContextMenu-module_subMenu__87kBE"};
23832
23764
 
23833
23765
  var CONTEXT_MENU_ID;
@@ -25486,10 +25418,6 @@ var StructEditor = function (_Component) {
25486
25418
  ref: this.editorRef,
25487
25419
  className: clsx(classes$G.intermediateCanvas)
25488
25420
  })
25489
- }), jsx(Cursor, {
25490
- Icon: SvgHand,
25491
- PressedIcon: SvgCompressedHand,
25492
- enableHandTool: this.state.enableCursor
25493
25421
  }), jsx("div", {
25494
25422
  className: classes$G.measureLog,
25495
25423
  ref: this.logRef
@@ -32901,8 +32829,8 @@ var KetcherBuilder = function () {
32901
32829
  initApp(element, appRoot, staticResourcesUrl, {
32902
32830
  buttons: buttons || {},
32903
32831
  errorHandler: errorHandler || null,
32904
- version: "2.19.0-rc.2" ,
32905
- buildDate: "2024-03-11T08:48:42" ,
32832
+ version: "2.19.0-rc.3" ,
32833
+ buildDate: "2024-03-22T16:10:46" ,
32906
32834
  buildNumber: ''
32907
32835
  }, structService, resolve, togglerComponent);
32908
32836
  });