@dynamic-labs/wallet-book 4.0.0-alpha.9 → 4.0.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/CHANGELOG.md +496 -1
- package/README.md +1 -1
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +5 -5
- package/src/build/sources/walletConnectOverrides/index.d.ts +16 -0
- package/src/components/WalletIcon.cjs +15 -7
- package/src/components/WalletIcon.d.ts +278 -3
- package/src/components/WalletIcon.js +17 -9
- package/src/helpers/getWalletBookWallet.d.ts +1 -1
- package/src/helpers/getWalletIconData.cjs +39 -0
- package/src/helpers/getWalletIconData.d.ts +5 -0
- package/src/helpers/getWalletIconData.js +35 -0
- package/src/helpers/index.d.ts +2 -4
- package/src/helpers/isWalletBookPopulated.cjs +8 -0
- package/src/helpers/isWalletBookPopulated.d.ts +2 -0
- package/src/helpers/isWalletBookPopulated.js +4 -0
- package/src/hooks/fetchWalletBook/fetchWalletBook.cjs +0 -1
- package/src/hooks/fetchWalletBook/fetchWalletBook.js +0 -1
- package/src/hooks/useWalletBookCdn.cjs +13 -0
- package/src/hooks/useWalletBookCdn.js +13 -0
- package/src/index.cjs +6 -10
- package/src/index.d.ts +1 -2
- package/src/index.js +3 -6
- package/wallet-book-fallbacks.cjs +149 -10
- package/wallet-book-fallbacks.js +149 -10
- package/src/helpers/getWalletLinks.cjs +0 -34
- package/src/helpers/getWalletLinks.d.ts +0 -10
- package/src/helpers/getWalletLinks.js +0 -30
- package/src/helpers/getWalletPrimaryColor.cjs +0 -14
- package/src/helpers/getWalletPrimaryColor.d.ts +0 -2
- package/src/helpers/getWalletPrimaryColor.js +0 -10
- package/src/helpers/isWalletEventSupported.cjs +0 -8
- package/src/helpers/isWalletEventSupported.d.ts +0 -2
- package/src/helpers/isWalletEventSupported.js +0 -4
- package/src/helpers/isWalletMethodSupported.cjs +0 -8
- package/src/helpers/isWalletMethodSupported.d.ts +0 -2
- package/src/helpers/isWalletMethodSupported.js +0 -4
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
const isWalletEventSupported = (wallet, event, platform) => { var _a, _b, _c; return !((_c = (_b = (_a = wallet === null || wallet === void 0 ? void 0 : wallet.walletLimitations) === null || _a === void 0 ? void 0 : _a[platform]) === null || _b === void 0 ? void 0 : _b.unsupportedEvents) === null || _c === void 0 ? void 0 : _c.includes(event)); };
|
|
3
|
-
|
|
4
|
-
export { isWalletEventSupported };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
const isWalletMethodSupported = (wallet, method, platform) => { var _a, _b, _c; return !((_c = (_b = (_a = wallet === null || wallet === void 0 ? void 0 : wallet.walletLimitations) === null || _a === void 0 ? void 0 : _a[platform]) === null || _b === void 0 ? void 0 : _b.unsupportedMethods) === null || _c === void 0 ? void 0 : _c.includes(method)); };
|
|
7
|
-
|
|
8
|
-
exports.isWalletMethodSupported = isWalletMethodSupported;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
const isWalletMethodSupported = (wallet, method, platform) => { var _a, _b, _c; return !((_c = (_b = (_a = wallet === null || wallet === void 0 ? void 0 : wallet.walletLimitations) === null || _a === void 0 ? void 0 : _a[platform]) === null || _b === void 0 ? void 0 : _b.unsupportedMethods) === null || _c === void 0 ? void 0 : _c.includes(method)); };
|
|
3
|
-
|
|
4
|
-
export { isWalletMethodSupported };
|