@depay/widgets 6.16.1 → 6.16.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.
@@ -48843,6 +48843,10 @@ const submitSimpleTransfer = ({ transaction, wallet })=>{
48843
48843
  function _optionalChain$6(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
48844
48844
  let connectedInstance;
48845
48845
 
48846
+ const getConnectedInstance = ()=>{
48847
+ return connectedInstance
48848
+ };
48849
+
48846
48850
  class WalletConnectWallet {
48847
48851
 
48848
48852
  static __initStatic() {this.info = {
@@ -49025,7 +49029,7 @@ const wallets = {
49025
49029
  const instances = {};
49026
49030
 
49027
49031
  const getWalletClass = function(){
49028
- if(connectedInstance) {
49032
+ if(getConnectedInstance()) {
49029
49033
  return wallets.WalletConnect
49030
49034
  } else if (typeof window.ethereum === 'object' && window.ethereum.isMetaMask) {
49031
49035
  return wallets.MetaMask
@@ -49040,8 +49044,8 @@ const getWallet = function () {
49040
49044
  const walletClass = getWalletClass();
49041
49045
  const existingInstance = instances[walletClass];
49042
49046
 
49043
- if(connectedInstance) {
49044
- return connectedInstance
49047
+ if(getConnectedInstance()) {
49048
+ return getConnectedInstance()
49045
49049
  } else if(existingInstance) {
49046
49050
  return existingInstance
49047
49051
  } else if(walletClass) {
@@ -70070,6 +70074,7 @@ let TokenImage = function(props){
70070
70074
 
70071
70075
  return(
70072
70076
  react.createElement('img', {
70077
+ className: props.className ,
70073
70078
  src: src ,
70074
70079
  onError: handleLoadError , __self: this, __source: {fileName: _jsxFileName, lineNumber: 51}}
70075
70080
  )
@@ -48849,6 +48849,10 @@
48849
48849
  function _optionalChain$6(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
48850
48850
  let connectedInstance;
48851
48851
 
48852
+ const getConnectedInstance = ()=>{
48853
+ return connectedInstance
48854
+ };
48855
+
48852
48856
  class WalletConnectWallet {
48853
48857
 
48854
48858
  static __initStatic() {this.info = {
@@ -49031,7 +49035,7 @@
49031
49035
  const instances = {};
49032
49036
 
49033
49037
  const getWalletClass = function(){
49034
- if(connectedInstance) {
49038
+ if(getConnectedInstance()) {
49035
49039
  return wallets.WalletConnect
49036
49040
  } else if (typeof window.ethereum === 'object' && window.ethereum.isMetaMask) {
49037
49041
  return wallets.MetaMask
@@ -49046,8 +49050,8 @@
49046
49050
  const walletClass = getWalletClass();
49047
49051
  const existingInstance = instances[walletClass];
49048
49052
 
49049
- if(connectedInstance) {
49050
- return connectedInstance
49053
+ if(getConnectedInstance()) {
49054
+ return getConnectedInstance()
49051
49055
  } else if(existingInstance) {
49052
49056
  return existingInstance
49053
49057
  } else if(walletClass) {
@@ -70076,6 +70080,7 @@
70076
70080
 
70077
70081
  return(
70078
70082
  react.createElement('img', {
70083
+ className: props.className ,
70079
70084
  src: src ,
70080
70085
  onError: handleLoadError , __self: this, __source: {fileName: _jsxFileName, lineNumber: 51}}
70081
70086
  )
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@depay/widgets",
3
3
  "moduleName": "DePayWidgets",
4
- "version": "6.16.1",
4
+ "version": "6.16.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",
@@ -45,7 +45,7 @@
45
45
  "@depay/web3-exchanges": "^8.1.0",
46
46
  "@depay/web3-payments": "^9.3.3",
47
47
  "@depay/web3-tokens": "^8.0.1",
48
- "@depay/web3-wallets": "^9.0.0",
48
+ "@depay/web3-wallets": "^9.0.1",
49
49
  "decimal.js": "^10.3.1",
50
50
  "react-rangeslider": "^2.2.0"
51
51
  },