@depay/widgets 7.1.0 → 7.2.2

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/umd/index.js CHANGED
@@ -2972,9 +2972,13 @@
2972
2972
  var displayedCurrencyCode = amountConfiguration != undefined && amountConfiguration.token ? null : currencyCode;
2973
2973
 
2974
2974
  var changeAmountAndGoBack = function changeAmountAndGoBack() {
2975
- console.log('setSelectedRoute(undefined) 3');
2976
- setSelectedRoute(undefined);
2977
- setAmount(toValidValue(parseFloat(inputAmount)));
2975
+ var newAmount = toValidValue(parseFloat(inputAmount));
2976
+
2977
+ if (newAmount != amount) {
2978
+ setSelectedRoute(undefined);
2979
+ setAmount(newAmount);
2980
+ }
2981
+
2978
2982
  navigate('back');
2979
2983
  };
2980
2984
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@depay/widgets",
3
3
  "moduleName": "DePayWidgets",
4
- "version": "7.1.0",
4
+ "version": "7.2.2",
5
5
  "description": "Web3 Payments with any token. DePay simplifies and improves Web3 Payments with the power of DeFi. Accept any token with on-the-fly conversion.",
6
6
  "main": "./dist/umd/index.js",
7
7
  "module": "./dist/esm/index.js",
@@ -36,17 +36,17 @@
36
36
  "@depay/coinbase-wallet-sdk": "^1.0.5",
37
37
  "@depay/local-currency": "^3.2.2",
38
38
  "@depay/react-dialog-stack": "^6.0.0",
39
- "@depay/react-shadow-dom": "^5.0.1",
40
- "@depay/react-token-image": "^4.0.0",
39
+ "@depay/react-shadow-dom": "^5.0.2",
40
+ "@depay/react-token-image": "^4.1.0",
41
41
  "@depay/walletconnect-v1": "^1.7.8",
42
- "@depay/web3-assets": "^6.3.0",
43
- "@depay/web3-blockchains": "^4.5.1",
44
- "@depay/web3-client": "^8.4.0",
45
- "@depay/web3-constants": "^5.2.1",
46
- "@depay/web3-exchanges": "^9.1.2",
47
- "@depay/web3-payments": "^10.4.2",
48
- "@depay/web3-tokens": "^8.1.0",
49
- "@depay/web3-wallets": "^11.0.3",
42
+ "@depay/web3-assets": "^6.5.0",
43
+ "@depay/web3-blockchains": "^5.0.1",
44
+ "@depay/web3-client": "^8.5.0",
45
+ "@depay/web3-constants": "^6.0.0",
46
+ "@depay/web3-exchanges": "^9.2.0",
47
+ "@depay/web3-payments": "^10.5.0",
48
+ "@depay/web3-tokens": "^8.2.0",
49
+ "@depay/web3-wallets": "^11.1.0",
50
50
  "decimal.js": "^10.3.1"
51
51
  },
52
52
  "peerDependencies": {
@@ -59,7 +59,7 @@
59
59
  "@babel/plugin-transform-runtime": "^7.14.5",
60
60
  "@babel/preset-env": "^7.12.7",
61
61
  "@babel/preset-react": "^7.12.7",
62
- "@depay/web3-mock": "^11.10.2",
62
+ "@depay/web3-mock": "^11.11.0",
63
63
  "@peculiar/webcrypto": "^1.3.3",
64
64
  "@rollup/plugin-babel": "^5.3.0",
65
65
  "@rollup/plugin-commonjs": "^17.1.0",