@depay/widgets 12.2.0 → 12.3.0
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/esm/index.bundle.js +2 -2
- package/dist/esm/index.evm.js +10 -9
- package/dist/esm/index.evm.js.map +1 -1
- package/dist/esm/index.js +10 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.solana.js +10 -9
- package/dist/esm/index.solana.js.map +1 -1
- package/dist/umd/index.bundle.js +2 -2
- package/dist/umd/index.evm.js +10 -9
- package/dist/umd/index.evm.js.map +1 -1
- package/dist/umd/index.js +10 -9
- package/dist/umd/index.js.map +1 -1
- package/dist/umd/index.solana.js +10 -9
- package/dist/umd/index.solana.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -21666,7 +21666,7 @@ var get = function get() {
|
|
|
21666
21666
|
};
|
|
21667
21667
|
|
|
21668
21668
|
var ConnectWalletDialog = (function (props) {
|
|
21669
|
-
var _props$wallet, _props$
|
|
21669
|
+
var _props$wallet, _props$platform14;
|
|
21670
21670
|
var QRCodeElement = React.useRef();
|
|
21671
21671
|
var _useState = useState(),
|
|
21672
21672
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -21815,7 +21815,7 @@ var ConnectWalletDialog = (function (props) {
|
|
|
21815
21815
|
}, 100), []);
|
|
21816
21816
|
useEffect(function () {
|
|
21817
21817
|
_asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
21818
|
-
var _props$wallet2, _props$platform6, _props$platform7, _props$platform8;
|
|
21818
|
+
var _props$wallet2, _props$platform6, _props$platform7, _props$platform8, _props$platform9;
|
|
21819
21819
|
var extensionIsAvailable, appIsConnected, connectAppIsAvailable, copyLinkIsAvailable, openInAppIsAvailable, scanQrAvailable;
|
|
21820
21820
|
return regenerator.wrap(function _callee$(_context) {
|
|
21821
21821
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -21870,9 +21870,9 @@ var ConnectWalletDialog = (function (props) {
|
|
|
21870
21870
|
setCopyLinkIsAvailable(copyLinkIsAvailable);
|
|
21871
21871
|
openInAppIsAvailable = !!props.platform && props.platform.open;
|
|
21872
21872
|
setOpenInAppIsAvailable(openInAppIsAvailable);
|
|
21873
|
-
scanQrAvailable = props.platform.solanaPay && accept && accept.every(function (accept) {
|
|
21873
|
+
scanQrAvailable = ((_props$platform8 = props.platform) === null || _props$platform8 === void 0 ? void 0 : _props$platform8.solanaPay) && accept && accept.every(function (accept) {
|
|
21874
21874
|
return accept.amount;
|
|
21875
|
-
}) || ((_props$
|
|
21875
|
+
}) || ((_props$platform9 = props.platform) === null || _props$platform9 === void 0 ? void 0 : _props$platform9.qr) && (!showQRCode || props.platform.qr === 'WalletLink');
|
|
21876
21876
|
setScanQrAvailable(scanQrAvailable);
|
|
21877
21877
|
case 32:
|
|
21878
21878
|
case "end":
|
|
@@ -21883,13 +21883,13 @@ var ConnectWalletDialog = (function (props) {
|
|
|
21883
21883
|
}, []);
|
|
21884
21884
|
useEffect(function () {
|
|
21885
21885
|
if (appIsConnected !== undefined) {
|
|
21886
|
-
var _props$wallet3, _props$
|
|
21887
|
-
setShowQRCode(!extensionIsAvailable && !isMobile() && !((_props$wallet3 = props.wallet) !== null && _props$wallet3 !== void 0 && (_props$wallet3 = _props$wallet3.desktop) !== null && _props$wallet3 !== void 0 && _props$wallet3["native"]) && (((_props$
|
|
21886
|
+
var _props$wallet3, _props$platform10, _props$platform11;
|
|
21887
|
+
setShowQRCode(!extensionIsAvailable && !isMobile() && !((_props$wallet3 = props.wallet) !== null && _props$wallet3 !== void 0 && (_props$wallet3 = _props$wallet3.desktop) !== null && _props$wallet3 !== void 0 && _props$wallet3["native"]) && (((_props$platform10 = props.platform) === null || _props$platform10 === void 0 ? void 0 : _props$platform10.qr) || ((_props$platform11 = props.platform) === null || _props$platform11 === void 0 ? void 0 : _props$platform11.solanaPay)));
|
|
21888
21888
|
}
|
|
21889
21889
|
}, [extensionIsAvailable, appIsConnected]);
|
|
21890
21890
|
useEffect(function () {
|
|
21891
|
-
var _props$
|
|
21892
|
-
if (showQRCode && ((_props$
|
|
21891
|
+
var _props$platform12, _props$platform13;
|
|
21892
|
+
if (showQRCode && ((_props$platform12 = props.platform) !== null && _props$platform12 !== void 0 && _props$platform12.qr || (_props$platform13 = props.platform) !== null && _props$platform13 !== void 0 && _props$platform13.solanaPay)) {
|
|
21893
21893
|
connectViaQRCode();
|
|
21894
21894
|
}
|
|
21895
21895
|
}, [showQRCode]);
|
|
@@ -21899,7 +21899,7 @@ var ConnectWalletDialog = (function (props) {
|
|
|
21899
21899
|
QRCode.append(QRCodeElement.current);
|
|
21900
21900
|
}
|
|
21901
21901
|
}, [QRCode]);
|
|
21902
|
-
if (showQRCode && (_props$
|
|
21902
|
+
if (showQRCode && (_props$platform14 = props.platform) !== null && _props$platform14 !== void 0 && _props$platform14.solanaPay && accept && accept.every(function (accept) {
|
|
21903
21903
|
return accept.amount;
|
|
21904
21904
|
})) {
|
|
21905
21905
|
return null;
|
|
@@ -23757,6 +23757,7 @@ var SignLoginDialog = (function (props) {
|
|
|
23757
23757
|
recoverSignature = function recoverSignature(_ref) {
|
|
23758
23758
|
var message = _ref.message,
|
|
23759
23759
|
signature = _ref.signature;
|
|
23760
|
+
_ref.wallet;
|
|
23760
23761
|
return new Promise(function (resolve, reject) {
|
|
23761
23762
|
fetch(endpoint, {
|
|
23762
23763
|
method: 'POST',
|