@bunnyapp/components 1.6.0-beta.14 → 1.6.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/README.md +42 -0
- package/dist/cjs/index.js +2213 -2053
- package/dist/cjs/types/src/components/Checkout/Checkout.d.ts +1 -1
- package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +4 -4
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +65 -0
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +16 -112
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +12 -0
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +0 -5
- package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteChangeUpdate.d.ts +16 -0
- package/dist/cjs/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +11 -0
- package/dist/cjs/types/src/components/QuoteProvider/utils/quoteChangeCanBeEdited.d.ts +4 -0
- package/dist/cjs/types/src/components/Subscriptions/Subscriptions.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +19 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +5 -2
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityInput.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +3 -3
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/queries/getPriceListChangeOptions.d.ts +9 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/filterSubscriptionCharges.d.ts +2 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +2 -0
- package/dist/cjs/types/src/graphql/queries/getPriceListChangeOptions.d.ts +3 -4
- package/dist/cjs/types/src/types/SubscriptionCharge.d.ts +39 -0
- package/dist/cjs/types/src/utils/QueryKeyFactory.d.ts +91 -0
- package/dist/cjs/types/src/utils/chargeUtils.d.ts +5 -2
- package/dist/esm/index.js +2378 -2218
- package/dist/esm/types/src/components/Checkout/Checkout.d.ts +1 -1
- package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +4 -4
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +65 -0
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +16 -112
- package/dist/esm/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +12 -0
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +0 -5
- package/dist/esm/types/src/components/QuoteProvider/mutations/quoteChangeUpdate.d.ts +16 -0
- package/dist/esm/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +11 -0
- package/dist/esm/types/src/components/QuoteProvider/utils/quoteChangeCanBeEdited.d.ts +4 -0
- package/dist/esm/types/src/components/Subscriptions/Subscriptions.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +19 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +5 -2
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityInput.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +3 -3
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/queries/getPriceListChangeOptions.d.ts +9 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/filterSubscriptionCharges.d.ts +2 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +2 -0
- package/dist/esm/types/src/graphql/queries/getPriceListChangeOptions.d.ts +3 -4
- package/dist/esm/types/src/types/SubscriptionCharge.d.ts +39 -0
- package/dist/esm/types/src/utils/QueryKeyFactory.d.ts +91 -0
- package/dist/esm/types/src/utils/chargeUtils.d.ts +5 -2
- package/package.json +1 -1
- package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteChargeUpdate.d.ts +0 -23
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +0 -9
- package/dist/cjs/types/src/graphql/queries/getFeatureUsage.d.ts +0 -7
- package/dist/cjs/types/src/hooks/usePriceListChangeOptions.d.ts +0 -9
- package/dist/esm/types/src/components/QuoteProvider/mutations/quoteChargeUpdate.d.ts +0 -23
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +0 -9
- package/dist/esm/types/src/graphql/queries/getFeatureUsage.d.ts +0 -7
- package/dist/esm/types/src/hooks/usePriceListChangeOptions.d.ts +0 -9
- /package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/{SubscriptionCardHeader.d.ts → subscriptionCardHeader/SubscriptionCardHeader.d.ts} +0 -0
- /package/dist/esm/types/src/components/Subscriptions/subscriptionsList/{SubscriptionCardHeader.d.ts → subscriptionCardHeader/SubscriptionCardHeader.d.ts} +0 -0
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Subscription } from '@bunnyapp/common';
|
|
2
|
-
declare const usePriceListChangeOptions: ({ subscription, onChangePlanClick, }: {
|
|
3
|
-
subscription?: Subscription;
|
|
4
|
-
onChangePlanClick?: (subscription: Subscription) => void;
|
|
5
|
-
}) => {
|
|
6
|
-
priceListChangeOptions: import("@bunnyapp/common").PriceListChangeOptions | undefined;
|
|
7
|
-
arePriceListChangeOptionsLoading: boolean;
|
|
8
|
-
};
|
|
9
|
-
export default usePriceListChangeOptions;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
declare const quoteChargeUpdate: ({ discount, name, price, quantity, quoteChargeId, startDate, subtotal, apiHost, token, }: {
|
|
2
|
-
discount?: number;
|
|
3
|
-
name?: string;
|
|
4
|
-
price?: number;
|
|
5
|
-
quantity?: number;
|
|
6
|
-
quoteChargeId: string;
|
|
7
|
-
startDate?: string;
|
|
8
|
-
subtotal?: number;
|
|
9
|
-
apiHost: string;
|
|
10
|
-
token: string;
|
|
11
|
-
}) => Promise<{
|
|
12
|
-
quoteChange: {
|
|
13
|
-
id: string | null;
|
|
14
|
-
quoteId: string;
|
|
15
|
-
quote: {
|
|
16
|
-
[$tada.fragmentRefs]: {
|
|
17
|
-
QuoteContext_QuoteFragment: "Quote";
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
id: string | null;
|
|
22
|
-
} | null | undefined>;
|
|
23
|
-
export default quoteChargeUpdate;
|
package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PriceListChangeOptions, Subscription } from '@bunnyapp/common';
|
|
2
|
-
declare const SubscriptionCardActions: ({ onChangePlanClick, onCancelSubscriptionClick, priceListChangeOptions, subscription, isPaymentMethodLoading, }: {
|
|
3
|
-
onChangePlanClick?: (subscription: Subscription) => void;
|
|
4
|
-
onCancelSubscriptionClick?: (subscription: Subscription) => void;
|
|
5
|
-
priceListChangeOptions?: PriceListChangeOptions;
|
|
6
|
-
subscription: Subscription;
|
|
7
|
-
isPaymentMethodLoading: boolean;
|
|
8
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
-
export default SubscriptionCardActions;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Subscription } from '@bunnyapp/common';
|
|
2
|
-
declare const usePriceListChangeOptions: ({ subscription, onChangePlanClick, }: {
|
|
3
|
-
subscription?: Subscription;
|
|
4
|
-
onChangePlanClick?: (subscription: Subscription) => void;
|
|
5
|
-
}) => {
|
|
6
|
-
priceListChangeOptions: import("@bunnyapp/common").PriceListChangeOptions | undefined;
|
|
7
|
-
arePriceListChangeOptionsLoading: boolean;
|
|
8
|
-
};
|
|
9
|
-
export default usePriceListChangeOptions;
|
|
File without changes
|