@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.
Files changed (38) hide show
  1. package/CHANGELOG.md +496 -1
  2. package/README.md +1 -1
  3. package/package.cjs +1 -1
  4. package/package.js +1 -1
  5. package/package.json +5 -5
  6. package/src/build/sources/walletConnectOverrides/index.d.ts +16 -0
  7. package/src/components/WalletIcon.cjs +15 -7
  8. package/src/components/WalletIcon.d.ts +278 -3
  9. package/src/components/WalletIcon.js +17 -9
  10. package/src/helpers/getWalletBookWallet.d.ts +1 -1
  11. package/src/helpers/getWalletIconData.cjs +39 -0
  12. package/src/helpers/getWalletIconData.d.ts +5 -0
  13. package/src/helpers/getWalletIconData.js +35 -0
  14. package/src/helpers/index.d.ts +2 -4
  15. package/src/helpers/isWalletBookPopulated.cjs +8 -0
  16. package/src/helpers/isWalletBookPopulated.d.ts +2 -0
  17. package/src/helpers/isWalletBookPopulated.js +4 -0
  18. package/src/hooks/fetchWalletBook/fetchWalletBook.cjs +0 -1
  19. package/src/hooks/fetchWalletBook/fetchWalletBook.js +0 -1
  20. package/src/hooks/useWalletBookCdn.cjs +13 -0
  21. package/src/hooks/useWalletBookCdn.js +13 -0
  22. package/src/index.cjs +6 -10
  23. package/src/index.d.ts +1 -2
  24. package/src/index.js +3 -6
  25. package/wallet-book-fallbacks.cjs +149 -10
  26. package/wallet-book-fallbacks.js +149 -10
  27. package/src/helpers/getWalletLinks.cjs +0 -34
  28. package/src/helpers/getWalletLinks.d.ts +0 -10
  29. package/src/helpers/getWalletLinks.js +0 -30
  30. package/src/helpers/getWalletPrimaryColor.cjs +0 -14
  31. package/src/helpers/getWalletPrimaryColor.d.ts +0 -2
  32. package/src/helpers/getWalletPrimaryColor.js +0 -10
  33. package/src/helpers/isWalletEventSupported.cjs +0 -8
  34. package/src/helpers/isWalletEventSupported.d.ts +0 -2
  35. package/src/helpers/isWalletEventSupported.js +0 -4
  36. package/src/helpers/isWalletMethodSupported.cjs +0 -8
  37. package/src/helpers/isWalletMethodSupported.d.ts +0 -2
  38. 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,2 +0,0 @@
1
- import { WalletSchema } from '../schemas';
2
- export declare const isWalletMethodSupported: (wallet: WalletSchema | undefined, method: string, platform: keyof NonNullable<WalletSchema['walletLimitations']>) => boolean;
@@ -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 };