@dynamic-labs/wallet-book 0.19.0-alpha.9 → 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.
- package/CHANGELOG.md +292 -0
- package/README.md +34 -0
- package/package.json +3 -3
- package/src/build/index.d.ts +50 -50
- package/src/build/sources/firstParty/index.d.ts +2 -2
- package/src/build/sources/index.d.ts +4 -4
- package/src/build/sources/walletConnect/index.d.ts +100 -100
- package/src/build/sources/walletConnect/preprocessors.d.ts +13 -13
- package/src/build/sources/walletConnectOverrides/index.d.ts +249 -249
- package/src/build/sources/walletGroups/index.d.ts +2 -2
- package/src/components/WalletBookContext.cjs +3 -3
- package/src/components/WalletBookContext.d.ts +9 -9
- package/src/components/WalletBookContext.js +3 -3
- package/src/components/WalletIcon.cjs +19 -19
- package/src/components/WalletIcon.d.ts +8 -8
- package/src/components/WalletIcon.js +19 -19
- package/src/components/index.d.ts +2 -2
- package/src/helpers/findWalletBookWallet.cjs +9 -9
- package/src/helpers/findWalletBookWallet.d.ts +44 -44
- package/src/helpers/findWalletBookWallet.js +9 -9
- package/src/helpers/findWalletGroup.cjs +8 -8
- package/src/helpers/findWalletGroup.d.ts +11 -11
- package/src/helpers/findWalletGroup.js +8 -8
- package/src/helpers/getWalletBookCdnUrl.cjs +8 -8
- package/src/helpers/getWalletBookCdnUrl.d.ts +1 -1
- package/src/helpers/getWalletBookCdnUrl.js +8 -8
- package/src/helpers/getWalletBookWallet.cjs +6 -9
- package/src/helpers/getWalletBookWallet.d.ts +2 -2
- package/src/helpers/getWalletBookWallet.js +6 -9
- package/src/helpers/getWalletGroup.cjs +5 -5
- package/src/helpers/getWalletGroup.d.ts +3 -3
- package/src/helpers/getWalletGroup.js +5 -5
- package/src/helpers/getWalletIconUrl.cjs +23 -23
- package/src/helpers/getWalletIconUrl.d.ts +3 -3
- package/src/helpers/getWalletIconUrl.js +23 -23
- package/src/helpers/getWalletLinks.cjs +26 -26
- package/src/helpers/getWalletLinks.d.ts +10 -10
- package/src/helpers/getWalletLinks.js +26 -26
- package/src/helpers/getWalletPrimaryColor.cjs +3 -3
- package/src/helpers/getWalletPrimaryColor.d.ts +2 -2
- package/src/helpers/getWalletPrimaryColor.js +3 -3
- package/src/helpers/index.d.ts +11 -11
- package/src/helpers/logger.d.ts +2 -2
- package/src/helpers/normalizeWalletName.d.ts +1 -1
- package/src/helpers/renderTemplate.cjs +13 -13
- package/src/helpers/renderTemplate.d.ts +12 -12
- package/src/helpers/renderTemplate.js +13 -13
- package/src/hooks/index.d.ts +2 -2
- package/src/hooks/useWalletBookCdn.cjs +27 -27
- package/src/hooks/useWalletBookCdn.d.ts +55 -55
- package/src/hooks/useWalletBookCdn.js +27 -27
- package/src/hooks/useWalletBookContext.cjs +6 -6
- package/src/hooks/useWalletBookContext.d.ts +1 -1
- package/src/hooks/useWalletBookContext.js +6 -6
- package/src/index.d.ts +18 -18
- package/src/schemas/index.d.ts +3 -3
- package/src/schemas/utils/filterEmptyObject.cjs +5 -5
- package/src/schemas/utils/filterEmptyObject.d.ts +6 -6
- package/src/schemas/utils/filterEmptyObject.js +5 -5
- package/src/schemas/utils/nonEmptyString.cjs +3 -3
- package/src/schemas/utils/nonEmptyString.d.ts +5 -5
- package/src/schemas/utils/nonEmptyString.js +3 -3
- package/src/schemas/utils/nonEmptyStringArray.cjs +3 -3
- package/src/schemas/utils/nonEmptyStringArray.d.ts +5 -5
- package/src/schemas/utils/nonEmptyStringArray.js +3 -3
- package/src/schemas/utils/processWalletConnectNativeUrl.d.ts +1 -1
- package/src/schemas/utils/sortKeys.d.ts +5 -5
- package/src/schemas/utils/transformAndroidId.cjs +16 -16
- package/src/schemas/utils/transformAndroidId.d.ts +1 -1
- package/src/schemas/utils/transformAndroidId.js +16 -16
- package/src/schemas/utils/transformChromeExtensionId.cjs +13 -13
- package/src/schemas/utils/transformChromeExtensionId.d.ts +1 -1
- package/src/schemas/utils/transformChromeExtensionId.js +13 -13
- package/src/schemas/utils/transformEdgeExtensionId.cjs +13 -13
- package/src/schemas/utils/transformEdgeExtensionId.d.ts +1 -1
- package/src/schemas/utils/transformEdgeExtensionId.js +13 -13
- package/src/schemas/utils/transformFirefoxExtensionId.cjs +13 -13
- package/src/schemas/utils/transformFirefoxExtensionId.d.ts +1 -1
- package/src/schemas/utils/transformFirefoxExtensionId.js +13 -13
- package/src/schemas/utils/transformIosId.cjs +20 -20
- package/src/schemas/utils/transformIosId.d.ts +1 -1
- package/src/schemas/utils/transformIosId.js +20 -20
- package/src/schemas/walletBookSchema.cjs +5 -5
- package/src/schemas/walletBookSchema.d.ts +862 -862
- package/src/schemas/walletBookSchema.js +5 -5
- package/src/schemas/walletConnectSourceSchema.cjs +64 -64
- package/src/schemas/walletConnectSourceSchema.d.ts +504 -504
- package/src/schemas/walletConnectSourceSchema.js +64 -64
- package/src/schemas/walletGroup.cjs +22 -22
- package/src/schemas/walletGroup.d.ts +50 -50
- package/src/schemas/walletGroup.js +22 -22
- package/src/schemas/walletSchema.cjs +88 -88
- package/src/schemas/walletSchema.d.ts +351 -351
- package/src/schemas/walletSchema.js +88 -88
- package/wallet-book-fallbacks.cjs +66 -0
- package/wallet-book-fallbacks.js +66 -0
|
@@ -1,100 +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
|
-
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
|
+
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;
|