@bunnyapp/components 1.5.0-beta.11.3 → 1.5.0-beta.12

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.
@@ -1,5 +1,5 @@
1
1
  declare function useHasActiveSubscription({ token, apiHost, }: {
2
2
  token: string;
3
3
  apiHost: string;
4
- }): boolean | undefined;
4
+ }): any;
5
5
  export default useHasActiveSubscription;
@@ -1,7 +1,9 @@
1
1
  import { Subscription } from '@bunnyapp/common';
2
- declare const UpgradeWrapper: ({ onChangePlanCancel, handlePortalErrors, upgradingSubscription, }: {
2
+ declare const UpgradeWrapper: ({ onChangePlanCancel, handlePortalErrors, upgradingSubscription, isInPreviewMode, productId, }: {
3
3
  onChangePlanCancel: () => void;
4
4
  handlePortalErrors?: ((error: any) => void) | undefined;
5
5
  upgradingSubscription?: Subscription | undefined;
6
+ isInPreviewMode: boolean;
7
+ productId: string | undefined;
6
8
  }) => import("react/jsx-runtime").JSX.Element;
7
9
  export default UpgradeWrapper;
@@ -1,13 +1,13 @@
1
1
  import { Quote, Subscription, SubscriptionCharge } from '@bunnyapp/common';
2
- declare const QuantityChangeGridRow: ({ chargeIndex, editingQuote, subscriptionIndex, setEditingQuoteData, subscription, subscriptionCharge, setUpdatingChargeQuantityId, updatingChargeQuantityId, setErrorUpdatingQuantity, }: {
2
+ declare const QuantityChangeGridRow: ({ chargeIndex, editingQuote, subscriptions, subscriptionIndex, setEditingQuoteData, subscription, subscriptionCharge, setUpdatingChargeQuantityId, updatingChargeQuantityId, }: {
3
3
  chargeIndex: number;
4
4
  editingQuote?: Quote | undefined;
5
+ subscriptions: Subscription[];
5
6
  subscriptionIndex: number;
6
7
  setEditingQuoteData: (value: any) => void;
7
8
  subscription: Subscription;
8
9
  subscriptionCharge: SubscriptionCharge;
9
10
  setUpdatingChargeQuantityId: (updatingChargeQuantityId: string | undefined) => void;
10
11
  updatingChargeQuantityId: string | undefined;
11
- setErrorUpdatingQuantity: (errorUpdatingQuantity: boolean) => void;
12
12
  }) => import("react/jsx-runtime").JSX.Element | null;
13
13
  export default QuantityChangeGridRow;
@@ -6,7 +6,7 @@ export type EditingSubscriptionType = {
6
6
  subscription: Subscription;
7
7
  subscriptionIndex: number;
8
8
  };
9
- declare const QuantityInput: ({ charge, chargeIndex, editingQuote, setEditingQuoteData, subscription, subscriptionIndex, setUpdatingChargeQuantityId, updatingChargeQuantityId, setErrorUpdatingQuantity, }: {
9
+ declare const QuantityInput: ({ charge, chargeIndex, editingQuote, setEditingQuoteData, subscription, subscriptionIndex, subscriptions, setUpdatingChargeQuantityId, updatingChargeQuantityId, }: {
10
10
  charge: SubscriptionCharge;
11
11
  chargeIndex: number;
12
12
  editingQuote?: Quote | undefined;
@@ -16,8 +16,8 @@ declare const QuantityInput: ({ charge, chargeIndex, editingQuote, setEditingQuo
16
16
  } | undefined) => void;
17
17
  subscription: Subscription;
18
18
  subscriptionIndex: number;
19
+ subscriptions: Subscription[];
19
20
  setUpdatingChargeQuantityId: (updatingChargeQuantityId: string | undefined) => void;
20
21
  updatingChargeQuantityId: string | undefined;
21
- setErrorUpdatingQuantity: (errorUpdatingQuantity: boolean) => void;
22
22
  }) => import("react/jsx-runtime").JSX.Element;
23
23
  export default QuantityInput;
@@ -1,10 +1,9 @@
1
1
  import { Quote } from '@bunnyapp/common';
2
2
  import { EditingQuoteDataType } from '../SubscriptionsListContainer';
3
- declare const QuoteChangeSummarySection: ({ editingQuote, editingQuoteData, openCheckout, setEditingQuoteData, errorUpdatingQuantity, }: {
3
+ declare const QuoteChangeSummarySection: ({ editingQuote, editingQuoteData, openCheckout, setEditingQuoteData, }: {
4
4
  editingQuote?: Quote | undefined;
5
5
  editingQuoteData?: EditingQuoteDataType | undefined;
6
6
  openCheckout: () => void;
7
7
  setEditingQuoteData: (editingQuoteData: EditingQuoteDataType | undefined) => void;
8
- errorUpdatingQuantity: boolean;
9
8
  }) => import("react/jsx-runtime").JSX.Element;
10
9
  export default QuoteChangeSummarySection;
@@ -25,4 +25,3 @@ export declare const isDiscount: (kind?: QuoteChangeKind) => boolean;
25
25
  export declare const hasPriceTiers: (charge: SubscriptionCharge) => boolean;
26
26
  export declare const hasMultiplePriceTiers: (charge: SubscriptionCharge) => boolean;
27
27
  export declare const getApplicablePriceTier: (charge: SubscriptionCharge, currencyId: string, priceDecimals: number) => string;
28
- export declare const getUpdatingChargeQuantityId: (charge: SubscriptionCharge, subscription: Subscription) => string;
@@ -8,7 +8,7 @@ export declare const useCreateSubscriptionQuote: () => (subscriptionIds: string[
8
8
  export declare const useQuoteChangeUpdate: () => (charges: {
9
9
  id: string;
10
10
  quantity: number;
11
- }[], quoteChangeId: string, apiHost: string, token?: string) => Promise<any>;
11
+ }[], quoteChangeId: string, apiHost: string, token?: string) => Promise<unknown>;
12
12
  export declare const useQuoteDelete: () => (quoteId: string, apiHost: string, token?: string) => Promise<unknown>;
13
13
  export declare const quoteSubscriptionAddon: ({ subscriptionId, priceListId, apiHost, token, }: {
14
14
  subscriptionId: string;
@@ -1,7 +1,6 @@
1
- import { Subscription } from '@bunnyapp/common';
2
1
  declare const getSubscriptions: ({ apiHost, isInPreviewMode, token, }: {
3
2
  apiHost: string;
4
3
  isInPreviewMode?: boolean | undefined;
5
4
  token?: string | undefined;
6
- }) => Promise<Subscription[]>;
5
+ }) => Promise<any>;
7
6
  export default getSubscriptions;
package/dist/index.d.ts CHANGED
@@ -192,10 +192,12 @@ declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPrev
192
192
  hideExpiredToggle?: boolean | undefined;
193
193
  }) => react_jsx_runtime.JSX.Element;
194
194
 
195
- declare const UpgradeWrapper: ({ onChangePlanCancel, handlePortalErrors, upgradingSubscription, }: {
195
+ declare const UpgradeWrapper: ({ onChangePlanCancel, handlePortalErrors, upgradingSubscription, isInPreviewMode, productId, }: {
196
196
  onChangePlanCancel: () => void;
197
197
  handlePortalErrors?: ((error: any) => void) | undefined;
198
198
  upgradingSubscription?: Subscription | undefined;
199
+ isInPreviewMode: boolean;
200
+ productId: string | undefined;
199
201
  }) => react_jsx_runtime.JSX.Element;
200
202
 
201
203
  declare const BillingDetails: ({ className, countryListFilter, hideBillingDetailsForm, hidePaymentMethodForm, isCardEnabled, isUpgradeFromTrial, shadow, onSavePaymentMethod, }: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunnyapp/components",
3
- "version": "1.5.0-beta.11.3",
3
+ "version": "1.5.0-beta.12",
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",