@bunnyapp/components 1.5.0-beta.12 → 1.5.0-beta.14
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 +68 -68
- package/dist/cjs/src/components/PaymentForm/hooks/useHasActiveSubscription.d.ts +1 -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/QuantityInput.d.ts +2 -2
- package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +2 -1
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +1 -0
- package/dist/cjs/src/graphql/QuoteRequests.d.ts +1 -1
- package/dist/cjs/src/graphql/queries/getSubscriptions.d.ts +2 -1
- package/dist/esm/index.js +69 -69
- package/dist/esm/src/components/PaymentForm/hooks/useHasActiveSubscription.d.ts +1 -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/QuantityInput.d.ts +2 -2
- package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +2 -1
- package/dist/esm/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +1 -0
- package/dist/esm/src/graphql/QuoteRequests.d.ts +1 -1
- package/dist/esm/src/graphql/queries/getSubscriptions.d.ts +2 -1
- package/dist/index.d.ts +2 -1
- package/package.json +2 -2
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Subscription } from '@bunnyapp/common';
|
|
2
|
-
declare const UpgradeWrapper: ({ onChangePlanCancel, handlePortalErrors, upgradingSubscription, isInPreviewMode, productId, }: {
|
|
2
|
+
declare const UpgradeWrapper: ({ onChangePlanCancel, handlePortalErrors, upgradingSubscription, isInPreviewMode, productId, className, }: {
|
|
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
|
+
className?: string | undefined;
|
|
8
9
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
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;
|
|
@@ -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;
|
|
@@ -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 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;
|
package/dist/index.d.ts
CHANGED
|
@@ -192,12 +192,13 @@ 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, isInPreviewMode, productId, }: {
|
|
195
|
+
declare const UpgradeWrapper: ({ onChangePlanCancel, handlePortalErrors, upgradingSubscription, isInPreviewMode, productId, className, }: {
|
|
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
|
+
className?: string | undefined;
|
|
201
202
|
}) => react_jsx_runtime.JSX.Element;
|
|
202
203
|
|
|
203
204
|
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.14",
|
|
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",
|