@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,70 @@
1
+ /**
2
+ * @author aliemir
3
+ *
4
+ * Router bindings interface, used to define the router bindings of refine.
5
+ *
6
+ * We're marking of the functions as optional, some features may not work properly but this is intentional.
7
+ * Users can choose to use the router bindings or not, or use their own router bindings.
8
+ * Leaving the control to the user is the best way to go.
9
+ *
10
+ * We're defining the functions as function generators, this is to allow the user to use hooks inside the functions.
11
+ *
12
+ * `go` function is used to navigate to a specific route. We're expecting a `GoConfig` object as the only parameter.
13
+ * Passing `query` as an object, will also let users to stringify the object as they like or ignore it completely or even use a custom logic to handle query strings.
14
+ *
15
+ * `back` function is used to navigate back to the previous route. It doesn't take any parameters.
16
+ * This one is a basic function for the back buttons, absence of this function can also hide the back button,
17
+ * but this depends on the UI package implementations.
18
+ *
19
+ * `parse` function is used to parse the current route, query parameters and other information.
20
+ * We're expecting this function to lead refine to the correct resource, action and id (again, not required but recommended).
21
+ * Also there's `params` property, which is used in data hooks and other places.
22
+ * This property has an interface to match but not restricted to it.
23
+ *
24
+ * Instead of a single `useNavigation` hook,
25
+ * we can separate those functions into three different hooks,
26
+ * `useGo`, `useBack` and `useParsed`
27
+ */
28
+ /// <reference types="react" />
29
+ import { CrudFilters, CrudSorting } from "@contexts/data/IDataContext";
30
+ import { IResourceItem } from "./resource";
31
+ import { Action, BaseKey } from "..";
32
+ export declare type GoConfig = {
33
+ to?: string;
34
+ query?: Record<string, unknown>;
35
+ hash?: string;
36
+ options?: {
37
+ keepQuery?: boolean;
38
+ keepHash?: boolean;
39
+ };
40
+ type?: "push" | "replace" | "path";
41
+ };
42
+ export declare type ParsedParams = {
43
+ filters?: CrudFilters;
44
+ sorters?: CrudSorting;
45
+ current?: number;
46
+ pageSize?: number;
47
+ [key: string & {
48
+ _ignore?: boolean;
49
+ }]: any;
50
+ };
51
+ export declare type ParseResponse = {
52
+ params?: ParsedParams;
53
+ resource?: IResourceItem;
54
+ id?: BaseKey;
55
+ action?: Action;
56
+ pathname?: string;
57
+ };
58
+ export declare type GoFunction = (config: GoConfig) => void | string;
59
+ export declare type BackFunction = () => void;
60
+ export declare type ParseFunction = () => ParseResponse;
61
+ export declare type RouterBindings = {
62
+ go?: () => GoFunction;
63
+ back?: () => BackFunction;
64
+ parse?: () => ParseFunction;
65
+ Link?: React.ComponentType<React.PropsWithChildren<{
66
+ to: string;
67
+ [prop: string]: any;
68
+ }>>;
69
+ };
70
+ //# sourceMappingURL=router.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../../src/interfaces/bindings/router.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;AAEH,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAErC,oBAAY,QAAQ,GAAG;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE;QACN,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACtB,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;CACtC,CAAC;AAEF,oBAAY,YAAY,GAAG;IACvB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG;YAAE,OAAO,CAAC,EAAE,OAAO,CAAA;SAAE,GAAG,GAAG,CAAC;CAC9C,CAAC;AAEF,oBAAY,aAAa,GAAG;IACxB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,oBAAY,UAAU,GAAG,CAAC,MAAM,EAAE,QAAQ,KAAK,IAAI,GAAG,MAAM,CAAC;AAE7D,oBAAY,YAAY,GAAG,MAAM,IAAI,CAAC;AAEtC,oBAAY,aAAa,GAAG,MAAM,aAAa,CAAC;AAEhD,oBAAY,cAAc,GAAG;IACzB,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,YAAY,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,aAAa,CAAC;IAC5B,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CACtB,KAAK,CAAC,iBAAiB,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC,CAC/D,CAAC;CACL,CAAC"}
@@ -0,0 +1,26 @@
1
+ import React, { ReactNode } from "react";
2
+ export declare type TitleProps = {
3
+ collapsed: boolean;
4
+ };
5
+ export declare type LayoutProps = {
6
+ Sider?: React.FC<{
7
+ Title?: React.FC<TitleProps>;
8
+ render?: (props: {
9
+ items: JSX.Element[];
10
+ logout: React.ReactNode;
11
+ dashboard: React.ReactNode;
12
+ collapsed: boolean;
13
+ }) => React.ReactNode;
14
+ meta?: Record<string, unknown>;
15
+ }>;
16
+ Header?: React.FC;
17
+ Title?: React.FC<TitleProps>;
18
+ Footer?: React.FC;
19
+ OffLayoutArea?: React.FC;
20
+ dashboard?: boolean;
21
+ children?: ReactNode;
22
+ };
23
+ export declare type DashboardPageProps<TCrudData = any> = {
24
+ initialData?: TCrudData;
25
+ } & Record<any, any>;
26
+ //# sourceMappingURL=customComponents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customComponents.d.ts","sourceRoot":"","sources":["../../src/interfaces/customComponents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,oBAAY,UAAU,GAAG;IACrB,SAAS,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,oBAAY,WAAW,GAAG;IACtB,KAAK,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;QACb,KAAK,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;QAC7B,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE;YACb,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC;YACrB,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;YACxB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;YAC3B,SAAS,EAAE,OAAO,CAAC;SACtB,KAAK,KAAK,CAAC,SAAS,CAAC;QACtB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAClC,CAAC,CAAC;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;IAClB,aAAa,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC;AAEF,oBAAY,kBAAkB,CAAC,SAAS,GAAG,GAAG,IAAI;IAC9C,WAAW,CAAC,EAAE,SAAS,CAAC;CAC3B,GAAG,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ export declare type FormWithSyncWithLocationParams = {
2
+ /**
3
+ * If true, the form will be synced with the location.
4
+ * If an object is passed, the key property will be used as the key for the query params.
5
+ * By default, query params are placed under the key, `${resource.name}-${action}`.
6
+ */
7
+ syncWithLocation?: boolean | {
8
+ key?: string;
9
+ syncId?: boolean;
10
+ };
11
+ };
12
+ //# sourceMappingURL=form-url-params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-url-params.d.ts","sourceRoot":"","sources":["../../src/interfaces/form-url-params.ts"],"names":[],"mappings":"AAAA,oBAAY,8BAA8B,GAAG;IACzC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,GAAG;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;CACnE,CAAC"}
@@ -0,0 +1,49 @@
1
+ import { IResourceItem } from "./bindings/resource";
2
+ export * from "../contexts/data/IDataContext";
3
+ export * from "../contexts/live/ILiveContext";
4
+ export * from "../contexts/auth/IAuthContext";
5
+ export * from "../contexts/refine/IRefineContext";
6
+ export * from "../contexts/translation/ITranslationContext";
7
+ export * from "../contexts/undoableQueue/IUndoableQueueContext";
8
+ export * from "../contexts/resource/IResourceContext";
9
+ export * from "../contexts/unsavedWarn/IUnsavedWarnContext";
10
+ export * from "../contexts/legacy-router/IRouterContext";
11
+ export * from "../contexts/accessControl/IAccessControlContext";
12
+ export * from "../contexts/notification/INotificationContext";
13
+ export * from "../contexts/auditLog/IAuditLogContext";
14
+ export * from "../components/pages/login";
15
+ export * from "./actions";
16
+ export * from "./notification";
17
+ export * from "./mutationMode";
18
+ export * from "./HttpError";
19
+ export * from "./customComponents";
20
+ export * from "./resourceRouterParams";
21
+ export * from "./resourceErrorRouterParams";
22
+ export * from "./mapDataFn";
23
+ export * from "./successErrorNotification";
24
+ export * from "./metaData";
25
+ export * from "./queryKey";
26
+ export * from "./live";
27
+ export * from "./auditLog";
28
+ export declare type BaseKey = string | number;
29
+ export declare type BaseRecord = {
30
+ id?: BaseKey;
31
+ [key: string]: any;
32
+ };
33
+ export interface Option {
34
+ label: string;
35
+ value: string;
36
+ }
37
+ export declare type ITreeMenu = IResourceItem & {
38
+ key?: string;
39
+ children: ITreeMenu[];
40
+ };
41
+ export declare type IMenuItem = IResourceItem & {
42
+ key: string;
43
+ route: string;
44
+ };
45
+ export * from "./form-url-params";
46
+ export * from "./auth";
47
+ export * from "./bindings";
48
+ export * from "./prettify";
49
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iDAAiD,CAAC;AAChE,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAChE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,uCAAuC,CAAC;AAEtD,cAAc,2BAA2B,CAAC;AAG1C,cAAc,WAAW,CAAC;AAG1B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,aAAa,CAAC;AAG5B,cAAc,oBAAoB,CAAC;AAGnC,cAAc,wBAAwB,CAAC;AAGvC,cAAc,6BAA6B,CAAC;AAG5C,cAAc,aAAa,CAAC;AAG5B,cAAc,4BAA4B,CAAC;AAG3C,cAAc,YAAY,CAAC;AAG3B,cAAc,YAAY,CAAC;AAG3B,cAAc,QAAQ,CAAC;AAGvB,cAAc,YAAY,CAAC;AAE3B,oBAAY,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AACtC,oBAAY,UAAU,GAAG;IACrB,EAAE,CAAC,EAAE,OAAO,CAAC;IAEb,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB,CAAC;AACF,MAAM,WAAW,MAAM;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB;AAGD,oBAAY,SAAS,GAAG,aAAa,GAAG;IACpC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,SAAS,EAAE,CAAC;CACzB,CAAC;AAEF,oBAAY,SAAS,GAAG,aAAa,GAAG;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,cAAc,mBAAmB,CAAC;AAElC,cAAc,QAAQ,CAAC;AAEvB,cAAc,YAAY,CAAC;AAE3B,cAAc,YAAY,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { BaseKey } from "..";
2
+ export declare type LiveEvent = {
3
+ channel: string;
4
+ type: "deleted" | "updated" | "created" | "*" | string;
5
+ payload: {
6
+ ids?: BaseKey[];
7
+ [x: string]: any;
8
+ };
9
+ date: Date;
10
+ };
11
+ //# sourceMappingURL=LiveEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LiveEvent.d.ts","sourceRoot":"","sources":["../../../src/interfaces/live/LiveEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAE7B,oBAAY,SAAS,GAAG;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,GAAG,GAAG,MAAM,CAAC;IACvD,OAAO,EAAE;QACL,GAAG,CAAC,EAAE,OAAO,EAAE,CAAC;QAChB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IACF,IAAI,EAAE,IAAI,CAAC;CACd,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { LiveEvent } from ".";
2
+ import { BaseKey } from "..";
3
+ export declare type LiveModeProps = {
4
+ /**
5
+ * Whether to update data automatically ("auto") or not ("manual") if a related live event is received. The "off" value is used to avoid creating a subscription.
6
+ * @type [`"auto" | "manual" | "off"`](/docs/api-reference/core/providers/live-provider/#livemode)
7
+ * @default `"off"`
8
+ */
9
+ liveMode?: "auto" | "manual" | "off";
10
+ /**
11
+ * Callback to handle all related live events of this hook.
12
+ * @type [`(event: LiveEvent) => void`](/docs/api-reference/core/interfaceReferences/#livemodeprops)
13
+ * @default `undefined`
14
+ */
15
+ onLiveEvent?: (event: LiveEvent) => void;
16
+ /**
17
+ * Params to pass to liveProvider's subscribe method if liveMode is enabled.
18
+ * @type [`{ ids?: BaseKey[]; [key: string]: any; }`](/docs/api-reference/core/interfaceReferences/#livemodeprops)
19
+ * @default `undefined`
20
+ */
21
+ liveParams?: {
22
+ ids?: BaseKey[];
23
+ [key: string]: any;
24
+ };
25
+ };
26
+ export declare type ILiveModeContextProvider = LiveModeProps;
27
+ //# sourceMappingURL=LiveModeProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LiveModeProps.d.ts","sourceRoot":"","sources":["../../../src/interfaces/live/LiveModeProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAE7B,oBAAY,aAAa,GAAG;IACxB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;IACrC;;;;OAIG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACzC;;;;OAIG;IACH,UAAU,CAAC,EAAE;QACT,GAAG,CAAC,EAAE,OAAO,EAAE,CAAC;QAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACtB,CAAC;CACL,CAAC;AAEF,oBAAY,wBAAwB,GAAG,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./LiveEvent";
2
+ export * from "./LiveModeProps";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interfaces/live/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export interface MapDataFn<TItem, TVariables> {
2
+ (item: TItem, index?: number, items?: TItem[]): TVariables;
3
+ }
4
+ //# sourceMappingURL=mapDataFn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapDataFn.d.ts","sourceRoot":"","sources":["../../src/interfaces/mapDataFn.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS,CAAC,KAAK,EAAE,UAAU;IACxC,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC;CAC9D"}
@@ -0,0 +1,3 @@
1
+ import { NestedField } from "./nestedField";
2
+ export declare type Fields = Array<string | object | NestedField>;
3
+ //# sourceMappingURL=fields.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../../src/interfaces/metaData/fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,oBAAY,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,WAAW,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./metaDataQuery";
2
+ export * from "./metaQuery";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interfaces/metaData/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { QueryFunctionContext } from "@tanstack/react-query";
2
+ import { QueryBuilderOptions } from "./queryBuilderOptions";
3
+ /**
4
+ * @deprecated `MetaDataQuery` is deprecated with refine@4, use `MetaQuery` instead, however, we still support `MetaDataQuery` for backward compatibility.
5
+ */
6
+ export declare type MetaDataQuery = {
7
+ [k: string]: any;
8
+ queryContext?: Omit<QueryFunctionContext, "meta">;
9
+ } & QueryBuilderOptions;
10
+ //# sourceMappingURL=metaDataQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metaDataQuery.d.ts","sourceRoot":"","sources":["../../../src/interfaces/metaData/metaDataQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;GAEG;AACH,oBAAY,aAAa,GAAG;IACxB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IACjB,YAAY,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;CACrD,GAAG,mBAAmB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { QueryFunctionContext } from "@tanstack/react-query";
2
+ import { QueryBuilderOptions } from "./queryBuilderOptions";
3
+ export declare type MetaQuery = {
4
+ [k: string]: any;
5
+ queryContext?: Omit<QueryFunctionContext, "meta">;
6
+ } & QueryBuilderOptions;
7
+ //# sourceMappingURL=metaQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metaQuery.d.ts","sourceRoot":"","sources":["../../../src/interfaces/metaData/metaQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,oBAAY,SAAS,GAAG;IACpB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IACjB,YAAY,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;CACrD,GAAG,mBAAmB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Fields } from "./fields";
2
+ import { QueryBuilderOptions } from "./queryBuilderOptions";
3
+ export declare type NestedField = {
4
+ operation: string;
5
+ variables: QueryBuilderOptions[];
6
+ fields: Fields;
7
+ };
8
+ //# sourceMappingURL=nestedField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nestedField.d.ts","sourceRoot":"","sources":["../../../src/interfaces/metaData/nestedField.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,oBAAY,WAAW,GAAG;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,mBAAmB,EAAE,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { VariableOptions } from "./variableOptions";
2
+ import { Fields } from "./fields";
3
+ export interface QueryBuilderOptions {
4
+ operation?: string;
5
+ fields?: Fields;
6
+ variables?: VariableOptions;
7
+ }
8
+ //# sourceMappingURL=queryBuilderOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queryBuilderOptions.d.ts","sourceRoot":"","sources":["../../../src/interfaces/metaData/queryBuilderOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,WAAW,mBAAmB;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,eAAe,CAAC;CAC/B"}
@@ -0,0 +1,10 @@
1
+ export declare type VariableOptions = {
2
+ type?: string;
3
+ name?: string;
4
+ value: any;
5
+ list?: boolean;
6
+ required?: boolean;
7
+ } | {
8
+ [k: string]: any;
9
+ };
10
+ //# sourceMappingURL=variableOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variableOptions.d.ts","sourceRoot":"","sources":["../../../src/interfaces/metaData/variableOptions.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe,GACrB;IACI,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;IACX,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,GACD;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { BaseRecord, GetListResponse, GetOneResponse, IQueryKeys } from "../interfaces";
2
+ import { QueryKey } from "@tanstack/react-query";
3
+ export declare type MutationMode = "pessimistic" | "optimistic" | "undoable";
4
+ export declare type QueryResponse<T = BaseRecord> = GetListResponse<T> | GetOneResponse<T>;
5
+ export declare type PreviousQuery<TData> = [QueryKey, TData | unknown];
6
+ export declare type PrevContext<TData> = {
7
+ previousQueries: PreviousQuery<TData>[];
8
+ queryKey: IQueryKeys;
9
+ };
10
+ export declare type Context = {
11
+ previousQueries: ContextQuery[];
12
+ };
13
+ export declare type ContextQuery<T = BaseRecord> = {
14
+ query: QueryResponse<T>;
15
+ queryKey: QueryKey;
16
+ };
17
+ //# sourceMappingURL=mutationMode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutationMode.d.ts","sourceRoot":"","sources":["../../src/interfaces/mutationMode.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,UAAU,EACV,eAAe,EACf,cAAc,EACd,UAAU,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,oBAAY,YAAY,GAAG,aAAa,GAAG,YAAY,GAAG,UAAU,CAAC;AAErE,oBAAY,aAAa,CAAC,CAAC,GAAG,UAAU,IAClC,eAAe,CAAC,CAAC,CAAC,GAClB,cAAc,CAAC,CAAC,CAAC,CAAC;AAExB,oBAAY,aAAa,CAAC,KAAK,IAAI,CAAC,QAAQ,EAAE,KAAK,GAAG,OAAO,CAAC,CAAC;AAE/D,oBAAY,WAAW,CAAC,KAAK,IAAI;IAC7B,eAAe,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;IACxC,QAAQ,EAAE,UAAU,CAAC;CACxB,CAAC;AAEF,oBAAY,OAAO,GAAG;IAClB,eAAe,EAAE,YAAY,EAAE,CAAC;CACnC,CAAC;AAEF,oBAAY,YAAY,CAAC,CAAC,GAAG,UAAU,IAAI;IACvC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IACxB,QAAQ,EAAE,QAAQ,CAAC;CACtB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { BaseKey } from ".";
2
+ export interface IUndoableQueue {
3
+ id: BaseKey;
4
+ resource: string;
5
+ cancelMutation: () => void;
6
+ doMutation: () => void;
7
+ seconds: number;
8
+ isRunning: boolean;
9
+ isSilent: boolean;
10
+ }
11
+ //# sourceMappingURL=notification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../src/interfaces/notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;AAC5B,MAAM,WAAW,cAAc;IAC3B,EAAE,EAAE,OAAO,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACrB"}
@@ -0,0 +1,4 @@
1
+ export declare type Prettify<T> = {
2
+ [K in keyof T]: T[K];
3
+ } & {};
4
+ //# sourceMappingURL=prettify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prettify.d.ts","sourceRoot":"","sources":["../../src/interfaces/prettify.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ,CAAC,CAAC,IAAI;KACrB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACvB,GAAG,EAAE,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { QueryKey } from "@tanstack/react-query";
2
+ import { UseListConfig } from "@hooks/data/useList";
3
+ import { BaseKey, CrudFilters, CrudSorting, Pagination } from "src/interfaces";
4
+ export interface IQueryKeys {
5
+ all: QueryKey;
6
+ resourceAll: QueryKey;
7
+ list: (config?: UseListConfig | {
8
+ pagination?: Required<Pagination>;
9
+ hasPagination?: boolean;
10
+ sorters?: CrudSorting;
11
+ filters?: CrudFilters;
12
+ } | undefined) => QueryKey;
13
+ many: (ids?: BaseKey[]) => QueryKey;
14
+ detail: (id?: BaseKey) => QueryKey;
15
+ logList: (meta?: Record<number | string, any>) => QueryKey;
16
+ }
17
+ //# sourceMappingURL=queryKey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queryKey.d.ts","sourceRoot":"","sources":["../../src/interfaces/queryKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE/E,MAAM,WAAW,UAAU;IACvB,GAAG,EAAE,QAAQ,CAAC;IACd,WAAW,EAAE,QAAQ,CAAC;IACtB,IAAI,EAAE,CACF,MAAM,CAAC,EACD,aAAa,GACb;QACI,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;QAClC,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,OAAO,CAAC,EAAE,WAAW,CAAC;QACtB,OAAO,CAAC,EAAE,WAAW,CAAC;KACzB,GACD,SAAS,KACd,QAAQ,CAAC;IACd,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,KAAK,QAAQ,CAAC;IACpC,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,KAAK,QAAQ,CAAC;IACnC,OAAO,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,GAAG,CAAC,KAAK,QAAQ,CAAC;CAC9D"}
@@ -0,0 +1,6 @@
1
+ import { ActionWithPage } from "./actions";
2
+ export declare type ResourceErrorRouterParams = {
3
+ resource: string;
4
+ action: ActionWithPage | undefined;
5
+ };
6
+ //# sourceMappingURL=resourceErrorRouterParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourceErrorRouterParams.d.ts","sourceRoot":"","sources":["../../src/interfaces/resourceErrorRouterParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,oBAAY,yBAAyB,GAAG;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,cAAc,GAAG,SAAS,CAAC;CACtC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { RouteAction } from "./actions";
2
+ export declare type ResourceRouterParams = {
3
+ resource: string;
4
+ id?: string;
5
+ action: RouteAction;
6
+ };
7
+ //# sourceMappingURL=resourceRouterParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourceRouterParams.d.ts","sourceRoot":"","sources":["../../src/interfaces/resourceRouterParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,oBAAY,oBAAoB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,WAAW,CAAC;CACvB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { OpenNotificationParams } from ".";
2
+ export declare type SuccessErrorNotification<TData = unknown, TError = unknown, TVariables = unknown> = {
3
+ /**
4
+ * Success notification configuration to be displayed when the mutation is successful.
5
+ * @default '"There was an error creating resource (status code: `statusCode`)" or "Error when updating resource (status code: statusCode)"'
6
+
7
+ */
8
+ successNotification?: OpenNotificationParams | false | ((data?: TData, values?: TVariables, resource?: string) => OpenNotificationParams);
9
+ /**
10
+ * Error notification configuration to be displayed when the mutation fails.
11
+ * @default '"There was an error creating resource (status code: `statusCode`)" or "Error when updating resource (status code: statusCode)"'
12
+ */
13
+ errorNotification?: OpenNotificationParams | false | ((error?: TError, values?: TVariables, resource?: string) => OpenNotificationParams);
14
+ };
15
+ //# sourceMappingURL=successErrorNotification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"successErrorNotification.d.ts","sourceRoot":"","sources":["../../src/interfaces/successErrorNotification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,GAAG,CAAC;AAE3C,oBAAY,wBAAwB,CAChC,KAAK,GAAG,OAAO,EACf,MAAM,GAAG,OAAO,EAChB,UAAU,GAAG,OAAO,IACpB;IACA;;;;OAIG;IACH,mBAAmB,CAAC,EACd,sBAAsB,GACtB,KAAK,GACL,CAAC,CACG,IAAI,CAAC,EAAE,KAAK,EACZ,MAAM,CAAC,EAAE,UAAU,EACnB,QAAQ,CAAC,EAAE,MAAM,KAChB,sBAAsB,CAAC,CAAC;IACnC;;;OAGG;IACH,iBAAiB,CAAC,EACZ,sBAAsB,GACtB,KAAK,GACL,CAAC,CACG,KAAK,CAAC,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,UAAU,EACnB,QAAQ,CAAC,EAAE,MAAM,KAChB,sBAAsB,CAAC,CAAC;CACtC,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare type ITelemetryData = {
2
+ providers: {
3
+ auth?: boolean;
4
+ data?: boolean;
5
+ router?: boolean;
6
+ notification?: boolean;
7
+ live?: boolean;
8
+ auditLog?: boolean;
9
+ i18n?: boolean;
10
+ accessControl?: boolean;
11
+ };
12
+ version: string;
13
+ resourceCount: number;
14
+ };
15
+ //# sourceMappingURL=telementry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"telementry.d.ts","sourceRoot":"","sources":["../../src/interfaces/telementry.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc,GAAG;IACzB,SAAS,EAAE;QACP,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,aAAa,CAAC,EAAE,OAAO,CAAC;KAC3B,CAAC;IACF,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "@refinedev/core",
3
+ "version": "4.0.0",
4
+ "description": "refine is a React-based framework for building internal tools, rapidly. It ships with Ant Design System, an enterprise-level UI toolkit.",
5
+ "private": false,
6
+ "main": "dist/index.js",
7
+ "module": "dist/esm/index.js",
8
+ "typings": "dist/index.d.ts",
9
+ "scripts": {
10
+ "start": "tsup --watch --format esm,cjs,iife --legacy-output",
11
+ "build": "tsup --format esm,cjs,iife --minify --legacy-output",
12
+ "test": "jest --passWithNoTests --runInBand",
13
+ "prepare": "npm run build"
14
+ },
15
+ "peerDependencies": {
16
+ "react": "^17.0.0 || ^18.0.0",
17
+ "@tanstack/react-query": "^4.10.1",
18
+ "react-dom": "^17.0.0 || ^18.0.0",
19
+ "@types/react": "^17.0.0 || ^18.0.0",
20
+ "@types/react-dom": "^17.0.0 || ^18.0.0"
21
+ },
22
+ "devDependencies": {
23
+ "@esbuild-plugins/node-resolve": "^0.1.4",
24
+ "@testing-library/jest-dom": "^5.16.4",
25
+ "@testing-library/react": "^13.1.1",
26
+ "@testing-library/react-hooks": "^8.0.0",
27
+ "@testing-library/user-event": "^14.1.1",
28
+ "@types/jest": "^29.2.4",
29
+ "@types/lodash": "^4.14.171",
30
+ "@types/papaparse": "^5.2.5",
31
+ "@types/pluralize": "^0.0.29",
32
+ "@types/qs": "^6.9.7",
33
+ "@types/react": "^18.0.0",
34
+ "@types/react-dom": "^18.0.0",
35
+ "@types/react-router-dom": "^5.1.8",
36
+ "@types/testing-library__jest-dom": "^5.14.3",
37
+ "identity-obj-proxy": "^3.0.0",
38
+ "jest": "^29.3.1",
39
+ "jest-environment-jsdom": "^29.3.1",
40
+ "ts-jest": "^29.0.3",
41
+ "tsup": "^5.11.13",
42
+ "typescript": "^4.7.4"
43
+ },
44
+ "dependencies": {
45
+ "export-to-csv-fix-source-map": "^0.2.1",
46
+ "lodash-es": "^4.17.21",
47
+ "lodash": "^4.17.21",
48
+ "papaparse": "^5.3.0",
49
+ "pluralize": "^8.0.0",
50
+ "qs": "^6.10.1",
51
+ "@tanstack/react-query-devtools": "^4.10.1",
52
+ "@tanstack/react-query": "^4.10.1",
53
+ "tslib": "^2.3.1",
54
+ "warn-once": "^0.1.0"
55
+ },
56
+ "repository": {
57
+ "type": "git",
58
+ "url": "https://github.com/refinedev/refine.git",
59
+ "directory": "packages/core"
60
+ },
61
+ "author": "refine",
62
+ "license": "MIT",
63
+ "gitHead": "17dd5af3e4c9f7f09e1e707362c6f5a9d1cab8a8",
64
+ "publishConfig": {
65
+ "access": "public"
66
+ }
67
+ }