@codacy/ui-components 0.66.56 → 0.66.58
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/lib/Dropdown/Dropdown.js +0 -1
- package/lib/Input/Input.js +0 -1
- package/lib/Input/hooks.js +2 -1
- package/lib/Labeled/Labeled.js +1 -0
- package/lib/Modal/Modal.js +0 -1
- package/lib/MultiSlider/MultiSlider.js +0 -1
- package/lib/Table/Table.js +0 -1
- package/lib/Typography/Typography.js +0 -1
- package/lib/hooks/useInfiniteScroll.js +2 -2
- package/package.json +10 -7
package/lib/Dropdown/Dropdown.js
CHANGED
package/lib/Input/Input.js
CHANGED
package/lib/Input/hooks.js
CHANGED
|
@@ -112,7 +112,8 @@ function generateInputValidator(validations, inputType, hideSuccess) {
|
|
|
112
112
|
didMountRef.current = true;
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
|
-
useEffect(doValidation,
|
|
115
|
+
useEffect(doValidation, /* eslint-disable-next-line react-hooks/exhaustive-deps */
|
|
116
|
+
[debouncedValue]);
|
|
116
117
|
return {
|
|
117
118
|
value,
|
|
118
119
|
setValue,
|
package/lib/Labeled/Labeled.js
CHANGED
package/lib/Modal/Modal.js
CHANGED
package/lib/Table/Table.js
CHANGED
|
@@ -3,7 +3,7 @@ import React, { useCallback, useEffect, useRef } from 'react';
|
|
|
3
3
|
/** @deprecated Use useInfiniteScrollRef instead */
|
|
4
4
|
export function useInfiniteScroll(ref, onLoadMore, containerRef) {
|
|
5
5
|
const observer = useRef();
|
|
6
|
-
const handleLoadMore = useCallback(
|
|
6
|
+
const handleLoadMore = useCallback(entries => {
|
|
7
7
|
if (entries[0].isIntersecting && onLoadMore) {
|
|
8
8
|
onLoadMore();
|
|
9
9
|
}
|
|
@@ -23,7 +23,7 @@ export function useInfiniteScroll(ref, onLoadMore, containerRef) {
|
|
|
23
23
|
export default function useInfiniteScrollRef(onLoadMore, containerRef) {
|
|
24
24
|
const observer = useRef();
|
|
25
25
|
const [ref, setRef] = React.useState(null);
|
|
26
|
-
const handleLoadMore = useCallback(
|
|
26
|
+
const handleLoadMore = useCallback(entries => {
|
|
27
27
|
if (entries[0].isIntersecting && onLoadMore) {
|
|
28
28
|
onLoadMore();
|
|
29
29
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codacy/ui-components",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.58",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"check-types:watch": "npm run check-types -- --watch",
|
|
28
28
|
"check-missing-deps": "node check-missing.js",
|
|
29
29
|
"clean": "rimraf lib && rimraf storybook-static && rimraf coverage",
|
|
30
|
-
"lint": "npm run lint-cmd
|
|
31
|
-
"lint-cmd": "eslint --
|
|
30
|
+
"lint": "npm run lint-cmd",
|
|
31
|
+
"lint-cmd": "eslint --ext .js,.jsx,.ts,.tsx src stories",
|
|
32
32
|
"lint-staged": "lint-staged",
|
|
33
33
|
"storybook": "storybook dev -p 6006",
|
|
34
34
|
"test": "vitest",
|
|
@@ -53,6 +53,9 @@
|
|
|
53
53
|
"@emotion/jest": "^11.11.0",
|
|
54
54
|
"@emotion/react": "^11.11.1",
|
|
55
55
|
"@emotion/styled": "^11.11.0",
|
|
56
|
+
"@eslint/compat": "^2.0.0",
|
|
57
|
+
"@eslint/eslintrc": "^3.3.3",
|
|
58
|
+
"@eslint/js": "^9.39.2",
|
|
56
59
|
"@mdx-js/react": "^2.0.0",
|
|
57
60
|
"@popperjs/core": "^2.5.4",
|
|
58
61
|
"@storybook/addon-docs": "^7.6.4",
|
|
@@ -75,15 +78,15 @@
|
|
|
75
78
|
"@types/resize-observer-browser": "^0.1.6",
|
|
76
79
|
"@types/styled-system": "^5.1.22",
|
|
77
80
|
"@types/styled-system__should-forward-prop": "^5.1.4",
|
|
78
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
79
|
-
"@typescript-eslint/parser": "^
|
|
81
|
+
"@typescript-eslint/eslint-plugin": "^8.39.0",
|
|
82
|
+
"@typescript-eslint/parser": "^8.39.0",
|
|
80
83
|
"@vitejs/plugin-react": "^4.7.0",
|
|
81
84
|
"@vitest/coverage-v8": "^3.2.4",
|
|
82
85
|
"babel-loader": "^9.1.3",
|
|
83
86
|
"babel-preset-react-app": "^10.0.1",
|
|
84
87
|
"copy-to-clipboard": "^3.3.1",
|
|
85
88
|
"depcheck": "^1.4.2",
|
|
86
|
-
"eslint": "^
|
|
89
|
+
"eslint": "^9.39.2",
|
|
87
90
|
"eslint-config-prettier": "^9.1.0",
|
|
88
91
|
"eslint-config-react-app": "^5.2.1",
|
|
89
92
|
"eslint-plugin-flowtype": "^8.0.3",
|
|
@@ -92,7 +95,7 @@
|
|
|
92
95
|
"eslint-plugin-mdx": "^2.0.0",
|
|
93
96
|
"eslint-plugin-prettier": "^5.0.1",
|
|
94
97
|
"eslint-plugin-react": "^7.21.5",
|
|
95
|
-
"eslint-plugin-react-hooks": "^
|
|
98
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
96
99
|
"fontsource-inter": "^4.0.0",
|
|
97
100
|
"husky": "^4.3.0",
|
|
98
101
|
"jsdom": "^26.1.0",
|