@trackunit/react-chart-components 1.17.23 → 1.19.4
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/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +7 -7
package/index.cjs.js
CHANGED
|
@@ -331,7 +331,7 @@ const useLimitDataSet = (data, limit, autoSortData = true, othersName) => {
|
|
|
331
331
|
return sortedData;
|
|
332
332
|
}, [data, limit, autoSortData, othersName]);
|
|
333
333
|
const limitedDataWithoutOthers = react.useMemo(() => limitedData.filter(item => !item.original?.defaultOther), [limitedData]);
|
|
334
|
-
return { limitedData, limitedDataWithoutOthers };
|
|
334
|
+
return react.useMemo(() => ({ limitedData, limitedDataWithoutOthers }), [limitedData, limitedDataWithoutOthers]);
|
|
335
335
|
};
|
|
336
336
|
|
|
337
337
|
/**
|
package/index.esm.js
CHANGED
|
@@ -310,7 +310,7 @@ const useLimitDataSet = (data, limit, autoSortData = true, othersName) => {
|
|
|
310
310
|
return sortedData;
|
|
311
311
|
}, [data, limit, autoSortData, othersName]);
|
|
312
312
|
const limitedDataWithoutOthers = useMemo(() => limitedData.filter(item => !item.original?.defaultOther), [limitedData]);
|
|
313
|
-
return { limitedData, limitedDataWithoutOthers };
|
|
313
|
+
return useMemo(() => ({ limitedData, limitedDataWithoutOthers }), [limitedData, limitedDataWithoutOthers]);
|
|
314
314
|
};
|
|
315
315
|
|
|
316
316
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-chart-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.4",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"echarts": "5.6.0",
|
|
11
|
-
"@trackunit/date-and-time-utils": "1.11.
|
|
12
|
-
"@trackunit/react-date-and-time-hooks": "1.
|
|
13
|
-
"@trackunit/ui-design-tokens": "1.11.
|
|
14
|
-
"@trackunit/shared-utils": "1.13.
|
|
15
|
-
"@trackunit/css-class-variance-utilities": "1.11.
|
|
16
|
-
"@trackunit/react-components": "1.
|
|
11
|
+
"@trackunit/date-and-time-utils": "1.11.93",
|
|
12
|
+
"@trackunit/react-date-and-time-hooks": "1.19.4",
|
|
13
|
+
"@trackunit/ui-design-tokens": "1.11.88",
|
|
14
|
+
"@trackunit/shared-utils": "1.13.91",
|
|
15
|
+
"@trackunit/css-class-variance-utilities": "1.11.91",
|
|
16
|
+
"@trackunit/react-components": "1.21.4"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"react": "^19.0.0"
|