@@ -186,6 +186,16 @@ export interface RenderCellProps<TRow, TSummaryRow> extends BaseRenderCellProps<
186186 onRowChange : ( column : CalculatedColumn < TRow , TSummaryRow > , newRow : TRow ) => void ;
187187}
188188
189+ export interface EditCellProps < R , SR > extends Pick <
190+ RenderCellProps < R , SR > ,
191+ 'column' | 'colSpan' | 'row' | 'rowIdx'
192+ > {
193+ onRowChange : ( row : R , commitChanges : boolean , shouldFocusCell : boolean ) => void ;
194+ closeEditor : ( shouldFocusCell : boolean ) => void ;
195+ navigate : ( event : React . KeyboardEvent < HTMLDivElement > ) => void ;
196+ onKeyDown : Maybe < ( args : EditCellKeyDownArgs < R , SR > , event : CellKeyboardEvent ) => void > ;
197+ }
198+
189199export type CellEvent < E extends React . SyntheticEvent < HTMLDivElement > > = E & {
190200 preventGridDefault : ( ) => void ;
191201 isGridDefaultPrevented : ( ) => boolean ;
@@ -254,7 +264,7 @@ export interface RenderRowProps<TRow, TSummaryRow = unknown> extends BaseRenderR
254264 row : TRow ;
255265 lastFrozenColumnIndex : number ;
256266 draggedOverCellIdx : number | undefined ;
257- selectedCellEditor : ReactElement < RenderEditCellContentProps < TRow > > | undefined ;
267+ selectedCellEditor : ReactElement < EditCellProps < TRow , TSummaryRow > > | undefined ;
258268 onRowChange : ( column : CalculatedColumn < TRow , TSummaryRow > , rowIdx : number , newRow : TRow ) => void ;
259269 rowClass : Maybe < ( row : TRow , rowIdx : number ) => Maybe < string > > ;
260270 isTreeGrid : boolean ;
0 commit comments