Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

Update to react-admin 5.3.0

React-Admin CIa57a259e265e
diff --git a/package-lock.json b/package-lock.json
index 3ea8dbbe..c193f83d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -22,10 +22,10 @@
"lodash": "~4.17.5",
"papaparse": "^5.4.1",
"prop-types": "^15.8.1",
- "ra-data-fakerest": "^5.1.1",
+ "ra-data-fakerest": "^5.3.0",
"ra-supabase": "^3.2.0",
"react": "^18.2.0",
- "react-admin": "^5.1.0",
+ "react-admin": "^5.3.0",
"react-cropper": "^2.3.3",
"react-dom": "^18.2.0",
"react-error-boundary": "^4.0.12",
@@ -9869,11 +9869,6 @@
"resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
"integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
},
- "node_modules/hotscript": {
- "version": "1.0.13",
- "resolved": "https://registry.npmjs.org/hotscript/-/hotscript-1.0.13.tgz",
- "integrity": "sha512-C++tTF1GqkGYecL+2S1wJTfoH6APGAsbb7PAWQ3iVIwgG/EFseAfEVOKFgAFq4yK3+6j1EjUD4UQ9dRJHX/sSQ=="
- },
"node_modules/html-tags": {
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/html-tags/-/html-tags-3.3.1.tgz",
@@ -11980,6 +11975,7 @@
"version": "2.6.0",
"resolved": "https://registry.npmjs.org/node-polyglot/-/node-polyglot-2.6.0.tgz",
"integrity": "sha512-ZZFkaYzIfGfBvSM6QhA9dM8EEaUJOVewzGSRcXWbJELXDj0lajAtKaENCYxvF5yE+TgHg6NQb0CmgYMsMdcNJQ==",
+ "license": "BSD-2-Clause",
"dependencies": {
"hasown": "^2.0.2",
"object.entries": "^1.1.8",
@@ -13011,15 +13007,15 @@
]
},
"node_modules/ra-core": {
- "version": "5.1.1",
- "resolved": "https://registry.npmjs.org/ra-core/-/ra-core-5.1.1.tgz",
- "integrity": "sha512-b0DR83yJZscWLNIoSNh61gWEySCLbtBuR7c74i6WCVGi4uJEAr+1+nn+1UYBPRPg3hMjMud672PRMwu5iLioaQ==",
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/ra-core/-/ra-core-5.3.0.tgz",
+ "integrity": "sha512-e5Y0u+P+0Kx2XeYEAUDV63NdlAvMtlrb4ndYLtIbCaIeOx1o6GXlD2BedICaYSb6XXjz+KoNZ1nmWuZ6tS4f7Q==",
+ "license": "MIT",
"dependencies": {
"@tanstack/react-query": "^5.8.4",
"clsx": "^2.1.1",
"date-fns": "^3.6.0",
"eventemitter3": "^5.0.1",
- "hotscript": "^1.0.12",
"inflection": "^3.0.0",
"jsonexport": "^3.2.0",
"lodash": "~4.17.5",
@@ -13030,15 +13026,16 @@
"peerDependencies": {
"react": "^18.0.0 || ^19.0.0",
"react-dom": "^18.0.0 || ^19.0.0",
- "react-hook-form": "^7.52.0",
+ "react-hook-form": "^7.53.0",
"react-router": "^6.22.0",
"react-router-dom": "^6.22.0"
}
},
"node_modules/ra-data-fakerest": {
- "version": "5.1.1",
- "resolved": "https://registry.npmjs.org/ra-data-fakerest/-/ra-data-fakerest-5.1.1.tgz",
- "integrity": "sha512-NdbhvddvAuN/P3mmF13Cb/rX1pRaF4O+wHpaeNuOGzs0x8fGh4DjpkTiRnLbsX0+gLn+dPWHnPsePQFW71K7uQ==",
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/ra-data-fakerest/-/ra-data-fakerest-5.3.0.tgz",
+ "integrity": "sha512-w1Qlfa45Td5ht7FmQadpoH4Xei0rg5HlEPeAg6hPaJhGUmQwiNYsd0WZc71NUShLsSfot0k878VzGjSxvmd/5w==",
+ "license": "MIT",
"dependencies": {
"fakerest": "^4.0.1"
},
@@ -13047,20 +13044,22 @@
}
},
"node_modules/ra-i18n-polyglot": {
- "version": "5.1.1",
- "resolved": "https://registry.npmjs.org/ra-i18n-polyglot/-/ra-i18n-polyglot-5.1.1.tgz",
- "integrity": "sha512-ckzJy9WLCMBaSMk4Tgknf+/rRQ1R8ghXpVRM2gCzYlBI1lYDGk9qh0PMXk3FC7u6fCADy2q0T1KGfJNbalzZgg==",
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/ra-i18n-polyglot/-/ra-i18n-polyglot-5.3.0.tgz",
+ "integrity": "sha512-Dc2m6MlpF1qHeqH5iJukd7t6oVxnqC/k8AY+HEYQCXCTHhVWkzHDjLOilcKHbgiY6st1p6KoCL93CP8lyEjaqg==",
+ "license": "MIT",
"dependencies": {
"node-polyglot": "^2.2.2",
- "ra-core": "^5.1.1"
+ "ra-core": "^5.3.0"
}
},
"node_modules/ra-language-english": {
- "version": "5.1.1",
- "resolved": "https://registry.npmjs.org/ra-language-english/-/ra-language-english-5.1.1.tgz",
- "integrity": "sha512-AB579oGAvhb/usuiXBJnVk4WKP3tIclBsVwTqBwfgd4bSg9GLQEoqZn53WPCBfIgyO7sclfKz1h1Wh5F7IqQWw==",
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/ra-language-english/-/ra-language-english-5.3.0.tgz",
+ "integrity": "sha512-Gp8dt4annXcxFd7BJ/EgngLmI74A25++iwE5lS8WqD6yBL3byU5Xwu9+CQ8YQkU9+cQEFhLhkWIGfXXczxSymw==",
+ "license": "MIT",
"dependencies": {
- "ra-core": "^5.1.1"
+ "ra-core": "^5.3.0"
}
},
"node_modules/ra-supabase": {
@@ -13107,16 +13106,16 @@
}
},
"node_modules/ra-ui-materialui": {
- "version": "5.1.1",
- "resolved": "https://registry.npmjs.org/ra-ui-materialui/-/ra-ui-materialui-5.1.1.tgz",
- "integrity": "sha512-A1MaqPKPJ5KJYIVKhw8+3q2O4zV6LjK96Nfs+GmST0/uYPa4osxsujDwz+Kk6Br+RT0u4xM9fpBMw5KceHwoZw==",
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/ra-ui-materialui/-/ra-ui-materialui-5.3.0.tgz",
+ "integrity": "sha512-jmEqI77LDcEbhrMC45QM1YmUMSOwzNH8dEjr9A/Xm+UW+YnzOFDkVJJumfP3jpFL4wviX48Qy5mBi54t19CYjw==",
+ "license": "MIT",
"dependencies": {
"@tanstack/react-query": "^5.8.4",
"autosuggest-highlight": "^3.1.1",
"clsx": "^2.1.1",
"css-mediaquery": "^0.1.2",
"dompurify": "^2.4.3",
- "hotscript": "^1.0.12",
"inflection": "^3.0.0",
"jsonexport": "^3.2.0",
"lodash": "~4.17.5",
@@ -13128,6 +13127,7 @@
"peerDependencies": {
"@mui/icons-material": "^5.15.20",
"@mui/material": "^5.15.20",
+ "@mui/utils": "^5.15.20",
"ra-core": "^5.0.0",
"react": "^18.0.0 || ^19.0.0",
"react-dom": "^18.0.0 || ^19.0.0",
@@ -13208,19 +13208,20 @@
}
},
"node_modules/react-admin": {
- "version": "5.1.1",
- "resolved": "https://registry.npmjs.org/react-admin/-/react-admin-5.1.1.tgz",
- "integrity": "sha512-yImS5Zz2GvJS0qt0tLClFbS85VYGqYkL6Q8giTdljUWTQ8V6W0e4lem7xtciKyyB1DTWcVw8pL6xp3q+lUsieg==",
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/react-admin/-/react-admin-5.3.0.tgz",
+ "integrity": "sha512-86M0c76ClN7mbMsONLY83lV32hAQREH1hnhHXANZPS4BnRSKSyFjI93Wke+TwUkWlYiqXlEwaYzISfDTTU3xqA==",
+ "license": "MIT",
"dependencies": {
"@emotion/react": "^11.4.1",
"@emotion/styled": "^11.3.0",
"@mui/icons-material": "^5.15.20",
"@mui/material": "^5.15.20",
- "ra-core": "^5.1.1",
- "ra-i18n-polyglot": "^5.1.1",
- "ra-language-english": "^5.1.1",
- "ra-ui-materialui": "^5.1.1",
- "react-hook-form": "^7.52.0",
+ "ra-core": "^5.3.0",
+ "ra-i18n-polyglot": "^5.3.0",
+ "ra-language-english": "^5.3.0",
+ "ra-ui-materialui": "^5.3.0",
+ "react-hook-form": "^7.53.0",
"react-router": "^6.22.0",
"react-router-dom": "^6.22.0"
},
@@ -13371,11 +13372,12 @@
}
},
"node_modules/react-hook-form": {
- "version": "7.52.1",
- "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.52.1.tgz",
- "integrity": "sha512-uNKIhaoICJ5KQALYZ4TOaOLElyM+xipord+Ha3crEFhTntdLvWZqVY49Wqd/0GiVCA/f9NjemLeiNPjG7Hpurg==",
+ "version": "7.53.1",
+ "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.53.1.tgz",
+ "integrity": "sha512-6aiQeBda4zjcuaugWvim9WsGqisoUk+etmFEsSUMm451/Ic8L/UAb7sRtMj3V+Hdzm6mMjU1VhiSzYUZeBm0Vg==",
+ "license": "MIT",
"engines": {
- "node": ">=12.22.0"
+ "node": ">=18.0.0"
},
"funding": {
"type": "opencollective",
@@ -15645,6 +15647,7 @@
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/warning/-/warning-4.0.3.tgz",
"integrity": "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==",
+ "license": "MIT",
"dependencies": {
"loose-envify": "^1.0.0"
}
diff --git a/package.json b/package.json
index f00187bd..48cf0028 100644
--- a/package.json
+++ b/package.json
@@ -25,10 +25,10 @@
"lodash": "~4.17.5",
"papaparse": "^5.4.1",
"prop-types": "^15.8.1",
- "ra-data-fakerest": "^5.1.1",
+ "ra-data-fakerest": "^5.3.0",
"ra-supabase": "^3.2.0",
"react": "^18.2.0",
- "react-admin": "^5.1.0",
+ "react-admin": "^5.3.0",
"react-cropper": "^2.3.3",
"react-dom": "^18.2.0",
"react-error-boundary": "^4.0.12",
diff --git a/src/providers/supabase/authProvider.ts b/src/providers/supabase/authProvider.ts
index 81535878..7d546bda 100644
--- a/src/providers/supabase/authProvider.ts
+++ b/src/providers/supabase/authProvider.ts
@@ -92,6 +92,8 @@ export const authProvider: AuthProvider = {
},
async getPermissions(params) {
const isInitialized = await getIsInitialized();
- return isInitialized ? baseAuthProvider.getPermissions(params) : null;
+ return isInitialized && baseAuthProvider.getPermissions
+ ? baseAuthProvider.getPermissions(params)
+ : null;
},
};