pixel-react-excel-sheet 1.0.35 → 1.0.37

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/lib/index.js CHANGED
@@ -1122,6 +1122,7 @@ const Drawer = ({
1122
1122
  leftSecondaryButtonProps = {},
1123
1123
  showEditButton = false,
1124
1124
  onEdit = () => {},
1125
+ onCollapes = () => {},
1125
1126
  overlay = false,
1126
1127
  isFooterRequired = true,
1127
1128
  footerContent = null,
@@ -1148,6 +1149,7 @@ const Drawer = ({
1148
1149
  const handleEsc = useEscapeKey('Escape');
1149
1150
  handleEsc(onClose);
1150
1151
  const toggleExpand = () => {
1152
+ onCollapes(isExpanded);
1151
1153
  setIsExpanded(prev => !prev);
1152
1154
  };
1153
1155
  const onCancel = () => {
@@ -31967,6 +31969,7 @@ const Cell = ({
31967
31969
  }, [setCellDimensions, select, dragging, point]);
31968
31970
  const contextClick = React__namespace.useCallback(event => {
31969
31971
  event.preventDefault();
31972
+ console.log("Asdasd");
31970
31973
  select(point);
31971
31974
  setContextMenu({
31972
31975
  open: true,
@@ -33509,8 +33512,10 @@ const ExcelFile = ({
33509
33512
  }, [contextMenu.open]);
33510
33513
  React.useEffect(() => {
33511
33514
  document.addEventListener('click', handleClickOutside);
33515
+ // document.addEventListener('contextmenu', handleClickOutside);
33512
33516
  return () => {
33513
33517
  document.removeEventListener('click', handleClickOutside);
33518
+ // document.removeEventListener('contextmenu', handleClickOutside);
33514
33519
  };
33515
33520
  }, [handleClickOutside]);
33516
33521
  const contextClick = event => {