@bunnyapp/components 1.8.0-beta.10 → 1.8.0-beta.11
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/cjs/index.js +2 -2
- package/dist/esm/index.js +2 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1283,7 +1283,7 @@ const DEFAULT_CONFIG = {
|
|
|
1283
1283
|
};
|
|
1284
1284
|
|
|
1285
1285
|
// This will be replaced at build time by rollup-plugin-replace
|
|
1286
|
-
const PACKAGE_VERSION = '1.8.0-beta.
|
|
1286
|
+
const PACKAGE_VERSION = '1.8.0-beta.10';
|
|
1287
1287
|
const createRequestHeaders = (token) => {
|
|
1288
1288
|
const headers = createClientDevHeaders({ token });
|
|
1289
1289
|
// Add the components version header
|
|
@@ -29559,7 +29559,7 @@ const PlanPickerCheckoutBar = ({ selectedPriceList, handlePortalErrors, onChecko
|
|
|
29559
29559
|
const isFeatureAddon = charge === null || charge === void 0 ? void 0 : charge.featureAddon;
|
|
29560
29560
|
const quantity = ((_a = charge === null || charge === void 0 ? void 0 : charge.feature) === null || _a === void 0 ? void 0 : _a.id) ? getFeatureQuantity((_b = charge === null || charge === void 0 ? void 0 : charge.feature) === null || _b === void 0 ? void 0 : _b.id, charge.id) : undefined;
|
|
29561
29561
|
const maybeIsChargeLoading = isFeatureAddon && isFeatureAddonsLoading;
|
|
29562
|
-
const isDisabled = Boolean(!quote || maybeIsChargeLoading ||
|
|
29562
|
+
const isDisabled = Boolean(!quote || maybeIsChargeLoading || quantity === undefined);
|
|
29563
29563
|
return (jsxRuntime.jsx(CheckoutBarInput, { disabled: isDisabled, priceListCharge: charge, quantity: quantity, onQuantityChanged: quantity => {
|
|
29564
29564
|
if (isInPreviewMode)
|
|
29565
29565
|
return;
|
package/dist/esm/index.js
CHANGED
|
@@ -1281,7 +1281,7 @@ const DEFAULT_CONFIG = {
|
|
|
1281
1281
|
};
|
|
1282
1282
|
|
|
1283
1283
|
// This will be replaced at build time by rollup-plugin-replace
|
|
1284
|
-
const PACKAGE_VERSION = '1.8.0-beta.
|
|
1284
|
+
const PACKAGE_VERSION = '1.8.0-beta.10';
|
|
1285
1285
|
const createRequestHeaders = (token) => {
|
|
1286
1286
|
const headers = createClientDevHeaders({ token });
|
|
1287
1287
|
// Add the components version header
|
|
@@ -29557,7 +29557,7 @@ const PlanPickerCheckoutBar = ({ selectedPriceList, handlePortalErrors, onChecko
|
|
|
29557
29557
|
const isFeatureAddon = charge === null || charge === void 0 ? void 0 : charge.featureAddon;
|
|
29558
29558
|
const quantity = ((_a = charge === null || charge === void 0 ? void 0 : charge.feature) === null || _a === void 0 ? void 0 : _a.id) ? getFeatureQuantity((_b = charge === null || charge === void 0 ? void 0 : charge.feature) === null || _b === void 0 ? void 0 : _b.id, charge.id) : undefined;
|
|
29559
29559
|
const maybeIsChargeLoading = isFeatureAddon && isFeatureAddonsLoading;
|
|
29560
|
-
const isDisabled = Boolean(!quote || maybeIsChargeLoading ||
|
|
29560
|
+
const isDisabled = Boolean(!quote || maybeIsChargeLoading || quantity === undefined);
|
|
29561
29561
|
return (jsx(CheckoutBarInput, { disabled: isDisabled, priceListCharge: charge, quantity: quantity, onQuantityChanged: quantity => {
|
|
29562
29562
|
if (isInPreviewMode)
|
|
29563
29563
|
return;
|
package/package.json
CHANGED