pay-sdk-react 1.1.4 → 1.1.5

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.
Files changed (97) hide show
  1. package/dist/es/Airwallex/airwallex-button.js +20 -13
  2. package/dist/es/Airwallex/airwallex-modal.js +9 -3
  3. package/dist/es/Airwallex/airwallex-popup.js +13 -4
  4. package/dist/es/Airwallex/airwallex.js +7 -3
  5. package/dist/es/Alipay/alipay-button.js +14 -12
  6. package/dist/es/Alipay/alipay-modal.js +9 -3
  7. package/dist/es/Alipay/alipay.js +10 -2
  8. package/dist/es/Button/button.js +26 -17
  9. package/dist/es/FullScreenLoading/index.js +4 -1
  10. package/dist/es/MAlipay/m-alipay-button.js +24 -14
  11. package/dist/es/MWeChat/m-wechat-button.js +24 -14
  12. package/dist/es/Mask/mask.js +10 -2
  13. package/dist/es/PayButton/index.js +1 -1
  14. package/dist/es/PayMask/pay-mask.js +13 -4
  15. package/dist/es/Paypal/paypal-button.js +20 -13
  16. package/dist/es/Payssion/payssion-button.js +20 -13
  17. package/dist/es/Stripe/stripe-button.js +14 -12
  18. package/dist/es/Stripe/stripe-modal.js +9 -3
  19. package/dist/es/Stripe/stripe-popup.js +13 -4
  20. package/dist/es/Stripe/stripe.js +3 -2
  21. package/dist/es/Wechat/wechat-button.js +14 -12
  22. package/dist/es/Wechat/wechat-modal.js +9 -3
  23. package/dist/es/Wechat/wechat.js +6 -1
  24. package/dist/es/confirm-modal/index.js +6 -2
  25. package/dist/es/hooks/use-inner-visible.js +6 -1
  26. package/dist/es/hooks/usePayWindowOpen.js +6 -1
  27. package/dist/es/icons/IconAlipay/index.js +1 -1
  28. package/dist/es/icons/IconClose/index.js +1 -1
  29. package/dist/es/icons/IconPaypalText/index.js +1 -1
  30. package/dist/es/icons/IconPaypalWhite/index.js +1 -1
  31. package/dist/es/icons/IconPayssionPay/index.js +1 -1
  32. package/dist/es/icons/IconStripe/index.js +1 -1
  33. package/dist/es/icons/IconStripeText/index.js +1 -1
  34. package/dist/es/icons/IconWechatPay/index.js +1 -1
  35. package/dist/es/pay-modal/pay-modal.js +3 -2
  36. package/dist/es/pay-popup/index.js +11 -3
  37. package/dist/es/utils/classNames.js +6 -1
  38. package/dist/es/utils/is.js +10 -12
  39. package/dist/es/utils/native-props.js +4 -1
  40. package/dist/es/utils/omit.js +4 -1
  41. package/dist/es/utils/with-stop-propagation.js +4 -1
  42. package/dist/lib/Airwallex/airwallex-button.js +6 -6
  43. package/dist/lib/Airwallex/airwallex-modal.js +4 -4
  44. package/dist/lib/Airwallex/airwallex-popup.js +4 -4
  45. package/dist/lib/Airwallex/airwallex.js +2 -3
  46. package/dist/lib/Airwallex/index.js +1 -1
  47. package/dist/lib/Alipay/alipay-button.js +4 -4
  48. package/dist/lib/Alipay/alipay-modal.js +3 -3
  49. package/dist/lib/Alipay/alipay.js +1 -1
  50. package/dist/lib/Alipay/index.js +1 -1
  51. package/dist/lib/Button/button.js +1 -1
  52. package/dist/lib/Button/index.js +1 -1
  53. package/dist/lib/FullScreenLoading/index.js +1 -1
  54. package/dist/lib/MAlipay/index.js +1 -1
  55. package/dist/lib/MAlipay/m-alipay-button.js +5 -5
  56. package/dist/lib/MWeChat/index.js +2 -2
  57. package/dist/lib/MWeChat/m-wechat-button.js +5 -5
  58. package/dist/lib/Mask/index.js +1 -1
  59. package/dist/lib/Mask/mask.js +1 -1
  60. package/dist/lib/PayButton/index.js +10 -10
  61. package/dist/lib/PayMask/index.js +1 -1
  62. package/dist/lib/PayMask/pay-mask.js +3 -3
  63. package/dist/lib/Paypal/index.js +2 -2
  64. package/dist/lib/Paypal/paypal-button.js +4 -4
  65. package/dist/lib/Payssion/index.js +2 -2
  66. package/dist/lib/Payssion/payssion-button.js +4 -4
  67. package/dist/lib/Stripe/index.js +1 -1
  68. package/dist/lib/Stripe/stripe-button.js +5 -5
  69. package/dist/lib/Stripe/stripe-modal.js +3 -3
  70. package/dist/lib/Stripe/stripe-popup.js +3 -3
  71. package/dist/lib/Stripe/stripe.js +3 -3
  72. package/dist/lib/Wechat/index.js +1 -1
  73. package/dist/lib/Wechat/wechat-button.js +4 -4
  74. package/dist/lib/Wechat/wechat-modal.js +3 -3
  75. package/dist/lib/Wechat/wechat.js +1 -1
  76. package/dist/lib/confirm-modal/index.js +1 -1
  77. package/dist/lib/dot-loading/dot-loading.js +1 -1
  78. package/dist/lib/dot-loading/index.js +1 -1
  79. package/dist/lib/icons/IconAlipay/index.js +3 -3
  80. package/dist/lib/icons/IconClose/index.js +3 -3
  81. package/dist/lib/icons/IconPaypalText/index.js +3 -3
  82. package/dist/lib/icons/IconPaypalWhite/index.js +3 -3
  83. package/dist/lib/icons/IconPayssionPay/index.js +3 -3
  84. package/dist/lib/icons/IconStripe/index.js +3 -3
  85. package/dist/lib/icons/IconStripeText/index.js +3 -3
  86. package/dist/lib/icons/IconWechatPay/index.js +3 -3
  87. package/dist/lib/icons/index.js +2 -2
  88. package/dist/lib/index.js +2 -2
  89. package/dist/lib/pay-modal/index.js +1 -1
  90. package/dist/lib/pay-modal/pay-modal.js +4 -4
  91. package/dist/lib/pay-popup/index.js +3 -3
  92. package/dist/lib/utils/classNames.js +1 -1
  93. package/dist/lib/utils/is.js +1 -3
  94. package/dist/lib/utils/native-props.js +1 -1
  95. package/dist/lib/utils/qrcode.js +1 -1
  96. package/dist/lib/utils/with-stop-propagation.js +1 -1
  97. package/package.json +2 -2
