@refinedev/core 4.51.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.
Files changed (254) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/LICENSE +21 -0
  3. package/dist/components/authenticated/index.d.mts.map +75 -1
  4. package/dist/components/autoSaveIndicator/index.d.cts.map +1 -1
  5. package/dist/components/autoSaveIndicator/index.d.mts.map +24 -1
  6. package/dist/components/autoSaveIndicator/index.d.ts.map +1 -1
  7. package/dist/components/canAccess/index.d.mts.map +52 -1
  8. package/dist/components/containers/index.d.mts.map +2 -1
  9. package/dist/components/containers/refine/index.d.mts.map +11 -1
  10. package/dist/components/gh-banner/index.d.mts.map +7 -1
  11. package/dist/components/gh-banner/styles.d.mts.map +2 -1
  12. package/dist/components/index.d.mts.map +10 -1
  13. package/dist/components/layoutWrapper/defaultLayout/index.d.mts.map +4 -1
  14. package/dist/components/layoutWrapper/index.d.mts.map +46 -1
  15. package/dist/components/pages/auth/components/forgotPassword/index.d.mts.map +7 -1
  16. package/dist/components/pages/auth/components/index.d.mts.map +5 -1
  17. package/dist/components/pages/auth/components/login/index.d.mts.map +7 -1
  18. package/dist/components/pages/auth/components/register/index.d.mts.map +7 -1
  19. package/dist/components/pages/auth/components/updatePassword/index.d.mts.map +7 -1
  20. package/dist/components/pages/auth/index.d.mts.map +12 -1
  21. package/dist/components/pages/auth/types.d.mts.map +179 -1
  22. package/dist/components/pages/config-error/index.d.mts.map +3 -1
  23. package/dist/components/pages/config-success/index.d.mts.map +6 -1
  24. package/dist/components/pages/error/index.d.mts.map +9 -1
  25. package/dist/components/pages/index.d.mts.map +7 -1
  26. package/dist/components/pages/login/index.d.mts.map +13 -1
  27. package/dist/components/pages/ready/index.d.mts.map +8 -1
  28. package/dist/components/pages/welcome/index.d.mts.map +3 -1
  29. package/dist/components/routeChangeHandler/index.d.mts.map +3 -1
  30. package/dist/components/telemetry/index.d.mts.map +3 -1
  31. package/dist/components/telemetry/types.d.mts.map +16 -1
  32. package/dist/components/undoableQueue/index.d.mts.map +6 -1
  33. package/dist/contexts/accessControl/index.d.mts.map +7 -1
  34. package/dist/contexts/accessControl/types.d.mts.map +84 -1
  35. package/dist/contexts/auditLog/index.d.mts.map +5 -1
  36. package/dist/contexts/auditLog/types.d.mts.map +41 -1
  37. package/dist/contexts/auth/index.d.mts.map +18 -1
  38. package/dist/contexts/auth/types.d.mts.map +101 -1
  39. package/dist/contexts/data/index.d.mts.map +10 -1
  40. package/dist/contexts/data/types.d.mts.map +347 -1
  41. package/dist/contexts/i18n/index.d.mts.map +7 -1
  42. package/dist/contexts/i18n/types.d.mts.map +13 -1
  43. package/dist/contexts/live/index.d.mts.map +5 -1
  44. package/dist/contexts/live/types.d.mts.map +96 -1
  45. package/dist/contexts/notification/index.d.mts.map +7 -1
  46. package/dist/contexts/notification/types.d.mts.map +27 -1
  47. package/dist/contexts/refine/index.d.mts.map +6 -1
  48. package/dist/contexts/refine/types.d.mts.map +325 -1
  49. package/dist/contexts/resource/index.d.mts.map +7 -1
  50. package/dist/contexts/resource/types.d.mts.map +168 -1
  51. package/dist/contexts/router/index.d.mts.map +7 -1
  52. package/dist/contexts/router/legacy/index.d.mts.map +6 -1
  53. package/dist/contexts/router/legacy/types.d.mts.map +47 -1
  54. package/dist/contexts/router/picker/index.d.mts.map +15 -1
  55. package/dist/contexts/router/types.d.mts.map +67 -1
  56. package/dist/contexts/undoableQueue/index.d.mts.map +6 -1
  57. package/dist/contexts/undoableQueue/types.d.mts.map +21 -1
  58. package/dist/contexts/unsavedWarn/index.d.mts.map +5 -1
  59. package/dist/contexts/unsavedWarn/types.d.mts.map +5 -1
  60. package/dist/definitions/helpers/async-debounce/index.d.mts.map +18 -1
  61. package/dist/definitions/helpers/check-router-prop-misuse/index.d.mts.map +4 -1
  62. package/dist/definitions/helpers/defer-execution/index.d.mts.map +9 -1
  63. package/dist/definitions/helpers/downloadInBrowser/index.d.mts.map +2 -1
  64. package/dist/definitions/helpers/flatten-object-keys/index.d.mts.map +4 -1
  65. package/dist/definitions/helpers/generateDocumentTitle/index.d.mts.map +7 -1
  66. package/dist/definitions/helpers/handleMultiple/index.d.mts.map +6 -1
  67. package/dist/definitions/helpers/handlePaginationParams/index.d.mts.map +9 -1
  68. package/dist/definitions/helpers/handleRefineOptions/index.d.mts.map +26 -1
  69. package/dist/definitions/helpers/handleUseParams/index.d.mts.map +2 -1
  70. package/dist/definitions/helpers/hasPermission/index.d.mts.map +2 -1
  71. package/dist/definitions/helpers/humanizeString/index.d.mts.map +2 -1
  72. package/dist/definitions/helpers/importCSVMapper/index.d.mts.map +3 -1
  73. package/dist/definitions/helpers/index.d.mts.map +34 -1
  74. package/dist/definitions/helpers/keys/index.d.mts.map +64 -1
  75. package/dist/definitions/helpers/legacy-resource-transform/index.d.mts.map +9 -1
  76. package/dist/definitions/helpers/menu/create-resource-key.d.mts.map +3 -1
  77. package/dist/definitions/helpers/menu/create-tree.d.mts.map +13 -1
  78. package/dist/definitions/helpers/pick-resource/index.d.mts.map +8 -1
  79. package/dist/definitions/helpers/pickDataProvider/index.d.mts.map +6 -1
  80. package/dist/definitions/helpers/pickNotDeprecated/index.d.mts.map +2 -1
  81. package/dist/definitions/helpers/prepare-query-context/index.d.mts.map +3 -1
  82. package/dist/definitions/helpers/property-path-to-array/index.d.mts.map +2 -1
  83. package/dist/definitions/helpers/queryKeys/index.d.mts.map +7 -1
  84. package/dist/definitions/helpers/redirectPage/index.d.mts.map +11 -1
  85. package/dist/definitions/helpers/routeGenerator/index.d.mts.map +7 -1
  86. package/dist/definitions/helpers/router/check-by-segments.d.mts.map +9 -1
  87. package/dist/definitions/helpers/router/compose-route.d.mts.map +11 -1
  88. package/dist/definitions/helpers/router/get-action-routes-from-resource.d.mts.map +16 -1
  89. package/dist/definitions/helpers/router/get-default-action-path.d.mts.map +8 -1
  90. package/dist/definitions/helpers/router/get-parent-prefix-for-resource.d.mts.map +7 -1
  91. package/dist/definitions/helpers/router/get-parent-resource.d.mts.map +7 -1
  92. package/dist/definitions/helpers/router/index.d.mts.map +10 -1
  93. package/dist/definitions/helpers/router/is-parameter.d.mts.map +5 -1
  94. package/dist/definitions/helpers/router/is-segment-counts-same.d.mts.map +5 -1
  95. package/dist/definitions/helpers/router/match-resource-from-route.d.mts.map +15 -1
  96. package/dist/definitions/helpers/router/pick-matched-route.d.mts.map +8 -1
  97. package/dist/definitions/helpers/router/pick-route-params.d.mts.map +6 -1
  98. package/dist/definitions/helpers/router/prepare-route-params.d.mts.map +8 -1
  99. package/dist/definitions/helpers/router/remove-leading-trailing-slashes.d.mts.map +5 -1
  100. package/dist/definitions/helpers/router/split-to-segments.d.mts.map +5 -1
  101. package/dist/definitions/helpers/safe-translate/index.d.mts.map +3 -1
  102. package/dist/definitions/helpers/sanitize-resource/index.d.mts.map +8 -1
  103. package/dist/definitions/helpers/sequentialPromises/index.d.mts.map +5 -1
  104. package/dist/definitions/helpers/treeView/createTreeView/index.d.mts.map +6 -1
  105. package/dist/definitions/helpers/treeView/index.d.mts.map +2 -1
  106. package/dist/definitions/helpers/useActiveAuthProvider/index.d.cts +7 -7
  107. package/dist/definitions/helpers/useActiveAuthProvider/index.d.mts +7 -7
  108. package/dist/definitions/helpers/useActiveAuthProvider/index.d.mts.map +34 -1
  109. package/dist/definitions/helpers/useActiveAuthProvider/index.d.ts +7 -7
  110. package/dist/definitions/helpers/useInfinitePagination/index.d.mts.map +4 -1
  111. package/dist/definitions/helpers/useMediaQuery/index.d.mts.map +2 -1
  112. package/dist/definitions/helpers/useUserFriendlyName/index.d.mts.map +6 -1
  113. package/dist/definitions/helpers/userFriendlyResourceName/index.d.mts.map +7 -1
  114. package/dist/definitions/helpers/userFriendlySeconds/index.d.mts.map +2 -1
  115. package/dist/definitions/index.d.mts.map +4 -1
  116. package/dist/definitions/table/index.d.mts.map +34 -1
  117. package/dist/definitions/upload/file2Base64/index.d.mts.map +2 -1
  118. package/dist/definitions/upload/index.d.mts.map +2 -1
  119. package/dist/hooks/accessControl/index.d.mts.map +3 -1
  120. package/dist/hooks/accessControl/useCan/index.d.mts.map +18 -1
  121. package/dist/hooks/accessControl/useCanWithoutCache.d.mts.map +3 -1
  122. package/dist/hooks/auditLog/index.d.mts.map +3 -1
  123. package/dist/hooks/auditLog/useLog/index.d.mts.map +27 -1
  124. package/dist/hooks/auditLog/useLogList/index.d.mts.map +22 -1
  125. package/dist/hooks/auth/index.d.mts.map +11 -1
  126. package/dist/hooks/auth/useForgotPassword/index.d.mts.map +22 -1
  127. package/dist/hooks/auth/useGetIdentity/index.d.mts.map +21 -1
  128. package/dist/hooks/auth/useInvalidateAuthStore/index.d.mts.map +2 -1
  129. package/dist/hooks/auth/useIsAuthenticated/index.d.mts.map +25 -1
  130. package/dist/hooks/auth/useIsExistAuthentication/index.d.mts.map +6 -1
  131. package/dist/hooks/auth/useLogin/index.d.mts.map +22 -1
  132. package/dist/hooks/auth/useLogout/index.d.mts.map +26 -1
  133. package/dist/hooks/auth/useOnError/index.d.mts.map +22 -1
  134. package/dist/hooks/auth/usePermissions/index.d.mts.map +24 -1
  135. package/dist/hooks/auth/useRegister/index.d.mts.map +22 -1
  136. package/dist/hooks/auth/useUpdatePassword/index.d.mts.map +23 -1
  137. package/dist/hooks/breadcrumb/index.d.mts.map +18 -1
  138. package/dist/hooks/button/actionable-button/index.d.mts.map +8 -1
  139. package/dist/hooks/button/button-can-access/index.d.mts.map +22 -1
  140. package/dist/hooks/button/delete-button/index.d.mts.map +28 -1
  141. package/dist/hooks/button/index.d.mts.map +13 -1
  142. package/dist/hooks/button/navigation-button/index.d.mts.map +28 -1
  143. package/dist/hooks/button/refresh-button/index.d.mts.map +14 -1
  144. package/dist/hooks/data/index.d.cts +12 -12
  145. package/dist/hooks/data/index.d.cts.map +1 -1
  146. package/dist/hooks/data/index.d.mts +12 -12
  147. package/dist/hooks/data/index.d.mts.map +15 -1
  148. package/dist/hooks/data/index.d.ts +12 -12
  149. package/dist/hooks/data/index.d.ts.map +1 -1
  150. package/dist/hooks/data/useApiUrl.d.mts.map +2 -1
  151. package/dist/hooks/data/useCreate.d.mts.map +49 -1
  152. package/dist/hooks/data/useCreateMany.d.mts.map +31 -1
  153. package/dist/hooks/data/useCustom.d.mts.map +63 -1
  154. package/dist/hooks/data/useCustomMutation.d.mts.map +42 -1
  155. package/dist/hooks/data/useDataProvider.d.mts.map +7 -1
  156. package/dist/hooks/data/useDelete.d.mts.map +65 -1
  157. package/dist/hooks/data/useDeleteMany.d.mts.map +65 -1
  158. package/dist/hooks/data/useInfiniteList.d.mts.map +74 -1
  159. package/dist/hooks/data/useList.d.mts.map +73 -1
  160. package/dist/hooks/data/useMany.d.mts.map +48 -1
  161. package/dist/hooks/data/useOne.d.mts.map +50 -1
  162. package/dist/hooks/data/useUpdate.d.mts.map +83 -1
  163. package/dist/hooks/data/useUpdateMany.d.cts +1 -1
  164. package/dist/hooks/data/useUpdateMany.d.cts.map +1 -1
  165. package/dist/hooks/data/useUpdateMany.d.mts +1 -1
  166. package/dist/hooks/data/useUpdateMany.d.mts.map +84 -1
  167. package/dist/hooks/data/useUpdateMany.d.ts +1 -1
  168. package/dist/hooks/data/useUpdateMany.d.ts.map +1 -1
  169. package/dist/hooks/deepMemo/index.d.mts.map +7 -1
  170. package/dist/hooks/export/index.d.mts.map +99 -1
  171. package/dist/hooks/export/types.d.mts.map +21 -1
  172. package/dist/hooks/form/index.d.mts.map +18 -1
  173. package/dist/hooks/form/types.d.mts.map +146 -1
  174. package/dist/hooks/i18n/index.d.mts.map +5 -1
  175. package/dist/hooks/i18n/useGetLocale.d.mts.map +9 -1
  176. package/dist/hooks/i18n/useSetLocale.d.mts.map +8 -1
  177. package/dist/hooks/i18n/useTranslate.d.mts.map +11 -1
  178. package/dist/hooks/i18n/useTranslation.d.mts.map +18 -1
  179. package/dist/hooks/import/index.d.mts.map +101 -1
  180. package/dist/hooks/index.d.mts.map +31 -1
  181. package/dist/hooks/invalidate/index.d.mts.map +12 -1
  182. package/dist/hooks/legacy-router/index.d.mts.map +2 -1
  183. package/dist/hooks/legacy-router/useRouterContext.d.mts.map +10 -1
  184. package/dist/hooks/live/index.d.mts.map +5 -1
  185. package/dist/hooks/live/useLiveMode/index.d.mts.map +3 -1
  186. package/dist/hooks/live/usePublish/index.d.mts.map +3 -1
  187. package/dist/hooks/live/useResourceSubscription/index.d.mts.map +43 -1
  188. package/dist/hooks/live/useSubscription/index.d.mts.map +57 -1
  189. package/dist/hooks/memoized/index.d.mts.map +6 -1
  190. package/dist/hooks/menu/index.d.mts.map +2 -1
  191. package/dist/hooks/menu/useMenu.d.mts.map +28 -1
  192. package/dist/hooks/modal/index.d.mts.map +2 -1
  193. package/dist/hooks/modal/useModal/index.d.mts.map +13 -1
  194. package/dist/hooks/navigation/index.d.mts.map +28 -1
  195. package/dist/hooks/notification/index.d.mts.map +4 -1
  196. package/dist/hooks/notification/useCancelNotification/index.d.mts.map +8 -1
  197. package/dist/hooks/notification/useHandleNotification/index.d.mts.map +3 -1
  198. package/dist/hooks/notification/useNotification/index.d.mts.map +3 -1
  199. package/dist/hooks/redirection/index.d.mts.map +11 -1
  200. package/dist/hooks/refine/index.d.mts.map +6 -1
  201. package/dist/hooks/refine/useMutationMode.d.mts.map +16 -1
  202. package/dist/hooks/refine/useRefineContext.d.cts +1 -1
  203. package/dist/hooks/refine/useRefineContext.d.mts +1 -1
  204. package/dist/hooks/refine/useRefineContext.d.mts.map +20 -1
  205. package/dist/hooks/refine/useRefineContext.d.ts +1 -1
  206. package/dist/hooks/refine/useSyncWithLocation.d.mts.map +13 -1
  207. package/dist/hooks/refine/useTitle.d.mts.map +10 -1
  208. package/dist/hooks/refine/useWarnAboutChange/index.d.mts.map +16 -1
  209. package/dist/hooks/resource/index.d.mts.map +3 -1
  210. package/dist/hooks/resource/useResource/index.d.mts.map +63 -1
  211. package/dist/hooks/resource/useResourceWithRoute/index.d.mts.map +8 -1
  212. package/dist/hooks/router/index.d.mts.map +8 -1
  213. package/dist/hooks/router/use-back/index.d.mts.map +2 -1
  214. package/dist/hooks/router/use-get-to-path/index.d.mts.map +19 -1
  215. package/dist/hooks/router/use-go/index.d.mts.map +33 -1
  216. package/dist/hooks/router/use-link/index.d.mts.map +6 -1
  217. package/dist/hooks/router/use-parse/index.d.mts.map +5 -1
  218. package/dist/hooks/router/use-parsed/index.d.mts.map +2 -1
  219. package/dist/hooks/router/use-router-misuse-warning/index.d.mts.map +3 -1
  220. package/dist/hooks/router/use-to-path/index.d.mts.map +18 -1
  221. package/dist/hooks/show/index.d.mts.map +17 -1
  222. package/dist/hooks/show/types.d.mts.map +52 -1
  223. package/dist/hooks/show/useShow.d.mts.map +57 -1
  224. package/dist/hooks/use-refine-options/index.d.mts.map +2 -1
  225. package/dist/hooks/use-resource-params/index.d.mts.map +43 -1
  226. package/dist/hooks/use-resource-params/use-action/index.d.mts.map +12 -1
  227. package/dist/hooks/use-resource-params/use-id/index.d.mts.map +12 -1
  228. package/dist/hooks/useKeys/index.d.mts.map +5 -1
  229. package/dist/hooks/useLoadingOvertime/index.d.mts.map +49 -1
  230. package/dist/hooks/useMeta/index.d.mts.map +19 -1
  231. package/dist/hooks/useSelect/index.d.cts +6 -0
  232. package/dist/hooks/useSelect/index.d.cts.map +1 -1
  233. package/dist/hooks/useSelect/index.d.mts +6 -0
  234. package/dist/hooks/useSelect/index.d.mts.map +137 -1
  235. package/dist/hooks/useSelect/index.d.ts +6 -0
  236. package/dist/hooks/useSelect/index.d.ts.map +1 -1
  237. package/dist/hooks/useTable/index.d.mts.map +167 -1
  238. package/dist/hooks/useTelemetryData/index.d.mts.map +3 -1
  239. package/dist/index.cjs +18 -18
  240. package/dist/index.cjs.map +1 -1
  241. package/dist/index.d.cts +8 -7
  242. package/dist/index.d.cts.map +1 -1
  243. package/dist/index.d.mts +8 -7
  244. package/dist/index.d.mts.map +25 -1
  245. package/dist/index.d.ts +8 -7
  246. package/dist/index.d.ts.map +1 -1
  247. package/dist/index.mjs +18 -18
  248. package/dist/index.mjs.map +1 -1
  249. package/package.json +12 -13
  250. package/src/components/autoSaveIndicator/index.tsx +21 -7
  251. package/src/hooks/data/index.ts +28 -12
  252. package/src/hooks/data/useUpdateMany.ts +1 -1
  253. package/src/hooks/useSelect/index.ts +15 -1
  254. package/src/index.tsx +39 -0
