react-data-grid
Advanced tools
Comparing version 7.0.0-beta.43 to 7.0.0-beta.44
@@ -167,3 +167,3 @@ /// <reference types="react" /> | ||
/** An array of objects representing each column on the grid */ | ||
columns: readonly ColumnOrColumnGroup<R, SR>[]; | ||
columns: readonly ColumnOrColumnGroup<NoInfer<R>, NoInfer<SR>>[]; | ||
/** A function called for each rendered row that should return a plain key/value pair object */ | ||
@@ -180,4 +180,4 @@ rows: readonly R[]; | ||
/** The getter should return a unique key for each row */ | ||
rowKeyGetter?: Maybe<(row: R) => K>; | ||
onRowsChange?: Maybe<(rows: R[], data: RowsChangeData<R, SR>) => void>; | ||
rowKeyGetter?: Maybe<(row: NoInfer<R>) => K>; | ||
onRowsChange?: Maybe<(rows: NoInfer<R>[], data: RowsChangeData<NoInfer<R>, NoInfer<SR>>) => void>; | ||
/** | ||
@@ -190,3 +190,3 @@ * Dimensions props | ||
*/ | ||
rowHeight?: Maybe<number | ((row: R) => number)>; | ||
rowHeight?: Maybe<number | ((row: NoInfer<R>) => number)>; | ||
/** | ||
@@ -208,10 +208,10 @@ * The height of the header row in pixels | ||
/** Function called whenever row selection is changed */ | ||
onSelectedRowsChange?: Maybe<(selectedRows: Set<K>) => void>; | ||
onSelectedRowsChange?: Maybe<(selectedRows: Set<NoInfer<K>>) => void>; | ||
/** Used for multi column sorting */ | ||
sortColumns?: Maybe<readonly SortColumn[]>; | ||
onSortColumnsChange?: Maybe<(sortColumns: SortColumn[]) => void>; | ||
defaultColumnOptions?: Maybe<DefaultColumnOptions<R, SR>>; | ||
onFill?: Maybe<(event: FillEvent<R>) => R>; | ||
onCopy?: Maybe<(event: CopyEvent<R>) => void>; | ||
onPaste?: Maybe<(event: PasteEvent<R>) => R>; | ||
defaultColumnOptions?: Maybe<DefaultColumnOptions<NoInfer<R>, NoInfer<SR>>>; | ||
onFill?: Maybe<(event: FillEvent<NoInfer<R>>) => NoInfer<R>>; | ||
onCopy?: Maybe<(event: CopyEvent<NoInfer<R>>) => void>; | ||
onPaste?: Maybe<(event: PasteEvent<NoInfer<R>>) => NoInfer<R>>; | ||
/** | ||
@@ -221,10 +221,10 @@ * Event props | ||
/** Function called whenever a cell is clicked */ | ||
onCellClick?: Maybe<(args: CellClickArgs<R, SR>, event: CellMouseEvent) => void>; | ||
onCellClick?: Maybe<(args: CellClickArgs<NoInfer<R>, NoInfer<SR>>, event: CellMouseEvent) => void>; | ||
/** Function called whenever a cell is double clicked */ | ||
onCellDoubleClick?: Maybe<(args: CellClickArgs<R, SR>, event: CellMouseEvent) => void>; | ||
onCellDoubleClick?: Maybe<(args: CellClickArgs<NoInfer<R>, NoInfer<SR>>, event: CellMouseEvent) => void>; | ||
/** Function called whenever a cell is right clicked */ | ||
onCellContextMenu?: Maybe<(args: CellClickArgs<R, SR>, event: CellMouseEvent) => void>; | ||
onCellKeyDown?: Maybe<(args: CellKeyDownArgs<R, SR>, event: CellKeyboardEvent) => void>; | ||
onCellContextMenu?: Maybe<(args: CellClickArgs<NoInfer<R>, NoInfer<SR>>, event: CellMouseEvent) => void>; | ||
onCellKeyDown?: Maybe<(args: CellKeyDownArgs<NoInfer<R>, NoInfer<SR>>, event: CellKeyboardEvent) => void>; | ||
/** Function called whenever cell selection is changed */ | ||
onSelectedCellChange?: Maybe<(args: CellSelectArgs<R, SR>) => void>; | ||
onSelectedCellChange?: Maybe<(args: CellSelectArgs<NoInfer<R>, NoInfer<SR>>) => void>; | ||
/** Called when the grid is scrolled */ | ||
@@ -244,4 +244,4 @@ onScroll?: Maybe<(event: React.UIEvent<HTMLDivElement>) => void>; | ||
*/ | ||
renderers?: Maybe<Renderers<R, SR>>; | ||
rowClass?: Maybe<(row: R, rowIdx: number) => Maybe<string>>; | ||
renderers?: Maybe<Renderers<NoInfer<R>, NoInfer<SR>>>; | ||
rowClass?: Maybe<(row: NoInfer<R>, rowIdx: number) => Maybe<string>>; | ||
/** @default 'ltr' */ | ||
@@ -453,6 +453,6 @@ direction?: Maybe<Direction>; | ||
export declare interface TreeDataGridProps<R, SR = unknown, K extends Key = Key> extends Omit_2<DataGridProps<R, SR, K>, 'columns' | 'role' | 'aria-rowcount' | 'rowHeight' | 'onFill'> { | ||
columns: readonly Column<R, SR>[]; | ||
rowHeight?: Maybe<number | ((args: RowHeightArgs<R>) => number)>; | ||
columns: readonly Column<NoInfer<R>, NoInfer<SR>>[]; | ||
rowHeight?: Maybe<number | ((args: RowHeightArgs<NoInfer<R>>) => number)>; | ||
groupBy: readonly string[]; | ||
rowGrouper: (rows: readonly R[], columnKey: string) => Record<string, readonly R[]>; | ||
rowGrouper: (rows: readonly NoInfer<R>[], columnKey: string) => Record<string, readonly NoInfer<R>[]>; | ||
expandedGroupIds: ReadonlySet<unknown>; | ||
@@ -459,0 +459,0 @@ onExpandedGroupIdsChange: (expandedGroupIds: Set<unknown>) => void; |
{ | ||
"name": "react-data-grid", | ||
"version": "7.0.0-beta.43", | ||
"version": "7.0.0-beta.44", | ||
"license": "MIT", | ||
@@ -47,7 +47,7 @@ "description": "Feature-rich and customizable data grid React component", | ||
"eslint": "eslint --ext js,ts,tsx --max-warnings 0 --cache --color src test website vite.config.ts", | ||
"eslint:fix": "npm run eslint -- --fix", | ||
"eslint:fix": "node --run eslint -- --fix", | ||
"prettier:check": "prettier --check .", | ||
"prettier:format": "prettier --write .", | ||
"typecheck": "tsc", | ||
"prepublishOnly": "npm install && npm run build && npm run build:types", | ||
"prepublishOnly": "npm install && node --run build && node --run build:types", | ||
"postpublish": "git push --follow-tags origin HEAD" | ||
@@ -65,3 +65,3 @@ }, | ||
"@babel/runtime": "^7.21.5", | ||
"@biomejs/biome": "1.6.0", | ||
"@biomejs/biome": "1.7.3", | ||
"@faker-js/faker": "^8.0.0", | ||
@@ -74,8 +74,8 @@ "@ianvs/prettier-plugin-sort-imports": "^4.0.2", | ||
"@testing-library/jest-dom": "^6.2.0", | ||
"@testing-library/react": "^14.1.2", | ||
"@testing-library/react": "^15.0.5", | ||
"@testing-library/user-event": "^14.5.2", | ||
"@types/lodash-es": "^4.17.7", | ||
"@types/node": "^20.10.3", | ||
"@types/react": "^18.2.35", | ||
"@types/react-dom": "^18.2.4", | ||
"@types/react": "^18.3.0", | ||
"@types/react-dom": "^18.3.0", | ||
"@typescript-eslint/eslint-plugin": "^7.0.1", | ||
@@ -90,8 +90,8 @@ "@typescript-eslint/parser": "^7.0.1", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-jest": "^27.2.2", | ||
"eslint-plugin-jest": "^28.2.0", | ||
"eslint-plugin-jest-dom": "^5.0.1", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-react": "^7.32.2", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"eslint-plugin-sonarjs": "^0.24.0", | ||
"eslint-plugin-react-hooks": "^4.6.2", | ||
"eslint-plugin-sonarjs": "^0.25.1", | ||
"eslint-plugin-testing-library": "^6.2.0", | ||
@@ -104,6 +104,6 @@ "jsdom": "^24.0.0", | ||
"prettier": "3.2.5", | ||
"react": "^18.1.0", | ||
"react": "^18.3.1", | ||
"react-dnd": "^16.0.1", | ||
"react-dnd-html5-backend": "^16.0.1", | ||
"react-dom": "^18.1.0", | ||
"react-dom": "^18.3.1", | ||
"react-router-dom": "^6.11.1", | ||
@@ -114,3 +114,3 @@ "rollup": "^4.0.2", | ||
"vite": "^5.0.11", | ||
"vitest": "^1.2.0" | ||
"vitest": "^1.6.0" | ||
}, | ||
@@ -117,0 +117,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
802589