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.
- package/dist/es/Airwallex/airwallex-button.js +20 -13
- package/dist/es/Airwallex/airwallex-modal.js +9 -3
- package/dist/es/Airwallex/airwallex-popup.js +13 -4
- package/dist/es/Airwallex/airwallex.js +7 -3
- package/dist/es/Alipay/alipay-button.js +14 -12
- package/dist/es/Alipay/alipay-modal.js +9 -3
- package/dist/es/Alipay/alipay.js +10 -2
- package/dist/es/Button/button.js +26 -17
- package/dist/es/FullScreenLoading/index.js +4 -1
- package/dist/es/MAlipay/m-alipay-button.js +24 -14
- package/dist/es/MWeChat/m-wechat-button.js +24 -14
- package/dist/es/Mask/mask.js +10 -2
- package/dist/es/PayButton/index.js +1 -1
- package/dist/es/PayMask/pay-mask.js +13 -4
- package/dist/es/Paypal/paypal-button.js +20 -13
- package/dist/es/Payssion/payssion-button.js +20 -13
- package/dist/es/Stripe/stripe-button.js +14 -12
- package/dist/es/Stripe/stripe-modal.js +9 -3
- package/dist/es/Stripe/stripe-popup.js +13 -4
- package/dist/es/Stripe/stripe.js +3 -2
- package/dist/es/Wechat/wechat-button.js +14 -12
- package/dist/es/Wechat/wechat-modal.js +9 -3
- package/dist/es/Wechat/wechat.js +6 -1
- package/dist/es/confirm-modal/index.js +6 -2
- package/dist/es/hooks/use-inner-visible.js +6 -1
- package/dist/es/hooks/usePayWindowOpen.js +6 -1
- package/dist/es/icons/IconAlipay/index.js +1 -1
- package/dist/es/icons/IconClose/index.js +1 -1
- package/dist/es/icons/IconPaypalText/index.js +1 -1
- package/dist/es/icons/IconPaypalWhite/index.js +1 -1
- package/dist/es/icons/IconPayssionPay/index.js +1 -1
- package/dist/es/icons/IconStripe/index.js +1 -1
- package/dist/es/icons/IconStripeText/index.js +1 -1
- package/dist/es/icons/IconWechatPay/index.js +1 -1
- package/dist/es/pay-modal/pay-modal.js +3 -2
- package/dist/es/pay-popup/index.js +11 -3
- package/dist/es/utils/classNames.js +6 -1
- package/dist/es/utils/is.js +10 -12
- package/dist/es/utils/native-props.js +4 -1
- package/dist/es/utils/omit.js +4 -1
- package/dist/es/utils/with-stop-propagation.js +4 -1
- package/dist/lib/Airwallex/airwallex-button.js +6 -6
- package/dist/lib/Airwallex/airwallex-modal.js +4 -4
- package/dist/lib/Airwallex/airwallex-popup.js +4 -4
- package/dist/lib/Airwallex/airwallex.js +2 -3
- package/dist/lib/Airwallex/index.js +1 -1
- package/dist/lib/Alipay/alipay-button.js +4 -4
- package/dist/lib/Alipay/alipay-modal.js +3 -3
- package/dist/lib/Alipay/alipay.js +1 -1
- package/dist/lib/Alipay/index.js +1 -1
- package/dist/lib/Button/button.js +1 -1
- package/dist/lib/Button/index.js +1 -1
- package/dist/lib/FullScreenLoading/index.js +1 -1
- package/dist/lib/MAlipay/index.js +1 -1
- package/dist/lib/MAlipay/m-alipay-button.js +5 -5
- package/dist/lib/MWeChat/index.js +2 -2
- package/dist/lib/MWeChat/m-wechat-button.js +5 -5
- package/dist/lib/Mask/index.js +1 -1
- package/dist/lib/Mask/mask.js +1 -1
- package/dist/lib/PayButton/index.js +10 -10
- package/dist/lib/PayMask/index.js +1 -1
- package/dist/lib/PayMask/pay-mask.js +3 -3
- package/dist/lib/Paypal/index.js +2 -2
- package/dist/lib/Paypal/paypal-button.js +4 -4
- package/dist/lib/Payssion/index.js +2 -2
- package/dist/lib/Payssion/payssion-button.js +4 -4
- package/dist/lib/Stripe/index.js +1 -1
- package/dist/lib/Stripe/stripe-button.js +5 -5
- package/dist/lib/Stripe/stripe-modal.js +3 -3
- package/dist/lib/Stripe/stripe-popup.js +3 -3
- package/dist/lib/Stripe/stripe.js +3 -3
- package/dist/lib/Wechat/index.js +1 -1
- package/dist/lib/Wechat/wechat-button.js +4 -4
- package/dist/lib/Wechat/wechat-modal.js +3 -3
- package/dist/lib/Wechat/wechat.js +1 -1
- package/dist/lib/confirm-modal/index.js +1 -1
- package/dist/lib/dot-loading/dot-loading.js +1 -1
- package/dist/lib/dot-loading/index.js +1 -1
- package/dist/lib/icons/IconAlipay/index.js +3 -3
- package/dist/lib/icons/IconClose/index.js +3 -3
- package/dist/lib/icons/IconPaypalText/index.js +3 -3
- package/dist/lib/icons/IconPaypalWhite/index.js +3 -3
- package/dist/lib/icons/IconPayssionPay/index.js +3 -3
- package/dist/lib/icons/IconStripe/index.js +3 -3
- package/dist/lib/icons/IconStripeText/index.js +3 -3
- package/dist/lib/icons/IconWechatPay/index.js +3 -3
- package/dist/lib/icons/index.js +2 -2
- package/dist/lib/index.js +2 -2
- package/dist/lib/pay-modal/index.js +1 -1
- package/dist/lib/pay-modal/pay-modal.js +4 -4
- package/dist/lib/pay-popup/index.js +3 -3
- package/dist/lib/utils/classNames.js +1 -1
- package/dist/lib/utils/is.js +1 -3
- package/dist/lib/utils/native-props.js +1 -1
- package/dist/lib/utils/qrcode.js +1 -1
- package/dist/lib/utils/with-stop-propagation.js +1 -1
- 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", (
|
|
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 = [];
|
package/dist/lib/utils/is.js
CHANGED
|
@@ -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 ?
|
|
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
|
package/dist/lib/utils/qrcode.js
CHANGED
|
@@ -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'
|