@blerp/design 1.0.54 → 1.0.55

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
@@ -88175,6 +88175,8 @@ var CheckoutModal = function CheckoutModal(_ref) {
88175
88175
  price = _ref.price,
88176
88176
  handleClose = _ref.handleClose,
88177
88177
  handleSubmit = _ref.handleSubmit,
88178
+ venmoProfileId = _ref.venmoProfileId,
88179
+ googleMerchantId = _ref.googleMerchantId,
88178
88180
  premiumItemComponent = _ref.premiumItemComponent,
88179
88181
  clientToken = _ref.clientToken;
88180
88182
  var size = useWindowSize();
@@ -88242,8 +88244,8 @@ var CheckoutModal = function CheckoutModal(_ref) {
88242
88244
  },
88243
88245
  googlePay: {
88244
88246
  googlePayVersion: 2,
88245
- merchantId: process.env.GOOGLE_MERCHANT_ID ? process.env.GOOGLE_MERCHANT_ID : null,
88246
- environment: process.env.GOOGLE_MERCHANT_ID ? "PRODUCTION" : "TEST",
88247
+ merchantId: googleMerchantId || process.env.GOOGLE_MERCHANT_ID || null,
88248
+ environment: googleMerchantId || process.env.GOOGLE_MERCHANT_ID ? "PRODUCTION" : "TEST",
88247
88249
  transactionInfo: {
88248
88250
  totalPriceStatus: "FINAL",
88249
88251
  totalPrice: total,
@@ -88264,7 +88266,7 @@ var CheckoutModal = function CheckoutModal(_ref) {
88264
88266
  },
88265
88267
  venmo: {
88266
88268
  allowDesktop: true,
88267
- profileId: process.env.VENMO_PROFILE_ID,
88269
+ profileId: venmoProfileId || process.env.VENMO_PROFILE_ID,
88268
88270
  allowNewBrowserTab: true
88269
88271
  } // The `venmo` object requires no properties to instantiate.
88270
88272
 
@@ -88304,7 +88306,7 @@ var CheckoutModal = function CheckoutModal(_ref) {
88304
88306
  if (show) {
88305
88307
  createBraintreeDropIn();
88306
88308
  }
88307
- }, [show, clientToken, type, total]);
88309
+ }, [show, googleMerchantId, venmoProfileId, clientToken, type, total]);
88308
88310
  return /*#__PURE__*/React__default['default'].createElement(Stack, {
88309
88311
  sx: {
88310
88312
  backgroundColor: "white.main",
package/dist/index.esm.js CHANGED
@@ -88108,6 +88108,8 @@ var CheckoutModal = function CheckoutModal(_ref) {
88108
88108
  price = _ref.price,
88109
88109
  handleClose = _ref.handleClose,
88110
88110
  handleSubmit = _ref.handleSubmit,
88111
+ venmoProfileId = _ref.venmoProfileId,
88112
+ googleMerchantId = _ref.googleMerchantId,
88111
88113
  premiumItemComponent = _ref.premiumItemComponent,
88112
88114
  clientToken = _ref.clientToken;
88113
88115
  var size = useWindowSize();
@@ -88175,8 +88177,8 @@ var CheckoutModal = function CheckoutModal(_ref) {
88175
88177
  },
88176
88178
  googlePay: {
88177
88179
  googlePayVersion: 2,
88178
- merchantId: process.env.GOOGLE_MERCHANT_ID ? process.env.GOOGLE_MERCHANT_ID : null,
88179
- environment: process.env.GOOGLE_MERCHANT_ID ? "PRODUCTION" : "TEST",
88180
+ merchantId: googleMerchantId || process.env.GOOGLE_MERCHANT_ID || null,
88181
+ environment: googleMerchantId || process.env.GOOGLE_MERCHANT_ID ? "PRODUCTION" : "TEST",
88180
88182
  transactionInfo: {
88181
88183
  totalPriceStatus: "FINAL",
88182
88184
  totalPrice: total,
@@ -88197,7 +88199,7 @@ var CheckoutModal = function CheckoutModal(_ref) {
88197
88199
  },
88198
88200
  venmo: {
88199
88201
  allowDesktop: true,
88200
- profileId: process.env.VENMO_PROFILE_ID,
88202
+ profileId: venmoProfileId || process.env.VENMO_PROFILE_ID,
88201
88203
  allowNewBrowserTab: true
88202
88204
  } // The `venmo` object requires no properties to instantiate.
88203
88205
 
@@ -88237,7 +88239,7 @@ var CheckoutModal = function CheckoutModal(_ref) {
88237
88239
  if (show) {
88238
88240
  createBraintreeDropIn();
88239
88241
  }
88240
- }, [show, clientToken, type, total]);
88242
+ }, [show, googleMerchantId, venmoProfileId, clientToken, type, total]);
88241
88243
  return /*#__PURE__*/React__default.createElement(Stack, {
88242
88244
  sx: {
88243
88245
  backgroundColor: "white.main",
package/dist/index.umd.js CHANGED
@@ -88129,6 +88129,8 @@
88129
88129
  price = _ref.price,
88130
88130
  handleClose = _ref.handleClose,
88131
88131
  handleSubmit = _ref.handleSubmit,
88132
+ venmoProfileId = _ref.venmoProfileId,
88133
+ googleMerchantId = _ref.googleMerchantId,
88132
88134
  premiumItemComponent = _ref.premiumItemComponent,
88133
88135
  clientToken = _ref.clientToken;
88134
88136
  var size = useWindowSize();
@@ -88196,8 +88198,8 @@
88196
88198
  },
88197
88199
  googlePay: {
88198
88200
  googlePayVersion: 2,
88199
- merchantId: process.env.GOOGLE_MERCHANT_ID ? process.env.GOOGLE_MERCHANT_ID : null,
88200
- environment: process.env.GOOGLE_MERCHANT_ID ? "PRODUCTION" : "TEST",
88201
+ merchantId: googleMerchantId || process.env.GOOGLE_MERCHANT_ID || null,
88202
+ environment: googleMerchantId || process.env.GOOGLE_MERCHANT_ID ? "PRODUCTION" : "TEST",
88201
88203
  transactionInfo: {
88202
88204
  totalPriceStatus: "FINAL",
88203
88205
  totalPrice: total,
@@ -88218,7 +88220,7 @@
88218
88220
  },
88219
88221
  venmo: {
88220
88222
  allowDesktop: true,
88221
- profileId: process.env.VENMO_PROFILE_ID,
88223
+ profileId: venmoProfileId || process.env.VENMO_PROFILE_ID,
88222
88224
  allowNewBrowserTab: true
88223
88225
  } // The `venmo` object requires no properties to instantiate.
88224
88226
 
@@ -88258,7 +88260,7 @@
88258
88260
  if (show) {
88259
88261
  createBraintreeDropIn();
88260
88262
  }
88261
- }, [show, clientToken, type, total]);
88263
+ }, [show, googleMerchantId, venmoProfileId, clientToken, type, total]);
88262
88264
  return /*#__PURE__*/React__default['default'].createElement(Stack, {
88263
88265
  sx: {
88264
88266
  backgroundColor: "white.main",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blerp/design",
3
- "version": "1.0.54",
3
+ "version": "1.0.55",
4
4
  "description": "Blerp UI",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {