@refinedev/core 4.0.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 +2577 -0
- package/README.md +257 -0
- package/dist/components/authenticated/index.d.ts +41 -0
- package/dist/components/authenticated/index.d.ts.map +1 -0
- package/dist/components/canAccess/index.d.ts +11 -0
- package/dist/components/canAccess/index.d.ts.map +1 -0
- package/dist/components/containers/index.d.ts +2 -0
- package/dist/components/containers/index.d.ts.map +1 -0
- package/dist/components/containers/refine/index.d.ts +144 -0
- package/dist/components/containers/refine/index.d.ts.map +1 -0
- package/dist/components/gh-banner/index.d.ts +3 -0
- package/dist/components/gh-banner/index.d.ts.map +1 -0
- package/dist/components/gh-banner/styles.d.ts +2 -0
- package/dist/components/gh-banner/styles.d.ts.map +1 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/layoutWrapper/defaultLayout/index.d.ts +4 -0
- package/dist/components/layoutWrapper/defaultLayout/index.d.ts.map +1 -0
- package/dist/components/layoutWrapper/index.d.ts +46 -0
- package/dist/components/layoutWrapper/index.d.ts.map +1 -0
- package/dist/components/pages/auth/components/forgotPassword/index.d.ts +7 -0
- package/dist/components/pages/auth/components/forgotPassword/index.d.ts.map +1 -0
- package/dist/components/pages/auth/components/index.d.ts +5 -0
- package/dist/components/pages/auth/components/index.d.ts.map +1 -0
- package/dist/components/pages/auth/components/login/index.d.ts +7 -0
- package/dist/components/pages/auth/components/login/index.d.ts.map +1 -0
- package/dist/components/pages/auth/components/register/index.d.ts +7 -0
- package/dist/components/pages/auth/components/register/index.d.ts.map +1 -0
- package/dist/components/pages/auth/components/updatePassword/index.d.ts +7 -0
- package/dist/components/pages/auth/components/updatePassword/index.d.ts.map +1 -0
- package/dist/components/pages/auth/index.d.ts +12 -0
- package/dist/components/pages/auth/index.d.ts.map +1 -0
- package/dist/components/pages/error/index.d.ts +9 -0
- package/dist/components/pages/error/index.d.ts.map +1 -0
- package/dist/components/pages/index.d.ts +7 -0
- package/dist/components/pages/index.d.ts.map +1 -0
- package/dist/components/pages/login/index.d.ts +13 -0
- package/dist/components/pages/login/index.d.ts.map +1 -0
- package/dist/components/pages/ready/index.d.ts +9 -0
- package/dist/components/pages/ready/index.d.ts.map +1 -0
- package/dist/components/pages/welcome/index.d.ts +6 -0
- package/dist/components/pages/welcome/index.d.ts.map +1 -0
- package/dist/components/routeChangeHandler/index.d.ts +3 -0
- package/dist/components/routeChangeHandler/index.d.ts.map +1 -0
- package/dist/components/telemetry/index.d.ts +3 -0
- package/dist/components/telemetry/index.d.ts.map +1 -0
- package/dist/components/undoableQueue/index.d.ts +6 -0
- package/dist/components/undoableQueue/index.d.ts.map +1 -0
- package/dist/contexts/accessControl/IAccessControlContext.d.ts +31 -0
- package/dist/contexts/accessControl/IAccessControlContext.d.ts.map +1 -0
- package/dist/contexts/accessControl/index.d.ts +9 -0
- package/dist/contexts/accessControl/index.d.ts.map +1 -0
- package/dist/contexts/auditLog/IAuditLogContext.d.ts +29 -0
- package/dist/contexts/auditLog/IAuditLogContext.d.ts.map +1 -0
- package/dist/contexts/auditLog/index.d.ts +7 -0
- package/dist/contexts/auditLog/index.d.ts.map +1 -0
- package/dist/contexts/auth/IAuthContext.d.ts +26 -0
- package/dist/contexts/auth/IAuthContext.d.ts.map +1 -0
- package/dist/contexts/auth/index.d.ts +20 -0
- package/dist/contexts/auth/index.d.ts.map +1 -0
- package/dist/contexts/data/IDataContext.d.ts +193 -0
- package/dist/contexts/data/IDataContext.d.ts.map +1 -0
- package/dist/contexts/data/index.d.ts +52 -0
- package/dist/contexts/data/index.d.ts.map +1 -0
- package/dist/contexts/legacy-router/IRouterContext.d.ts +35 -0
- package/dist/contexts/legacy-router/IRouterContext.d.ts.map +1 -0
- package/dist/contexts/legacy-router/index.d.ts +9 -0
- package/dist/contexts/legacy-router/index.d.ts.map +1 -0
- package/dist/contexts/live/ILiveContext.d.ts +39 -0
- package/dist/contexts/live/ILiveContext.d.ts.map +1 -0
- package/dist/contexts/live/index.d.ts +5 -0
- package/dist/contexts/live/index.d.ts.map +1 -0
- package/dist/contexts/notification/INotificationContext.d.ts +14 -0
- package/dist/contexts/notification/INotificationContext.d.ts.map +1 -0
- package/dist/contexts/notification/index.d.ts +9 -0
- package/dist/contexts/notification/index.d.ts.map +1 -0
- package/dist/contexts/refine/IRefineContext.d.ts +106 -0
- package/dist/contexts/refine/IRefineContext.d.ts.map +1 -0
- package/dist/contexts/refine/index.d.ts +6 -0
- package/dist/contexts/refine/index.d.ts.map +1 -0
- package/dist/contexts/resource/IResourceContext.d.ts +49 -0
- package/dist/contexts/resource/IResourceContext.d.ts.map +1 -0
- package/dist/contexts/resource/index.d.ts +9 -0
- package/dist/contexts/resource/index.d.ts.map +1 -0
- package/dist/contexts/router/index.d.ts +7 -0
- package/dist/contexts/router/index.d.ts.map +1 -0
- package/dist/contexts/router-picker/index.d.ts +15 -0
- package/dist/contexts/router-picker/index.d.ts.map +1 -0
- package/dist/contexts/translation/ITranslationContext.d.ts +11 -0
- package/dist/contexts/translation/ITranslationContext.d.ts.map +1 -0
- package/dist/contexts/translation/index.d.ts +9 -0
- package/dist/contexts/translation/index.d.ts.map +1 -0
- package/dist/contexts/undoableQueue/IUndoableQueueContext.d.ts +7 -0
- package/dist/contexts/undoableQueue/IUndoableQueueContext.d.ts.map +1 -0
- package/dist/contexts/undoableQueue/actionTypes.d.ts +6 -0
- package/dist/contexts/undoableQueue/actionTypes.d.ts.map +1 -0
- package/dist/contexts/undoableQueue/index.d.ts +3 -0
- package/dist/contexts/undoableQueue/index.d.ts.map +1 -0
- package/dist/contexts/undoableQueue/undoableQueueContext.d.ts +8 -0
- package/dist/contexts/undoableQueue/undoableQueueContext.d.ts.map +1 -0
- package/dist/contexts/unsavedWarn/IUnsavedWarnContext.d.ts +5 -0
- package/dist/contexts/unsavedWarn/IUnsavedWarnContext.d.ts.map +1 -0
- package/dist/contexts/unsavedWarn/index.d.ts +7 -0
- package/dist/contexts/unsavedWarn/index.d.ts.map +1 -0
- package/dist/definitions/helpers/check-router-prop-misuse/index.d.ts +3 -0
- package/dist/definitions/helpers/check-router-prop-misuse/index.d.ts.map +1 -0
- package/dist/definitions/helpers/handleMultiple/index.d.ts +6 -0
- package/dist/definitions/helpers/handleMultiple/index.d.ts.map +1 -0
- package/dist/definitions/helpers/handlePaginationParams/index.d.ts +9 -0
- package/dist/definitions/helpers/handlePaginationParams/index.d.ts.map +1 -0
- package/dist/definitions/helpers/handleRefineOptions/index.d.ts +26 -0
- package/dist/definitions/helpers/handleRefineOptions/index.d.ts.map +1 -0
- package/dist/definitions/helpers/handleUseParams/index.d.ts +2 -0
- package/dist/definitions/helpers/handleUseParams/index.d.ts.map +1 -0
- package/dist/definitions/helpers/hasPermission/index.d.ts +2 -0
- package/dist/definitions/helpers/hasPermission/index.d.ts.map +1 -0
- package/dist/definitions/helpers/humanizeString/index.d.ts +2 -0
- package/dist/definitions/helpers/humanizeString/index.d.ts.map +1 -0
- package/dist/definitions/helpers/importCSVMapper/index.d.ts +3 -0
- package/dist/definitions/helpers/importCSVMapper/index.d.ts.map +1 -0
- package/dist/definitions/helpers/index.d.ts +23 -0
- package/dist/definitions/helpers/index.d.ts.map +1 -0
- package/dist/definitions/helpers/legacy-resource-transform/index.d.ts +9 -0
- package/dist/definitions/helpers/legacy-resource-transform/index.d.ts.map +1 -0
- package/dist/definitions/helpers/menu/create-resource-key.d.ts +3 -0
- package/dist/definitions/helpers/menu/create-resource-key.d.ts.map +1 -0
- package/dist/definitions/helpers/menu/create-tree.d.ts +13 -0
- package/dist/definitions/helpers/menu/create-tree.d.ts.map +1 -0
- package/dist/definitions/helpers/pick-resource/index.d.ts +8 -0
- package/dist/definitions/helpers/pick-resource/index.d.ts.map +1 -0
- package/dist/definitions/helpers/pickDataProvider/index.d.ts +6 -0
- package/dist/definitions/helpers/pickDataProvider/index.d.ts.map +1 -0
- package/dist/definitions/helpers/pickNotDeprecated/index.d.ts +2 -0
- package/dist/definitions/helpers/pickNotDeprecated/index.d.ts.map +1 -0
- package/dist/definitions/helpers/queryKeys/index.d.ts +4 -0
- package/dist/definitions/helpers/queryKeys/index.d.ts.map +1 -0
- package/dist/definitions/helpers/redirectPage/index.d.ts +9 -0
- package/dist/definitions/helpers/redirectPage/index.d.ts.map +1 -0
- package/dist/definitions/helpers/routeGenerator/index.d.ts +7 -0
- package/dist/definitions/helpers/routeGenerator/index.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/check-by-segments.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/check-by-segments.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/compose-route.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/compose-route.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/get-action-routes-from-resource.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/get-action-routes-from-resource.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/get-default-action-path.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/get-default-action-path.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/get-parent-prefix-for-resource.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/get-parent-prefix-for-resource.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/get-parent-resource.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/get-parent-resource.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/is-segment-counts-same.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/is-segment-counts-same.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/match-resource-from-route.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/match-resource-from-route.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/pick-matched-route.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/pick-matched-route.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/pick-route-params.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/pick-route-params.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/prepare-route-params.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/prepare-route-params.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/remove-leading-trailing-slashes.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/remove-leading-trailing-slashes.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/split-to-segments.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/split-to-segments.d.ts.map +1 -0
- package/dist/definitions/helpers/router/check-by-segments.d.ts +9 -0
- package/dist/definitions/helpers/router/check-by-segments.d.ts.map +1 -0
- package/dist/definitions/helpers/router/compose-route.d.ts +10 -0
- package/dist/definitions/helpers/router/compose-route.d.ts.map +1 -0
- package/dist/definitions/helpers/router/get-action-routes-from-resource.d.ts +15 -0
- package/dist/definitions/helpers/router/get-action-routes-from-resource.d.ts.map +1 -0
- package/dist/definitions/helpers/router/get-default-action-path.d.ts +8 -0
- package/dist/definitions/helpers/router/get-default-action-path.d.ts.map +1 -0
- package/dist/definitions/helpers/router/get-parent-prefix-for-resource.d.ts +7 -0
- package/dist/definitions/helpers/router/get-parent-prefix-for-resource.d.ts.map +1 -0
- package/dist/definitions/helpers/router/get-parent-resource.d.ts +7 -0
- package/dist/definitions/helpers/router/get-parent-resource.d.ts.map +1 -0
- package/dist/definitions/helpers/router/index.d.ts +10 -0
- package/dist/definitions/helpers/router/index.d.ts.map +1 -0
- package/dist/definitions/helpers/router/is-parameter.d.ts +5 -0
- package/dist/definitions/helpers/router/is-parameter.d.ts.map +1 -0
- package/dist/definitions/helpers/router/is-segment-counts-same.d.ts +5 -0
- package/dist/definitions/helpers/router/is-segment-counts-same.d.ts.map +1 -0
- package/dist/definitions/helpers/router/match-resource-from-route.d.ts +14 -0
- package/dist/definitions/helpers/router/match-resource-from-route.d.ts.map +1 -0
- package/dist/definitions/helpers/router/pick-matched-route.d.ts +8 -0
- package/dist/definitions/helpers/router/pick-matched-route.d.ts.map +1 -0
- package/dist/definitions/helpers/router/pick-route-params.d.ts +6 -0
- package/dist/definitions/helpers/router/pick-route-params.d.ts.map +1 -0
- package/dist/definitions/helpers/router/prepare-route-params.d.ts +9 -0
- package/dist/definitions/helpers/router/prepare-route-params.d.ts.map +1 -0
- package/dist/definitions/helpers/router/remove-leading-trailing-slashes.d.ts +5 -0
- package/dist/definitions/helpers/router/remove-leading-trailing-slashes.d.ts.map +1 -0
- package/dist/definitions/helpers/router/split-to-segments.d.ts +5 -0
- package/dist/definitions/helpers/router/split-to-segments.d.ts.map +1 -0
- package/dist/definitions/helpers/sanitize-resource/index.d.ts +8 -0
- package/dist/definitions/helpers/sanitize-resource/index.d.ts.map +1 -0
- package/dist/definitions/helpers/sequentialPromises/index.d.ts +5 -0
- package/dist/definitions/helpers/sequentialPromises/index.d.ts.map +1 -0
- package/dist/definitions/helpers/treeView/createTreeView/index.d.ts +6 -0
- package/dist/definitions/helpers/treeView/createTreeView/index.d.ts.map +1 -0
- package/dist/definitions/helpers/treeView/index.d.ts +2 -0
- package/dist/definitions/helpers/treeView/index.d.ts.map +1 -0
- package/dist/definitions/helpers/useActiveAuthProvider/index.d.ts +34 -0
- package/dist/definitions/helpers/useActiveAuthProvider/index.d.ts.map +1 -0
- package/dist/definitions/helpers/useInfinitePagination/index.d.ts +4 -0
- package/dist/definitions/helpers/useInfinitePagination/index.d.ts.map +1 -0
- package/dist/definitions/helpers/userFriendlyResourceName/index.d.ts +6 -0
- package/dist/definitions/helpers/userFriendlyResourceName/index.d.ts.map +1 -0
- package/dist/definitions/helpers/userFriendlySeconds/index.d.ts +2 -0
- package/dist/definitions/helpers/userFriendlySeconds/index.d.ts.map +1 -0
- package/dist/definitions/index.d.ts +4 -0
- package/dist/definitions/index.d.ts.map +1 -0
- package/dist/definitions/table/index.d.ts +34 -0
- package/dist/definitions/table/index.d.ts.map +1 -0
- package/dist/definitions/upload/file2Base64/index.d.ts +2 -0
- package/dist/definitions/upload/file2Base64/index.d.ts.map +1 -0
- package/dist/definitions/upload/index.d.ts +2 -0
- package/dist/definitions/upload/index.d.ts.map +1 -0
- package/dist/esm/index.js +56 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/hooks/accessControl/index.d.ts +3 -0
- package/dist/hooks/accessControl/index.d.ts.map +1 -0
- package/dist/hooks/accessControl/useCan/index.d.ts +18 -0
- package/dist/hooks/accessControl/useCan/index.d.ts.map +1 -0
- package/dist/hooks/accessControl/useCanWithoutCache.d.ts +3 -0
- package/dist/hooks/accessControl/useCanWithoutCache.d.ts.map +1 -0
- package/dist/hooks/auditLog/index.d.ts +3 -0
- package/dist/hooks/auditLog/index.d.ts.map +1 -0
- package/dist/hooks/auditLog/useLog/index.d.ts +26 -0
- package/dist/hooks/auditLog/useLog/index.d.ts.map +1 -0
- package/dist/hooks/auditLog/useLogList/index.d.ts +16 -0
- package/dist/hooks/auditLog/useLogList/index.d.ts.map +1 -0
- package/dist/hooks/auth/index.d.ts +11 -0
- package/dist/hooks/auth/index.d.ts.map +1 -0
- package/dist/hooks/auth/useForgotPassword/index.d.ts +21 -0
- package/dist/hooks/auth/useForgotPassword/index.d.ts.map +1 -0
- package/dist/hooks/auth/useGetIdentity/index.d.ts +21 -0
- package/dist/hooks/auth/useGetIdentity/index.d.ts.map +1 -0
- package/dist/hooks/auth/useInvaliteAuthStore/index.d.ts +2 -0
- package/dist/hooks/auth/useInvaliteAuthStore/index.d.ts.map +1 -0
- package/dist/hooks/auth/useIsAuthenticated/index.d.ts +25 -0
- package/dist/hooks/auth/useIsAuthenticated/index.d.ts.map +1 -0
- package/dist/hooks/auth/useIsExistAuthentication/index.d.ts +6 -0
- package/dist/hooks/auth/useIsExistAuthentication/index.d.ts.map +1 -0
- package/dist/hooks/auth/useLogin/index.d.ts +22 -0
- package/dist/hooks/auth/useLogin/index.d.ts.map +1 -0
- package/dist/hooks/auth/useLogout/index.d.ts +26 -0
- package/dist/hooks/auth/useLogout/index.d.ts.map +1 -0
- package/dist/hooks/auth/useOnError/index.d.ts +22 -0
- package/dist/hooks/auth/useOnError/index.d.ts.map +1 -0
- package/dist/hooks/auth/usePermissions/index.d.ts +21 -0
- package/dist/hooks/auth/usePermissions/index.d.ts.map +1 -0
- package/dist/hooks/auth/useRegister/index.d.ts +21 -0
- package/dist/hooks/auth/useRegister/index.d.ts.map +1 -0
- package/dist/hooks/auth/useUpdatePassword/index.d.ts +21 -0
- package/dist/hooks/auth/useUpdatePassword/index.d.ts.map +1 -0
- package/dist/hooks/breadcrumb/index.d.ts +18 -0
- package/dist/hooks/breadcrumb/index.d.ts.map +1 -0
- package/dist/hooks/data/index.d.ts +15 -0
- package/dist/hooks/data/index.d.ts.map +1 -0
- package/dist/hooks/data/useApiUrl.d.ts +2 -0
- package/dist/hooks/data/useApiUrl.d.ts.map +1 -0
- package/dist/hooks/data/useCreate.d.ts +48 -0
- package/dist/hooks/data/useCreate.d.ts.map +1 -0
- package/dist/hooks/data/useCreateMany.d.ts +29 -0
- package/dist/hooks/data/useCreateMany.d.ts.map +1 -0
- package/dist/hooks/data/useCustom.d.ts +60 -0
- package/dist/hooks/data/useCustom.d.ts.map +1 -0
- package/dist/hooks/data/useCustomMutation.d.ts +40 -0
- package/dist/hooks/data/useCustomMutation.d.ts.map +1 -0
- package/dist/hooks/data/useDataProvider.d.ts +3 -0
- package/dist/hooks/data/useDataProvider.d.ts.map +1 -0
- package/dist/hooks/data/useDelete.d.ts +35 -0
- package/dist/hooks/data/useDelete.d.ts.map +1 -0
- package/dist/hooks/data/useDeleteMany.d.ts +35 -0
- package/dist/hooks/data/useDeleteMany.d.ts.map +1 -0
- package/dist/hooks/data/useInfiniteList.d.ts +67 -0
- package/dist/hooks/data/useInfiniteList.d.ts.map +1 -0
- package/dist/hooks/data/useList.d.ts +67 -0
- package/dist/hooks/data/useList.d.ts.map +1 -0
- package/dist/hooks/data/useMany.d.ts +44 -0
- package/dist/hooks/data/useMany.d.ts.map +1 -0
- package/dist/hooks/data/useOne.d.ts +44 -0
- package/dist/hooks/data/useOne.d.ts.map +1 -0
- package/dist/hooks/data/useUpdate.d.ts +64 -0
- package/dist/hooks/data/useUpdate.d.ts.map +1 -0
- package/dist/hooks/data/useUpdateMany.d.ts +40 -0
- package/dist/hooks/data/useUpdateMany.d.ts.map +1 -0
- package/dist/hooks/deepMemo/index.d.ts +7 -0
- package/dist/hooks/deepMemo/index.d.ts.map +1 -0
- package/dist/hooks/export/csvDownload.interface.d.ts +20 -0
- package/dist/hooks/export/csvDownload.interface.d.ts.map +1 -0
- package/dist/hooks/export/index.d.ts +75 -0
- package/dist/hooks/export/index.d.ts.map +1 -0
- package/dist/hooks/form/index.d.ts +2 -0
- package/dist/hooks/form/index.d.ts.map +1 -0
- package/dist/hooks/form/useForm.d.ts +103 -0
- package/dist/hooks/form/useForm.d.ts.map +1 -0
- package/dist/hooks/import/index.d.ts +100 -0
- package/dist/hooks/import/index.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +25 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/invalidate/index.d.ts +9 -0
- package/dist/hooks/invalidate/index.d.ts.map +1 -0
- package/dist/hooks/legacy-router/index.d.ts +2 -0
- package/dist/hooks/legacy-router/index.d.ts.map +1 -0
- package/dist/hooks/legacy-router/useRouterContext.d.ts +10 -0
- package/dist/hooks/legacy-router/useRouterContext.d.ts.map +1 -0
- package/dist/hooks/live/index.d.ts +5 -0
- package/dist/hooks/live/index.d.ts.map +1 -0
- package/dist/hooks/live/useLiveMode/index.d.ts +3 -0
- package/dist/hooks/live/useLiveMode/index.d.ts.map +1 -0
- package/dist/hooks/live/usePublish/index.d.ts +3 -0
- package/dist/hooks/live/usePublish/index.d.ts.map +1 -0
- package/dist/hooks/live/useResourceSubscription/index.d.ts +34 -0
- package/dist/hooks/live/useResourceSubscription/index.d.ts.map +1 -0
- package/dist/hooks/live/useSubscription/index.d.ts +46 -0
- package/dist/hooks/live/useSubscription/index.d.ts.map +1 -0
- package/dist/hooks/memoized/index.d.ts +6 -0
- package/dist/hooks/memoized/index.d.ts.map +1 -0
- package/dist/hooks/menu/index.d.ts +2 -0
- package/dist/hooks/menu/index.d.ts.map +1 -0
- package/dist/hooks/menu/useMenu.d.ts +28 -0
- package/dist/hooks/menu/useMenu.d.ts.map +1 -0
- package/dist/hooks/modal/index.d.ts +2 -0
- package/dist/hooks/modal/index.d.ts.map +1 -0
- package/dist/hooks/modal/useModal/index.d.ts +13 -0
- package/dist/hooks/modal/useModal/index.d.ts.map +1 -0
- package/dist/hooks/navigation/index.d.ts +27 -0
- package/dist/hooks/navigation/index.d.ts.map +1 -0
- package/dist/hooks/notification/index.d.ts +4 -0
- package/dist/hooks/notification/index.d.ts.map +1 -0
- package/dist/hooks/notification/useCancelNotification/index.d.ts +8 -0
- package/dist/hooks/notification/useCancelNotification/index.d.ts.map +1 -0
- package/dist/hooks/notification/useHandleNotification/index.d.ts +3 -0
- package/dist/hooks/notification/useHandleNotification/index.d.ts.map +1 -0
- package/dist/hooks/notification/useNotification/index.d.ts +3 -0
- package/dist/hooks/notification/useNotification/index.d.ts.map +1 -0
- package/dist/hooks/redirection/index.d.ts +9 -0
- package/dist/hooks/redirection/index.d.ts.map +1 -0
- package/dist/hooks/refine/index.d.ts +6 -0
- package/dist/hooks/refine/index.d.ts.map +1 -0
- package/dist/hooks/refine/useMutationMode.d.ts +15 -0
- package/dist/hooks/refine/useMutationMode.d.ts.map +1 -0
- package/dist/hooks/refine/useRefineContext.d.ts +19 -0
- package/dist/hooks/refine/useRefineContext.d.ts.map +1 -0
- package/dist/hooks/refine/useSyncWithLocation.d.ts +13 -0
- package/dist/hooks/refine/useSyncWithLocation.d.ts.map +1 -0
- package/dist/hooks/refine/useTitle.d.ts +10 -0
- package/dist/hooks/refine/useTitle.d.ts.map +1 -0
- package/dist/hooks/refine/useWarnAboutChange/index.d.ts +15 -0
- package/dist/hooks/refine/useWarnAboutChange/index.d.ts.map +1 -0
- package/dist/hooks/resource/index.d.ts +3 -0
- package/dist/hooks/resource/index.d.ts.map +1 -0
- package/dist/hooks/resource/useResource/index.d.ts +45 -0
- package/dist/hooks/resource/useResource/index.d.ts.map +1 -0
- package/dist/hooks/resource/useResourceWithRoute/index.d.ts +8 -0
- package/dist/hooks/resource/useResourceWithRoute/index.d.ts.map +1 -0
- package/dist/hooks/router/index.d.ts +8 -0
- package/dist/hooks/router/index.d.ts.map +1 -0
- package/dist/hooks/router/use-back/index.d.ts +2 -0
- package/dist/hooks/router/use-back/index.d.ts.map +1 -0
- package/dist/hooks/router/use-get-to-path/index.d.ts +18 -0
- package/dist/hooks/router/use-get-to-path/index.d.ts.map +1 -0
- package/dist/hooks/router/use-go/index.d.ts +2 -0
- package/dist/hooks/router/use-go/index.d.ts.map +1 -0
- package/dist/hooks/router/use-link/index.d.ts +6 -0
- package/dist/hooks/router/use-link/index.d.ts.map +1 -0
- package/dist/hooks/router/use-parse/index.d.ts +3 -0
- package/dist/hooks/router/use-parse/index.d.ts.map +1 -0
- package/dist/hooks/router/use-parsed/index.d.ts +2 -0
- package/dist/hooks/router/use-parsed/index.d.ts.map +1 -0
- package/dist/hooks/router/use-router-misuse-warning/index.d.ts +3 -0
- package/dist/hooks/router/use-router-misuse-warning/index.d.ts.map +1 -0
- package/dist/hooks/router/use-to-path/index.d.ts +17 -0
- package/dist/hooks/router/use-to-path/index.d.ts.map +1 -0
- package/dist/hooks/show/index.d.ts +2 -0
- package/dist/hooks/show/index.d.ts.map +1 -0
- package/dist/hooks/show/useShow.d.ts +47 -0
- package/dist/hooks/show/useShow.d.ts.map +1 -0
- package/dist/hooks/translate/index.d.ts +4 -0
- package/dist/hooks/translate/index.d.ts.map +1 -0
- package/dist/hooks/translate/useGetLocale.d.ts +9 -0
- package/dist/hooks/translate/useGetLocale.d.ts.map +1 -0
- package/dist/hooks/translate/useSetLocale.d.ts +8 -0
- package/dist/hooks/translate/useSetLocale.d.ts.map +1 -0
- package/dist/hooks/translate/useTranslate.d.ts +11 -0
- package/dist/hooks/translate/useTranslate.d.ts.map +1 -0
- package/dist/hooks/useSelect/index.d.ts +100 -0
- package/dist/hooks/useSelect/index.d.ts.map +1 -0
- package/dist/hooks/useTable/index.d.ts +153 -0
- package/dist/hooks/useTable/index.d.ts.map +1 -0
- package/dist/hooks/useTelemetryData/index.d.ts +3 -0
- package/dist/hooks/useTelemetryData/index.d.ts.map +1 -0
- package/dist/iife/index.js +56 -0
- package/dist/iife/index.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +56 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/HttpError.d.ts +5 -0
- package/dist/interfaces/HttpError.d.ts.map +1 -0
- package/dist/interfaces/actions.d.ts +10 -0
- package/dist/interfaces/actions.d.ts.map +1 -0
- package/dist/interfaces/auditLog/index.d.ts +2 -0
- package/dist/interfaces/auditLog/index.d.ts.map +1 -0
- package/dist/interfaces/auditLog/logData.d.ts +14 -0
- package/dist/interfaces/auditLog/logData.d.ts.map +1 -0
- package/dist/interfaces/auth.d.ts +158 -0
- package/dist/interfaces/auth.d.ts.map +1 -0
- package/dist/interfaces/bindings/access-control.d.ts +50 -0
- package/dist/interfaces/bindings/access-control.d.ts.map +1 -0
- package/dist/interfaces/bindings/auth.d.ts +66 -0
- package/dist/interfaces/bindings/auth.d.ts.map +1 -0
- package/dist/interfaces/bindings/data.d.ts +15 -0
- package/dist/interfaces/bindings/data.d.ts.map +1 -0
- package/dist/interfaces/bindings/i18n.d.ts +19 -0
- package/dist/interfaces/bindings/i18n.d.ts.map +1 -0
- package/dist/interfaces/bindings/index.d.ts +9 -0
- package/dist/interfaces/bindings/index.d.ts.map +1 -0
- package/dist/interfaces/bindings/live.d.ts +43 -0
- package/dist/interfaces/bindings/live.d.ts.map +1 -0
- package/dist/interfaces/bindings/notifications.d.ts +24 -0
- package/dist/interfaces/bindings/notifications.d.ts.map +1 -0
- package/dist/interfaces/bindings/resource.d.ts +150 -0
- package/dist/interfaces/bindings/resource.d.ts.map +1 -0
- package/dist/interfaces/bindings/router.d.ts +70 -0
- package/dist/interfaces/bindings/router.d.ts.map +1 -0
- package/dist/interfaces/customComponents.d.ts +26 -0
- package/dist/interfaces/customComponents.d.ts.map +1 -0
- package/dist/interfaces/form-url-params.d.ts +12 -0
- package/dist/interfaces/form-url-params.d.ts.map +1 -0
- package/dist/interfaces/index.d.ts +49 -0
- package/dist/interfaces/index.d.ts.map +1 -0
- package/dist/interfaces/live/LiveEvent.d.ts +11 -0
- package/dist/interfaces/live/LiveEvent.d.ts.map +1 -0
- package/dist/interfaces/live/LiveModeProps.d.ts +27 -0
- package/dist/interfaces/live/LiveModeProps.d.ts.map +1 -0
- package/dist/interfaces/live/index.d.ts +3 -0
- package/dist/interfaces/live/index.d.ts.map +1 -0
- package/dist/interfaces/mapDataFn.d.ts +4 -0
- package/dist/interfaces/mapDataFn.d.ts.map +1 -0
- package/dist/interfaces/metaData/fields.d.ts +3 -0
- package/dist/interfaces/metaData/fields.d.ts.map +1 -0
- package/dist/interfaces/metaData/index.d.ts +3 -0
- package/dist/interfaces/metaData/index.d.ts.map +1 -0
- package/dist/interfaces/metaData/metaDataQuery.d.ts +10 -0
- package/dist/interfaces/metaData/metaDataQuery.d.ts.map +1 -0
- package/dist/interfaces/metaData/metaQuery.d.ts +7 -0
- package/dist/interfaces/metaData/metaQuery.d.ts.map +1 -0
- package/dist/interfaces/metaData/nestedField.d.ts +8 -0
- package/dist/interfaces/metaData/nestedField.d.ts.map +1 -0
- package/dist/interfaces/metaData/queryBuilderOptions.d.ts +8 -0
- package/dist/interfaces/metaData/queryBuilderOptions.d.ts.map +1 -0
- package/dist/interfaces/metaData/variableOptions.d.ts +10 -0
- package/dist/interfaces/metaData/variableOptions.d.ts.map +1 -0
- package/dist/interfaces/mutationMode.d.ts +17 -0
- package/dist/interfaces/mutationMode.d.ts.map +1 -0
- package/dist/interfaces/notification.d.ts +11 -0
- package/dist/interfaces/notification.d.ts.map +1 -0
- package/dist/interfaces/prettify.d.ts +4 -0
- package/dist/interfaces/prettify.d.ts.map +1 -0
- package/dist/interfaces/queryKey.d.ts +17 -0
- package/dist/interfaces/queryKey.d.ts.map +1 -0
- package/dist/interfaces/resourceErrorRouterParams.d.ts +6 -0
- package/dist/interfaces/resourceErrorRouterParams.d.ts.map +1 -0
- package/dist/interfaces/resourceRouterParams.d.ts +7 -0
- package/dist/interfaces/resourceRouterParams.d.ts.map +1 -0
- package/dist/interfaces/successErrorNotification.d.ts +15 -0
- package/dist/interfaces/successErrorNotification.d.ts.map +1 -0
- package/dist/interfaces/telementry.d.ts +15 -0
- package/dist/interfaces/telementry.d.ts.map +1 -0
- package/package.json +67 -0
- package/refine.config.js +120 -0
- package/src/components/authenticated/index.tsx +202 -0
- package/src/components/canAccess/index.tsx +42 -0
- package/src/components/containers/index.ts +1 -0
- package/src/components/containers/refine/index.tsx +412 -0
- package/src/components/gh-banner/index.tsx +75 -0
- package/src/components/gh-banner/styles.ts +59 -0
- package/src/components/index.ts +9 -0
- package/src/components/layoutWrapper/defaultLayout/index.tsx +7 -0
- package/src/components/layoutWrapper/index.tsx +121 -0
- package/src/components/pages/auth/components/forgotPassword/index.tsx +122 -0
- package/src/components/pages/auth/components/index.ts +4 -0
- package/src/components/pages/auth/components/login/index.tsx +182 -0
- package/src/components/pages/auth/components/register/index.tsx +168 -0
- package/src/components/pages/auth/components/updatePassword/index.tsx +104 -0
- package/src/components/pages/auth/index.tsx +52 -0
- package/src/components/pages/error/index.tsx +64 -0
- package/src/components/pages/index.tsx +7 -0
- package/src/components/pages/login/index.tsx +91 -0
- package/src/components/pages/ready/index.tsx +39 -0
- package/src/components/pages/welcome/index.tsx +32 -0
- package/src/components/routeChangeHandler/index.tsx +16 -0
- package/src/components/telemetry/index.tsx +32 -0
- package/src/components/undoableQueue/index.tsx +68 -0
- package/src/contexts/accessControl/IAccessControlContext.ts +32 -0
- package/src/contexts/accessControl/index.tsx +22 -0
- package/src/contexts/auditLog/IAuditLogContext.ts +31 -0
- package/src/contexts/auditLog/index.tsx +17 -0
- package/src/contexts/auth/IAuthContext.ts +27 -0
- package/src/contexts/auth/index.tsx +203 -0
- package/src/contexts/data/IDataContext.ts +285 -0
- package/src/contexts/data/index.tsx +50 -0
- package/src/contexts/legacy-router/IRouterContext.ts +37 -0
- package/src/contexts/legacy-router/index.tsx +45 -0
- package/src/contexts/live/ILiveContext.ts +48 -0
- package/src/contexts/live/index.tsx +16 -0
- package/src/contexts/notification/INotificationContext.ts +15 -0
- package/src/contexts/notification/index.tsx +20 -0
- package/src/contexts/refine/IRefineContext.ts +116 -0
- package/src/contexts/refine/index.tsx +87 -0
- package/src/contexts/resource/IResourceContext.ts +68 -0
- package/src/contexts/resource/index.tsx +34 -0
- package/src/contexts/router/index.tsx +17 -0
- package/src/contexts/router-picker/index.tsx +21 -0
- package/src/contexts/translation/ITranslationContext.ts +19 -0
- package/src/contexts/translation/index.tsx +24 -0
- package/src/contexts/undoableQueue/IUndoableQueueContext.ts +6 -0
- package/src/contexts/undoableQueue/actionTypes.ts +5 -0
- package/src/contexts/undoableQueue/index.ts +5 -0
- package/src/contexts/undoableQueue/undoableQueueContext.tsx +83 -0
- package/src/contexts/unsavedWarn/IUnsavedWarnContext.ts +4 -0
- package/src/contexts/unsavedWarn/index.tsx +17 -0
- package/src/definitions/helpers/check-router-prop-misuse/index.ts +30 -0
- package/src/definitions/helpers/handleMultiple/index.ts +7 -0
- package/src/definitions/helpers/handlePaginationParams/index.ts +30 -0
- package/src/definitions/helpers/handleRefineOptions/index.ts +94 -0
- package/src/definitions/helpers/handleUseParams/index.tsx +9 -0
- package/src/definitions/helpers/hasPermission/index.ts +9 -0
- package/src/definitions/helpers/humanizeString/index.ts +14 -0
- package/src/definitions/helpers/importCSVMapper/index.ts +15 -0
- package/src/definitions/helpers/index.ts +25 -0
- package/src/definitions/helpers/legacy-resource-transform/index.ts +30 -0
- package/src/definitions/helpers/menu/create-resource-key.ts +33 -0
- package/src/definitions/helpers/menu/create-tree.ts +87 -0
- package/src/definitions/helpers/pick-resource/index.ts +40 -0
- package/src/definitions/helpers/pickDataProvider/index.ts +29 -0
- package/src/definitions/helpers/pickNotDeprecated/index.ts +9 -0
- package/src/definitions/helpers/queryKeys/index.ts +47 -0
- package/src/definitions/helpers/redirectPage/index.ts +28 -0
- package/src/definitions/helpers/routeGenerator/index.ts +29 -0
- package/src/definitions/helpers/router/__tests__/check-by-segments.ts +24 -0
- package/src/definitions/helpers/router/__tests__/compose-route.ts +42 -0
- package/src/definitions/helpers/router/__tests__/get-action-routes-from-resource.ts +169 -0
- package/src/definitions/helpers/router/__tests__/get-default-action-path.ts +47 -0
- package/src/definitions/helpers/router/__tests__/get-parent-prefix-for-resource.ts +84 -0
- package/src/definitions/helpers/router/__tests__/get-parent-resource.ts +51 -0
- package/src/definitions/helpers/router/__tests__/is-segment-counts-same.ts +21 -0
- package/src/definitions/helpers/router/__tests__/match-resource-from-route.ts +59 -0
- package/src/definitions/helpers/router/__tests__/pick-matched-route.ts +89 -0
- package/src/definitions/helpers/router/__tests__/pick-route-params.ts +18 -0
- package/src/definitions/helpers/router/__tests__/prepare-route-params.ts +23 -0
- package/src/definitions/helpers/router/__tests__/remove-leading-trailing-slashes.ts +15 -0
- package/src/definitions/helpers/router/__tests__/split-to-segments.ts +15 -0
- package/src/definitions/helpers/router/check-by-segments.ts +28 -0
- package/src/definitions/helpers/router/compose-route.ts +30 -0
- package/src/definitions/helpers/router/get-action-routes-from-resource.ts +71 -0
- package/src/definitions/helpers/router/get-default-action-path.ts +33 -0
- package/src/definitions/helpers/router/get-parent-prefix-for-resource.ts +39 -0
- package/src/definitions/helpers/router/get-parent-resource.ts +31 -0
- package/src/definitions/helpers/router/index.ts +10 -0
- package/src/definitions/helpers/router/is-parameter.ts +6 -0
- package/src/definitions/helpers/router/is-segment-counts-same.ts +11 -0
- package/src/definitions/helpers/router/match-resource-from-route.ts +37 -0
- package/src/definitions/helpers/router/pick-matched-route.ts +61 -0
- package/src/definitions/helpers/router/pick-route-params.ts +19 -0
- package/src/definitions/helpers/router/prepare-route-params.ts +32 -0
- package/src/definitions/helpers/router/remove-leading-trailing-slashes.ts +6 -0
- package/src/definitions/helpers/router/split-to-segments.ts +7 -0
- package/src/definitions/helpers/sanitize-resource/index.ts +31 -0
- package/src/definitions/helpers/sequentialPromises/index.ts +32 -0
- package/src/definitions/helpers/treeView/createTreeView/index.ts +44 -0
- package/src/definitions/helpers/treeView/index.ts +1 -0
- package/src/definitions/helpers/useActiveAuthProvider/index.ts +30 -0
- package/src/definitions/helpers/useInfinitePagination/index.ts +30 -0
- package/src/definitions/helpers/userFriendlyResourceName/index.ts +17 -0
- package/src/definitions/helpers/userFriendlySeconds/index.ts +3 -0
- package/src/definitions/index.ts +3 -0
- package/src/definitions/table/__snapshots__/index.spec.ts.snap +7 -0
- package/src/definitions/table/index.ts +192 -0
- package/src/definitions/upload/file2Base64/index.ts +21 -0
- package/src/definitions/upload/index.ts +1 -0
- package/src/hooks/accessControl/index.ts +2 -0
- package/src/hooks/accessControl/useCan/index.ts +69 -0
- package/src/hooks/accessControl/useCanWithoutCache.ts +10 -0
- package/src/hooks/auditLog/index.ts +2 -0
- package/src/hooks/auditLog/useLog/index.ts +139 -0
- package/src/hooks/auditLog/useLogList/index.ts +55 -0
- package/src/hooks/auth/index.ts +10 -0
- package/src/hooks/auth/useForgotPassword/index.ts +174 -0
- package/src/hooks/auth/useGetIdentity/index.ts +92 -0
- package/src/hooks/auth/useInvaliteAuthStore/index.ts +13 -0
- package/src/hooks/auth/useIsAuthenticated/index.ts +80 -0
- package/src/hooks/auth/useIsExistAuthentication/index.ts +12 -0
- package/src/hooks/auth/useLogin/index.ts +220 -0
- package/src/hooks/auth/useLogout/index.ts +199 -0
- package/src/hooks/auth/useOnError/index.ts +110 -0
- package/src/hooks/auth/usePermissions/index.ts +87 -0
- package/src/hooks/auth/useRegister/index.ts +186 -0
- package/src/hooks/auth/useUpdatePassword/index.ts +215 -0
- package/src/hooks/breadcrumb/index.ts +126 -0
- package/src/hooks/data/index.ts +18 -0
- package/src/hooks/data/useApiUrl.ts +9 -0
- package/src/hooks/data/useCreate.ts +258 -0
- package/src/hooks/data/useCreateMany.ts +239 -0
- package/src/hooks/data/useCustom.ts +177 -0
- package/src/hooks/data/useCustomMutation.ts +188 -0
- package/src/hooks/data/useDataProvider.tsx +39 -0
- package/src/hooks/data/useDelete.ts +415 -0
- package/src/hooks/data/useDeleteMany.ts +442 -0
- package/src/hooks/data/useInfiniteList.ts +290 -0
- package/src/hooks/data/useList.ts +300 -0
- package/src/hooks/data/useMany.ts +202 -0
- package/src/hooks/data/useOne.ts +205 -0
- package/src/hooks/data/useUpdate.ts +488 -0
- package/src/hooks/data/useUpdateMany.ts +496 -0
- package/src/hooks/deepMemo/index.tsx +17 -0
- package/src/hooks/export/csvDownload.interface.ts +27 -0
- package/src/hooks/export/index.ts +189 -0
- package/src/hooks/form/index.ts +1 -0
- package/src/hooks/form/useForm.ts +524 -0
- package/src/hooks/import/index.tsx +336 -0
- package/src/hooks/index.ts +24 -0
- package/src/hooks/invalidate/index.tsx +62 -0
- package/src/hooks/legacy-router/index.ts +1 -0
- package/src/hooks/legacy-router/useRouterContext.ts +18 -0
- package/src/hooks/live/index.ts +4 -0
- package/src/hooks/live/useLiveMode/index.ts +12 -0
- package/src/hooks/live/usePublish/index.ts +10 -0
- package/src/hooks/live/useResourceSubscription/index.ts +99 -0
- package/src/hooks/live/useSubscription/index.ts +85 -0
- package/src/hooks/memoized/index.tsx +16 -0
- package/src/hooks/menu/index.ts +1 -0
- package/src/hooks/menu/useMenu.tsx +153 -0
- package/src/hooks/modal/index.ts +1 -0
- package/src/hooks/modal/useModal/index.tsx +29 -0
- package/src/hooks/navigation/index.ts +385 -0
- package/src/hooks/notification/index.ts +3 -0
- package/src/hooks/notification/useCancelNotification/index.tsx +16 -0
- package/src/hooks/notification/useHandleNotification/index.ts +26 -0
- package/src/hooks/notification/useNotification/index.ts +10 -0
- package/src/hooks/redirection/index.ts +56 -0
- package/src/hooks/refine/index.ts +5 -0
- package/src/hooks/refine/useMutationMode.ts +22 -0
- package/src/hooks/refine/useRefineContext.ts +41 -0
- package/src/hooks/refine/useSyncWithLocation.ts +20 -0
- package/src/hooks/refine/useTitle.tsx +15 -0
- package/src/hooks/refine/useWarnAboutChange/index.ts +32 -0
- package/src/hooks/resource/index.ts +2 -0
- package/src/hooks/resource/useResource/index.ts +151 -0
- package/src/hooks/resource/useResourceWithRoute/index.ts +27 -0
- package/src/hooks/router/index.ts +7 -0
- package/src/hooks/router/use-back/index.tsx +15 -0
- package/src/hooks/router/use-get-to-path/index.ts +60 -0
- package/src/hooks/router/use-go/index.tsx +15 -0
- package/src/hooks/router/use-link/index.tsx +17 -0
- package/src/hooks/router/use-parse/index.tsx +21 -0
- package/src/hooks/router/use-parsed/index.tsx +10 -0
- package/src/hooks/router/use-router-misuse-warning/index.ts +18 -0
- package/src/hooks/router/use-to-path/index.ts +27 -0
- package/src/hooks/show/index.ts +1 -0
- package/src/hooks/show/useShow.ts +183 -0
- package/src/hooks/translate/index.ts +3 -0
- package/src/hooks/translate/useGetLocale.ts +16 -0
- package/src/hooks/translate/useSetLocale.ts +14 -0
- package/src/hooks/translate/useTranslate.ts +40 -0
- package/src/hooks/useSelect/index.ts +280 -0
- package/src/hooks/useTable/index.ts +544 -0
- package/src/hooks/useTelemetryData/index.ts +73 -0
- package/src/index.tsx +120 -0
- package/src/interfaces/HttpError.ts +4 -0
- package/src/interfaces/actions.ts +16 -0
- package/src/interfaces/auditLog/index.ts +1 -0
- package/src/interfaces/auditLog/logData.ts +15 -0
- package/src/interfaces/auth.tsx +192 -0
- package/src/interfaces/bindings/access-control.ts +53 -0
- package/src/interfaces/bindings/auth.ts +72 -0
- package/src/interfaces/bindings/data.ts +18 -0
- package/src/interfaces/bindings/i18n.ts +29 -0
- package/src/interfaces/bindings/index.ts +24 -0
- package/src/interfaces/bindings/live.ts +56 -0
- package/src/interfaces/bindings/notifications.ts +25 -0
- package/src/interfaces/bindings/resource.ts +178 -0
- package/src/interfaces/bindings/router.ts +73 -0
- package/src/interfaces/customComponents.ts +28 -0
- package/src/interfaces/form-url-params.ts +8 -0
- package/src/interfaces/index.ts +86 -0
- package/src/interfaces/live/LiveEvent.ts +11 -0
- package/src/interfaces/live/LiveModeProps.ts +28 -0
- package/src/interfaces/live/index.ts +2 -0
- package/src/interfaces/mapDataFn.ts +3 -0
- package/src/interfaces/metaData/fields.ts +3 -0
- package/src/interfaces/metaData/index.ts +2 -0
- package/src/interfaces/metaData/metaDataQuery.ts +10 -0
- package/src/interfaces/metaData/metaQuery.ts +7 -0
- package/src/interfaces/metaData/nestedField.ts +8 -0
- package/src/interfaces/metaData/queryBuilderOptions.ts +8 -0
- package/src/interfaces/metaData/variableOptions.ts +9 -0
- package/src/interfaces/mutationMode.ts +29 -0
- package/src/interfaces/notification.ts +10 -0
- package/src/interfaces/prettify.ts +3 -0
- package/src/interfaces/queryKey.ts +23 -0
- package/src/interfaces/resourceErrorRouterParams.ts +6 -0
- package/src/interfaces/resourceRouterParams.ts +7 -0
- package/src/interfaces/successErrorNotification.ts +33 -0
- package/src/interfaces/telementry.ts +14 -0
- package/tsconfig.json +28 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/notification/useCancelNotification/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,cAAc,EAAyB,MAAM,qBAAqB,CAAC;AAE5E,oBAAY,yBAAyB,GAAG,MAAM;IAC1C,aAAa,EAAE,cAAc,EAAE,CAAC;IAChC,oBAAoB,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,yBAKnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/notification/useHandleNotification/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAG7D,eAAO,MAAM,qBAAqB,uBAKR,sBAAsB,GAAG,KAAK,GAAG,SAAS,yBACjC,sBAAsB,SAcxD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/notification/useNotification/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,eAAe,QAAO,oBAIlC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseKey, IResourceItem, MetaDataQuery, RedirectAction } from "../../interfaces";
|
|
2
|
+
export declare type UseRedirectionAfterSubmissionType = () => (options: {
|
|
3
|
+
redirect: RedirectAction;
|
|
4
|
+
resource?: IResourceItem;
|
|
5
|
+
id?: BaseKey;
|
|
6
|
+
meta?: MetaDataQuery;
|
|
7
|
+
}) => void;
|
|
8
|
+
export declare const useRedirectionAfterSubmission: UseRedirectionAfterSubmissionType;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/redirection/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,OAAO,EACP,aAAa,EACb,aAAa,EACb,cAAc,EACjB,MAAM,kBAAkB,CAAC;AAG1B,oBAAY,iCAAiC,GAAG,MAAM,CAAC,OAAO,EAAE;IAC5D,QAAQ,EAAE,cAAc,CAAC;IACzB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,IAAI,CAAC,EAAE,aAAa,CAAC;CACxB,KAAK,IAAI,CAAC;AAEX,eAAO,MAAM,6BAA6B,EAAE,iCAsCvC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { useMutationMode } from "./useMutationMode";
|
|
2
|
+
export { useWarnAboutChange } from "./useWarnAboutChange";
|
|
3
|
+
export { useSyncWithLocation } from "./useSyncWithLocation";
|
|
4
|
+
export { useTitle } from "./useTitle";
|
|
5
|
+
export { useRefineContext } from "./useRefineContext";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/refine/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IRefineContextOptions } from "../../interfaces";
|
|
2
|
+
declare type UseMutationModeType = () => {
|
|
3
|
+
mutationMode: IRefineContextOptions["mutationMode"];
|
|
4
|
+
undoableTimeout: IRefineContextOptions["undoableTimeout"];
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Mutation mode determines which mode the mutation runs with.
|
|
8
|
+
* Mutations can run under three different modes: `pessimistic`, `optimistic` and `undoable`.
|
|
9
|
+
* Each mode corresponds to a different type of user experience.
|
|
10
|
+
*
|
|
11
|
+
* @see {@link https://refine.dev/docs/guides-and-concepts/mutation-mode} for more details.
|
|
12
|
+
*/
|
|
13
|
+
export declare const useMutationMode: UseMutationModeType;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=useMutationMode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMutationMode.d.ts","sourceRoot":"","sources":["../../../src/hooks/refine/useMutationMode.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,aAAK,mBAAmB,GAAG,MAAM;IAC7B,YAAY,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;IACpD,eAAe,EAAE,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;CAC7D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,EAAE,mBAI7B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const useRefineContext: () => {
|
|
3
|
+
Footer: import("react").FC<{}> | undefined;
|
|
4
|
+
Header: import("react").FC<{}> | undefined;
|
|
5
|
+
Layout: import("react").FC<import("../..").LayoutProps>;
|
|
6
|
+
OffLayoutArea: import("react").FC<{}> | undefined;
|
|
7
|
+
Sider: import("react").FC<{}> | undefined;
|
|
8
|
+
Title: import("react").FC<import("../..").TitleProps> | undefined;
|
|
9
|
+
hasDashboard: boolean;
|
|
10
|
+
mutationMode: import("../..").MutationMode;
|
|
11
|
+
syncWithLocation: boolean;
|
|
12
|
+
undoableTimeout: number;
|
|
13
|
+
warnWhenUnsavedChanges: boolean;
|
|
14
|
+
DashboardPage: import("react").FC<import("../../interfaces").DashboardPageProps<any>> | undefined;
|
|
15
|
+
LoginPage: false | import("react").FC<{}> | undefined;
|
|
16
|
+
catchAll: import("react").ReactNode;
|
|
17
|
+
options: import("../../interfaces").IRefineContextOptions;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=useRefineContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRefineContext.d.ts","sourceRoot":"","sources":["../../../src/hooks/refine/useRefineContext.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;CAoC5B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IRefineContextOptions } from "../../interfaces";
|
|
2
|
+
declare type UseSyncWithLocationType = () => {
|
|
3
|
+
syncWithLocation: IRefineContextOptions["syncWithLocation"];
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* List query parameter values can be edited manually by typing directly in the URL.
|
|
7
|
+
* To activate this feature `syncWithLocation` needs to be set to `true`.
|
|
8
|
+
*
|
|
9
|
+
* @see {@link https://refine.dev/docs/api-references/components/refine-config#syncwithlocation} for more details.
|
|
10
|
+
*/
|
|
11
|
+
export declare const useSyncWithLocation: UseSyncWithLocationType;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=useSyncWithLocation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSyncWithLocation.d.ts","sourceRoot":"","sources":["../../../src/hooks/refine/useSyncWithLocation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,aAAK,uBAAuB,GAAG,MAAM;IACjC,gBAAgB,EAAE,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;CAC/D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,EAAE,uBAIjC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TitleProps } from "../../interfaces";
|
|
3
|
+
/**
|
|
4
|
+
* `useTitle` returns a component that calls the `<Title>` passed to the `<Refine>`.
|
|
5
|
+
* In this way, it becomes easier for us to access this component in various parts of the application.
|
|
6
|
+
*
|
|
7
|
+
* @see {@link https://refine.dev/docs/core/hooks/refine/useTitle} for more details.
|
|
8
|
+
*/
|
|
9
|
+
export declare const useTitle: () => React.FC<TitleProps> | undefined;
|
|
10
|
+
//# sourceMappingURL=useTitle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTitle.d.ts","sourceRoot":"","sources":["../../../src/hooks/refine/useTitle.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,EAAE,MAAM,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,SAInD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IRefineContextOptions, IUnsavedWarnContext } from "../../../interfaces";
|
|
2
|
+
declare type UseWarnAboutChangeType = () => {
|
|
3
|
+
warnWhenUnsavedChanges: IRefineContextOptions["warnWhenUnsavedChanges"];
|
|
4
|
+
warnWhen: NonNullable<IUnsavedWarnContext["warnWhen"]>;
|
|
5
|
+
setWarnWhen: NonNullable<IUnsavedWarnContext["setWarnWhen"]>;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* When you have unsaved changes and try to leave the current page, **refine** shows a confirmation modal box.
|
|
9
|
+
* To activate this feature, set the `warnWhenUnsavedChanges` to `true`.
|
|
10
|
+
*
|
|
11
|
+
* @see {@link https://refine.dev/docs/api-references/components/refine-config#warnwhenunsavedchanges} for more details.
|
|
12
|
+
*/
|
|
13
|
+
export declare const useWarnAboutChange: UseWarnAboutChangeType;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/refine/useWarnAboutChange/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,qBAAqB,EACrB,mBAAmB,EACtB,MAAM,qBAAqB,CAAC;AAE7B,aAAK,sBAAsB,GAAG,MAAM;IAChC,sBAAsB,EAAE,qBAAqB,CAAC,wBAAwB,CAAC,CAAC;IACxE,QAAQ,EAAE,WAAW,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,CAAC;IACvD,WAAW,EAAE,WAAW,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC,CAAC;CAChE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,EAAE,sBAUhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/resource/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Action, BaseKey, IResourceItem } from "../../../interfaces";
|
|
2
|
+
export declare type UseResourceLegacyProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Determines which resource to use for redirection
|
|
5
|
+
* @deprecated resourceName deprecated. Use resourceNameOrRouteName instead # https://github.com/refinedev/refine/issues/1618
|
|
6
|
+
*/
|
|
7
|
+
resourceName?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Determines which resource to use for redirection
|
|
10
|
+
* @default Resource name that it reads from route
|
|
11
|
+
*/
|
|
12
|
+
resourceNameOrRouteName?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Adds id to the end of the URL
|
|
15
|
+
* @deprecated resourceName deprecated. Use resourceNameOrRouteName instead # https://github.com/refinedev/refine/issues/1618
|
|
16
|
+
*/
|
|
17
|
+
recordItemId?: BaseKey;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Matches the resource by identifier.
|
|
21
|
+
* If not provided, the resource from the route will be returned.
|
|
22
|
+
* If your resource does not explicitly define an identifier, the resource name will be used.
|
|
23
|
+
*/
|
|
24
|
+
export declare type UseResourceParam = string | undefined;
|
|
25
|
+
declare type UseResourceReturnType = {
|
|
26
|
+
resources: IResourceItem[];
|
|
27
|
+
resource?: IResourceItem;
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated Use `resource.name` instead when you need to get the resource name.
|
|
30
|
+
*/
|
|
31
|
+
resourceName?: string;
|
|
32
|
+
id?: BaseKey;
|
|
33
|
+
action?: Action;
|
|
34
|
+
};
|
|
35
|
+
declare type UseResourceReturnTypeWithResource = UseResourceReturnType & {
|
|
36
|
+
resource: IResourceItem;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated Use `useResource` with `identifier` property instead. (`identifier` does not check by route name in new router)
|
|
40
|
+
*/
|
|
41
|
+
export declare function useResource(props: UseResourceLegacyProps): UseResourceReturnType;
|
|
42
|
+
export declare function useResource(): UseResourceReturnType;
|
|
43
|
+
export declare function useResource<TIdentifier = UseResourceParam>(identifier: TIdentifier): TIdentifier extends NonNullable<UseResourceParam> ? UseResourceReturnTypeWithResource : UseResourceReturnType;
|
|
44
|
+
export {};
|
|
45
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/resource/useResource/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,MAAM,EACN,OAAO,EACP,aAAa,EAEhB,MAAM,qBAAqB,CAAC;AAM7B,oBAAY,sBAAsB,GAAG;IACjC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF;;;;GAIG;AACH,oBAAY,gBAAgB,GAAG,MAAM,GAAG,SAAS,CAAC;AAElD,aAAK,qBAAqB,GAAG;IACzB,SAAS,EAAE,aAAa,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,aAAK,iCAAiC,GAAG,qBAAqB,GAAG;IAC7D,QAAQ,EAAE,aAAa,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,wBAAgB,WAAW,CACvB,KAAK,EAAE,sBAAsB,GAC9B,qBAAqB,CAAC;AACzB,wBAAgB,WAAW,IAAI,qBAAqB,CAAC;AACrD,wBAAgB,WAAW,CAAC,WAAW,GAAG,gBAAgB,EACtD,UAAU,EAAE,WAAW,GACxB,WAAW,SAAS,WAAW,CAAC,gBAAgB,CAAC,GAC9C,iCAAiC,GACjC,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IResourceItem } from "../../../interfaces";
|
|
2
|
+
export declare type UseResourceWithRouteReturnType = (route: string) => IResourceItem;
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use `useResource` hook instead.
|
|
5
|
+
* @internal This hook is for internal use only. And is kept for backward compatibility.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useResourceWithRoute: () => UseResourceWithRouteReturnType;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/resource/useResourceWithRoute/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGpD,oBAAY,8BAA8B,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,aAAa,CAAC;AAE9E;;;GAGG;AACH,eAAO,MAAM,oBAAoB,QAAO,8BAevC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { useGo } from "./use-go";
|
|
2
|
+
export { useBack } from "./use-back";
|
|
3
|
+
export { useParse } from "./use-parse";
|
|
4
|
+
export { useParsed } from "./use-parsed";
|
|
5
|
+
export { useGetToPath } from "./use-get-to-path";
|
|
6
|
+
export { useToPath } from "./use-to-path";
|
|
7
|
+
export { useLink } from "./use-link";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/router/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/router/use-back/index.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,uCAWnB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Action, IResourceItem } from "../../../interfaces";
|
|
2
|
+
declare type UseToPathParams = {
|
|
3
|
+
resource?: IResourceItem;
|
|
4
|
+
action: Action;
|
|
5
|
+
meta?: Record<string, unknown>;
|
|
6
|
+
legacy?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare type GetToPathFn = (params: UseToPathParams) => string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Returns a function to get the route for a given action and resource.
|
|
11
|
+
* If resource is not provided, it will use the resource from the route.
|
|
12
|
+
* If the resource is not found, it will return undefined.
|
|
13
|
+
* If the action is not found, it will return undefined.
|
|
14
|
+
* `meta` can be provided to compose the routes with parameters. (Can be used for nested routes.)
|
|
15
|
+
*/
|
|
16
|
+
export declare const useGetToPath: () => GetToPathFn;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/router/use-get-to-path/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAM5D,aAAK,eAAe,GAAG;IACnB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,aAAK,WAAW,GAAG,CAAC,MAAM,EAAE,eAAe,KAAK,MAAM,GAAG,SAAS,CAAC;AAEnE;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,QAAO,WAmC/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/router/use-go/index.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,qCAWjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/router/use-link/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,eAAO,MAAM,OAAO;;;GAanB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/router/use-parse/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,eAAO,MAAM,QAAQ,qBAgBpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/router/use-parsed/index.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,wCAMrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/router/use-router-misuse-warning/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,eAAO,MAAM,sBAAsB,WAAY,cAAc,SAa5D,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Action, IResourceItem } from "../../../interfaces";
|
|
2
|
+
declare type UseToPathParams = {
|
|
3
|
+
resource?: IResourceItem;
|
|
4
|
+
action: Action;
|
|
5
|
+
meta?: Record<string, unknown>;
|
|
6
|
+
legacy?: boolean;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Returns the route for a given action and resource.
|
|
10
|
+
* If resource is not provided, it will use the resource from the route.
|
|
11
|
+
* If the resource is not found, it will return undefined.
|
|
12
|
+
* If the action is not found, it will return undefined.
|
|
13
|
+
* `meta` can be provided to compose the routes with parameters. (Can be used for nested routes.)
|
|
14
|
+
*/
|
|
15
|
+
export declare const useToPath: ({ resource, action, meta, legacy, }: UseToPathParams) => string | undefined;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/router/use-to-path/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAG5D,aAAK,eAAe,GAAG;IACnB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,wCAKnB,eAAe,KAAG,MAAM,GAAG,SAI7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/show/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { QueryObserverResult, UseQueryOptions } from "@tanstack/react-query";
|
|
3
|
+
import { BaseRecord, GetOneResponse, SuccessErrorNotification, MetaQuery, LiveModeProps, BaseKey, HttpError } from "../../interfaces";
|
|
4
|
+
export declare type useShowReturnType<TData extends BaseRecord = BaseRecord> = {
|
|
5
|
+
queryResult: QueryObserverResult<GetOneResponse<TData>>;
|
|
6
|
+
showId?: BaseKey;
|
|
7
|
+
setShowId: React.Dispatch<React.SetStateAction<BaseKey | undefined>>;
|
|
8
|
+
};
|
|
9
|
+
export declare type useShowProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError> = {
|
|
10
|
+
/**
|
|
11
|
+
* Resource name for API data interactions
|
|
12
|
+
* @default Reads `:resource` from the URL
|
|
13
|
+
*/
|
|
14
|
+
resource?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Data item ID for API data interactions
|
|
17
|
+
* @default Reads `:id` from the URL
|
|
18
|
+
*/
|
|
19
|
+
id?: BaseKey;
|
|
20
|
+
/**
|
|
21
|
+
* react-query's [useQuery](https://tanstack.com/query/v4/docs/reference/useQuery) options
|
|
22
|
+
*/
|
|
23
|
+
queryOptions?: UseQueryOptions<GetOneResponse<TData>, HttpError>;
|
|
24
|
+
/**
|
|
25
|
+
* Additional meta data to pass to the data provider's `getOne`
|
|
26
|
+
*/
|
|
27
|
+
meta?: MetaQuery;
|
|
28
|
+
/**
|
|
29
|
+
* Additional meta data to pass to the data provider's `getOne`
|
|
30
|
+
* @deprecated `metaData` is deprecated with refine@4, refine will pass `meta` instead, however, we still support `metaData` for backward compatibility.
|
|
31
|
+
*/
|
|
32
|
+
metaData?: MetaQuery;
|
|
33
|
+
/**
|
|
34
|
+
* Target data provider name for API call to be made
|
|
35
|
+
* @default `"default"`
|
|
36
|
+
*/
|
|
37
|
+
dataProviderName?: string;
|
|
38
|
+
} & LiveModeProps & SuccessErrorNotification;
|
|
39
|
+
/**
|
|
40
|
+
* `useShow` hook allows you to fetch the desired record.
|
|
41
|
+
* It uses `getOne` method as query function from the dataProvider that is
|
|
42
|
+
* passed to {@link https://refine.dev/docs/api-references/components/refine-config `<Refine>`}.
|
|
43
|
+
*
|
|
44
|
+
* @see {@link https://refine.dev/docs/core/hooks/show/useShow} for more details.
|
|
45
|
+
*/
|
|
46
|
+
export declare const useShow: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError>({ resource: resourceFromProp, id, successNotification, errorNotification, meta, metaData, liveMode, onLiveEvent, dataProviderName, queryOptions, }?: useShowProps<TData, TError>) => useShowReturnType<TData>;
|
|
47
|
+
//# sourceMappingURL=useShow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useShow.d.ts","sourceRoot":"","sources":["../../../src/hooks/show/useShow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAI7E,OAAO,EAEH,UAAU,EACV,cAAc,EACd,wBAAwB,EACxB,SAAS,EACT,aAAa,EACb,OAAO,EACP,SAAS,EAEZ,MAAM,kBAAkB,CAAC;AAO1B,oBAAY,iBAAiB,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,IAAI;IACnE,WAAW,EAAE,mBAAmB,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;IACxD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC,CAAC;CACxE,CAAC;AAEF,oBAAY,YAAY,CACpB,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,IACpC;IACA;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC;IACb;;OAEG;IACH,YAAY,CAAC,EAAE,eAAe,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,CAAC;IACjE;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,GAAG,aAAa,GACb,wBAAwB,CAAC;AAE7B;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,6RAgHnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/translate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare type UseGetLocaleType = () => () => string | undefined;
|
|
2
|
+
/**
|
|
3
|
+
* If you need to know the current locale, refine provides the `useGetLocale` hook.
|
|
4
|
+
* It returns the `getLocale` method from `i18nProvider` under the hood.
|
|
5
|
+
*
|
|
6
|
+
* @see {@link https://refine.dev/docs/core/hooks/translate/useGetLocale} for more details.
|
|
7
|
+
*/
|
|
8
|
+
export declare const useGetLocale: UseGetLocaleType;
|
|
9
|
+
//# sourceMappingURL=useGetLocale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGetLocale.d.ts","sourceRoot":"","sources":["../../../src/hooks/translate/useGetLocale.ts"],"names":[],"mappings":"AAGA,oBAAY,gBAAgB,GAAG,MAAM,MAAM,MAAM,GAAG,SAAS,CAAC;AAE9D;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,gBAI1B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* If you need to change the locale at runtime, refine provides the `useSetLocale` hook.
|
|
3
|
+
* It returns the changeLocale method from `i18nProvider` under the hood.
|
|
4
|
+
*
|
|
5
|
+
* @see {@link https://refine.dev/docs/core/hooks/translate/useSetLocale} for more details.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useSetLocale: () => (lang: string) => Promise<any> | undefined;
|
|
8
|
+
//# sourceMappingURL=useSetLocale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSetLocale.d.ts","sourceRoot":"","sources":["../../../src/hooks/translate/useSetLocale.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,eAAO,MAAM,YAAY,eAGK,MAAM,6BACnC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* If you need to translate the texts in your own components, refine provides the `useTranslate` hook.
|
|
3
|
+
* It returns the translate method from `i18nProvider` under the hood.
|
|
4
|
+
*
|
|
5
|
+
* @see {@link https://refine.dev/docs/core/hooks/translate/useTranslate} for more details.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useTranslate: () => {
|
|
8
|
+
(key: string, options?: any, defaultMessage?: string): string;
|
|
9
|
+
(key: string, defaultMessage?: string): string;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=useTranslate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTranslate.d.ts","sourceRoot":"","sources":["../../../src/hooks/translate/useTranslate.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,eAAO,MAAM,YAAY;UAKR,MAAM,YACD,GAAG,mBACI,MAAM,GACxB,MAAM;UACe,MAAM,mBAAmB,MAAM,GAAG,MAAM;CAqBvE,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { QueryObserverResult, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { CrudSorting, Option, BaseRecord, GetManyResponse, GetListResponse, CrudFilters, SuccessErrorNotification, HttpError, LiveModeProps, BaseKey, Pagination, MetaQuery, Prettify } from "../../interfaces";
|
|
3
|
+
export declare type UseSelectProps<TData, TError> = {
|
|
4
|
+
/**
|
|
5
|
+
* Resource name for API data interactions
|
|
6
|
+
*/
|
|
7
|
+
resource: string;
|
|
8
|
+
/**
|
|
9
|
+
* Set the option's value
|
|
10
|
+
* @default `"title"`
|
|
11
|
+
*/
|
|
12
|
+
optionLabel?: keyof TData extends string ? keyof TData : never;
|
|
13
|
+
/**
|
|
14
|
+
* Set the option's label value
|
|
15
|
+
* @default `"id"`
|
|
16
|
+
*/
|
|
17
|
+
optionValue?: keyof TData extends string ? keyof TData : never;
|
|
18
|
+
/**
|
|
19
|
+
* Allow us to sort the options
|
|
20
|
+
* @deprecated Use `sorters` instead
|
|
21
|
+
*/
|
|
22
|
+
sort?: CrudSorting;
|
|
23
|
+
/**
|
|
24
|
+
* Allow us to sort the options
|
|
25
|
+
*/
|
|
26
|
+
sorters?: CrudSorting;
|
|
27
|
+
/**
|
|
28
|
+
* Resource name for API data interactions
|
|
29
|
+
*/
|
|
30
|
+
filters?: CrudFilters;
|
|
31
|
+
/**
|
|
32
|
+
* Adds extra `options`
|
|
33
|
+
*/
|
|
34
|
+
defaultValue?: BaseKey | BaseKey[];
|
|
35
|
+
/**
|
|
36
|
+
* The number of milliseconds to delay
|
|
37
|
+
* @default `300`
|
|
38
|
+
*/
|
|
39
|
+
debounce?: number;
|
|
40
|
+
/**
|
|
41
|
+
* react-query [useQuery](https://react-query.tanstack.com/reference/useQuery) options
|
|
42
|
+
*/
|
|
43
|
+
queryOptions?: UseQueryOptions<GetListResponse<TData>, TError>;
|
|
44
|
+
/**
|
|
45
|
+
* Pagination option from [`useList()`](/docs/api-reference/core/hooks/data/useList/)
|
|
46
|
+
* @type { current?: number; pageSize?: number;}
|
|
47
|
+
* @default `undefined`
|
|
48
|
+
*/
|
|
49
|
+
pagination?: Prettify<Omit<Pagination, "mode"> & {
|
|
50
|
+
/**
|
|
51
|
+
* Whether to use server side pagination or not.
|
|
52
|
+
* @default "off"
|
|
53
|
+
*/
|
|
54
|
+
mode?: Pagination["mode"];
|
|
55
|
+
}>;
|
|
56
|
+
/**
|
|
57
|
+
* Disabling pagination option from [`useList()`](/docs/api-reference/core/hooks/data/useList/)
|
|
58
|
+
* @type boolean
|
|
59
|
+
* @default `false`
|
|
60
|
+
* @deprecated `hasPagination` is deprecated, use `pagination.mode` instead.
|
|
61
|
+
*/
|
|
62
|
+
hasPagination?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* react-query [useQuery](https://react-query.tanstack.com/reference/useQuery) options
|
|
65
|
+
*/
|
|
66
|
+
defaultValueQueryOptions?: UseQueryOptions<GetManyResponse<TData>, TError>;
|
|
67
|
+
/**
|
|
68
|
+
* If defined, this callback allows us to override all filters for every search request.
|
|
69
|
+
* @default `undefined`
|
|
70
|
+
*/
|
|
71
|
+
onSearch?: (value: string) => CrudFilters;
|
|
72
|
+
/**
|
|
73
|
+
* Additional meta data to pass to the `useMany` from the data provider
|
|
74
|
+
*/
|
|
75
|
+
meta?: MetaQuery;
|
|
76
|
+
/**
|
|
77
|
+
* Additional meta data to pass to the `useMany` from the data provider
|
|
78
|
+
* @deprecated `metaData` is deprecated with refine@4, refine will pass `meta` instead, however, we still support `metaData` for backward compatibility.
|
|
79
|
+
*/
|
|
80
|
+
metaData?: MetaQuery;
|
|
81
|
+
/**
|
|
82
|
+
* If there is more than one `dataProvider`, you should use the `dataProviderName` that you will use.
|
|
83
|
+
* @default `default`
|
|
84
|
+
*/
|
|
85
|
+
dataProviderName?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Amount of records to fetch in select box list.
|
|
88
|
+
* @deprecated use [`pagination`](https://refine.dev/docs/api-reference/core/interfaceReferences/#pagination) instead
|
|
89
|
+
* @default `undefined`
|
|
90
|
+
*/
|
|
91
|
+
fetchSize?: number;
|
|
92
|
+
} & SuccessErrorNotification & LiveModeProps;
|
|
93
|
+
export declare type UseSelectReturnType<TData extends BaseRecord = BaseRecord> = {
|
|
94
|
+
queryResult: QueryObserverResult<GetListResponse<TData>>;
|
|
95
|
+
defaultValueQueryResult: QueryObserverResult<GetManyResponse<TData>>;
|
|
96
|
+
onSearch: (value: string) => void;
|
|
97
|
+
options: Option[];
|
|
98
|
+
};
|
|
99
|
+
export declare const useSelect: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError>(props: UseSelectProps<TData, TError>) => UseSelectReturnType<TData>;
|
|
100
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSelect/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAM7E,OAAO,EACH,WAAW,EACX,MAAM,EACN,UAAU,EACV,eAAe,EACf,eAAe,EACf,WAAW,EACX,wBAAwB,EACxB,SAAS,EACT,aAAa,EACb,OAAO,EACP,UAAU,EACV,SAAS,EACT,QAAQ,EACX,MAAM,kBAAkB,CAAC;AAK1B,oBAAY,cAAc,CAAC,KAAK,EAAE,MAAM,IAAI;IACxC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,KAAK,SAAS,MAAM,GAAG,MAAM,KAAK,GAAG,KAAK,CAAC;IAC/D;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,KAAK,SAAS,MAAM,GAAG,MAAM,KAAK,GAAG,KAAK,CAAC;IAC/D;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,OAAO,EAAE,CAAC;IACnC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,eAAe,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;IAC/D;;;;OAIG;IACH,UAAU,CAAC,EAAE,QAAQ,CACjB,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG;QACvB;;;WAGG;QACH,IAAI,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;KAC7B,CACJ,CAAC;IACF;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,wBAAwB,CAAC,EAAE,eAAe,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;IAC3E;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,WAAW,CAAC;IAC1C;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,wBAAwB,GACxB,aAAa,CAAC;AAElB,oBAAY,mBAAmB,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,IAAI;IACrE,WAAW,EAAE,mBAAmB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;IACzD,uBAAuB,EAAE,mBAAmB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,SAAS,mJAwJrB,CAAC"}
|