@kimafinance/kima-transaction-widget 1.2.20-beta.1 → 1.2.22-beta.1
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/index.js +5 -8
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -6
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2209,10 +2209,7 @@ function useIsWalletReady() {
|
|
|
2209
2209
|
var _useState = React.useState('loading'),
|
|
2210
2210
|
capabilityState = _useState[0],
|
|
2211
2211
|
setCapabilityState = _useState[1];
|
|
2212
|
-
var
|
|
2213
|
-
capabilities = _useState2[0],
|
|
2214
|
-
setCapabilities = _useState2[1];
|
|
2215
|
-
var capabilityMessage = capabilityState === 'loading' ? 'Checking capabilities...' : capabilityState === 'cancelled' ? 'Capability check cancelled by wallet. Please refresh the page and try again.' : capabilityState === 'missing' ? 'Could not find an installed Sats Connect capable wallet. Please install a wallet and try again.' : !capabilities ? 'Something went wrong with getting capabilities' : undefined;
|
|
2212
|
+
var capabilityMessage = capabilityState === 'loading' ? 'Checking capabilities...' : capabilityState === 'cancelled' ? 'Capability check cancelled by wallet. Please refresh the page and try again.' : capabilityState === 'missing' ? 'Could not find an installed Sats Connect capable wallet. Please install a wallet and try again.' : undefined;
|
|
2216
2213
|
React.useEffect(function () {
|
|
2217
2214
|
var _events$data, _events$data2;
|
|
2218
2215
|
if (((_events$data = events.data) === null || _events$data === void 0 ? void 0 : _events$data.event) === 'SELECT_WALLET' || ((_events$data2 = events.data) === null || _events$data2 === void 0 ? void 0 : _events$data2.event) === 'CONNECT_SUCCESS') {
|
|
@@ -2232,14 +2229,12 @@ function useIsWalletReady() {
|
|
|
2232
2229
|
}, void 0, function () {
|
|
2233
2230
|
function _temp2() {
|
|
2234
2231
|
return Promise.resolve(new Promise(function (resolve) {
|
|
2235
|
-
return setTimeout(resolve,
|
|
2232
|
+
return setTimeout(resolve, 1000);
|
|
2236
2233
|
})).then(function () {});
|
|
2237
2234
|
}
|
|
2238
2235
|
var _temp = _catch(function () {
|
|
2239
2236
|
return Promise.resolve(satsConnect.getCapabilities({
|
|
2240
|
-
onFinish: function onFinish(
|
|
2241
|
-
console.log(response);
|
|
2242
|
-
setCapabilities(new Set(response));
|
|
2237
|
+
onFinish: function onFinish() {
|
|
2243
2238
|
setCapabilityState('loaded');
|
|
2244
2239
|
},
|
|
2245
2240
|
onCancel: function onCancel() {
|
|
@@ -2801,6 +2796,7 @@ function useBalance() {
|
|
|
2801
2796
|
var tokenOptions = reactRedux.useSelector(selectTokenOptions);
|
|
2802
2797
|
var tokenAddress = React.useMemo(function () {
|
|
2803
2798
|
if (isEmptyObject(tokenOptions) || sourceChain === exports.SupportNetworks.FIAT) return '';
|
|
2799
|
+
console.log(tokenOptions);
|
|
2804
2800
|
if (tokenOptions && typeof tokenOptions === 'object') {
|
|
2805
2801
|
var coinOptions = tokenOptions[selectedCoin];
|
|
2806
2802
|
if (coinOptions && typeof coinOptions === 'object') {
|
|
@@ -8308,6 +8304,7 @@ function usePendingTx(_ref) {
|
|
|
8308
8304
|
}, 10000);
|
|
8309
8305
|
updatePendingTxs();
|
|
8310
8306
|
return function () {
|
|
8307
|
+
console.log('clearInterval', timerId);
|
|
8311
8308
|
clearInterval(timerId);
|
|
8312
8309
|
};
|
|
8313
8310
|
}, [sourceChain, nodeProviderQuery, walletAddress]);
|