@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 CHANGED
@@ -248,13 +248,13 @@ var LoginForm = ({
248
248
  if (hasPublicApiKey && crudifyFromHook) {
249
249
  response = await crudifyFromHook.login(username, password);
250
250
  } else {
251
- const data = [
252
- {
253
- operation: "loginWithSubdomain",
254
- data: { username, password, subdomain }
255
- }
256
- ];
257
- response = await import_crudify_browser2.default.transaction(data);
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
- const data = [
213
- {
214
- operation: "loginWithSubdomain",
215
- data: { username, password, subdomain }
216
- }
217
- ];
218
- response = await crudify2.transaction(data);
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.39",
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.82",
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
- "react": "^19.1.0",
38
- "react-dom": "^19.1.0",
37
+ "@mui/icons-material": "^7.1.0",
39
38
  "@mui/material": "^7.1.0",
40
- "@mui/icons-material": "^7.1.0"
39
+ "react": "^19.1.0",
40
+ "react-dom": "^19.1.0"
41
41
  },
42
42
  "devDependencies": {
43
- "typescript": "^5.1.3",
43
+ "@types/crypto-js": "^4.2.2",
44
44
  "@types/react": "^19.0.3",
45
45
  "@types/react-dom": "^19.0.1",
46
- "@types/crypto-js": "^4.2.2",
47
- "tsup": "^8.4.0"
46
+ "tsup": "^8.4.0",
47
+ "typescript": "^5.1.3"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"