mig-schema-table 5.0.8 → 5.0.9
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.
|
@@ -2,7 +2,7 @@ import { default as default_2 } from 'react';
|
|
|
2
2
|
import { default as default_3 } from 'react-window-infinite-loader';
|
|
3
3
|
import { Dispatch } from 'react';
|
|
4
4
|
import { InputHTMLAttributes } from 'react';
|
|
5
|
-
import { JSX
|
|
5
|
+
import { JSX } from 'react/jsx-runtime';
|
|
6
6
|
import { oas31 } from 'openapi3-ts';
|
|
7
7
|
import { SetStateAction } from 'react';
|
|
8
8
|
import { VariableSizeGrid } from 'react-window';
|
|
@@ -114,7 +114,7 @@ export declare interface ISchemaTableProps<T> {
|
|
|
114
114
|
translate?: (key: string, ...args: Array<string | number>) => string;
|
|
115
115
|
useFilterStateHash?: boolean;
|
|
116
116
|
width?: number;
|
|
117
|
-
variableSizeGridRef?: default_2.RefObject<VariableSizeGrid>;
|
|
117
|
+
variableSizeGridRef?: default_2.RefObject<VariableSizeGrid | null>;
|
|
118
118
|
loadMoreItems?: (startIndex: number, stopIndex: number) => void | Promise<void>;
|
|
119
119
|
itemCount?: number;
|
|
120
120
|
displayTimezone?: "Europe/Amsterdam" | "Asia/Jakarta";
|
|
@@ -141,16 +141,16 @@ declare interface IThProps {
|
|
|
141
141
|
|
|
142
142
|
export declare const MINIMUM_COLUMN_WIDTH = 25;
|
|
143
143
|
|
|
144
|
-
export declare const Refresher: default_2.MemoExoticComponent<({ refresh, period }: IRefresherProps) =>
|
|
144
|
+
export declare const Refresher: default_2.MemoExoticComponent<({ refresh, period }: IRefresherProps) => JSX.Element>;
|
|
145
145
|
|
|
146
146
|
export declare const RESIZER_WIDTH = 3;
|
|
147
147
|
|
|
148
148
|
export declare const SchemaTable: typeof SchemaTable_2;
|
|
149
149
|
|
|
150
|
-
declare const SchemaTable_2: <T>({ CustomElement, CustomSearchInput, Heading, autoRender, checkedIndexes, config, customElementProps, data, defaultColumnFilters, defaultSortAsc, defaultSortColumn, disabledCheckedIndexes, displayTimezone, enableAutoFocus, enableRowCounter, getRowClassName, getRowSelected, getSearchQueryFilterResult, infiniteLoaderRef, isColumnFilterable, isExportable, isResizable, isSearchable, isSortable, itemCount, loadMoreItems, maxHeight, onRowClick, onRowDoubleClick, onSearchEnter, onTableDataStateChange, rowHeight, schema, searchPlaceholder, setCheckedIndexes, settingsStorageKey, style, translate, useFilterStateHash, variableSizeGridRef, width, }: ISchemaTableProps<T>) =>
|
|
150
|
+
declare const SchemaTable_2: <T>({ CustomElement, CustomSearchInput, Heading, autoRender, checkedIndexes, config, customElementProps, data, defaultColumnFilters, defaultSortAsc, defaultSortColumn, disabledCheckedIndexes, displayTimezone, enableAutoFocus, enableRowCounter, getRowClassName, getRowSelected, getSearchQueryFilterResult, infiniteLoaderRef, isColumnFilterable, isExportable, isResizable, isSearchable, isSortable, itemCount, loadMoreItems, maxHeight, onRowClick, onRowDoubleClick, onSearchEnter, onTableDataStateChange, rowHeight, schema, searchPlaceholder, setCheckedIndexes, settingsStorageKey, style, translate, useFilterStateHash, variableSizeGridRef, width, }: ISchemaTableProps<T>) => JSX.Element;
|
|
151
151
|
|
|
152
152
|
export declare const Th: typeof Th_2;
|
|
153
153
|
|
|
154
|
-
declare const Th_2: <T>({ index, style }: IThProps) =>
|
|
154
|
+
declare const Th_2: <T>({ index, style }: IThProps) => JSX.Element;
|
|
155
155
|
|
|
156
156
|
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mig-schema-table",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -45,17 +45,17 @@
|
|
|
45
45
|
"@storybook/react": "^8.1.2",
|
|
46
46
|
"@storybook/test": "^8.1.2",
|
|
47
47
|
"@testing-library/jest-dom": "^6.4.5",
|
|
48
|
-
"@testing-library/react": "^
|
|
48
|
+
"@testing-library/react": "^16.1.0",
|
|
49
49
|
"@types/file-saver": "^2.0.7",
|
|
50
50
|
"@types/jest": "^29.5.12",
|
|
51
51
|
"@types/lodash": "^4.17.4",
|
|
52
|
-
"@types/react": "^
|
|
53
|
-
"@types/react-dom": "^
|
|
52
|
+
"@types/react": "^19.0.0",
|
|
53
|
+
"@types/react-dom": "^19.0.0",
|
|
54
54
|
"@types/react-window": "^1.8.8",
|
|
55
55
|
"@types/react-window-infinite-loader": "^1.0.9",
|
|
56
56
|
"@vitejs/plugin-react-swc": "^4.2.2",
|
|
57
57
|
"eslint": "^9.39.1",
|
|
58
|
-
"eslint-plugin-react-hooks": "^
|
|
58
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
59
59
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
60
60
|
"openapi3-ts": "^4.3.1",
|
|
61
61
|
"prettier": "^3.2.5",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"vite-plugin-dts": "^4.5.4"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"react": "
|
|
70
|
-
"react-dom": "
|
|
69
|
+
"react": ">=18.2.0",
|
|
70
|
+
"react-dom": ">=18.2.0"
|
|
71
71
|
},
|
|
72
72
|
"repository": {
|
|
73
73
|
"type": "git",
|