@dynamic-labs/global-wallet-client 4.9.13-preview.0 → 4.9.13-preview.1
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 +15 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +7 -7
- package/src/lib/createGlobalWalletClient.cjs +1 -0
- package/src/lib/createGlobalWalletClient.js +1 -0
- package/src/lib/store/createClientStore.cjs +2 -2
- package/src/lib/store/createClientStore.d.ts +2 -1
- package/src/lib/store/createClientStore.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.9.13-preview.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.12...v4.9.13-preview.1) (2025-03-29)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add zk sync aa connector ([7ef9031](https://github.com/dynamic-labs/dynamic-auth/commit/7ef9031ce709b1ebc2d908da7d120e83733be7cf))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* Adjust parallel tasks to default 16 ([#8413](https://github.com/dynamic-labs/dynamic-auth/issues/8413)) ([b62d34c](https://github.com/dynamic-labs/dynamic-auth/commit/b62d34cb780859d3d8414421539116520d0ebcbd))
|
|
13
|
+
* do not prompt passkey with 7702 on v2 wallets ([#8391](https://github.com/dynamic-labs/dynamic-auth/issues/8391)) ([bb91396](https://github.com/dynamic-labs/dynamic-auth/commit/bb913965121e97801922f5ca828d11e4a551a3b6))
|
|
14
|
+
* ensure the global wallet app url is used ([#8404](https://github.com/dynamic-labs/dynamic-auth/issues/8404)) ([23a7d91](https://github.com/dynamic-labs/dynamic-auth/commit/23a7d91b50cc85e67de52306f91163c675e0f007))
|
|
15
|
+
* **global-wallet-client:** use global wallet env id when storing data to ls ([#8405](https://github.com/dynamic-labs/dynamic-auth/issues/8405)) ([2b3d9ce](https://github.com/dynamic-labs/dynamic-auth/commit/2b3d9ce8dd82dda487759e0621c73bfad2842aef))
|
|
16
|
+
|
|
2
17
|
### [4.9.13-preview.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.12...v4.9.13-preview.0) (2025-03-28)
|
|
3
18
|
|
|
4
19
|
|
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.13-preview.
|
|
3
|
+
"version": "4.9.13-preview.1",
|
|
4
4
|
"description": "Core package for building Dynamic's Global Wallet",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
},
|
|
40
40
|
"homepage": "https://www.dynamic.xyz/",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@dynamic-labs/assert-package-version": "4.9.13-preview.
|
|
43
|
-
"@dynamic-labs/logger": "4.9.13-preview.
|
|
44
|
-
"@dynamic-labs/message-transport": "4.9.13-preview.
|
|
45
|
-
"@dynamic-labs/store": "4.9.13-preview.
|
|
46
|
-
"@dynamic-labs/types": "4.9.13-preview.
|
|
47
|
-
"@dynamic-labs/utils": "4.9.13-preview.
|
|
42
|
+
"@dynamic-labs/assert-package-version": "4.9.13-preview.1",
|
|
43
|
+
"@dynamic-labs/logger": "4.9.13-preview.1",
|
|
44
|
+
"@dynamic-labs/message-transport": "4.9.13-preview.1",
|
|
45
|
+
"@dynamic-labs/store": "4.9.13-preview.1",
|
|
46
|
+
"@dynamic-labs/types": "4.9.13-preview.1",
|
|
47
|
+
"@dynamic-labs/utils": "4.9.13-preview.1",
|
|
48
48
|
"eventemitter3": "5.0.1"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
@@ -19,6 +19,7 @@ var DisconnectError = require('./errors/DisconnectError.cjs');
|
|
|
19
19
|
const createGlobalWalletClient = ({ environmentId, popup: popupInfo, developmentOptions: { postfixPopupUrlWithVersion = true } = {}, }) => {
|
|
20
20
|
const eventEmitter = createClientEventEmitter.createClientEventEmitter();
|
|
21
21
|
const store = createClientStore.createClientStore({
|
|
22
|
+
environmentId,
|
|
22
23
|
storage: isSSR.isSSR() ? fakeStorage.fakeStorage : localStorage,
|
|
23
24
|
});
|
|
24
25
|
const popupUrl = postfixPopupUrlWithVersion
|
|
@@ -15,6 +15,7 @@ import { DisconnectError } from './errors/DisconnectError.js';
|
|
|
15
15
|
const createGlobalWalletClient = ({ environmentId, popup: popupInfo, developmentOptions: { postfixPopupUrlWithVersion = true } = {}, }) => {
|
|
16
16
|
const eventEmitter = createClientEventEmitter();
|
|
17
17
|
const store = createClientStore({
|
|
18
|
+
environmentId,
|
|
18
19
|
storage: isSSR() ? fakeStorage : localStorage,
|
|
19
20
|
});
|
|
20
21
|
const popupUrl = postfixPopupUrlWithVersion
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
var store = require('@dynamic-labs/store');
|
|
7
7
|
|
|
8
|
-
const createClientStore = ({ storage = localStorage, }
|
|
8
|
+
const createClientStore = ({ environmentId, storage = localStorage, }) => {
|
|
9
9
|
const store$1 = store.persist({
|
|
10
|
-
name:
|
|
10
|
+
name: `global-wallet-client-${environmentId}`,
|
|
11
11
|
partialize: (state) => state,
|
|
12
12
|
storage,
|
|
13
13
|
store: store.createStore(() => ({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseWallet, GlobalWalletConnection } from '@dynamic-labs/types';
|
|
2
2
|
type CreateClientStoreProps = {
|
|
3
3
|
storage?: Storage;
|
|
4
|
+
environmentId: string;
|
|
4
5
|
};
|
|
5
6
|
type ClientStoreState = {
|
|
6
7
|
/**
|
|
@@ -27,7 +28,7 @@ type ClientStoreState = {
|
|
|
27
28
|
currentNetwork: string;
|
|
28
29
|
} | null;
|
|
29
30
|
};
|
|
30
|
-
export declare const createClientStore: ({ storage, }
|
|
31
|
+
export declare const createClientStore: ({ environmentId, storage, }: CreateClientStoreProps) => {
|
|
31
32
|
/**
|
|
32
33
|
* Resets the store to its initial state
|
|
33
34
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { persist, createStore } from '@dynamic-labs/store';
|
|
3
3
|
|
|
4
|
-
const createClientStore = ({ storage = localStorage, }
|
|
4
|
+
const createClientStore = ({ environmentId, storage = localStorage, }) => {
|
|
5
5
|
const store = persist({
|
|
6
|
-
name:
|
|
6
|
+
name: `global-wallet-client-${environmentId}`,
|
|
7
7
|
partialize: (state) => state,
|
|
8
8
|
storage,
|
|
9
9
|
store: createStore(() => ({
|