@stigg/react-sdk 5.24.0 → 5.24.1
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/components/customerPortal/subscriptionOverview/charges/ChargeItem.d.ts +2 -1
- package/dist/react-sdk.cjs.development.js +5 -2
- package/dist/react-sdk.cjs.development.js.map +1 -1
- package/dist/react-sdk.cjs.production.min.js +1 -1
- package/dist/react-sdk.cjs.production.min.js.map +1 -1
- package/dist/react-sdk.esm.js +5 -2
- package/dist/react-sdk.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/customerPortal/subscriptionOverview/charges/ChargeItem.tsx +4 -1
- package/src/components/customerPortal/subscriptionOverview/charges/ChargeList.tsx +2 -1
package/dist/react-sdk.esm.js
CHANGED
|
@@ -3240,7 +3240,7 @@ var LoggerService = /*#__PURE__*/function () {
|
|
|
3240
3240
|
|
|
3241
3241
|
var logger = /*#__PURE__*/new LoggerService();
|
|
3242
3242
|
|
|
3243
|
-
var version = "5.24.
|
|
3243
|
+
var version = "5.24.1";
|
|
3244
3244
|
var name = "@stigg/react-sdk";
|
|
3245
3245
|
|
|
3246
3246
|
var StiggContext = /*#__PURE__*/React__default.createContext(null);
|
|
@@ -6130,6 +6130,7 @@ function ChargeItem(_ref) {
|
|
|
6130
6130
|
|
|
6131
6131
|
var amount = _ref.amount,
|
|
6132
6132
|
currency = _ref.currency,
|
|
6133
|
+
blockSize = _ref.blockSize,
|
|
6133
6134
|
entitlement = _ref.entitlement,
|
|
6134
6135
|
feature = _ref.feature,
|
|
6135
6136
|
hideChargePrice = _ref.hideChargePrice,
|
|
@@ -6164,7 +6165,7 @@ function ChargeItem(_ref) {
|
|
|
6164
6165
|
}, currencyPriceFormatter({
|
|
6165
6166
|
amount: amount,
|
|
6166
6167
|
currency: currency
|
|
6167
|
-
}), " per ", feature.featureUnits)), React__default.createElement("div", {
|
|
6168
|
+
}), " per ", blockSize ? blockSize + " " : '', blockSize ? feature.featureUnitsPlural : feature.featureUnits)), React__default.createElement("div", {
|
|
6168
6169
|
style: {
|
|
6169
6170
|
display: 'flex',
|
|
6170
6171
|
gap: 12
|
|
@@ -6217,6 +6218,7 @@ function ChargeList(_ref) {
|
|
|
6217
6218
|
}, filteredSubscriptionPrices.map(function (_ref3) {
|
|
6218
6219
|
var feature = _ref3.feature,
|
|
6219
6220
|
price = _ref3.price,
|
|
6221
|
+
blockSize = _ref3.blockSize,
|
|
6220
6222
|
billingModel = _ref3.billingModel;
|
|
6221
6223
|
|
|
6222
6224
|
if (!feature || !price) {
|
|
@@ -6234,6 +6236,7 @@ function ChargeList(_ref) {
|
|
|
6234
6236
|
entitlement: entitlement,
|
|
6235
6237
|
feature: entitlement.feature,
|
|
6236
6238
|
amount: price.amount,
|
|
6239
|
+
blockSize: blockSize,
|
|
6237
6240
|
currency: price.currency,
|
|
6238
6241
|
hideChargePrice: billingModel === BillingModel.PerUnit,
|
|
6239
6242
|
onBuyMore: onBuyMore,
|