@@ -1 +1,325 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/contexts/refine/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM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,aAAa,CAAC,aAAa,CAAC,CAAC;IAC3C;;;SAGK;IACL,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B"}
1
+ import React, { type ReactNode } from "react";
2
+ import type { QueryClient, QueryClientConfig } from "@tanstack/react-query";
3
+ import type { RedirectAction } from "../../hooks/form/types";
4
+ import type { UseLoadingOvertimeRefineContext } from "../../hooks/useLoadingOvertime";
5
+ import type { AccessControlProvider } from "../accessControl/types";
6
+ import type { AuditLogProvider } from "../auditLog/types";
7
+ import type { AuthProvider, LegacyAuthProvider } from "../auth/types";
8
+ import type { DataProvider, DataProviders, MutationMode } from "../data/types";
9
+ import type { I18nProvider } from "../i18n/types";
10
+ import type { LiveModeProps, LiveProvider } from "../live/types";
11
+ import type { NotificationProvider } from "../notification/types";
12
+ import type { ResourceProps } from "../resource/types";
13
+ import type { LegacyRouterProvider } from "../router/legacy/types";
14
+ import type { RouterProvider } from "../router/types";
15
+ export type TitleProps = {
16
+ collapsed: boolean;
17
+ };
18
+ export type LayoutProps = {
19
+ Sider?: React.FC<{
20
+ Title?: React.FC<TitleProps>;
21
+ render?: (props: {
22
+ items: JSX.Element[];
23
+ logout: React.ReactNode;
24
+ dashboard: React.ReactNode;
25
+ collapsed: boolean;
26
+ }) => React.ReactNode;
27
+ meta?: Record<string, unknown>;
28
+ }>;
29
+ Header?: React.FC;
30
+ Title?: React.FC<TitleProps>;
31
+ Footer?: React.FC;
32
+ OffLayoutArea?: React.FC;
33
+ dashboard?: boolean;
34
+ children?: ReactNode;
35
+ };
36
+ export type DashboardPageProps<TCrudData = any> = {
37
+ initialData?: TCrudData;
38
+ } & Record<any, any>;
39
+ export type TextTransformers = {
40
+ /**
41
+ * Convert a camelized/dasherized/underscored string into a humanized one
42
+ * @example
43
+ * humanize("some_name") => "Some name"
44
+ */
45
+ humanize?: (text: string) => string;
46
+ /**
47
+ * Pluralize a word
48
+ * @example
49
+ * plural('regex') => "regexes"
50
+ */
51
+ plural?: (word: string) => string;
52
+ /**
53
+ * Singularize a word
54
+ * @example
55
+ * singular('singles') => "single"
56
+ */
57
+ singular?: (word: string) => string;
58
+ };
59
+ export interface IRefineOptions {
60
+ breadcrumb?: ReactNode;
61
+ mutationMode?: MutationMode;
62
+ syncWithLocation?: boolean;
63
+ warnWhenUnsavedChanges?: boolean;
64
+ undoableTimeout?: number;
65
+ liveMode?: LiveModeProps["liveMode"];
66
+ disableTelemetry?: boolean;
67
+ redirect?: {
68
+ afterCreate?: RedirectAction;
69
+ afterClone?: RedirectAction;
70
+ afterEdit?: RedirectAction;
71
+ };
72
+ reactQuery?: {
73
+ clientConfig?: QueryClientConfig | InstanceType<typeof QueryClient>;
74
+ /**
75
+ * @deprecated `@tanstack/react-query`'s devtools are removed from the core. Please use the `@tanstack/react-query-devtools` package manually in your project. This option will be removed in the next major version and has no effect on the `@tanstack/react-query-devtools` package usage.
76
+ */
77
+ devtoolConfig?: any | false;
78
+ };
79
+ overtime?: UseLoadingOvertimeRefineContext;
80
+ textTransformers?: TextTransformers;
81
+ /**
82
+ * Disables server-side validation globally for the useForm hook
83
+ * @default false
84
+ * @see {@link https://refine.dev/docs/advanced-tutorials/forms/server-side-form-validation/}
85
+ */
86
+ disableServerSideValidation?: boolean;
87
+ /**
88
+ * The project id of your refine project. Will be set automatically. Don't modify.
89
+ */
90
+ projectId?: string;
91
+ useNewQueryKeys?: boolean;
92
+ /**
93
+ * Icon and name for the app title. These values are used as default values in the <ThemedLayoutV2 /> and <AuthPage /> components.
94
+ * By default, `icon` is the Refine logo and `text` is "Refine Project".
95
+ */
96
+ title?: {
97
+ icon?: React.ReactNode;
98
+ text?: React.ReactNode;
99
+ };
100
+ }
101
+ export interface IRefineContextOptions {
102
+ breadcrumb?: ReactNode;
103
+ mutationMode: MutationMode;
104
+ syncWithLocation: boolean;
105
+ warnWhenUnsavedChanges: boolean;
106
+ undoableTimeout: number;
107
+ liveMode: LiveModeProps["liveMode"];
108
+ redirect: {
109
+ afterCreate: RedirectAction;
110
+ afterClone: RedirectAction;
111
+ afterEdit: RedirectAction;
112
+ };
113
+ overtime: UseLoadingOvertimeRefineContext;
114
+ textTransformers: Required<TextTransformers>;
115
+ disableServerSideValidation: boolean;
116
+ projectId?: string;
117
+ useNewQueryKeys?: boolean;
118
+ title: {
119
+ icon?: React.ReactNode;
120
+ text?: React.ReactNode;
121
+ };
122
+ }
123
+ export interface IRefineContext {
124
+ __initialized?: boolean;
125
+ hasDashboard: boolean;
126
+ mutationMode: MutationMode;
127
+ /**
128
+ * @deprecated Please use `UnsavedChangesNotifier` components from router packages instead.
129
+ */
130
+ warnWhenUnsavedChanges: boolean;
131
+ syncWithLocation: boolean;
132
+ undoableTimeout: number;
133
+ catchAll?: React.ReactNode;
134
+ DashboardPage?: RefineProps["DashboardPage"];
135
+ LoginPage?: React.FC | false;
136
+ Title?: React.FC<TitleProps>;
137
+ Layout: React.FC<LayoutProps>;
138
+ Sider?: React.FC;
139
+ Header?: React.FC;
140
+ Footer?: React.FC;
141
+ OffLayoutArea?: React.FC;
142
+ liveMode: LiveModeProps["liveMode"];
143
+ onLiveEvent?: LiveModeProps["onLiveEvent"];
144
+ options: IRefineContextOptions;
145
+ }
146
+ export interface IRefineContextProvider {
147
+ __initialized?: boolean;
148
+ hasDashboard: boolean;
149
+ mutationMode: MutationMode;
150
+ warnWhenUnsavedChanges: boolean;
151
+ syncWithLocation: boolean;
152
+ undoableTimeout: number;
153
+ /**
154
+ * @deprecated Please use the `catchAll` element in your routes instead.
155
+ */
156
+ catchAll?: React.ReactNode;
157
+ /**
158
+ * @deprecated Please use the `DashboardPage` component in your routes instead.
159
+ */
160
+ DashboardPage?: RefineProps["DashboardPage"];
161
+ /**
162
+ * @deprecated Please use the `LoginPage` component in your routes instead.
163
+ */
164
+ LoginPage?: React.FC | false;
165
+ /**
166
+ * @deprecated Please pass the `Title` component to your `Layout` component.
167
+ */
168
+ Title?: React.FC<TitleProps>;
169
+ /**
170
+ * @deprecated Please use the `Layout` component as a children instead of a prop.
171
+ */
172
+ Layout?: React.FC<LayoutProps>;
173
+ /**
174
+ * @deprecated Please pass the `Sider` component to your `Layout` component.
175
+ */
176
+ Sider?: React.FC;
177
+ /**
178
+ * @deprecated Please pass the `Header` component to your `Layout` component.
179
+ */
180
+ Header?: React.FC;
181
+ /**
182
+ * @deprecated Please pass the `Footer` component to your `Layout` component.
183
+ */
184
+ Footer?: React.FC;
185
+ /**
186
+ * @deprecated Please use your `OffLayoutArea` component as a children instead of a prop.
187
+ */
188
+ OffLayoutArea?: React.FC;
189
+ liveMode: LiveModeProps["liveMode"];
190
+ onLiveEvent?: LiveModeProps["onLiveEvent"];
191
+ options: IRefineContextOptions;
192
+ children?: ReactNode;
193
+ }
194
+ export interface RefineProps {
195
+ children?: React.ReactNode;
196
+ /**
197
+ * `resources` is the predefined interaction points for a refine app. A resource represents an entity in an endpoint in the API.
198
+ * While this is not a required property, it is used in resource detection and creation of routes for the app.
199
+ * @type [`ResourceProps[]`](https://refine.dev/docs/api-reference/core/components/refine-config/#resources)
200
+ */
201
+ resources?: ResourceProps[];
202
+ /**
203
+ * **refine** needs some router functions to create resource pages, handle navigation, etc. This provider allows you to use the router library you want
204
+ * @type [`IRouterProvider`](https://refine.dev/docs/api-reference/core/providers/router-provider/)
205
+ * @deprecated This property is deprecated and was the legacy way of routing. Please use `routerProvider` with new router bindings instead.
206
+ */
207
+ legacyRouterProvider?: LegacyRouterProvider;
208
+ /**
209
+ * Router bindings for **refine**. A simple interface for **refine** to interact with your router in a flexible way.
210
+ * @type [`RouterProvider`](https://refine.dev/docs/routing/router-provider/)
211
+ */
212
+ routerProvider?: RouterProvider;
213
+ /**
214
+ * A `dataProvider` is the place where a refine app communicates with an API. Data providers also act as adapters for refine, making it possible for it to consume different API's and data services.
215
+ * @type [`DataProvider` | `DataProviders`](https://refine.dev/docs/api-reference/core/providers/data-provider/)
216
+ */
217
+ dataProvider?: DataProvider | DataProviders;
218
+ /**
219
+ * `authProvider` handles authentication logic like login, logout flow and checking user credentials. It is an object with methods that refine uses when necessary.
220
+ * @type [`AuthProvider`](https://refine.dev/docs/api-reference/core/providers/auth-provider/)
221
+ */
222
+ authProvider?: AuthProvider;
223
+ /**
224
+ * `legacyAuthProvider` handles authentication logic like login, logout flow and checking user credentials. It is an object with methods that refine uses when necessary.
225
+ * @type [`AuthProvider`](https://refine.dev/docs/api-reference/core/providers/auth-provider/)
226
+ * @deprecated `legacyAuthProvider` is deprecated with refine@4, use `authProvider` instead.
227
+ */
228
+ legacyAuthProvider?: LegacyAuthProvider;
229
+ /**
230
+ * **refine** lets you add Realtime support to your app via `liveProvider`. It can be used to update and show data in Realtime throughout your app.
231
+ * @type [`LiveProvider`](https://refine.dev/docs/api-reference/core/providers/live-provider/)
232
+ */
233
+ liveProvider?: LiveProvider;
234
+ /**
235
+ * `notificationProvider` handles notification logics. It is an object with methods that refine uses when necessary.
236
+ * @type [`NotificationProvider` | `(() => NotificationProvider)`](https://refine.dev/docs/api-reference/core/providers/notification-provider/)
237
+ */
238
+ notificationProvider?: NotificationProvider | (() => NotificationProvider);
239
+ /**
240
+ * `accessControlProvider` is the entry point for implementing access control for refine apps.
241
+ * @type [`AccessControlProvider`](https://refine.dev/docs/api-reference/core/providers/accessControl-provider/)
242
+ */
243
+ accessControlProvider?: AccessControlProvider;
244
+ /**
245
+ * **refine** allows you to track changes in your data and keep track of who made the changes.
246
+ * @type [`AuditLogProvider`](https://refine.dev/docs/api-reference/core/providers/audit-log-provider#overview)
247
+ */
248
+ auditLogProvider?: AuditLogProvider;
249
+ /**
250
+ * `i18nProvider` property lets you add i18n support to your app. Making you able to use any i18n framework.
251
+ * @type [`i18nProvider`](https://refine.dev/docs/api-reference/core/providers/i18n-provider/)
252
+ */
253
+ i18nProvider?: I18nProvider;
254
+ /**
255
+ * A custom error component.
256
+ * @type [`ReactNode`](https://refine.dev/docs/api-reference/core/components/refine-config/#catchall)
257
+ * @deprecated Please use the `catchAll` element in your routes instead.
258
+ */
259
+ catchAll?: React.ReactNode;
260
+ /**
261
+ * Custom login component can be passed to the `LoginPage` property.
262
+ * @type [`React.FC`](https://refine.dev/docs/api-reference/core/components/refine-config/#loginpage)
263
+ * @deprecated Please use the `LoginPage` component in your routes instead.
264
+ */
265
+ LoginPage?: React.FC;
266
+ /**
267
+ * A custom dashboard page can be passed to the `DashboardPage` prop which is accessible on root route.
268
+ * @type [`React.FC<DashboardPageProps>`](https://refine.dev/docs/api-reference/core/components/refine-config/#dashboardpage)
269
+ * @deprecated Please use the `DashboardPage` component in your routes instead.
270
+ */
271
+ DashboardPage?: React.FC<DashboardPageProps>;
272
+ /**
273
+ * Custom ready page component can be set by passing to `ReadyPage` property.
274
+ * @type [`React.FC`](https://refine.dev/docs/api-reference/core/components/refine-config/#readypage)
275
+ * @deprecated This component is only used with the legacy router and will be removed in the future.
276
+ */
277
+ ReadyPage?: React.FC;
278
+ /**
279
+ * Default layout can be customized by passing the `Layout` property.
280
+ * @type [`React.FC<LayoutProps>`](https://refine.dev/docs/api-reference/core/components/refine-config/#layout)
281
+ * @deprecated Please use the `Layout` component as a children instead of a prop.
282
+ */
283
+ Layout?: React.FC<LayoutProps>;
284
+ /**
285
+ * The default sidebar can be customized by using refine hooks and passing custom components to `Sider` property.
286
+ * @type [`React.FC`](https://refine.dev/docs/api-reference/core/components/refine-config/#sider)
287
+ * @deprecated Please pass the `Sider` component to your `Layout` component.
288
+ */
289
+ Sider?: React.FC;
290
+ /**
291
+ * The default app header can be customized by passing the `Header` property.
292
+ * @type [`React.FC`](https://refine.dev/docs/api-reference/core/components/refine-config/#header)
293
+ * @deprecated Please pass the `Header` component to your `Layout` component.
294
+ */
295
+ Header?: React.FC;
296
+ /**
297
+ *The default app footer can be customized by passing the `Footer` property.
298
+ * @type [`React.FC`](https://refine.dev/docs/api-reference/core/components/refine-config/#footer)
299
+ * @deprecated Please pass the `Footer` component to your `Layout` component.
300
+ */
301
+ Footer?: React.FC;
302
+ /**
303
+ * The component wanted to be placed out of app layout structure can be set by passing to `OffLayoutArea` prop.
304
+ * @type [`React.FC`](https://refine.dev/docs/api-reference/core/components/refine-config/#offlayoutarea)
305
+ * @deprecated Please use your `OffLayoutArea` component as a children instead of a prop.
306
+ */
307
+ OffLayoutArea?: React.FC;
308
+ /**
309
+ * TThe app title can be set by passing the `Title` property.
310
+ * @type [`React.FC<TitleProps>`](https://refine.dev/docs/api-reference/core/components/refine-config/#title)
311
+ * @deprecated Please pass the `Title` component to your `Layout` component.
312
+ */
313
+ Title?: React.FC<TitleProps>;
314
+ /**
315
+ * Callback to handle all live events.
316
+ * @type [`(event: LiveEvent) => void`](https://refine.dev/docs/api-reference/core/providers/live-provider/#onliveevent)
317
+ */
318
+ onLiveEvent?: LiveModeProps["onLiveEvent"];
319
+ /**
320
+ * `options` is used to configure the app.
321
+ * @type [`IRefineOptions`](https://refine.dev/docs/api-reference/core/components/refine-config/#options)
322
+ * */
323
+ options?: IRefineOptions;
324
+ }
325
+ //# sourceMappingURL=types.d.ts.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/resource/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,gBAAgB,EAAiB,aAAa,EAAE,MAAM,SAAS,CAAC;AAE9E,eAAO,MAAM,eAAe,iCAE1B,CAAC;AAEH,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAC5C,KAAK,CAAC,iBAAiB,CAAC;IAAE,SAAS,EAAE,aAAa,EAAE,CAAA;CAAE,CAAC,CAWxD,CAAC"}
1
+ import React from "react";
2
+ import type { IResourceContext, ResourceProps } from "./types";
3
+ export declare const ResourceContext: React.Context<IResourceContext>;
4
+ export declare const ResourceContextProvider: React.FC<React.PropsWithChildren<{
5
+ resources: ResourceProps[];
6
+ }>>;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1,168 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/contexts/resource/types.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AAY,GAAG,iBAAiB,CAAC;IAC3C,cAAc,CAAC,EAAE,cAAc,CAAC,eAAe,CAAC,CAAC;CAClD;AAED,MAAM,WAAW,aACf,SAAQ,mBAAmB,EACzB,mBAAmB,EACnB,aAAa;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED,MAAM,MAAM,gBAAgB,GAAG,aAAa,EAAE,CAAC;AAI/C,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,aAAa,EAAE,CAAC;CAC5B;AAGD,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG;IACtC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,SAAS,EAAE,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
1
+ import type { ComponentType, ReactNode } from "react";
2
+ import type { UseQueryResult } from "@tanstack/react-query";
3
+ import type { ILogData } from "../auditLog/types";
4
+ /**
5
+ * Resource route components
6
+ */
7
+ export type ResourceRouteComponent = ComponentType<IResourceComponentsProps<any, any>>;
8
+ export type ResourceRoutePath = string;
9
+ export type ResourceRouteDefinition = {
10
+ path: ResourceRoutePath;
11
+ component: ResourceRouteComponent;
12
+ };
13
+ export type ResourceRouteComposition = ResourceRouteDefinition | ResourceRoutePath | ResourceRouteComponent;
14
+ export interface IResourceComponents {
15
+ list?: ResourceRouteComposition;
16
+ create?: ResourceRouteComposition;
17
+ clone?: ResourceRouteComposition;
18
+ edit?: ResourceRouteComposition;
19
+ show?: ResourceRouteComposition;
20
+ }
21
+ export type AnyString = string & {
22
+ __ignore?: never;
23
+ };
24
+ export type ResourceAuditLogPermissions = "create" | "update" | "delete" | AnyString;
25
+ /** Resource `meta` */
26
+ export interface KnownResourceMeta {
27
+ /**
28
+ * This is used when setting the document title, in breadcrumbs and `<Sider />` components.
29
+ * Therefore it will only work if the related components have implemented the `label` property.
30
+ */
31
+ label?: string;
32
+ /**
33
+ * Whether to hide the resource from the sidebar or not.
34
+ * This property is checked by the `<Sider />` components.
35
+ * Therefore it will only work if the `<Sider />` component has implemented the `hide` property.
36
+ */
37
+ hide?: boolean;
38
+ /**
39
+ * Dedicated data provider name for the resource.
40
+ * If not set, the default data provider will be used.
41
+ * You can use this property to pick a data provider for a resource when you have multiple data providers.
42
+ */
43
+ dataProviderName?: string;
44
+ /**
45
+ * To nest a resource under another resource, set the parent property to the name of the parent resource.
46
+ * This will work even if the parent resource is not explicitly defined.
47
+ */
48
+ parent?: string;
49
+ /**
50
+ * To determine if the resource has ability to delete or not.
51
+ */
52
+ canDelete?: boolean;
53
+ /**
54
+ * To permit the audit log for actions on the resource.
55
+ * @default All actions are permitted to be logged.
56
+ */
57
+ audit?: ResourceAuditLogPermissions[];
58
+ /**
59
+ * To pass `icon` to the resource.
60
+ */
61
+ icon?: ReactNode;
62
+ }
63
+ export interface DeprecatedOptions {
64
+ /**
65
+ * @deprecated Please use `audit` property instead.
66
+ */
67
+ auditLog?: {
68
+ permissions?: ResourceAuditLogPermissions[];
69
+ };
70
+ /**
71
+ * @deprecated Define the route in the resource components instead
72
+ */
73
+ route?: string;
74
+ }
75
+ export interface ResourceMeta extends KnownResourceMeta {
76
+ [key: string]: any;
77
+ }
78
+ export interface ResourceProps extends IResourceComponents {
79
+ name: string;
80
+ /**
81
+ * This property can be used to identify a resource. In some cases, `name` of the resource might be repeated in different resources.
82
+ * To avoid conflicts, you pass the `identifier` property to be used as the key of the resource.
83
+ * @default `name` of the resource
84
+ */
85
+ identifier?: string;
86
+ /**
87
+ * @deprecated This property is not used anymore.
88
+ */
89
+ key?: string;
90
+ /**
91
+ * @deprecated Please use the `meta` property instead.
92
+ */
93
+ options?: ResourceMeta & DeprecatedOptions;
94
+ /**
95
+ * To configure the resource, you can set `meta` properties. You can use `meta` to store any data related to the resource.
96
+ * There are some known `meta` properties that are used by the core and extension packages.
97
+ */
98
+ meta?: ResourceMeta & DeprecatedOptions;
99
+ /**
100
+ * @deprecated Please use the `meta.canDelete` property instead.
101
+ */
102
+ canDelete?: boolean;
103
+ /**
104
+ * @deprecated Please use the `meta.icon` property instead
105
+ */
106
+ icon?: ReactNode;
107
+ /**
108
+ * @deprecated Please use the `meta.parent` property instead
109
+ */
110
+ parentName?: string;
111
+ }
112
+ export interface RouteableProperties {
113
+ /**
114
+ * @deprecated Please use action props instead.
115
+ */
116
+ canCreate?: boolean;
117
+ /**
118
+ * @deprecated Please use action props instead.
119
+ */
120
+ canEdit?: boolean;
121
+ /**
122
+ * @deprecated Please use action props instead.
123
+ */
124
+ canShow?: boolean;
125
+ /**
126
+ * @deprecated Please use the `meta.canDelete` property instead.
127
+ */
128
+ canDelete?: boolean;
129
+ }
130
+ export interface IResourceComponentsProps<TCrudData = any, TLogQueryResult = ILogData> extends RouteableProperties {
131
+ name?: string;
132
+ initialData?: TCrudData;
133
+ options?: ResourceMeta & DeprecatedOptions;
134
+ logQueryResult?: UseQueryResult<TLogQueryResult>;
135
+ }
136
+ export interface IResourceItem extends IResourceComponents, RouteableProperties, ResourceProps {
137
+ /**
138
+ * @deprecated Please use the `meta.label` property instead.
139
+ */
140
+ label?: string;
141
+ /**
142
+ * @deprecated Please use action components and `getDefaultActionPath` helper instead.
143
+ */
144
+ route?: string;
145
+ }
146
+ export interface IResourceContext {
147
+ resources: IResourceItem[];
148
+ }
149
+ export type ResourceBindings = ResourceProps[];
150
+ export interface RouteableProperties {
151
+ canCreate?: boolean;
152
+ canEdit?: boolean;
153
+ canShow?: boolean;
154
+ canDelete?: boolean;
155
+ canList?: boolean;
156
+ }
157
+ export interface IResourceContext {
158
+ resources: IResourceItem[];
159
+ }
160
+ export type ITreeMenu = IResourceItem & {
161
+ key?: string;
162
+ children: ITreeMenu[];
163
+ };
164
+ export type IMenuItem = IResourceItem & {
165
+ key: string;
166
+ route: string;
167
+ };
168
+ //# sourceMappingURL=types.d.ts.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/router/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAI9C,eAAO,MAAM,aAAa,+BAEzB,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAC1C,iBAAiB,CAAC;IAAE,MAAM,CAAC,EAAE,cAAc,CAAA;CAAE,CAAC,CAO/C,CAAC"}
1
+ import React, { type PropsWithChildren } from "react";
2
+ import type { RouterProvider } from "./types";
3
+ export declare const RouterContext: React.Context<RouterProvider>;
4
+ export declare const RouterContextProvider: React.FC<PropsWithChildren<{
5
+ router?: RouterProvider;
6
+ }>>;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1,6 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/contexts/router/legacy/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD,eAAO,MAAM,eAAe,EAAE,oBAM7B,CAAC;AAEF,eAAO,MAAM,mBAAmB,qCAC4B,CAAC;AAE7D,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAChD,iBAAiB,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAwBjD,CAAC"}
1
+ import React, { type PropsWithChildren } from "react";
2
+ import type { ILegacyRouterContext } from "./types";
3
+ export declare const defaultProvider: ILegacyRouterContext;
4
+ export declare const LegacyRouterContext: React.Context<ILegacyRouterContext>;
5
+ export declare const LegacyRouterContextProvider: React.FC<PropsWithChildren<Partial<ILegacyRouterContext>>>;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1,47 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/contexts/router/legacy/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM;QAChB,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,CAAC;QAC5B,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,CAAC;QAC/B,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,CAAC;KAC/B,CAAC;IACF,WAAW,EAAE,MAAM;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,SAAS,EAAE,CAAC,MAAM,SAAS;SAAG,CAAC,IAAI,MAAM,MAAM,CAAC,CAAC,EAAE,MAAM;KAAE,GAAG,EAAE,OAAO,MAAM,CAAC;IAC9E,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;IAC9B,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACpB,eAAe,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAChC,MAAM,CAAC,EAAE,GAAG,CAAC;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,GAAG,CAAC;IACtB,WAAW,EAAE,MAAM,GAAG,CAAC;IACvB,SAAS,EAAE,CAAC,MAAM,SAAS;SAAG,CAAC,IAAI,MAAM,MAAM,CAAC,CAAC,EAAE,MAAM;KAAE,GAAG,EAAE,OAAO,MAAM,CAAC;IAC9E,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;IAC9B,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACpB,MAAM,CAAC,EAAE,GAAG,CAAC;CACd;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;AAE9D,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC,CAAC;AAEzE,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,cAAc,GAAG,SAAS,CAAC;CACpC,CAAC"}
1
+ import React from "react";
2
+ import type { Action } from "../types";
3
+ export interface LegacyRouterProvider {
4
+ useHistory: () => {
5
+ push: (...args: any) => any;
6
+ replace: (...args: any) => any;
7
+ goBack: (...args: any) => any;
8
+ };
9
+ useLocation: () => {
10
+ search: string;
11
+ pathname: string;
12
+ };
13
+ useParams: <Params extends {
14
+ [K in keyof Params]?: string;
15
+ } = {}>() => Params;
16
+ Prompt: React.FC<PromptProps>;
17
+ Link: React.FC<any>;
18
+ RouterComponent?: React.FC<any>;
19
+ routes?: any;
20
+ }
21
+ export interface ILegacyRouterContext {
22
+ useHistory: () => any;
23
+ useLocation: () => any;
24
+ useParams: <Params extends {
25
+ [K in keyof Params]?: string;
26
+ } = {}>() => Params;
27
+ Prompt: React.FC<PromptProps>;
28
+ Link: React.FC<any>;
29
+ routes?: any;
30
+ }
31
+ export type PromptProps = {
32
+ message: string;
33
+ when?: boolean;
34
+ setWarnWhen?: (warnWhen: boolean) => void;
35
+ };
36
+ export type RouteAction = Exclude<Action, "list"> | undefined;
37
+ export type ActionWithPage = Extract<Action, "show" | "create" | "edit">;
38
+ export type ResourceRouterParams = {
39
+ resource: string;
40
+ id?: string;
41
+ action: RouteAction;
42
+ };
43
+ export type ResourceErrorRouterParams = {
44
+ resource: string;
45
+ action: ActionWithPage | undefined;
46
+ };
47
+ //# sourceMappingURL=types.d.ts.map
@@ -1 +1,15 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/contexts/router/picker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;GAIG;AAEH,eAAO,MAAM,mBAAmB,iCAA+C,CAAC;AAEhF,eAAO,MAAM,oBAAoB,kCAA+B,CAAC;AAEjE;;;;GAIG;AACH,eAAO,MAAM,aAAa,wBAGzB,CAAC"}
1
+ import React from "react";
2
+ /**
3
+ * This context is used to determine which router to use.
4
+ *
5
+ * This is a temporary solution until we remove the legacy router.
6
+ */
7
+ export declare const RouterPickerContext: React.Context<"legacy" | "new">;
8
+ export declare const RouterPickerProvider: React.Provider<"legacy" | "new">;
9
+ /**
10
+ * This is a temporary hook to determine which router to use.
11
+ * It will be removed once the legacy router is removed.
12
+ * @internal This is an internal hook.
13
+ */
14
+ export declare const useRouterType: () => "legacy" | "new";
15
+ //# sourceMappingURL=index.d.ts.map