@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,98 @@
|
|
|
1
1
|
# @refinedev/core
|
|
2
2
|
|
|
3
|
+
## 4.52.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#6071](https://github.com/refinedev/refine/pull/6071) [`853bef97ed7baf59e74c98fc54c0ed11624fb491`](https://github.com/refinedev/refine/commit/853bef97ed7baf59e74c98fc54c0ed11624fb491) Thanks [@Dominic-Preap](https://github.com/Dominic-Preap)! - feat: add `selectedOptionsOrder` in `useSelect`
|
|
8
|
+
|
|
9
|
+
Now with `selectedOptionsOrder`, you can sort `selectedOptions` at the top of list when use `useSelect` with `defaultValue`.
|
|
10
|
+
|
|
11
|
+
Resolves [#6061](https://github.com/refinedev/refine/issues/6061)
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#5989](https://github.com/refinedev/refine/pull/5989) [`b86648f42cd849a506e4c32d740de26b72681f72`](https://github.com/refinedev/refine/commit/b86648f42cd849a506e4c32d740de26b72681f72) Thanks [@lnikitadobrenkol](https://github.com/lnikitadobrenkol)! - chore(core): add missing types of data hooks
|
|
16
|
+
|
|
17
|
+
Added missing props and return types of data hooks.
|
|
18
|
+
|
|
19
|
+
- [#6070](https://github.com/refinedev/refine/pull/6070) [`4265ae2509f79af9dbca8d52daf5c2f1b4a50a51`](https://github.com/refinedev/refine/commit/4265ae2509f79af9dbca8d52daf5c2f1b4a50a51) Thanks [@FatimaSaleem21](https://github.com/FatimaSaleem21)! - fix(core): add unexported types in `index.tsx`
|
|
20
|
+
|
|
21
|
+
The `refinedev/core` package has many unexported types that are not accessible for use outside the package. This change aims to address this limitation by exporting those missing types.
|
|
22
|
+
|
|
23
|
+
Resolves [#6041](https://github.com/refinedev/refine/issues/6041)
|
|
24
|
+
|
|
25
|
+
- [#6064](https://github.com/refinedev/refine/pull/6064) [`b516c18b828ba8823561d0fefc4afe02b45ce332`](https://github.com/refinedev/refine/commit/b516c18b828ba8823561d0fefc4afe02b45ce332) Thanks [@aliemir](https://github.com/aliemir)! - fix(auto-save-indicator): replace reserved `key` prop with `translationKey` in <Message /> components
|
|
26
|
+
|
|
27
|
+
`<AutoSaveIndicator />` components from UI libraries have been using a `<Message />` component internally that uses a `key` prop. Since `key` is a reserved prop in React, it was causing a warning in the console. This change replaces the `key` prop with `translationKey` to avoid the warning.
|
|
28
|
+
|
|
29
|
+
Resolves [#6067](https://github.com/refinedev/refine/issues/6067)
|
|
30
|
+
|
|
31
|
+
- Updated dependencies []:
|
|
32
|
+
- @refinedev/devtools-internal@1.1.12
|
|
33
|
+
|
|
34
|
+
## 4.51.0
|
|
35
|
+
|
|
36
|
+
### Minor Changes
|
|
37
|
+
|
|
38
|
+
- [`6bd14228760d3e1e205ea9248e427f9afa2ec046`](https://github.com/refinedev/refine/commit/6bd14228760d3e1e205ea9248e427f9afa2ec046) Thanks [@BatuhanW](https://github.com/BatuhanW)! - Added ina and nina CrudOperators. Added filtering by these operators to Supabase data provider
|
|
39
|
+
#5902
|
|
40
|
+
|
|
41
|
+
- [`6bd14228760d3e1e205ea9248e427f9afa2ec046`](https://github.com/refinedev/refine/commit/6bd14228760d3e1e205ea9248e427f9afa2ec046) Thanks [@BatuhanW](https://github.com/BatuhanW)! - feat(core): ability to pass global app title and icon
|
|
42
|
+
|
|
43
|
+
Added ability to pass global app name and icon values through `<Refine />` component's `options` prop.
|
|
44
|
+
|
|
45
|
+
Now `<Refine />` component accepts `options.title` prop that can be used to set app icon and app name globally. By default these values will be accessible through `useRefineOptions` hook and will be used in `<ThemedLayoutV2 />` and `<AuthPage />` components of the UI packages.
|
|
46
|
+
|
|
47
|
+
```tsx
|
|
48
|
+
import { Refine } from "@refinedev/core";
|
|
49
|
+
|
|
50
|
+
const MyIcon = () => <svg>{/* ... */}</svg>;
|
|
51
|
+
|
|
52
|
+
const App = () => {
|
|
53
|
+
return (
|
|
54
|
+
<Refine
|
|
55
|
+
options={{
|
|
56
|
+
title: {
|
|
57
|
+
icon: <MyIcon />,
|
|
58
|
+
text: "Refine App",
|
|
59
|
+
},
|
|
60
|
+
}}
|
|
61
|
+
>
|
|
62
|
+
{/* ... */}
|
|
63
|
+
</Refine>
|
|
64
|
+
);
|
|
65
|
+
};
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Patch Changes
|
|
69
|
+
|
|
70
|
+
- [`6bd14228760d3e1e205ea9248e427f9afa2ec046`](https://github.com/refinedev/refine/commit/6bd14228760d3e1e205ea9248e427f9afa2ec046) Thanks [@BatuhanW](https://github.com/BatuhanW)! - fix(core): update default titles
|
|
71
|
+
|
|
72
|
+
Previously, default titles included lowercase "refine", which was not correct. This commit updates the default titles to include "Refine" instead.
|
|
73
|
+
|
|
74
|
+
- [`6bd14228760d3e1e205ea9248e427f9afa2ec046`](https://github.com/refinedev/refine/commit/6bd14228760d3e1e205ea9248e427f9afa2ec046) Thanks [@BatuhanW](https://github.com/BatuhanW)! - refactor: omit `to` parameter if at root when unauthenticated
|
|
75
|
+
|
|
76
|
+
If user is not authenticated, `<Authenticated />` redirects to the provided route and appends the current route to the `to` parameter. With this change, if the current route is the root (`/`), the `to` parameter will be omitted.
|
|
77
|
+
|
|
78
|
+
- [`6bd14228760d3e1e205ea9248e427f9afa2ec046`](https://github.com/refinedev/refine/commit/6bd14228760d3e1e205ea9248e427f9afa2ec046) Thanks [@BatuhanW](https://github.com/BatuhanW)! - feat: `<GitHubBanner />` has `paddingLeft: 200px` by default to make space for the sidebar. This is not needed when the sidebar is not present.
|
|
79
|
+
|
|
80
|
+
From on, `<GitHubBanner />` style property can be overridden by passing `containerStyle` prop.
|
|
81
|
+
|
|
82
|
+
```jsx
|
|
83
|
+
<GitHubBanner containerStyle={{ paddingLeft: 0 }} />
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
- [`6bd14228760d3e1e205ea9248e427f9afa2ec046`](https://github.com/refinedev/refine/commit/6bd14228760d3e1e205ea9248e427f9afa2ec046) Thanks [@BatuhanW](https://github.com/BatuhanW)! - chore: added `type` qualifier to imports used as type only.
|
|
87
|
+
|
|
88
|
+
```diff
|
|
89
|
+
- import { A } from "./example.ts";
|
|
90
|
+
+ import type { A } from "./example.ts";
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
- Updated dependencies [[`6bd14228760d3e1e205ea9248e427f9afa2ec046`](https://github.com/refinedev/refine/commit/6bd14228760d3e1e205ea9248e427f9afa2ec046), [`6bd14228760d3e1e205ea9248e427f9afa2ec046`](https://github.com/refinedev/refine/commit/6bd14228760d3e1e205ea9248e427f9afa2ec046)]:
|
|
94
|
+
- @refinedev/devtools-internal@1.1.11
|
|
95
|
+
|
|
3
96
|
## 4.50.0
|
|
4
97
|
|
|
5
98
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -174,6 +174,7 @@ You can take a look at some live examples that can be built using **Refine** fro
|
|
|
174
174
|
- [Fully-functional CRM Application](https://refine.dev/templates/crm-application/)
|
|
175
175
|
- [Fully-functional Admin Panel](https://refine.dev/templates/react-admin-panel/)
|
|
176
176
|
- [Win95 Style Admin panel 🪟](https://refine.dev/templates/win-95-style-admin-panel/)
|
|
177
|
+
- [PDF Invoice Generator](https://refine.dev/templates/react-pdf-invoice-generator/)
|
|
177
178
|
- [Medium Clone - Real World Example](https://refine.dev/templates/react-crud-app/)
|
|
178
179
|
- [Multitenancy Example](https://refine.dev/templates/multitenancy-strapi/)
|
|
179
180
|
- [Storefront](https://refine.dev/templates/next-js-ecommerce-store/)
|
|
@@ -1 +1,75 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type AuthenticatedCommonProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Unique key to identify the component.
|
|
5
|
+
* This is required if you have multiple `Authenticated` components at the same level.
|
|
6
|
+
* @required
|
|
7
|
+
*/
|
|
8
|
+
key: React.Key;
|
|
9
|
+
/**
|
|
10
|
+
* Whether to redirect user if not logged in or not.
|
|
11
|
+
* If not set, user will be redirected to `redirectTo` property of the `check` function's response.
|
|
12
|
+
* This behavior is only available for new auth providers.
|
|
13
|
+
* Legacy auth providers will redirect to `/login` by default if this property is not set.
|
|
14
|
+
* If set to a string, user will be redirected to that string.
|
|
15
|
+
*
|
|
16
|
+
* This property only works if `fallback` is **not set**.
|
|
17
|
+
*/
|
|
18
|
+
redirectOnFail?: string | true;
|
|
19
|
+
/**
|
|
20
|
+
* Whether to append current path to search params of the redirect url at `to` property.
|
|
21
|
+
*
|
|
22
|
+
* By default, `to` parameter is used by successful invocations of the `useLogin` hook.
|
|
23
|
+
* If `to` present, it will be used as the redirect url after successful login.
|
|
24
|
+
*/
|
|
25
|
+
appendCurrentPathToQuery?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Content to show if user is not logged in.
|
|
28
|
+
*/
|
|
29
|
+
fallback?: React.ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* Content to show while checking whether user is logged in or not.
|
|
32
|
+
*/
|
|
33
|
+
loading?: React.ReactNode;
|
|
34
|
+
/**
|
|
35
|
+
* Content to show if user is logged in
|
|
36
|
+
*/
|
|
37
|
+
children?: React.ReactNode;
|
|
38
|
+
};
|
|
39
|
+
export type LegacyAuthenticatedProps = {
|
|
40
|
+
v3LegacyAuthProviderCompatible: true;
|
|
41
|
+
} & AuthenticatedCommonProps;
|
|
42
|
+
export type AuthenticatedProps = {
|
|
43
|
+
v3LegacyAuthProviderCompatible?: false;
|
|
44
|
+
} & AuthenticatedCommonProps;
|
|
45
|
+
/**
|
|
46
|
+
* `<Authenticated>` is the component form of {@link https://refine.dev/docs/api-reference/core/hooks/auth/useAuthenticated `useAuthenticated`}. It internally uses `useAuthenticated` to provide it's functionality.
|
|
47
|
+
*
|
|
48
|
+
* @requires {@link https://react.dev/learn/rendering-lists#why-does-react-need-keys `key`} prop if you have multiple components at the same level.
|
|
49
|
+
* In React, components don't automatically unmount and remount with prop changes, which is generally good for performance. However, for specific cases this can cause issues like unwanted content rendering (`fallback` or `children`). To solve this, assigning unique `key` values to each instance of component is necessary, forcing React to unmount and remount the component, rather than just updating its props.
|
|
50
|
+
* @example
|
|
51
|
+
*```tsx
|
|
52
|
+
* <Authenticated key="dashboard">
|
|
53
|
+
* <h1>Dashboard Page</h1>
|
|
54
|
+
* </Authenticated>
|
|
55
|
+
*```
|
|
56
|
+
*
|
|
57
|
+
* @see {@link https://refine.dev/docs/core/components/auth/authenticated `<Authenticated>`} component for more details.
|
|
58
|
+
*/
|
|
59
|
+
export declare function Authenticated(props: LegacyAuthenticatedProps): JSX.Element | null;
|
|
60
|
+
/**
|
|
61
|
+
* `<Authenticated>` is the component form of {@link https://refine.dev/docs/api-reference/core/hooks/auth/useAuthenticated `useAuthenticated`}. It internally uses `useAuthenticated` to provide it's functionality.
|
|
62
|
+
*
|
|
63
|
+
* @requires {@link https://react.dev/learn/rendering-lists#why-does-react-need-keys `key`} prop if you have multiple components at the same level.
|
|
64
|
+
* In React, components don't automatically unmount and remount with prop changes, which is generally good for performance. However, for specific cases this can cause issues like unwanted content rendering (`fallback` or `children`). To solve this, assigning unique `key` values to each instance of component is necessary, forcing React to unmount and remount the component, rather than just updating its props.
|
|
65
|
+
* @example
|
|
66
|
+
*```tsx
|
|
67
|
+
* <Authenticated key="dashboard">
|
|
68
|
+
* <h1>Dashboard Page</h1>
|
|
69
|
+
* </Authenticated>
|
|
70
|
+
*```
|
|
71
|
+
*
|
|
72
|
+
* @see {@link https://refine.dev/docs/core/components/auth/authenticated `<Authenticated>`} component for more details.
|
|
73
|
+
*/
|
|
74
|
+
export declare function Authenticated(props: AuthenticatedProps): JSX.Element | null;
|
|
75
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/autoSaveIndicator/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,MAAM,MAAM,sBAAsB,CAChC,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,IACb;IACF;;OAEG;IACH,IAAI,CAAC,EAAE,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;IAC9D;;OAEG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC;IAChE;;OAEG;IACH,MAAM,EAAE,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAC;IACjE;;OAEG;IACH,QAAQ,CAAC,EAAE,yBAAyB,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/autoSaveIndicator/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,MAAM,MAAM,sBAAsB,CAChC,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,IACb;IACF;;OAEG;IACH,IAAI,CAAC,EAAE,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;IAC9D;;OAEG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC;IAChE;;OAEG;IACH,MAAM,EAAE,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAC;IACjE;;OAEG;IACH,QAAQ,CAAC,EAAE,yBAAyB,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAiC9D,CAAC"}
|
|
@@ -1 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { BaseRecord, HttpError } from "../../contexts/data/types";
|
|
3
|
+
import type { AutoSaveIndicatorElements } from "../../hooks/form/types";
|
|
4
|
+
import type { UseUpdateReturnType } from "../../hooks/data/useUpdate";
|
|
5
|
+
export type AutoSaveIndicatorProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = {
|
|
6
|
+
/**
|
|
7
|
+
* The data returned by the update request.
|
|
8
|
+
*/
|
|
9
|
+
data?: UseUpdateReturnType<TData, TError, TVariables>["data"];
|
|
10
|
+
/**
|
|
11
|
+
* The error returned by the update request.
|
|
12
|
+
*/
|
|
13
|
+
error?: UseUpdateReturnType<TData, TError, TVariables>["error"];
|
|
14
|
+
/**
|
|
15
|
+
* The status of the update request.
|
|
16
|
+
*/
|
|
17
|
+
status: UseUpdateReturnType<TData, TError, TVariables>["status"];
|
|
18
|
+
/**
|
|
19
|
+
* The elements to display for each status.
|
|
20
|
+
*/
|
|
21
|
+
elements?: AutoSaveIndicatorElements;
|
|
22
|
+
};
|
|
23
|
+
export declare const AutoSaveIndicator: React.FC<AutoSaveIndicatorProps>;
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/autoSaveIndicator/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,MAAM,MAAM,sBAAsB,CAChC,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,IACb;IACF;;OAEG;IACH,IAAI,CAAC,EAAE,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;IAC9D;;OAEG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC;IAChE;;OAEG;IACH,MAAM,EAAE,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAC;IACjE;;OAEG;IACH,QAAQ,CAAC,EAAE,yBAAyB,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/autoSaveIndicator/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,MAAM,MAAM,sBAAsB,CAChC,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,IACb;IACF;;OAEG;IACH,IAAI,CAAC,EAAE,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;IAC9D;;OAEG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC;IAChE;;OAEG;IACH,MAAM,EAAE,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAC;IACjE;;OAEG;IACH,QAAQ,CAAC,EAAE,yBAAyB,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAiC9D,CAAC"}
|
|
@@ -1 +1,52 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { UseQueryOptions } from "@tanstack/react-query";
|
|
3
|
+
import type { CanReturnType } from "../../contexts/accessControl/types";
|
|
4
|
+
import type { BaseKey } from "../../contexts/data/types";
|
|
5
|
+
import type { IResourceItem, ITreeMenu } from "../../contexts/resource/types";
|
|
6
|
+
type CanParams = {
|
|
7
|
+
resource?: IResourceItem & {
|
|
8
|
+
children?: ITreeMenu[];
|
|
9
|
+
};
|
|
10
|
+
id?: BaseKey;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
type OnUnauthorizedProps = {
|
|
14
|
+
resource?: string;
|
|
15
|
+
reason?: string;
|
|
16
|
+
action: string;
|
|
17
|
+
params: CanParams;
|
|
18
|
+
};
|
|
19
|
+
type CanAccessBaseProps = {
|
|
20
|
+
/**
|
|
21
|
+
* Resource name for API data interactions
|
|
22
|
+
*/
|
|
23
|
+
resource?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Intended action on resource
|
|
26
|
+
*/
|
|
27
|
+
action: string;
|
|
28
|
+
/**
|
|
29
|
+
* Parameters associated with the resource
|
|
30
|
+
* @type { resource?: [IResourceItem](https://refine.dev/docs/api-reference/core/interfaceReferences/#canparams), id?: [BaseKey](https://refine.dev/docs/api-reference/core/interfaceReferences/#basekey), [key: string]: any }
|
|
31
|
+
*/
|
|
32
|
+
params?: CanParams;
|
|
33
|
+
/**
|
|
34
|
+
* Content to show if access control returns `false`
|
|
35
|
+
*/
|
|
36
|
+
fallback?: React.ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* Callback function to be called if access control returns `can: false`
|
|
39
|
+
*/
|
|
40
|
+
onUnauthorized?: (props: OnUnauthorizedProps) => void;
|
|
41
|
+
children: React.ReactNode;
|
|
42
|
+
queryOptions?: UseQueryOptions<CanReturnType>;
|
|
43
|
+
};
|
|
44
|
+
type CanAccessWithoutParamsProps = {
|
|
45
|
+
[key in Exclude<keyof CanAccessBaseProps, "fallback" | "children">]?: undefined;
|
|
46
|
+
} & {
|
|
47
|
+
[key in "fallback" | "children"]?: CanAccessBaseProps[key];
|
|
48
|
+
};
|
|
49
|
+
export type CanAccessProps = CanAccessBaseProps | CanAccessWithoutParamsProps;
|
|
50
|
+
export declare const CanAccess: React.FC<CanAccessProps>;
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
{"
|
|
1
|
+
export { Refine } from "./refine";
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { RefineProps } from "../../../contexts/refine/types";
|
|
3
|
+
/**
|
|
4
|
+
* {@link https://refine.dev/docs/api-reference/core/components/refine-config `<Refine> component`} is the entry point of a refine app.
|
|
5
|
+
* It is where the highest level of configuration of the app occurs.
|
|
6
|
+
* Only a dataProvider is required to bootstrap the app. After adding a dataProvider, resources can be added as property.
|
|
7
|
+
*
|
|
8
|
+
* @see {@link https://refine.dev/docs/api-reference/core/components/refine-config} for more details.
|
|
9
|
+
*/
|
|
10
|
+
export declare const Refine: React.FC<RefineProps>;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{"
|
|
1
|
+
import React, { type CSSProperties } from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
containerStyle?: CSSProperties;
|
|
4
|
+
};
|
|
5
|
+
export declare const GitHubBanner: ({ containerStyle }: Props) => React.JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export declare const CSSRules: string[];
|
|
2
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
export * from "./pages";
|
|
2
|
+
export * from "./containers";
|
|
3
|
+
export * from "./undoableQueue";
|
|
4
|
+
export { LayoutWrapper } from "./layoutWrapper";
|
|
5
|
+
export { Authenticated } from "./authenticated";
|
|
6
|
+
export { RouteChangeHandler } from "./routeChangeHandler";
|
|
7
|
+
export { CanAccess, CanAccessProps } from "./canAccess";
|
|
8
|
+
export { GitHubBanner } from "./gh-banner";
|
|
9
|
+
export { AutoSaveIndicator, AutoSaveIndicatorProps } from "./autoSaveIndicator";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { LayoutProps } from "../../../contexts/refine/types";
|
|
3
|
+
export declare const DefaultLayout: React.FC<LayoutProps>;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,46 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { LayoutProps, TitleProps } from "../../contexts/refine/types";
|
|
3
|
+
export interface LayoutWrapperProps {
|
|
4
|
+
/**
|
|
5
|
+
* Outer component that renders other components
|
|
6
|
+
* @default *
|
|
7
|
+
*/
|
|
8
|
+
Layout?: React.FC<LayoutProps>;
|
|
9
|
+
/**
|
|
10
|
+
* [Custom sider to use](/api-reference/core/components/refine-config.md#sider)
|
|
11
|
+
* @default *
|
|
12
|
+
*/
|
|
13
|
+
Sider?: React.FC;
|
|
14
|
+
/**
|
|
15
|
+
* [Custom header to use](/api-reference/core/components/refine-config.md#header)
|
|
16
|
+
* @default *
|
|
17
|
+
*/
|
|
18
|
+
Header?: React.FC;
|
|
19
|
+
/**
|
|
20
|
+
* [Custom title to use](/api-reference/core/components/refine-config.md#title)
|
|
21
|
+
* @default *
|
|
22
|
+
*/
|
|
23
|
+
Title?: React.FC<TitleProps>;
|
|
24
|
+
/**
|
|
25
|
+
* [Custom footer to use](/api-reference/core/components/refine-config.md#footer)
|
|
26
|
+
* @default *
|
|
27
|
+
*/
|
|
28
|
+
Footer?: React.FC;
|
|
29
|
+
/**
|
|
30
|
+
* [Custom off layout area to use](/api-reference/core/components/refine-config.md#offlayoutarea)
|
|
31
|
+
* @default *
|
|
32
|
+
*/
|
|
33
|
+
OffLayoutArea?: React.FC;
|
|
34
|
+
children: React.ReactNode;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* `<LayoutWrapper>` wraps its contents in **refine's** layout with all customizations made in {@link https://refine.dev/docs/core/components/refine-config `<Refine>`} component.
|
|
38
|
+
* It is the default layout used in resource pages.
|
|
39
|
+
* It can be used in custom pages to use global layout.
|
|
40
|
+
*
|
|
41
|
+
* @see {@link https://refine.dev/docs/core/components/layout-wrapper} for more details.
|
|
42
|
+
*
|
|
43
|
+
* @deprecated This component is obsolete and only works with the legacy router providers.
|
|
44
|
+
*/
|
|
45
|
+
export declare const LayoutWrapper: React.FC<LayoutWrapperProps>;
|
|
46
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { DivPropsType, FormPropsType } from "../..";
|
|
3
|
+
import type { ForgotPasswordPageProps } from "../../types";
|
|
4
|
+
type ForgotPasswordProps = ForgotPasswordPageProps<DivPropsType, DivPropsType, FormPropsType>;
|
|
5
|
+
export declare const ForgotPasswordPage: React.FC<ForgotPasswordProps>;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
export * from "./login";
|
|
2
|
+
export * from "./register";
|
|
3
|
+
export * from "./forgotPassword";
|
|
4
|
+
export * from "./updatePassword";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { DivPropsType, FormPropsType } from "../..";
|
|
3
|
+
import type { LoginPageProps } from "../../types";
|
|
4
|
+
type LoginProps = LoginPageProps<DivPropsType, DivPropsType, FormPropsType>;
|
|
5
|
+
export declare const LoginPage: React.FC<LoginProps>;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { DivPropsType, FormPropsType } from "../..";
|
|
3
|
+
import type { RegisterPageProps } from "../../types";
|
|
4
|
+
type RegisterProps = RegisterPageProps<DivPropsType, DivPropsType, FormPropsType>;
|
|
5
|
+
export declare const RegisterPage: React.FC<RegisterProps>;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { DivPropsType, FormPropsType } from "../..";
|
|
3
|
+
import type { UpdatePasswordPageProps } from "../../types";
|
|
4
|
+
type UpdatePasswordProps = UpdatePasswordPageProps<DivPropsType, DivPropsType, FormPropsType>;
|
|
5
|
+
export declare const UpdatePasswordPage: React.FC<UpdatePasswordProps>;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
{
|
|
1
|
+
import React, { type DetailedHTMLProps, type HTMLAttributes, type FormHTMLAttributes } from "react";
|
|
2
|
+
import type { AuthPageProps } from "./types";
|
|
3
|
+
export type DivPropsType = DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
4
|
+
export type FormPropsType = DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>;
|
|
5
|
+
export type AuthProps = AuthPageProps<DivPropsType, DivPropsType, FormPropsType>;
|
|
6
|
+
/**
|
|
7
|
+
* **refine** has a default auth page form which is served on `/login` route when the `authProvider` configuration is provided.
|
|
8
|
+
* @param title is not implemented yet.
|
|
9
|
+
* @see {@link https://refine.dev/docs/api-reference/core/components/auth-page/} for more details.
|
|
10
|
+
*/
|
|
11
|
+
export declare const AuthPage: React.FC<AuthProps>;
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|