@bunnyapp/components 1.0.38 → 1.0.39

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
@@ -471,14 +471,21 @@ var usePlugins = function (_a) {
471
471
  var entityId = _a.entityId, apiHost = _a.apiHost, token = _a.token;
472
472
  var response = reactQuery.useQuery({
473
473
  queryKey: common.QueryKeyFactory.default.pluginsKey(token),
474
- queryFn: function () {
475
- var plugins = common.getPlugins({
476
- entityId: entityId,
477
- token: token,
478
- apiHost: apiHost,
474
+ queryFn: function () { return __awaiter(void 0, void 0, void 0, function () {
475
+ var plugins;
476
+ return __generator(this, function (_a) {
477
+ switch (_a.label) {
478
+ case 0: return [4 /*yield*/, common.getPlugins({
479
+ entityId: entityId,
480
+ token: token,
481
+ apiHost: apiHost,
482
+ })];
483
+ case 1:
484
+ plugins = _a.sent();
485
+ return [2 /*return*/, plugins];
486
+ }
479
487
  });
480
- return plugins;
481
- },
488
+ }); },
482
489
  enabled: Boolean(entityId),
483
490
  });
484
491
  return response;
@@ -1276,7 +1283,6 @@ var CardIcon = function () {
1276
1283
  var Text$c = antd.Typography.Text;
1277
1284
  var PaymentMethodSelector = function (_a) {
1278
1285
  var paymentMethodAllowedPlugins = _a.paymentMethodAllowedPlugins, onSelect = _a.onSelect, value = _a.value;
1279
- console.log("COMPS paymentMethodAllowedPlugins", paymentMethodAllowedPlugins);
1280
1286
  return (jsxRuntime.jsx("div", __assign({ className: "flex flex-col gap-2" }, { children: paymentMethodAllowedPlugins === null || paymentMethodAllowedPlugins === void 0 ? void 0 : paymentMethodAllowedPlugins.map(function (plugin, index) { return (jsxRuntime.jsx(PaymentOption, { name: plugin.name, onClick: onSelect, paymentPlugin: plugin, selected: (value === null || value === void 0 ? void 0 : value.id) === plugin.id }, index)); }) })));
1281
1287
  };
1282
1288
  var PaymentOption = function (_a) {
@@ -1341,23 +1347,28 @@ function useRemovePaymentMethod(paymentPlugins, apiHost, entityId, token, accoun
1341
1347
  var Panel = antd.Collapse.Panel;
1342
1348
  var PaymentForm = function (_a) {
1343
1349
  var _b;
1344
- var entityId = _a.entityId, invoice = _a.invoice, onFail = _a.onFail, onPaymentSuccess = _a.onPaymentSuccess, quote = _a.quote, accountId = _a.accountId, onSavePaymentMethod = _a.onSavePaymentMethod, overrideToken = _a.overrideToken, graphQLClient = _a.graphQLClient, customCheckoutFunction = _a.customCheckoutFunction, currencyIdFromProps = _a.currencyId, customPaymentForms = _a.customPaymentForms;
1350
+ var entityId = _a.entityId, invoice = _a.invoice, onFail = _a.onFail, onPaymentSuccess = _a.onPaymentSuccess, quote = _a.quote, accountId = _a.accountId, onSavePaymentMethod = _a.onSavePaymentMethod, overrideToken = _a.overrideToken, graphQLClient = _a.graphQLClient, customCheckoutFunction = _a.customCheckoutFunction, currencyIdFromProps = _a.currencyId, customPaymentForms = _a.customPaymentForms, _c = _a.useAllPaymentPlugins, useAllPaymentPlugins = _c === void 0 ? false : _c;
1345
1351
  // Local state
1346
- var _c = react.useState(), selectedPaymentMethod = _c[0], setSelectedPaymentMethod = _c[1];
1347
- var _d = react.useState(false), showPaymentMethodForm = _d[0], setShowPaymentMethodForm = _d[1];
1352
+ var _d = react.useState(), selectedPaymentMethod = _d[0], setSelectedPaymentMethod = _d[1];
1353
+ var _e = react.useState(false), showPaymentMethodForm = _e[0], setShowPaymentMethodForm = _e[1];
1348
1354
  var paying = !!(quote || invoice);
1349
1355
  var currencyId = (_b = ((quote === null || quote === void 0 ? void 0 : quote.currencyId) ||
1350
1356
  (invoice === null || invoice === void 0 ? void 0 : invoice.currencyId) ||
1351
1357
  currencyIdFromProps)) === null || _b === void 0 ? void 0 : _b.toLowerCase();
1352
1358
  // Hooks
1353
1359
  var apiHost = react.useContext(BunnyContext).apiHost;
1354
- var token = useToken();
1355
- var _e = usePaymentMethod(graphQLClient, entityId, overrideToken || token, accountId), storedPaymentMethod = _e.data, isPaymentMethodLoading = _e.isLoading;
1356
- console.log("COMPS accountId", accountId);
1357
- console.log("COMPS storedPaymentMethod", storedPaymentMethod);
1360
+ var tokenFromContexts = useToken();
1361
+ var token = overrideToken || tokenFromContexts;
1362
+ var _f = usePaymentMethod(graphQLClient, entityId, token, accountId), storedPaymentMethod = _f.data, isPaymentMethodLoading = _f.isLoading;
1358
1363
  var isPaymentMethodFetched = storedPaymentMethod !== undefined;
1359
- var _f = usePaymentPlugins({ entityId: entityId, apiHost: apiHost, token: overrideToken || token }), paymentMethodAllowedPlugins = _f.paymentPlugins, arePluginsFetched = _f.isFetched;
1360
- var onClickRemove = useRemovePaymentMethod(paymentMethodAllowedPlugins || [], apiHost, entityId, overrideToken || token, accountId);
1364
+ var _g = usePaymentPlugins({ entityId: entityId, apiHost: apiHost, token: token }), allPaymentMethodAllowedPlugins = _g.paymentMethodAllowedPlugins, allPaymentPlugins = _g.paymentPlugins, arePluginsFetched = _g.isFetched;
1365
+ var paymentMethodAllowedPlugins = react.useMemo(function () {
1366
+ if (useAllPaymentPlugins) {
1367
+ return allPaymentPlugins;
1368
+ }
1369
+ return allPaymentMethodAllowedPlugins;
1370
+ }, [allPaymentMethodAllowedPlugins, allPaymentPlugins, useAllPaymentPlugins]);
1371
+ var onClickRemove = useRemovePaymentMethod(paymentMethodAllowedPlugins || [], apiHost, entityId, token, accountId);
1361
1372
  var queryClient = reactQuery.useQueryClient();
1362
1373
  // Set default plugin
1363
1374
  react.useEffect(function () {
@@ -19945,7 +19956,6 @@ function PriceListDisplay(_a) {
19945
19956
  var priceListData = _a.priceListData, topNavImageUrl = _a.topNavImageUrl;
19946
19957
  if (!priceListData)
19947
19958
  return null;
19948
- console.log("topNavImageUrl", topNavImageUrl);
19949
19959
  return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx("div", __assign({ className: "flex flex-col justify-between h-full my-12" }, { children: jsxRuntime.jsxs("div", __assign({ className: "flex flex-col space-y-8" }, { children: [jsxRuntime.jsx(antd.Image, { width: 24, src: topNavImageUrl, alt: "Logo", preview: false }), jsxRuntime.jsxs("div", __assign({ className: "flex flex-col" }, { children: [jsxRuntime.jsx(Text$3, __assign({ className: "text-slate-500 font-bold text-lg" }, { children: priceListData.name })), jsxRuntime.jsxs(Text$3, __assign({ className: "font-bold text-xl" }, { children: [common.formatCurrency(priceListData.basePrice, priceListData.currencyId), " ", "/ month"] }))] })), priceListData.trialAllowed ? (jsxRuntime.jsxs("div", __assign({ className: "flex flex-col" }, { children: [jsxRuntime.jsxs(Text$3, __assign({ style: { fontSize: "16px" }, className: "text-slate-500" }, { children: [priceListData.trialLengthDays, " day trial"] })), jsxRuntime.jsx(Text$3, __assign({ className: "text-slate-500", style: { fontSize: "12px" } }, { children: "You will not be charged until the last day of the trial." }))] }))) : null] })) })) }));
19950
19960
  }
19951
19961
 
@@ -19954,12 +19964,13 @@ function Signup(_a) {
19954
19964
  var companyName = _a.companyName, entityId = _a.entityId, priceListCode = _a.priceListCode, returnUrl = _a.returnUrl, _b = _a.isCardEnabled, isCardEnabled = _b === void 0 ? true : _b, className = _a.className, _c = _a.shadow, shadow = _c === void 0 ? "shadow-md" : _c, style = _a.style;
19955
19965
  // Hooks
19956
19966
  var _d = react.useContext(BunnyContext), apiHost = _d.apiHost, graphQLClient = _d.graphQLClient;
19957
- var token = useToken();
19967
+ var tokenFromContexts = useToken();
19958
19968
  var isMobile = common.useIsMobile();
19959
19969
  var topNavImageUrl = react.useContext(BrandContext).topNavImageUrl;
19960
19970
  var _e = react.useState(undefined), quote = _e[0], setQuote = _e[1];
19961
19971
  var _f = react.useState(undefined), accountId = _f[0], setAccountId = _f[1];
19962
19972
  var _g = react.useState(undefined), portalSessionToken = _g[0], setPortalSessionToken = _g[1];
19973
+ var token = portalSessionToken || tokenFromContexts;
19963
19974
  var _h = react.useState(false), proceedingToPayment = _h[0], setProceedingToPayment = _h[1];
19964
19975
  var _j = react.useState(false), purchaseSucceeded = _j[0], setPurchaseSucceeded = _j[1];
19965
19976
  var _k = react.useState(undefined), paymentMethodGraphQLClient = _k[0], setPaymentMethodGraphQLClient = _k[1];
@@ -20006,7 +20017,7 @@ function Signup(_a) {
20006
20017
  case 2:
20007
20018
  error_1 = _a.sent();
20008
20019
  setProceedingToPayment(false);
20009
- showErrorNotification(error_1);
20020
+ showErrorNotification(error_1.response.message);
20010
20021
  return [3 /*break*/, 3];
20011
20022
  case 3: return [2 /*return*/];
20012
20023
  }
@@ -20051,7 +20062,7 @@ function Signup(_a) {
20051
20062
  });
20052
20063
  }
20053
20064
  function handlePaymentFail(error) {
20054
- showErrorNotification(error.message);
20065
+ showErrorNotification(error.response.message);
20055
20066
  }
20056
20067
  var WrapperComponent = function (_a) {
20057
20068
  var children = _a.children, className = _a.className, style = _a.style;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { FormattedInvoice, PluginData, Quote } from "@bunnyapp/common";
3
3
  import { GraphQLClient } from "graphql-request";
4
- export declare const PaymentForm: ({ entityId, invoice, onFail, onPaymentSuccess, quote, accountId, onSavePaymentMethod, overrideToken, graphQLClient, customCheckoutFunction, currencyId: currencyIdFromProps, customPaymentForms, }: {
4
+ export declare const PaymentForm: ({ entityId, invoice, onFail, onPaymentSuccess, quote, accountId, onSavePaymentMethod, overrideToken, graphQLClient, customCheckoutFunction, currencyId: currencyIdFromProps, customPaymentForms, useAllPaymentPlugins, }: {
5
5
  entityId: string;
6
6
  invoice?: FormattedInvoice | undefined;
7
7
  quote?: Quote | undefined;
@@ -14,4 +14,5 @@ export declare const PaymentForm: ({ entityId, invoice, onFail, onPaymentSuccess
14
14
  customCheckoutFunction?: ((plugin: PluginData | undefined) => Promise<any>) | undefined;
15
15
  currencyId?: string | undefined;
16
16
  customPaymentForms?: Record<string, import("react").ReactNode> | undefined;
17
+ useAllPaymentPlugins?: boolean | undefined;
17
18
  }) => import("react/jsx-runtime").JSX.Element;
package/dist/esm/index.js CHANGED
@@ -443,14 +443,21 @@ var usePlugins = function (_a) {
443
443
  var entityId = _a.entityId, apiHost = _a.apiHost, token = _a.token;
444
444
  var response = useQuery({
445
445
  queryKey: QueryKeyFactory.default.pluginsKey(token),
446
- queryFn: function () {
447
- var plugins = getPlugins({
448
- entityId: entityId,
449
- token: token,
450
- apiHost: apiHost,
446
+ queryFn: function () { return __awaiter(void 0, void 0, void 0, function () {
447
+ var plugins;
448
+ return __generator(this, function (_a) {
449
+ switch (_a.label) {
450
+ case 0: return [4 /*yield*/, getPlugins({
451
+ entityId: entityId,
452
+ token: token,
453
+ apiHost: apiHost,
454
+ })];
455
+ case 1:
456
+ plugins = _a.sent();
457
+ return [2 /*return*/, plugins];
458
+ }
451
459
  });
452
- return plugins;
453
- },
460
+ }); },
454
461
  enabled: Boolean(entityId),
455
462
  });
456
463
  return response;
@@ -1248,7 +1255,6 @@ var CardIcon = function () {
1248
1255
  var Text$c = Typography.Text;
1249
1256
  var PaymentMethodSelector = function (_a) {
1250
1257
  var paymentMethodAllowedPlugins = _a.paymentMethodAllowedPlugins, onSelect = _a.onSelect, value = _a.value;
1251
- console.log("COMPS paymentMethodAllowedPlugins", paymentMethodAllowedPlugins);
1252
1258
  return (jsx("div", __assign({ className: "flex flex-col gap-2" }, { children: paymentMethodAllowedPlugins === null || paymentMethodAllowedPlugins === void 0 ? void 0 : paymentMethodAllowedPlugins.map(function (plugin, index) { return (jsx(PaymentOption, { name: plugin.name, onClick: onSelect, paymentPlugin: plugin, selected: (value === null || value === void 0 ? void 0 : value.id) === plugin.id }, index)); }) })));
1253
1259
  };
1254
1260
  var PaymentOption = function (_a) {
@@ -1313,23 +1319,28 @@ function useRemovePaymentMethod(paymentPlugins, apiHost, entityId, token, accoun
1313
1319
  var Panel = Collapse.Panel;
1314
1320
  var PaymentForm = function (_a) {
1315
1321
  var _b;
1316
- var entityId = _a.entityId, invoice = _a.invoice, onFail = _a.onFail, onPaymentSuccess = _a.onPaymentSuccess, quote = _a.quote, accountId = _a.accountId, onSavePaymentMethod = _a.onSavePaymentMethod, overrideToken = _a.overrideToken, graphQLClient = _a.graphQLClient, customCheckoutFunction = _a.customCheckoutFunction, currencyIdFromProps = _a.currencyId, customPaymentForms = _a.customPaymentForms;
1322
+ var entityId = _a.entityId, invoice = _a.invoice, onFail = _a.onFail, onPaymentSuccess = _a.onPaymentSuccess, quote = _a.quote, accountId = _a.accountId, onSavePaymentMethod = _a.onSavePaymentMethod, overrideToken = _a.overrideToken, graphQLClient = _a.graphQLClient, customCheckoutFunction = _a.customCheckoutFunction, currencyIdFromProps = _a.currencyId, customPaymentForms = _a.customPaymentForms, _c = _a.useAllPaymentPlugins, useAllPaymentPlugins = _c === void 0 ? false : _c;
1317
1323
  // Local state
1318
- var _c = useState(), selectedPaymentMethod = _c[0], setSelectedPaymentMethod = _c[1];
1319
- var _d = useState(false), showPaymentMethodForm = _d[0], setShowPaymentMethodForm = _d[1];
1324
+ var _d = useState(), selectedPaymentMethod = _d[0], setSelectedPaymentMethod = _d[1];
1325
+ var _e = useState(false), showPaymentMethodForm = _e[0], setShowPaymentMethodForm = _e[1];
1320
1326
  var paying = !!(quote || invoice);
1321
1327
  var currencyId = (_b = ((quote === null || quote === void 0 ? void 0 : quote.currencyId) ||
1322
1328
  (invoice === null || invoice === void 0 ? void 0 : invoice.currencyId) ||
1323
1329
  currencyIdFromProps)) === null || _b === void 0 ? void 0 : _b.toLowerCase();
1324
1330
  // Hooks
1325
1331
  var apiHost = useContext(BunnyContext).apiHost;
1326
- var token = useToken();
1327
- var _e = usePaymentMethod(graphQLClient, entityId, overrideToken || token, accountId), storedPaymentMethod = _e.data, isPaymentMethodLoading = _e.isLoading;
1328
- console.log("COMPS accountId", accountId);
1329
- console.log("COMPS storedPaymentMethod", storedPaymentMethod);
1332
+ var tokenFromContexts = useToken();
1333
+ var token = overrideToken || tokenFromContexts;
1334
+ var _f = usePaymentMethod(graphQLClient, entityId, token, accountId), storedPaymentMethod = _f.data, isPaymentMethodLoading = _f.isLoading;
1330
1335
  var isPaymentMethodFetched = storedPaymentMethod !== undefined;
1331
- var _f = usePaymentPlugins({ entityId: entityId, apiHost: apiHost, token: overrideToken || token }), paymentMethodAllowedPlugins = _f.paymentPlugins, arePluginsFetched = _f.isFetched;
1332
- var onClickRemove = useRemovePaymentMethod(paymentMethodAllowedPlugins || [], apiHost, entityId, overrideToken || token, accountId);
1336
+ var _g = usePaymentPlugins({ entityId: entityId, apiHost: apiHost, token: token }), allPaymentMethodAllowedPlugins = _g.paymentMethodAllowedPlugins, allPaymentPlugins = _g.paymentPlugins, arePluginsFetched = _g.isFetched;
1337
+ var paymentMethodAllowedPlugins = useMemo(function () {
1338
+ if (useAllPaymentPlugins) {
1339
+ return allPaymentPlugins;
1340
+ }
1341
+ return allPaymentMethodAllowedPlugins;
1342
+ }, [allPaymentMethodAllowedPlugins, allPaymentPlugins, useAllPaymentPlugins]);
1343
+ var onClickRemove = useRemovePaymentMethod(paymentMethodAllowedPlugins || [], apiHost, entityId, token, accountId);
1333
1344
  var queryClient = useQueryClient();
1334
1345
  // Set default plugin
1335
1346
  useEffect(function () {
@@ -19917,7 +19928,6 @@ function PriceListDisplay(_a) {
19917
19928
  var priceListData = _a.priceListData, topNavImageUrl = _a.topNavImageUrl;
19918
19929
  if (!priceListData)
19919
19930
  return null;
19920
- console.log("topNavImageUrl", topNavImageUrl);
19921
19931
  return (jsx(Fragment, { children: jsx("div", __assign({ className: "flex flex-col justify-between h-full my-12" }, { children: jsxs("div", __assign({ className: "flex flex-col space-y-8" }, { children: [jsx(Image, { width: 24, src: topNavImageUrl, alt: "Logo", preview: false }), jsxs("div", __assign({ className: "flex flex-col" }, { children: [jsx(Text$3, __assign({ className: "text-slate-500 font-bold text-lg" }, { children: priceListData.name })), jsxs(Text$3, __assign({ className: "font-bold text-xl" }, { children: [formatCurrency(priceListData.basePrice, priceListData.currencyId), " ", "/ month"] }))] })), priceListData.trialAllowed ? (jsxs("div", __assign({ className: "flex flex-col" }, { children: [jsxs(Text$3, __assign({ style: { fontSize: "16px" }, className: "text-slate-500" }, { children: [priceListData.trialLengthDays, " day trial"] })), jsx(Text$3, __assign({ className: "text-slate-500", style: { fontSize: "12px" } }, { children: "You will not be charged until the last day of the trial." }))] }))) : null] })) })) }));
19922
19932
  }
19923
19933
 
@@ -19926,12 +19936,13 @@ function Signup(_a) {
19926
19936
  var companyName = _a.companyName, entityId = _a.entityId, priceListCode = _a.priceListCode, returnUrl = _a.returnUrl, _b = _a.isCardEnabled, isCardEnabled = _b === void 0 ? true : _b, className = _a.className, _c = _a.shadow, shadow = _c === void 0 ? "shadow-md" : _c, style = _a.style;
19927
19937
  // Hooks
19928
19938
  var _d = useContext(BunnyContext), apiHost = _d.apiHost, graphQLClient = _d.graphQLClient;
19929
- var token = useToken();
19939
+ var tokenFromContexts = useToken();
19930
19940
  var isMobile = useIsMobile();
19931
19941
  var topNavImageUrl = useContext(BrandContext).topNavImageUrl;
19932
19942
  var _e = useState(undefined), quote = _e[0], setQuote = _e[1];
19933
19943
  var _f = useState(undefined), accountId = _f[0], setAccountId = _f[1];
19934
19944
  var _g = useState(undefined), portalSessionToken = _g[0], setPortalSessionToken = _g[1];
19945
+ var token = portalSessionToken || tokenFromContexts;
19935
19946
  var _h = useState(false), proceedingToPayment = _h[0], setProceedingToPayment = _h[1];
19936
19947
  var _j = useState(false), purchaseSucceeded = _j[0], setPurchaseSucceeded = _j[1];
19937
19948
  var _k = useState(undefined), paymentMethodGraphQLClient = _k[0], setPaymentMethodGraphQLClient = _k[1];
@@ -19978,7 +19989,7 @@ function Signup(_a) {
19978
19989
  case 2:
19979
19990
  error_1 = _a.sent();
19980
19991
  setProceedingToPayment(false);
19981
- showErrorNotification(error_1);
19992
+ showErrorNotification(error_1.response.message);
19982
19993
  return [3 /*break*/, 3];
19983
19994
  case 3: return [2 /*return*/];
19984
19995
  }
@@ -20023,7 +20034,7 @@ function Signup(_a) {
20023
20034
  });
20024
20035
  }
20025
20036
  function handlePaymentFail(error) {
20026
- showErrorNotification(error.message);
20037
+ showErrorNotification(error.response.message);
20027
20038
  }
20028
20039
  var WrapperComponent = function (_a) {
20029
20040
  var children = _a.children, className = _a.className, style = _a.style;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { FormattedInvoice, PluginData, Quote } from "@bunnyapp/common";
3
3
  import { GraphQLClient } from "graphql-request";
4
- export declare const PaymentForm: ({ entityId, invoice, onFail, onPaymentSuccess, quote, accountId, onSavePaymentMethod, overrideToken, graphQLClient, customCheckoutFunction, currencyId: currencyIdFromProps, customPaymentForms, }: {
4
+ export declare const PaymentForm: ({ entityId, invoice, onFail, onPaymentSuccess, quote, accountId, onSavePaymentMethod, overrideToken, graphQLClient, customCheckoutFunction, currencyId: currencyIdFromProps, customPaymentForms, useAllPaymentPlugins, }: {
5
5
  entityId: string;
6
6
  invoice?: FormattedInvoice | undefined;
7
7
  quote?: Quote | undefined;
@@ -14,4 +14,5 @@ export declare const PaymentForm: ({ entityId, invoice, onFail, onPaymentSuccess
14
14
  customCheckoutFunction?: ((plugin: PluginData | undefined) => Promise<any>) | undefined;
15
15
  currencyId?: string | undefined;
16
16
  customPaymentForms?: Record<string, import("react").ReactNode> | undefined;
17
+ useAllPaymentPlugins?: boolean | undefined;
17
18
  }) => import("react/jsx-runtime").JSX.Element;
package/dist/index.d.ts CHANGED
@@ -82,7 +82,7 @@ declare const PaymentMethod: ({ entityId, className, shadow, cardEnabled, useMod
82
82
  useModal?: boolean | undefined;
83
83
  }) => react_jsx_runtime.JSX.Element;
84
84
 
85
- declare const PaymentForm: ({ entityId, invoice, onFail, onPaymentSuccess, quote, accountId, onSavePaymentMethod, overrideToken, graphQLClient, customCheckoutFunction, currencyId: currencyIdFromProps, customPaymentForms, }: {
85
+ declare const PaymentForm: ({ entityId, invoice, onFail, onPaymentSuccess, quote, accountId, onSavePaymentMethod, overrideToken, graphQLClient, customCheckoutFunction, currencyId: currencyIdFromProps, customPaymentForms, useAllPaymentPlugins, }: {
86
86
  entityId: string;
87
87
  invoice?: FormattedInvoice | undefined;
88
88
  quote?: Quote$1 | undefined;
@@ -95,6 +95,7 @@ declare const PaymentForm: ({ entityId, invoice, onFail, onPaymentSuccess, quote
95
95
  customCheckoutFunction?: ((plugin: PluginData | undefined) => Promise<any>) | undefined;
96
96
  currencyId?: string | undefined;
97
97
  customPaymentForms?: Record<string, react.ReactNode> | undefined;
98
+ useAllPaymentPlugins?: boolean | undefined;
98
99
  }) => react_jsx_runtime.JSX.Element;
99
100
 
100
101
  type CheckoutProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunnyapp/components",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
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",