@bunnyapp/components 1.5.0-beta.1 → 1.5.0-beta.2

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 (102) hide show
  1. package/dist/cjs/index.js +1098 -1001
  2. package/dist/cjs/src/components/BunnyProvider.d.ts +0 -1
  3. package/dist/cjs/src/components/Checkout/Checkout.d.ts +12 -6
  4. package/dist/cjs/src/components/Invoice/Invoice.d.ts +1 -1
  5. package/dist/cjs/src/components/PaymentForm/PaymentForm.d.ts +1 -2
  6. package/dist/cjs/src/components/PaymentForm/PaymentFormTypes.d.ts +1 -11
  7. package/dist/cjs/src/components/Quote/Quote.d.ts +1 -1
  8. package/dist/cjs/src/components/QuoteProvider.d.ts +22 -0
  9. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/PriceListGrid.d.ts +2 -1
  10. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +3 -4
  11. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +5 -5
  12. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +1 -1
  13. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +2 -1
  14. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +2 -1
  15. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +2 -2
  16. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +3 -2
  17. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +2 -1
  18. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCard.d.ts +2 -1
  19. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListSelector/PriceListSelector.d.ts +2 -3
  20. package/dist/cjs/src/components/Subscriptions/QuantityDrawerContainer.d.ts +14 -0
  21. package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +4 -2
  22. package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/QuantityInput.d.ts +4 -2
  23. package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +3 -1
  24. package/dist/cjs/src/components/Subscriptions/subscriptionsList/ChangeQuantitiesButton.d.ts +2 -3
  25. package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +2 -1
  26. package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionCardHeader.d.ts +2 -3
  27. package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +2 -3
  28. package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +2 -3
  29. package/dist/cjs/src/components/Transactions/Transactions.d.ts +2 -2
  30. package/dist/cjs/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -1
  31. package/dist/cjs/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +1 -1
  32. package/dist/cjs/src/components/Transactions/transactionsList/utils.d.ts +1 -1
  33. package/dist/cjs/src/{components/Invoice → contexts}/InvoiceQuoteContext.d.ts +2 -2
  34. package/dist/cjs/src/{components/Subscriptions → contexts}/SubscriptionsContext.d.ts +0 -4
  35. package/dist/{esm/src/components/Transactions → cjs/src/contexts}/TransactionsListContext.d.ts +2 -2
  36. package/dist/cjs/src/graphql/mutations/quoteChargeUpdate.d.ts +2 -1
  37. package/dist/cjs/src/graphql/queries/getAddonPlans.d.ts +7 -0
  38. package/dist/cjs/src/graphql/queries/getFormattedQuote.d.ts +2 -1
  39. package/dist/cjs/src/hooks/quotes/useQuoteCreate.d.ts +1 -4
  40. package/dist/cjs/src/hooks/quotes/useQuoteQuantities.d.ts +14 -0
  41. package/dist/cjs/src/hooks/useCurrentUserData.d.ts +11 -8
  42. package/dist/cjs/src/hooks/usePaymentMethod.d.ts +2 -1
  43. package/dist/cjs/src/hooks/usePriceListChangeOptions.d.ts +6 -0
  44. package/dist/cjs/src/utils/addonPlanUtils.d.ts +3 -1
  45. package/dist/cjs/src/utils/chargeUtils.d.ts +2 -0
  46. package/dist/cjs/src/utils/featureAddonUtils.d.ts +5 -2
  47. package/dist/esm/index.js +1100 -1003
  48. package/dist/esm/src/components/BunnyProvider.d.ts +0 -1
  49. package/dist/esm/src/components/Checkout/Checkout.d.ts +12 -6
  50. package/dist/esm/src/components/Invoice/Invoice.d.ts +1 -1
  51. package/dist/esm/src/components/PaymentForm/PaymentForm.d.ts +1 -2
  52. package/dist/esm/src/components/PaymentForm/PaymentFormTypes.d.ts +1 -11
  53. package/dist/esm/src/components/Quote/Quote.d.ts +1 -1
  54. package/dist/esm/src/components/QuoteProvider.d.ts +22 -0
  55. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/PriceListGrid.d.ts +2 -1
  56. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +3 -4
  57. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +5 -5
  58. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +1 -1
  59. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +2 -1
  60. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +2 -1
  61. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +2 -2
  62. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +3 -2
  63. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +2 -1
  64. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCard.d.ts +2 -1
  65. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListSelector/PriceListSelector.d.ts +2 -3
  66. package/dist/esm/src/components/Subscriptions/QuantityDrawerContainer.d.ts +14 -0
  67. package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +4 -2
  68. package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/QuantityInput.d.ts +4 -2
  69. package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +3 -1
  70. package/dist/esm/src/components/Subscriptions/subscriptionsList/ChangeQuantitiesButton.d.ts +2 -3
  71. package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +2 -1
  72. package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionCardHeader.d.ts +2 -3
  73. package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +2 -3
  74. package/dist/esm/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +2 -3
  75. package/dist/esm/src/components/Transactions/Transactions.d.ts +2 -2
  76. package/dist/esm/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -1
  77. package/dist/esm/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +1 -1
  78. package/dist/esm/src/components/Transactions/transactionsList/utils.d.ts +1 -1
  79. package/dist/esm/src/{components/Invoice → contexts}/InvoiceQuoteContext.d.ts +2 -2
  80. package/dist/esm/src/{components/Subscriptions → contexts}/SubscriptionsContext.d.ts +0 -4
  81. package/dist/{cjs/src/components/Transactions → esm/src/contexts}/TransactionsListContext.d.ts +2 -2
  82. package/dist/esm/src/graphql/mutations/quoteChargeUpdate.d.ts +2 -1
  83. package/dist/esm/src/graphql/queries/getAddonPlans.d.ts +7 -0
  84. package/dist/esm/src/graphql/queries/getFormattedQuote.d.ts +2 -1
  85. package/dist/esm/src/hooks/quotes/useQuoteCreate.d.ts +1 -4
  86. package/dist/esm/src/hooks/quotes/useQuoteQuantities.d.ts +14 -0
  87. package/dist/esm/src/hooks/useCurrentUserData.d.ts +11 -8
  88. package/dist/esm/src/hooks/usePaymentMethod.d.ts +2 -1
  89. package/dist/esm/src/hooks/usePriceListChangeOptions.d.ts +6 -0
  90. package/dist/esm/src/utils/addonPlanUtils.d.ts +3 -1
  91. package/dist/esm/src/utils/chargeUtils.d.ts +2 -0
  92. package/dist/esm/src/utils/featureAddonUtils.d.ts +5 -2
  93. package/dist/index.d.ts +1 -2
  94. package/package.json +2 -2
  95. package/dist/cjs/src/components/PlanManagerQuoteProvider.d.ts +0 -19
  96. package/dist/cjs/src/components/QuotePreviewProvider.d.ts +0 -15
  97. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListSelector/PriceListSelectorContext.d.ts +0 -9
  98. package/dist/cjs/src/components/Subscriptions/QuotePreviewData.d.ts +0 -6
  99. package/dist/esm/src/components/PlanManagerQuoteProvider.d.ts +0 -19
  100. package/dist/esm/src/components/QuotePreviewProvider.d.ts +0 -15
  101. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListSelector/PriceListSelectorContext.d.ts +0 -9
  102. package/dist/esm/src/components/Subscriptions/QuotePreviewData.d.ts +0 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunnyapp/components",
