pay-sdk-react 1.1.11 → 1.1.13

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.
@@ -3,7 +3,7 @@ import AirwallexPopup from './airwallex-popup';
3
3
  import AirwallexButton from './airwallex-button';
4
4
  import AirwallexModal from './airwallex-modal';
5
5
  export * from './interface';
6
- var AirwallexComponent = Object.assign(Airwallex, {
6
+ var AirwallexComponent = Object.assign({}, Airwallex, {
7
7
  Button: AirwallexButton,
8
8
  Popup: AirwallexPopup,
9
9
  Modal: AirwallexModal
@@ -1,7 +1,7 @@
1
1
  import Alipay from './alipay';
2
2
  import AlipayButton from './alipay-button';
3
3
  import AlipayModal from './alipay-modal';
4
- var AlipayComponent = Object.assign(Alipay, {
4
+ var AlipayComponent = Object.assign({}, Alipay, {
5
5
  Button: AlipayButton,
6
6
  Modal: AlipayModal
7
7
  });
@@ -1,7 +1,7 @@
1
1
  import MAlipay from './m-alipay-auto-submit';
2
2
  import MAlipayButton from './m-alipay-button';
3
3
  export * from './interface';
4
- var MAlipayComponent = Object.assign(MAlipay, {
4
+ var MAlipayComponent = Object.assign({}, MAlipay, {
5
5
  Button: MAlipayButton
6
6
  });
7
7
  export default MAlipayComponent;
@@ -3,7 +3,7 @@ import StripePopup from './stripe-popup';
3
3
  import StripeButton from './stripe-button';
4
4
  import StripeModal from './stripe-modal';
5
5
  export * from './interface';
6
- var StripeComponent = Object.assign(Stripe, {
6
+ var StripeComponent = Object.assign({}, Stripe, {
7
7
  Button: StripeButton,
8
8
  Popup: StripePopup,
9
9
  Modal: StripeModal
@@ -16,7 +16,7 @@ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i
16
16
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
17
17
  import React, { memo, useImperativeHandle, useRef, useState } from 'react';
18
18
  import cs from '../utils/classNames';
19
- import Stripe from '.';
19
+ import Stripe from './stripe';
20
20
  import PayPopup from '../pay-popup';
21
21
  import { getPrefixCls } from '../utils/getPrefixCls';
22
22
  var StripePopup = /*#__PURE__*/React.forwardRef(function (props, ref) {
@@ -1,7 +1,7 @@
1
1
  import Wechat from './wechat';
2
2
  import WechatButton from './wechat-button';
3
3
  import WechatModal from './wechat-modal';
4
- var WechatComponent = Object.assign(Wechat, {
4
+ var WechatComponent = Object.assign({}, Wechat, {
5
5
  Button: WechatButton,
6
6
  Modal: WechatModal
7
7
  });
package/dist/es/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export { PaypalButton } from './Paypal';
2
2
  import StripeDefault from './Stripe';
3
3
  import { StripeButton, StripePopup, StripeModal } from './Stripe';
4
- var Stripe = Object.assign(StripeDefault, {
4
+ var Stripe = Object.assign({}, StripeDefault, {
5
5
  Button: StripeButton,
6
6
  Popup: StripePopup,
7
7
  Modal: StripeModal
@@ -10,7 +10,7 @@ export { Stripe };
10
10
  export { StripeButton, StripePopup, StripeModal };
11
11
  import AirwallexDefault from './Airwallex';
12
12
  import { AirwallexButton, AirwallexPopup, AirwallexModal } from './Airwallex';
13
- var Airwallex = Object.assign(AirwallexDefault, {
13
+ var Airwallex = Object.assign({}, AirwallexDefault, {
14
14
  Button: AirwallexButton,
15
15
  Popup: AirwallexPopup,
16
16
  Modal: AirwallexModal
@@ -21,14 +21,14 @@ export { PayssionButton } from './Payssion';
21
21
  export { MWechatButton } from './MWeChat';
22
22
  import MAlipayDefault from './MAlipay';
23
23
  import { MAlipayButton } from './MAlipay';
24
- var MAlipay = Object.assign(MAlipayDefault, {
24
+ var MAlipay = Object.assign({}, MAlipayDefault, {
25
25
  Button: MAlipayButton
26
26
  });
27
27
  export { MAlipay };
28
28
  export { MAlipayButton };
29
29
  import AlipayDefault from './Alipay';
30
30
  import { AlipayButton, AlipayModal } from './Alipay';
31
- var Alipay = Object.assign(AlipayDefault, {
31
+ var Alipay = Object.assign({}, AlipayDefault, {
32
32
  Button: AlipayButton,
33
33
  Modal: AlipayModal
34
34
  });
@@ -36,7 +36,7 @@ export { Alipay };
36
36
  export { AlipayButton, AlipayModal };
37
37
  import WechatDefault from './Wechat';
38
38
  import { WechatButton, WechatModal } from './Wechat';
39
- var Wechat = Object.assign(WechatDefault, {
39
+ var Wechat = Object.assign({}, WechatDefault, {
40
40
  Button: WechatButton,
41
41
  Modal: WechatModal
42
42
  });
@@ -44,7 +44,7 @@ Object.keys(_interface).forEach(function (key) {
44
44
  });
45
45
  });
46
46
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
47
- const AirwallexComponent = Object.assign(_airwallex.default, {
47
+ const AirwallexComponent = Object.assign({}, _airwallex.default, {
48
48
  Button: _airwallexButton.default,
49
49
  Popup: _airwallexPopup.default,
50
50
  Modal: _airwallexModal.default
@@ -36,7 +36,7 @@ Object.keys(_interface).forEach(function (key) {
36
36
  });
37
37
  });
38
38
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
39
- const AlipayComponent = Object.assign(_alipay.default, {
39
+ const AlipayComponent = Object.assign({}, _alipay.default, {
40
40
  Button: _alipayButton.default,
41
41
  Modal: _alipayModal.default
42
42
  });
@@ -28,7 +28,7 @@ Object.keys(_interface).forEach(function (key) {
28
28
  });
29
29
  });
30
30
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
31
- const MAlipayComponent = Object.assign(_mAlipayAutoSubmit.default, {
31
+ const MAlipayComponent = Object.assign({}, _mAlipayAutoSubmit.default, {
32
32
  Button: _mAlipayButton.default
33
33
  });
34
34
  var _default = exports.default = MAlipayComponent;
@@ -44,7 +44,7 @@ Object.keys(_interface).forEach(function (key) {
44
44
  });
45
45
  });
46
46
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
47
- const StripeComponent = Object.assign(_stripe.default, {
47
+ const StripeComponent = Object.assign({}, _stripe.default, {
48
48
  Button: _stripeButton.default,
49
49
  Popup: _stripePopup.default,
50
50
  Modal: _stripeModal.default
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var _classNames = _interopRequireDefault(require("../utils/classNames"));
9
- var _ = _interopRequireDefault(require("."));
9
+ var _stripe = _interopRequireDefault(require("./stripe"));
10
10
  var _payPopup = _interopRequireDefault(require("../pay-popup"));
11
11
  var _getPrefixCls = require("../utils/getPrefixCls");
12
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -56,7 +56,7 @@ const StripePopup = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
56
56
  overflowY: 'scroll',
57
57
  ...bodyStyle
58
58
  }
59
- }, others), _stripeProps && /*#__PURE__*/_react.default.createElement(_.default, _stripeProps));
59
+ }, others), _stripeProps && /*#__PURE__*/_react.default.createElement(_stripe.default, _stripeProps));
60
60
  });
61
61
  StripePopup.displayName = 'StripePopup';
62
62
  var _default = exports.default = /*#__PURE__*/(0, _react.memo)(StripePopup);
@@ -36,7 +36,7 @@ Object.keys(_interface).forEach(function (key) {
36
36
  });
37
37
  });
38
38
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
39
- const WechatComponent = Object.assign(_wechat.default, {
39
+ const WechatComponent = Object.assign({}, _wechat.default, {
40
40
  Button: _wechatButton.default,
41
41
  Modal: _wechatModal.default
42
42
  });
package/dist/lib/index.js CHANGED
@@ -143,24 +143,24 @@ Object.keys(_shared).forEach(function (key) {
143
143
  });
144
144
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
145
145
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
146
- const Stripe = exports.Stripe = Object.assign(_Stripe.default, {
146
+ const Stripe = exports.Stripe = Object.assign({}, _Stripe.default, {
147
147
  Button: _Stripe.StripeButton,
148
148
  Popup: _Stripe.StripePopup,
149
149
  Modal: _Stripe.StripeModal
150
150
  });
151
- const Airwallex = exports.Airwallex = Object.assign(_Airwallex.default, {
151
+ const Airwallex = exports.Airwallex = Object.assign({}, _Airwallex.default, {
152
152
  Button: _Airwallex.AirwallexButton,
153
153
  Popup: _Airwallex.AirwallexPopup,
154
154
  Modal: _Airwallex.AirwallexModal
155
155
  });
156
- const MAlipay = exports.MAlipay = Object.assign(_MAlipay.default, {
156
+ const MAlipay = exports.MAlipay = Object.assign({}, _MAlipay.default, {
157
157
  Button: _MAlipay.MAlipayButton
158
158
  });
159
- const Alipay = exports.Alipay = Object.assign(_Alipay.default, {
159
+ const Alipay = exports.Alipay = Object.assign({}, _Alipay.default, {
160
160
  Button: _Alipay.AlipayButton,
161
161
  Modal: _Alipay.AlipayModal
162
162
  });
163
- const Wechat = exports.Wechat = Object.assign(_Wechat.default, {
163
+ const Wechat = exports.Wechat = Object.assign({}, _Wechat.default, {
164
164
  Button: _Wechat.WechatButton,
165
165
  Modal: _Wechat.WechatModal
166
166
  });
@@ -9328,7 +9328,7 @@
9328
9328
  setUncontrolledVisible(false);
9329
9329
  }
9330
9330
  onClose?.();
9331
- }, closeOnMaskClick: closeOnMaskClick, bodyStyle: { height: '40vh', overflowY: 'scroll', ...bodyStyle }, ...others, children: _stripeProps && jsxRuntimeExports.jsx(StripeComponent, { ..._stripeProps }) }));
9331
+ }, closeOnMaskClick: closeOnMaskClick, bodyStyle: { height: '40vh', overflowY: 'scroll', ...bodyStyle }, ...others, children: _stripeProps && jsxRuntimeExports.jsx(Stripe$2, { ..._stripeProps }) }));
9332
9332
  });
9333
9333
  StripePopup.displayName = 'StripePopup';
9334
9334
  var StripePopup$1 = React.memo(StripePopup);
@@ -9480,7 +9480,7 @@
9480
9480
  StripeButton.displayName = 'StripeButton';
9481
9481
  var StripeButton$1 = React.memo(StripeButton);
9482
9482
 
9483
- const StripeComponent = Object.assign(Stripe$2, {
9483
+ const StripeComponent = Object.assign({}, Stripe$2, {
9484
9484
  Button: StripeButton$1,
9485
9485
  Popup: StripePopup$1,
9486
9486
  Modal: StripeModal$1,
@@ -9714,7 +9714,7 @@
9714
9714
  AirwallexButton.displayName = 'AirwallexButton';
9715
9715
  var AirwallexButton$1 = React.memo(AirwallexButton);
9716
9716
 
9717
- const AirwallexComponent = Object.assign(Airwallex$2, {
9717
+ const AirwallexComponent = Object.assign({}, Airwallex$2, {
9718
9718
  Button: AirwallexButton$1,
9719
9719
  Popup: AirwallexPopup,
9720
9720
  Modal: AirwallexModal,
@@ -9985,7 +9985,7 @@
9985
9985
  MAlipayButton.displayName = 'MAlipayButton';
9986
9986
  var MAlipayButton$1 = React.memo(MAlipayButton);
9987
9987
 
9988
- const MAlipayComponent = Object.assign(MAlipay$1, {
9988
+ const MAlipayComponent = Object.assign({}, MAlipay$1, {
9989
9989
  Button: MAlipayButton$1,
9990
9990
  });
9991
9991
 
@@ -10133,7 +10133,7 @@
10133
10133
  AlipayButton.displayName = 'AlipayButton';
10134
10134
  var AlipayButton$1 = React.memo(AlipayButton);
10135
10135
 
10136
- const AlipayComponent = Object.assign(Alipay$1, {
10136
+ const AlipayComponent = Object.assign({}, Alipay$1, {
10137
10137
  Button: AlipayButton$1,
10138
10138
  Modal: AlipayModal$1,
10139
10139
  });
@@ -16550,7 +16550,7 @@
16550
16550
  WechatButton.displayName = 'WechatButton';
16551
16551
  var WechatButton$1 = React.memo(WechatButton);
16552
16552
 
16553
- const WechatComponent = Object.assign(Wechat$1, {
16553
+ const WechatComponent = Object.assign({}, Wechat$1, {
16554
16554
  Button: WechatButton$1,
16555
16555
  Modal: WechatModal$1,
16556
16556
  });
@@ -16588,24 +16588,24 @@
16588
16588
  PayButton.displayName = 'PayButton';
16589
16589
  var index = React.memo(PayButton);
16590
16590
 
16591
- const Stripe = Object.assign(StripeComponent, {
16591
+ const Stripe = Object.assign({}, StripeComponent, {
16592
16592
  Button: StripeButton$1,
16593
16593
  Popup: StripePopup$1,
16594
16594
  Modal: StripeModal$1,
16595
16595
  });
16596
- const Airwallex = Object.assign(AirwallexComponent, {
16596
+ const Airwallex = Object.assign({}, AirwallexComponent, {
16597
16597
  Button: AirwallexButton$1,
16598
16598
  Popup: AirwallexPopup,
16599
16599
  Modal: AirwallexModal,
16600
16600
  });
16601
- const MAlipay = Object.assign(MAlipayComponent, {
16601
+ const MAlipay = Object.assign({}, MAlipayComponent, {
16602
16602
  Button: MAlipayButton$1,
16603
16603
  });
16604
- const Alipay = Object.assign(AlipayComponent, {
16604
+ const Alipay = Object.assign({}, AlipayComponent, {
16605
16605
  Button: AlipayButton$1,
16606
16606
  Modal: AlipayModal$1,
16607
16607
  });
16608
- const Wechat = Object.assign(WechatComponent, {
16608
+ const Wechat = Object.assign({}, WechatComponent, {
16609
16609
  Button: WechatButton$1,
16610
16610
  Modal: WechatModal$1,
16611
16611
  });