@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.
Files changed (711) hide show
  1. package/CHANGELOG.md +2577 -0
  2. package/README.md +257 -0
  3. package/dist/components/authenticated/index.d.ts +41 -0
  4. package/dist/components/authenticated/index.d.ts.map +1 -0
  5. package/dist/components/canAccess/index.d.ts +11 -0
  6. package/dist/components/canAccess/index.d.ts.map +1 -0
  7. package/dist/components/containers/index.d.ts +2 -0
  8. package/dist/components/containers/index.d.ts.map +1 -0
  9. package/dist/components/containers/refine/index.d.ts +144 -0
  10. package/dist/components/containers/refine/index.d.ts.map +1 -0
  11. package/dist/components/gh-banner/index.d.ts +3 -0
  12. package/dist/components/gh-banner/index.d.ts.map +1 -0
  13. package/dist/components/gh-banner/styles.d.ts +2 -0
  14. package/dist/components/gh-banner/styles.d.ts.map +1 -0
  15. package/dist/components/index.d.ts +9 -0
  16. package/dist/components/index.d.ts.map +1 -0
  17. package/dist/components/layoutWrapper/defaultLayout/index.d.ts +4 -0
  18. package/dist/components/layoutWrapper/defaultLayout/index.d.ts.map +1 -0
  19. package/dist/components/layoutWrapper/index.d.ts +46 -0
  20. package/dist/components/layoutWrapper/index.d.ts.map +1 -0
  21. package/dist/components/pages/auth/components/forgotPassword/index.d.ts +7 -0
  22. package/dist/components/pages/auth/components/forgotPassword/index.d.ts.map +1 -0
  23. package/dist/components/pages/auth/components/index.d.ts +5 -0
  24. package/dist/components/pages/auth/components/index.d.ts.map +1 -0
  25. package/dist/components/pages/auth/components/login/index.d.ts +7 -0
  26. package/dist/components/pages/auth/components/login/index.d.ts.map +1 -0
  27. package/dist/components/pages/auth/components/register/index.d.ts +7 -0
  28. package/dist/components/pages/auth/components/register/index.d.ts.map +1 -0
  29. package/dist/components/pages/auth/components/updatePassword/index.d.ts +7 -0
  30. package/dist/components/pages/auth/components/updatePassword/index.d.ts.map +1 -0
  31. package/dist/components/pages/auth/index.d.ts +12 -0
  32. package/dist/components/pages/auth/index.d.ts.map +1 -0
  33. package/dist/components/pages/error/index.d.ts +9 -0
  34. package/dist/components/pages/error/index.d.ts.map +1 -0
  35. package/dist/components/pages/index.d.ts +7 -0
  36. package/dist/components/pages/index.d.ts.map +1 -0
  37. package/dist/components/pages/login/index.d.ts +13 -0
  38. package/dist/components/pages/login/index.d.ts.map +1 -0
  39. package/dist/components/pages/ready/index.d.ts +9 -0
  40. package/dist/components/pages/ready/index.d.ts.map +1 -0
  41. package/dist/components/pages/welcome/index.d.ts +6 -0
  42. package/dist/components/pages/welcome/index.d.ts.map +1 -0
  43. package/dist/components/routeChangeHandler/index.d.ts +3 -0
  44. package/dist/components/routeChangeHandler/index.d.ts.map +1 -0
  45. package/dist/components/telemetry/index.d.ts +3 -0
  46. package/dist/components/telemetry/index.d.ts.map +1 -0
  47. package/dist/components/undoableQueue/index.d.ts +6 -0
  48. package/dist/components/undoableQueue/index.d.ts.map +1 -0
  49. package/dist/contexts/accessControl/IAccessControlContext.d.ts +31 -0
  50. package/dist/contexts/accessControl/IAccessControlContext.d.ts.map +1 -0
  51. package/dist/contexts/accessControl/index.d.ts +9 -0
  52. package/dist/contexts/accessControl/index.d.ts.map +1 -0
  53. package/dist/contexts/auditLog/IAuditLogContext.d.ts +29 -0
  54. package/dist/contexts/auditLog/IAuditLogContext.d.ts.map +1 -0
  55. package/dist/contexts/auditLog/index.d.ts +7 -0
  56. package/dist/contexts/auditLog/index.d.ts.map +1 -0
  57. package/dist/contexts/auth/IAuthContext.d.ts +26 -0
  58. package/dist/contexts/auth/IAuthContext.d.ts.map +1 -0
  59. package/dist/contexts/auth/index.d.ts +20 -0
  60. package/dist/contexts/auth/index.d.ts.map +1 -0
  61. package/dist/contexts/data/IDataContext.d.ts +193 -0
  62. package/dist/contexts/data/IDataContext.d.ts.map +1 -0
  63. package/dist/contexts/data/index.d.ts +52 -0
  64. package/dist/contexts/data/index.d.ts.map +1 -0
  65. package/dist/contexts/legacy-router/IRouterContext.d.ts +35 -0
  66. package/dist/contexts/legacy-router/IRouterContext.d.ts.map +1 -0
  67. package/dist/contexts/legacy-router/index.d.ts +9 -0
  68. package/dist/contexts/legacy-router/index.d.ts.map +1 -0
  69. package/dist/contexts/live/ILiveContext.d.ts +39 -0
  70. package/dist/contexts/live/ILiveContext.d.ts.map +1 -0
  71. package/dist/contexts/live/index.d.ts +5 -0
  72. package/dist/contexts/live/index.d.ts.map +1 -0
  73. package/dist/contexts/notification/INotificationContext.d.ts +14 -0
  74. package/dist/contexts/notification/INotificationContext.d.ts.map +1 -0
  75. package/dist/contexts/notification/index.d.ts +9 -0
  76. package/dist/contexts/notification/index.d.ts.map +1 -0
  77. package/dist/contexts/refine/IRefineContext.d.ts +106 -0
  78. package/dist/contexts/refine/IRefineContext.d.ts.map +1 -0
  79. package/dist/contexts/refine/index.d.ts +6 -0
  80. package/dist/contexts/refine/index.d.ts.map +1 -0
  81. package/dist/contexts/resource/IResourceContext.d.ts +49 -0
  82. package/dist/contexts/resource/IResourceContext.d.ts.map +1 -0
  83. package/dist/contexts/resource/index.d.ts +9 -0
  84. package/dist/contexts/resource/index.d.ts.map +1 -0
  85. package/dist/contexts/router/index.d.ts +7 -0
  86. package/dist/contexts/router/index.d.ts.map +1 -0
  87. package/dist/contexts/router-picker/index.d.ts +15 -0
  88. package/dist/contexts/router-picker/index.d.ts.map +1 -0
  89. package/dist/contexts/translation/ITranslationContext.d.ts +11 -0
  90. package/dist/contexts/translation/ITranslationContext.d.ts.map +1 -0
  91. package/dist/contexts/translation/index.d.ts +9 -0
  92. package/dist/contexts/translation/index.d.ts.map +1 -0
  93. package/dist/contexts/undoableQueue/IUndoableQueueContext.d.ts +7 -0
  94. package/dist/contexts/undoableQueue/IUndoableQueueContext.d.ts.map +1 -0
  95. package/dist/contexts/undoableQueue/actionTypes.d.ts +6 -0
  96. package/dist/contexts/undoableQueue/actionTypes.d.ts.map +1 -0
  97. package/dist/contexts/undoableQueue/index.d.ts +3 -0
  98. package/dist/contexts/undoableQueue/index.d.ts.map +1 -0
  99. package/dist/contexts/undoableQueue/undoableQueueContext.d.ts +8 -0
  100. package/dist/contexts/undoableQueue/undoableQueueContext.d.ts.map +1 -0
  101. package/dist/contexts/unsavedWarn/IUnsavedWarnContext.d.ts +5 -0
  102. package/dist/contexts/unsavedWarn/IUnsavedWarnContext.d.ts.map +1 -0
  103. package/dist/contexts/unsavedWarn/index.d.ts +7 -0
  104. package/dist/contexts/unsavedWarn/index.d.ts.map +1 -0
  105. package/dist/definitions/helpers/check-router-prop-misuse/index.d.ts +3 -0
  106. package/dist/definitions/helpers/check-router-prop-misuse/index.d.ts.map +1 -0
  107. package/dist/definitions/helpers/handleMultiple/index.d.ts +6 -0
  108. package/dist/definitions/helpers/handleMultiple/index.d.ts.map +1 -0
  109. package/dist/definitions/helpers/handlePaginationParams/index.d.ts +9 -0
  110. package/dist/definitions/helpers/handlePaginationParams/index.d.ts.map +1 -0
  111. package/dist/definitions/helpers/handleRefineOptions/index.d.ts +26 -0
  112. package/dist/definitions/helpers/handleRefineOptions/index.d.ts.map +1 -0
  113. package/dist/definitions/helpers/handleUseParams/index.d.ts +2 -0
  114. package/dist/definitions/helpers/handleUseParams/index.d.ts.map +1 -0
  115. package/dist/definitions/helpers/hasPermission/index.d.ts +2 -0
  116. package/dist/definitions/helpers/hasPermission/index.d.ts.map +1 -0
  117. package/dist/definitions/helpers/humanizeString/index.d.ts +2 -0
  118. package/dist/definitions/helpers/humanizeString/index.d.ts.map +1 -0
  119. package/dist/definitions/helpers/importCSVMapper/index.d.ts +3 -0
  120. package/dist/definitions/helpers/importCSVMapper/index.d.ts.map +1 -0
  121. package/dist/definitions/helpers/index.d.ts +23 -0
  122. package/dist/definitions/helpers/index.d.ts.map +1 -0
  123. package/dist/definitions/helpers/legacy-resource-transform/index.d.ts +9 -0
  124. package/dist/definitions/helpers/legacy-resource-transform/index.d.ts.map +1 -0
  125. package/dist/definitions/helpers/menu/create-resource-key.d.ts +3 -0
  126. package/dist/definitions/helpers/menu/create-resource-key.d.ts.map +1 -0
  127. package/dist/definitions/helpers/menu/create-tree.d.ts +13 -0
  128. package/dist/definitions/helpers/menu/create-tree.d.ts.map +1 -0
  129. package/dist/definitions/helpers/pick-resource/index.d.ts +8 -0
  130. package/dist/definitions/helpers/pick-resource/index.d.ts.map +1 -0
  131. package/dist/definitions/helpers/pickDataProvider/index.d.ts +6 -0
  132. package/dist/definitions/helpers/pickDataProvider/index.d.ts.map +1 -0
  133. package/dist/definitions/helpers/pickNotDeprecated/index.d.ts +2 -0
  134. package/dist/definitions/helpers/pickNotDeprecated/index.d.ts.map +1 -0
  135. package/dist/definitions/helpers/queryKeys/index.d.ts +4 -0
  136. package/dist/definitions/helpers/queryKeys/index.d.ts.map +1 -0
  137. package/dist/definitions/helpers/redirectPage/index.d.ts +9 -0
  138. package/dist/definitions/helpers/redirectPage/index.d.ts.map +1 -0
  139. package/dist/definitions/helpers/routeGenerator/index.d.ts +7 -0
  140. package/dist/definitions/helpers/routeGenerator/index.d.ts.map +1 -0
  141. package/dist/definitions/helpers/router/__tests__/check-by-segments.d.ts +2 -0
  142. package/dist/definitions/helpers/router/__tests__/check-by-segments.d.ts.map +1 -0
  143. package/dist/definitions/helpers/router/__tests__/compose-route.d.ts +2 -0
  144. package/dist/definitions/helpers/router/__tests__/compose-route.d.ts.map +1 -0
  145. package/dist/definitions/helpers/router/__tests__/get-action-routes-from-resource.d.ts +2 -0
  146. package/dist/definitions/helpers/router/__tests__/get-action-routes-from-resource.d.ts.map +1 -0
  147. package/dist/definitions/helpers/router/__tests__/get-default-action-path.d.ts +2 -0
  148. package/dist/definitions/helpers/router/__tests__/get-default-action-path.d.ts.map +1 -0
  149. package/dist/definitions/helpers/router/__tests__/get-parent-prefix-for-resource.d.ts +2 -0
  150. package/dist/definitions/helpers/router/__tests__/get-parent-prefix-for-resource.d.ts.map +1 -0
  151. package/dist/definitions/helpers/router/__tests__/get-parent-resource.d.ts +2 -0
  152. package/dist/definitions/helpers/router/__tests__/get-parent-resource.d.ts.map +1 -0
  153. package/dist/definitions/helpers/router/__tests__/is-segment-counts-same.d.ts +2 -0
  154. package/dist/definitions/helpers/router/__tests__/is-segment-counts-same.d.ts.map +1 -0
  155. package/dist/definitions/helpers/router/__tests__/match-resource-from-route.d.ts +2 -0
  156. package/dist/definitions/helpers/router/__tests__/match-resource-from-route.d.ts.map +1 -0
  157. package/dist/definitions/helpers/router/__tests__/pick-matched-route.d.ts +2 -0
  158. package/dist/definitions/helpers/router/__tests__/pick-matched-route.d.ts.map +1 -0
  159. package/dist/definitions/helpers/router/__tests__/pick-route-params.d.ts +2 -0
  160. package/dist/definitions/helpers/router/__tests__/pick-route-params.d.ts.map +1 -0
  161. package/dist/definitions/helpers/router/__tests__/prepare-route-params.d.ts +2 -0
  162. package/dist/definitions/helpers/router/__tests__/prepare-route-params.d.ts.map +1 -0
  163. package/dist/definitions/helpers/router/__tests__/remove-leading-trailing-slashes.d.ts +2 -0
  164. package/dist/definitions/helpers/router/__tests__/remove-leading-trailing-slashes.d.ts.map +1 -0
  165. package/dist/definitions/helpers/router/__tests__/split-to-segments.d.ts +2 -0
  166. package/dist/definitions/helpers/router/__tests__/split-to-segments.d.ts.map +1 -0
  167. package/dist/definitions/helpers/router/check-by-segments.d.ts +9 -0
  168. package/dist/definitions/helpers/router/check-by-segments.d.ts.map +1 -0
  169. package/dist/definitions/helpers/router/compose-route.d.ts +10 -0
  170. package/dist/definitions/helpers/router/compose-route.d.ts.map +1 -0
  171. package/dist/definitions/helpers/router/get-action-routes-from-resource.d.ts +15 -0
  172. package/dist/definitions/helpers/router/get-action-routes-from-resource.d.ts.map +1 -0
  173. package/dist/definitions/helpers/router/get-default-action-path.d.ts +8 -0
  174. package/dist/definitions/helpers/router/get-default-action-path.d.ts.map +1 -0
  175. package/dist/definitions/helpers/router/get-parent-prefix-for-resource.d.ts +7 -0
  176. package/dist/definitions/helpers/router/get-parent-prefix-for-resource.d.ts.map +1 -0
  177. package/dist/definitions/helpers/router/get-parent-resource.d.ts +7 -0
  178. package/dist/definitions/helpers/router/get-parent-resource.d.ts.map +1 -0
  179. package/dist/definitions/helpers/router/index.d.ts +10 -0
  180. package/dist/definitions/helpers/router/index.d.ts.map +1 -0
  181. package/dist/definitions/helpers/router/is-parameter.d.ts +5 -0
  182. package/dist/definitions/helpers/router/is-parameter.d.ts.map +1 -0
  183. package/dist/definitions/helpers/router/is-segment-counts-same.d.ts +5 -0
  184. package/dist/definitions/helpers/router/is-segment-counts-same.d.ts.map +1 -0
  185. package/dist/definitions/helpers/router/match-resource-from-route.d.ts +14 -0
  186. package/dist/definitions/helpers/router/match-resource-from-route.d.ts.map +1 -0
  187. package/dist/definitions/helpers/router/pick-matched-route.d.ts +8 -0
  188. package/dist/definitions/helpers/router/pick-matched-route.d.ts.map +1 -0
  189. package/dist/definitions/helpers/router/pick-route-params.d.ts +6 -0
  190. package/dist/definitions/helpers/router/pick-route-params.d.ts.map +1 -0
  191. package/dist/definitions/helpers/router/prepare-route-params.d.ts +9 -0
  192. package/dist/definitions/helpers/router/prepare-route-params.d.ts.map +1 -0
  193. package/dist/definitions/helpers/router/remove-leading-trailing-slashes.d.ts +5 -0
  194. package/dist/definitions/helpers/router/remove-leading-trailing-slashes.d.ts.map +1 -0
  195. package/dist/definitions/helpers/router/split-to-segments.d.ts +5 -0
  196. package/dist/definitions/helpers/router/split-to-segments.d.ts.map +1 -0
  197. package/dist/definitions/helpers/sanitize-resource/index.d.ts +8 -0
  198. package/dist/definitions/helpers/sanitize-resource/index.d.ts.map +1 -0
  199. package/dist/definitions/helpers/sequentialPromises/index.d.ts +5 -0
  200. package/dist/definitions/helpers/sequentialPromises/index.d.ts.map +1 -0
  201. package/dist/definitions/helpers/treeView/createTreeView/index.d.ts +6 -0
  202. package/dist/definitions/helpers/treeView/createTreeView/index.d.ts.map +1 -0
  203. package/dist/definitions/helpers/treeView/index.d.ts +2 -0
  204. package/dist/definitions/helpers/treeView/index.d.ts.map +1 -0
  205. package/dist/definitions/helpers/useActiveAuthProvider/index.d.ts +34 -0
  206. package/dist/definitions/helpers/useActiveAuthProvider/index.d.ts.map +1 -0
  207. package/dist/definitions/helpers/useInfinitePagination/index.d.ts +4 -0
  208. package/dist/definitions/helpers/useInfinitePagination/index.d.ts.map +1 -0
  209. package/dist/definitions/helpers/userFriendlyResourceName/index.d.ts +6 -0
  210. package/dist/definitions/helpers/userFriendlyResourceName/index.d.ts.map +1 -0
  211. package/dist/definitions/helpers/userFriendlySeconds/index.d.ts +2 -0
  212. package/dist/definitions/helpers/userFriendlySeconds/index.d.ts.map +1 -0
  213. package/dist/definitions/index.d.ts +4 -0
  214. package/dist/definitions/index.d.ts.map +1 -0
  215. package/dist/definitions/table/index.d.ts +34 -0
  216. package/dist/definitions/table/index.d.ts.map +1 -0
  217. package/dist/definitions/upload/file2Base64/index.d.ts +2 -0
  218. package/dist/definitions/upload/file2Base64/index.d.ts.map +1 -0
  219. package/dist/definitions/upload/index.d.ts +2 -0
  220. package/dist/definitions/upload/index.d.ts.map +1 -0
  221. package/dist/esm/index.js +56 -0
  222. package/dist/esm/index.js.map +1 -0
  223. package/dist/hooks/accessControl/index.d.ts +3 -0
  224. package/dist/hooks/accessControl/index.d.ts.map +1 -0
  225. package/dist/hooks/accessControl/useCan/index.d.ts +18 -0
  226. package/dist/hooks/accessControl/useCan/index.d.ts.map +1 -0
  227. package/dist/hooks/accessControl/useCanWithoutCache.d.ts +3 -0
  228. package/dist/hooks/accessControl/useCanWithoutCache.d.ts.map +1 -0
  229. package/dist/hooks/auditLog/index.d.ts +3 -0
  230. package/dist/hooks/auditLog/index.d.ts.map +1 -0
  231. package/dist/hooks/auditLog/useLog/index.d.ts +26 -0
  232. package/dist/hooks/auditLog/useLog/index.d.ts.map +1 -0
  233. package/dist/hooks/auditLog/useLogList/index.d.ts +16 -0
  234. package/dist/hooks/auditLog/useLogList/index.d.ts.map +1 -0
  235. package/dist/hooks/auth/index.d.ts +11 -0
  236. package/dist/hooks/auth/index.d.ts.map +1 -0
  237. package/dist/hooks/auth/useForgotPassword/index.d.ts +21 -0
  238. package/dist/hooks/auth/useForgotPassword/index.d.ts.map +1 -0
  239. package/dist/hooks/auth/useGetIdentity/index.d.ts +21 -0
  240. package/dist/hooks/auth/useGetIdentity/index.d.ts.map +1 -0
  241. package/dist/hooks/auth/useInvaliteAuthStore/index.d.ts +2 -0
  242. package/dist/hooks/auth/useInvaliteAuthStore/index.d.ts.map +1 -0
  243. package/dist/hooks/auth/useIsAuthenticated/index.d.ts +25 -0
  244. package/dist/hooks/auth/useIsAuthenticated/index.d.ts.map +1 -0
  245. package/dist/hooks/auth/useIsExistAuthentication/index.d.ts +6 -0
  246. package/dist/hooks/auth/useIsExistAuthentication/index.d.ts.map +1 -0
  247. package/dist/hooks/auth/useLogin/index.d.ts +22 -0
  248. package/dist/hooks/auth/useLogin/index.d.ts.map +1 -0
  249. package/dist/hooks/auth/useLogout/index.d.ts +26 -0
  250. package/dist/hooks/auth/useLogout/index.d.ts.map +1 -0
  251. package/dist/hooks/auth/useOnError/index.d.ts +22 -0
  252. package/dist/hooks/auth/useOnError/index.d.ts.map +1 -0
  253. package/dist/hooks/auth/usePermissions/index.d.ts +21 -0
  254. package/dist/hooks/auth/usePermissions/index.d.ts.map +1 -0
  255. package/dist/hooks/auth/useRegister/index.d.ts +21 -0
  256. package/dist/hooks/auth/useRegister/index.d.ts.map +1 -0
  257. package/dist/hooks/auth/useUpdatePassword/index.d.ts +21 -0
  258. package/dist/hooks/auth/useUpdatePassword/index.d.ts.map +1 -0
  259. package/dist/hooks/breadcrumb/index.d.ts +18 -0
  260. package/dist/hooks/breadcrumb/index.d.ts.map +1 -0
  261. package/dist/hooks/data/index.d.ts +15 -0
  262. package/dist/hooks/data/index.d.ts.map +1 -0
  263. package/dist/hooks/data/useApiUrl.d.ts +2 -0
  264. package/dist/hooks/data/useApiUrl.d.ts.map +1 -0
  265. package/dist/hooks/data/useCreate.d.ts +48 -0
  266. package/dist/hooks/data/useCreate.d.ts.map +1 -0
  267. package/dist/hooks/data/useCreateMany.d.ts +29 -0
  268. package/dist/hooks/data/useCreateMany.d.ts.map +1 -0
  269. package/dist/hooks/data/useCustom.d.ts +60 -0
  270. package/dist/hooks/data/useCustom.d.ts.map +1 -0
  271. package/dist/hooks/data/useCustomMutation.d.ts +40 -0
  272. package/dist/hooks/data/useCustomMutation.d.ts.map +1 -0
  273. package/dist/hooks/data/useDataProvider.d.ts +3 -0
  274. package/dist/hooks/data/useDataProvider.d.ts.map +1 -0
  275. package/dist/hooks/data/useDelete.d.ts +35 -0
  276. package/dist/hooks/data/useDelete.d.ts.map +1 -0
  277. package/dist/hooks/data/useDeleteMany.d.ts +35 -0
  278. package/dist/hooks/data/useDeleteMany.d.ts.map +1 -0
  279. package/dist/hooks/data/useInfiniteList.d.ts +67 -0
  280. package/dist/hooks/data/useInfiniteList.d.ts.map +1 -0
  281. package/dist/hooks/data/useList.d.ts +67 -0
  282. package/dist/hooks/data/useList.d.ts.map +1 -0
  283. package/dist/hooks/data/useMany.d.ts +44 -0
  284. package/dist/hooks/data/useMany.d.ts.map +1 -0
  285. package/dist/hooks/data/useOne.d.ts +44 -0
  286. package/dist/hooks/data/useOne.d.ts.map +1 -0
  287. package/dist/hooks/data/useUpdate.d.ts +64 -0
  288. package/dist/hooks/data/useUpdate.d.ts.map +1 -0
  289. package/dist/hooks/data/useUpdateMany.d.ts +40 -0
  290. package/dist/hooks/data/useUpdateMany.d.ts.map +1 -0
  291. package/dist/hooks/deepMemo/index.d.ts +7 -0
  292. package/dist/hooks/deepMemo/index.d.ts.map +1 -0
  293. package/dist/hooks/export/csvDownload.interface.d.ts +20 -0
  294. package/dist/hooks/export/csvDownload.interface.d.ts.map +1 -0
  295. package/dist/hooks/export/index.d.ts +75 -0
  296. package/dist/hooks/export/index.d.ts.map +1 -0
  297. package/dist/hooks/form/index.d.ts +2 -0
  298. package/dist/hooks/form/index.d.ts.map +1 -0
  299. package/dist/hooks/form/useForm.d.ts +103 -0
  300. package/dist/hooks/form/useForm.d.ts.map +1 -0
  301. package/dist/hooks/import/index.d.ts +100 -0
  302. package/dist/hooks/import/index.d.ts.map +1 -0
  303. package/dist/hooks/index.d.ts +25 -0
  304. package/dist/hooks/index.d.ts.map +1 -0
  305. package/dist/hooks/invalidate/index.d.ts +9 -0
  306. package/dist/hooks/invalidate/index.d.ts.map +1 -0
  307. package/dist/hooks/legacy-router/index.d.ts +2 -0
  308. package/dist/hooks/legacy-router/index.d.ts.map +1 -0
  309. package/dist/hooks/legacy-router/useRouterContext.d.ts +10 -0
  310. package/dist/hooks/legacy-router/useRouterContext.d.ts.map +1 -0
  311. package/dist/hooks/live/index.d.ts +5 -0
  312. package/dist/hooks/live/index.d.ts.map +1 -0
  313. package/dist/hooks/live/useLiveMode/index.d.ts +3 -0
  314. package/dist/hooks/live/useLiveMode/index.d.ts.map +1 -0
  315. package/dist/hooks/live/usePublish/index.d.ts +3 -0
  316. package/dist/hooks/live/usePublish/index.d.ts.map +1 -0
  317. package/dist/hooks/live/useResourceSubscription/index.d.ts +34 -0
  318. package/dist/hooks/live/useResourceSubscription/index.d.ts.map +1 -0
  319. package/dist/hooks/live/useSubscription/index.d.ts +46 -0
  320. package/dist/hooks/live/useSubscription/index.d.ts.map +1 -0
  321. package/dist/hooks/memoized/index.d.ts +6 -0
  322. package/dist/hooks/memoized/index.d.ts.map +1 -0
  323. package/dist/hooks/menu/index.d.ts +2 -0
  324. package/dist/hooks/menu/index.d.ts.map +1 -0
  325. package/dist/hooks/menu/useMenu.d.ts +28 -0
  326. package/dist/hooks/menu/useMenu.d.ts.map +1 -0
  327. package/dist/hooks/modal/index.d.ts +2 -0
  328. package/dist/hooks/modal/index.d.ts.map +1 -0
  329. package/dist/hooks/modal/useModal/index.d.ts +13 -0
  330. package/dist/hooks/modal/useModal/index.d.ts.map +1 -0
  331. package/dist/hooks/navigation/index.d.ts +27 -0
  332. package/dist/hooks/navigation/index.d.ts.map +1 -0
  333. package/dist/hooks/notification/index.d.ts +4 -0
  334. package/dist/hooks/notification/index.d.ts.map +1 -0
  335. package/dist/hooks/notification/useCancelNotification/index.d.ts +8 -0
  336. package/dist/hooks/notification/useCancelNotification/index.d.ts.map +1 -0
  337. package/dist/hooks/notification/useHandleNotification/index.d.ts +3 -0
  338. package/dist/hooks/notification/useHandleNotification/index.d.ts.map +1 -0
  339. package/dist/hooks/notification/useNotification/index.d.ts +3 -0
  340. package/dist/hooks/notification/useNotification/index.d.ts.map +1 -0
  341. package/dist/hooks/redirection/index.d.ts +9 -0
  342. package/dist/hooks/redirection/index.d.ts.map +1 -0
  343. package/dist/hooks/refine/index.d.ts +6 -0
  344. package/dist/hooks/refine/index.d.ts.map +1 -0
  345. package/dist/hooks/refine/useMutationMode.d.ts +15 -0
  346. package/dist/hooks/refine/useMutationMode.d.ts.map +1 -0
  347. package/dist/hooks/refine/useRefineContext.d.ts +19 -0
  348. package/dist/hooks/refine/useRefineContext.d.ts.map +1 -0
  349. package/dist/hooks/refine/useSyncWithLocation.d.ts +13 -0
  350. package/dist/hooks/refine/useSyncWithLocation.d.ts.map +1 -0
  351. package/dist/hooks/refine/useTitle.d.ts +10 -0
  352. package/dist/hooks/refine/useTitle.d.ts.map +1 -0
  353. package/dist/hooks/refine/useWarnAboutChange/index.d.ts +15 -0
  354. package/dist/hooks/refine/useWarnAboutChange/index.d.ts.map +1 -0
  355. package/dist/hooks/resource/index.d.ts +3 -0
  356. package/dist/hooks/resource/index.d.ts.map +1 -0
  357. package/dist/hooks/resource/useResource/index.d.ts +45 -0
  358. package/dist/hooks/resource/useResource/index.d.ts.map +1 -0
  359. package/dist/hooks/resource/useResourceWithRoute/index.d.ts +8 -0
  360. package/dist/hooks/resource/useResourceWithRoute/index.d.ts.map +1 -0
  361. package/dist/hooks/router/index.d.ts +8 -0
  362. package/dist/hooks/router/index.d.ts.map +1 -0
  363. package/dist/hooks/router/use-back/index.d.ts +2 -0
  364. package/dist/hooks/router/use-back/index.d.ts.map +1 -0
  365. package/dist/hooks/router/use-get-to-path/index.d.ts +18 -0
  366. package/dist/hooks/router/use-get-to-path/index.d.ts.map +1 -0
  367. package/dist/hooks/router/use-go/index.d.ts +2 -0
  368. package/dist/hooks/router/use-go/index.d.ts.map +1 -0
  369. package/dist/hooks/router/use-link/index.d.ts +6 -0
  370. package/dist/hooks/router/use-link/index.d.ts.map +1 -0
  371. package/dist/hooks/router/use-parse/index.d.ts +3 -0
  372. package/dist/hooks/router/use-parse/index.d.ts.map +1 -0
  373. package/dist/hooks/router/use-parsed/index.d.ts +2 -0
  374. package/dist/hooks/router/use-parsed/index.d.ts.map +1 -0
  375. package/dist/hooks/router/use-router-misuse-warning/index.d.ts +3 -0
  376. package/dist/hooks/router/use-router-misuse-warning/index.d.ts.map +1 -0
  377. package/dist/hooks/router/use-to-path/index.d.ts +17 -0
  378. package/dist/hooks/router/use-to-path/index.d.ts.map +1 -0
  379. package/dist/hooks/show/index.d.ts +2 -0
  380. package/dist/hooks/show/index.d.ts.map +1 -0
  381. package/dist/hooks/show/useShow.d.ts +47 -0
  382. package/dist/hooks/show/useShow.d.ts.map +1 -0
  383. package/dist/hooks/translate/index.d.ts +4 -0
  384. package/dist/hooks/translate/index.d.ts.map +1 -0
  385. package/dist/hooks/translate/useGetLocale.d.ts +9 -0
  386. package/dist/hooks/translate/useGetLocale.d.ts.map +1 -0
  387. package/dist/hooks/translate/useSetLocale.d.ts +8 -0
  388. package/dist/hooks/translate/useSetLocale.d.ts.map +1 -0
  389. package/dist/hooks/translate/useTranslate.d.ts +11 -0
  390. package/dist/hooks/translate/useTranslate.d.ts.map +1 -0
  391. package/dist/hooks/useSelect/index.d.ts +100 -0
  392. package/dist/hooks/useSelect/index.d.ts.map +1 -0
  393. package/dist/hooks/useTable/index.d.ts +153 -0
  394. package/dist/hooks/useTable/index.d.ts.map +1 -0
  395. package/dist/hooks/useTelemetryData/index.d.ts +3 -0
  396. package/dist/hooks/useTelemetryData/index.d.ts.map +1 -0
  397. package/dist/iife/index.js +56 -0
  398. package/dist/iife/index.js.map +1 -0
  399. package/dist/index.d.ts +9 -0
  400. package/dist/index.d.ts.map +1 -0
  401. package/dist/index.js +56 -0
  402. package/dist/index.js.map +1 -0
  403. package/dist/interfaces/HttpError.d.ts +5 -0
  404. package/dist/interfaces/HttpError.d.ts.map +1 -0
  405. package/dist/interfaces/actions.d.ts +10 -0
  406. package/dist/interfaces/actions.d.ts.map +1 -0
  407. package/dist/interfaces/auditLog/index.d.ts +2 -0
  408. package/dist/interfaces/auditLog/index.d.ts.map +1 -0
  409. package/dist/interfaces/auditLog/logData.d.ts +14 -0
  410. package/dist/interfaces/auditLog/logData.d.ts.map +1 -0
  411. package/dist/interfaces/auth.d.ts +158 -0
  412. package/dist/interfaces/auth.d.ts.map +1 -0
  413. package/dist/interfaces/bindings/access-control.d.ts +50 -0
  414. package/dist/interfaces/bindings/access-control.d.ts.map +1 -0
  415. package/dist/interfaces/bindings/auth.d.ts +66 -0
  416. package/dist/interfaces/bindings/auth.d.ts.map +1 -0
  417. package/dist/interfaces/bindings/data.d.ts +15 -0
  418. package/dist/interfaces/bindings/data.d.ts.map +1 -0
  419. package/dist/interfaces/bindings/i18n.d.ts +19 -0
  420. package/dist/interfaces/bindings/i18n.d.ts.map +1 -0
  421. package/dist/interfaces/bindings/index.d.ts +9 -0
  422. package/dist/interfaces/bindings/index.d.ts.map +1 -0
  423. package/dist/interfaces/bindings/live.d.ts +43 -0
  424. package/dist/interfaces/bindings/live.d.ts.map +1 -0
  425. package/dist/interfaces/bindings/notifications.d.ts +24 -0
  426. package/dist/interfaces/bindings/notifications.d.ts.map +1 -0
  427. package/dist/interfaces/bindings/resource.d.ts +150 -0
  428. package/dist/interfaces/bindings/resource.d.ts.map +1 -0
  429. package/dist/interfaces/bindings/router.d.ts +70 -0
  430. package/dist/interfaces/bindings/router.d.ts.map +1 -0
  431. package/dist/interfaces/customComponents.d.ts +26 -0
  432. package/dist/interfaces/customComponents.d.ts.map +1 -0
  433. package/dist/interfaces/form-url-params.d.ts +12 -0
  434. package/dist/interfaces/form-url-params.d.ts.map +1 -0
  435. package/dist/interfaces/index.d.ts +49 -0
  436. package/dist/interfaces/index.d.ts.map +1 -0
  437. package/dist/interfaces/live/LiveEvent.d.ts +11 -0
  438. package/dist/interfaces/live/LiveEvent.d.ts.map +1 -0
  439. package/dist/interfaces/live/LiveModeProps.d.ts +27 -0
  440. package/dist/interfaces/live/LiveModeProps.d.ts.map +1 -0
  441. package/dist/interfaces/live/index.d.ts +3 -0
  442. package/dist/interfaces/live/index.d.ts.map +1 -0
  443. package/dist/interfaces/mapDataFn.d.ts +4 -0
  444. package/dist/interfaces/mapDataFn.d.ts.map +1 -0
  445. package/dist/interfaces/metaData/fields.d.ts +3 -0
  446. package/dist/interfaces/metaData/fields.d.ts.map +1 -0
  447. package/dist/interfaces/metaData/index.d.ts +3 -0
  448. package/dist/interfaces/metaData/index.d.ts.map +1 -0
  449. package/dist/interfaces/metaData/metaDataQuery.d.ts +10 -0
  450. package/dist/interfaces/metaData/metaDataQuery.d.ts.map +1 -0
  451. package/dist/interfaces/metaData/metaQuery.d.ts +7 -0
  452. package/dist/interfaces/metaData/metaQuery.d.ts.map +1 -0
  453. package/dist/interfaces/metaData/nestedField.d.ts +8 -0
  454. package/dist/interfaces/metaData/nestedField.d.ts.map +1 -0
  455. package/dist/interfaces/metaData/queryBuilderOptions.d.ts +8 -0
  456. package/dist/interfaces/metaData/queryBuilderOptions.d.ts.map +1 -0
  457. package/dist/interfaces/metaData/variableOptions.d.ts +10 -0
  458. package/dist/interfaces/metaData/variableOptions.d.ts.map +1 -0
  459. package/dist/interfaces/mutationMode.d.ts +17 -0
  460. package/dist/interfaces/mutationMode.d.ts.map +1 -0
  461. package/dist/interfaces/notification.d.ts +11 -0
  462. package/dist/interfaces/notification.d.ts.map +1 -0
  463. package/dist/interfaces/prettify.d.ts +4 -0
  464. package/dist/interfaces/prettify.d.ts.map +1 -0
  465. package/dist/interfaces/queryKey.d.ts +17 -0
  466. package/dist/interfaces/queryKey.d.ts.map +1 -0
  467. package/dist/interfaces/resourceErrorRouterParams.d.ts +6 -0
  468. package/dist/interfaces/resourceErrorRouterParams.d.ts.map +1 -0
  469. package/dist/interfaces/resourceRouterParams.d.ts +7 -0
  470. package/dist/interfaces/resourceRouterParams.d.ts.map +1 -0
  471. package/dist/interfaces/successErrorNotification.d.ts +15 -0
  472. package/dist/interfaces/successErrorNotification.d.ts.map +1 -0
  473. package/dist/interfaces/telementry.d.ts +15 -0
  474. package/dist/interfaces/telementry.d.ts.map +1 -0
  475. package/package.json +67 -0
  476. package/refine.config.js +120 -0
  477. package/src/components/authenticated/index.tsx +202 -0
  478. package/src/components/canAccess/index.tsx +42 -0
  479. package/src/components/containers/index.ts +1 -0
  480. package/src/components/containers/refine/index.tsx +412 -0
  481. package/src/components/gh-banner/index.tsx +75 -0
  482. package/src/components/gh-banner/styles.ts +59 -0
  483. package/src/components/index.ts +9 -0
  484. package/src/components/layoutWrapper/defaultLayout/index.tsx +7 -0
  485. package/src/components/layoutWrapper/index.tsx +121 -0
  486. package/src/components/pages/auth/components/forgotPassword/index.tsx +122 -0
  487. package/src/components/pages/auth/components/index.ts +4 -0
  488. package/src/components/pages/auth/components/login/index.tsx +182 -0
  489. package/src/components/pages/auth/components/register/index.tsx +168 -0
  490. package/src/components/pages/auth/components/updatePassword/index.tsx +104 -0
  491. package/src/components/pages/auth/index.tsx +52 -0
  492. package/src/components/pages/error/index.tsx +64 -0
  493. package/src/components/pages/index.tsx +7 -0
  494. package/src/components/pages/login/index.tsx +91 -0
  495. package/src/components/pages/ready/index.tsx +39 -0
  496. package/src/components/pages/welcome/index.tsx +32 -0
  497. package/src/components/routeChangeHandler/index.tsx +16 -0
  498. package/src/components/telemetry/index.tsx +32 -0
  499. package/src/components/undoableQueue/index.tsx +68 -0
  500. package/src/contexts/accessControl/IAccessControlContext.ts +32 -0
  501. package/src/contexts/accessControl/index.tsx +22 -0
  502. package/src/contexts/auditLog/IAuditLogContext.ts +31 -0
  503. package/src/contexts/auditLog/index.tsx +17 -0
  504. package/src/contexts/auth/IAuthContext.ts +27 -0
  505. package/src/contexts/auth/index.tsx +203 -0
  506. package/src/contexts/data/IDataContext.ts +285 -0
  507. package/src/contexts/data/index.tsx +50 -0
  508. package/src/contexts/legacy-router/IRouterContext.ts +37 -0
  509. package/src/contexts/legacy-router/index.tsx +45 -0
  510. package/src/contexts/live/ILiveContext.ts +48 -0
  511. package/src/contexts/live/index.tsx +16 -0
  512. package/src/contexts/notification/INotificationContext.ts +15 -0
  513. package/src/contexts/notification/index.tsx +20 -0
  514. package/src/contexts/refine/IRefineContext.ts +116 -0
  515. package/src/contexts/refine/index.tsx +87 -0
  516. package/src/contexts/resource/IResourceContext.ts +68 -0
  517. package/src/contexts/resource/index.tsx +34 -0
  518. package/src/contexts/router/index.tsx +17 -0
  519. package/src/contexts/router-picker/index.tsx +21 -0
  520. package/src/contexts/translation/ITranslationContext.ts +19 -0
  521. package/src/contexts/translation/index.tsx +24 -0
  522. package/src/contexts/undoableQueue/IUndoableQueueContext.ts +6 -0
  523. package/src/contexts/undoableQueue/actionTypes.ts +5 -0
  524. package/src/contexts/undoableQueue/index.ts +5 -0
  525. package/src/contexts/undoableQueue/undoableQueueContext.tsx +83 -0
  526. package/src/contexts/unsavedWarn/IUnsavedWarnContext.ts +4 -0
  527. package/src/contexts/unsavedWarn/index.tsx +17 -0
  528. package/src/definitions/helpers/check-router-prop-misuse/index.ts +30 -0
  529. package/src/definitions/helpers/handleMultiple/index.ts +7 -0
  530. package/src/definitions/helpers/handlePaginationParams/index.ts +30 -0
  531. package/src/definitions/helpers/handleRefineOptions/index.ts +94 -0
  532. package/src/definitions/helpers/handleUseParams/index.tsx +9 -0
  533. package/src/definitions/helpers/hasPermission/index.ts +9 -0
  534. package/src/definitions/helpers/humanizeString/index.ts +14 -0
  535. package/src/definitions/helpers/importCSVMapper/index.ts +15 -0
  536. package/src/definitions/helpers/index.ts +25 -0
  537. package/src/definitions/helpers/legacy-resource-transform/index.ts +30 -0
  538. package/src/definitions/helpers/menu/create-resource-key.ts +33 -0
  539. package/src/definitions/helpers/menu/create-tree.ts +87 -0
  540. package/src/definitions/helpers/pick-resource/index.ts +40 -0
  541. package/src/definitions/helpers/pickDataProvider/index.ts +29 -0
  542. package/src/definitions/helpers/pickNotDeprecated/index.ts +9 -0
  543. package/src/definitions/helpers/queryKeys/index.ts +47 -0
  544. package/src/definitions/helpers/redirectPage/index.ts +28 -0
  545. package/src/definitions/helpers/routeGenerator/index.ts +29 -0
  546. package/src/definitions/helpers/router/__tests__/check-by-segments.ts +24 -0
  547. package/src/definitions/helpers/router/__tests__/compose-route.ts +42 -0
  548. package/src/definitions/helpers/router/__tests__/get-action-routes-from-resource.ts +169 -0
  549. package/src/definitions/helpers/router/__tests__/get-default-action-path.ts +47 -0
  550. package/src/definitions/helpers/router/__tests__/get-parent-prefix-for-resource.ts +84 -0
  551. package/src/definitions/helpers/router/__tests__/get-parent-resource.ts +51 -0
  552. package/src/definitions/helpers/router/__tests__/is-segment-counts-same.ts +21 -0
  553. package/src/definitions/helpers/router/__tests__/match-resource-from-route.ts +59 -0
  554. package/src/definitions/helpers/router/__tests__/pick-matched-route.ts +89 -0
  555. package/src/definitions/helpers/router/__tests__/pick-route-params.ts +18 -0
  556. package/src/definitions/helpers/router/__tests__/prepare-route-params.ts +23 -0
  557. package/src/definitions/helpers/router/__tests__/remove-leading-trailing-slashes.ts +15 -0
  558. package/src/definitions/helpers/router/__tests__/split-to-segments.ts +15 -0
  559. package/src/definitions/helpers/router/check-by-segments.ts +28 -0
  560. package/src/definitions/helpers/router/compose-route.ts +30 -0
  561. package/src/definitions/helpers/router/get-action-routes-from-resource.ts +71 -0
  562. package/src/definitions/helpers/router/get-default-action-path.ts +33 -0
  563. package/src/definitions/helpers/router/get-parent-prefix-for-resource.ts +39 -0
  564. package/src/definitions/helpers/router/get-parent-resource.ts +31 -0
  565. package/src/definitions/helpers/router/index.ts +10 -0
  566. package/src/definitions/helpers/router/is-parameter.ts +6 -0
  567. package/src/definitions/helpers/router/is-segment-counts-same.ts +11 -0
  568. package/src/definitions/helpers/router/match-resource-from-route.ts +37 -0
  569. package/src/definitions/helpers/router/pick-matched-route.ts +61 -0
  570. package/src/definitions/helpers/router/pick-route-params.ts +19 -0
  571. package/src/definitions/helpers/router/prepare-route-params.ts +32 -0
  572. package/src/definitions/helpers/router/remove-leading-trailing-slashes.ts +6 -0
  573. package/src/definitions/helpers/router/split-to-segments.ts +7 -0
  574. package/src/definitions/helpers/sanitize-resource/index.ts +31 -0
  575. package/src/definitions/helpers/sequentialPromises/index.ts +32 -0
  576. package/src/definitions/helpers/treeView/createTreeView/index.ts +44 -0
  577. package/src/definitions/helpers/treeView/index.ts +1 -0
  578. package/src/definitions/helpers/useActiveAuthProvider/index.ts +30 -0
  579. package/src/definitions/helpers/useInfinitePagination/index.ts +30 -0
  580. package/src/definitions/helpers/userFriendlyResourceName/index.ts +17 -0
  581. package/src/definitions/helpers/userFriendlySeconds/index.ts +3 -0
  582. package/src/definitions/index.ts +3 -0
  583. package/src/definitions/table/__snapshots__/index.spec.ts.snap +7 -0
  584. package/src/definitions/table/index.ts +192 -0
  585. package/src/definitions/upload/file2Base64/index.ts +21 -0
  586. package/src/definitions/upload/index.ts +1 -0
  587. package/src/hooks/accessControl/index.ts +2 -0
  588. package/src/hooks/accessControl/useCan/index.ts +69 -0
  589. package/src/hooks/accessControl/useCanWithoutCache.ts +10 -0
  590. package/src/hooks/auditLog/index.ts +2 -0
  591. package/src/hooks/auditLog/useLog/index.ts +139 -0
  592. package/src/hooks/auditLog/useLogList/index.ts +55 -0
  593. package/src/hooks/auth/index.ts +10 -0
  594. package/src/hooks/auth/useForgotPassword/index.ts +174 -0
  595. package/src/hooks/auth/useGetIdentity/index.ts +92 -0
  596. package/src/hooks/auth/useInvaliteAuthStore/index.ts +13 -0
  597. package/src/hooks/auth/useIsAuthenticated/index.ts +80 -0
  598. package/src/hooks/auth/useIsExistAuthentication/index.ts +12 -0
  599. package/src/hooks/auth/useLogin/index.ts +220 -0
  600. package/src/hooks/auth/useLogout/index.ts +199 -0
  601. package/src/hooks/auth/useOnError/index.ts +110 -0
  602. package/src/hooks/auth/usePermissions/index.ts +87 -0
  603. package/src/hooks/auth/useRegister/index.ts +186 -0
  604. package/src/hooks/auth/useUpdatePassword/index.ts +215 -0
  605. package/src/hooks/breadcrumb/index.ts +126 -0
  606. package/src/hooks/data/index.ts +18 -0
  607. package/src/hooks/data/useApiUrl.ts +9 -0
  608. package/src/hooks/data/useCreate.ts +258 -0
  609. package/src/hooks/data/useCreateMany.ts +239 -0
  610. package/src/hooks/data/useCustom.ts +177 -0
  611. package/src/hooks/data/useCustomMutation.ts +188 -0
  612. package/src/hooks/data/useDataProvider.tsx +39 -0
  613. package/src/hooks/data/useDelete.ts +415 -0
  614. package/src/hooks/data/useDeleteMany.ts +442 -0
  615. package/src/hooks/data/useInfiniteList.ts +290 -0
  616. package/src/hooks/data/useList.ts +300 -0
  617. package/src/hooks/data/useMany.ts +202 -0
  618. package/src/hooks/data/useOne.ts +205 -0
  619. package/src/hooks/data/useUpdate.ts +488 -0
  620. package/src/hooks/data/useUpdateMany.ts +496 -0
  621. package/src/hooks/deepMemo/index.tsx +17 -0
  622. package/src/hooks/export/csvDownload.interface.ts +27 -0
  623. package/src/hooks/export/index.ts +189 -0
  624. package/src/hooks/form/index.ts +1 -0
  625. package/src/hooks/form/useForm.ts +524 -0
  626. package/src/hooks/import/index.tsx +336 -0
  627. package/src/hooks/index.ts +24 -0
  628. package/src/hooks/invalidate/index.tsx +62 -0
  629. package/src/hooks/legacy-router/index.ts +1 -0
  630. package/src/hooks/legacy-router/useRouterContext.ts +18 -0
  631. package/src/hooks/live/index.ts +4 -0
  632. package/src/hooks/live/useLiveMode/index.ts +12 -0
  633. package/src/hooks/live/usePublish/index.ts +10 -0
  634. package/src/hooks/live/useResourceSubscription/index.ts +99 -0
  635. package/src/hooks/live/useSubscription/index.ts +85 -0
  636. package/src/hooks/memoized/index.tsx +16 -0
  637. package/src/hooks/menu/index.ts +1 -0
  638. package/src/hooks/menu/useMenu.tsx +153 -0
  639. package/src/hooks/modal/index.ts +1 -0
  640. package/src/hooks/modal/useModal/index.tsx +29 -0
  641. package/src/hooks/navigation/index.ts +385 -0
  642. package/src/hooks/notification/index.ts +3 -0
  643. package/src/hooks/notification/useCancelNotification/index.tsx +16 -0
  644. package/src/hooks/notification/useHandleNotification/index.ts +26 -0
  645. package/src/hooks/notification/useNotification/index.ts +10 -0
  646. package/src/hooks/redirection/index.ts +56 -0
  647. package/src/hooks/refine/index.ts +5 -0
  648. package/src/hooks/refine/useMutationMode.ts +22 -0
  649. package/src/hooks/refine/useRefineContext.ts +41 -0
  650. package/src/hooks/refine/useSyncWithLocation.ts +20 -0
  651. package/src/hooks/refine/useTitle.tsx +15 -0
  652. package/src/hooks/refine/useWarnAboutChange/index.ts +32 -0
  653. package/src/hooks/resource/index.ts +2 -0
  654. package/src/hooks/resource/useResource/index.ts +151 -0
  655. package/src/hooks/resource/useResourceWithRoute/index.ts +27 -0
  656. package/src/hooks/router/index.ts +7 -0
  657. package/src/hooks/router/use-back/index.tsx +15 -0
  658. package/src/hooks/router/use-get-to-path/index.ts +60 -0
  659. package/src/hooks/router/use-go/index.tsx +15 -0
  660. package/src/hooks/router/use-link/index.tsx +17 -0
  661. package/src/hooks/router/use-parse/index.tsx +21 -0
  662. package/src/hooks/router/use-parsed/index.tsx +10 -0
  663. package/src/hooks/router/use-router-misuse-warning/index.ts +18 -0
  664. package/src/hooks/router/use-to-path/index.ts +27 -0
  665. package/src/hooks/show/index.ts +1 -0
  666. package/src/hooks/show/useShow.ts +183 -0
  667. package/src/hooks/translate/index.ts +3 -0
  668. package/src/hooks/translate/useGetLocale.ts +16 -0
  669. package/src/hooks/translate/useSetLocale.ts +14 -0
  670. package/src/hooks/translate/useTranslate.ts +40 -0
  671. package/src/hooks/useSelect/index.ts +280 -0
  672. package/src/hooks/useTable/index.ts +544 -0
  673. package/src/hooks/useTelemetryData/index.ts +73 -0
  674. package/src/index.tsx +120 -0
  675. package/src/interfaces/HttpError.ts +4 -0
  676. package/src/interfaces/actions.ts +16 -0
  677. package/src/interfaces/auditLog/index.ts +1 -0
  678. package/src/interfaces/auditLog/logData.ts +15 -0
  679. package/src/interfaces/auth.tsx +192 -0
  680. package/src/interfaces/bindings/access-control.ts +53 -0
  681. package/src/interfaces/bindings/auth.ts +72 -0
  682. package/src/interfaces/bindings/data.ts +18 -0
  683. package/src/interfaces/bindings/i18n.ts +29 -0
  684. package/src/interfaces/bindings/index.ts +24 -0
  685. package/src/interfaces/bindings/live.ts +56 -0
  686. package/src/interfaces/bindings/notifications.ts +25 -0
  687. package/src/interfaces/bindings/resource.ts +178 -0
  688. package/src/interfaces/bindings/router.ts +73 -0
  689. package/src/interfaces/customComponents.ts +28 -0
  690. package/src/interfaces/form-url-params.ts +8 -0
  691. package/src/interfaces/index.ts +86 -0
  692. package/src/interfaces/live/LiveEvent.ts +11 -0
  693. package/src/interfaces/live/LiveModeProps.ts +28 -0
  694. package/src/interfaces/live/index.ts +2 -0
  695. package/src/interfaces/mapDataFn.ts +3 -0
  696. package/src/interfaces/metaData/fields.ts +3 -0
  697. package/src/interfaces/metaData/index.ts +2 -0
  698. package/src/interfaces/metaData/metaDataQuery.ts +10 -0
  699. package/src/interfaces/metaData/metaQuery.ts +7 -0
  700. package/src/interfaces/metaData/nestedField.ts +8 -0
  701. package/src/interfaces/metaData/queryBuilderOptions.ts +8 -0
  702. package/src/interfaces/metaData/variableOptions.ts +9 -0
  703. package/src/interfaces/mutationMode.ts +29 -0
  704. package/src/interfaces/notification.ts +10 -0
  705. package/src/interfaces/prettify.ts +3 -0
  706. package/src/interfaces/queryKey.ts +23 -0
  707. package/src/interfaces/resourceErrorRouterParams.ts +6 -0
  708. package/src/interfaces/resourceRouterParams.ts +7 -0
  709. package/src/interfaces/successErrorNotification.ts +33 -0
  710. package/src/interfaces/telementry.ts +14 -0
  711. 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,3 @@