3
- "version": "1.5.0-beta.1",
3
+ "version": "1.5.0-beta.2",
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.3.0-beta.10",
67
+ "@bunnyapp/common": "1.3.0-beta.11",
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,19 +0,0 @@
1
- /// <reference types="react" />
2
- import { Quote } from '@bunnyapp/common';
3
- import { EditingQuoteDataType } from './Subscriptions/SubscriptionsListContainer';
4
- export type PlanManagerQuoteContextValues = {
5
- quote: Quote | undefined;
6
- isQuotePending: boolean;
7
- isAddonPlanLoading: boolean;
8
- setIsAddonPlanLoading: React.Dispatch<React.SetStateAction<boolean>>;
9
- isFeatureAddonsLoading: boolean;
10
- addFeatureAddonLoading: (featureAddonId: string) => void;
11
- removeFeatureAddonLoading: (featureAddonId: string) => void;
12
- };
13
- export declare const PlanManagerQuoteContext: import("react").Context<PlanManagerQuoteContextValues>;
14
- declare function PlanManagerQuoteProvider({ children, editingQuoteData, setEditingQuoteData, }: {
15
- children: React.ReactNode;
16
- editingQuoteData: EditingQuoteDataType | undefined;
17
- setEditingQuoteData: React.Dispatch<React.SetStateAction<EditingQuoteDataType | undefined>>;
18
- }): import("react/jsx-runtime").JSX.Element;
19
- export default PlanManagerQuoteProvider;
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- import { PriceList } from '@bunnyapp/common';
3
- export type QuotePreviewData = {
4
- priceList?: PriceList;
5
- quantity?: number;
6
- };
7
- export type QuotePreviewContextValues = {
8
- quotePreviewData?: QuotePreviewData;
9
- setQuotePreviewData: React.Dispatch<React.SetStateAction<QuotePreviewData | undefined>>;
10
- };
11
- export declare const QuotePreviewContext: import("react").Context<QuotePreviewContextValues>;
12
- declare function QuotePreviewProvider({ children }: {
13
- children: React.ReactNode;
14
- }): import("react/jsx-runtime").JSX.Element;
15
- export default QuotePreviewProvider;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { PriceList } from '@bunnyapp/common';
3
- export type PriceListSelectorContextValues = {
4
- onChangePriceList: (selectedPriceList: PriceList) => void;
5
- };
6
- export declare const PriceListSelectorContext: import("react").Context<PriceListSelectorContextValues>;
7
- export declare function PriceListSelectorProvider({ children }: {
8
- children: React.ReactNode;
9
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { Plan, PriceList } from '@bunnyapp/common';
2
- export type QuotePreviewData = {
3
- priceList?: PriceList;
4
- quantity?: number;
5
- addonPlans?: Plan[];
6
- };
@@ -1,19 +0,0 @@
1
- /// <reference types="react" />
2
- import { Quote } from '@bunnyapp/common';
3
- import { EditingQuoteDataType } from './Subscriptions/SubscriptionsListContainer';
4
- export type PlanManagerQuoteContextValues = {
5
- quote: Quote | undefined;
6
- isQuotePending: boolean;
7
- isAddonPlanLoading: boolean;
8
- setIsAddonPlanLoading: React.Dispatch<React.SetStateAction<boolean>>;
9
- isFeatureAddonsLoading: boolean;
10
- addFeatureAddonLoading: (featureAddonId: string) => void;
11
- removeFeatureAddonLoading: (featureAddonId: string) => void;
12
- };
13
- export declare const PlanManagerQuoteContext: import("react").Context<PlanManagerQuoteContextValues>;
14
- declare function PlanManagerQuoteProvider({ children, editingQuoteData, setEditingQuoteData, }: {
15
- children: React.ReactNode;
16
- editingQuoteData: EditingQuoteDataType | undefined;
17
- setEditingQuoteData: React.Dispatch<React.SetStateAction<EditingQuoteDataType | undefined>>;
18
- }): import("react/jsx-runtime").JSX.Element;
19
- export default PlanManagerQuoteProvider;
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- import { PriceList } from '@bunnyapp/common';
3
- export type QuotePreviewData = {
4
- priceList?: PriceList;
5
- quantity?: number;
6
- };
7
- export type QuotePreviewContextValues = {
8
- quotePreviewData?: QuotePreviewData;
9
- setQuotePreviewData: React.Dispatch<React.SetStateAction<QuotePreviewData | undefined>>;
10
- };
11
- export declare const QuotePreviewContext: import("react").Context<QuotePreviewContextValues>;
12
- declare function QuotePreviewProvider({ children }: {
13
- children: React.ReactNode;
14
- }): import("react/jsx-runtime").JSX.Element;
15
- export default QuotePreviewProvider;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { PriceList } from '@bunnyapp/common';
3
- export type PriceListSelectorContextValues = {
4
- onChangePriceList: (selectedPriceList: PriceList) => void;
5
- };
6
- export declare const PriceListSelectorContext: import("react").Context<PriceListSelectorContextValues>;
7
- export declare function PriceListSelectorProvider({ children }: {
8
- children: React.ReactNode;
9
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { Plan, PriceList } from '@bunnyapp/common';
2
- export type QuotePreviewData = {
3
- priceList?: PriceList;
4
- quantity?: number;
5
- addonPlans?: Plan[];
6
- };