@pelcro/react-pelcro-js 3.12.0-beta.2 → 3.12.0-beta.3

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.cjs.js CHANGED
@@ -9610,7 +9610,11 @@ const authenticatedButtons = () => {
9610
9610
 
9611
9611
  if (pelcroLoginByClass) {
9612
9612
  for (let i = 0; i < pelcroLoginByClass.length; i++) {
9613
- pelcroLoginByClass.item(i).innerHTML = translations.account;
9613
+ if (pelcroLoginByClass.item(i).hasAttribute("data-dashboard-text")) {
9614
+ pelcroLoginByClass.item(i).innerHTML = pelcroLoginByClass.item(i).getAttribute("data-dashboard-text");
9615
+ } else {
9616
+ pelcroLoginByClass.item(i).innerHTML = translations.account;
9617
+ }
9614
9618
  }
9615
9619
  }
9616
9620
 
@@ -9630,7 +9634,11 @@ const unauthenticatedButtons = () => {
9630
9634
 
9631
9635
  if (pelcroLoginByClass) {
9632
9636
  for (let i = 0; i < pelcroLoginByClass.length; i++) {
9633
- pelcroLoginByClass.item(i).innerHTML = translations.login;
9637
+ if (pelcroLoginByClass.item(i).hasAttribute("data-login-text")) {
9638
+ pelcroLoginByClass.item(i).innerHTML = pelcroLoginByClass.item(i).getAttribute("data-login-text");
9639
+ } else {
9640
+ pelcroLoginByClass.item(i).innerHTML = translations.login;
9641
+ }
9634
9642
  }
9635
9643
  }
9636
9644
  };
package/dist/index.esm.js CHANGED
@@ -9580,7 +9580,11 @@ const authenticatedButtons = () => {
9580
9580
 
9581
9581
  if (pelcroLoginByClass) {
9582
9582
  for (let i = 0; i < pelcroLoginByClass.length; i++) {
9583
- pelcroLoginByClass.item(i).innerHTML = translations.account;
9583
+ if (pelcroLoginByClass.item(i).hasAttribute("data-dashboard-text")) {
9584
+ pelcroLoginByClass.item(i).innerHTML = pelcroLoginByClass.item(i).getAttribute("data-dashboard-text");
9585
+ } else {
9586
+ pelcroLoginByClass.item(i).innerHTML = translations.account;
9587
+ }
9584
9588
  }
9585
9589
  }
9586
9590
 
@@ -9600,7 +9604,11 @@ const unauthenticatedButtons = () => {
9600
9604
 
9601
9605
  if (pelcroLoginByClass) {
9602
9606
  for (let i = 0; i < pelcroLoginByClass.length; i++) {
9603
- pelcroLoginByClass.item(i).innerHTML = translations.login;
9607
+ if (pelcroLoginByClass.item(i).hasAttribute("data-login-text")) {
9608
+ pelcroLoginByClass.item(i).innerHTML = pelcroLoginByClass.item(i).getAttribute("data-login-text");
9609
+ } else {
9610
+ pelcroLoginByClass.item(i).innerHTML = translations.login;
9611
+ }
9604
9612
  }
9605
9613
  }
9606
9614
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pelcro/react-pelcro-js",
3
3
  "description": "Pelcro's React UI Elements",
4
- "version": "3.12.0-beta.2",
4
+ "version": "3.12.0-beta.3",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",