@dynamic-labs/wallet-book 0.19.0-alpha.8 → 0.19.0

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 (96) hide show
  1. package/CHANGELOG.md +321 -0
  2. package/README.md +34 -0
  3. package/package.json +3 -3
  4. package/src/build/index.d.ts +50 -41
  5. package/src/build/sources/firstParty/index.d.ts +2 -2
  6. package/src/build/sources/index.d.ts +4 -4
  7. package/src/build/sources/walletConnect/index.d.ts +100 -91
  8. package/src/build/sources/walletConnect/preprocessors.d.ts +13 -13
  9. package/src/build/sources/walletConnectOverrides/index.d.ts +249 -249
  10. package/src/build/sources/walletGroups/index.d.ts +2 -2
  11. package/src/components/WalletBookContext.cjs +3 -3
  12. package/src/components/WalletBookContext.d.ts +9 -9
  13. package/src/components/WalletBookContext.js +3 -3
  14. package/src/components/WalletIcon.cjs +19 -19
  15. package/src/components/WalletIcon.d.ts +8 -8
  16. package/src/components/WalletIcon.js +19 -19
  17. package/src/components/index.d.ts +2 -2
  18. package/src/helpers/findWalletBookWallet.cjs +9 -9
  19. package/src/helpers/findWalletBookWallet.d.ts +44 -35
  20. package/src/helpers/findWalletBookWallet.js +9 -9
  21. package/src/helpers/findWalletGroup.cjs +8 -8
  22. package/src/helpers/findWalletGroup.d.ts +11 -11
  23. package/src/helpers/findWalletGroup.js +8 -8
  24. package/src/helpers/getWalletBookCdnUrl.cjs +8 -8
  25. package/src/helpers/getWalletBookCdnUrl.d.ts +1 -1
  26. package/src/helpers/getWalletBookCdnUrl.js +8 -8
  27. package/src/helpers/getWalletBookWallet.cjs +6 -6
  28. package/src/helpers/getWalletBookWallet.d.ts +2 -2
  29. package/src/helpers/getWalletBookWallet.js +6 -6
  30. package/src/helpers/getWalletGroup.cjs +5 -5
  31. package/src/helpers/getWalletGroup.d.ts +3 -3
  32. package/src/helpers/getWalletGroup.js +5 -5
  33. package/src/helpers/getWalletIconUrl.cjs +23 -23
  34. package/src/helpers/getWalletIconUrl.d.ts +3 -3
  35. package/src/helpers/getWalletIconUrl.js +23 -23
  36. package/src/helpers/getWalletLinks.cjs +26 -26
  37. package/src/helpers/getWalletLinks.d.ts +10 -10
  38. package/src/helpers/getWalletLinks.js +26 -26
  39. package/src/helpers/getWalletPrimaryColor.cjs +3 -3
  40. package/src/helpers/getWalletPrimaryColor.d.ts +2 -2
  41. package/src/helpers/getWalletPrimaryColor.js +3 -3
  42. package/src/helpers/index.d.ts +11 -11
  43. package/src/helpers/logger.d.ts +2 -2
  44. package/src/helpers/normalizeWalletName.d.ts +1 -1
  45. package/src/helpers/renderTemplate.cjs +13 -13
  46. package/src/helpers/renderTemplate.d.ts +12 -12
  47. package/src/helpers/renderTemplate.js +13 -13
  48. package/src/hooks/index.d.ts +2 -2
  49. package/src/hooks/useWalletBookCdn.cjs +27 -27
  50. package/src/hooks/useWalletBookCdn.d.ts +55 -46
  51. package/src/hooks/useWalletBookCdn.js +27 -27
  52. package/src/hooks/useWalletBookContext.cjs +6 -6
  53. package/src/hooks/useWalletBookContext.d.ts +1 -1
  54. package/src/hooks/useWalletBookContext.js +6 -6
  55. package/src/index.d.ts +18 -18
  56. package/src/schemas/index.d.ts +3 -3
  57. package/src/schemas/utils/filterEmptyObject.cjs +5 -5
  58. package/src/schemas/utils/filterEmptyObject.d.ts +6 -6
  59. package/src/schemas/utils/filterEmptyObject.js +5 -5
  60. package/src/schemas/utils/nonEmptyString.cjs +3 -3
  61. package/src/schemas/utils/nonEmptyString.d.ts +5 -5
  62. package/src/schemas/utils/nonEmptyString.js +3 -3
  63. package/src/schemas/utils/nonEmptyStringArray.cjs +3 -3
  64. package/src/schemas/utils/nonEmptyStringArray.d.ts +5 -5
  65. package/src/schemas/utils/nonEmptyStringArray.js +3 -3
  66. package/src/schemas/utils/processWalletConnectNativeUrl.d.ts +1 -1
  67. package/src/schemas/utils/sortKeys.d.ts +5 -5
  68. package/src/schemas/utils/transformAndroidId.cjs +16 -16
  69. package/src/schemas/utils/transformAndroidId.d.ts +1 -1
  70. package/src/schemas/utils/transformAndroidId.js +16 -16
  71. package/src/schemas/utils/transformChromeExtensionId.cjs +13 -13
  72. package/src/schemas/utils/transformChromeExtensionId.d.ts +1 -1
  73. package/src/schemas/utils/transformChromeExtensionId.js +13 -13
  74. package/src/schemas/utils/transformEdgeExtensionId.cjs +13 -13
  75. package/src/schemas/utils/transformEdgeExtensionId.d.ts +1 -1
  76. package/src/schemas/utils/transformEdgeExtensionId.js +13 -13
  77. package/src/schemas/utils/transformFirefoxExtensionId.cjs +13 -13
  78. package/src/schemas/utils/transformFirefoxExtensionId.d.ts +1 -1
  79. package/src/schemas/utils/transformFirefoxExtensionId.js +13 -13
  80. package/src/schemas/utils/transformIosId.cjs +20 -20
  81. package/src/schemas/utils/transformIosId.d.ts +1 -1
  82. package/src/schemas/utils/transformIosId.js +20 -20
  83. package/src/schemas/walletBookSchema.cjs +5 -5
  84. package/src/schemas/walletBookSchema.d.ts +862 -714
  85. package/src/schemas/walletBookSchema.js +5 -5
  86. package/src/schemas/walletConnectSourceSchema.cjs +64 -64
  87. package/src/schemas/walletConnectSourceSchema.d.ts +504 -504
  88. package/src/schemas/walletConnectSourceSchema.js +64 -64
  89. package/src/schemas/walletGroup.cjs +22 -22
  90. package/src/schemas/walletGroup.d.ts +50 -50
  91. package/src/schemas/walletGroup.js +22 -22
  92. package/src/schemas/walletSchema.cjs +88 -66
  93. package/src/schemas/walletSchema.d.ts +351 -256
  94. package/src/schemas/walletSchema.js +88 -66
  95. package/wallet-book-fallbacks.cjs +82 -1
  96. package/wallet-book-fallbacks.js +82 -1
