pixel-react-excel-sheet 1.0.35 → 1.0.36

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.
@@ -154,4 +154,5 @@ export interface DrawerProps {
154
154
  * Custom overflow for the drawer
155
155
  */
156
156
  overflow?: string;
157
+ onCollapes?: (value: boolean) => void;
157
158
  }
package/lib/index.d.ts CHANGED
@@ -303,6 +303,7 @@ interface DrawerProps {
303
303
  * Custom overflow for the drawer
304
304
  */
305
305
  overflow?: string;
306
+ onCollapes?: (value: boolean) => void;
306
307
  }
307
308
 
308
309
  declare const Drawer: FC<DrawerProps>;
package/lib/index.esm.js CHANGED
@@ -1102,6 +1102,7 @@ const Drawer = ({
1102
1102
  leftSecondaryButtonProps = {},
1103
1103
  showEditButton = false,
1104
1104
  onEdit = () => {},
1105
+ onCollapes = () => {},
1105
1106
  overlay = false,
1106
1107
  isFooterRequired = true,
1107
1108
  footerContent = null,
@@ -1128,6 +1129,7 @@ const Drawer = ({
1128
1129
  const handleEsc = useEscapeKey('Escape');
1129
1130
  handleEsc(onClose);
1130
1131
  const toggleExpand = () => {
1132
+ onCollapes(isExpanded);
1131
1133
  setIsExpanded(prev => !prev);
1132
1134
  };
1133
1135
  const onCancel = () => {
@@ -33489,8 +33491,10 @@ const ExcelFile = ({
33489
33491
  }, [contextMenu.open]);
33490
33492
  React__default.useEffect(() => {
33491
33493
  document.addEventListener('click', handleClickOutside);
33494
+ document.addEventListener('contextmenu', handleClickOutside);
33492
33495
  return () => {
33493
33496
  document.removeEventListener('click', handleClickOutside);
33497
+ document.removeEventListener('contextmenu', handleClickOutside);
33494
33498
  };
33495
33499
  }, [handleClickOutside]);
33496
33500
  const contextClick = event => {