@bunnyapp/components 1.0.73-beta.5 → 1.0.73-beta.7

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 CHANGED
@@ -154,7 +154,7 @@ var BrandContext = react.createContext({
154
154
  });
155
155
 
156
156
  // This will be replaced at build time by rollup-plugin-replace
157
- var PACKAGE_VERSION = '1.0.73-beta.5';
157
+ var PACKAGE_VERSION = '1.0.73-beta.7';
158
158
  var createRequestHeaders = function (token) {
159
159
  var headers = common.createClientDevHeaders(token);
160
160
  // Add the components version header
@@ -1,7 +1,7 @@
1
- import { FormattedInvoice, PluginData, Quote } from '@bunnyapp/common';
1
+ import { FormattedInvoice, Invoice, PluginData, Quote } from '@bunnyapp/common';
2
2
  declare const CheckoutFooter: ({ quote, invoice, onPaymentSuccess, onPaymentHoldSuccess, plugin, paymentHoldOptions, }: {
3
3
  quote?: Quote | undefined;
4
- invoice?: FormattedInvoice | undefined;
4
+ invoice?: FormattedInvoice | Invoice | undefined;
5
5
  onPaymentSuccess?: ((response: any) => void) | undefined;
6
6
  onPaymentHoldSuccess?: ((response: any) => void) | undefined;
7
7
  plugin: PluginData | undefined;
@@ -1,9 +1,9 @@
1
- import { FormattedInvoice, PaymentMethod, PluginData, Quote } from '@bunnyapp/common';
1
+ import { FormattedInvoice, Invoice, PaymentMethod, PluginData, Quote } from '@bunnyapp/common';
2
2
  export declare function usePay({ onPaymentSuccess, onPaymentError, quote, invoice, storedPaymentMethod, plugin, }: {
3
3
  onPaymentSuccess?: (response: any) => void;
4
4
  onPaymentError?: (error: any) => void;
5
5
  quote?: Quote;
6
- invoice?: FormattedInvoice;
6
+ invoice?: FormattedInvoice | Invoice;
7
7
  storedPaymentMethod?: PaymentMethod;
8
8
  plugin: PluginData | undefined;
9
9
  }): {
@@ -1,6 +1,6 @@
1
- import { FormattedInvoice, PluginData, Quote } from '@bunnyapp/common';
1
+ import { FormattedInvoice, Invoice, PluginData, Quote } from '@bunnyapp/common';
2
2
  export declare const PaymentForm: ({ invoice, onFail, onPaymentSuccess, onPaymentHoldSuccess, quote, accountId, onSavePaymentMethod, onRemovePaymentMethod, onSetDefaultPaymentMethod, entityId, overrideToken, customCheckoutFunction, currencyId: currencyIdFromProps, paymentHoldOptions, }: {
3
- invoice?: FormattedInvoice | undefined;
3
+ invoice?: FormattedInvoice | Invoice | undefined;
4
4
  quote?: Quote | undefined;
5
5
  onFail: (error: any) => void;
6
6
  onPaymentSuccess?: (() => void) | undefined;
@@ -1,9 +1,9 @@
1
- import { FormattedInvoice, PaymentMethod, PluginData, Quote } from "@bunnyapp/common";
1
+ import { FormattedInvoice, Invoice, PaymentMethod, PluginData, Quote } from '@bunnyapp/common';
2
2
  export declare function usePay({ onPaymentSuccess, onPaymentError, quote, invoice, storedPaymentMethod, plugin, }: {
3
3
  onPaymentSuccess?: (response: any) => void;
4
4
  onPaymentError?: (error: any) => void;
5
5
  quote?: Quote;
6
- invoice?: FormattedInvoice;
6
+ invoice?: FormattedInvoice | Invoice;
7
7
  storedPaymentMethod?: PaymentMethod;
8
8
  plugin: PluginData | undefined;
9
9
  }): {
package/dist/esm/index.js CHANGED
@@ -143,7 +143,7 @@ var BrandContext = createContext({
143
143
  });
144
144
 
145
145
  // This will be replaced at build time by rollup-plugin-replace
146
- var PACKAGE_VERSION = '1.0.73-beta.5';
146
+ var PACKAGE_VERSION = '1.0.73-beta.7';
147
147
  var createRequestHeaders = function (token) {
148
148
  var headers = createClientDevHeaders(token);
149
149
  // Add the components version header
@@ -1,7 +1,7 @@
1
- import { FormattedInvoice, PluginData, Quote } from '@bunnyapp/common';
1
+ import { FormattedInvoice, Invoice, PluginData, Quote } from '@bunnyapp/common';
2
2
  declare const CheckoutFooter: ({ quote, invoice, onPaymentSuccess, onPaymentHoldSuccess, plugin, paymentHoldOptions, }: {
3
3
  quote?: Quote | undefined;
4
- invoice?: FormattedInvoice | undefined;
4
+ invoice?: FormattedInvoice | Invoice | undefined;
5
5
  onPaymentSuccess?: ((response: any) => void) | undefined;
6
6
  onPaymentHoldSuccess?: ((response: any) => void) | undefined;
7
7
  plugin: PluginData | undefined;
@@ -1,9 +1,9 @@
1
- import { FormattedInvoice, PaymentMethod, PluginData, Quote } from '@bunnyapp/common';
1
+ import { FormattedInvoice, Invoice, PaymentMethod, PluginData, Quote } from '@bunnyapp/common';
2
2
  export declare function usePay({ onPaymentSuccess, onPaymentError, quote, invoice, storedPaymentMethod, plugin, }: {
3
3
  onPaymentSuccess?: (response: any) => void;
4
4
  onPaymentError?: (error: any) => void;
5
5
  quote?: Quote;
6
- invoice?: FormattedInvoice;
6
+ invoice?: FormattedInvoice | Invoice;
7
7
  storedPaymentMethod?: PaymentMethod;
8
8
  plugin: PluginData | undefined;
9
9
  }): {
@@ -1,6 +1,6 @@
1
- import { FormattedInvoice, PluginData, Quote } from '@bunnyapp/common';
1
+ import { FormattedInvoice, Invoice, PluginData, Quote } from '@bunnyapp/common';
2
2
  export declare const PaymentForm: ({ invoice, onFail, onPaymentSuccess, onPaymentHoldSuccess, quote, accountId, onSavePaymentMethod, onRemovePaymentMethod, onSetDefaultPaymentMethod, entityId, overrideToken, customCheckoutFunction, currencyId: currencyIdFromProps, paymentHoldOptions, }: {
3
- invoice?: FormattedInvoice | undefined;
3
+ invoice?: FormattedInvoice | Invoice | undefined;
4
4
  quote?: Quote | undefined;
5
5
  onFail: (error: any) => void;
6
6
  onPaymentSuccess?: (() => void) | undefined;
@@ -1,9 +1,9 @@
1
- import { FormattedInvoice, PaymentMethod, PluginData, Quote } from "@bunnyapp/common";
1
+ import { FormattedInvoice, Invoice, PaymentMethod, PluginData, Quote } from '@bunnyapp/common';
2
2
  export declare function usePay({ onPaymentSuccess, onPaymentError, quote, invoice, storedPaymentMethod, plugin, }: {
3
3
  onPaymentSuccess?: (response: any) => void;
4
4
  onPaymentError?: (error: any) => void;
5
5
  quote?: Quote;
6
- invoice?: FormattedInvoice;
6
+ invoice?: FormattedInvoice | Invoice;
7
7
  storedPaymentMethod?: PaymentMethod;
8
8
  plugin: PluginData | undefined;
9
9
  }): {
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { FormattedInvoice, FormattedQuote, FrontendTransaction, Quote as Quote$1, PluginData, TransactionKind, PaymentMethod } from '@bunnyapp/common';
3
+ import { FormattedInvoice, FormattedQuote, FrontendTransaction, Invoice as Invoice$1, Quote as Quote$1, PluginData, TransactionKind, PaymentMethod } from '@bunnyapp/common';
4
4
  import { QueryClient } from '@tanstack/react-query';
5
5
  import { ThemeConfig } from 'antd';
6
6
  import * as react from 'react';
@@ -71,7 +71,7 @@ declare function Quotes({ className, columns, filter, filterQuotes, sort, noQuot
71
71
  }): react_jsx_runtime.JSX.Element;
72
72
 
73
73
  declare const PaymentForm: ({ invoice, onFail, onPaymentSuccess, onPaymentHoldSuccess, quote, accountId, onSavePaymentMethod, onRemovePaymentMethod, onSetDefaultPaymentMethod, entityId, overrideToken, customCheckoutFunction, currencyId: currencyIdFromProps, paymentHoldOptions, }: {
74
- invoice?: FormattedInvoice | undefined;
74
+ invoice?: FormattedInvoice | Invoice$1 | undefined;
75
75
  quote?: Quote$1 | undefined;
76
76
  onFail: (error: any) => void;
77
77
  onPaymentSuccess?: (() => void) | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunnyapp/components",
3
- "version": "1.0.73-beta.5",
3
+ "version": "1.0.73-beta.7",
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,11 +64,13 @@
64
64
  },
65
65
  "peerDependencies": {
66
66
  "@ant-design/icons": "^5.6.1",
67
+ "@bunnyapp/common": "^1.0.66-beta.9",
67
68
  "@fortawesome/fontawesome-svg-core": "^6.7.2",
68
69
  "@fortawesome/free-brands-svg-icons": "^6.7.2",
69
70
  "@fortawesome/free-regular-svg-icons": "^6.7.2",
70
71
  "@fortawesome/free-solid-svg-icons": "^6.7.2",
71
72
  "@fortawesome/react-fontawesome": "^0.2.2",
73
+ "@pdf-viewer/react": "^1.7.2",
72
74
  "@stripe/react-stripe-js": "^3.0.0",
73
75
  "@stripe/stripe-js": "^5.2.0",
74
76
  "@tanstack/react-query": "^5.59.20",
@@ -90,8 +92,6 @@
90
92
  ]
91
93
  },
92
94
  "dependencies": {
93
- "@bunnyapp/common": "^1.0.66-beta.10",
94
- "@pdf-viewer/react": "^1.7.2",
95
95
  "msw-storybook-addon": "^2.0.4"
96
96
  }
97
97
  }