@nocios/crudify-ui 1.0.39 → 1.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -7
- package/dist/index.mjs +7 -7
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -248,13 +248,13 @@ var LoginForm = ({
|
|
|
248
248
|
if (hasPublicApiKey && crudifyFromHook) {
|
|
249
249
|
response = await crudifyFromHook.login(username, password);
|
|
250
250
|
} else {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
251
|
+
try {
|
|
252
|
+
import_crudify_browser2.default.config(config.env || "prod");
|
|
253
|
+
response = await import_crudify_browser2.default.loginWithSubdomain(username, password, subdomain);
|
|
254
|
+
} catch (subdomainError) {
|
|
255
|
+
console.error("Error during subdomain login:", subdomainError);
|
|
256
|
+
throw subdomainError;
|
|
257
|
+
}
|
|
258
258
|
}
|
|
259
259
|
setLoading(false);
|
|
260
260
|
if (response.success) {
|
package/dist/index.mjs
CHANGED
|
@@ -209,13 +209,13 @@ var LoginForm = ({
|
|
|
209
209
|
if (hasPublicApiKey && crudifyFromHook) {
|
|
210
210
|
response = await crudifyFromHook.login(username, password);
|
|
211
211
|
} else {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
212
|
+
try {
|
|
213
|
+
crudify2.config(config.env || "prod");
|
|
214
|
+
response = await crudify2.loginWithSubdomain(username, password, subdomain);
|
|
215
|
+
} catch (subdomainError) {
|
|
216
|
+
console.error("Error during subdomain login:", subdomainError);
|
|
217
|
+
throw subdomainError;
|
|
218
|
+
}
|
|
219
219
|
}
|
|
220
220
|
setLoading(false);
|
|
221
221
|
if (response.success) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocios/crudify-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.40",
|
|
4
4
|
"description": "Biblioteca de componentes UI para Crudify",
|
|
5
5
|
"author": "Nocios",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@mui/icons-material": "^7.1.0",
|
|
26
26
|
"@mui/material": "^7.1.0",
|
|
27
27
|
"@mui/x-data-grid": "^8.5.1",
|
|
28
|
-
"@nocios/crudify-browser": "^1.0.
|
|
28
|
+
"@nocios/crudify-browser": "^1.0.83",
|
|
29
29
|
"crypto-js": "^4.2.0",
|
|
30
30
|
"i18next-browser-languagedetector": "^8.1.0",
|
|
31
31
|
"i18next-http-backend": "^3.0.2",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"react-i18next": "^15.5.2"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"
|
|
38
|
-
"react-dom": "^19.1.0",
|
|
37
|
+
"@mui/icons-material": "^7.1.0",
|
|
39
38
|
"@mui/material": "^7.1.0",
|
|
40
|
-
"
|
|
39
|
+
"react": "^19.1.0",
|
|
40
|
+
"react-dom": "^19.1.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"
|
|
43
|
+
"@types/crypto-js": "^4.2.2",
|
|
44
44
|
"@types/react": "^19.0.3",
|
|
45
45
|
"@types/react-dom": "^19.0.1",
|
|
46
|
-
"
|
|
47
|
-
"
|
|
46
|
+
"tsup": "^8.4.0",
|
|
47
|
+
"typescript": "^5.1.3"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|