@bunnyapp/components 1.7.0-beta.46 → 1.7.0-beta.47

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.7.0-beta.45';
1286
+ const PACKAGE_VERSION = '1.7.0-beta.46';
1287
1287
  const createRequestHeaders = (token) => {
1288
1288
  const headers = createClientDevHeaders({ token });
1289
1289
  // Add the components version header
@@ -28457,7 +28457,7 @@ const QuantityInput = ({ charge: maskedCharge, subscription: maskedSubscription,
28457
28457
  const { mutate: createQuote, isPending: isCreatingQuote } = reactQuery.useMutation({
28458
28458
  mutationFn: (subscriptionId) => quoteSubscriptionUpdate([subscriptionId], apiHost, token),
28459
28459
  onSuccess: quote => {
28460
- var _a, _b, _c;
28460
+ var _a, _b, _c, _d;
28461
28461
  if (!(quote === null || quote === void 0 ? void 0 : quote.id))
28462
28462
  throw new Error('quote id is required');
28463
28463
  setQuoteId(quote === null || quote === void 0 ? void 0 : quote.id);
@@ -28474,7 +28474,7 @@ const QuantityInput = ({ charge: maskedCharge, subscription: maskedSubscription,
28474
28474
  quantity,
28475
28475
  quoteChangeId: quoteChange === null || quoteChange === void 0 ? void 0 : quoteChange.id,
28476
28476
  startDate: formatDateForApi(dayjs()),
28477
- subscriptionChargeId: subscriptionCharge.id,
28477
+ priceListChargeId: (_d = subscriptionCharge.priceListCharge) === null || _d === void 0 ? void 0 : _d.id,
28478
28478
  token,
28479
28479
  });
28480
28480
  },
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.7.0-beta.45';
1284
+ const PACKAGE_VERSION = '1.7.0-beta.46';
1285
1285
  const createRequestHeaders = (token) => {
1286
1286
  const headers = createClientDevHeaders({ token });
1287
1287
  // Add the components version header
@@ -28455,7 +28455,7 @@ const QuantityInput = ({ charge: maskedCharge, subscription: maskedSubscription,
28455
28455
  const { mutate: createQuote, isPending: isCreatingQuote } = useMutation({
28456
28456
  mutationFn: (subscriptionId) => quoteSubscriptionUpdate([subscriptionId], apiHost, token),
28457
28457
  onSuccess: quote => {
28458
- var _a, _b, _c;
28458
+ var _a, _b, _c, _d;
28459
28459
  if (!(quote === null || quote === void 0 ? void 0 : quote.id))
28460
28460
  throw new Error('quote id is required');
28461
28461
  setQuoteId(quote === null || quote === void 0 ? void 0 : quote.id);
@@ -28472,7 +28472,7 @@ const QuantityInput = ({ charge: maskedCharge, subscription: maskedSubscription,
28472
28472
  quantity,
28473
28473
  quoteChangeId: quoteChange === null || quoteChange === void 0 ? void 0 : quoteChange.id,
28474
28474
  startDate: formatDateForApi(dayjs()),
28475
- subscriptionChargeId: subscriptionCharge.id,
28475
+ priceListChargeId: (_d = subscriptionCharge.priceListCharge) === null || _d === void 0 ? void 0 : _d.id,
28476
28476
  token,
28477
28477
  });
28478
28478
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunnyapp/components",
3
- "version": "1.7.0-beta.46",
3
+ "version": "1.7.0-beta.47",
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",