@pelcro/react-pelcro-js 3.13.0-beta.9 → 3.14.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.
package/dist/index.cjs.js CHANGED
@@ -10366,6 +10366,18 @@ const init$1 = () => {
10366
10366
  purchaseItem,
10367
10367
  setSubscriptionToManageMembers
10368
10368
  } = usePelcro.getStore();
10369
+ const pelcroDashboardButtonsByClass = document.getElementsByClassName("pelcro-dashboard-button");
10370
+
10371
+ if (pelcroDashboardButtonsByClass.length !== 0) {
10372
+ for (let i = 0; i < pelcroDashboardButtonsByClass.length; i++) {
10373
+ pelcroDashboardButtonsByClass[i].addEventListener("click", () => {
10374
+ if (isAuthenticated()) {
10375
+ switchView("dashboard");
10376
+ }
10377
+ });
10378
+ }
10379
+ }
10380
+
10369
10381
  const pelcroLoginButtonsByClass = document.getElementsByClassName("pelcro-login-button");
10370
10382
 
10371
10383
  if (pelcroLoginButtonsByClass.length !== 0) {
package/dist/index.esm.js CHANGED
@@ -10336,6 +10336,18 @@ const init$1 = () => {
10336
10336
  purchaseItem,
10337
10337
  setSubscriptionToManageMembers
10338
10338
  } = usePelcro.getStore();
10339
+ const pelcroDashboardButtonsByClass = document.getElementsByClassName("pelcro-dashboard-button");
10340
+
10341
+ if (pelcroDashboardButtonsByClass.length !== 0) {
10342
+ for (let i = 0; i < pelcroDashboardButtonsByClass.length; i++) {
10343
+ pelcroDashboardButtonsByClass[i].addEventListener("click", () => {
10344
+ if (isAuthenticated()) {
10345
+ switchView("dashboard");
10346
+ }
10347
+ });
10348
+ }
10349
+ }
10350
+
10339
10351
  const pelcroLoginButtonsByClass = document.getElementsByClassName("pelcro-login-button");
10340
10352
 
10341
10353
  if (pelcroLoginButtonsByClass.length !== 0) {
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.13.0-beta.9",
4
+ "version": "3.14.0",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",