@bunnyapp/components 1.7.0-beta.40 → 1.7.0-beta.41
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 +8 -7
- package/dist/cjs/types/src/components/Subscriptions/Subscriptions.d.ts +2 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/Upgrade.d.ts +4 -5
- package/dist/esm/index.js +8 -7
- package/dist/esm/types/src/components/Subscriptions/Subscriptions.d.ts +2 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/Upgrade.d.ts +4 -5
- package/dist/index.d.ts +6 -6
- package/package.json +1 -1
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.
|
|
1286
|
+
const PACKAGE_VERSION = '1.7.0-beta.40';
|
|
1287
1287
|
const createRequestHeaders = (token) => {
|
|
1288
1288
|
const headers = createClientDevHeaders({ token });
|
|
1289
1289
|
// Add the components version header
|
|
@@ -29617,7 +29617,7 @@ const getSubscriptions = async ({ apiHost, isInPreviewMode, token, }) => {
|
|
|
29617
29617
|
};
|
|
29618
29618
|
|
|
29619
29619
|
const showInfoNotification = useInfoNotification();
|
|
29620
|
-
const UpgradeWrapper = ({ onChangePlanCancel, handlePortalErrors, onPaymentMethodSaved, onPaymentMethodRemoved, upgradingSubscriptionId, isInPreviewMode, productId, className, shadow = 'md', defaultBillingPeriod, }) => {
|
|
29620
|
+
const UpgradeWrapper = ({ onChangePlanCancel, handlePortalErrors, onPaymentMethodSaved, onPaymentMethodRemoved, upgradingSubscriptionId, isInPreviewMode = false, productId, className, shadow = 'md', defaultBillingPeriod, }) => {
|
|
29621
29621
|
var _a, _b, _c;
|
|
29622
29622
|
// Context
|
|
29623
29623
|
const token = useToken();
|
|
@@ -29682,11 +29682,11 @@ const UpgradeContent = ({ onChangePlanCancel, handlePortalErrors, subscriptions,
|
|
|
29682
29682
|
if (isInPreviewMode)
|
|
29683
29683
|
return showInfoNotification('You are in preview mode');
|
|
29684
29684
|
onClearQuote();
|
|
29685
|
-
onChangePlanCancel();
|
|
29686
|
-
} }), jsxRuntime.jsx("div", { ref: stickyRef }), jsxRuntime.jsx("div", { className: `bunny-sticky bunny-bottom-4 bunny-transition-[margin] bunny-duration-300 ${isSticky ? 'bunny-mx-4' : 'bunny-mx-0'}`, children: selectedPriceList && (jsxRuntime.jsx(PlanPickerCheckoutBar, { selectedPriceList: selectedPriceList, handlePortalErrors: handlePortalErrors, onCheckoutSuccess: () => onChangePlanCancel() })) })] }));
|
|
29685
|
+
onChangePlanCancel === null || onChangePlanCancel === void 0 ? void 0 : onChangePlanCancel();
|
|
29686
|
+
} }), jsxRuntime.jsx("div", { ref: stickyRef }), jsxRuntime.jsx("div", { className: `bunny-sticky bunny-bottom-4 bunny-transition-[margin] bunny-duration-300 ${isSticky ? 'bunny-mx-4' : 'bunny-mx-0'}`, children: selectedPriceList && (jsxRuntime.jsx(PlanPickerCheckoutBar, { selectedPriceList: selectedPriceList, handlePortalErrors: handlePortalErrors, onCheckoutSuccess: () => onChangePlanCancel === null || onChangePlanCancel === void 0 ? void 0 : onChangePlanCancel() })) })] }));
|
|
29687
29687
|
};
|
|
29688
29688
|
|
|
29689
|
-
const SubscriptionsWrapper = ({ handlePortalErrors, companyName, isInPreviewMode = false, productId, className, styles: userStyles = {}, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle = true, onPaymentMethodSaved, onPaymentMethodRemoved, }) => {
|
|
29689
|
+
const SubscriptionsWrapper = ({ handlePortalErrors, companyName, isInPreviewMode = false, productId, className, styles: userStyles = {}, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle = true, onPaymentMethodSaved, onPaymentMethodRemoved, onSubscriptionUpgradeClick, }) => {
|
|
29690
29690
|
var _a, _b;
|
|
29691
29691
|
// Context
|
|
29692
29692
|
const token = useToken();
|
|
@@ -29718,9 +29718,9 @@ const SubscriptionsWrapper = ({ handlePortalErrors, companyName, isInPreviewMode
|
|
|
29718
29718
|
productId,
|
|
29719
29719
|
isInPreviewMode,
|
|
29720
29720
|
showInactiveSubscriptions,
|
|
29721
|
-
}, children: jsxRuntime.jsx(UpgradingSubscriptionIdProvider, { children: jsxRuntime.jsx(OnPaymentMethodSavedProvider, { value: onPaymentMethodSaved, children: jsxRuntime.jsx(OnPaymentMethodRemovedProvider, { value: onPaymentMethodRemoved, children: jsxRuntime.jsx(Subscriptions, { subscriptions: subscriptions, subscriptionsAreLoading: subscriptionsAreLoading, handlePortalErrors: handlePortalErrors, companyName: companyName, noSubscriptionsComponent: noSubscriptionsComponent, showInactiveSubscriptionsToggle: showInactiveSubscriptionsToggle }) }) }) }) }));
|
|
29721
|
+
}, children: jsxRuntime.jsx(UpgradingSubscriptionIdProvider, { children: jsxRuntime.jsx(OnPaymentMethodSavedProvider, { value: onPaymentMethodSaved, children: jsxRuntime.jsx(OnPaymentMethodRemovedProvider, { value: onPaymentMethodRemoved, children: jsxRuntime.jsx(Subscriptions, { subscriptions: subscriptions, subscriptionsAreLoading: subscriptionsAreLoading, handlePortalErrors: handlePortalErrors, companyName: companyName, noSubscriptionsComponent: noSubscriptionsComponent, showInactiveSubscriptionsToggle: showInactiveSubscriptionsToggle, onSubscriptionUpgradeClick: onSubscriptionUpgradeClick }) }) }) }) }));
|
|
29722
29722
|
};
|
|
29723
|
-
const Subscriptions = ({ subscriptions: maskedSubscriptions, subscriptionsAreLoading, handlePortalErrors, companyName, noSubscriptionsComponent, showInactiveSubscriptionsToggle, }) => {
|
|
29723
|
+
const Subscriptions = ({ subscriptions: maskedSubscriptions, subscriptionsAreLoading, handlePortalErrors, companyName, noSubscriptionsComponent, showInactiveSubscriptionsToggle, onSubscriptionUpgradeClick, }) => {
|
|
29724
29724
|
// Context
|
|
29725
29725
|
const token = useToken();
|
|
29726
29726
|
const { apiHost } = react.useContext(BunnyContext);
|
|
@@ -29754,6 +29754,7 @@ const Subscriptions = ({ subscriptions: maskedSubscriptions, subscriptionsAreLoa
|
|
|
29754
29754
|
});
|
|
29755
29755
|
// Handlers
|
|
29756
29756
|
const onChangePlanClick = (subscriptionId) => {
|
|
29757
|
+
onSubscriptionUpgradeClick === null || onSubscriptionUpgradeClick === void 0 ? void 0 : onSubscriptionUpgradeClick(subscriptionId);
|
|
29757
29758
|
setUpgradingSubscriptionId(subscriptionId);
|
|
29758
29759
|
setIsChangingPlan(true);
|
|
29759
29760
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle, onPaymentMethodSaved, onPaymentMethodRemoved, }: {
|
|
1
|
+
declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle, onPaymentMethodSaved, onPaymentMethodRemoved, onSubscriptionUpgradeClick, }: {
|
|
2
2
|
handlePortalErrors?: (errors: any) => void;
|
|
3
3
|
companyName: string;
|
|
4
4
|
isInPreviewMode?: boolean;
|
|
@@ -14,5 +14,6 @@ declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPrev
|
|
|
14
14
|
showInactiveSubscriptionsToggle?: boolean;
|
|
15
15
|
onPaymentMethodSaved?: (paymentMethodId: string) => void;
|
|
16
16
|
onPaymentMethodRemoved?: (paymentMethodId: string) => void;
|
|
17
|
+
onSubscriptionUpgradeClick?: (subscriptionId: string) => void;
|
|
17
18
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
export default SubscriptionsWrapper;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
|
|
2
1
|
declare const UpgradeWrapper: ({ onChangePlanCancel, handlePortalErrors, onPaymentMethodSaved, onPaymentMethodRemoved, upgradingSubscriptionId, isInPreviewMode, productId, className, shadow, defaultBillingPeriod, }: {
|
|
3
|
-
onChangePlanCancel
|
|
2
|
+
onChangePlanCancel?: () => void;
|
|
4
3
|
handlePortalErrors?: (error: any) => void;
|
|
5
4
|
onPaymentMethodSaved?: (paymentMethodId: string) => void;
|
|
6
5
|
onPaymentMethodRemoved?: (paymentMethodId: string) => void;
|
|
7
6
|
upgradingSubscriptionId?: string;
|
|
8
|
-
isInPreviewMode
|
|
9
|
-
productId
|
|
7
|
+
isInPreviewMode?: boolean;
|
|
8
|
+
productId?: string | undefined;
|
|
10
9
|
className?: string;
|
|
11
10
|
shadow?: "none" | "sm" | "md" | "lg";
|
|
12
11
|
/**
|
|
13
12
|
* If provided and the billing period is available, the billing period selector will default to this value.
|
|
14
13
|
*/
|
|
15
|
-
defaultBillingPeriod?:
|
|
14
|
+
defaultBillingPeriod?: "ONCE" | "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL";
|
|
16
15
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
17
16
|
export default UpgradeWrapper;
|
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.
|
|
1284
|
+
const PACKAGE_VERSION = '1.7.0-beta.40';
|
|
1285
1285
|
const createRequestHeaders = (token) => {
|
|
1286
1286
|
const headers = createClientDevHeaders({ token });
|
|
1287
1287
|
// Add the components version header
|
|
@@ -29615,7 +29615,7 @@ const getSubscriptions = async ({ apiHost, isInPreviewMode, token, }) => {
|
|
|
29615
29615
|
};
|
|
29616
29616
|
|
|
29617
29617
|
const showInfoNotification = useInfoNotification();
|
|
29618
|
-
const UpgradeWrapper = ({ onChangePlanCancel, handlePortalErrors, onPaymentMethodSaved, onPaymentMethodRemoved, upgradingSubscriptionId, isInPreviewMode, productId, className, shadow = 'md', defaultBillingPeriod, }) => {
|
|
29618
|
+
const UpgradeWrapper = ({ onChangePlanCancel, handlePortalErrors, onPaymentMethodSaved, onPaymentMethodRemoved, upgradingSubscriptionId, isInPreviewMode = false, productId, className, shadow = 'md', defaultBillingPeriod, }) => {
|
|
29619
29619
|
var _a, _b, _c;
|
|
29620
29620
|
// Context
|
|
29621
29621
|
const token = useToken();
|
|
@@ -29680,11 +29680,11 @@ const UpgradeContent = ({ onChangePlanCancel, handlePortalErrors, subscriptions,
|
|
|
29680
29680
|
if (isInPreviewMode)
|
|
29681
29681
|
return showInfoNotification('You are in preview mode');
|
|
29682
29682
|
onClearQuote();
|
|
29683
|
-
onChangePlanCancel();
|
|
29684
|
-
} }), jsx("div", { ref: stickyRef }), jsx("div", { className: `bunny-sticky bunny-bottom-4 bunny-transition-[margin] bunny-duration-300 ${isSticky ? 'bunny-mx-4' : 'bunny-mx-0'}`, children: selectedPriceList && (jsx(PlanPickerCheckoutBar, { selectedPriceList: selectedPriceList, handlePortalErrors: handlePortalErrors, onCheckoutSuccess: () => onChangePlanCancel() })) })] }));
|
|
29683
|
+
onChangePlanCancel === null || onChangePlanCancel === void 0 ? void 0 : onChangePlanCancel();
|
|
29684
|
+
} }), jsx("div", { ref: stickyRef }), jsx("div", { className: `bunny-sticky bunny-bottom-4 bunny-transition-[margin] bunny-duration-300 ${isSticky ? 'bunny-mx-4' : 'bunny-mx-0'}`, children: selectedPriceList && (jsx(PlanPickerCheckoutBar, { selectedPriceList: selectedPriceList, handlePortalErrors: handlePortalErrors, onCheckoutSuccess: () => onChangePlanCancel === null || onChangePlanCancel === void 0 ? void 0 : onChangePlanCancel() })) })] }));
|
|
29685
29685
|
};
|
|
29686
29686
|
|
|
29687
|
-
const SubscriptionsWrapper = ({ handlePortalErrors, companyName, isInPreviewMode = false, productId, className, styles: userStyles = {}, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle = true, onPaymentMethodSaved, onPaymentMethodRemoved, }) => {
|
|
29687
|
+
const SubscriptionsWrapper = ({ handlePortalErrors, companyName, isInPreviewMode = false, productId, className, styles: userStyles = {}, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle = true, onPaymentMethodSaved, onPaymentMethodRemoved, onSubscriptionUpgradeClick, }) => {
|
|
29688
29688
|
var _a, _b;
|
|
29689
29689
|
// Context
|
|
29690
29690
|
const token = useToken();
|
|
@@ -29716,9 +29716,9 @@ const SubscriptionsWrapper = ({ handlePortalErrors, companyName, isInPreviewMode
|
|
|
29716
29716
|
productId,
|
|
29717
29717
|
isInPreviewMode,
|
|
29718
29718
|
showInactiveSubscriptions,
|
|
29719
|
-
}, children: jsx(UpgradingSubscriptionIdProvider, { children: jsx(OnPaymentMethodSavedProvider, { value: onPaymentMethodSaved, children: jsx(OnPaymentMethodRemovedProvider, { value: onPaymentMethodRemoved, children: jsx(Subscriptions, { subscriptions: subscriptions, subscriptionsAreLoading: subscriptionsAreLoading, handlePortalErrors: handlePortalErrors, companyName: companyName, noSubscriptionsComponent: noSubscriptionsComponent, showInactiveSubscriptionsToggle: showInactiveSubscriptionsToggle }) }) }) }) }));
|
|
29719
|
+
}, children: jsx(UpgradingSubscriptionIdProvider, { children: jsx(OnPaymentMethodSavedProvider, { value: onPaymentMethodSaved, children: jsx(OnPaymentMethodRemovedProvider, { value: onPaymentMethodRemoved, children: jsx(Subscriptions, { subscriptions: subscriptions, subscriptionsAreLoading: subscriptionsAreLoading, handlePortalErrors: handlePortalErrors, companyName: companyName, noSubscriptionsComponent: noSubscriptionsComponent, showInactiveSubscriptionsToggle: showInactiveSubscriptionsToggle, onSubscriptionUpgradeClick: onSubscriptionUpgradeClick }) }) }) }) }));
|
|
29720
29720
|
};
|
|
29721
|
-
const Subscriptions = ({ subscriptions: maskedSubscriptions, subscriptionsAreLoading, handlePortalErrors, companyName, noSubscriptionsComponent, showInactiveSubscriptionsToggle, }) => {
|
|
29721
|
+
const Subscriptions = ({ subscriptions: maskedSubscriptions, subscriptionsAreLoading, handlePortalErrors, companyName, noSubscriptionsComponent, showInactiveSubscriptionsToggle, onSubscriptionUpgradeClick, }) => {
|
|
29722
29722
|
// Context
|
|
29723
29723
|
const token = useToken();
|
|
29724
29724
|
const { apiHost } = useContext(BunnyContext);
|
|
@@ -29752,6 +29752,7 @@ const Subscriptions = ({ subscriptions: maskedSubscriptions, subscriptionsAreLoa
|
|
|
29752
29752
|
});
|
|
29753
29753
|
// Handlers
|
|
29754
29754
|
const onChangePlanClick = (subscriptionId) => {
|
|
29755
|
+
onSubscriptionUpgradeClick === null || onSubscriptionUpgradeClick === void 0 ? void 0 : onSubscriptionUpgradeClick(subscriptionId);
|
|
29755
29756
|
setUpgradingSubscriptionId(subscriptionId);
|
|
29756
29757
|
setIsChangingPlan(true);
|
|
29757
29758
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle, onPaymentMethodSaved, onPaymentMethodRemoved, }: {
|
|
1
|
+
declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle, onPaymentMethodSaved, onPaymentMethodRemoved, onSubscriptionUpgradeClick, }: {
|
|
2
2
|
handlePortalErrors?: (errors: any) => void;
|
|
3
3
|
companyName: string;
|
|
4
4
|
isInPreviewMode?: boolean;
|
|
@@ -14,5 +14,6 @@ declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPrev
|
|
|
14
14
|
showInactiveSubscriptionsToggle?: boolean;
|
|
15
15
|
onPaymentMethodSaved?: (paymentMethodId: string) => void;
|
|
16
16
|
onPaymentMethodRemoved?: (paymentMethodId: string) => void;
|
|
17
|
+
onSubscriptionUpgradeClick?: (subscriptionId: string) => void;
|
|
17
18
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
export default SubscriptionsWrapper;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
|
|
2
1
|
declare const UpgradeWrapper: ({ onChangePlanCancel, handlePortalErrors, onPaymentMethodSaved, onPaymentMethodRemoved, upgradingSubscriptionId, isInPreviewMode, productId, className, shadow, defaultBillingPeriod, }: {
|
|
3
|
-
onChangePlanCancel
|
|
2
|
+
onChangePlanCancel?: () => void;
|
|
4
3
|
handlePortalErrors?: (error: any) => void;
|
|
5
4
|
onPaymentMethodSaved?: (paymentMethodId: string) => void;
|
|
6
5
|
onPaymentMethodRemoved?: (paymentMethodId: string) => void;
|
|
7
6
|
upgradingSubscriptionId?: string;
|
|
8
|
-
isInPreviewMode
|
|
9
|
-
productId
|
|
7
|
+
isInPreviewMode?: boolean;
|
|
8
|
+
productId?: string | undefined;
|
|
10
9
|
className?: string;
|
|
11
10
|
shadow?: "none" | "sm" | "md" | "lg";
|
|
12
11
|
/**
|
|
13
12
|
* If provided and the billing period is available, the billing period selector will default to this value.
|
|
14
13
|
*/
|
|
15
|
-
defaultBillingPeriod?:
|
|
14
|
+
defaultBillingPeriod?: "ONCE" | "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL";
|
|
16
15
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
17
16
|
export default UpgradeWrapper;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ import Invoice$1 from '@/types/Invoice';
|
|
|
8
8
|
import { QueryClient } from '@tanstack/react-query';
|
|
9
9
|
import { ThemeConfig } from 'antd';
|
|
10
10
|
import react from 'react';
|
|
11
|
-
import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
|
|
12
11
|
|
|
13
12
|
type ShadowType = "shadow-none" | "shadow-sm" | "shadow-md" | "shadow-lg" | "shadow-xl";
|
|
14
13
|
|
|
@@ -223,7 +222,7 @@ declare function Transactions({ transactionComponent, showSearchBar, showTitle,
|
|
|
223
222
|
hidePaymentForm?: boolean;
|
|
224
223
|
}): react_jsx_runtime.JSX.Element;
|
|
225
224
|
|
|
226
|
-
declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle, onPaymentMethodSaved, onPaymentMethodRemoved, }: {
|
|
225
|
+
declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle, onPaymentMethodSaved, onPaymentMethodRemoved, onSubscriptionUpgradeClick, }: {
|
|
227
226
|
handlePortalErrors?: (errors: any) => void;
|
|
228
227
|
companyName: string;
|
|
229
228
|
isInPreviewMode?: boolean;
|
|
@@ -239,22 +238,23 @@ declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPrev
|
|
|
239
238
|
showInactiveSubscriptionsToggle?: boolean;
|
|
240
239
|
onPaymentMethodSaved?: (paymentMethodId: string) => void;
|
|
241
240
|
onPaymentMethodRemoved?: (paymentMethodId: string) => void;
|
|
241
|
+
onSubscriptionUpgradeClick?: (subscriptionId: string) => void;
|
|
242
242
|
}) => react_jsx_runtime.JSX.Element;
|
|
243
243
|
|
|
244
244
|
declare const UpgradeWrapper: ({ onChangePlanCancel, handlePortalErrors, onPaymentMethodSaved, onPaymentMethodRemoved, upgradingSubscriptionId, isInPreviewMode, productId, className, shadow, defaultBillingPeriod, }: {
|
|
245
|
-
onChangePlanCancel
|
|
245
|
+
onChangePlanCancel?: () => void;
|
|
246
246
|
handlePortalErrors?: (error: any) => void;
|
|
247
247
|
onPaymentMethodSaved?: (paymentMethodId: string) => void;
|
|
248
248
|
onPaymentMethodRemoved?: (paymentMethodId: string) => void;
|
|
249
249
|
upgradingSubscriptionId?: string;
|
|
250
|
-
isInPreviewMode
|
|
251
|
-
productId
|
|
250
|
+
isInPreviewMode?: boolean;
|
|
251
|
+
productId?: string | undefined;
|
|
252
252
|
className?: string;
|
|
253
253
|
shadow?: "none" | "sm" | "md" | "lg";
|
|
254
254
|
/**
|
|
255
255
|
* If provided and the billing period is available, the billing period selector will default to this value.
|
|
256
256
|
*/
|
|
257
|
-
defaultBillingPeriod?:
|
|
257
|
+
defaultBillingPeriod?: "ONCE" | "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL";
|
|
258
258
|
}) => react_jsx_runtime.JSX.Element | null;
|
|
259
259
|
|
|
260
260
|
declare const BillingDetails: ({ className, countryListFilter, hideBillingDetailsForm, hidePaymentMethodForm, isCardEnabled, isUpgradeFromTrial, shadow, onSavePaymentMethod, onPaymentMethodRemoved, }: {
|
package/package.json
CHANGED