@refinedev/core 5.0.10 → 5.0.12
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/CHANGELOG.md +18 -0
- package/dist/hooks/button/delete-button/index.d.cts.map +1 -1
- package/dist/hooks/button/delete-button/index.d.ts.map +1 -1
- package/dist/hooks/data/useList.d.cts +1 -0
- package/dist/hooks/data/useList.d.cts.map +1 -1
- package/dist/hooks/data/useList.d.mts +1 -0
- package/dist/hooks/data/useList.d.mts.map +1 -0
- package/dist/hooks/data/useList.d.ts +1 -0
- package/dist/hooks/data/useList.d.ts.map +1 -1
- package/dist/hooks/useTable/index.d.cts +1 -0
- package/dist/hooks/useTable/index.d.cts.map +1 -1
- package/dist/hooks/useTable/index.d.mts +1 -0
- package/dist/hooks/useTable/index.d.mts.map +1 -0
- package/dist/hooks/useTable/index.d.ts +1 -0
- package/dist/hooks/useTable/index.d.ts.map +1 -1
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/hooks/button/delete-button/index.tsx +1 -0
- package/src/hooks/data/useList.ts +2 -0
- package/src/hooks/useTable/index.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refinedev/core",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Refine is a React meta-framework for building enterprise-level, data-intensive applications rapidly with support for modern UI libraries and headless integrations.",
|
|
6
6
|
"repository": {
|
|
@@ -99,6 +99,7 @@ export type UseListReturnType<TData, TError> = {
|
|
|
99
99
|
result: {
|
|
100
100
|
data: TData[];
|
|
101
101
|
total: number | undefined;
|
|
102
|
+
[key: string]: any;
|
|
102
103
|
};
|
|
103
104
|
} & UseLoadingOvertimeReturnType;
|
|
104
105
|
|
|
@@ -329,6 +330,7 @@ export const useList = <
|
|
|
329
330
|
return {
|
|
330
331
|
query: queryResponse,
|
|
331
332
|
result: {
|
|
333
|
+
...queryResponse?.data,
|
|
332
334
|
data: queryResponse?.data?.data || EMPTY_ARRAY,
|
|
333
335
|
total: queryResponse?.data?.total,
|
|
334
336
|
},
|
|
@@ -158,6 +158,7 @@ export type useTableReturnType<
|
|
|
158
158
|
result: {
|
|
159
159
|
data: TData[];
|
|
160
160
|
total: number | undefined;
|
|
161
|
+
[key: string]: any;
|
|
161
162
|
};
|
|
162
163
|
} & UseLoadingOvertimeReturnType;
|
|
163
164
|
|
|
@@ -435,6 +436,7 @@ export function useTable<
|
|
|
435
436
|
createLinkForSyncWithLocation,
|
|
436
437
|
overtime: queryResult.overtime,
|
|
437
438
|
result: {
|
|
439
|
+
...queryResult.result,
|
|
438
440
|
data: queryResult.result?.data || EMPTY_ARRAY,
|
|
439
441
|
total: queryResult.result?.total,
|
|
440
442
|
},
|