@@ -1,91 +1,100 @@
1
- export declare const walletConnectSourceData: Record<string, {
2
- name: string;
3
- chains: string[];
4
- desktop: {
5
- native: string | null;
6
- universal: string | null;
7
- };
8
- mobile: {
9
- native: string | null;
10
- universal: string | null;
11
- };
12
- sdks: string[];
13
- app: {
14
- android: string | null;
15
- ios: string | null;
16
- opera: string | null;
17
- browser: string | null;
18
- chrome: string | null;
19
- edge: string | null;
20
- firefox: string | null;
21
- linux: string | null;
22
- mac: string | null;
23
- safari: string | null;
24
- windows: string | null;
25
- };
26
- app_type: string;
27
- description: string | null;
28
- homepage: string;
29
- id: string;
30
- image_id: string;
31
- image_url: {
32
- lg: string;
33
- md: string;
34
- sm: string;
35
- };
36
- injected: {
37
- injected_id: string;
38
- namespace: string;
39
- }[] | null;
40
- metadata: {
41
- shortName: string | null;
42
- colors: {
43
- primary: string | null;
44
- secondary: string | null;
45
- };
46
- };
47
- slug: string;
48
- supported_standards: {
49
- id: string;
50
- standard_id: number;
51
- standard_prefix: string;
52
- title: string;
53
- url: string;
54
- }[];
55
- updatedAt: string;
56
- versions: string[];
57
- }>;
58
- export declare const walletConnectTransformedData: Promise<Record<string, {
59
- name: string;
60
- brand?: {
61
- alt?: string | undefined;
62
- imageId?: string | undefined;
63
- primaryColor?: string | undefined;
64
- spriteId?: string | undefined;
65
- } | undefined;
66
- chains?: string[] | undefined;
67
- desktop?: {
68
- chromeId?: string | undefined;
69
- edgeId?: string | undefined;
70
- firefoxId?: string | undefined;
71
- native?: string | undefined;
72
- operaId?: string | undefined;
73
- safariId?: string | undefined;
74
- universal?: string | undefined;
75
- } | undefined;
76
- group?: string | undefined;
77
- mobile?: {
78
- android?: string | null | undefined;
79
- androidId?: string | undefined;
80
- ios?: string | null | undefined;
81
- iosId?: string | undefined;
82
- native?: string | undefined;
83
- universal?: string | undefined;
84
- } | undefined;
85
- shortName?: string | undefined;
86
- showOnlyIfInstalled?: boolean | undefined;
87
- switchNetworkOnlyFromWallet?: boolean | undefined;
88
- walletConnect?: {
89
- sdks?: string[] | undefined;
90
- } | undefined;
91
- }>>;
1
+ export declare const walletConnectSourceData: Record<string, {
2
+ name: string;
3
+ chains: string[];
4
+ desktop: {
5
+ native: string | null;
6
+ universal: string | null;
7
+ };
8
+ mobile: {
9
+ native: string | null;
10
+ universal: string | null;
11
+ };
12
+ sdks: string[];
13
+ metadata: {
14
+ shortName: string | null;
15
+ colors: {
16
+ primary: string | null;
17
+ secondary: string | null;
18
+ };
19
+ };
20
+ app: {
21
+ android: string | null;
22
+ ios: string | null;
23
+ opera: string | null;
24
+ browser: string | null;
25
+ chrome: string | null;
26
+ edge: string | null;
27
+ firefox: string | null;
28
+ linux: string | null;
29
+ mac: string | null;
30
+ safari: string | null;
31
+ windows: string | null;
32
+ };
33
+ app_type: string;
34
+ description: string | null;
35
+ homepage: string;
36
+ id: string;
37
+ image_id: string;
38
+ image_url: {
39
+ lg: string;
40
+ md: string;
41
+ sm: string;
42
+ };
43
+ injected: {
44
+ injected_id: string;
45
+ namespace: string;
46
+ }[] | null;
47
+ slug: string;
48
+ supported_standards: {
49
+ title: string;
50
+ id: string;
51
+ standard_id: number;
52
+ standard_prefix: string;
53
+ url: string;
54
+ }[];
55
+ updatedAt: string;
56
+ versions: string[];
57
+ }>;
58
+ export declare const walletConnectTransformedData: Promise<Record<string, {
59
+ name: string;
60
+ brand?: {
61
+ alt?: string | undefined;
62
+ imageId?: string | undefined;
63
+ primaryColor?: string | undefined;
64
+ spriteId?: string | undefined;
65
+ } | undefined;
66
+ chains?: string[] | undefined;
67
+ desktop?: {
68
+ chromeId?: string | undefined;
69
+ edgeId?: string | undefined;
70
+ firefoxId?: string | undefined;
71
+ native?: string | undefined;
72
+ operaId?: string | undefined;
73
+ safariId?: string | undefined;
74
+ universal?: string | undefined;
75
+ } | undefined;
76
+ filterFromWalletConnect?: boolean | undefined;
77
+ group?: string | undefined;
78
+ injectedConfig?: {
79
+ chain: string;
80
+ extensionLocators: {
81
+ value: boolean;
82
+ flag: string;
83
+ }[];
84
+ windowLocations?: string[] | undefined;
85
+ }[] | undefined;
86
+ mobile?: {
87
+ android?: string | null | undefined;
88
+ androidId?: string | undefined;
89
+ ios?: string | null | undefined;
90
+ iosId?: string | undefined;
91
+ native?: string | undefined;
92
+ universal?: string | undefined;
93
+ } | undefined;
94
+ shortName?: string | undefined;
95
+ showOnlyIfInstalled?: boolean | undefined;
96
+ switchNetworkOnlyFromWallet?: boolean | undefined;
97
+ walletConnect?: {
98
+ sdks?: string[] | undefined;
99
+ } | undefined;
100
+ }>>;
@@ -1,13 +1,13 @@
1
- export declare const preprocessFilterWCWallets: (sourceData: any) => void;
2
- export declare const preprocessBrand: (sourceData: any) => void;
3
- export declare const preprocessDesktop: (sourceData: any) => void;
4
- export declare const preprocessMobile: (sourceData: any) => void;
5
- export declare const preprocessSdks: (sourceData: any) => void;
6
- export declare const preprocessUniversal: (data: any) => Promise<void>;
7
- export declare const preprocessNative: (data: any) => void;
8
- /**
9
- * 1. Convert the name to lowercase
10
- * 2. Replace all spaces with empty string
11
- * 3. Use the new name as the key
12
- */
13
- export declare const preprocessRenameKey: (sourceData: any) => void;
1
+ export declare const preprocessFilterWCWallets: (sourceData: any) => void;
2
+ export declare const preprocessBrand: (sourceData: any) => void;
3
+ export declare const preprocessDesktop: (sourceData: any) => void;
4
+ export declare const preprocessMobile: (sourceData: any) => void;
5
+ export declare const preprocessSdks: (sourceData: any) => void;
6
+ export declare const preprocessUniversal: (data: any) => Promise<void>;
7
+ export declare const preprocessNative: (data: any) => void;
8
+ /**
9
+ * 1. Convert the name to lowercase
10
+ * 2. Replace all spaces with empty string
11
+ * 3. Use the new name as the key
12
+ */
13
+ export declare const preprocessRenameKey: (sourceData: any) => void;