@refinedev/core 4.46.3-alpha.0 → 4.47.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.
- package/CHANGELOG.md +22 -0
- package/README.md +3 -3
- package/dist/components/authenticated/index.d.ts +3 -3
- package/dist/components/authenticated/index.d.ts.map +1 -1
- package/dist/components/canAccess/index.d.ts +8 -5
- package/dist/components/canAccess/index.d.ts.map +1 -1
- package/dist/components/containers/refine/index.d.ts +1 -1
- package/dist/components/containers/refine/index.d.ts.map +1 -1
- package/dist/components/gh-banner/index.d.ts +2 -2
- package/dist/components/gh-banner/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/forgotPassword/index.d.ts +1 -1
- package/dist/components/pages/auth/components/forgotPassword/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/login/index.d.ts +1 -1
- package/dist/components/pages/auth/components/login/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/register/index.d.ts +1 -1
- package/dist/components/pages/auth/components/register/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/updatePassword/index.d.ts +1 -1
- package/dist/components/pages/auth/components/updatePassword/index.d.ts.map +1 -1
- package/dist/components/pages/auth/index.d.ts +3 -3
- package/dist/components/pages/auth/index.d.ts.map +1 -1
- package/dist/components/pages/config-error/index.d.ts +3 -0
- package/dist/components/pages/config-error/index.d.ts.map +1 -0
- package/dist/components/pages/config-success/index.d.ts +6 -0
- package/dist/components/pages/config-success/index.d.ts.map +1 -0
- package/dist/components/pages/welcome/index.d.ts +2 -5
- package/dist/components/pages/welcome/index.d.ts.map +1 -1
- package/dist/components/routeChangeHandler/index.d.ts +1 -0
- package/dist/components/routeChangeHandler/index.d.ts.map +1 -1
- package/dist/contexts/accessControl/IAccessControlContext.d.ts +6 -3
- package/dist/contexts/accessControl/IAccessControlContext.d.ts.map +1 -1
- package/dist/contexts/accessControl/index.d.ts.map +1 -1
- package/dist/contexts/auditLog/IAuditLogContext.d.ts +3 -3
- package/dist/contexts/auditLog/IAuditLogContext.d.ts.map +1 -1
- package/dist/contexts/auth/IAuthContext.d.ts +5 -5
- package/dist/contexts/auth/IAuthContext.d.ts.map +1 -1
- package/dist/contexts/data/IDataContext.d.ts +9 -9
- package/dist/contexts/data/IDataContext.d.ts.map +1 -1
- package/dist/contexts/data/index.d.ts +5 -49
- package/dist/contexts/data/index.d.ts.map +1 -1
- package/dist/contexts/legacy-router/IRouterContext.d.ts +1 -1
- package/dist/contexts/legacy-router/IRouterContext.d.ts.map +1 -1
- package/dist/contexts/live/ILiveContext.d.ts +3 -2
- package/dist/contexts/live/ILiveContext.d.ts.map +1 -1
- package/dist/contexts/notification/INotificationContext.d.ts +1 -1
- package/dist/contexts/notification/INotificationContext.d.ts.map +1 -1
- package/dist/contexts/refine/IRefineContext.d.ts +2 -0
- package/dist/contexts/refine/IRefineContext.d.ts.map +1 -1
- package/dist/contexts/refine/index.d.ts.map +1 -1
- package/dist/contexts/resource/IResourceContext.d.ts +5 -5
- package/dist/contexts/resource/IResourceContext.d.ts.map +1 -1
- package/dist/contexts/translation/ITranslationContext.d.ts +2 -2
- package/dist/contexts/translation/ITranslationContext.d.ts.map +1 -1
- package/dist/contexts/undoableQueue/IUndoableQueueContext.d.ts +1 -0
- package/dist/contexts/undoableQueue/IUndoableQueueContext.d.ts.map +1 -1
- package/dist/definitions/helpers/downloadInBrowser/index.d.ts +2 -0
- package/dist/definitions/helpers/downloadInBrowser/index.d.ts.map +1 -0
- package/dist/definitions/helpers/handlePaginationParams/index.d.ts +1 -1
- package/dist/definitions/helpers/handlePaginationParams/index.d.ts.map +1 -1
- package/dist/definitions/helpers/handleRefineOptions/index.d.ts +2 -2
- package/dist/definitions/helpers/handleRefineOptions/index.d.ts.map +1 -1
- package/dist/definitions/helpers/index.d.ts +1 -0
- package/dist/definitions/helpers/index.d.ts.map +1 -1
- package/dist/definitions/helpers/keys/index.d.ts +10 -10
- package/dist/definitions/helpers/keys/index.d.ts.map +1 -1
- package/dist/definitions/helpers/menu/create-tree.d.ts +2 -2
- package/dist/definitions/helpers/menu/create-tree.d.ts.map +1 -1
- package/dist/definitions/helpers/redirectPage/index.d.ts +1 -1
- package/dist/definitions/helpers/redirectPage/index.d.ts.map +1 -1
- package/dist/definitions/helpers/router/get-action-routes-from-resource.d.ts +1 -1
- package/dist/definitions/helpers/router/get-action-routes-from-resource.d.ts.map +1 -1
- package/dist/definitions/helpers/sequentialPromises/index.d.ts +2 -2
- package/dist/definitions/helpers/sequentialPromises/index.d.ts.map +1 -1
- package/dist/esm/index.js +26 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/hooks/accessControl/useCan/index.d.ts +2 -2
- package/dist/hooks/accessControl/useCan/index.d.ts.map +1 -1
- package/dist/hooks/auditLog/useLog/index.d.ts +3 -3
- package/dist/hooks/auditLog/useLog/index.d.ts.map +1 -1
- package/dist/hooks/auditLog/useLogList/index.d.ts +1 -1
- package/dist/hooks/auditLog/useLogList/index.d.ts.map +1 -1
- package/dist/hooks/auth/useForgotPassword/index.d.ts +6 -6
- package/dist/hooks/auth/useForgotPassword/index.d.ts.map +1 -1
- package/dist/hooks/auth/useGetIdentity/index.d.ts +6 -6
- package/dist/hooks/auth/useGetIdentity/index.d.ts.map +1 -1
- package/dist/hooks/auth/useIsAuthenticated/index.d.ts +6 -6
- package/dist/hooks/auth/useIsAuthenticated/index.d.ts.map +1 -1
- package/dist/hooks/auth/useLogin/index.d.ts +6 -6
- package/dist/hooks/auth/useLogin/index.d.ts.map +1 -1
- package/dist/hooks/auth/useLogout/index.d.ts +7 -7
- package/dist/hooks/auth/useLogout/index.d.ts.map +1 -1
- package/dist/hooks/auth/useOnError/index.d.ts +6 -6
- package/dist/hooks/auth/useOnError/index.d.ts.map +1 -1
- package/dist/hooks/auth/usePermissions/index.d.ts +6 -6
- package/dist/hooks/auth/usePermissions/index.d.ts.map +1 -1
- package/dist/hooks/auth/useRegister/index.d.ts +6 -6
- package/dist/hooks/auth/useRegister/index.d.ts.map +1 -1
- package/dist/hooks/auth/useUpdatePassword/index.d.ts +6 -6
- package/dist/hooks/auth/useUpdatePassword/index.d.ts.map +1 -1
- package/dist/hooks/breadcrumb/index.d.ts +3 -3
- package/dist/hooks/breadcrumb/index.d.ts.map +1 -1
- package/dist/hooks/data/useCreate.d.ts +3 -3
- package/dist/hooks/data/useCreate.d.ts.map +1 -1
- package/dist/hooks/data/useCreateMany.d.ts +3 -3
- package/dist/hooks/data/useCreateMany.d.ts.map +1 -1
- package/dist/hooks/data/useCustom.d.ts +1 -1
- package/dist/hooks/data/useCustom.d.ts.map +1 -1
- package/dist/hooks/data/useCustomMutation.d.ts +3 -3
- package/dist/hooks/data/useCustomMutation.d.ts.map +1 -1
- package/dist/hooks/data/useDataProvider.d.ts.map +1 -1
- package/dist/hooks/data/useDelete.d.ts +3 -3
- package/dist/hooks/data/useDelete.d.ts.map +1 -1
- package/dist/hooks/data/useDeleteMany.d.ts +3 -3
- package/dist/hooks/data/useDeleteMany.d.ts.map +1 -1
- package/dist/hooks/data/useInfiniteList.d.ts +2 -2
- package/dist/hooks/data/useInfiniteList.d.ts.map +1 -1
- package/dist/hooks/data/useList.d.ts +2 -2
- package/dist/hooks/data/useList.d.ts.map +1 -1
- package/dist/hooks/data/useMany.d.ts +1 -1
- package/dist/hooks/data/useMany.d.ts.map +1 -1
- package/dist/hooks/data/useOne.d.ts +1 -1
- package/dist/hooks/data/useOne.d.ts.map +1 -1
- package/dist/hooks/data/useUpdate.d.ts +3 -3
- package/dist/hooks/data/useUpdate.d.ts.map +1 -1
- package/dist/hooks/data/useUpdateMany.d.ts +3 -3
- package/dist/hooks/data/useUpdateMany.d.ts.map +1 -1
- package/dist/hooks/export/csvDownload.interface.d.ts +4 -4
- package/dist/hooks/export/csvDownload.interface.d.ts.map +1 -1
- package/dist/hooks/export/index.d.ts +29 -6
- package/dist/hooks/export/index.d.ts.map +1 -1
- package/dist/hooks/form/useForm.d.ts +4 -4
- package/dist/hooks/form/useForm.d.ts.map +1 -1
- package/dist/hooks/import/index.d.ts +10 -9
- package/dist/hooks/import/index.d.ts.map +1 -1
- package/dist/hooks/invalidate/index.d.ts +1 -1
- package/dist/hooks/invalidate/index.d.ts.map +1 -1
- package/dist/hooks/legacy-router/useRouterContext.d.ts +1 -0
- package/dist/hooks/legacy-router/useRouterContext.d.ts.map +1 -1
- package/dist/hooks/live/useResourceSubscription/index.d.ts +2 -2
- package/dist/hooks/live/useResourceSubscription/index.d.ts.map +1 -1
- package/dist/hooks/live/useSubscription/index.d.ts +1 -1
- package/dist/hooks/live/useSubscription/index.d.ts.map +1 -1
- package/dist/hooks/menu/useMenu.d.ts +3 -3
- package/dist/hooks/menu/useMenu.d.ts.map +1 -1
- package/dist/hooks/modal/useModal/index.d.ts +2 -2
- package/dist/hooks/modal/useModal/index.d.ts.map +1 -1
- package/dist/hooks/navigation/index.d.ts +1 -1
- package/dist/hooks/navigation/index.d.ts.map +1 -1
- package/dist/hooks/notification/useCancelNotification/index.d.ts +2 -1
- package/dist/hooks/notification/useCancelNotification/index.d.ts.map +1 -1
- package/dist/hooks/redirection/index.d.ts +1 -1
- package/dist/hooks/redirection/index.d.ts.map +1 -1
- package/dist/hooks/refine/useMutationMode.d.ts +1 -1
- package/dist/hooks/refine/useMutationMode.d.ts.map +1 -1
- package/dist/hooks/refine/useRefineContext.d.ts +2 -0
- package/dist/hooks/refine/useRefineContext.d.ts.map +1 -1
- package/dist/hooks/refine/useSyncWithLocation.d.ts +1 -1
- package/dist/hooks/refine/useSyncWithLocation.d.ts.map +1 -1
- package/dist/hooks/refine/useTitle.d.ts +1 -0
- package/dist/hooks/refine/useTitle.d.ts.map +1 -1
- package/dist/hooks/refine/useWarnAboutChange/index.d.ts +1 -1
- package/dist/hooks/refine/useWarnAboutChange/index.d.ts.map +1 -1
- package/dist/hooks/resource/useResource/index.d.ts +5 -5
- package/dist/hooks/resource/useResource/index.d.ts.map +1 -1
- package/dist/hooks/resource/useResourceWithRoute/index.d.ts +1 -1
- package/dist/hooks/resource/useResourceWithRoute/index.d.ts.map +1 -1
- package/dist/hooks/router/use-get-to-path/index.d.ts +2 -2
- package/dist/hooks/router/use-get-to-path/index.d.ts.map +1 -1
- package/dist/hooks/router/use-go/index.d.ts +4 -4
- package/dist/hooks/router/use-go/index.d.ts.map +1 -1
- package/dist/hooks/router/use-parse/index.d.ts +1 -1
- package/dist/hooks/router/use-parse/index.d.ts.map +1 -1
- package/dist/hooks/router/use-to-path/index.d.ts +1 -1
- package/dist/hooks/router/use-to-path/index.d.ts.map +1 -1
- package/dist/hooks/show/useShow.d.ts +2 -2
- package/dist/hooks/show/useShow.d.ts.map +1 -1
- package/dist/hooks/translate/useGetLocale.d.ts +1 -1
- package/dist/hooks/translate/useGetLocale.d.ts.map +1 -1
- package/dist/hooks/useLoadingOvertime/index.d.ts +6 -6
- package/dist/hooks/useLoadingOvertime/index.d.ts.map +1 -1
- package/dist/hooks/useSelect/index.d.ts +2 -2
- package/dist/hooks/useSelect/index.d.ts.map +1 -1
- package/dist/hooks/useTable/index.d.ts +5 -5
- package/dist/hooks/useTable/index.d.ts.map +1 -1
- package/dist/iife/index.js +26 -7
- package/dist/iife/index.js.map +1 -1
- package/dist/index.js +26 -7
- package/dist/index.js.map +1 -1
- package/dist/interfaces/actions.d.ts +6 -6
- package/dist/interfaces/actions.d.ts.map +1 -1
- package/dist/interfaces/auditLog/logData.d.ts +1 -1
- package/dist/interfaces/auditLog/logData.d.ts.map +1 -1
- package/dist/interfaces/auth.d.ts +6 -6
- package/dist/interfaces/auth.d.ts.map +1 -1
- package/dist/interfaces/autoSave.d.ts +4 -4
- package/dist/interfaces/autoSave.d.ts.map +1 -1
- package/dist/interfaces/bindings/access-control.d.ts +3 -3
- package/dist/interfaces/bindings/access-control.d.ts.map +1 -1
- package/dist/interfaces/bindings/auth.d.ts +12 -7
- package/dist/interfaces/bindings/auth.d.ts.map +1 -1
- package/dist/interfaces/bindings/data.d.ts +3 -3
- package/dist/interfaces/bindings/data.d.ts.map +1 -1
- package/dist/interfaces/bindings/i18n.d.ts +4 -4
- package/dist/interfaces/bindings/i18n.d.ts.map +1 -1
- package/dist/interfaces/bindings/live.d.ts +5 -5
- package/dist/interfaces/bindings/live.d.ts.map +1 -1
- package/dist/interfaces/bindings/notifications.d.ts +1 -1
- package/dist/interfaces/bindings/notifications.d.ts.map +1 -1
- package/dist/interfaces/bindings/resource.d.ts +7 -7
- package/dist/interfaces/bindings/resource.d.ts.map +1 -1
- package/dist/interfaces/bindings/router.d.ts +8 -7
- package/dist/interfaces/bindings/router.d.ts.map +1 -1
- package/dist/interfaces/customComponents.d.ts +3 -3
- package/dist/interfaces/customComponents.d.ts.map +1 -1
- package/dist/interfaces/errors/RefineError.d.ts +1 -1
- package/dist/interfaces/errors/RefineError.d.ts.map +1 -1
- package/dist/interfaces/form-url-params.d.ts +1 -1
- package/dist/interfaces/form-url-params.d.ts.map +1 -1
- package/dist/interfaces/index.d.ts +5 -5
- package/dist/interfaces/index.d.ts.map +1 -1
- package/dist/interfaces/live/LiveEvent.d.ts +1 -1
- package/dist/interfaces/live/LiveEvent.d.ts.map +1 -1
- package/dist/interfaces/live/LiveModeProps.d.ts +2 -2
- package/dist/interfaces/live/LiveModeProps.d.ts.map +1 -1
- package/dist/interfaces/metaData/fields.d.ts +1 -1
- package/dist/interfaces/metaData/fields.d.ts.map +1 -1
- package/dist/interfaces/metaData/graphqlQueryOptions.d.ts +1 -1
- package/dist/interfaces/metaData/graphqlQueryOptions.d.ts.map +1 -1
- package/dist/interfaces/metaData/metaDataQuery.d.ts +1 -1
- package/dist/interfaces/metaData/metaDataQuery.d.ts.map +1 -1
- package/dist/interfaces/metaData/metaQuery.d.ts +1 -1
- package/dist/interfaces/metaData/metaQuery.d.ts.map +1 -1
- package/dist/interfaces/metaData/nestedField.d.ts +1 -1
- package/dist/interfaces/metaData/nestedField.d.ts.map +1 -1
- package/dist/interfaces/metaData/variableOptions.d.ts +1 -1
- package/dist/interfaces/metaData/variableOptions.d.ts.map +1 -1
- package/dist/interfaces/mutationMode.d.ts +6 -6
- package/dist/interfaces/mutationMode.d.ts.map +1 -1
- package/dist/interfaces/optimistic-update-map.d.ts +2 -2
- package/dist/interfaces/optimistic-update-map.d.ts.map +1 -1
- package/dist/interfaces/prettify.d.ts +1 -1
- package/dist/interfaces/prettify.d.ts.map +1 -1
- package/dist/interfaces/resourceErrorRouterParams.d.ts +1 -1
- package/dist/interfaces/resourceErrorRouterParams.d.ts.map +1 -1
- package/dist/interfaces/resourceRouterParams.d.ts +1 -1
- package/dist/interfaces/resourceRouterParams.d.ts.map +1 -1
- package/dist/interfaces/successErrorNotification.d.ts +1 -1
- package/dist/interfaces/successErrorNotification.d.ts.map +1 -1
- package/dist/interfaces/telemetry.d.ts +1 -1
- package/dist/interfaces/telemetry.d.ts.map +1 -1
- package/dist/interfaces/textTransformers.d.ts +1 -1
- package/dist/interfaces/textTransformers.d.ts.map +1 -1
- package/package.json +1 -2
- package/src/components/canAccess/index.tsx +6 -0
- package/src/components/containers/refine/index.tsx +1 -1
- package/src/components/pages/config-error/index.tsx +444 -0
- package/src/components/pages/config-success/index.tsx +294 -0
- package/src/components/pages/welcome/index.tsx +10 -289
- package/src/contexts/accessControl/IAccessControlContext.ts +3 -0
- package/src/contexts/accessControl/index.tsx +1 -0
- package/src/contexts/data/index.tsx +9 -24
- package/src/contexts/refine/IRefineContext.ts +2 -0
- package/src/contexts/refine/index.tsx +1 -0
- package/src/definitions/helpers/downloadInBrowser/index.ts +25 -0
- package/src/definitions/helpers/index.ts +1 -0
- package/src/hooks/accessControl/useCan/index.ts +12 -5
- package/src/hooks/auth/useForgotPassword/index.ts +17 -1
- package/src/hooks/auth/useLogin/index.ts +22 -1
- package/src/hooks/auth/useLogout/index.ts +17 -1
- package/src/hooks/auth/useRegister/index.ts +22 -1
- package/src/hooks/auth/useUpdatePassword/index.ts +17 -1
- package/src/hooks/data/useDataProvider.tsx +3 -2
- package/src/hooks/export/index.ts +90 -9
- package/src/hooks/refine/useRefineContext.ts +2 -0
- package/src/interfaces/bindings/auth.ts +6 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphqlQueryOptions.d.ts","sourceRoot":"","sources":["../../../src/interfaces/metaData/graphqlQueryOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,
|
|
1
|
+
{"version":3,"file":"graphqlQueryOptions.d.ts","sourceRoot":"","sources":["../../../src/interfaces/metaData/graphqlQueryOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,oBAAY,mBAAmB,GAAG;IAC9B;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,WAAW,CAAC,EAAE,YAAY,CAAC;CAC9B,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { QueryBuilderOptions } from "./queryBuilderOptions";
|
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated `MetaDataQuery` is deprecated with refine@4, use `MetaQuery` instead, however, we still support `MetaDataQuery` for backward compatibility.
|
|
5
5
|
*/
|
|
6
|
-
export type MetaDataQuery = {
|
|
6
|
+
export declare type MetaDataQuery = {
|
|
7
7
|
[k: string]: any;
|
|
8
8
|
queryContext?: Omit<QueryFunctionContext, "meta">;
|
|
9
9
|
} & QueryBuilderOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metaDataQuery.d.ts","sourceRoot":"","sources":["../../../src/interfaces/metaData/metaDataQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"metaDataQuery.d.ts","sourceRoot":"","sources":["../../../src/interfaces/metaData/metaDataQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;GAEG;AACH,oBAAY,aAAa,GAAG;IACxB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IACjB,YAAY,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;CACrD,GAAG,mBAAmB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { QueryFunctionContext } from "@tanstack/react-query";
|
|
2
2
|
import { QueryBuilderOptions } from "./queryBuilderOptions";
|
|
3
3
|
import { GraphQLQueryOptions } from "./graphqlQueryOptions";
|
|
4
|
-
export type MetaQuery = {
|
|
4
|
+
export declare type MetaQuery = {
|
|
5
5
|
[k: string]: any;
|
|
6
6
|
queryContext?: Omit<QueryFunctionContext, "meta">;
|
|
7
7
|
} & QueryBuilderOptions & GraphQLQueryOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metaQuery.d.ts","sourceRoot":"","sources":["../../../src/interfaces/metaData/metaQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,
|
|
1
|
+
{"version":3,"file":"metaQuery.d.ts","sourceRoot":"","sources":["../../../src/interfaces/metaData/metaQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,oBAAY,SAAS,GAAG;IACpB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IACjB,YAAY,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;CACrD,GAAG,mBAAmB,GACnB,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nestedField.d.ts","sourceRoot":"","sources":["../../../src/interfaces/metaData/nestedField.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,
|
|
1
|
+
{"version":3,"file":"nestedField.d.ts","sourceRoot":"","sources":["../../../src/interfaces/metaData/nestedField.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,oBAAY,WAAW,GAAG;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,mBAAmB,EAAE,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variableOptions.d.ts","sourceRoot":"","sources":["../../../src/interfaces/metaData/variableOptions.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"variableOptions.d.ts","sourceRoot":"","sources":["../../../src/interfaces/metaData/variableOptions.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe,GACrB;IACI,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;IACX,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,GACD;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { BaseRecord, GetListResponse, GetOneResponse, IQueryKeys } from "../interfaces";
|
|
2
2
|
import { QueryKey } from "@tanstack/react-query";
|
|
3
|
-
export type MutationMode = "pessimistic" | "optimistic" | "undoable";
|
|
4
|
-
export type QueryResponse<T = BaseRecord> = GetListResponse<T> | GetOneResponse<T>;
|
|
5
|
-
export type PreviousQuery<TData> = [QueryKey, TData | unknown];
|
|
6
|
-
export type PrevContext<TData> = {
|
|
3
|
+
export declare type MutationMode = "pessimistic" | "optimistic" | "undoable";
|
|
4
|
+
export declare type QueryResponse<T = BaseRecord> = GetListResponse<T> | GetOneResponse<T>;
|
|
5
|
+
export declare type PreviousQuery<TData> = [QueryKey, TData | unknown];
|
|
6
|
+
export declare type PrevContext<TData> = {
|
|
7
7
|
previousQueries: PreviousQuery<TData>[];
|
|
8
8
|
/**
|
|
9
9
|
* @deprecated `QueryKeys` is deprecated in favor of `keys`. Please use `keys` instead to construct query keys for queries and mutations.
|
|
10
10
|
*/
|
|
11
11
|
queryKey: IQueryKeys;
|
|
12
12
|
};
|
|
13
|
-
export type Context = {
|
|
13
|
+
export declare type Context = {
|
|
14
14
|
previousQueries: ContextQuery[];
|
|
15
15
|
};
|
|
16
|
-
export type ContextQuery<T = BaseRecord> = {
|
|
16
|
+
export declare type ContextQuery<T = BaseRecord> = {
|
|
17
17
|
query: QueryResponse<T>;
|
|
18
18
|
queryKey: QueryKey;
|
|
19
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutationMode.d.ts","sourceRoot":"","sources":["../../src/interfaces/mutationMode.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,UAAU,EACV,eAAe,EACf,cAAc,EACd,UAAU,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,
|
|
1
|
+
{"version":3,"file":"mutationMode.d.ts","sourceRoot":"","sources":["../../src/interfaces/mutationMode.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,UAAU,EACV,eAAe,EACf,cAAc,EACd,UAAU,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,oBAAY,YAAY,GAAG,aAAa,GAAG,YAAY,GAAG,UAAU,CAAC;AAErE,oBAAY,aAAa,CAAC,CAAC,GAAG,UAAU,IAClC,eAAe,CAAC,CAAC,CAAC,GAClB,cAAc,CAAC,CAAC,CAAC,CAAC;AAExB,oBAAY,aAAa,CAAC,KAAK,IAAI,CAAC,QAAQ,EAAE,KAAK,GAAG,OAAO,CAAC,CAAC;AAE/D,oBAAY,WAAW,CAAC,KAAK,IAAI;IAC7B,eAAe,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;IACxC;;OAEG;IACH,QAAQ,EAAE,UAAU,CAAC;CACxB,CAAC;AAEF,oBAAY,OAAO,GAAG;IAClB,eAAe,EAAE,YAAY,EAAE,CAAC;CACnC,CAAC;AAEF,oBAAY,YAAY,CAAC,CAAC,GAAG,UAAU,IAAI;IACvC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IACxB,QAAQ,EAAE,QAAQ,CAAC;CACtB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BaseKey, GetListResponse, GetManyResponse, GetOneResponse } from ".";
|
|
2
|
-
export type OptimisticUpdateMapType<TData, TVariables> = {
|
|
2
|
+
export declare type OptimisticUpdateMapType<TData, TVariables> = {
|
|
3
3
|
list?: ((previous: GetListResponse<TData> | null | undefined, values: TVariables, id: BaseKey) => GetListResponse<TData> | null) | boolean;
|
|
4
4
|
many?: ((previous: GetManyResponse<TData> | null | undefined, values: TVariables, id: BaseKey) => GetManyResponse<TData> | null) | boolean;
|
|
5
5
|
detail?: ((previous: GetOneResponse<TData> | null | undefined, values: TVariables, id: BaseKey) => GetOneResponse<TData> | null) | boolean;
|
|
6
6
|
};
|
|
7
|
-
export type OptimisticUpdateManyMapType<TData, TVariables> = {
|
|
7
|
+
export declare type OptimisticUpdateManyMapType<TData, TVariables> = {
|
|
8
8
|
list?: ((previous: GetListResponse<TData> | null | undefined, values: TVariables, ids: BaseKey[]) => GetListResponse<TData> | null) | boolean;
|
|
9
9
|
many?: ((previous: GetManyResponse<TData> | null | undefined, values: TVariables, ids: BaseKey[]) => GetManyResponse<TData> | null) | boolean;
|
|
10
10
|
detail?: ((previous: GetOneResponse<TData> | null | undefined, values: TVariables, id: BaseKey) => GetOneResponse<TData> | null) | boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optimistic-update-map.d.ts","sourceRoot":"","sources":["../../src/interfaces/optimistic-update-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,GAAG,CAAC;AAE9E,
|
|
1
|
+
{"version":3,"file":"optimistic-update-map.d.ts","sourceRoot":"","sources":["../../src/interfaces/optimistic-update-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,GAAG,CAAC;AAE9E,oBAAY,uBAAuB,CAAC,KAAK,EAAE,UAAU,IAAI;IACrD,IAAI,CAAC,EACC,CAAC,CACG,QAAQ,EAAE,eAAe,CAAC,KAAK,CAAC,GAAG,IAAI,GAAG,SAAS,EACnD,MAAM,EAAE,UAAU,EAClB,EAAE,EAAE,OAAO,KACV,eAAe,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GACnC,OAAO,CAAC;IACd,IAAI,CAAC,EACC,CAAC,CACG,QAAQ,EAAE,eAAe,CAAC,KAAK,CAAC,GAAG,IAAI,GAAG,SAAS,EACnD,MAAM,EAAE,UAAU,EAClB,EAAE,EAAE,OAAO,KACV,eAAe,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GACnC,OAAO,CAAC;IACd,MAAM,CAAC,EACD,CAAC,CACG,QAAQ,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,GAAG,SAAS,EAClD,MAAM,EAAE,UAAU,EAClB,EAAE,EAAE,OAAO,KACV,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAClC,OAAO,CAAC;CACjB,CAAC;AAEF,oBAAY,2BAA2B,CAAC,KAAK,EAAE,UAAU,IAAI;IACzD,IAAI,CAAC,EACC,CAAC,CACG,QAAQ,EAAE,eAAe,CAAC,KAAK,CAAC,GAAG,IAAI,GAAG,SAAS,EACnD,MAAM,EAAE,UAAU,EAClB,GAAG,EAAE,OAAO,EAAE,KACb,eAAe,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GACnC,OAAO,CAAC;IACd,IAAI,CAAC,EACC,CAAC,CACG,QAAQ,EAAE,eAAe,CAAC,KAAK,CAAC,GAAG,IAAI,GAAG,SAAS,EACnD,MAAM,EAAE,UAAU,EAClB,GAAG,EAAE,OAAO,EAAE,KACb,eAAe,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GACnC,OAAO,CAAC;IACd,MAAM,CAAC,EACD,CAAC,CACG,QAAQ,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,GAAG,SAAS,EAClD,MAAM,EAAE,UAAU,EAClB,EAAE,EAAE,OAAO,KACV,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAClC,OAAO,CAAC;CACjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prettify.d.ts","sourceRoot":"","sources":["../../src/interfaces/prettify.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"prettify.d.ts","sourceRoot":"","sources":["../../src/interfaces/prettify.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ,CAAC,CAAC,IAAI;KACrB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACvB,GAAG,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resourceErrorRouterParams.d.ts","sourceRoot":"","sources":["../../src/interfaces/resourceErrorRouterParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,
|
|
1
|
+
{"version":3,"file":"resourceErrorRouterParams.d.ts","sourceRoot":"","sources":["../../src/interfaces/resourceErrorRouterParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,oBAAY,yBAAyB,GAAG;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,cAAc,GAAG,SAAS,CAAC;CACtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resourceRouterParams.d.ts","sourceRoot":"","sources":["../../src/interfaces/resourceRouterParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,
|
|
1
|
+
{"version":3,"file":"resourceRouterParams.d.ts","sourceRoot":"","sources":["../../src/interfaces/resourceRouterParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,oBAAY,oBAAoB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,WAAW,CAAC;CACvB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OpenNotificationParams } from ".";
|
|
2
|
-
export type SuccessErrorNotification<TData = unknown, TError = unknown, TVariables = unknown> = {
|
|
2
|
+
export declare type SuccessErrorNotification<TData = unknown, TError = unknown, TVariables = unknown> = {
|
|
3
3
|
/**
|
|
4
4
|
* Success notification configuration to be displayed when the mutation is successful.
|
|
5
5
|
* @default '"There was an error creating resource (status code: `statusCode`)" or "Error when updating resource (status code: statusCode)"'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"successErrorNotification.d.ts","sourceRoot":"","sources":["../../src/interfaces/successErrorNotification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,GAAG,CAAC;AAE3C,
|
|
1
|
+
{"version":3,"file":"successErrorNotification.d.ts","sourceRoot":"","sources":["../../src/interfaces/successErrorNotification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,GAAG,CAAC;AAE3C,oBAAY,wBAAwB,CAChC,KAAK,GAAG,OAAO,EACf,MAAM,GAAG,OAAO,EAChB,UAAU,GAAG,OAAO,IACpB;IACA;;;;OAIG;IACH,mBAAmB,CAAC,EACd,sBAAsB,GACtB,KAAK,GACL,CAAC,CACG,IAAI,CAAC,EAAE,KAAK,EACZ,MAAM,CAAC,EAAE,UAAU,EACnB,QAAQ,CAAC,EAAE,MAAM,KAChB,sBAAsB,GAAG,KAAK,CAAC,CAAC;IAC3C;;;OAGG;IACH,iBAAiB,CAAC,EACZ,sBAAsB,GACtB,KAAK,GACL,CAAC,CACG,KAAK,CAAC,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,UAAU,EACnB,QAAQ,CAAC,EAAE,MAAM,KAChB,sBAAsB,GAAG,KAAK,CAAC,CAAC;CAC9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../src/interfaces/telemetry.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../src/interfaces/telemetry.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc,GAAG;IACzB,SAAS,EAAE;QACP,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,aAAa,CAAC,EAAE,OAAO,CAAC;KAC3B,CAAC;IACF,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textTransformers.d.ts","sourceRoot":"","sources":["../../src/interfaces/textTransformers.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"textTransformers.d.ts","sourceRoot":"","sources":["../../src/interfaces/textTransformers.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB,GAAG;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACpC;;;;OAIG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAClC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;CACvC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refinedev/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.47.0",
|
|
4
4
|
"description": "refine is a React-based framework for building internal tools, rapidly. It ships with Ant Design System, an enterprise-level UI toolkit.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@refinedev/devtools-internal": "1.1.4",
|
|
48
|
-
"export-to-csv-fix-source-map": "^0.2.1",
|
|
49
48
|
"lodash-es": "^4.17.21",
|
|
50
49
|
"lodash": "^4.17.21",
|
|
51
50
|
"papaparse": "^5.3.0",
|
|
@@ -2,6 +2,9 @@ import React, { useEffect } from "react";
|
|
|
2
2
|
|
|
3
3
|
import { useCan, useResource } from "@hooks";
|
|
4
4
|
import { BaseKey, IResourceItem, ITreeMenu } from "../../interfaces";
|
|
5
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
6
|
+
|
|
7
|
+
import { CanReturnType } from "../../interfaces";
|
|
5
8
|
|
|
6
9
|
type CanParams = {
|
|
7
10
|
resource?: IResourceItem & { children?: ITreeMenu[] };
|
|
@@ -39,6 +42,7 @@ type CanAccessBaseProps = {
|
|
|
39
42
|
*/
|
|
40
43
|
onUnauthorized?: (props: OnUnauthorizedProps) => void;
|
|
41
44
|
children: React.ReactNode;
|
|
45
|
+
queryOptions?: UseQueryOptions<CanReturnType>;
|
|
42
46
|
};
|
|
43
47
|
|
|
44
48
|
type CanAccessWithoutParamsProps = {
|
|
@@ -59,6 +63,7 @@ export const CanAccess: React.FC<CanAccessProps> = ({
|
|
|
59
63
|
fallback,
|
|
60
64
|
onUnauthorized,
|
|
61
65
|
children,
|
|
66
|
+
queryOptions: componentQueryOptions,
|
|
62
67
|
...rest
|
|
63
68
|
}) => {
|
|
64
69
|
const {
|
|
@@ -90,6 +95,7 @@ export const CanAccess: React.FC<CanAccessProps> = ({
|
|
|
90
95
|
resource: resourceName,
|
|
91
96
|
action,
|
|
92
97
|
params,
|
|
98
|
+
queryOptions: componentQueryOptions,
|
|
93
99
|
});
|
|
94
100
|
|
|
95
101
|
useEffect(() => {
|
|
@@ -69,7 +69,7 @@ export interface RefineProps {
|
|
|
69
69
|
* A `dataProvider` is the place where a refine app communicates with an API. Data providers also act as adapters for refine, making it possible for it to consume different API's and data services.
|
|
70
70
|
* @type [`IDataContextProvider` | `IDataMultipleContextProvider`](https://refine.dev/docs/api-reference/core/providers/data-provider/)
|
|
71
71
|
*/
|
|
72
|
-
dataProvider
|
|
72
|
+
dataProvider?: IDataContextProvider | IDataMultipleContextProvider;
|
|
73
73
|
/**
|
|
74
74
|
* `authProvider` handles authentication logic like login, logout flow and checking user credentials. It is an object with methods that refine uses when necessary.
|
|
75
75
|
* @type [`AuthProvider`](https://refine.dev/docs/api-reference/core/providers/auth-provider/)
|