@bunnyapp/components 1.5.0-beta.13 → 1.5.0-beta.15
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 +500 -474
- package/dist/cjs/src/components/Invoice/InvoiceQuoteView.d.ts +1 -1
- package/dist/cjs/src/components/PaymentForm/Stripe/stripeUtils.d.ts +2 -6
- package/dist/cjs/src/components/PaymentForm/hooks/useHasActiveSubscription.d.ts +1 -1
- package/dist/cjs/src/components/Subscriptions/AddonSubscriptionCards.d.ts +2 -2
- package/dist/cjs/src/components/Subscriptions/QuantityDrawerContainer.d.ts +2 -2
- package/dist/cjs/src/components/Subscriptions/Subscriptions.d.ts +3 -3
- package/dist/cjs/src/components/Subscriptions/SubscriptionsListContainer.d.ts +2 -2
- package/dist/cjs/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +2 -1
- package/dist/cjs/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +3 -3
- package/dist/cjs/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +6 -0
- package/dist/{esm/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop → cjs/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons}/FeatureAddons.d.ts +2 -4
- package/dist/cjs/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +5 -0
- package/dist/cjs/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/BackButton.d.ts +4 -0
- package/dist/cjs/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +2 -1
- package/dist/cjs/src/components/Subscriptions/Upgrade/Upgrade.d.ts +2 -1
- package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +2 -2
- package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridTitle.d.ts +2 -2
- package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/QuantityInput.d.ts +2 -2
- package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +2 -1
- package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +0 -2
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/ShowInactiveToggle.d.ts +5 -0
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +2 -2
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +4 -4
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +1 -0
- package/dist/cjs/src/contexts/SubscriptionsContext.d.ts +1 -1
- package/dist/cjs/src/graphql/QuoteRequests.d.ts +1 -1
- package/dist/cjs/src/graphql/queries/getSubscriptions.d.ts +2 -1
- package/dist/cjs/src/utils/pricePickerUtils.d.ts +1 -1
- package/dist/esm/index.js +499 -473
- package/dist/esm/src/components/Invoice/InvoiceQuoteView.d.ts +1 -1
- package/dist/esm/src/components/PaymentForm/Stripe/stripeUtils.d.ts +2 -6
- package/dist/esm/src/components/PaymentForm/hooks/useHasActiveSubscription.d.ts +1 -1
- package/dist/esm/src/components/Subscriptions/AddonSubscriptionCards.d.ts +2 -2
- package/dist/esm/src/components/Subscriptions/QuantityDrawerContainer.d.ts +2 -2
- package/dist/esm/src/components/Subscriptions/Subscriptions.d.ts +3 -3
- package/dist/esm/src/components/Subscriptions/SubscriptionsListContainer.d.ts +2 -2
- package/dist/esm/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +2 -1
- package/dist/esm/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +3 -3
- package/dist/esm/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +6 -0
- package/dist/{cjs/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop → esm/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons}/FeatureAddons.d.ts +2 -4
- package/dist/esm/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +5 -0
- package/dist/esm/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/BackButton.d.ts +4 -0
- package/dist/esm/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +2 -1
- package/dist/esm/src/components/Subscriptions/Upgrade/Upgrade.d.ts +2 -1
- package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +2 -2
- package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridTitle.d.ts +2 -2
- package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/QuantityInput.d.ts +2 -2
- package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +2 -1
- package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +0 -2
- package/dist/esm/src/components/Subscriptions/subscriptionsList/ShowInactiveToggle.d.ts +5 -0
- package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +2 -2
- package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +4 -4
- package/dist/esm/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +1 -0
- package/dist/esm/src/contexts/SubscriptionsContext.d.ts +1 -1
- package/dist/esm/src/graphql/QuoteRequests.d.ts +1 -1
- package/dist/esm/src/graphql/queries/getSubscriptions.d.ts +2 -1
- package/dist/esm/src/utils/pricePickerUtils.d.ts +1 -1
- package/dist/index.d.ts +5 -4
- package/package.json +2 -2
- package/dist/cjs/src/components/PageWrapper.d.ts +0 -1
- package/dist/cjs/src/components/Subscriptions/PageTitle.d.ts +0 -5
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/HideExpiredToggle.d.ts +0 -5
- package/dist/esm/src/components/PageWrapper.d.ts +0 -1
- package/dist/esm/src/components/Subscriptions/PageTitle.d.ts +0 -5
- package/dist/esm/src/components/Subscriptions/subscriptionsList/HideExpiredToggle.d.ts +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
1
|
import { FormattedInvoice } from '@bunnyapp/common';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
3
|
declare const InvoiceQuoteView: ({ children, formattedInvoice, html, backButtonName, onBackButtonClick, onDownloadError, targetUrl, }: {
|
|
4
4
|
html: string;
|
|
5
5
|
children?: ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { Payable, PluginData, Quote } from '@bunnyapp/common';
|
|
1
2
|
import { Stripe } from '@stripe/stripe-js';
|
|
2
|
-
import { PluginData, Payable, Quote } from '@bunnyapp/common';
|
|
3
3
|
export declare const createPaymentMethod: ({ paymentMethodId, plugin, token, apiHost, accountId, }: {
|
|
4
4
|
paymentMethodId: string;
|
|
5
5
|
plugin: PluginData;
|
|
@@ -25,9 +25,5 @@ export declare const createPaymentHold: ({ quote, plugin, token, apiHost, paymen
|
|
|
25
25
|
}) => Promise<any>;
|
|
26
26
|
export declare const useStripePlugin: (plugin: PluginData | undefined, apiHost: string, currencyId: string, token?: string, accountId?: string) => {
|
|
27
27
|
stripe: Stripe | null;
|
|
28
|
-
options:
|
|
29
|
-
mode: "setup";
|
|
30
|
-
currency: string;
|
|
31
|
-
setupFutureUsage: "off_session";
|
|
32
|
-
};
|
|
28
|
+
options: import("@stripe/stripe-js").StripeElementsOptionsMode;
|
|
33
29
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Subscription } from '@bunnyapp/common';
|
|
2
|
-
export declare function AddonSubscriptionsCards({ onCancelSubscriptionClick, subscriptions, subscription,
|
|
2
|
+
export declare function AddonSubscriptionsCards({ onCancelSubscriptionClick, subscriptions, subscription, showInactive, }: {
|
|
3
3
|
onCancelSubscriptionClick?: (subscription: Subscription) => void;
|
|
4
4
|
subscriptions: Subscription[];
|
|
5
5
|
subscription: Subscription;
|
|
6
|
-
|
|
6
|
+
showInactive: boolean;
|
|
7
7
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -8,7 +8,7 @@ interface QuantityDrawerContainerProps {
|
|
|
8
8
|
quantityDrawerOpen: boolean;
|
|
9
9
|
setQuantityDrawerOpen: (open: boolean) => void;
|
|
10
10
|
handlePortalErrors?: (errors: any) => void;
|
|
11
|
-
|
|
11
|
+
setShowInactive: (showInactive: boolean) => void;
|
|
12
12
|
}
|
|
13
|
-
declare const QuantityDrawerContainer: ({ subscriptions, quantityDrawerOpen, setQuantityDrawerOpen, handlePortalErrors,
|
|
13
|
+
declare const QuantityDrawerContainer: ({ subscriptions, quantityDrawerOpen, setQuantityDrawerOpen, handlePortalErrors, setShowInactive, }: QuantityDrawerContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export default QuantityDrawerContainer;
|
|
@@ -3,7 +3,7 @@ export type EditingQuoteDataType = {
|
|
|
3
3
|
id: string;
|
|
4
4
|
isTrial: boolean;
|
|
5
5
|
};
|
|
6
|
-
declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent,
|
|
6
|
+
declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle, }: {
|
|
7
7
|
handlePortalErrors?: ((errors: any) => void) | undefined;
|
|
8
8
|
companyName: string;
|
|
9
9
|
isInPreviewMode?: boolean | undefined;
|
|
@@ -15,7 +15,7 @@ declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPrev
|
|
|
15
15
|
subscriptionProductNameStyle?: import("react").CSSProperties | undefined;
|
|
16
16
|
} | undefined;
|
|
17
17
|
noSubscriptionsComponent?: React.ReactNode;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
showInactiveSubscriptions?: boolean | undefined;
|
|
19
|
+
showInactiveSubscriptionsToggle?: boolean | undefined;
|
|
20
20
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
export default SubscriptionsWrapper;
|
|
@@ -4,9 +4,9 @@ export type EditingQuoteDataType = {
|
|
|
4
4
|
id: string;
|
|
5
5
|
isTrial: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare const SubscriptionsListContainer: ({ companyName,
|
|
7
|
+
declare const SubscriptionsListContainer: ({ companyName, showInactive, onCancelSubscriptionClick, onChangePlanClick, noSubscriptionsComponent, subscriptions, subscriptionsAreLoading, }: {
|
|
8
8
|
companyName: string;
|
|
9
|
-
|
|
9
|
+
showInactive?: boolean | undefined;
|
|
10
10
|
onCancelSubscriptionClick?: ((subscription: Subscription) => void) | undefined;
|
|
11
11
|
onChangePlanClick?: ((subscription: Subscription) => void) | undefined;
|
|
12
12
|
noSubscriptionsComponent?: React.ReactNode;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Subscription } from '@bunnyapp/common';
|
|
2
|
-
declare const PlanPicker: ({ upgradingSubscription }: {
|
|
2
|
+
declare const PlanPicker: ({ upgradingSubscription, onGoBack, }: {
|
|
3
3
|
upgradingSubscription?: Subscription | undefined;
|
|
4
|
+
onGoBack?: (() => void) | undefined;
|
|
4
5
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
5
6
|
export default PlanPicker;
|
package/dist/esm/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const PlanFeatures: ({ displayPriceLists,
|
|
1
|
+
import { Feature, PriceList } from '@bunnyapp/common';
|
|
2
|
+
export declare const PlanFeatures: ({ displayPriceLists, features, plansToDisplay, }: {
|
|
3
3
|
displayPriceLists: PriceList[];
|
|
4
4
|
plansToDisplay: number;
|
|
5
|
-
|
|
5
|
+
features?: Feature[] | undefined;
|
|
6
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default PlanFeatures;
|
|
@@ -13,4 +13,10 @@ type PriceListGridDesktopProps = {
|
|
|
13
13
|
onClickPriceListCard: (priceList: PriceList) => void;
|
|
14
14
|
};
|
|
15
15
|
declare const PriceListGridDesktop: ({ availablePriceLists, priceListChangeOptions, priceListStart, selectedPriceList, selectedProduct, setPriceListStart, subscriptions, trialRemainingDays, selectedBillingPeriod, onClickPriceListCard, }: PriceListGridDesktopProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function GridTemplateColumnsWrapper({ children, className, everythingInPlus, plansToDisplay, }: {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
className?: string;
|
|
19
|
+
everythingInPlus: boolean;
|
|
20
|
+
plansToDisplay: number;
|
|
21
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
16
22
|
export default PriceListGridDesktop;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { PriceList } from '@bunnyapp/common';
|
|
2
|
-
declare const PlanFeatureAddons: ({ displayPriceLists, plansToDisplay, }: {
|
|
2
|
+
declare const PlanFeatureAddons: ({ displayPriceLists, plansToDisplay, everythingInPlus, }: {
|
|
3
3
|
displayPriceLists: PriceList[];
|
|
4
4
|
plansToDisplay: number;
|
|
5
|
+
everythingInPlus: boolean;
|
|
5
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare function FeatureAddonsList({ priceList }: {
|
|
7
|
-
priceList: PriceList;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
7
|
export default PlanFeatureAddons;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { PriceListChangeOptions, Subscription } from '@bunnyapp/common';
|
|
2
|
-
declare const PriceListSelector: ({ arePlanChangeOptionsLoading, areSubscriptionsLoading, priceListChangeOptions, subscriptions, }: {
|
|
2
|
+
declare const PriceListSelector: ({ arePlanChangeOptionsLoading, areSubscriptionsLoading, priceListChangeOptions, subscriptions, onGoBack, }: {
|
|
3
3
|
arePlanChangeOptionsLoading: boolean;
|
|
4
4
|
areSubscriptionsLoading: boolean;
|
|
5
5
|
priceListChangeOptions: PriceListChangeOptions;
|
|
6
6
|
subscriptions: Subscription[];
|
|
7
|
+
onGoBack?: (() => void) | undefined;
|
|
7
8
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export default PriceListSelector;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Subscription } from '@bunnyapp/common';
|
|
2
|
-
declare const UpgradeWrapper: ({ onChangePlanCancel, handlePortalErrors, upgradingSubscription, isInPreviewMode, productId, className, }: {
|
|
2
|
+
declare const UpgradeWrapper: ({ onChangePlanCancel, handlePortalErrors, upgradingSubscription, isInPreviewMode, productId, className, shadow, }: {
|
|
3
3
|
onChangePlanCancel: () => void;
|
|
4
4
|
handlePortalErrors?: ((error: any) => void) | undefined;
|
|
5
5
|
upgradingSubscription?: Subscription | undefined;
|
|
6
6
|
isInPreviewMode: boolean;
|
|
7
7
|
productId: string | undefined;
|
|
8
8
|
className?: string | undefined;
|
|
9
|
+
shadow?: "none" | "lg" | "md" | "sm" | undefined;
|
|
9
10
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export default UpgradeWrapper;
|
package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Quote, Subscription, SubscriptionCharge } from '@bunnyapp/common';
|
|
2
|
-
declare const QuantityChangeGridRow: ({ chargeIndex, editingQuote,
|
|
2
|
+
declare const QuantityChangeGridRow: ({ chargeIndex, editingQuote, subscriptionIndex, setEditingQuoteData, subscription, subscriptionCharge, setUpdatingChargeQuantityId, updatingChargeQuantityId, setErrorUpdatingQuantity, }: {
|
|
3
3
|
chargeIndex: number;
|
|
4
4
|
editingQuote?: Quote | undefined;
|
|
5
|
-
subscriptions: Subscription[];
|
|
6
5
|
subscriptionIndex: number;
|
|
7
6
|
setEditingQuoteData: (value: any) => void;
|
|
8
7
|
subscription: Subscription;
|
|
9
8
|
subscriptionCharge: SubscriptionCharge;
|
|
10
9
|
setUpdatingChargeQuantityId: (updatingChargeQuantityId: string | undefined) => void;
|
|
11
10
|
updatingChargeQuantityId: string | undefined;
|
|
11
|
+
setErrorUpdatingQuantity: (errorUpdatingQuantity: boolean) => void;
|
|
12
12
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
13
|
export default QuantityChangeGridRow;
|
package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridTitle.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
declare const QuantityChangeGridTitle: ({ children, right
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
declare const QuantityChangeGridTitle: ({ children, right }: {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
right?: boolean | undefined;
|
|
5
5
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -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,
|
|
9
|
+
declare const QuantityInput: ({ charge, chargeIndex, editingQuote, setEditingQuoteData, subscription, subscriptionIndex, setUpdatingChargeQuantityId, updatingChargeQuantityId, setErrorUpdatingQuantity, }: {
|
|
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[];
|
|
20
19
|
setUpdatingChargeQuantityId: (updatingChargeQuantityId: string | undefined) => void;
|
|
21
20
|
updatingChargeQuantityId: string | undefined;
|
|
21
|
+
setErrorUpdatingQuantity: (errorUpdatingQuantity: boolean) => void;
|
|
22
22
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
export default QuantityInput;
|
package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Quote } from '@bunnyapp/common';
|
|
2
2
|
import { EditingQuoteDataType } from '../SubscriptionsListContainer';
|
|
3
|
-
declare const QuoteChangeSummarySection: ({ editingQuote, editingQuoteData, openCheckout, setEditingQuoteData, }: {
|
|
3
|
+
declare const QuoteChangeSummarySection: ({ editingQuote, editingQuoteData, openCheckout, setEditingQuoteData, errorUpdatingQuantity, }: {
|
|
4
4
|
editingQuote?: Quote | undefined;
|
|
5
5
|
editingQuoteData?: EditingQuoteDataType | undefined;
|
|
6
6
|
openCheckout: () => void;
|
|
7
7
|
setEditingQuoteData: (editingQuoteData: EditingQuoteDataType | undefined) => void;
|
|
8
|
+
errorUpdatingQuantity: boolean;
|
|
8
9
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export default QuoteChangeSummarySection;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { Quote, Subscription } from '@bunnyapp/common';
|
|
2
2
|
import { EditingQuoteDataType } from '../../SubscriptionsListContainer';
|
|
3
|
-
export declare const QUANTITY_CHANGE_HEADER_TITLE = "Update unit quantity";
|
|
4
|
-
export declare const QUANTITY_CHANGE_HEADER_DESCRIPTION = "Adjust quantities below. The change will take effect immediately after checkout has been completed.";
|
|
5
3
|
declare const QuantityChangeDrawerDesktop: ({ editingQuote, editingQuoteData, onClose, open, openCheckout, setEditingQuoteData, subscriptions, setUpdatingChargeQuantityId, updatingChargeQuantityId, }: {
|
|
6
4
|
editingQuote?: Quote | undefined;
|
|
7
5
|
editingQuoteData?: EditingQuoteDataType | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Subscription } from '@bunnyapp/common';
|
|
2
|
-
declare const SubscriptionsList: ({
|
|
3
|
-
|
|
2
|
+
declare const SubscriptionsList: ({ showInactive, onChangePlanClick, onCancelSubscriptionClick, subscriptions, }: {
|
|
3
|
+
showInactive: boolean;
|
|
4
4
|
onChangePlanClick?: ((subscription: Subscription) => void) | undefined;
|
|
5
5
|
onCancelSubscriptionClick?: ((subscription: Subscription) => void) | undefined;
|
|
6
6
|
subscriptions: Subscription[];
|
package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Subscription } from '@bunnyapp/common';
|
|
2
|
-
declare const SubscriptionsNavigation: ({
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
declare const SubscriptionsNavigation: ({ inactiveSwitchVisible, showInactive, setShowInactive, setQuantityDrawerOpen, subscriptions, }: {
|
|
3
|
+
inactiveSwitchVisible: boolean;
|
|
4
|
+
showInactive: boolean;
|
|
5
|
+
setShowInactive: (value: boolean) => void;
|
|
6
6
|
setQuantityDrawerOpen: (value: boolean) => void;
|
|
7
7
|
subscriptions: Subscription[];
|
|
8
8
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -25,3 +25,4 @@ 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 type SubscriptionsContextValues = {
|
|
|
8
8
|
subscriptionProductNameStyle?: React.CSSProperties;
|
|
9
9
|
productId?: string;
|
|
10
10
|
isInPreviewMode: boolean;
|
|
11
|
-
|
|
11
|
+
showInactiveSubscriptions?: boolean;
|
|
12
12
|
upgradingSubscription?: Subscription;
|
|
13
13
|
setUpgradingSubscription: React.Dispatch<React.SetStateAction<Subscription | undefined>>;
|
|
14
14
|
};
|
|
@@ -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<
|
|
11
|
+
}[], quoteChangeId: string, apiHost: string, token?: string) => Promise<any>;
|
|
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,6 +1,7 @@
|
|
|
1
|
+
import { Subscription } from '@bunnyapp/common';
|
|
1
2
|
declare const getSubscriptions: ({ apiHost, isInPreviewMode, token, }: {
|
|
2
3
|
apiHost: string;
|
|
3
4
|
isInPreviewMode?: boolean | undefined;
|
|
4
5
|
token?: string | undefined;
|
|
5
|
-
}) => Promise<
|
|
6
|
+
}) => Promise<Subscription[]>;
|
|
6
7
|
export default getSubscriptions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BillingPeriod, Plan, Product } from "@bunnyapp/common";
|
|
2
2
|
export type PeriodMonths = 0 | 1 | 3 | 6 | 12;
|
|
3
3
|
export declare const periodMonthsConverter: (period: PeriodMonths) => BillingPeriod;
|
|
4
|
-
export declare const billingPeriodConverter: (period?: BillingPeriod) =>
|
|
4
|
+
export declare const billingPeriodConverter: (period?: BillingPeriod) => 1 | 0 | 3 | 6 | 12;
|
|
5
5
|
export declare const createAvailableBillingPeriods: (plans?: Plan[], selectedProduct?: Product) => (0 | 1 | 3 | 6 | 12)[] | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -176,7 +176,7 @@ declare function Transactions({ transactionComponent, showSearchBar, showTitle,
|
|
|
176
176
|
hidePaymentForm?: boolean;
|
|
177
177
|
}): react_jsx_runtime.JSX.Element;
|
|
178
178
|
|
|
179
|
-
declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent,
|
|
179
|
+
declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle, }: {
|
|
180
180
|
handlePortalErrors?: ((errors: any) => void) | undefined;
|
|
181
181
|
companyName: string;
|
|
182
182
|
isInPreviewMode?: boolean | undefined;
|
|
@@ -188,17 +188,18 @@ declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPrev
|
|
|
188
188
|
subscriptionProductNameStyle?: react.CSSProperties | undefined;
|
|
189
189
|
} | undefined;
|
|
190
190
|
noSubscriptionsComponent?: React.ReactNode;
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
showInactiveSubscriptions?: boolean | undefined;
|
|
192
|
+
showInactiveSubscriptionsToggle?: boolean | undefined;
|
|
193
193
|
}) => react_jsx_runtime.JSX.Element;
|
|
194
194
|
|
|
195
|
-
declare const UpgradeWrapper: ({ onChangePlanCancel, handlePortalErrors, upgradingSubscription, isInPreviewMode, productId, className, }: {
|
|
195
|
+
declare const UpgradeWrapper: ({ onChangePlanCancel, handlePortalErrors, upgradingSubscription, isInPreviewMode, productId, className, shadow, }: {
|
|
196
196
|
onChangePlanCancel: () => void;
|
|
197
197
|
handlePortalErrors?: ((error: any) => void) | undefined;
|
|
198
198
|
upgradingSubscription?: Subscription | undefined;
|
|
199
199
|
isInPreviewMode: boolean;
|
|
200
200
|
productId: string | undefined;
|
|
201
201
|
className?: string | undefined;
|
|
202
|
+
shadow?: "none" | "lg" | "md" | "sm" | undefined;
|
|
202
203
|
}) => react_jsx_runtime.JSX.Element;
|
|
203
204
|
|
|
204
205
|
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.
|
|
3
|
+
"version": "1.5.0-beta.15",
|
|
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",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@ant-design/icons": "^5.6.1",
|
|
67
|
-
"@bunnyapp/common": "1.5.0-beta.
|
|
67
|
+
"@bunnyapp/common": "1.5.0-beta.6",
|
|
68
68
|
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
|
69
69
|
"@fortawesome/free-brands-svg-icons": "^6.7.2",
|
|
70
70
|
"@fortawesome/free-regular-svg-icons": "^6.7.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const pageWrapperClassName: (isMobile: boolean) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const pageWrapperClassName: (isMobile: boolean) => string;
|