@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@refinedev/core",
3
- "version": "5.0.10",
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": {
@@ -52,6 +52,7 @@ export function useDeleteButton(props: DeleteButtonProps): DeleteButtonValues {
52
52
  const { title, disabled, hidden, canAccess } = useButtonCanAccess({
53
53
  action: "delete",
54
54
  accessControl: props.accessControl,
55
+ meta: props.meta,
55
56
  id,
56
57
  resource,
57
58
  });
@@ -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
  },