@bunnyapp/components 1.6.0-beta.11 → 1.6.0-beta.13

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
@@ -52,7 +52,7 @@ var css_248z = ":root {\n --row-background: #ffffff;\n --row-background-altern
52
52
  styleInject(css_248z);
53
53
 
54
54
  // This will be replaced at build time by rollup-plugin-replace
55
- const PACKAGE_VERSION = '1.6.0-beta.10';
55
+ const PACKAGE_VERSION = '1.6.0-beta.12';
56
56
  const createRequestHeaders = (token) => {
57
57
  const headers = createClientDevHeaders({ token });
58
58
  // Add the components version header
@@ -23241,7 +23241,7 @@ const getSubscriptionStatusText = (subscription) => {
23241
23241
  if (isTrial) {
23242
23242
  switch (trialExpirationAction) {
23243
23243
  case 'ACTIVATE':
23244
- return `Activates on ${common.formatDate(endDate)}`;
23244
+ return `Activates on ${common.formatDate(startDate)}`;
23245
23245
  case 'CANCEL':
23246
23246
  return `Trial expires on ${common.formatDate(trialEndDate)}`;
23247
23247
  }
@@ -24069,7 +24069,9 @@ function hasUnpurchasedFeatureAddons(priceList, currentSubscription) {
24069
24069
  return unpurchasedFeatureAddons.length > 0;
24070
24070
  }
24071
24071
  function findQuoteChangeForFeatureAddon(quote) {
24072
- return quote === null || quote === void 0 ? void 0 : quote.quoteChanges.find(qc => qc.kind === common.QuoteChangeKind.UPDATE || qc.kind === common.QuoteChangeKind.SUBSCRIBE);
24072
+ return quote === null || quote === void 0 ? void 0 : quote.quoteChanges.find(qc => qc.kind === common.QuoteChangeKind.UPDATE ||
24073
+ qc.kind === common.QuoteChangeKind.SUBSCRIBE ||
24074
+ qc.kind === common.QuoteChangeKind.ACTIVATE);
24073
24075
  }
24074
24076
  function featureAddonInQuote(selectedPriceList, priceListCharge, quote) {
24075
24077
  var _a, _b, _c;
package/dist/esm/index.js CHANGED
@@ -50,7 +50,7 @@ var css_248z = ":root {\n --row-background: #ffffff;\n --row-background-altern
50
50
  styleInject(css_248z);
51
51
 
52
52
  // This will be replaced at build time by rollup-plugin-replace
53
- const PACKAGE_VERSION = '1.6.0-beta.10';
53
+ const PACKAGE_VERSION = '1.6.0-beta.12';
54
54
  const createRequestHeaders = (token) => {
55
55
  const headers = createClientDevHeaders({ token });
56
56
  // Add the components version header
@@ -23239,7 +23239,7 @@ const getSubscriptionStatusText = (subscription) => {
23239
23239
  if (isTrial) {
23240
23240
  switch (trialExpirationAction) {
23241
23241
  case 'ACTIVATE':
23242
- return `Activates on ${formatDate(endDate)}`;
23242
+ return `Activates on ${formatDate(startDate)}`;
23243
23243
  case 'CANCEL':
23244
23244
  return `Trial expires on ${formatDate(trialEndDate)}`;
23245
23245
  }
@@ -24067,7 +24067,9 @@ function hasUnpurchasedFeatureAddons(priceList, currentSubscription) {
24067
24067
  return unpurchasedFeatureAddons.length > 0;
24068
24068
  }
24069
24069
  function findQuoteChangeForFeatureAddon(quote) {
24070
- return quote === null || quote === void 0 ? void 0 : quote.quoteChanges.find(qc => qc.kind === QuoteChangeKind.UPDATE || qc.kind === QuoteChangeKind.SUBSCRIBE);
24070
+ return quote === null || quote === void 0 ? void 0 : quote.quoteChanges.find(qc => qc.kind === QuoteChangeKind.UPDATE ||
24071
+ qc.kind === QuoteChangeKind.SUBSCRIBE ||
24072
+ qc.kind === QuoteChangeKind.ACTIVATE);
24071
24073
  }
24072
24074
  function featureAddonInQuote(selectedPriceList, priceListCharge, quote) {
24073
24075
  var _a, _b, _c;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunnyapp/components",
3
- "version": "1.6.0-beta.11",
3
+ "version": "1.6.0-beta.13",
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",