caplink-saas-ui-shared-component-library 0.3.15 → 0.3.16

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.
@@ -1,4 +1,4 @@
1
- import { MouseEvent, PropsWithChildren } from 'react';
1
+ import { ClipboardEvent, MouseEvent, PropsWithChildren } from 'react';
2
2
 
3
3
  import type * as Matrix from '../model/matrix';
4
4
  export declare const COLUMN_STRING_LIMIT = 1200;
@@ -44,7 +44,7 @@ export type DataEditor = {
44
44
  point?: Matrix.Point;
45
45
  }) => void;
46
46
  /** Whether user paste any value on data editor */
47
- onPaste?: (point?: Matrix.Point) => void;
47
+ onPaste?: (event: ClipboardEvent) => void;
48
48
  /** Whether user blur current data editor */
49
49
  onBlur?: () => void;
50
50
  /** Whether user clicks current data editor */
@@ -142,7 +142,7 @@ export type Context = {
142
142
  setPointRange: (pointRange: Matrix.PointRange | null) => void;
143
143
  containerDimensions: Dimensions;
144
144
  setContainerDimensions: (dimensions: Dimensions) => void;
145
- onPaste: (point: Matrix.Point) => void;
145
+ onPaste: (point: Matrix.Point, event: ClipboardEvent) => void;
146
146
  onChange: (params: {
147
147
  data: unknown;
148
148
  point: Matrix.Point;