@bunnyapp/components 1.8.0 → 1.8.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/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.2';
1286
+ const PACKAGE_VERSION = '1.8.1';
1287
1287
  const createRequestHeaders = (token) => {
1288
1288
  const headers = createClientDevHeaders({ token });
1289
1289
  // Add the components version header
@@ -24805,7 +24805,7 @@ const PlanPickerCheckoutBar = ({ selectedPriceList, handlePortalErrors, onChecko
24805
24805
  const isFeatureAddon = charge.featureAddon;
24806
24806
  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;
24807
24807
  const maybeIsChargeLoading = isFeatureAddon && isFeatureAddonsLoading;
24808
- const isDisabled = Boolean(!quote || maybeIsChargeLoading || !quantity);
24808
+ const isDisabled = Boolean(!quote || maybeIsChargeLoading || quantity === undefined);
24809
24809
  return (jsxRuntime.jsx(CheckoutBarInput, { disabled: isDisabled, priceListCharge: charge, quantity: quantity, onQuantityChanged: quantity => {
24810
24810
  if (isInPreviewMode)
24811
24811
  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.2';
1284
+ const PACKAGE_VERSION = '1.8.1';
1285
1285
  const createRequestHeaders = (token) => {
1286
1286
  const headers = createClientDevHeaders({ token });
1287
1287
  // Add the components version header
@@ -24803,7 +24803,7 @@ const PlanPickerCheckoutBar = ({ selectedPriceList, handlePortalErrors, onChecko
24803
24803
  const isFeatureAddon = charge.featureAddon;
24804
24804
  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;
24805
24805
  const maybeIsChargeLoading = isFeatureAddon && isFeatureAddonsLoading;
24806
- const isDisabled = Boolean(!quote || maybeIsChargeLoading || !quantity);
24806
+ const isDisabled = Boolean(!quote || maybeIsChargeLoading || quantity === undefined);
24807
24807
  return (jsx(CheckoutBarInput, { disabled: isDisabled, priceListCharge: charge, quantity: quantity, onQuantityChanged: quantity => {
24808
24808
  if (isInPreviewMode)
24809
24809
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunnyapp/components",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "Components from the Bunny portal to embed Bunny UI functionality into your application.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",