@bunnyapp/components 1.0.56 → 1.0.57

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
@@ -170,7 +170,7 @@ var BrandContext = react.createContext({
170
170
  topNavImageUrl: common.DEFAULT_TOP_NAV_IMAGE_URL,
171
171
  });
172
172
 
173
- var MUTATION$9 = "\n query entityBranding {\n entityBranding {\n accentColor\n brandColor\n topNavImageUrl\n }\n }\n";
173
+ var MUTATION$a = "\n query entityBranding {\n entityBranding {\n accentColor\n brandColor\n topNavImageUrl\n }\n }\n";
174
174
  var getBranding = function (_a) {
175
175
  var token = _a.token, apiHost = _a.apiHost;
176
176
  return __awaiter(void 0, void 0, void 0, function () {
@@ -178,7 +178,7 @@ var getBranding = function (_a) {
178
178
  return __generator(this, function (_b) {
179
179
  switch (_b.label) {
180
180
  case 0: return [4 /*yield*/, common.gqlRequest({
181
- query: MUTATION$9,
181
+ query: MUTATION$a,
182
182
  token: token,
183
183
  apiHost: apiHost,
184
184
  })];
@@ -467,28 +467,6 @@ var usePaymentMethod = function (_a) {
467
467
  return { data: data, isLoading: isLoading };
468
468
  };
469
469
 
470
- var usePlugins = function (_a) {
471
- var apiHost = _a.apiHost, token = _a.token;
472
- var response = reactQuery.useQuery({
473
- queryKey: common.QueryKeyFactory.default.pluginsKey(token || ""),
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
- token: token,
480
- apiHost: apiHost,
481
- })];
482
- case 1:
483
- plugins = _a.sent();
484
- return [2 /*return*/, plugins];
485
- }
486
- });
487
- }); },
488
- });
489
- return response;
490
- };
491
-
492
470
  var filterPaymentPlugins = function (plugins) {
493
471
  return plugins === null || plugins === void 0 ? void 0 : plugins.filter(function (plugin) {
494
472
  var _a, _b, _c, _d;
@@ -497,19 +475,44 @@ var filterPaymentPlugins = function (plugins) {
497
475
  ((_d = (_c = plugin.components) === null || _c === void 0 ? void 0 : _c.frontend) === null || _d === void 0 ? void 0 : _d.length);
498
476
  });
499
477
  };
478
+ var MUTATION$9 = "{\n paymentPlugins {\n enabled\n entities\n guid\n hidden\n id\n name\n status\n type\n webhookEnabled\n components\n }\n}";
479
+ var getPaymentPlugins = function (_a) {
480
+ var apiHost = _a.apiHost, token = _a.token;
481
+ return __awaiter(void 0, void 0, void 0, function () {
482
+ var response;
483
+ return __generator(this, function (_b) {
484
+ switch (_b.label) {
485
+ case 0:
486
+ _b.trys.push([0, 2, , 3]);
487
+ return [4 /*yield*/, common.gqlRequest({
488
+ query: MUTATION$9,
489
+ token: token,
490
+ apiHost: apiHost,
491
+ })];
492
+ case 1:
493
+ response = _b.sent();
494
+ return [2 /*return*/, (response === null || response === void 0 ? void 0 : response.paymentPlugins) || []];
495
+ case 2:
496
+ _b.sent();
497
+ return [2 /*return*/, []];
498
+ case 3: return [2 /*return*/];
499
+ }
500
+ });
501
+ });
502
+ };
500
503
  var usePaymentPlugins = function (_a) {
501
504
  var apiHost = _a.apiHost, token = _a.token;
502
- var _b = usePlugins({
503
- apiHost: apiHost,
504
- token: token,
505
- }), plugins = _b.data, isFetched = _b.isFetched;
506
- var paymentPlugins = filterPaymentPlugins(Array.isArray(plugins) ? plugins : []);
507
- var paymentMethodAllowedPlugins = paymentPlugins === null || paymentPlugins === void 0 ? void 0 : paymentPlugins.filter(function (plugin) {
505
+ var _b = reactQuery.useQuery({
506
+ queryKey: ["paymentPlugins", token],
507
+ queryFn: function () { return getPaymentPlugins({ apiHost: apiHost, token: token }); },
508
+ }), paymentPlugins = _b.data, isFetched = _b.isFetched;
509
+ var filteredPaymentPlugins = filterPaymentPlugins(paymentPlugins);
510
+ var paymentMethodAllowedPlugins = filteredPaymentPlugins === null || filteredPaymentPlugins === void 0 ? void 0 : filteredPaymentPlugins.filter(function (plugin) {
508
511
  var _a, _b;
509
512
  return (_b = (_a = plugin.components) === null || _a === void 0 ? void 0 : _a.frontend) === null || _b === void 0 ? void 0 : _b.some(function (component) { var _a; return (_a = component === null || component === void 0 ? void 0 : component.scenarios) === null || _a === void 0 ? void 0 : _a.includes("admin-payment_method"); });
510
513
  });
511
514
  return {
512
- paymentPlugins: paymentPlugins,
515
+ paymentPlugins: filteredPaymentPlugins,
513
516
  paymentMethodAllowedPlugins: paymentMethodAllowedPlugins,
514
517
  isFetched: isFetched,
515
518
  };
@@ -1604,6 +1607,28 @@ var getFormattedQuote = function (_a) {
1604
1607
  });
1605
1608
  };
1606
1609
 
1610
+ var usePlugins = function (_a) {
1611
+ var apiHost = _a.apiHost, token = _a.token;
1612
+ var response = reactQuery.useQuery({
1613
+ queryKey: common.QueryKeyFactory.default.pluginsKey(token || ""),
1614
+ queryFn: function () { return __awaiter(void 0, void 0, void 0, function () {
1615
+ var plugins;
1616
+ return __generator(this, function (_a) {
1617
+ switch (_a.label) {
1618
+ case 0: return [4 /*yield*/, common.getPlugins({
1619
+ token: token,
1620
+ apiHost: apiHost,
1621
+ })];
1622
+ case 1:
1623
+ plugins = _a.sent();
1624
+ return [2 /*return*/, plugins];
1625
+ }
1626
+ });
1627
+ }); },
1628
+ });
1629
+ return response;
1630
+ };
1631
+
1607
1632
  var filterSigningPlugins = function (plugins) {
1608
1633
  return plugins === null || plugins === void 0 ? void 0 : plugins.filter(function (plugin) {
1609
1634
  var _a, _b;
@@ -18,12 +18,12 @@ export declare const Default: import("@storybook/core/csf").StoryAnnotations<imp
18
18
  onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
19
19
  }, {
20
20
  className?: string | undefined;
21
- onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
22
21
  id?: string | undefined;
23
- shadow?: import("../../types/shadowType").ShadowType | undefined;
24
22
  backButtonName?: string | undefined;
25
23
  onBackButtonClick?: (() => void) | undefined;
24
+ shadow?: import("../../types/shadowType").ShadowType | undefined;
26
25
  hideDownloadButton?: boolean | undefined;
26
+ onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
27
27
  invoiceQuoteViewComponent?: import("react").ReactNode;
28
28
  onInvoiceDownloadError?: (() => void) | undefined;
29
29
  onInvoiceLoaded?: ((formattedInvoice: import("@bunnyapp/common").FormattedInvoice) => void) | undefined;
@@ -43,12 +43,12 @@ export declare const NoShadow: import("@storybook/core/csf").StoryAnnotations<im
43
43
  onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
44
44
  }, {
45
45
  className?: string | undefined;
46
- onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
47
46
  id?: string | undefined;
48
- shadow?: import("../../types/shadowType").ShadowType | undefined;
49
47
  backButtonName?: string | undefined;
50
48
  onBackButtonClick?: (() => void) | undefined;
49
+ shadow?: import("../../types/shadowType").ShadowType | undefined;
51
50
  hideDownloadButton?: boolean | undefined;
51
+ onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
52
52
  invoiceQuoteViewComponent?: import("react").ReactNode;
53
53
  onInvoiceDownloadError?: (() => void) | undefined;
54
54
  onInvoiceLoaded?: ((formattedInvoice: import("@bunnyapp/common").FormattedInvoice) => void) | undefined;
@@ -68,12 +68,12 @@ export declare const Mobile: import("@storybook/core/csf").StoryAnnotations<impo
68
68
  onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
69
69
  }, {
70
70
  className?: string | undefined;
71
- onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
72
71
  id?: string | undefined;
73
- shadow?: import("../../types/shadowType").ShadowType | undefined;
74
72
  backButtonName?: string | undefined;
75
73
  onBackButtonClick?: (() => void) | undefined;
74
+ shadow?: import("../../types/shadowType").ShadowType | undefined;
76
75
  hideDownloadButton?: boolean | undefined;
76
+ onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
77
77
  invoiceQuoteViewComponent?: import("react").ReactNode;
78
78
  onInvoiceDownloadError?: (() => void) | undefined;
79
79
  onInvoiceLoaded?: ((formattedInvoice: import("@bunnyapp/common").FormattedInvoice) => void) | undefined;
@@ -93,12 +93,12 @@ export declare const CustomClassName: import("@storybook/core/csf").StoryAnnotat
93
93
  onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
94
94
  }, {
95
95
  className?: string | undefined;
96
- onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
97
96
  id?: string | undefined;
98
- shadow?: import("../../types/shadowType").ShadowType | undefined;
99
97
  backButtonName?: string | undefined;
100
98
  onBackButtonClick?: (() => void) | undefined;
99
+ shadow?: import("../../types/shadowType").ShadowType | undefined;
101
100
  hideDownloadButton?: boolean | undefined;
101
+ onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
102
102
  invoiceQuoteViewComponent?: import("react").ReactNode;
103
103
  onInvoiceDownloadError?: (() => void) | undefined;
104
104
  onInvoiceLoaded?: ((formattedInvoice: import("@bunnyapp/common").FormattedInvoice) => void) | undefined;
@@ -121,12 +121,12 @@ export declare const DarkMode: import("@storybook/core/csf").StoryAnnotations<im
121
121
  onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
122
122
  }, {
123
123
  className?: string | undefined;
124
- onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
125
124
  id?: string | undefined;
126
- shadow?: import("../../types/shadowType").ShadowType | undefined;
127
125
  backButtonName?: string | undefined;
128
126
  onBackButtonClick?: (() => void) | undefined;
127
+ shadow?: import("../../types/shadowType").ShadowType | undefined;
129
128
  hideDownloadButton?: boolean | undefined;
129
+ onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
130
130
  invoiceQuoteViewComponent?: import("react").ReactNode;
131
131
  onInvoiceDownloadError?: (() => void) | undefined;
132
132
  onInvoiceLoaded?: ((formattedInvoice: import("@bunnyapp/common").FormattedInvoice) => void) | undefined;
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@ import { Markup } from 'interweave';
4
4
  import { ConfigProvider, Button, Tag, Typography, Divider, Popconfirm, Input, Checkbox, Collapse, Skeleton, Modal, Form, Drawer, Card as Card$1, Image, Select, Tooltip, Radio, Space, Dropdown } from 'antd';
5
5
  import { DownloadOutlined, CreditCardOutlined, BankOutlined, SearchOutlined, CloseOutlined, CheckCircleFilled, ArrowLeftOutlined } from '@ant-design/icons';
6
6
  import styled from 'styled-components';
7
- import { DEFAULT_ACCENT_COLOR, DEFAULT_BRAND_COLOR, DEFAULT_SECONDARY_COLOR, DEFAULT_TOP_NAV_IMAGE_URL, gqlRequest, QueryKeyFactory, useIsMobile, isColorTooDark, MARK_PRO, INPUT_BORDER_COLOR, SLATE_50, SLATE_400, SLATE_200, getPlugins, useAllErrorFormats, formatCurrency, invokePlugin, GRAY_500, GRAY_200, useErrorNotification, useSuccessNotification, getFormattedInvoice, PAYABLE_INVOICE_STATES, BreakpointNumbers, useGraphQLmutation, formatDate, FrontendTransaction, SLATE_600, WHITE, TransactionKind, sortSubscriptionCharges, Lists, SLATE_500, PRIMARY_COLOR, getAccount, StringUtils, BillingPeriod, ChargeType, SubscriptionState as SubscriptionState$2, PERIOD_LABELS, PricingStyle, PricingModel, SLATE_100, useInfoNotification, MODAL_MAX_HEIGHT, DataInterval, TAG_COLORS, SubscriptionChargeKind } from '@bunnyapp/common';
7
+ import { DEFAULT_ACCENT_COLOR, DEFAULT_BRAND_COLOR, DEFAULT_SECONDARY_COLOR, DEFAULT_TOP_NAV_IMAGE_URL, gqlRequest, QueryKeyFactory, useIsMobile, isColorTooDark, MARK_PRO, INPUT_BORDER_COLOR, SLATE_50, SLATE_400, SLATE_200, useAllErrorFormats, formatCurrency, invokePlugin, GRAY_500, GRAY_200, useErrorNotification, useSuccessNotification, getFormattedInvoice, PAYABLE_INVOICE_STATES, BreakpointNumbers, getPlugins, useGraphQLmutation, formatDate, FrontendTransaction, SLATE_600, WHITE, TransactionKind, sortSubscriptionCharges, Lists, SLATE_500, PRIMARY_COLOR, getAccount, StringUtils, BillingPeriod, ChargeType, SubscriptionState as SubscriptionState$2, PERIOD_LABELS, PricingStyle, PricingModel, SLATE_100, useInfoNotification, MODAL_MAX_HEIGHT, DataInterval, TAG_COLORS, SubscriptionChargeKind } from '@bunnyapp/common';
8
8
  import { QueryClient, QueryClientProvider, useQuery, useQueryClient, keepPreviousData, useMutation } from '@tanstack/react-query';
9
9
  import theme from 'antd/lib/theme/index.js';
10
10
  import { RecoilRoot } from 'recoil';
@@ -141,7 +141,7 @@ var BrandContext = createContext({
141
141
  topNavImageUrl: DEFAULT_TOP_NAV_IMAGE_URL,
142
142
  });
143
143
 
144
- var MUTATION$9 = "\n query entityBranding {\n entityBranding {\n accentColor\n brandColor\n topNavImageUrl\n }\n }\n";
144
+ var MUTATION$a = "\n query entityBranding {\n entityBranding {\n accentColor\n brandColor\n topNavImageUrl\n }\n }\n";
145
145
  var getBranding = function (_a) {
146
146
  var token = _a.token, apiHost = _a.apiHost;
147
147
  return __awaiter(void 0, void 0, void 0, function () {
@@ -149,7 +149,7 @@ var getBranding = function (_a) {
149
149
  return __generator(this, function (_b) {
150
150
  switch (_b.label) {
151
151
  case 0: return [4 /*yield*/, gqlRequest({
152
- query: MUTATION$9,
152
+ query: MUTATION$a,
153
153
  token: token,
154
154
  apiHost: apiHost,
155
155
  })];
@@ -438,28 +438,6 @@ var usePaymentMethod = function (_a) {
438
438
  return { data: data, isLoading: isLoading };
439
439
  };
440
440
 
441
- var usePlugins = function (_a) {
442
- var apiHost = _a.apiHost, token = _a.token;
443
- var response = useQuery({
444
- queryKey: QueryKeyFactory.default.pluginsKey(token || ""),
445
- queryFn: function () { return __awaiter(void 0, void 0, void 0, function () {
446
- var plugins;
447
- return __generator(this, function (_a) {
448
- switch (_a.label) {
449
- case 0: return [4 /*yield*/, getPlugins({
450
- token: token,
451
- apiHost: apiHost,
452
- })];
453
- case 1:
454
- plugins = _a.sent();
455
- return [2 /*return*/, plugins];
456
- }
457
- });
458
- }); },
459
- });
460
- return response;
461
- };
462
-
463
441
  var filterPaymentPlugins = function (plugins) {
464
442
  return plugins === null || plugins === void 0 ? void 0 : plugins.filter(function (plugin) {
465
443
  var _a, _b, _c, _d;
@@ -468,19 +446,44 @@ var filterPaymentPlugins = function (plugins) {
468
446
  ((_d = (_c = plugin.components) === null || _c === void 0 ? void 0 : _c.frontend) === null || _d === void 0 ? void 0 : _d.length);
469
447
  });
470
448
  };
449
+ var MUTATION$9 = "{\n paymentPlugins {\n enabled\n entities\n guid\n hidden\n id\n name\n status\n type\n webhookEnabled\n components\n }\n}";
450
+ var getPaymentPlugins = function (_a) {
451
+ var apiHost = _a.apiHost, token = _a.token;
452
+ return __awaiter(void 0, void 0, void 0, function () {
453
+ var response;
454
+ return __generator(this, function (_b) {
455
+ switch (_b.label) {
456
+ case 0:
457
+ _b.trys.push([0, 2, , 3]);
458
+ return [4 /*yield*/, gqlRequest({
459
+ query: MUTATION$9,
460
+ token: token,
461
+ apiHost: apiHost,
462
+ })];
463
+ case 1:
464
+ response = _b.sent();
465
+ return [2 /*return*/, (response === null || response === void 0 ? void 0 : response.paymentPlugins) || []];
466
+ case 2:
467
+ _b.sent();
468
+ return [2 /*return*/, []];
469
+ case 3: return [2 /*return*/];
470
+ }
471
+ });
472
+ });
473
+ };
471
474
  var usePaymentPlugins = function (_a) {
472
475
  var apiHost = _a.apiHost, token = _a.token;
473
- var _b = usePlugins({
474
- apiHost: apiHost,
475
- token: token,
476
- }), plugins = _b.data, isFetched = _b.isFetched;
477
- var paymentPlugins = filterPaymentPlugins(Array.isArray(plugins) ? plugins : []);
478
- var paymentMethodAllowedPlugins = paymentPlugins === null || paymentPlugins === void 0 ? void 0 : paymentPlugins.filter(function (plugin) {
476
+ var _b = useQuery({
477
+ queryKey: ["paymentPlugins", token],
478
+ queryFn: function () { return getPaymentPlugins({ apiHost: apiHost, token: token }); },
479
+ }), paymentPlugins = _b.data, isFetched = _b.isFetched;
480
+ var filteredPaymentPlugins = filterPaymentPlugins(paymentPlugins);
481
+ var paymentMethodAllowedPlugins = filteredPaymentPlugins === null || filteredPaymentPlugins === void 0 ? void 0 : filteredPaymentPlugins.filter(function (plugin) {
479
482
  var _a, _b;
480
483
  return (_b = (_a = plugin.components) === null || _a === void 0 ? void 0 : _a.frontend) === null || _b === void 0 ? void 0 : _b.some(function (component) { var _a; return (_a = component === null || component === void 0 ? void 0 : component.scenarios) === null || _a === void 0 ? void 0 : _a.includes("admin-payment_method"); });
481
484
  });
482
485
  return {
483
- paymentPlugins: paymentPlugins,
486
+ paymentPlugins: filteredPaymentPlugins,
484
487
  paymentMethodAllowedPlugins: paymentMethodAllowedPlugins,
485
488
  isFetched: isFetched,
486
489
  };
@@ -1575,6 +1578,28 @@ var getFormattedQuote = function (_a) {
1575
1578
  });
1576
1579
  };
1577
1580
 
1581
+ var usePlugins = function (_a) {
1582
+ var apiHost = _a.apiHost, token = _a.token;
1583
+ var response = useQuery({
1584
+ queryKey: QueryKeyFactory.default.pluginsKey(token || ""),
1585
+ queryFn: function () { return __awaiter(void 0, void 0, void 0, function () {
1586
+ var plugins;
1587
+ return __generator(this, function (_a) {
1588
+ switch (_a.label) {
1589
+ case 0: return [4 /*yield*/, getPlugins({
1590
+ token: token,
1591
+ apiHost: apiHost,
1592
+ })];
1593
+ case 1:
1594
+ plugins = _a.sent();
1595
+ return [2 /*return*/, plugins];
1596
+ }
1597
+ });
1598
+ }); },
1599
+ });
1600
+ return response;
1601
+ };
1602
+
1578
1603
  var filterSigningPlugins = function (plugins) {
1579
1604
  return plugins === null || plugins === void 0 ? void 0 : plugins.filter(function (plugin) {
1580
1605
  var _a, _b;
@@ -18,12 +18,12 @@ export declare const Default: import("@storybook/core/csf").StoryAnnotations<imp
18
18
  onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
19
19
  }, {
20
20
  className?: string | undefined;
21
- onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
22
21
  id?: string | undefined;
23
- shadow?: import("../../types/shadowType").ShadowType | undefined;
24
22
  backButtonName?: string | undefined;
25
23
  onBackButtonClick?: (() => void) | undefined;
24
+ shadow?: import("../../types/shadowType").ShadowType | undefined;
26
25
  hideDownloadButton?: boolean | undefined;
26
+ onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
27
27
  invoiceQuoteViewComponent?: import("react").ReactNode;
28
28
  onInvoiceDownloadError?: (() => void) | undefined;
29
29
  onInvoiceLoaded?: ((formattedInvoice: import("@bunnyapp/common").FormattedInvoice) => void) | undefined;
@@ -43,12 +43,12 @@ export declare const NoShadow: import("@storybook/core/csf").StoryAnnotations<im
43
43
  onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
44
44
  }, {
45
45
  className?: string | undefined;
46
- onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
47
46
  id?: string | undefined;
48
- shadow?: import("../../types/shadowType").ShadowType | undefined;
49
47
  backButtonName?: string | undefined;
50
48
  onBackButtonClick?: (() => void) | undefined;
49
+ shadow?: import("../../types/shadowType").ShadowType | undefined;
51
50
  hideDownloadButton?: boolean | undefined;
51
+ onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
52
52
  invoiceQuoteViewComponent?: import("react").ReactNode;
53
53
  onInvoiceDownloadError?: (() => void) | undefined;
54
54
  onInvoiceLoaded?: ((formattedInvoice: import("@bunnyapp/common").FormattedInvoice) => void) | undefined;
@@ -68,12 +68,12 @@ export declare const Mobile: import("@storybook/core/csf").StoryAnnotations<impo
68
68
  onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
69
69
  }, {
70
70
  className?: string | undefined;
71
- onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
72
71
  id?: string | undefined;
73
- shadow?: import("../../types/shadowType").ShadowType | undefined;
74
72
  backButtonName?: string | undefined;
75
73
  onBackButtonClick?: (() => void) | undefined;
74
+ shadow?: import("../../types/shadowType").ShadowType | undefined;
76
75
  hideDownloadButton?: boolean | undefined;
76
+ onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
77
77
  invoiceQuoteViewComponent?: import("react").ReactNode;
78
78
  onInvoiceDownloadError?: (() => void) | undefined;
79
79
  onInvoiceLoaded?: ((formattedInvoice: import("@bunnyapp/common").FormattedInvoice) => void) | undefined;
@@ -93,12 +93,12 @@ export declare const CustomClassName: import("@storybook/core/csf").StoryAnnotat
93
93
  onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
94
94
  }, {
95
95
  className?: string | undefined;
96
- onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
97
96
  id?: string | undefined;
98
- shadow?: import("../../types/shadowType").ShadowType | undefined;
99
97
  backButtonName?: string | undefined;
100
98
  onBackButtonClick?: (() => void) | undefined;
99
+ shadow?: import("../../types/shadowType").ShadowType | undefined;
101
100
  hideDownloadButton?: boolean | undefined;
101
+ onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
102
102
  invoiceQuoteViewComponent?: import("react").ReactNode;
103
103
  onInvoiceDownloadError?: (() => void) | undefined;
104
104
  onInvoiceLoaded?: ((formattedInvoice: import("@bunnyapp/common").FormattedInvoice) => void) | undefined;
@@ -121,12 +121,12 @@ export declare const DarkMode: import("@storybook/core/csf").StoryAnnotations<im
121
121
  onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
122
122
  }, {
123
123
  className?: string | undefined;
124
- onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
125
124
  id?: string | undefined;
126
- shadow?: import("../../types/shadowType").ShadowType | undefined;
127
125
  backButtonName?: string | undefined;
128
126
  onBackButtonClick?: (() => void) | undefined;
127
+ shadow?: import("../../types/shadowType").ShadowType | undefined;
129
128
  hideDownloadButton?: boolean | undefined;
129
+ onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
130
130
  invoiceQuoteViewComponent?: import("react").ReactNode;
131
131
  onInvoiceDownloadError?: (() => void) | undefined;
132
132
  onInvoiceLoaded?: ((formattedInvoice: import("@bunnyapp/common").FormattedInvoice) => void) | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunnyapp/components",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
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",