@ercioko/meblotex-api 0.1.8 → 0.2.0
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
type Props = {
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
|
+
type Props = PropsWithChildren<{
|
|
3
3
|
host: string;
|
|
4
|
-
}
|
|
4
|
+
}>;
|
|
5
5
|
export declare const ApiHostProvider: FC<Props>;
|
|
6
6
|
export declare const useApiHost: () => string;
|
|
7
7
|
export {};
|
|
@@ -14,5 +14,12 @@ type Props<DataType = DataRow> = {
|
|
|
14
14
|
selected: number | DataType;
|
|
15
15
|
checked: number[];
|
|
16
16
|
};
|
|
17
|
-
export default function useGetCellRenderer<DataType extends object>({ columns, data, actions, resizeCol, setHoveredRow, hoveredRow, selected, checked, idKey, }: Props<DataType>): ({ columnIndex, rowIndex, rowKey, style, isScrolling, isVisible }:
|
|
17
|
+
export default function useGetCellRenderer<DataType extends object>({ columns, data, actions, resizeCol, setHoveredRow, hoveredRow, selected, checked, idKey, }: Props<DataType>): ({ columnIndex, rowIndex, rowKey, style, isScrolling, isVisible }: {
|
|
18
|
+
columnIndex: any;
|
|
19
|
+
rowIndex: any;
|
|
20
|
+
rowKey: any;
|
|
21
|
+
style: any;
|
|
22
|
+
isScrolling: any;
|
|
23
|
+
isVisible: any;
|
|
24
|
+
}) => React.JSX.Element;
|
|
18
25
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ercioko/meblotex-api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Shared modules for Meblotex app",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"typings": "./dist/index.d.ts",
|
|
@@ -27,22 +27,21 @@
|
|
|
27
27
|
"./dist"
|
|
28
28
|
],
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"react": "^
|
|
31
|
-
"react-dom": "^
|
|
32
|
-
"react-redux": "^
|
|
30
|
+
"react": "^18.3.1",
|
|
31
|
+
"react-dom": "^18.3.1",
|
|
32
|
+
"react-redux": "^9.1.2",
|
|
33
33
|
"styled-components": "^6.1.12"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"antd": "^
|
|
36
|
+
"antd": "^5.19.4",
|
|
37
37
|
"react-draggable": "^4.4.6",
|
|
38
|
-
"react-virtualized": "^9.22.5"
|
|
39
|
-
"typescript": "^5.5.4"
|
|
38
|
+
"react-virtualized": "^9.22.5"
|
|
40
39
|
},
|
|
41
40
|
"devDependencies": {
|
|
42
41
|
"@babel/core": "^7.25.2",
|
|
43
42
|
"@swc/cli": "^0.4.0",
|
|
44
43
|
"@swc/core": "^1.7.3",
|
|
45
|
-
"@types/react": "^
|
|
44
|
+
"@types/react": "^18.3.3",
|
|
46
45
|
"@types/styled-components": "^5.1.34",
|
|
47
46
|
"babel-loader": "^9.1.3",
|
|
48
47
|
"eslint": "^9.8.0",
|
|
@@ -50,6 +49,7 @@
|
|
|
50
49
|
"prettier": "^3.3.3",
|
|
51
50
|
"sequelize": "^6.37.3",
|
|
52
51
|
"ts-loader": "^9.5.1",
|
|
52
|
+
"typescript": "^5.5.4",
|
|
53
53
|
"webpack-cli": "^5.1.4"
|
|
54
54
|
},
|
|
55
55
|
"sideEffects": false,
|