@refinedev/core 4.50.0 → 4.52.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 +93 -0
- package/README.md +1 -0
- package/dist/components/authenticated/index.d.mts.map +75 -1
- package/dist/components/autoSaveIndicator/index.d.cts.map +1 -1
- package/dist/components/autoSaveIndicator/index.d.mts.map +24 -1
- package/dist/components/autoSaveIndicator/index.d.ts.map +1 -1
- package/dist/components/canAccess/index.d.mts.map +52 -1
- package/dist/components/containers/index.d.mts.map +2 -1
- package/dist/components/containers/refine/index.d.mts.map +11 -1
- package/dist/components/gh-banner/index.d.mts.map +7 -1
- package/dist/components/gh-banner/styles.d.mts.map +2 -1
- package/dist/components/index.d.mts.map +10 -1
- package/dist/components/layoutWrapper/defaultLayout/index.d.mts.map +4 -1
- package/dist/components/layoutWrapper/index.d.mts.map +46 -1
- package/dist/components/pages/auth/components/forgotPassword/index.d.mts.map +7 -1
- package/dist/components/pages/auth/components/index.d.mts.map +5 -1
- package/dist/components/pages/auth/components/login/index.d.mts.map +7 -1
- package/dist/components/pages/auth/components/register/index.d.mts.map +7 -1
- package/dist/components/pages/auth/components/updatePassword/index.d.mts.map +7 -1
- package/dist/components/pages/auth/index.d.mts.map +12 -1
- package/dist/components/pages/auth/types.d.mts.map +179 -1
- package/dist/components/pages/config-error/index.d.mts.map +3 -1
- package/dist/components/pages/config-success/index.d.mts.map +6 -1
- package/dist/components/pages/error/index.d.mts.map +9 -1
- package/dist/components/pages/index.d.mts.map +7 -1
- package/dist/components/pages/login/index.d.mts.map +13 -1
- package/dist/components/pages/ready/index.d.mts.map +8 -1
- package/dist/components/pages/welcome/index.d.mts.map +3 -1
- package/dist/components/routeChangeHandler/index.d.mts.map +3 -1
- package/dist/components/telemetry/index.d.mts.map +3 -1
- package/dist/components/telemetry/types.d.mts.map +16 -1
- package/dist/components/undoableQueue/index.d.mts.map +6 -1
- package/dist/contexts/accessControl/index.d.mts.map +7 -1
- package/dist/contexts/accessControl/types.d.mts.map +84 -1
- package/dist/contexts/auditLog/index.d.mts.map +5 -1
- package/dist/contexts/auditLog/types.d.mts.map +41 -1
- package/dist/contexts/auth/index.d.mts.map +18 -1
- package/dist/contexts/auth/types.d.mts.map +101 -1
- package/dist/contexts/data/index.d.mts.map +10 -1
- package/dist/contexts/data/types.d.mts.map +347 -1
- package/dist/contexts/i18n/index.d.mts.map +7 -1
- package/dist/contexts/i18n/types.d.mts.map +13 -1
- package/dist/contexts/live/index.d.mts.map +5 -1
- package/dist/contexts/live/types.d.mts.map +96 -1
- package/dist/contexts/notification/index.d.mts.map +7 -1
- package/dist/contexts/notification/types.d.mts.map +27 -1
- package/dist/contexts/refine/index.d.mts.map +6 -1
- package/dist/contexts/refine/types.d.mts.map +325 -1
- package/dist/contexts/resource/index.d.mts.map +7 -1
- package/dist/contexts/resource/types.d.mts.map +168 -1
- package/dist/contexts/router/index.d.mts.map +7 -1
- package/dist/contexts/router/legacy/index.d.mts.map +6 -1
- package/dist/contexts/router/legacy/types.d.mts.map +47 -1
- package/dist/contexts/router/picker/index.d.mts.map +15 -1
- package/dist/contexts/router/types.d.mts.map +67 -1
- package/dist/contexts/undoableQueue/index.d.mts.map +6 -1
- package/dist/contexts/undoableQueue/types.d.mts.map +21 -1
- package/dist/contexts/unsavedWarn/index.d.mts.map +5 -1
- package/dist/contexts/unsavedWarn/types.d.mts.map +5 -1
- package/dist/definitions/helpers/async-debounce/index.d.mts.map +18 -1
- package/dist/definitions/helpers/check-router-prop-misuse/index.d.mts.map +4 -1
- package/dist/definitions/helpers/defer-execution/index.d.mts.map +9 -1
- package/dist/definitions/helpers/downloadInBrowser/index.d.mts.map +2 -1
- package/dist/definitions/helpers/flatten-object-keys/index.d.mts.map +4 -1
- package/dist/definitions/helpers/generateDocumentTitle/index.d.mts.map +7 -1
- package/dist/definitions/helpers/handleMultiple/index.d.mts.map +6 -1
- package/dist/definitions/helpers/handlePaginationParams/index.d.mts.map +9 -1
- package/dist/definitions/helpers/handleRefineOptions/index.d.mts.map +26 -1
- package/dist/definitions/helpers/handleUseParams/index.d.mts.map +2 -1
- package/dist/definitions/helpers/hasPermission/index.d.mts.map +2 -1
- package/dist/definitions/helpers/humanizeString/index.d.mts.map +2 -1
- package/dist/definitions/helpers/importCSVMapper/index.d.mts.map +3 -1
- package/dist/definitions/helpers/index.d.mts.map +34 -1
- package/dist/definitions/helpers/keys/index.d.mts.map +64 -1
- package/dist/definitions/helpers/legacy-resource-transform/index.d.mts.map +9 -1
- package/dist/definitions/helpers/menu/create-resource-key.d.mts.map +3 -1
- package/dist/definitions/helpers/menu/create-tree.d.mts.map +13 -1
- package/dist/definitions/helpers/pick-resource/index.d.mts.map +8 -1
- package/dist/definitions/helpers/pickDataProvider/index.d.mts.map +6 -1
- package/dist/definitions/helpers/pickNotDeprecated/index.d.mts.map +2 -1
- package/dist/definitions/helpers/prepare-query-context/index.d.mts.map +3 -1
- package/dist/definitions/helpers/property-path-to-array/index.d.mts.map +2 -1
- package/dist/definitions/helpers/queryKeys/index.d.mts.map +7 -1
- package/dist/definitions/helpers/redirectPage/index.d.mts.map +11 -1
- package/dist/definitions/helpers/routeGenerator/index.d.mts.map +7 -1
- package/dist/definitions/helpers/router/check-by-segments.d.mts.map +9 -1
- package/dist/definitions/helpers/router/compose-route.d.mts.map +11 -1
- package/dist/definitions/helpers/router/get-action-routes-from-resource.d.mts.map +16 -1
- package/dist/definitions/helpers/router/get-default-action-path.d.mts.map +8 -1
- package/dist/definitions/helpers/router/get-parent-prefix-for-resource.d.mts.map +7 -1
- package/dist/definitions/helpers/router/get-parent-resource.d.mts.map +7 -1
- package/dist/definitions/helpers/router/index.d.mts.map +10 -1
- package/dist/definitions/helpers/router/is-parameter.d.mts.map +5 -1
- package/dist/definitions/helpers/router/is-segment-counts-same.d.mts.map +5 -1
- package/dist/definitions/helpers/router/match-resource-from-route.d.mts.map +15 -1
- package/dist/definitions/helpers/router/pick-matched-route.d.mts.map +8 -1
- package/dist/definitions/helpers/router/pick-route-params.d.mts.map +6 -1
- package/dist/definitions/helpers/router/prepare-route-params.d.mts.map +8 -1
- package/dist/definitions/helpers/router/remove-leading-trailing-slashes.d.mts.map +5 -1
- package/dist/definitions/helpers/router/split-to-segments.d.mts.map +5 -1
- package/dist/definitions/helpers/safe-translate/index.d.mts.map +3 -1
- package/dist/definitions/helpers/sanitize-resource/index.d.mts.map +8 -1
- package/dist/definitions/helpers/sequentialPromises/index.d.mts.map +5 -1
- package/dist/definitions/helpers/treeView/createTreeView/index.d.mts.map +6 -1
- package/dist/definitions/helpers/treeView/index.d.mts.map +2 -1
- package/dist/definitions/helpers/useActiveAuthProvider/index.d.cts +7 -7
- package/dist/definitions/helpers/useActiveAuthProvider/index.d.mts +7 -7
- package/dist/definitions/helpers/useActiveAuthProvider/index.d.mts.map +34 -1
- package/dist/definitions/helpers/useActiveAuthProvider/index.d.ts +7 -7
- package/dist/definitions/helpers/useInfinitePagination/index.d.mts.map +4 -1
- package/dist/definitions/helpers/useMediaQuery/index.d.mts.map +2 -1
- package/dist/definitions/helpers/useUserFriendlyName/index.d.mts.map +6 -1
- package/dist/definitions/helpers/userFriendlyResourceName/index.d.mts.map +7 -1
- package/dist/definitions/helpers/userFriendlySeconds/index.d.mts.map +2 -1
- package/dist/definitions/index.d.mts.map +4 -1
- package/dist/definitions/table/index.d.mts.map +34 -1
- package/dist/definitions/upload/file2Base64/index.d.mts.map +2 -1
- package/dist/definitions/upload/index.d.mts.map +2 -1
- package/dist/hooks/accessControl/index.d.mts.map +3 -1
- package/dist/hooks/accessControl/useCan/index.d.mts.map +18 -1
- package/dist/hooks/accessControl/useCanWithoutCache.d.mts.map +3 -1
- package/dist/hooks/auditLog/index.d.mts.map +3 -1
- package/dist/hooks/auditLog/useLog/index.d.mts.map +27 -1
- package/dist/hooks/auditLog/useLogList/index.d.mts.map +22 -1
- package/dist/hooks/auth/index.d.mts.map +11 -1
- package/dist/hooks/auth/useForgotPassword/index.d.mts.map +22 -1
- package/dist/hooks/auth/useGetIdentity/index.d.mts.map +21 -1
- package/dist/hooks/auth/useInvalidateAuthStore/index.d.mts.map +2 -1
- package/dist/hooks/auth/useIsAuthenticated/index.d.mts.map +25 -1
- package/dist/hooks/auth/useIsExistAuthentication/index.d.mts.map +6 -1
- package/dist/hooks/auth/useLogin/index.d.mts.map +22 -1
- package/dist/hooks/auth/useLogout/index.d.mts.map +26 -1
- package/dist/hooks/auth/useOnError/index.d.mts.map +22 -1
- package/dist/hooks/auth/usePermissions/index.d.mts.map +24 -1
- package/dist/hooks/auth/useRegister/index.d.mts.map +22 -1
- package/dist/hooks/auth/useUpdatePassword/index.d.mts.map +23 -1
- package/dist/hooks/breadcrumb/index.d.mts.map +18 -1
- package/dist/hooks/button/actionable-button/index.d.mts.map +8 -1
- package/dist/hooks/button/button-can-access/index.d.mts.map +22 -1
- package/dist/hooks/button/delete-button/index.d.mts.map +28 -1
- package/dist/hooks/button/index.d.mts.map +13 -1
- package/dist/hooks/button/navigation-button/index.d.mts.map +28 -1
- package/dist/hooks/button/refresh-button/index.d.mts.map +14 -1
- package/dist/hooks/data/index.d.cts +12 -12
- package/dist/hooks/data/index.d.cts.map +1 -1
- package/dist/hooks/data/index.d.mts +12 -12
- package/dist/hooks/data/index.d.mts.map +15 -1
- package/dist/hooks/data/index.d.ts +12 -12
- package/dist/hooks/data/index.d.ts.map +1 -1
- package/dist/hooks/data/useApiUrl.d.mts.map +2 -1
- package/dist/hooks/data/useCreate.d.mts.map +49 -1
- package/dist/hooks/data/useCreateMany.d.mts.map +31 -1
- package/dist/hooks/data/useCustom.d.mts.map +63 -1
- package/dist/hooks/data/useCustomMutation.d.mts.map +42 -1
- package/dist/hooks/data/useDataProvider.d.mts.map +7 -1
- package/dist/hooks/data/useDelete.d.mts.map +65 -1
- package/dist/hooks/data/useDeleteMany.d.mts.map +65 -1
- package/dist/hooks/data/useInfiniteList.d.mts.map +74 -1
- package/dist/hooks/data/useList.d.mts.map +73 -1
- package/dist/hooks/data/useMany.d.mts.map +48 -1
- package/dist/hooks/data/useOne.d.mts.map +50 -1
- package/dist/hooks/data/useUpdate.d.mts.map +83 -1
- package/dist/hooks/data/useUpdateMany.d.cts +1 -1
- package/dist/hooks/data/useUpdateMany.d.cts.map +1 -1
- package/dist/hooks/data/useUpdateMany.d.mts +1 -1
- package/dist/hooks/data/useUpdateMany.d.mts.map +84 -1
- package/dist/hooks/data/useUpdateMany.d.ts +1 -1
- package/dist/hooks/data/useUpdateMany.d.ts.map +1 -1
- package/dist/hooks/deepMemo/index.d.mts.map +7 -1
- package/dist/hooks/export/index.d.mts.map +99 -1
- package/dist/hooks/export/types.d.mts.map +21 -1
- package/dist/hooks/form/index.d.mts.map +18 -1
- package/dist/hooks/form/types.d.mts.map +146 -1
- package/dist/hooks/i18n/index.d.mts.map +5 -1
- package/dist/hooks/i18n/useGetLocale.d.mts.map +9 -1
- package/dist/hooks/i18n/useSetLocale.d.mts.map +8 -1
- package/dist/hooks/i18n/useTranslate.d.mts.map +11 -1
- package/dist/hooks/i18n/useTranslation.d.mts.map +18 -1
- package/dist/hooks/import/index.d.mts.map +101 -1
- package/dist/hooks/index.d.mts.map +31 -1
- package/dist/hooks/invalidate/index.d.mts.map +12 -1
- package/dist/hooks/legacy-router/index.d.mts.map +2 -1
- package/dist/hooks/legacy-router/useRouterContext.d.mts.map +10 -1
- package/dist/hooks/live/index.d.mts.map +5 -1
- package/dist/hooks/live/useLiveMode/index.d.mts.map +3 -1
- package/dist/hooks/live/usePublish/index.d.mts.map +3 -1
- package/dist/hooks/live/useResourceSubscription/index.d.mts.map +43 -1
- package/dist/hooks/live/useSubscription/index.d.mts.map +57 -1
- package/dist/hooks/memoized/index.d.mts.map +6 -1
- package/dist/hooks/menu/index.d.mts.map +2 -1
- package/dist/hooks/menu/useMenu.d.mts.map +28 -1
- package/dist/hooks/modal/index.d.mts.map +2 -1
- package/dist/hooks/modal/useModal/index.d.mts.map +13 -1
- package/dist/hooks/navigation/index.d.mts.map +28 -1
- package/dist/hooks/notification/index.d.mts.map +4 -1
- package/dist/hooks/notification/useCancelNotification/index.d.mts.map +8 -1
- package/dist/hooks/notification/useHandleNotification/index.d.mts.map +3 -1
- package/dist/hooks/notification/useNotification/index.d.mts.map +3 -1
- package/dist/hooks/redirection/index.d.mts.map +11 -1
- package/dist/hooks/refine/index.d.mts.map +6 -1
- package/dist/hooks/refine/useMutationMode.d.mts.map +16 -1
- package/dist/hooks/refine/useRefineContext.d.cts +1 -1
- package/dist/hooks/refine/useRefineContext.d.mts +1 -1
- package/dist/hooks/refine/useRefineContext.d.mts.map +20 -1
- package/dist/hooks/refine/useRefineContext.d.ts +1 -1
- package/dist/hooks/refine/useSyncWithLocation.d.mts.map +13 -1
- package/dist/hooks/refine/useTitle.d.mts.map +10 -1
- package/dist/hooks/refine/useWarnAboutChange/index.d.mts.map +16 -1
- package/dist/hooks/resource/index.d.mts.map +3 -1
- package/dist/hooks/resource/useResource/index.d.mts.map +63 -1
- package/dist/hooks/resource/useResourceWithRoute/index.d.mts.map +8 -1
- package/dist/hooks/router/index.d.mts.map +8 -1
- package/dist/hooks/router/use-back/index.d.mts.map +2 -1
- package/dist/hooks/router/use-get-to-path/index.d.mts.map +19 -1
- package/dist/hooks/router/use-go/index.d.mts.map +33 -1
- package/dist/hooks/router/use-link/index.d.mts.map +6 -1
- package/dist/hooks/router/use-parse/index.d.mts.map +5 -1
- package/dist/hooks/router/use-parsed/index.d.mts.map +2 -1
- package/dist/hooks/router/use-router-misuse-warning/index.d.mts.map +3 -1
- package/dist/hooks/router/use-to-path/index.d.mts.map +18 -1
- package/dist/hooks/show/index.d.mts.map +17 -1
- package/dist/hooks/show/types.d.mts.map +52 -1
- package/dist/hooks/show/useShow.d.mts.map +57 -1
- package/dist/hooks/use-refine-options/index.d.mts.map +2 -1
- package/dist/hooks/use-resource-params/index.d.mts.map +43 -1
- package/dist/hooks/use-resource-params/use-action/index.d.mts.map +12 -1
- package/dist/hooks/use-resource-params/use-id/index.d.mts.map +12 -1
- package/dist/hooks/useKeys/index.d.mts.map +5 -1
- package/dist/hooks/useLoadingOvertime/index.d.mts.map +49 -1
- package/dist/hooks/useMeta/index.d.mts.map +19 -1
- package/dist/hooks/useSelect/index.d.cts +6 -0
- package/dist/hooks/useSelect/index.d.cts.map +1 -1
- package/dist/hooks/useSelect/index.d.mts +6 -0
- package/dist/hooks/useSelect/index.d.mts.map +137 -1
- package/dist/hooks/useSelect/index.d.ts +6 -0
- package/dist/hooks/useSelect/index.d.ts.map +1 -1
- package/dist/hooks/useTable/index.d.mts.map +167 -1
- package/dist/hooks/useTelemetryData/index.d.mts.map +3 -1
- package/dist/index.cjs +18 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -7
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +8 -7
- package/dist/index.d.mts.map +25 -1
- package/dist/index.d.ts +8 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +18 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/components/autoSaveIndicator/index.tsx +21 -7
- package/src/hooks/data/index.ts +28 -12
- package/src/hooks/data/useUpdateMany.ts +1 -1
- package/src/hooks/useSelect/index.ts +15 -1
- package/src/index.tsx +39 -0
|
@@ -1 +1,179 @@
|
|
|
1
|
-
{"
|
|
1
|
+
import React, { type PropsWithChildren } from "react";
|
|
2
|
+
export type OAuthProvider = {
|
|
3
|
+
name: string;
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
label?: string;
|
|
6
|
+
};
|
|
7
|
+
export interface LoginFormTypes {
|
|
8
|
+
email?: string;
|
|
9
|
+
password?: string;
|
|
10
|
+
remember?: boolean;
|
|
11
|
+
providerName?: string;
|
|
12
|
+
redirectPath?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface RegisterFormTypes {
|
|
15
|
+
email?: string;
|
|
16
|
+
password?: string;
|
|
17
|
+
providerName?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ForgotPasswordFormTypes {
|
|
20
|
+
email?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface UpdatePasswordFormTypes {
|
|
23
|
+
password?: string;
|
|
24
|
+
confirmPassword?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* This should be the base type for `AuthPage` component implementations in UI integrations.
|
|
28
|
+
*/
|
|
29
|
+
export type AuthPageProps<TWrapperProps extends {} = Record<keyof any, unknown>, TContentProps extends {} = Record<keyof any, unknown>, TFormProps extends {} = Record<keyof any, unknown>> = (PropsWithChildren<{
|
|
30
|
+
/**
|
|
31
|
+
* @description The type of the auth page.
|
|
32
|
+
* @default "login"
|
|
33
|
+
* @optional
|
|
34
|
+
*/
|
|
35
|
+
type?: "login";
|
|
36
|
+
/**
|
|
37
|
+
* @description Providers array for login with third party auth services.
|
|
38
|
+
* @type [OAuthProvider](/docs/api-reference/core/components/auth-page/#interface)
|
|
39
|
+
* @optional
|
|
40
|
+
*/
|
|
41
|
+
providers?: OAuthProvider[];
|
|
42
|
+
/**
|
|
43
|
+
* @description Render a redirect to register page button node. If set to false, register button will not be rendered.
|
|
44
|
+
* @default `"/register"`
|
|
45
|
+
* @optional
|
|
46
|
+
*/
|
|
47
|
+
registerLink?: React.ReactNode;
|
|
48
|
+
/**
|
|
49
|
+
* @description Render a redirect to forgot password page button node. If set to false, forgot password button will not be rendered.
|
|
50
|
+
* @default `"/forgot-password"`
|
|
51
|
+
* @optional
|
|
52
|
+
*/
|
|
53
|
+
forgotPasswordLink?: React.ReactNode;
|
|
54
|
+
/**
|
|
55
|
+
* @description Render a remember me button node. If set to false, remember me button will not be rendered.
|
|
56
|
+
* @optional
|
|
57
|
+
*/
|
|
58
|
+
rememberMe?: React.ReactNode;
|
|
59
|
+
/**
|
|
60
|
+
* @description Can be used to hide the form components
|
|
61
|
+
* @optional
|
|
62
|
+
*/
|
|
63
|
+
hideForm?: boolean;
|
|
64
|
+
}> | PropsWithChildren<{
|
|
65
|
+
/**
|
|
66
|
+
* @description The type of the auth page.
|
|
67
|
+
* @optional
|
|
68
|
+
*/
|
|
69
|
+
type: "register";
|
|
70
|
+
/**
|
|
71
|
+
* @description Providers array for login with third party auth services.
|
|
72
|
+
* @optional
|
|
73
|
+
*/
|
|
74
|
+
providers?: OAuthProvider[];
|
|
75
|
+
/**
|
|
76
|
+
* @description Render a redirect to login page button node. If set to false, login button will not be rendered.
|
|
77
|
+
* @default `"/login"`
|
|
78
|
+
* @optional
|
|
79
|
+
*/
|
|
80
|
+
loginLink?: React.ReactNode;
|
|
81
|
+
/**
|
|
82
|
+
* @description Can be used to hide the form components
|
|
83
|
+
* @optional
|
|
84
|
+
*/
|
|
85
|
+
hideForm?: boolean;
|
|
86
|
+
}> | PropsWithChildren<{
|
|
87
|
+
/**
|
|
88
|
+
* @description The type of the auth page.
|
|
89
|
+
* @optional
|
|
90
|
+
*/
|
|
91
|
+
type: "forgotPassword";
|
|
92
|
+
/**
|
|
93
|
+
* @description render a redirect to login page button node. If set to false, login button will not be rendered.
|
|
94
|
+
* @optional
|
|
95
|
+
*/
|
|
96
|
+
loginLink?: React.ReactNode;
|
|
97
|
+
}> | PropsWithChildren<{
|
|
98
|
+
/**
|
|
99
|
+
* @description The type of the auth page.
|
|
100
|
+
* @optional
|
|
101
|
+
*/
|
|
102
|
+
type: "updatePassword";
|
|
103
|
+
}>) & {
|
|
104
|
+
/**
|
|
105
|
+
* @description The props that will be passed to the wrapper component.
|
|
106
|
+
* @optional
|
|
107
|
+
*/
|
|
108
|
+
wrapperProps?: TWrapperProps;
|
|
109
|
+
/**
|
|
110
|
+
* @description The props that will be passed to the content component.
|
|
111
|
+
* @optional
|
|
112
|
+
*/
|
|
113
|
+
contentProps?: TContentProps;
|
|
114
|
+
/**
|
|
115
|
+
* @description This method gives you the ability to render a custom content node.
|
|
116
|
+
* @optional
|
|
117
|
+
*/
|
|
118
|
+
renderContent?: (content: React.ReactNode, title: React.ReactNode) => React.ReactNode;
|
|
119
|
+
/**
|
|
120
|
+
* @description Can be used to pass additional properties for the `Form`
|
|
121
|
+
* @optional
|
|
122
|
+
*/
|
|
123
|
+
formProps?: TFormProps;
|
|
124
|
+
/**
|
|
125
|
+
* @description Can be used to pass `Title`
|
|
126
|
+
* @optional
|
|
127
|
+
* */
|
|
128
|
+
title?: React.ReactNode;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* This should be the base type for `AuthPage` `Login` component implementations in UI integrations.
|
|
132
|
+
*/
|
|
133
|
+
export type LoginPageProps<TWrapperProps extends {} = Record<keyof any, unknown>, TContentProps extends {} = Record<keyof any, unknown>, TFormProps extends {} = Record<keyof any, unknown>> = PropsWithChildren<{
|
|
134
|
+
providers?: OAuthProvider[];
|
|
135
|
+
registerLink?: React.ReactNode;
|
|
136
|
+
forgotPasswordLink?: React.ReactNode;
|
|
137
|
+
rememberMe?: React.ReactNode;
|
|
138
|
+
wrapperProps?: TWrapperProps;
|
|
139
|
+
renderContent?: (content: React.ReactNode, title: React.ReactNode) => React.ReactNode;
|
|
140
|
+
contentProps?: TContentProps;
|
|
141
|
+
formProps?: TFormProps;
|
|
142
|
+
title?: React.ReactNode;
|
|
143
|
+
hideForm?: boolean;
|
|
144
|
+
}>;
|
|
145
|
+
/**
|
|
146
|
+
* This should be the base type for `AuthPage` `Register` component implementations in UI integrations.
|
|
147
|
+
*/
|
|
148
|
+
export type RegisterPageProps<TWrapperProps extends {} = Record<keyof any, unknown>, TContentProps extends {} = Record<keyof any, unknown>, TFormProps extends {} = Record<keyof any, unknown>> = PropsWithChildren<{
|
|
149
|
+
providers?: OAuthProvider[];
|
|
150
|
+
loginLink?: React.ReactNode;
|
|
151
|
+
wrapperProps?: TWrapperProps;
|
|
152
|
+
renderContent?: (content: React.ReactNode, title: React.ReactNode) => React.ReactNode;
|
|
153
|
+
contentProps?: TContentProps;
|
|
154
|
+
formProps?: TFormProps;
|
|
155
|
+
title?: React.ReactNode;
|
|
156
|
+
hideForm?: boolean;
|
|
157
|
+
}>;
|
|
158
|
+
/**
|
|
159
|
+
* This should be the base type for `AuthPage` `Reset Password` component implementations in UI integrations.
|
|
160
|
+
*/
|
|
161
|
+
export type ForgotPasswordPageProps<TWrapperProps extends {} = Record<keyof any, unknown>, TContentProps extends {} = Record<keyof any, unknown>, TFormProps extends {} = Record<keyof any, unknown>> = PropsWithChildren<{
|
|
162
|
+
loginLink?: React.ReactNode;
|
|
163
|
+
wrapperProps?: TWrapperProps;
|
|
164
|
+
renderContent?: (content: React.ReactNode, title: React.ReactNode) => React.ReactNode;
|
|
165
|
+
contentProps?: TContentProps;
|
|
166
|
+
formProps?: TFormProps;
|
|
167
|
+
title?: React.ReactNode;
|
|
168
|
+
}>;
|
|
169
|
+
/**
|
|
170
|
+
* This should be the base type for `AuthPage` `Update Password` component implementations in UI integrations.
|
|
171
|
+
*/
|
|
172
|
+
export type UpdatePasswordPageProps<TWrapperProps extends {} = Record<keyof any, unknown>, TContentProps extends {} = Record<keyof any, unknown>, TFormProps extends {} = Record<keyof any, unknown>> = PropsWithChildren<{
|
|
173
|
+
wrapperProps?: TWrapperProps;
|
|
174
|
+
renderContent?: (content: React.ReactNode, title: React.ReactNode) => React.ReactNode;
|
|
175
|
+
contentProps?: TContentProps;
|
|
176
|
+
formProps?: TFormProps;
|
|
177
|
+
title?: React.ReactNode;
|
|
178
|
+
}>;
|
|
179
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const ConfigErrorPage: () => React.JSX.Element;
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* It is a page that welcomes you after the configuration is completed.
|
|
4
|
+
*/
|
|
5
|
+
export declare const ConfigSuccessPage: React.FC;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* When the app is navigated to a non-existent route, refine shows a default error page.
|
|
4
|
+
* A custom error component can be used for this error page.
|
|
5
|
+
*
|
|
6
|
+
* @see {@link https://refine.dev/docs/packages/documentation/routers/} for more details.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ErrorComponent: React.FC;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{"
|
|
1
|
+
export { ErrorComponent } from "./error";
|
|
2
|
+
export { LoginPage } from "./login";
|
|
3
|
+
export { AuthPage } from "./auth";
|
|
4
|
+
export { ReadyPage } from "./ready";
|
|
5
|
+
export { WelcomePage } from "./welcome";
|
|
6
|
+
export type { AuthProps } from "./auth";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ILoginForm {
|
|
3
|
+
username: string;
|
|
4
|
+
password: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated LoginPage is deprecated. Use AuthPage instead. @see {@link https://refine.dev/docs/core/components/auth-page} for more details.
|
|
8
|
+
* **refine** has a default login page form which is served on `/login` route when the `authProvider` configuration is provided.
|
|
9
|
+
*
|
|
10
|
+
* @see {@link https://refine.dev/docs/api-reference/core/components/refine-config/#loginpage} for more details.
|
|
11
|
+
*/
|
|
12
|
+
export declare const LoginPage: React.FC;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* **refine** shows a default ready page on root route when no `resources` is passed to the `<Refine>` component as a property.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated `ReadyPage` is deprecated and will be removed in the next major release.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ReadyPage: React.FC;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const WelcomePage: () => React.JSX.Element;
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const RouteChangeHandler: React.FC;
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const Telemetry: React.FC<{}>;
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
{
|
|
1
|
+
export type ITelemetryData = {
|
|
2
|
+
providers: {
|
|
3
|
+
auth?: boolean;
|
|
4
|
+
data?: boolean;
|
|
5
|
+
router?: boolean;
|
|
6
|
+
notification?: boolean;
|
|
7
|
+
live?: boolean;
|
|
8
|
+
auditLog?: boolean;
|
|
9
|
+
i18n?: boolean;
|
|
10
|
+
accessControl?: boolean;
|
|
11
|
+
};
|
|
12
|
+
version: string;
|
|
13
|
+
resourceCount: number;
|
|
14
|
+
projectId?: string;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type IUndoableQueue } from "../../contexts/undoableQueue/types";
|
|
3
|
+
export declare const UndoableQueue: React.FC<{
|
|
4
|
+
notification: IUndoableQueue;
|
|
5
|
+
}>;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{"
|
|
1
|
+
import React, { type PropsWithChildren } from "react";
|
|
2
|
+
import type { IAccessControlContext, IAccessControlContextReturnType } from "./types";
|
|
3
|
+
/** @deprecated default value for access control context has no use and is an empty object. */
|
|
4
|
+
export declare const defaultAccessControlContext: IAccessControlContext;
|
|
5
|
+
export declare const AccessControlContext: React.Context<IAccessControlContextReturnType>;
|
|
6
|
+
export declare const AccessControlContextProvider: React.FC<PropsWithChildren<IAccessControlContext>>;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,84 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @author aliemir
|
|
3
|
+
*
|
|
4
|
+
* `AccessControlProvider` interface, used to define the access control bindings of refine.
|
|
5
|
+
*
|
|
6
|
+
* Currently, there's no change in the interface, but only in the `params.resource` property.
|
|
7
|
+
*
|
|
8
|
+
* This also had `{ children?: ITreeMenu[] }` type extension but we can remove it now.
|
|
9
|
+
*
|
|
10
|
+
* There's an error behind this extension, since we're using `Tanstack Query` to check the `can` function,
|
|
11
|
+
* params are stringified and Nodes can't be stringified properly, which throws an error.
|
|
12
|
+
*
|
|
13
|
+
* These kinds of errors should be handled by the user of the `can` function, not by the `can` function itself.
|
|
14
|
+
*
|
|
15
|
+
* In this case, its the `CanAccess` component, which wraps the `can` function and is used in the `Sider` components.
|
|
16
|
+
* `Sider` should sanitize the `params.resource` property and remove the `children` property (if exists).
|
|
17
|
+
*
|
|
18
|
+
* This may also apply to `resource.icon` property.
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
import type { UseQueryOptions } from "@tanstack/react-query";
|
|
22
|
+
import type { BaseKey } from "../data/types";
|
|
23
|
+
import type { IResourceItem, ITreeMenu } from "../resource/types";
|
|
24
|
+
export type CanResponse = {
|
|
25
|
+
can: boolean;
|
|
26
|
+
reason?: string;
|
|
27
|
+
[key: string]: unknown;
|
|
28
|
+
};
|
|
29
|
+
export type CanParams = {
|
|
30
|
+
/**
|
|
31
|
+
* Resource name for API data interactions
|
|
32
|
+
*/
|
|
33
|
+
resource?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Intended action on resource
|
|
36
|
+
*/
|
|
37
|
+
action: string;
|
|
38
|
+
/**
|
|
39
|
+
* Parameters associated with the resource
|
|
40
|
+
* @type {
|
|
41
|
+
* resource?: [IResourceItem](https://refine.dev/docs/api-reference/core/interfaceReferences/#canparams),
|
|
42
|
+
* id?: [BaseKey](https://refine.dev/docs/api-reference/core/interfaceReferences/#basekey), [key: string]: any
|
|
43
|
+
* }
|
|
44
|
+
*/
|
|
45
|
+
params?: {
|
|
46
|
+
resource?: IResourceItem & {
|
|
47
|
+
children?: ITreeMenu[];
|
|
48
|
+
};
|
|
49
|
+
id?: BaseKey;
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export type CanReturnType = {
|
|
54
|
+
can: boolean;
|
|
55
|
+
reason?: string;
|
|
56
|
+
};
|
|
57
|
+
export type CanFunction = ({ resource, action, params, }: CanParams) => Promise<CanReturnType>;
|
|
58
|
+
type AccessControlOptions = {
|
|
59
|
+
buttons?: {
|
|
60
|
+
enableAccessControl?: boolean;
|
|
61
|
+
hideIfUnauthorized?: boolean;
|
|
62
|
+
};
|
|
63
|
+
queryOptions?: UseQueryOptions<CanReturnType>;
|
|
64
|
+
};
|
|
65
|
+
export interface IAccessControlContext {
|
|
66
|
+
can?: CanFunction;
|
|
67
|
+
options?: AccessControlOptions;
|
|
68
|
+
}
|
|
69
|
+
export type IAccessControlContextReturnType = {
|
|
70
|
+
can?: CanFunction;
|
|
71
|
+
options: {
|
|
72
|
+
buttons: {
|
|
73
|
+
enableAccessControl: boolean;
|
|
74
|
+
hideIfUnauthorized: boolean;
|
|
75
|
+
};
|
|
76
|
+
queryOptions?: UseQueryOptions<CanReturnType>;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
export type AccessControlProvider = {
|
|
80
|
+
can: CanFunction;
|
|
81
|
+
options?: AccessControlOptions;
|
|
82
|
+
};
|
|
83
|
+
export {};
|
|
84
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
{"
|
|
1
|
+
import React, { type PropsWithChildren } from "react";
|
|
2
|
+
import type { IAuditLogContext } from "./types";
|
|
3
|
+
export declare const AuditLogContext: React.Context<IAuditLogContext>;
|
|
4
|
+
export declare const AuditLogContextProvider: React.FC<PropsWithChildren<IAuditLogContext>>;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,41 @@
|
|
|
1
|
-
{
|
|
1
|
+
import type { BaseKey, MetaDataQuery } from "../data/types";
|
|
2
|
+
export type ILog<TData = any> = {
|
|
3
|
+
id: BaseKey;
|
|
4
|
+
createdAt: string;
|
|
5
|
+
author?: Record<number | string, any>;
|
|
6
|
+
name?: string;
|
|
7
|
+
data: TData;
|
|
8
|
+
previousData: TData;
|
|
9
|
+
resource: string;
|
|
10
|
+
action: string;
|
|
11
|
+
meta?: Record<number | string, any>;
|
|
12
|
+
};
|
|
13
|
+
export type ILogData<TData = any> = ILog<TData>[];
|
|
14
|
+
export type LogParams = {
|
|
15
|
+
resource: string;
|
|
16
|
+
action: string;
|
|
17
|
+
data?: any;
|
|
18
|
+
author?: {
|
|
19
|
+
name?: string;
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
};
|
|
22
|
+
previousData?: any;
|
|
23
|
+
meta: Record<number | string, any>;
|
|
24
|
+
};
|
|
25
|
+
export type IAuditLogContext = {
|
|
26
|
+
create?: (params: LogParams) => Promise<any>;
|
|
27
|
+
get?: (params: {
|
|
28
|
+
resource: string;
|
|
29
|
+
action?: string;
|
|
30
|
+
meta?: Record<number | string, any>;
|
|
31
|
+
author?: Record<number | string, any>;
|
|
32
|
+
metaData?: MetaDataQuery;
|
|
33
|
+
}) => Promise<any>;
|
|
34
|
+
update?: (params: {
|
|
35
|
+
id: BaseKey;
|
|
36
|
+
name: string;
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}) => Promise<any>;
|
|
39
|
+
};
|
|
40
|
+
export type AuditLogProvider = Required<IAuditLogContext>;
|
|
41
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1,18 @@
|
|
|
1
|
-
{"
|
|
1
|
+
import React, { type PropsWithChildren } from "react";
|
|
2
|
+
import type { IAuthContext, ILegacyAuthContext } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated `LegacyAuthContext` is deprecated with refine@4, use `AuthBindingsContext` instead, however, we still support `LegacyAuthContext` for backward compatibility.
|
|
5
|
+
*/
|
|
6
|
+
export declare const LegacyAuthContext: React.Context<ILegacyAuthContext>;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated `LegacyAuthContextProvider` is deprecated with refine@4, use `AuthBindingsContextProvider` instead, however, we still support `LegacyAuthContextProvider` for backward compatibility.
|
|
9
|
+
*/
|
|
10
|
+
export declare const LegacyAuthContextProvider: React.FC<PropsWithChildren<ILegacyAuthContext>>;
|
|
11
|
+
export declare const AuthBindingsContext: React.Context<Partial<IAuthContext>>;
|
|
12
|
+
export declare const AuthBindingsContextProvider: React.FC<PropsWithChildren<IAuthContext>>;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated `useLegacyAuthContext` is deprecated with refine@4, use `useAuthBindingsContext` instead, however, we still support `useLegacyAuthContext` for backward compatibility.
|
|
15
|
+
*/
|
|
16
|
+
export declare const useLegacyAuthContext: () => ILegacyAuthContext;
|
|
17
|
+
export declare const useAuthBindingsContext: () => Partial<IAuthContext>;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,101 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @author aliemir
|
|
3
|
+
*
|
|
4
|
+
* In the current internal structure, sometimes we pass params and args from one function to another,
|
|
5
|
+
* like in case of `check` (formerly `checkAuth`) function, we pass the reject value to `useLogout` hook,
|
|
6
|
+
* which handles the redirect after logout.
|
|
7
|
+
*
|
|
8
|
+
* These actions should be separated,
|
|
9
|
+
*
|
|
10
|
+
* Apps can exist with an optional auth,
|
|
11
|
+
* or do not redirect after logout,
|
|
12
|
+
* or do the redirect but not log out,
|
|
13
|
+
* or do the redirect to a different page than `/login`.
|
|
14
|
+
*
|
|
15
|
+
* To cover all those cases, we should return more information from auth functions.
|
|
16
|
+
*
|
|
17
|
+
* Let's say, they should always resolve, even if user is not authenticated,
|
|
18
|
+
* but have the proper information to handle the situation.
|
|
19
|
+
*
|
|
20
|
+
* like `authenticated: false`, `redirect: '/login'` and `logout: true`
|
|
21
|
+
* which will inform refine that user is not authenticated and should be redirected to `/login` and logout.
|
|
22
|
+
* In some cases, redirect might need to be transferred to other hooks (like `useLogout` hook),
|
|
23
|
+
* but these cases can be handled internally.
|
|
24
|
+
*
|
|
25
|
+
* If the response from `check` is `{ authenticated: false, logout: false, redirect: "/not-authenticated" }`,
|
|
26
|
+
* then the user will be redirected to `/not-authenticated` without logging out.
|
|
27
|
+
*
|
|
28
|
+
* If the response from `check` is `{ authenticated: false, logout: true, redirect: false }`,
|
|
29
|
+
* then the user will be logged out without redirecting.
|
|
30
|
+
*
|
|
31
|
+
* Same goes for `onError` function, it should always resolve.
|
|
32
|
+
*/
|
|
33
|
+
import type { RefineError } from "../data/types";
|
|
34
|
+
export type CheckResponse = {
|
|
35
|
+
authenticated: boolean;
|
|
36
|
+
redirectTo?: string;
|
|
37
|
+
logout?: boolean;
|
|
38
|
+
error?: RefineError | Error;
|
|
39
|
+
};
|
|
40
|
+
export type OnErrorResponse = {
|
|
41
|
+
redirectTo?: string;
|
|
42
|
+
logout?: boolean;
|
|
43
|
+
error?: RefineError | Error;
|
|
44
|
+
};
|
|
45
|
+
export type SuccessNotificationResponse = {
|
|
46
|
+
message: string;
|
|
47
|
+
description?: string;
|
|
48
|
+
};
|
|
49
|
+
export type AuthActionResponse = {
|
|
50
|
+
success: boolean;
|
|
51
|
+
redirectTo?: string;
|
|
52
|
+
error?: RefineError | Error;
|
|
53
|
+
[key: string]: unknown;
|
|
54
|
+
successNotification?: SuccessNotificationResponse;
|
|
55
|
+
};
|
|
56
|
+
export type PermissionResponse = unknown;
|
|
57
|
+
export type IdentityResponse = unknown;
|
|
58
|
+
export type AuthProvider = {
|
|
59
|
+
login: (params: any) => Promise<AuthActionResponse>;
|
|
60
|
+
logout: (params: any) => Promise<AuthActionResponse>;
|
|
61
|
+
check: (params?: any) => Promise<CheckResponse>;
|
|
62
|
+
onError: (error: any) => Promise<OnErrorResponse>;
|
|
63
|
+
register?: (params: any) => Promise<AuthActionResponse>;
|
|
64
|
+
forgotPassword?: (params: any) => Promise<AuthActionResponse>;
|
|
65
|
+
updatePassword?: (params: any) => Promise<AuthActionResponse>;
|
|
66
|
+
getPermissions?: (params?: Record<string, any>) => Promise<PermissionResponse>;
|
|
67
|
+
getIdentity?: (params?: any) => Promise<IdentityResponse>;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* @deprecated use `AuthProvider` instead.
|
|
71
|
+
*/
|
|
72
|
+
export type AuthBindings = AuthProvider;
|
|
73
|
+
export interface IAuthContext extends Partial<AuthProvider> {
|
|
74
|
+
isProvided: boolean;
|
|
75
|
+
}
|
|
76
|
+
export type TLogoutData = void | false | string;
|
|
77
|
+
export type TLoginData = void | false | string | object;
|
|
78
|
+
export type TRegisterData = void | false | string;
|
|
79
|
+
export type TForgotPasswordData = void | false | string;
|
|
80
|
+
export type TUpdatePasswordData = void | false | string;
|
|
81
|
+
/**
|
|
82
|
+
* @deprecated `LegacyAuthProvider` is deprecated with refine@4, use `AuthProvider` instead, however, we still support `LegacyAuthProvider` for backward compatibility.
|
|
83
|
+
*/
|
|
84
|
+
export interface LegacyAuthProvider {
|
|
85
|
+
login: (params: any) => Promise<TLoginData>;
|
|
86
|
+
register?: (params: any) => Promise<TRegisterData>;
|
|
87
|
+
forgotPassword?: (params: any) => Promise<TForgotPasswordData>;
|
|
88
|
+
updatePassword?: (params: any) => Promise<TUpdatePasswordData>;
|
|
89
|
+
logout: (params: any) => Promise<TLogoutData>;
|
|
90
|
+
checkAuth: (params?: any) => Promise<any>;
|
|
91
|
+
checkError: (error: any) => Promise<void>;
|
|
92
|
+
getPermissions?: (params?: Record<string, any>) => Promise<any>;
|
|
93
|
+
getUserIdentity?: (params?: any) => Promise<any>;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* @deprecated `ILegacyAuthContext` is deprecated with refine@4, use `IAuthContext` instead, however, we still support `ILegacyAuthContext` for backward compatibility.
|
|
97
|
+
*/
|
|
98
|
+
export interface ILegacyAuthContext extends Partial<LegacyAuthProvider> {
|
|
99
|
+
isProvided?: boolean;
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
{"
|
|
1
|
+
import React, { type PropsWithChildren } from "react";
|
|
2
|
+
import type { DataProvider, DataProviders } from "./types";
|
|
3
|
+
export declare const defaultDataProvider: DataProviders;
|
|
4
|
+
export declare const DataContext: React.Context<DataProviders>;
|
|
5
|
+
type Props = PropsWithChildren<{
|
|
6
|
+
dataProvider?: DataProvider | DataProviders;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const DataContextProvider: React.FC<Props>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|