@pelcro/react-pelcro-js 4.0.0-alpha.41 → 4.0.0-alpha.42

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
@@ -8222,7 +8222,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
8222
8222
  OutboundLink$1.origTrackLink = OutboundLink$1.trackLink;
8223
8223
  OutboundLink$1.trackLink = outboundLink;
8224
8224
  var OutboundLink = OutboundLink$1;
8225
- var ReactGA$1 = _objectSpread({}, Defaults, {
8225
+ var ReactGA = _objectSpread({}, Defaults, {
8226
8226
  OutboundLink: OutboundLink
8227
8227
  });
8228
8228
 
@@ -8507,7 +8507,7 @@ class PelcroActions {
8507
8507
  }
8508
8508
 
8509
8509
  window.Pelcro.user.logout();
8510
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
8510
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
8511
8511
  category: "ACTIONS",
8512
8512
  action: "Logged out",
8513
8513
  nonInteraction: true
@@ -8975,16 +8975,16 @@ const trackSubscriptionOnGA = () => {
8975
8975
  }
8976
8976
 
8977
8977
  const currencyCode = (_window$Pelcro$user$r5 = (_window$Pelcro$user$r6 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r6 === void 0 ? void 0 : _window$Pelcro$user$r6.currency) !== null && _window$Pelcro$user$r5 !== void 0 ? _window$Pelcro$user$r5 : plan.currency;
8978
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$set = ReactGA$1.set) === null || _ReactGA$set === void 0 ? void 0 : _ReactGA$set.call(ReactGA$1, {
8978
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$set = ReactGA.set) === null || _ReactGA$set === void 0 ? void 0 : _ReactGA$set.call(ReactGA, {
8979
8979
  currencyCode: currencyCode
8980
8980
  });
8981
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$plugin = ReactGA$1.plugin) === null || _ReactGA$plugin === void 0 ? void 0 : (_ReactGA$plugin$execu = _ReactGA$plugin.execute) === null || _ReactGA$plugin$execu === void 0 ? void 0 : _ReactGA$plugin$execu.call(_ReactGA$plugin, "ecommerce", "addTransaction", {
8981
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$plugin = ReactGA.plugin) === null || _ReactGA$plugin === void 0 ? void 0 : (_ReactGA$plugin$execu = _ReactGA$plugin.execute) === null || _ReactGA$plugin$execu === void 0 ? void 0 : _ReactGA$plugin$execu.call(_ReactGA$plugin, "ecommerce", "addTransaction", {
8982
8982
  id: lastSubscriptionId,
8983
8983
  affiliation: "Pelcro",
8984
8984
  revenue: plan !== null && plan !== void 0 && plan.amount ? isCurrencyZeroDecimal(currencyCode) ? plan.amount : plan.amount / 100 : 0,
8985
8985
  coupon: couponCode
8986
8986
  });
8987
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$plugin2 = ReactGA$1.plugin) === null || _ReactGA$plugin2 === void 0 ? void 0 : (_ReactGA$plugin2$exec = _ReactGA$plugin2.execute) === null || _ReactGA$plugin2$exec === void 0 ? void 0 : _ReactGA$plugin2$exec.call(_ReactGA$plugin2, "ecommerce", "addItem", {
8987
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$plugin2 = ReactGA.plugin) === null || _ReactGA$plugin2 === void 0 ? void 0 : (_ReactGA$plugin2$exec = _ReactGA$plugin2.execute) === null || _ReactGA$plugin2$exec === void 0 ? void 0 : _ReactGA$plugin2$exec.call(_ReactGA$plugin2, "ecommerce", "addItem", {
8988
8988
  id: lastSubscriptionId,
8989
8989
  name: product.name,
8990
8990
  category: product.description,
@@ -8992,8 +8992,8 @@ const trackSubscriptionOnGA = () => {
8992
8992
  price: plan !== null && plan !== void 0 && plan.amount ? isCurrencyZeroDecimal(currencyCode) ? plan.amount : plan.amount / 100 : 0,
8993
8993
  quantity: 1
8994
8994
  });
8995
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$plugin3 = ReactGA$1.plugin) === null || _ReactGA$plugin3 === void 0 ? void 0 : (_ReactGA$plugin3$exec = _ReactGA$plugin3.execute) === null || _ReactGA$plugin3$exec === void 0 ? void 0 : _ReactGA$plugin3$exec.call(_ReactGA$plugin3, "ecommerce", "send");
8996
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
8995
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$plugin3 = ReactGA.plugin) === null || _ReactGA$plugin3 === void 0 ? void 0 : (_ReactGA$plugin3$exec = _ReactGA$plugin3.execute) === null || _ReactGA$plugin3$exec === void 0 ? void 0 : _ReactGA$plugin3$exec.call(_ReactGA$plugin3, "ecommerce", "send");
8996
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
8997
8997
  category: "ACTIONS",
8998
8998
  action: "Subscribed",
8999
8999
  nonInteraction: true
@@ -9432,7 +9432,7 @@ class SaveToMetadataButtonClass {
9432
9432
 
9433
9433
  _classPrivateFieldGet(this, _markButtonAsSaved).call(this, button);
9434
9434
 
9435
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
9435
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
9436
9436
  category: "ACTIONS",
9437
9437
  action: "Save/Follow",
9438
9438
  label: buttonMetadata === null || buttonMetadata === void 0 ? void 0 : buttonMetadata.title
@@ -9470,7 +9470,7 @@ class SaveToMetadataButtonClass {
9470
9470
 
9471
9471
  _classPrivateFieldGet(this, _unmarkSavedButton).call(this, button);
9472
9472
 
9473
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$1.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$1, {
9473
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
9474
9474
  category: "ACTIONS",
9475
9475
  action: "Unsave/Unfollow",
9476
9476
  label: title
@@ -11336,13 +11336,13 @@ const initSecuritySdk = () => {
11336
11336
  const initGATracking = () => {
11337
11337
  var _ReactGA$initialize, _ReactGA$plugin, _ReactGA$plugin$requi;
11338
11338
 
11339
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$initialize = ReactGA$1.initialize) === null || _ReactGA$initialize === void 0 ? void 0 : _ReactGA$initialize.call(ReactGA$1, window.Pelcro.site.read().google_analytics_id);
11340
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$plugin = ReactGA$1.plugin) === null || _ReactGA$plugin === void 0 ? void 0 : (_ReactGA$plugin$requi = _ReactGA$plugin.require) === null || _ReactGA$plugin$requi === void 0 ? void 0 : _ReactGA$plugin$requi.call(_ReactGA$plugin, "ecommerce");
11339
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$initialize = ReactGA.initialize) === null || _ReactGA$initialize === void 0 ? void 0 : _ReactGA$initialize.call(ReactGA, window.Pelcro.site.read().google_analytics_id);
11340
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$plugin = ReactGA.plugin) === null || _ReactGA$plugin === void 0 ? void 0 : (_ReactGA$plugin$requi = _ReactGA$plugin.require) === null || _ReactGA$plugin$requi === void 0 ? void 0 : _ReactGA$plugin$requi.call(_ReactGA$plugin, "ecommerce");
11341
11341
  };
11342
11342
  const dispatchModalDisplayEvents = modalName => {
11343
11343
  var _ReactGA$event, _modalName$replace, _modalName$replace2;
11344
11344
 
11345
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
11345
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
11346
11346
  category: "VIEWS",
11347
11347
  action: `${modalName === null || modalName === void 0 ? void 0 : (_modalName$replace = modalName.replace("pelcro-", "")) === null || _modalName$replace === void 0 ? void 0 : _modalName$replace.replaceAll("-", " ")} viewed`,
11348
11348
  nonInteraction: true
@@ -12251,10 +12251,10 @@ const LoginContainer = ({
12251
12251
  });
12252
12252
  onFailure(err);
12253
12253
  } else {
12254
- var _ReactGA, _ReactGA$event;
12254
+ var _ReactGA$event;
12255
12255
 
12256
12256
  onSuccess(res);
12257
- (_ReactGA = ReactGA) === null || _ReactGA === void 0 ? void 0 : (_ReactGA$event = _ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(_ReactGA, {
12257
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
12258
12258
  category: "ACTIONS",
12259
12259
  action: "Logged in",
12260
12260
  nonInteraction: true
@@ -12658,7 +12658,7 @@ const Logout = props => {
12658
12658
  var _ReactGA$event;
12659
12659
 
12660
12660
  window.Pelcro.user.logout();
12661
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
12661
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
12662
12662
  category: "ACTIONS",
12663
12663
  action: "Logged out",
12664
12664
  nonInteraction: true
@@ -14138,7 +14138,7 @@ function RegisterModal(props) {
14138
14138
  const handleAfterRegistrationLogic = () => {
14139
14139
  var _ReactGA$event, _window$Pelcro$site$r, _window$Pelcro$site$r2;
14140
14140
 
14141
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
14141
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
14142
14142
  category: "ACTIONS",
14143
14143
  action: "Registered",
14144
14144
  nonInteraction: true
@@ -19527,7 +19527,7 @@ class SelectModal extends React.Component {
19527
19527
  if (this.state.mode === "product") {
19528
19528
  var _ReactGA$event;
19529
19529
 
19530
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
19530
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
19531
19531
  category: "VIEWS",
19532
19532
  action: "Product Modal Viewed",
19533
19533
  nonInteraction: true
@@ -19535,7 +19535,7 @@ class SelectModal extends React.Component {
19535
19535
  } else if (this.state.mode === "plan") {
19536
19536
  var _ReactGA$event2;
19537
19537
 
19538
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$1.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$1, {
19538
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
19539
19539
  category: "VIEWS",
19540
19540
  action: "Plan Modal Viewed",
19541
19541
  nonInteraction: true
@@ -24473,7 +24473,7 @@ function SubscriptionRenewModal({
24473
24473
  var _otherProps$onSuccess, _ReactGA$event;
24474
24474
 
24475
24475
  (_otherProps$onSuccess = otherProps.onSuccess) === null || _otherProps$onSuccess === void 0 ? void 0 : _otherProps$onSuccess.call(otherProps, res);
24476
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
24476
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
24477
24477
  category: "ACTIONS",
24478
24478
  action: "Renewed",
24479
24479
  nonInteraction: true
@@ -24485,7 +24485,7 @@ function SubscriptionRenewModal({
24485
24485
  var _otherProps$onGiftRen, _ReactGA$event2;
24486
24486
 
24487
24487
  (_otherProps$onGiftRen = otherProps.onGiftRenewalSuccess) === null || _otherProps$onGiftRen === void 0 ? void 0 : _otherProps$onGiftRen.call(otherProps);
24488
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$1.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$1, {
24488
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
24489
24489
  category: "ACTIONS",
24490
24490
  action: "Renewed Gift",
24491
24491
  nonInteraction: true
@@ -24702,7 +24702,7 @@ const SubscriptionCancelNowButton = ({
24702
24702
  return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
24703
24703
  }
24704
24704
 
24705
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
24705
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
24706
24706
  category: "ACTIONS",
24707
24707
  action: "Canceled",
24708
24708
  nonInteraction: true
@@ -24774,7 +24774,7 @@ const SubscriptionCancelLaterButton = ({
24774
24774
  return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
24775
24775
  }
24776
24776
 
24777
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
24777
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
24778
24778
  category: "ACTIONS",
24779
24779
  action: "Canceled",
24780
24780
  nonInteraction: true
@@ -25021,7 +25021,7 @@ const SubscriptionSuspendButton = ({
25021
25021
  return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
25022
25022
  }
25023
25023
 
25024
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
25024
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
25025
25025
  category: "ACTIONS",
25026
25026
  action: "Suspended",
25027
25027
  nonInteraction: true
@@ -28017,7 +28017,7 @@ const AddressUpdateContainer = ({
28017
28017
  });
28018
28018
  onFailure(err);
28019
28019
  } else {
28020
- var _ReactGA, _ReactGA$event;
28020
+ var _ReactGA$event;
28021
28021
 
28022
28022
  dispatch({
28023
28023
  type: SHOW_ALERT,
@@ -28027,7 +28027,7 @@ const AddressUpdateContainer = ({
28027
28027
  }
28028
28028
  });
28029
28029
  onSuccess(res);
28030
- (_ReactGA = ReactGA) === null || _ReactGA === void 0 ? void 0 : (_ReactGA$event = _ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(_ReactGA, {
28030
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
28031
28031
  category: "ACTIONS",
28032
28032
  action: "Updated address",
28033
28033
  nonInteraction: true
@@ -28583,7 +28583,7 @@ const PaymentMethodUpdateModal = props => {
28583
28583
  var _props$onSuccess, _ReactGA$event;
28584
28584
 
28585
28585
  (_props$onSuccess = props.onSuccess) === null || _props$onSuccess === void 0 ? void 0 : _props$onSuccess.call(props, res);
28586
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
28586
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
28587
28587
  category: "ACTIONS",
28588
28588
  action: "Updated payment card",
28589
28589
  nonInteraction: true
@@ -31374,7 +31374,7 @@ const DashboardContainer = ({
31374
31374
  window.Pelcro.insight.track("Modal Displayed", {
31375
31375
  name: "dashboard"
31376
31376
  });
31377
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
31377
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
31378
31378
  category: "VIEWS",
31379
31379
  action: "Dashboard Modal Viewed",
31380
31380
  nonInteraction: true
@@ -31414,7 +31414,7 @@ const DashboardContainer = ({
31414
31414
  return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
31415
31415
  }
31416
31416
 
31417
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$1.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$1, {
31417
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
31418
31418
  category: "ACTIONS",
31419
31419
  action: "Canceled",
31420
31420
  nonInteraction: true
@@ -31450,7 +31450,7 @@ const DashboardContainer = ({
31450
31450
  return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
31451
31451
  }
31452
31452
 
31453
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event3 = ReactGA$1.event) === null || _ReactGA$event3 === void 0 ? void 0 : _ReactGA$event3.call(ReactGA$1, {
31453
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event3 = ReactGA.event) === null || _ReactGA$event3 === void 0 ? void 0 : _ReactGA$event3.call(ReactGA, {
31454
31454
  category: "ACTIONS",
31455
31455
  action: "UnSuspended",
31456
31456
  nonInteraction: true
@@ -32754,7 +32754,7 @@ const SavedItems = ({
32754
32754
  }
32755
32755
 
32756
32756
  setItems(response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.metadata);
32757
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
32757
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
32758
32758
  category: "ACTIONS",
32759
32759
  action: "Unsave/Unfollow",
32760
32760
  label: title
package/dist/index.esm.js CHANGED
@@ -8192,7 +8192,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
8192
8192
  OutboundLink$1.origTrackLink = OutboundLink$1.trackLink;
8193
8193
  OutboundLink$1.trackLink = outboundLink;
8194
8194
  var OutboundLink = OutboundLink$1;
8195
- var ReactGA$1 = _objectSpread({}, Defaults, {
8195
+ var ReactGA = _objectSpread({}, Defaults, {
8196
8196
  OutboundLink: OutboundLink
8197
8197
  });
8198
8198
 
@@ -8477,7 +8477,7 @@ class PelcroActions {
8477
8477
  }
8478
8478
 
8479
8479
  window.Pelcro.user.logout();
8480
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
8480
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
8481
8481
  category: "ACTIONS",
8482
8482
  action: "Logged out",
8483
8483
  nonInteraction: true
@@ -8945,16 +8945,16 @@ const trackSubscriptionOnGA = () => {
8945
8945
  }
8946
8946
 
8947
8947
  const currencyCode = (_window$Pelcro$user$r5 = (_window$Pelcro$user$r6 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r6 === void 0 ? void 0 : _window$Pelcro$user$r6.currency) !== null && _window$Pelcro$user$r5 !== void 0 ? _window$Pelcro$user$r5 : plan.currency;
8948
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$set = ReactGA$1.set) === null || _ReactGA$set === void 0 ? void 0 : _ReactGA$set.call(ReactGA$1, {
8948
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$set = ReactGA.set) === null || _ReactGA$set === void 0 ? void 0 : _ReactGA$set.call(ReactGA, {
8949
8949
  currencyCode: currencyCode
8950
8950
  });
8951
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$plugin = ReactGA$1.plugin) === null || _ReactGA$plugin === void 0 ? void 0 : (_ReactGA$plugin$execu = _ReactGA$plugin.execute) === null || _ReactGA$plugin$execu === void 0 ? void 0 : _ReactGA$plugin$execu.call(_ReactGA$plugin, "ecommerce", "addTransaction", {
8951
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$plugin = ReactGA.plugin) === null || _ReactGA$plugin === void 0 ? void 0 : (_ReactGA$plugin$execu = _ReactGA$plugin.execute) === null || _ReactGA$plugin$execu === void 0 ? void 0 : _ReactGA$plugin$execu.call(_ReactGA$plugin, "ecommerce", "addTransaction", {
8952
8952
  id: lastSubscriptionId,
8953
8953
  affiliation: "Pelcro",
8954
8954
  revenue: plan !== null && plan !== void 0 && plan.amount ? isCurrencyZeroDecimal(currencyCode) ? plan.amount : plan.amount / 100 : 0,
8955
8955
  coupon: couponCode
8956
8956
  });
8957
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$plugin2 = ReactGA$1.plugin) === null || _ReactGA$plugin2 === void 0 ? void 0 : (_ReactGA$plugin2$exec = _ReactGA$plugin2.execute) === null || _ReactGA$plugin2$exec === void 0 ? void 0 : _ReactGA$plugin2$exec.call(_ReactGA$plugin2, "ecommerce", "addItem", {
8957
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$plugin2 = ReactGA.plugin) === null || _ReactGA$plugin2 === void 0 ? void 0 : (_ReactGA$plugin2$exec = _ReactGA$plugin2.execute) === null || _ReactGA$plugin2$exec === void 0 ? void 0 : _ReactGA$plugin2$exec.call(_ReactGA$plugin2, "ecommerce", "addItem", {
8958
8958
  id: lastSubscriptionId,
8959
8959
  name: product.name,
8960
8960
  category: product.description,
@@ -8962,8 +8962,8 @@ const trackSubscriptionOnGA = () => {
8962
8962
  price: plan !== null && plan !== void 0 && plan.amount ? isCurrencyZeroDecimal(currencyCode) ? plan.amount : plan.amount / 100 : 0,
8963
8963
  quantity: 1
8964
8964
  });
8965
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$plugin3 = ReactGA$1.plugin) === null || _ReactGA$plugin3 === void 0 ? void 0 : (_ReactGA$plugin3$exec = _ReactGA$plugin3.execute) === null || _ReactGA$plugin3$exec === void 0 ? void 0 : _ReactGA$plugin3$exec.call(_ReactGA$plugin3, "ecommerce", "send");
8966
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
8965
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$plugin3 = ReactGA.plugin) === null || _ReactGA$plugin3 === void 0 ? void 0 : (_ReactGA$plugin3$exec = _ReactGA$plugin3.execute) === null || _ReactGA$plugin3$exec === void 0 ? void 0 : _ReactGA$plugin3$exec.call(_ReactGA$plugin3, "ecommerce", "send");
8966
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
8967
8967
  category: "ACTIONS",
8968
8968
  action: "Subscribed",
8969
8969
  nonInteraction: true
@@ -9402,7 +9402,7 @@ class SaveToMetadataButtonClass {
9402
9402
 
9403
9403
  _classPrivateFieldGet(this, _markButtonAsSaved).call(this, button);
9404
9404
 
9405
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
9405
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
9406
9406
  category: "ACTIONS",
9407
9407
  action: "Save/Follow",
9408
9408
  label: buttonMetadata === null || buttonMetadata === void 0 ? void 0 : buttonMetadata.title
@@ -9440,7 +9440,7 @@ class SaveToMetadataButtonClass {
9440
9440
 
9441
9441
  _classPrivateFieldGet(this, _unmarkSavedButton).call(this, button);
9442
9442
 
9443
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$1.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$1, {
9443
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
9444
9444
  category: "ACTIONS",
9445
9445
  action: "Unsave/Unfollow",
9446
9446
  label: title
@@ -11306,13 +11306,13 @@ const initSecuritySdk = () => {
11306
11306
  const initGATracking = () => {
11307
11307
  var _ReactGA$initialize, _ReactGA$plugin, _ReactGA$plugin$requi;
11308
11308
 
11309
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$initialize = ReactGA$1.initialize) === null || _ReactGA$initialize === void 0 ? void 0 : _ReactGA$initialize.call(ReactGA$1, window.Pelcro.site.read().google_analytics_id);
11310
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$plugin = ReactGA$1.plugin) === null || _ReactGA$plugin === void 0 ? void 0 : (_ReactGA$plugin$requi = _ReactGA$plugin.require) === null || _ReactGA$plugin$requi === void 0 ? void 0 : _ReactGA$plugin$requi.call(_ReactGA$plugin, "ecommerce");
11309
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$initialize = ReactGA.initialize) === null || _ReactGA$initialize === void 0 ? void 0 : _ReactGA$initialize.call(ReactGA, window.Pelcro.site.read().google_analytics_id);
11310
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$plugin = ReactGA.plugin) === null || _ReactGA$plugin === void 0 ? void 0 : (_ReactGA$plugin$requi = _ReactGA$plugin.require) === null || _ReactGA$plugin$requi === void 0 ? void 0 : _ReactGA$plugin$requi.call(_ReactGA$plugin, "ecommerce");
11311
11311
  };
11312
11312
  const dispatchModalDisplayEvents = modalName => {
11313
11313
  var _ReactGA$event, _modalName$replace, _modalName$replace2;
11314
11314
 
11315
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
11315
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
11316
11316
  category: "VIEWS",
11317
11317
  action: `${modalName === null || modalName === void 0 ? void 0 : (_modalName$replace = modalName.replace("pelcro-", "")) === null || _modalName$replace === void 0 ? void 0 : _modalName$replace.replaceAll("-", " ")} viewed`,
11318
11318
  nonInteraction: true
@@ -12221,10 +12221,10 @@ const LoginContainer = ({
12221
12221
  });
12222
12222
  onFailure(err);
12223
12223
  } else {
12224
- var _ReactGA, _ReactGA$event;
12224
+ var _ReactGA$event;
12225
12225
 
12226
12226
  onSuccess(res);
12227
- (_ReactGA = ReactGA) === null || _ReactGA === void 0 ? void 0 : (_ReactGA$event = _ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(_ReactGA, {
12227
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
12228
12228
  category: "ACTIONS",
12229
12229
  action: "Logged in",
12230
12230
  nonInteraction: true
@@ -12628,7 +12628,7 @@ const Logout = props => {
12628
12628
  var _ReactGA$event;
12629
12629
 
12630
12630
  window.Pelcro.user.logout();
12631
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
12631
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
12632
12632
  category: "ACTIONS",
12633
12633
  action: "Logged out",
12634
12634
  nonInteraction: true
@@ -14108,7 +14108,7 @@ function RegisterModal(props) {
14108
14108
  const handleAfterRegistrationLogic = () => {
14109
14109
  var _ReactGA$event, _window$Pelcro$site$r, _window$Pelcro$site$r2;
14110
14110
 
14111
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
14111
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
14112
14112
  category: "ACTIONS",
14113
14113
  action: "Registered",
14114
14114
  nonInteraction: true
@@ -19497,7 +19497,7 @@ class SelectModal extends Component {
19497
19497
  if (this.state.mode === "product") {
19498
19498
  var _ReactGA$event;
19499
19499
 
19500
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
19500
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
19501
19501
  category: "VIEWS",
19502
19502
  action: "Product Modal Viewed",
19503
19503
  nonInteraction: true
@@ -19505,7 +19505,7 @@ class SelectModal extends Component {
19505
19505
  } else if (this.state.mode === "plan") {
19506
19506
  var _ReactGA$event2;
19507
19507
 
19508
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$1.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$1, {
19508
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
19509
19509
  category: "VIEWS",
19510
19510
  action: "Plan Modal Viewed",
19511
19511
  nonInteraction: true
@@ -24443,7 +24443,7 @@ function SubscriptionRenewModal({
24443
24443
  var _otherProps$onSuccess, _ReactGA$event;
24444
24444
 
24445
24445
  (_otherProps$onSuccess = otherProps.onSuccess) === null || _otherProps$onSuccess === void 0 ? void 0 : _otherProps$onSuccess.call(otherProps, res);
24446
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
24446
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
24447
24447
  category: "ACTIONS",
24448
24448
  action: "Renewed",
24449
24449
  nonInteraction: true
@@ -24455,7 +24455,7 @@ function SubscriptionRenewModal({
24455
24455
  var _otherProps$onGiftRen, _ReactGA$event2;
24456
24456
 
24457
24457
  (_otherProps$onGiftRen = otherProps.onGiftRenewalSuccess) === null || _otherProps$onGiftRen === void 0 ? void 0 : _otherProps$onGiftRen.call(otherProps);
24458
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$1.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$1, {
24458
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
24459
24459
  category: "ACTIONS",
24460
24460
  action: "Renewed Gift",
24461
24461
  nonInteraction: true
@@ -24672,7 +24672,7 @@ const SubscriptionCancelNowButton = ({
24672
24672
  return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
24673
24673
  }
24674
24674
 
24675
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
24675
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
24676
24676
  category: "ACTIONS",
24677
24677
  action: "Canceled",
24678
24678
  nonInteraction: true
@@ -24744,7 +24744,7 @@ const SubscriptionCancelLaterButton = ({
24744
24744
  return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
24745
24745
  }
24746
24746
 
24747
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
24747
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
24748
24748
  category: "ACTIONS",
24749
24749
  action: "Canceled",
24750
24750
  nonInteraction: true
@@ -24991,7 +24991,7 @@ const SubscriptionSuspendButton = ({
24991
24991
  return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
24992
24992
  }
24993
24993
 
24994
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
24994
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
24995
24995
  category: "ACTIONS",
24996
24996
  action: "Suspended",
24997
24997
  nonInteraction: true
@@ -27987,7 +27987,7 @@ const AddressUpdateContainer = ({
27987
27987
  });
27988
27988
  onFailure(err);
27989
27989
  } else {
27990
- var _ReactGA, _ReactGA$event;
27990
+ var _ReactGA$event;
27991
27991
 
27992
27992
  dispatch({
27993
27993
  type: SHOW_ALERT,
@@ -27997,7 +27997,7 @@ const AddressUpdateContainer = ({
27997
27997
  }
27998
27998
  });
27999
27999
  onSuccess(res);
28000
- (_ReactGA = ReactGA) === null || _ReactGA === void 0 ? void 0 : (_ReactGA$event = _ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(_ReactGA, {
28000
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
28001
28001
  category: "ACTIONS",
28002
28002
  action: "Updated address",
28003
28003
  nonInteraction: true
@@ -28553,7 +28553,7 @@ const PaymentMethodUpdateModal = props => {
28553
28553
  var _props$onSuccess, _ReactGA$event;
28554
28554
 
28555
28555
  (_props$onSuccess = props.onSuccess) === null || _props$onSuccess === void 0 ? void 0 : _props$onSuccess.call(props, res);
28556
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
28556
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
28557
28557
  category: "ACTIONS",
28558
28558
  action: "Updated payment card",
28559
28559
  nonInteraction: true
@@ -31344,7 +31344,7 @@ const DashboardContainer = ({
31344
31344
  window.Pelcro.insight.track("Modal Displayed", {
31345
31345
  name: "dashboard"
31346
31346
  });
31347
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
31347
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
31348
31348
  category: "VIEWS",
31349
31349
  action: "Dashboard Modal Viewed",
31350
31350
  nonInteraction: true
@@ -31384,7 +31384,7 @@ const DashboardContainer = ({
31384
31384
  return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
31385
31385
  }
31386
31386
 
31387
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event2 = ReactGA$1.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA$1, {
31387
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event2 = ReactGA.event) === null || _ReactGA$event2 === void 0 ? void 0 : _ReactGA$event2.call(ReactGA, {
31388
31388
  category: "ACTIONS",
31389
31389
  action: "Canceled",
31390
31390
  nonInteraction: true
@@ -31420,7 +31420,7 @@ const DashboardContainer = ({
31420
31420
  return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
31421
31421
  }
31422
31422
 
31423
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event3 = ReactGA$1.event) === null || _ReactGA$event3 === void 0 ? void 0 : _ReactGA$event3.call(ReactGA$1, {
31423
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event3 = ReactGA.event) === null || _ReactGA$event3 === void 0 ? void 0 : _ReactGA$event3.call(ReactGA, {
31424
31424
  category: "ACTIONS",
31425
31425
  action: "UnSuspended",
31426
31426
  nonInteraction: true
@@ -32724,7 +32724,7 @@ const SavedItems = ({
32724
32724
  }
32725
32725
 
32726
32726
  setItems(response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.metadata);
32727
- ReactGA$1 === null || ReactGA$1 === void 0 ? void 0 : (_ReactGA$event = ReactGA$1.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA$1, {
32727
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
32728
32728
  category: "ACTIONS",
32729
32729
  action: "Unsave/Unfollow",
32730
32730
  label: title
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": "4.0.0-alpha.41",
4
+ "version": "4.0.0-alpha.42",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",