@dynamic-labs/global-wallet-client 4.9.3 → 4.9.5
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 +21 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +6 -6
- package/src/index.d.ts +1 -0
- package/src/lib/ethereum/functions/announceEIP6963Provider/announceEIP6963Provider.cjs +1 -2
- package/src/lib/ethereum/functions/announceEIP6963Provider/announceEIP6963Provider.d.ts +32 -3
- package/src/lib/ethereum/functions/announceEIP6963Provider/announceEIP6963Provider.js +1 -2
- package/src/lib/types.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.9.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.4...v4.9.5) (2025-03-19)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add support for AA to Global Wallet ([#8294](https://github.com/dynamic-labs/dynamic-auth/issues/8294)) ([173dfb9](https://github.com/dynamic-labs/dynamic-auth/commit/173dfb9c00e4307feec6ab11913f1a80310885eb))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* Remove the usage of random uuid in Global Wallet ([#8314](https://github.com/dynamic-labs/dynamic-auth/issues/8314)) ([79a7a64](https://github.com/dynamic-labs/dynamic-auth/commit/79a7a640b9ce470051a3c877ea46e8d4c94ea542))
|
|
13
|
+
* Fix UI when token balance is 0 ([#8299](https://github.com/dynamic-labs/dynamic-auth/issues/8299)) ([e8a2eca](https://github.com/dynamic-labs/dynamic-auth/commit/e8a2eca9876d914db738557a74751537eee2e129))
|
|
14
|
+
|
|
15
|
+
### [4.9.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.3...v4.9.4) (2025-03-17)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **logger:** don't try to store data if localStorage is not available ([#8309](https://github.com/dynamic-labs/dynamic-auth/issues/8309)) ([30164c7](https://github.com/dynamic-labs/dynamic-auth/commit/30164c7de7bbf1463c6f6a7c12c4b60b5cfb6e78))
|
|
21
|
+
* modal corners ([#8308](https://github.com/dynamic-labs/dynamic-auth/issues/8308)) ([2d21d87](https://github.com/dynamic-labs/dynamic-auth/commit/2d21d87466cee4ab3b981b24fa15f5c321b163f5))
|
|
22
|
+
|
|
2
23
|
### [4.9.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.2...v4.9.3) (2025-03-14)
|
|
3
24
|
|
|
4
25
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/global-wallet-client",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.5",
|
|
4
4
|
"description": "Core package for building Dynamic's Global Wallet",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
},
|
|
40
40
|
"homepage": "https://www.dynamic.xyz/",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@dynamic-labs/assert-package-version": "4.9.
|
|
43
|
-
"@dynamic-labs/logger": "4.9.
|
|
44
|
-
"@dynamic-labs/store": "4.9.
|
|
45
|
-
"@dynamic-labs/types": "4.9.
|
|
46
|
-
"@dynamic-labs/utils": "4.9.
|
|
42
|
+
"@dynamic-labs/assert-package-version": "4.9.5",
|
|
43
|
+
"@dynamic-labs/logger": "4.9.5",
|
|
44
|
+
"@dynamic-labs/store": "4.9.5",
|
|
45
|
+
"@dynamic-labs/types": "4.9.5",
|
|
46
|
+
"@dynamic-labs/utils": "4.9.5",
|
|
47
47
|
"eventemitter3": "5.0.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
package/src/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ var isSSR = require('../../../functions/isSSR/isSSR.cjs');
|
|
|
7
7
|
|
|
8
8
|
let lastEventHandler;
|
|
9
9
|
const announceEip6963Provider = ({ info, provider, }) => {
|
|
10
|
-
var _a;
|
|
11
10
|
if (isSSR.isSSR()) {
|
|
12
11
|
return;
|
|
13
12
|
}
|
|
@@ -19,7 +18,7 @@ const announceEip6963Provider = ({ info, provider, }) => {
|
|
|
19
18
|
icon: info.icon,
|
|
20
19
|
name: info.name,
|
|
21
20
|
rdns: info.rdns,
|
|
22
|
-
uuid:
|
|
21
|
+
uuid: info.uuid,
|
|
23
22
|
},
|
|
24
23
|
provider,
|
|
25
24
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EIP1193Provider } from 'viem';
|
|
2
|
-
|
|
2
|
+
import { DataURIImage } from '../../../types';
|
|
3
3
|
type AnnounceEip6963ProviderProps = {
|
|
4
4
|
info: {
|
|
5
5
|
/**
|
|
6
|
-
* Base64
|
|
6
|
+
* A Base64-encoded image data URI representing the provider's icon.
|
|
7
7
|
*
|
|
8
8
|
* Supported formats: PNG, WebP, or SVG.
|
|
9
9
|
*
|
|
@@ -11,9 +11,38 @@ type AnnounceEip6963ProviderProps = {
|
|
|
11
11
|
* "data:image/png;base64,PHN...Pg=="
|
|
12
12
|
*/
|
|
13
13
|
icon: DataURIImage;
|
|
14
|
+
/**
|
|
15
|
+
* A human-readable name for the provider.
|
|
16
|
+
*
|
|
17
|
+
* This should be the user-friendly display name of the wallet provider.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* "My Wallet"
|
|
21
|
+
*/
|
|
14
22
|
name: string;
|
|
23
|
+
/**
|
|
24
|
+
* A Reverse Domain Name System (RDNS) identifier for the provider.
|
|
25
|
+
*
|
|
26
|
+
* This should be a unique string based on the organization's domain name.
|
|
27
|
+
*
|
|
28
|
+
* Format: Reverse-DNS notation (e.g., `com.my-wallet`)
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* "com.my-wallet"
|
|
32
|
+
*/
|
|
15
33
|
rdns: string;
|
|
16
|
-
|
|
34
|
+
/**
|
|
35
|
+
* A **UUID (Universally Unique Identifier)** for the provider.
|
|
36
|
+
*
|
|
37
|
+
* This ensures that the provider can be uniquely identified, even if
|
|
38
|
+
* multiple providers exist from the same vendor.
|
|
39
|
+
*
|
|
40
|
+
* This UUID can also be the **Dynamic Environment ID**
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* "123e4567-e89b-12d3-a456-426614174000"
|
|
44
|
+
*/
|
|
45
|
+
uuid: string;
|
|
17
46
|
};
|
|
18
47
|
provider: EIP1193Provider;
|
|
19
48
|
};
|
|
@@ -3,7 +3,6 @@ import { isSSR } from '../../../functions/isSSR/isSSR.js';
|
|
|
3
3
|
|
|
4
4
|
let lastEventHandler;
|
|
5
5
|
const announceEip6963Provider = ({ info, provider, }) => {
|
|
6
|
-
var _a;
|
|
7
6
|
if (isSSR()) {
|
|
8
7
|
return;
|
|
9
8
|
}
|
|
@@ -15,7 +14,7 @@ const announceEip6963Provider = ({ info, provider, }) => {
|
|
|
15
14
|
icon: info.icon,
|
|
16
15
|
name: info.name,
|
|
17
16
|
rdns: info.rdns,
|
|
18
|
-
uuid:
|
|
17
|
+
uuid: info.uuid,
|
|
19
18
|
},
|
|
20
19
|
provider,
|
|
21
20
|
};
|
package/src/lib/types.d.ts
CHANGED