Skip to content

Commit

Permalink
fix variable name colission
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNe0x1 committed Jul 10, 2024
1 parent fb76ede commit 53701a1
Show file tree
Hide file tree
Showing 16 changed files with 109 additions and 109 deletions.
2 changes: 1 addition & 1 deletion dist/esm/index.bundle.js

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions dist/esm/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -22930,16 +22930,16 @@ function ownKeys$8(object, enumerableOnly) { var keys = Object.keys(object); if
function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$8(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
var SelectWalletList = (function (props) {
var _useContext = useContext(ConfigurationContext),
wallets = _useContext.wallets;
walletsConfiguration = _useContext.wallets;

var allWallets$1;

if (wallets !== null && wallets !== void 0 && wallets.sort || wallets !== null && wallets !== void 0 && wallets.whitelist) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.sort || walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.whitelist) {
allWallets$1 = useMemo(function () {
var adjustedWallets = _toConsumableArray(allWallets);

if (wallets !== null && wallets !== void 0 && wallets.sort) {
wallets.sort.forEach(function (sortedWallet, newIndex) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.sort) {
walletsConfiguration.sort.forEach(function (sortedWallet, newIndex) {
var currentListIndex = adjustedWallets.findIndex(function (unsortedWallet) {
return unsortedWallet.name === sortedWallet;
});
Expand All @@ -22950,14 +22950,14 @@ var SelectWalletList = (function (props) {
});
}

if (wallets !== null && wallets !== void 0 && wallets.whitelist) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.whitelist) {
adjustedWallets = adjustedWallets.filter(function (wallet) {
return wallets.whitelist.indexOf(wallet.name) > -1;
return walletsConfiguration.whitelist.indexOf(wallet.name) > -1;
});
}

return adjustedWallets;
}, [wallets]);
}, [walletsConfiguration]);
} else {
allWallets$1 = allWallets;
}
Expand Down Expand Up @@ -23072,7 +23072,7 @@ var SelectWalletDialog = (function (props) {
setDialogAnimationFinished = _useState10[1];

var _useContext = useContext(ConfigurationContext),
wallets = _useContext.wallets;
walletsConfiguration = _useContext.wallets;

var searchElement = useRef();

Expand All @@ -23081,12 +23081,12 @@ var SelectWalletDialog = (function (props) {

var allWallets$1;

if (wallets !== null && wallets !== void 0 && wallets.sort || wallets !== null && wallets !== void 0 && wallets.whitelist) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.sort || walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.whitelist) {
allWallets$1 = useMemo(function () {
var adjustedWallets = _toConsumableArray(allWallets);

if (wallets !== null && wallets !== void 0 && wallets.sort) {
wallets.sort.forEach(function (sortedWallet, newIndex) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.sort) {
walletsConfiguration.sort.forEach(function (sortedWallet, newIndex) {
var currentListIndex = adjustedWallets.findIndex(function (unsortedWallet) {
return unsortedWallet.name === sortedWallet;
});
Expand All @@ -23097,14 +23097,14 @@ var SelectWalletDialog = (function (props) {
});
}

if (wallets !== null && wallets !== void 0 && wallets.whitelist) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.whitelist) {
adjustedWallets = adjustedWallets.filter(function (wallet) {
return wallets.whitelist.indexOf(wallet.name) > -1;
return walletsConfiguration.whitelist.indexOf(wallet.name) > -1;
});
}

return adjustedWallets;
}, [wallets]);
}, [walletsConfiguration]);
} else {
allWallets$1 = allWallets;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/esm/index.evm.js.map

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions dist/esm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22932,16 +22932,16 @@ function ownKeys$9(object, enumerableOnly) { var keys = Object.keys(object); if
function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$9(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
var SelectWalletList = (function (props) {
var _useContext = useContext(ConfigurationContext),
wallets = _useContext.wallets;
walletsConfiguration = _useContext.wallets;

var allWallets$1;

if (wallets !== null && wallets !== void 0 && wallets.sort || wallets !== null && wallets !== void 0 && wallets.whitelist) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.sort || walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.whitelist) {
allWallets$1 = useMemo(function () {
var adjustedWallets = _toConsumableArray(allWallets);

if (wallets !== null && wallets !== void 0 && wallets.sort) {
wallets.sort.forEach(function (sortedWallet, newIndex) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.sort) {
walletsConfiguration.sort.forEach(function (sortedWallet, newIndex) {
var currentListIndex = adjustedWallets.findIndex(function (unsortedWallet) {
return unsortedWallet.name === sortedWallet;
});
Expand All @@ -22952,14 +22952,14 @@ var SelectWalletList = (function (props) {
});
}

if (wallets !== null && wallets !== void 0 && wallets.whitelist) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.whitelist) {
adjustedWallets = adjustedWallets.filter(function (wallet) {
return wallets.whitelist.indexOf(wallet.name) > -1;
return walletsConfiguration.whitelist.indexOf(wallet.name) > -1;
});
}

return adjustedWallets;
}, [wallets]);
}, [walletsConfiguration]);
} else {
allWallets$1 = allWallets;
}
Expand Down Expand Up @@ -23074,7 +23074,7 @@ var SelectWalletDialog = (function (props) {
setDialogAnimationFinished = _useState10[1];

var _useContext = useContext(ConfigurationContext),
wallets = _useContext.wallets;
walletsConfiguration = _useContext.wallets;

var searchElement = useRef();

Expand All @@ -23083,12 +23083,12 @@ var SelectWalletDialog = (function (props) {

var allWallets$1;

if (wallets !== null && wallets !== void 0 && wallets.sort || wallets !== null && wallets !== void 0 && wallets.whitelist) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.sort || walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.whitelist) {
allWallets$1 = useMemo(function () {
var adjustedWallets = _toConsumableArray(allWallets);

if (wallets !== null && wallets !== void 0 && wallets.sort) {
wallets.sort.forEach(function (sortedWallet, newIndex) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.sort) {
walletsConfiguration.sort.forEach(function (sortedWallet, newIndex) {
var currentListIndex = adjustedWallets.findIndex(function (unsortedWallet) {
return unsortedWallet.name === sortedWallet;
});
Expand All @@ -23099,14 +23099,14 @@ var SelectWalletDialog = (function (props) {
});
}

if (wallets !== null && wallets !== void 0 && wallets.whitelist) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.whitelist) {
adjustedWallets = adjustedWallets.filter(function (wallet) {
return wallets.whitelist.indexOf(wallet.name) > -1;
return walletsConfiguration.whitelist.indexOf(wallet.name) > -1;
});
}

return adjustedWallets;
}, [wallets]);
}, [walletsConfiguration]);
} else {
allWallets$1 = allWallets;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/esm/index.js.map

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions dist/esm/index.solana.js
Original file line number Diff line number Diff line change
Expand Up @@ -22931,16 +22931,16 @@ function ownKeys$9(object, enumerableOnly) { var keys = Object.keys(object); if
function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$9(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
var SelectWalletList = (function (props) {
var _useContext = useContext(ConfigurationContext),
wallets = _useContext.wallets;
walletsConfiguration = _useContext.wallets;

var allWallets$1;

if (wallets !== null && wallets !== void 0 && wallets.sort || wallets !== null && wallets !== void 0 && wallets.whitelist) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.sort || walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.whitelist) {
allWallets$1 = useMemo(function () {
var adjustedWallets = _toConsumableArray(allWallets);

if (wallets !== null && wallets !== void 0 && wallets.sort) {
wallets.sort.forEach(function (sortedWallet, newIndex) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.sort) {
walletsConfiguration.sort.forEach(function (sortedWallet, newIndex) {
var currentListIndex = adjustedWallets.findIndex(function (unsortedWallet) {
return unsortedWallet.name === sortedWallet;
});
Expand All @@ -22951,14 +22951,14 @@ var SelectWalletList = (function (props) {
});
}

if (wallets !== null && wallets !== void 0 && wallets.whitelist) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.whitelist) {
adjustedWallets = adjustedWallets.filter(function (wallet) {
return wallets.whitelist.indexOf(wallet.name) > -1;
return walletsConfiguration.whitelist.indexOf(wallet.name) > -1;
});
}

return adjustedWallets;
}, [wallets]);
}, [walletsConfiguration]);
} else {
allWallets$1 = allWallets;
}
Expand Down Expand Up @@ -23073,7 +23073,7 @@ var SelectWalletDialog = (function (props) {
setDialogAnimationFinished = _useState10[1];

var _useContext = useContext(ConfigurationContext),
wallets = _useContext.wallets;
walletsConfiguration = _useContext.wallets;

var searchElement = useRef();

Expand All @@ -23082,12 +23082,12 @@ var SelectWalletDialog = (function (props) {

var allWallets$1;

if (wallets !== null && wallets !== void 0 && wallets.sort || wallets !== null && wallets !== void 0 && wallets.whitelist) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.sort || walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.whitelist) {
allWallets$1 = useMemo(function () {
var adjustedWallets = _toConsumableArray(allWallets);

if (wallets !== null && wallets !== void 0 && wallets.sort) {
wallets.sort.forEach(function (sortedWallet, newIndex) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.sort) {
walletsConfiguration.sort.forEach(function (sortedWallet, newIndex) {
var currentListIndex = adjustedWallets.findIndex(function (unsortedWallet) {
return unsortedWallet.name === sortedWallet;
});
Expand All @@ -23098,14 +23098,14 @@ var SelectWalletDialog = (function (props) {
});
}

if (wallets !== null && wallets !== void 0 && wallets.whitelist) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.whitelist) {
adjustedWallets = adjustedWallets.filter(function (wallet) {
return wallets.whitelist.indexOf(wallet.name) > -1;
return walletsConfiguration.whitelist.indexOf(wallet.name) > -1;
});
}

return adjustedWallets;
}, [wallets]);
}, [walletsConfiguration]);
} else {
allWallets$1 = allWallets;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/esm/index.solana.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/umd/index.bundle.js

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions dist/umd/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -22928,16 +22928,16 @@
function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$8(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
var SelectWalletList = (function (props) {
var _useContext = React.useContext(ConfigurationContext),
wallets = _useContext.wallets;
walletsConfiguration = _useContext.wallets;

var allWallets$1;

if (wallets !== null && wallets !== void 0 && wallets.sort || wallets !== null && wallets !== void 0 && wallets.whitelist) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.sort || walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.whitelist) {
allWallets$1 = React.useMemo(function () {
var adjustedWallets = _toConsumableArray(allWallets);

if (wallets !== null && wallets !== void 0 && wallets.sort) {
wallets.sort.forEach(function (sortedWallet, newIndex) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.sort) {
walletsConfiguration.sort.forEach(function (sortedWallet, newIndex) {
var currentListIndex = adjustedWallets.findIndex(function (unsortedWallet) {
return unsortedWallet.name === sortedWallet;
});
Expand All @@ -22948,14 +22948,14 @@
});
}

if (wallets !== null && wallets !== void 0 && wallets.whitelist) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.whitelist) {
adjustedWallets = adjustedWallets.filter(function (wallet) {
return wallets.whitelist.indexOf(wallet.name) > -1;
return walletsConfiguration.whitelist.indexOf(wallet.name) > -1;
});
}

return adjustedWallets;
}, [wallets]);
}, [walletsConfiguration]);
} else {
allWallets$1 = allWallets;
}
Expand Down Expand Up @@ -23070,7 +23070,7 @@
setDialogAnimationFinished = _useState10[1];

var _useContext = React.useContext(ConfigurationContext),
wallets = _useContext.wallets;
walletsConfiguration = _useContext.wallets;

var searchElement = React.useRef();

Expand All @@ -23079,12 +23079,12 @@

var allWallets$1;

if (wallets !== null && wallets !== void 0 && wallets.sort || wallets !== null && wallets !== void 0 && wallets.whitelist) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.sort || walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.whitelist) {
allWallets$1 = React.useMemo(function () {
var adjustedWallets = _toConsumableArray(allWallets);

if (wallets !== null && wallets !== void 0 && wallets.sort) {
wallets.sort.forEach(function (sortedWallet, newIndex) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.sort) {
walletsConfiguration.sort.forEach(function (sortedWallet, newIndex) {
var currentListIndex = adjustedWallets.findIndex(function (unsortedWallet) {
return unsortedWallet.name === sortedWallet;
});
Expand All @@ -23095,14 +23095,14 @@
});
}

if (wallets !== null && wallets !== void 0 && wallets.whitelist) {
if (walletsConfiguration !== null && walletsConfiguration !== void 0 && walletsConfiguration.whitelist) {
adjustedWallets = adjustedWallets.filter(function (wallet) {
return wallets.whitelist.indexOf(wallet.name) > -1;
return walletsConfiguration.whitelist.indexOf(wallet.name) > -1;
});
}

return adjustedWallets;
}, [wallets]);
}, [walletsConfiguration]);
} else {
allWallets$1 = allWallets;
}
Expand Down Expand Up @@ -23200,7 +23200,7 @@

var connectionType = 'app';

if (wallet && wallet.constructor && ![wallets.WalletConnectV1, wallets.WalletConnectV2, wallets.WalletLink].includes(wallet.constructor)) {
if (wallet && wallet.constructor && ![web3WalletsEvm.wallets.WalletConnectV1, web3WalletsEvm.wallets.WalletConnectV2, web3WalletsEvm.wallets.WalletLink].includes(wallet.constructor)) {
connectionType = 'extension';
}

Expand Down
2 changes: 1 addition & 1 deletion dist/umd/index.evm.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 53701a1

Please sign in to comment.