@blocklet/payment-react 1.18.8 → 1.18.9

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.
@@ -49,6 +49,7 @@ export type DonateProps = Pick<CheckoutProps, 'onPaid' | 'onError'> & {
49
49
  theme?: 'default' | 'inherit' | PaymentThemeOptions;
50
50
  children?: (openDialog: () => void, donateTotalAmount: string, supporters: DonateHistory, loading?: boolean, donateSettings?: DonationSettings) => React.ReactNode;
51
51
  };
52
+ export declare function DonateDetails({ supporters, currency, method }: DonateHistory): import("react").JSX.Element;
52
53
  declare function CheckoutDonate(props: DonateProps): import("react").JSX.Element;
53
54
  declare namespace CheckoutDonate {
54
55
  var defaultProps: {
@@ -60,7 +60,7 @@ const fetchSupporters = (target, livemode = true) => {
60
60
  const emojiFont = {
61
61
  fontFamily: 'Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
62
62
  };
63
- function DonateDetails({ supporters = [], currency, method }) {
63
+ export function DonateDetails({ supporters = [], currency, method }) {
64
64
  const { locale } = useLocaleContext();
65
65
  return /* @__PURE__ */ jsx(
66
66
  Stack,
package/es/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import CheckoutDonate from './checkout/donate';
1
+ import CheckoutDonate, { DonateDetails } from './checkout/donate';
2
2
  import CheckoutForm from './checkout/form';
3
3
  import CheckoutTable from './checkout/table';
4
4
  import TxGas from './components/blockchain/gas';
@@ -43,4 +43,4 @@ export * from './hooks/mobile';
43
43
  export * from './hooks/table';
44
44
  export * from './hooks/scroll';
45
45
  export { translations, createTranslator } from './locales';
46
- export { createLazyComponent, api, dayjs, FormInput, PhoneInput, AddressForm, StripeForm, Status, Livemode, Switch, ConfirmDialog, CheckoutForm, CheckoutTable, CheckoutDonate, CurrencySelector, Payment, PaymentSummary, PricingTable, ProductSkeleton, Amount, CustomerInvoiceList, CustomerPaymentList, TxLink, TxGas, SafeGuard, PricingItem, CountrySelect, Table, TruncatedText, Link, OverdueInvoicePayment, PaymentBeneficiaries, LoadingButton, };
46
+ export { createLazyComponent, api, dayjs, FormInput, PhoneInput, AddressForm, StripeForm, Status, Livemode, Switch, ConfirmDialog, CheckoutForm, CheckoutTable, CheckoutDonate, CurrencySelector, Payment, PaymentSummary, PricingTable, ProductSkeleton, Amount, CustomerInvoiceList, CustomerPaymentList, TxLink, TxGas, SafeGuard, PricingItem, CountrySelect, Table, TruncatedText, Link, OverdueInvoicePayment, PaymentBeneficiaries, LoadingButton, DonateDetails, };
package/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import CheckoutDonate from "./checkout/donate.js";
1
+ import CheckoutDonate, { DonateDetails } from "./checkout/donate.js";
2
2
  import CheckoutForm from "./checkout/form.js";
3
3
  import CheckoutTable from "./checkout/table.js";
4
4
  import TxGas from "./components/blockchain/gas.js";
@@ -76,5 +76,6 @@ export {
76
76
  Link,
77
77
  OverdueInvoicePayment,
78
78
  PaymentBeneficiaries,
79
- LoadingButton
79
+ LoadingButton,
80
+ DonateDetails
80
81
  };
@@ -49,6 +49,7 @@ export type DonateProps = Pick<CheckoutProps, 'onPaid' | 'onError'> & {
49
49
  theme?: 'default' | 'inherit' | PaymentThemeOptions;
50
50
  children?: (openDialog: () => void, donateTotalAmount: string, supporters: DonateHistory, loading?: boolean, donateSettings?: DonationSettings) => React.ReactNode;
51
51
  };
52
+ export declare function DonateDetails({ supporters, currency, method }: DonateHistory): import("react").JSX.Element;
52
53
  declare function CheckoutDonate(props: DonateProps): import("react").JSX.Element;
53
54
  declare namespace CheckoutDonate {
54
55
  var defaultProps: {
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.DonateDetails = DonateDetails;
6
7
  module.exports = CheckoutDonate;
7
8
  var _jsxRuntime = require("react/jsx-runtime");
8
9
  var _Dialog = _interopRequireDefault(require("@arcblock/ux/lib/Dialog"));
package/lib/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import CheckoutDonate from './checkout/donate';
1
+ import CheckoutDonate, { DonateDetails } from './checkout/donate';
2
2
  import CheckoutForm from './checkout/form';
3
3
  import CheckoutTable from './checkout/table';
4
4
  import TxGas from './components/blockchain/gas';
@@ -43,4 +43,4 @@ export * from './hooks/mobile';
43
43
  export * from './hooks/table';
44
44
  export * from './hooks/scroll';
45
45
  export { translations, createTranslator } from './locales';
46
- export { createLazyComponent, api, dayjs, FormInput, PhoneInput, AddressForm, StripeForm, Status, Livemode, Switch, ConfirmDialog, CheckoutForm, CheckoutTable, CheckoutDonate, CurrencySelector, Payment, PaymentSummary, PricingTable, ProductSkeleton, Amount, CustomerInvoiceList, CustomerPaymentList, TxLink, TxGas, SafeGuard, PricingItem, CountrySelect, Table, TruncatedText, Link, OverdueInvoicePayment, PaymentBeneficiaries, LoadingButton, };
46
+ export { createLazyComponent, api, dayjs, FormInput, PhoneInput, AddressForm, StripeForm, Status, Livemode, Switch, ConfirmDialog, CheckoutForm, CheckoutTable, CheckoutDonate, CurrencySelector, Payment, PaymentSummary, PricingTable, ProductSkeleton, Amount, CustomerInvoiceList, CustomerPaymentList, TxLink, TxGas, SafeGuard, PricingItem, CountrySelect, Table, TruncatedText, Link, OverdueInvoicePayment, PaymentBeneficiaries, LoadingButton, DonateDetails, };
package/lib/index.js CHANGED
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  var _exportNames = {
7
7
  CheckoutDonate: true,
8
+ DonateDetails: true,
8
9
  CheckoutForm: true,
9
10
  CheckoutTable: true,
10
11
  TxGas: true,
@@ -101,6 +102,12 @@ Object.defineProperty(exports, "CustomerPaymentList", {
101
102
  return _list2.default;
102
103
  }
103
104
  });
105
+ Object.defineProperty(exports, "DonateDetails", {
106
+ enumerable: true,
107
+ get: function () {
108
+ return _donate.DonateDetails;
109
+ }
110
+ });
104
111
  Object.defineProperty(exports, "FormInput", {
105
112
  enumerable: true,
106
113
  get: function () {
@@ -257,7 +264,7 @@ Object.defineProperty(exports, "translations", {
257
264
  return _locales.translations;
258
265
  }
259
266
  });
260
- var _donate = _interopRequireDefault(require("./checkout/donate"));
267
+ var _donate = _interopRequireWildcard(require("./checkout/donate"));
261
268
  var _form = _interopRequireDefault(require("./checkout/form"));
262
269
  var _table = _interopRequireDefault(require("./checkout/table"));
263
270
  var _gas = _interopRequireDefault(require("./components/blockchain/gas"));
@@ -412,4 +419,6 @@ Object.keys(_scroll).forEach(function (key) {
412
419
  });
413
420
  });
414
421
  var _locales = require("./locales");
415
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
422
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
423
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
424
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/payment-react",
3
- "version": "1.18.8",
3
+ "version": "1.18.9",
4
4
  "description": "Reusable react components for payment kit v2",
5
5
  "keywords": [
6
6
  "react",
@@ -92,7 +92,7 @@
92
92
  "@babel/core": "^7.25.2",
93
93
  "@babel/preset-env": "^7.25.2",
94
94
  "@babel/preset-react": "^7.24.7",
95
- "@blocklet/payment-types": "1.18.8",
95
+ "@blocklet/payment-types": "1.18.9",
96
96
  "@storybook/addon-essentials": "^7.6.20",
97
97
  "@storybook/addon-interactions": "^7.6.20",
98
98
  "@storybook/addon-links": "^7.6.20",
@@ -123,5 +123,5 @@
123
123
  "vite-plugin-babel": "^1.2.0",
124
124
  "vite-plugin-node-polyfills": "^0.21.0"
125
125
  },
126
- "gitHead": "0815493ffd53c977d2d14779703d85f2e0e34299"
126
+ "gitHead": "e1e02357e4ef1294a788595d34b2f3e8ef6046b3"
127
127
  }
@@ -145,7 +145,7 @@ const emojiFont = {
145
145
  'Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
146
146
  };
147
147
 
148
- function DonateDetails({ supporters = [], currency, method }: DonateHistory) {
148
+ export function DonateDetails({ supporters = [], currency, method }: DonateHistory) {
149
149
  const { locale } = useLocaleContext();
150
150
  return (
151
151
  <Stack
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import CheckoutDonate from './checkout/donate';
1
+ import CheckoutDonate, { DonateDetails } from './checkout/donate';
2
2
  import CheckoutForm from './checkout/form';
3
3
  import CheckoutTable from './checkout/table';
4
4
  import TxGas from './components/blockchain/gas';
@@ -81,4 +81,5 @@ export {
81
81
  OverdueInvoicePayment,
82
82
  PaymentBeneficiaries,
83
83
  LoadingButton,
84
+ DonateDetails,
84
85
  };