jspreadsheet 12.0.6 → 12.0.8

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/dist/index.d.ts CHANGED
@@ -147,7 +147,7 @@ declare namespace jspreadsheet {
147
147
  interface Shortcut {
148
148
  key?: string,
149
149
  code?: string,
150
- handler: (event: KeyboardEvent, internalEvent: object) => void,
150
+ handler?: (event: KeyboardEvent, internalEvent: object) => void,
151
151
  ctrlKey?: boolean,
152
152
  altKey?: boolean,
153
153
  shiftKey?: boolean,
@@ -992,7 +992,7 @@ declare namespace jspreadsheet {
992
992
  /** When a copy is performed in the spreadsheet. Any string returned will overwrite the user data or return null to progress with the default behavior. */
993
993
  oncopy?: (worksheet: worksheetInstance, selectedCells: RangeCoords, data: string, cut: boolean | undefined) => false | string | undefined;
994
994
  /** Before the paste action is performed. Can return parsed or filtered data. It is possible to cancel the action when the return is false. */
995
- onbeforepaste?: (worksheet: worksheetInstance, data: Record<string, any>[][], x: number, y: number) => false | Record<string, any>[][] | undefined;
995
+ onbeforepaste?: (worksheet: worksheetInstance, data: Record<string, any>[][], x: number, y: number, clipboardEvent: ClipBoard) => false | Record<string, any>[][] | undefined;
996
996
  /** After a paste action is performed in the spreadsheet. */
997
997
  onpaste?: (
998
998
  worksheet: worksheetInstance,