pixel-react-excel-sheet 1.0.52 → 1.0.53

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.d.ts CHANGED
@@ -2591,6 +2591,7 @@ interface AttachmentUploaderProps {
2591
2591
  deleteButton: boolean;
2592
2592
  addAttachmentButton: boolean;
2593
2593
  accept?: string[];
2594
+ fileListClick?: (fileName: string) => void;
2594
2595
  }
2595
2596
 
2596
2597
  declare const AttachmentButton: React__default.FC<AttachmentUploaderProps>;
@@ -2814,7 +2815,7 @@ interface ExcelFileProps {
2814
2815
  /**
2815
2816
  * Callback function triggered when saving the Excel data.
2816
2817
  */
2817
- onSave?: (saveData: any) => void;
2818
+ onSave?: (saveData: SaveData[]) => void;
2818
2819
  /**
2819
2820
  * Delay time (in milliseconds) before the onSave callback is executed.
2820
2821
  */
@@ -2844,7 +2845,11 @@ interface ExcelFileProps {
2844
2845
  * When set to true, row-related context menu actions are enabled.
2845
2846
  */
2846
2847
  rowContextEnable?: boolean;
2847
- importAttachment?: (file: File) => Promise<void>;
2848
+ attachmentAction?: {
2849
+ addAttachment: (file: File) => Promise<void>;
2850
+ viewAttachment: () => Promise<void>;
2851
+ deleteAttachment: () => Promise<void>;
2852
+ };
2848
2853
  }
2849
2854
  declare const ExcelFile: React__default.FC<ExcelFileProps>;
2850
2855