@bunnyapp/components 1.7.0-beta.6 → 1.7.0-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
@@ -52,7 +52,7 @@ var css_248z = ":root {\n --row-background: #ffffff;\n --row-background-altern
52
52
  styleInject(css_248z);
53
53
 
54
54
  // This will be replaced at build time by rollup-plugin-replace
55
- const PACKAGE_VERSION = '1.7.0-beta.5';
55
+ const PACKAGE_VERSION = '1.7.0-beta.6';
56
56
  const createRequestHeaders = (token) => {
57
57
  const headers = createClientDevHeaders({ token });
58
58
  // Add the components version header
@@ -18898,7 +18898,12 @@ const usePaymentPlugins = (accountId) => {
18898
18898
  staleTime: 5 * 60 * 1000, // Consider data fresh for 5 minutes
18899
18899
  });
18900
18900
  // filter plugins
18901
- const filteredPaymentPlugins = (_a = paymentPlugins === null || paymentPlugins === void 0 ? void 0 : paymentPlugins.filter(plugin => { var _a, _b; return ((_a = plugin.type) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'payment' && ((_b = plugin.status) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'valid'; })) !== null && _a !== void 0 ? _a : [];
18901
+ const filteredPaymentPlugins = (_a = paymentPlugins === null || paymentPlugins === void 0 ? void 0 : paymentPlugins.filter(plugin => {
18902
+ var _a, _b, _c;
18903
+ return ((_a = plugin.type) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'payment' &&
18904
+ ((_b = plugin.status) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'valid' &&
18905
+ ((_c = plugin.name) === null || _c === void 0 ? void 0 : _c.toLowerCase()) !== 'manual payment';
18906
+ })) !== null && _a !== void 0 ? _a : [];
18902
18907
  return {
18903
18908
  paymentPlugins: filteredPaymentPlugins,
18904
18909
  isFetched,
package/dist/esm/index.js CHANGED
@@ -50,7 +50,7 @@ var css_248z = ":root {\n --row-background: #ffffff;\n --row-background-altern
50
50
  styleInject(css_248z);
51
51
 
52
52
  // This will be replaced at build time by rollup-plugin-replace
53
- const PACKAGE_VERSION = '1.7.0-beta.5';
53
+ const PACKAGE_VERSION = '1.7.0-beta.6';
54
54
  const createRequestHeaders = (token) => {
55
55
  const headers = createClientDevHeaders({ token });
56
56
  // Add the components version header
@@ -18896,7 +18896,12 @@ const usePaymentPlugins = (accountId) => {
18896
18896
  staleTime: 5 * 60 * 1000, // Consider data fresh for 5 minutes
18897
18897
  });
18898
18898
  // filter plugins
18899
- const filteredPaymentPlugins = (_a = paymentPlugins === null || paymentPlugins === void 0 ? void 0 : paymentPlugins.filter(plugin => { var _a, _b; return ((_a = plugin.type) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'payment' && ((_b = plugin.status) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'valid'; })) !== null && _a !== void 0 ? _a : [];
18899
+ const filteredPaymentPlugins = (_a = paymentPlugins === null || paymentPlugins === void 0 ? void 0 : paymentPlugins.filter(plugin => {
18900
+ var _a, _b, _c;
18901
+ return ((_a = plugin.type) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'payment' &&
18902
+ ((_b = plugin.status) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'valid' &&
18903
+ ((_c = plugin.name) === null || _c === void 0 ? void 0 : _c.toLowerCase()) !== 'manual payment';
18904
+ })) !== null && _a !== void 0 ? _a : [];
18900
18905
  return {
18901
18906
  paymentPlugins: filteredPaymentPlugins,
18902
18907
  isFetched,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunnyapp/components",
3
- "version": "1.7.0-beta.6",
3
+ "version": "1.7.0-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",