1
+ import { OpenNotificationParams } from "../../../interfaces";
2
+ export declare const useHandleNotification: () => (notification: OpenNotificationParams | false | undefined, fallbackNotification?: OpenNotificationParams) => void;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ import { INotificationContext } from "../../../interfaces";
2
+ export declare const useNotification: () => INotificationContext;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ export * from "./useResource";
2
+ export * from "./useResourceWithRoute";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,2 @@
1
+ export declare const useBack: () => import("../../..").BackFunction;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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,2 @@
1
+ export declare const useGo: () => import("../../..").GoFunction;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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,6 @@
1
+ import React from "react";
2
+ export declare const useLink: () => React.ComponentType<React.PropsWithChildren<{
3
+ [prop: string]: any;
4
+ to: string;
5
+ }>>;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ import { ParseFunction } from "src/interfaces";
2
+ export declare const useParse: () => ParseFunction;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,2 @@
1
+ export declare const useParsed: () => import("../../..").ParseResponse;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ import { RouterBindings } from "src/interfaces";
2
+ export declare const useRouterMisuseWarning: (value?: RouterBindings) => void;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,2 @@
1
+ export * from "./useShow";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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,4 @@
1
+ export { useSetLocale } from "./useSetLocale";
2
+ export { useTranslate } from "./useTranslate";
3
+ export { useGetLocale } from "./useGetLocale";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -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"}