@dynamic-labs/wallet-book 0.17.1 → 0.18.0-RC.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 +7 -3
- package/package.json +2 -2
- package/src/build/sources/index.d.ts +1 -0
- package/src/build/sources/walletConnect/index.d.ts +10 -10
- package/src/build/sources/walletGroups/index.d.ts +2 -0
- package/src/helpers/findWalletGroup.cjs +18 -0
- package/src/helpers/findWalletGroup.d.ts +1 -34
- package/src/helpers/findWalletGroup.js +14 -0
- package/src/hooks/useWalletBookCdn.d.ts +1 -34
- package/src/index.cjs +4 -0
- package/src/index.d.ts +1 -1
- package/src/index.js +2 -0
- package/src/schemas/walletBookSchema.d.ts +11 -614
- package/src/schemas/walletGroup.d.ts +3 -289
- package/wallet-book.cjs +6 -154
- package/wallet-book.js +6 -154
- package/src/build/generateGroups.d.ts +0 -2
- package/src/build/sources/groups/index.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
## [0.18.0-RC.0](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0...v0.18.0-RC.0) (2023-06-14)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **DYN-1260:** support for building groups in wallet list builder ([#2272](https://github.com/dynamic-labs/DynamicAuth/issues/2272)) ([a120f98](https://github.com/dynamic-labs/DynamicAuth/commit/a120f9848def97ae70565e06c9058a2a992ad4bb))
|
|
3
8
|
|
|
4
9
|
|
|
5
10
|
### Bug Fixes
|
|
6
11
|
|
|
7
|
-
* display social icons
|
|
8
|
-
* set min-height on social overlay modal
|
|
12
|
+
* **social:** display social icons is current order ([#2320](https://github.com/dynamic-labs/DynamicAuth/issues/2320)) ([ca8099f](https://github.com/dynamic-labs/DynamicAuth/commit/ca8099f23e17313f23b0aaa1ba02f1903565da37))
|
|
9
13
|
|
|
10
14
|
## [0.17.0](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.33...v0.17.0) (2023-06-13)
|
|
11
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-book",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0-RC.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
"react-dom": "^17.0.2 || ^18.0.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@dynamic-labs/logger": "0.
|
|
32
|
+
"@dynamic-labs/logger": "0.18.0-RC.0"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
export declare const walletConnectSourceData: Record<string, {
|
|
2
|
+
id: string;
|
|
3
|
+
metadata: {
|
|
4
|
+
shortName: string | null;
|
|
5
|
+
colors: {
|
|
6
|
+
primary: string | null;
|
|
7
|
+
secondary: string | null;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
2
10
|
chains: string[];
|
|
3
11
|
desktop: {
|
|
4
12
|
native: string | null;
|
|
@@ -26,7 +34,6 @@ export declare const walletConnectSourceData: Record<string, {
|
|
|
26
34
|
app_type: string;
|
|
27
35
|
description: string | null;
|
|
28
36
|
homepage: string;
|
|
29
|
-
id: string;
|
|
30
37
|
image_id: string;
|
|
31
38
|
image_url: {
|
|
32
39
|
lg: string;
|
|
@@ -37,20 +44,13 @@ export declare const walletConnectSourceData: Record<string, {
|
|
|
37
44
|
injected_id: string;
|
|
38
45
|
namespace: string;
|
|
39
46
|
}[] | null;
|
|
40
|
-
metadata: {
|
|
41
|
-
shortName: string | null;
|
|
42
|
-
colors: {
|
|
43
|
-
primary: string | null;
|
|
44
|
-
secondary: string | null;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
47
|
slug: string;
|
|
48
48
|
supported_standards: {
|
|
49
|
+
url: string;
|
|
49
50
|
id: string;
|
|
51
|
+
title: string;
|
|
50
52
|
standard_id: number;
|
|
51
53
|
standard_prefix: string;
|
|
52
|
-
title: string;
|
|
53
|
-
url: string;
|
|
54
54
|
}[];
|
|
55
55
|
updatedAt: string;
|
|
56
56
|
versions: string[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var getWalletGroup = require('./getWalletGroup.cjs');
|
|
6
|
+
var logger = require('./logger.cjs');
|
|
7
|
+
|
|
8
|
+
const findWalletGroup = (walletGroup) => {
|
|
9
|
+
try {
|
|
10
|
+
return getWalletGroup.getWalletGroup(walletGroup);
|
|
11
|
+
}
|
|
12
|
+
catch (err) {
|
|
13
|
+
logger.logger.error(err);
|
|
14
|
+
return undefined;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
exports.findWalletGroup = findWalletGroup;
|
|
@@ -1,39 +1,6 @@
|
|
|
1
1
|
export declare const findWalletGroup: (walletGroup: string) => {
|
|
2
2
|
key: string;
|
|
3
|
-
|
|
4
|
-
name: string;
|
|
5
|
-
brand?: {
|
|
6
|
-
alt?: string | undefined;
|
|
7
|
-
imageId?: string | undefined;
|
|
8
|
-
primaryColor?: string | undefined;
|
|
9
|
-
spriteId?: string | undefined;
|
|
10
|
-
} | undefined;
|
|
11
|
-
chains?: string[] | undefined;
|
|
12
|
-
desktop?: {
|
|
13
|
-
chromeId?: string | undefined;
|
|
14
|
-
edgeId?: string | undefined;
|
|
15
|
-
firefoxId?: string | undefined;
|
|
16
|
-
native?: string | undefined;
|
|
17
|
-
operaId?: string | undefined;
|
|
18
|
-
safariId?: string | undefined;
|
|
19
|
-
universal?: string | undefined;
|
|
20
|
-
} | undefined;
|
|
21
|
-
group?: string | undefined;
|
|
22
|
-
mobile?: {
|
|
23
|
-
android?: string | null | undefined;
|
|
24
|
-
androidId?: string | undefined;
|
|
25
|
-
ios?: string | null | undefined;
|
|
26
|
-
iosId?: string | undefined;
|
|
27
|
-
native?: string | undefined;
|
|
28
|
-
universal?: string | undefined;
|
|
29
|
-
} | undefined;
|
|
30
|
-
shortName?: string | undefined;
|
|
31
|
-
showOnlyIfInstalled?: boolean | undefined;
|
|
32
|
-
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
33
|
-
walletConnect?: {
|
|
34
|
-
sdks?: string[] | undefined;
|
|
35
|
-
} | undefined;
|
|
36
|
-
}[];
|
|
3
|
+
name: string;
|
|
37
4
|
brand?: {
|
|
38
5
|
alt?: string | undefined;
|
|
39
6
|
imageId?: string | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { getWalletGroup } from './getWalletGroup.js';
|
|
2
|
+
import { logger } from './logger.js';
|
|
3
|
+
|
|
4
|
+
const findWalletGroup = (walletGroup) => {
|
|
5
|
+
try {
|
|
6
|
+
return getWalletGroup(walletGroup);
|
|
7
|
+
}
|
|
8
|
+
catch (err) {
|
|
9
|
+
logger.error(err);
|
|
10
|
+
return undefined;
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { findWalletGroup };
|
|
@@ -1,40 +1,7 @@
|
|
|
1
1
|
export declare const useWalletBookCdn: () => {
|
|
2
2
|
groups: Record<string, {
|
|
3
3
|
key: string;
|
|
4
|
-
|
|
5
|
-
name: string;
|
|
6
|
-
brand?: {
|
|
7
|
-
alt?: string | undefined;
|
|
8
|
-
imageId?: string | undefined;
|
|
9
|
-
primaryColor?: string | undefined;
|
|
10
|
-
spriteId?: string | undefined;
|
|
11
|
-
} | undefined;
|
|
12
|
-
chains?: string[] | undefined;
|
|
13
|
-
desktop?: {
|
|
14
|
-
chromeId?: string | undefined;
|
|
15
|
-
edgeId?: string | undefined;
|
|
16
|
-
firefoxId?: string | undefined;
|
|
17
|
-
native?: string | undefined;
|
|
18
|
-
operaId?: string | undefined;
|
|
19
|
-
safariId?: string | undefined;
|
|
20
|
-
universal?: string | undefined;
|
|
21
|
-
} | undefined;
|
|
22
|
-
group?: string | undefined;
|
|
23
|
-
mobile?: {
|
|
24
|
-
android?: string | null | undefined;
|
|
25
|
-
androidId?: string | undefined;
|
|
26
|
-
ios?: string | null | undefined;
|
|
27
|
-
iosId?: string | undefined;
|
|
28
|
-
native?: string | undefined;
|
|
29
|
-
universal?: string | undefined;
|
|
30
|
-
} | undefined;
|
|
31
|
-
shortName?: string | undefined;
|
|
32
|
-
showOnlyIfInstalled?: boolean | undefined;
|
|
33
|
-
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
34
|
-
walletConnect?: {
|
|
35
|
-
sdks?: string[] | undefined;
|
|
36
|
-
} | undefined;
|
|
37
|
-
}[];
|
|
4
|
+
name: string;
|
|
38
5
|
brand?: {
|
|
39
6
|
alt?: string | undefined;
|
|
40
7
|
imageId?: string | undefined;
|
package/src/index.cjs
CHANGED
|
@@ -6,8 +6,10 @@ var getIconUrl = require('./helpers/getIconUrl.cjs');
|
|
|
6
6
|
var getWalletBookWallet = require('./helpers/getWalletBookWallet.cjs');
|
|
7
7
|
var getWalletLinks = require('./helpers/getWalletLinks.cjs');
|
|
8
8
|
var getWalletPrimaryColor = require('./helpers/getWalletPrimaryColor.cjs');
|
|
9
|
+
var findWalletBookWallet = require('./helpers/findWalletBookWallet.cjs');
|
|
9
10
|
require('./helpers/logger.cjs');
|
|
10
11
|
var getWalletGroup = require('./helpers/getWalletGroup.cjs');
|
|
12
|
+
var findWalletGroup = require('./helpers/findWalletGroup.cjs');
|
|
11
13
|
var getWalletBookCdnUrl = require('./helpers/getWalletBookCdnUrl.cjs');
|
|
12
14
|
var useWalletBook = require('./hooks/useWalletBook.cjs');
|
|
13
15
|
require('react');
|
|
@@ -19,7 +21,9 @@ exports.getWalletIconUrl = getIconUrl.getWalletIconUrl;
|
|
|
19
21
|
exports.getWalletBookWallet = getWalletBookWallet.getWalletBookWallet;
|
|
20
22
|
exports.getWalletLinks = getWalletLinks.getWalletLinks;
|
|
21
23
|
exports.getWalletPrimaryColor = getWalletPrimaryColor.getWalletPrimaryColor;
|
|
24
|
+
exports.findWalletBookWallet = findWalletBookWallet.findWalletBookWallet;
|
|
22
25
|
exports.getWalletGroup = getWalletGroup.getWalletGroup;
|
|
26
|
+
exports.findWalletGroup = findWalletGroup.findWalletGroup;
|
|
23
27
|
exports.getWalletBookCdnUrl = getWalletBookCdnUrl.getWalletBookCdnUrl;
|
|
24
28
|
exports.useWalletBook = useWalletBook.useWalletBook;
|
|
25
29
|
exports.WalletIcon = WalletIcon.WalletIcon;
|
package/src/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export type { WalletLinks } from './helpers';
|
|
|
7
7
|
/**
|
|
8
8
|
* HELPERS
|
|
9
9
|
*/
|
|
10
|
-
export { getWalletBookWallet, getWalletIconUrl, getWalletLinks, getWalletPrimaryColor, getWalletGroup, getWalletBookCdnUrl, } from './helpers';
|
|
10
|
+
export { getWalletBookWallet, getWalletIconUrl, getWalletLinks, getWalletPrimaryColor, getWalletGroup, getWalletBookCdnUrl, findWalletBookWallet, findWalletGroup, } from './helpers';
|
|
11
11
|
/**
|
|
12
12
|
* HOOKS
|
|
13
13
|
*/
|
package/src/index.js
CHANGED
|
@@ -2,8 +2,10 @@ export { getWalletIconUrl } from './helpers/getIconUrl.js';
|
|
|
2
2
|
export { getWalletBookWallet } from './helpers/getWalletBookWallet.js';
|
|
3
3
|
export { getWalletLinks } from './helpers/getWalletLinks.js';
|
|
4
4
|
export { getWalletPrimaryColor } from './helpers/getWalletPrimaryColor.js';
|
|
5
|
+
export { findWalletBookWallet } from './helpers/findWalletBookWallet.js';
|
|
5
6
|
import './helpers/logger.js';
|
|
6
7
|
export { getWalletGroup } from './helpers/getWalletGroup.js';
|
|
8
|
+
export { findWalletGroup } from './helpers/findWalletGroup.js';
|
|
7
9
|
export { getWalletBookCdnUrl } from './helpers/getWalletBookCdnUrl.js';
|
|
8
10
|
export { useWalletBook } from './hooks/useWalletBook.js';
|
|
9
11
|
import 'react';
|