@dynamic-labs/global-wallet-client 4.9.4 → 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 CHANGED
@@ -1,4 +1,17 @@
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
+
2
15
  ### [4.9.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.3...v4.9.4) (2025-03-17)
3
16
 
4
17
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.9.4";
6
+ var version = "4.9.5";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.9.4";
2
+ var version = "4.9.5";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/global-wallet-client",
3
- "version": "4.9.4",
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.4",
43
- "@dynamic-labs/logger": "4.9.4",
44
- "@dynamic-labs/store": "4.9.4",
45
- "@dynamic-labs/types": "4.9.4",
46
- "@dynamic-labs/utils": "4.9.4",
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
@@ -1 +1,2 @@
1
1
  export { createGlobalWalletClient, type GlobalWalletClient, } from './lib/createGlobalWalletClient';
2
+ export type { DataURIImage } from './lib/types';
@@ -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: (_a = info.uuid) !== null && _a !== void 0 ? _a : crypto.randomUUID(),
21
+ uuid: info.uuid,
23
22
  },
24
23
  provider,
25
24
  };
@@ -1,9 +1,9 @@
1
1
  import { EIP1193Provider } from 'viem';
2
- type DataURIImage = `data:image/png;base64,${string}` | `data:image/webp;base64,${string}` | `data:image/svg+xml;base64,${string}` | `data:image/svg+xml,${string}`;
2
+ import { DataURIImage } from '../../../types';
3
3
  type AnnounceEip6963ProviderProps = {
4
4
  info: {
5
5
  /**
6
- * Base64 encoded image data URI representing the provider's icon.
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
- uuid?: string;
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: (_a = info.uuid) !== null && _a !== void 0 ? _a : crypto.randomUUID(),
17
+ uuid: info.uuid,
19
18
  },
20
19
  provider,
21
20
  };
@@ -14,3 +14,4 @@ export type DevelopmentOptions = {
14
14
  */
15
15
  postfixPopupUrlWithVersion?: boolean;
16
16
  };
17
+ export type DataURIImage = `data:image/png;base64,${string}` | `data:image/webp;base64,${string}` | `data:image/svg+xml;base64,${string}` | `data:image/svg+xml,${string}`;