@@ -1,12 +1,10 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  var _exportNames = {};
8
7
  exports.default = void 0;
9
- var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
10
8
  var _classNames = _interopRequireDefault(require("../utils/classNames"));
11
9
  var _react = _interopRequireWildcard(require("react"));
12
10
  var _ahooks = require("ahooks");
@@ -35,6 +33,8 @@ Object.keys(_interface).forEach(function (key) {
35
33
  });
36
34
  });
37
35
  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); }
36
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
37
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
38
38
  const classPrefix = (0, _getPrefixCls.getPrefixCls)('popup');
39
39
  const defaultPopupBaseProps = {
40
40
  closeOnMaskClick: true,
@@ -104,7 +104,7 @@ const PayPopup = p => {
104
104
  enabled: ['top', 'bottom'].includes(props.position)
105
105
  });
106
106
  const maskVisible = (0, _useInnerVisible.useInnerVisible)(active && props.visible);
107
- const node = (0, _withStopPropagation.withStopPropagation)(props.stopPropagation, (0, _nativeProps.withNativeProps)(props, /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({
107
+ const node = (0, _withStopPropagation.withStopPropagation)(props.stopPropagation, (0, _nativeProps.withNativeProps)(props, /*#__PURE__*/_react.default.createElement("div", _extends({
108
108
  className: classPrefix,
109
109
  onClick: props.onClick,
110
110
  style: {
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports.default = _default;
8
7
  var _is = require("./is");
9
8
  var _warning = _interopRequireDefault(require("./warning"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
10
  function _default(...args) {
11
11
  const length = args.length;
12
12
  let classNames = [];
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -34,7 +33,6 @@ exports.isTouchDevice = isTouchDevice;
34
33
  exports.isUndefined = isUndefined;
35
34
  exports.isUsPhoneNumber = isUsPhoneNumber;
36
35
  exports.isWindow = isWindow;
37
- var _trim = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/trim"));
38
36
  var _react = require("react");
39
37
  var _canUseDom = require("./can-use-dom");
40
38
  var _dom = require("./dom");
@@ -91,7 +89,7 @@ function isEmptyReactNode(content, trim) {
91
89
  if (content === null || content === undefined || content === false) {
92
90
  return true;
93
91
  }
94
- if (typeof content === 'string' && (trim ? (0, _trim.default)(content).call(content) === '' : content === '')) {
92
+ if (typeof content === 'string' && (trim ? content.trim() === '' : content === '')) {
95
93
  return true;
96
94
  }
97
95
  return false;
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports.withNativeProps = withNativeProps;
8
7
  var _react = _interopRequireDefault(require("react"));
9
8
  var _classNames = _interopRequireDefault(require("./classNames"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
10
  function withNativeProps(props, element) {
11
11
  const p = {
12
12
  ...element.props
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports.default = void 0;
8
7
  var _qrcode = _interopRequireDefault(require("qrcode"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
9
  /**
10
10
  * 根据入参生成一个二维码
11
11
  * @param url 要生成二维码的url
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports.withStopPropagation = withStopPropagation;
8
7
  var _react = _interopRequireDefault(require("react"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
9
  const eventToPropRecord = {
10
10
  click: 'onClick',
11
11
  touchstart: 'onTouchStart'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pay-sdk-react",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -181,4 +181,4 @@
181
181
  "typescript": "^4.9.5"
182
182
  },
183
183
  "_unpkg": true
184
- }
184
+ }