@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.
Files changed (62) hide show
  1. package/README.md +42 -0
  2. package/dist/cjs/index.js +2213 -2053
  3. package/dist/cjs/types/src/components/Checkout/Checkout.d.ts +1 -1
  4. package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +4 -4
  5. package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +65 -0
  6. package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +16 -112
  7. package/dist/cjs/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +12 -0
  8. package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +0 -5
  9. package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteChangeUpdate.d.ts +16 -0
  10. package/dist/cjs/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +11 -0
  11. package/dist/cjs/types/src/components/QuoteProvider/utils/quoteChangeCanBeEdited.d.ts +4 -0
  12. package/dist/cjs/types/src/components/Subscriptions/Subscriptions.d.ts +1 -1
  13. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -2
  14. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +19 -0
  15. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +5 -2
  16. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityInput.d.ts +1 -1
  17. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +1 -1
  18. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +3 -3
  19. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -0
  20. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/queries/getPriceListChangeOptions.d.ts +9 -0
  21. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/filterSubscriptionCharges.d.ts +2 -0
  22. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +2 -0
  23. package/dist/cjs/types/src/graphql/queries/getPriceListChangeOptions.d.ts +3 -4
  24. package/dist/cjs/types/src/types/SubscriptionCharge.d.ts +39 -0
  25. package/dist/cjs/types/src/utils/QueryKeyFactory.d.ts +91 -0
  26. package/dist/cjs/types/src/utils/chargeUtils.d.ts +5 -2
  27. package/dist/esm/index.js +2378 -2218
  28. package/dist/esm/types/src/components/Checkout/Checkout.d.ts +1 -1
  29. package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +4 -4
  30. package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +65 -0
  31. package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +16 -112
  32. package/dist/esm/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +12 -0
  33. package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +0 -5
  34. package/dist/esm/types/src/components/QuoteProvider/mutations/quoteChangeUpdate.d.ts +16 -0
  35. package/dist/esm/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +11 -0
  36. package/dist/esm/types/src/components/QuoteProvider/utils/quoteChangeCanBeEdited.d.ts +4 -0
  37. package/dist/esm/types/src/components/Subscriptions/Subscriptions.d.ts +1 -1
  38. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -2
  39. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +19 -0
  40. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +5 -2
  41. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityInput.d.ts +1 -1
  42. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +1 -1
  43. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +3 -3
  44. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -0
  45. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/queries/getPriceListChangeOptions.d.ts +9 -0
  46. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/filterSubscriptionCharges.d.ts +2 -0
  47. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +2 -0
  48. package/dist/esm/types/src/graphql/queries/getPriceListChangeOptions.d.ts +3 -4
  49. package/dist/esm/types/src/types/SubscriptionCharge.d.ts +39 -0
  50. package/dist/esm/types/src/utils/QueryKeyFactory.d.ts +91 -0
  51. package/dist/esm/types/src/utils/chargeUtils.d.ts +5 -2
  52. package/package.json +1 -1
  53. package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteChargeUpdate.d.ts +0 -23
  54. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +0 -9
  55. package/dist/cjs/types/src/graphql/queries/getFeatureUsage.d.ts +0 -7
  56. package/dist/cjs/types/src/hooks/usePriceListChangeOptions.d.ts +0 -9
  57. package/dist/esm/types/src/components/QuoteProvider/mutations/quoteChargeUpdate.d.ts +0 -23
  58. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +0 -9
  59. package/dist/esm/types/src/graphql/queries/getFeatureUsage.d.ts +0 -7
  60. package/dist/esm/types/src/hooks/usePriceListChangeOptions.d.ts +0 -9
  61. /package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/{SubscriptionCardHeader.d.ts → subscriptionCardHeader/SubscriptionCardHeader.d.ts} +0 -0
  62. /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;
@@ -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,7 +0,0 @@
1
- import { FeatureUsage } from '@bunnyapp/common';
2
- declare const getFeatureUsage: ({ subscriptionChargeId, token, apiHost, }: {
3
- subscriptionChargeId: string;
4
- token?: string;
5
- apiHost: string;
6
- }) => Promise<FeatureUsage>;
7
- export default getFeatureUsage;
@@ -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;