caplink-saas-ui-shared-component-library 0.3.15 → 0.3.17
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/components/spreadsheet/lib/with-portal-provider.d.ts +11 -0
- package/dist/components/spreadsheet/model/spreadsheet.d.ts +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +2928 -2630
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +41 -42
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface IWithPortalProvider {
|
|
4
|
+
children: React.ReactElement<{
|
|
5
|
+
ref?: React.RefObject<HTMLElement | null>;
|
|
6
|
+
}>;
|
|
7
|
+
}
|
|
8
|
+
export declare const WithPortalProvider: ({ children }: IWithPortalProvider) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const useWithPortal: () => {
|
|
10
|
+
portalRef?: React.RefObject<HTMLElement> | undefined;
|
|
11
|
+
};
|
|
@@ -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?: (
|
|
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;
|
package/dist/index.d.ts
CHANGED
|
@@ -5,5 +5,6 @@ import { MatrixTypes, SpreadsheetTypes } from './types';
|
|
|
5
5
|
export declare const CapLink: {
|
|
6
6
|
Spreadsheet: typeof Spreadsheet;
|
|
7
7
|
FileUploader: typeof FileUploader;
|
|
8
|
+
WithPortalProvider: ({ children }: import('./components/spreadsheet/lib/with-portal-provider').IWithPortalProvider) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
};
|
|
9
10
|
export type { FileUploaderProps, MatrixTypes, SpreadsheetTypes };
|