@nivaro/react 0.1.186 → 0.1.188

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
@@ -827,7 +827,7 @@ export declare function CustomActionButtons({ collection, itemId, draft }: {
827
827
  draft: Record<string, unknown>;
828
828
  }): JSX.Element | null;
829
829
 
830
- export declare function DataTable<T = Record<string, unknown>>({ columns, rows, rowKey, total, page, limit, isLoading, isError, errorMessage, sort, onSortChange, onPageChange, onRowClick, onRowContextMenu, searchValue, onSearchChange, searchPlaceholder, filterDefs, filterValues, onFilterChange, toolbarRight, emptyMessage, minBodyHeight, fillHeight, hideFilterRow, nowrapCells, density, pinFirstColumn, columnPins, onColumnPinChange, columnFilterRow, hScrollProxy, selectedIds, onSelectionChange, rowClassName, rowGroups, collapsedGroups, onToggleGroup }: DataTableProps<T>): React_2.JSX.Element;
830
+ export declare function DataTable<T = Record<string, unknown>>({ columns, rows, rowKey, total, page, limit, isLoading, isError, errorMessage, sort, onSortChange, onPageChange, onRowClick, onRowContextMenu, searchValue, onSearchChange, searchPlaceholder, filterDefs, filterValues, onFilterChange, toolbarRight, emptyMessage, minBodyHeight, fillHeight, hideFilterRow, nowrapCells, density, pinFirstColumn, columnPins, onColumnPinChange, columnFilterRow, hScrollProxy, selectedIds, onSelectionChange, rowClassName, enterKey, rowGroups, collapsedGroups, onToggleGroup }: DataTableProps<T>): React_2.JSX.Element;
831
831
 
832
832
  export declare interface DataTableProps<T = Record<string, unknown>> {
833
833
  columns: Column<T>[];
@@ -901,6 +901,9 @@ export declare interface DataTableProps<T = Record<string, unknown>> {
901
901
  }>;
902
902
  collapsedGroups?: Set<string>;
903
903
  onToggleGroup?: (key: string) => void;
904
+ /** Changes whenever a fresh result set lands (e.g. the query's dataUpdatedAt);
905
+ * the body remounts so rows replay their staggered enter animation. */
906
+ enterKey?: string | number;
904
907
  }
905
908
 
906
909
  export declare function DateField({ field, value, onChange, error, disabled, readOnly, inputId, errorId }: FieldComponentProps): JSX.Element;