Socket
Socket
Sign inDemoInstall

rsuite-table

Package Overview
Dependencies
17
Maintainers
1
Versions
220
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.18.1 to 5.18.2

9

CHANGELOG.md

@@ -0,1 +1,10 @@

## [5.18.2](https://github.com/rsuite/rsuite-table/compare/5.18.1...5.18.2) (2023-12-01)
### Bug Fixes
* fix availability of `RowDataType` type ([#476](https://github.com/rsuite/rsuite-table/issues/476)) ([8590477](https://github.com/rsuite/rsuite-table/commit/85904773df3b81acd619eaec2fd17299e8889abe))
## [5.18.1](https://github.com/rsuite/rsuite-table/compare/5.18.0...5.18.1) (2023-11-24)

@@ -2,0 +11,0 @@

2

es/@types/common.d.ts

@@ -14,3 +14,3 @@ /// <reference types="react" />

export type TableSizeChangeEventName = 'bodyHeightChanged' | 'bodyWidthChanged' | 'widthChanged' | 'heightChanged';
export interface RowDataType<T = never> {
export interface RowDataType<T = any> {
dataKey?: string;

@@ -17,0 +17,0 @@ children?: T[];

@@ -37,3 +37,3 @@ import React from 'react';

}
declare const _default: <Row extends RowDataType<never>, Key extends RowKeyType>(props: InnerCellProps<Row, Key> & React.RefAttributes<HTMLDivElement>) => React.ReactElement;
declare const _default: <Row extends RowDataType<any>, Key extends RowKeyType>(props: InnerCellProps<Row, Key> & React.RefAttributes<HTMLDivElement>) => React.ReactElement;
export default _default;

@@ -23,3 +23,3 @@ import React from 'react';

}
declare const _default: <Row extends RowDataType<never>, Key extends RowKeyType>(props: HeaderCellProps<Row, Key> & React.RefAttributes<HTMLDivElement>) => React.ReactElement;
declare const _default: <Row extends RowDataType<any>, Key extends RowKeyType>(props: HeaderCellProps<Row, Key> & React.RefAttributes<HTMLDivElement>) => React.ReactElement;
export default _default;

@@ -145,3 +145,3 @@ import React from 'react';

}
declare const _default: <Row extends RowDataType<never>, Key extends RowKeyType>(props: TableProps<Row, Key> & React.RefAttributes<TableInstance<Row, Key>>) => React.ReactElement;
declare const _default: <Row extends RowDataType<any>, Key extends RowKeyType>(props: TableProps<Row, Key> & React.RefAttributes<TableInstance<Row, Key>>) => React.ReactElement;
export default _default;

@@ -33,3 +33,3 @@ import React from 'react';

*/
declare const useCellDescriptor: <Row extends RowDataType<never>>(props: CellDescriptorProps<Row>) => CellDescriptor;
declare const useCellDescriptor: <Row extends RowDataType<any>>(props: CellDescriptorProps<Row>) => CellDescriptor;
export default useCellDescriptor;

@@ -9,3 +9,5 @@ 'use client';

// https://github.com/Microsoft/TypeScript/issues/3496#issuecomment-128553540
//eslint-disable-line @typescript-eslint/no-empty-interface
/**

@@ -12,0 +14,0 @@ * Add a prefix to all classNames.

@@ -33,3 +33,3 @@ import React from 'react';

*/
declare const useTableDimension: <Row extends RowDataType<never>, Key>(props: TableDimensionProps<Row, Key>) => {
declare const useTableDimension: <Row extends RowDataType<any>, Key>(props: TableDimensionProps<Row, Key>) => {
contentHeight: React.MutableRefObject<number>;

@@ -36,0 +36,0 @@ contentWidth: React.MutableRefObject<number>;

@@ -14,3 +14,3 @@ /// <reference types="react" />

*/
declare const useTableRows: <Row extends RowDataType<never>, Key>(props: TableRowsProps<Row, Key>) => {
declare const useTableRows: <Row extends RowDataType<any>, Key>(props: TableRowsProps<Row, Key>) => {
bindTableRowsRef: (index: number | string, rowData: any) => (ref: HTMLElement) => void;

@@ -17,0 +17,0 @@ tableRowsMaxHeight: number[];

@@ -14,3 +14,3 @@ /// <reference types="react" />

export type TableSizeChangeEventName = 'bodyHeightChanged' | 'bodyWidthChanged' | 'widthChanged' | 'heightChanged';
export interface RowDataType<T = never> {
export interface RowDataType<T = any> {
dataKey?: string;

@@ -17,0 +17,0 @@ children?: T[];

@@ -37,3 +37,3 @@ import React from 'react';

}
declare const _default: <Row extends RowDataType<never>, Key extends RowKeyType>(props: InnerCellProps<Row, Key> & React.RefAttributes<HTMLDivElement>) => React.ReactElement;
declare const _default: <Row extends RowDataType<any>, Key extends RowKeyType>(props: InnerCellProps<Row, Key> & React.RefAttributes<HTMLDivElement>) => React.ReactElement;
export default _default;

@@ -23,3 +23,3 @@ import React from 'react';

}
declare const _default: <Row extends RowDataType<never>, Key extends RowKeyType>(props: HeaderCellProps<Row, Key> & React.RefAttributes<HTMLDivElement>) => React.ReactElement;
declare const _default: <Row extends RowDataType<any>, Key extends RowKeyType>(props: HeaderCellProps<Row, Key> & React.RefAttributes<HTMLDivElement>) => React.ReactElement;
export default _default;

@@ -145,3 +145,3 @@ import React from 'react';

}
declare const _default: <Row extends RowDataType<never>, Key extends RowKeyType>(props: TableProps<Row, Key> & React.RefAttributes<TableInstance<Row, Key>>) => React.ReactElement;
declare const _default: <Row extends RowDataType<any>, Key extends RowKeyType>(props: TableProps<Row, Key> & React.RefAttributes<TableInstance<Row, Key>>) => React.ReactElement;
export default _default;

@@ -33,3 +33,3 @@ import React from 'react';

*/
declare const useCellDescriptor: <Row extends RowDataType<never>>(props: CellDescriptorProps<Row>) => CellDescriptor;
declare const useCellDescriptor: <Row extends RowDataType<any>>(props: CellDescriptorProps<Row>) => CellDescriptor;
export default useCellDescriptor;

@@ -13,3 +13,5 @@ 'use client';

// https://github.com/Microsoft/TypeScript/issues/3496#issuecomment-128553540
//eslint-disable-line @typescript-eslint/no-empty-interface
/**

@@ -16,0 +18,0 @@ * Add a prefix to all classNames.

@@ -33,3 +33,3 @@ import React from 'react';

*/
declare const useTableDimension: <Row extends RowDataType<never>, Key>(props: TableDimensionProps<Row, Key>) => {
declare const useTableDimension: <Row extends RowDataType<any>, Key>(props: TableDimensionProps<Row, Key>) => {
contentHeight: React.MutableRefObject<number>;

@@ -36,0 +36,0 @@ contentWidth: React.MutableRefObject<number>;

@@ -14,3 +14,3 @@ /// <reference types="react" />

*/
declare const useTableRows: <Row extends RowDataType<never>, Key>(props: TableRowsProps<Row, Key>) => {
declare const useTableRows: <Row extends RowDataType<any>, Key>(props: TableRowsProps<Row, Key>) => {
bindTableRowsRef: (index: number | string, rowData: any) => (ref: HTMLElement) => void;

@@ -17,0 +17,0 @@ tableRowsMaxHeight: number[];

{
"name": "rsuite-table",
"version": "5.18.1",
"version": "5.18.2",
"description": "A React table component",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -23,3 +23,3 @@ export interface StandardProps extends React.HTMLAttributes<HTMLElement> {

export interface RowDataType<T = never> {
export interface RowDataType<T = any> {
dataKey?: string;

@@ -26,0 +26,0 @@ children?: T[];

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc