@dynamic-labs/client 4.0.0-alpha.1 → 4.0.0-alpha.2

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,13 @@
1
1
 
2
+ ## [4.0.0-alpha.2](https://github.com/dynamic-labs/DynamicAuth/compare/v4.0.0-alpha.1...v4.0.0-alpha.2) (2024-09-18)
3
+
4
+
5
+ ### Features
6
+
7
+ * add iconVariant prop to DynamicBridgeWidget ([#6915](https://github.com/dynamic-labs/DynamicAuth/issues/6915)) ([8aa0f3d](https://github.com/dynamic-labs/DynamicAuth/commit/8aa0f3d8d8c41c7b5c4796106f611f208010cb6d))
8
+ * allow to create extra embedded wallets in react-native ([#6923](https://github.com/dynamic-labs/DynamicAuth/issues/6923)) ([ba22f7b](https://github.com/dynamic-labs/DynamicAuth/commit/ba22f7bcf41a444a4df0aff9b6aec257457e9402))
9
+ * **client:** add hide method for auth and userProfile ui modules ([#6928](https://github.com/dynamic-labs/DynamicAuth/issues/6928)) ([a11a4a5](https://github.com/dynamic-labs/DynamicAuth/commit/a11a4a5d6e25ce2a916ebd52f0b341020dc1a7e5))
10
+
2
11
  ## [4.0.0-alpha.1](https://github.com/dynamic-labs/DynamicAuth/compare/v4.0.0-alpha.0...v4.0.0-alpha.1) (2024-09-17)
3
12
 
4
13
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.0.0-alpha.1";
6
+ var version = "4.0.0-alpha.2";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.0.0-alpha.1";
2
+ var version = "4.0.0-alpha.2";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/client",
3
- "version": "4.0.0-alpha.1",
3
+ "version": "4.0.0-alpha.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -27,9 +27,9 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@vue/reactivity": "3.4.21",
30
- "@dynamic-labs/logger": "4.0.0-alpha.1",
31
- "@dynamic-labs/message-transport": "4.0.0-alpha.1",
32
- "@dynamic-labs/types": "4.0.0-alpha.1",
30
+ "@dynamic-labs/logger": "4.0.0-alpha.2",
31
+ "@dynamic-labs/message-transport": "4.0.0-alpha.2",
32
+ "@dynamic-labs/types": "4.0.0-alpha.2",
33
33
  "eventemitter3": "5.0.1"
34
34
  },
35
35
  "peerDependencies": {}
@@ -9,9 +9,11 @@ const createUserInterfaceModule = (core) => {
9
9
  const userInterfaceRequestChannel = messageTransport.createRequestChannel(core.messageTransport);
10
10
  return {
11
11
  auth: {
12
+ hide: () => userInterfaceRequestChannel.emit('hideAuthFlow'),
12
13
  show: () => userInterfaceRequestChannel.emit('openAuthFlow'),
13
14
  },
14
15
  userProfile: {
16
+ hide: () => userInterfaceRequestChannel.emit('hideUserProfile'),
15
17
  show: () => userInterfaceRequestChannel.emit('openUserProfile'),
16
18
  },
17
19
  wallets: {
@@ -9,6 +9,13 @@ export type UserInterfaceModule = {
9
9
  * Rejects if the request is not received.
10
10
  */
11
11
  show: () => Promise<void>;
12
+ /**
13
+ * Closes the auth flow UI.
14
+ *
15
+ * Resolves when our SDK receives the request.
16
+ * Rejects if the request is not received.
17
+ */
18
+ hide: () => Promise<void>;
12
19
  };
13
20
  userProfile: {
14
21
  /**
@@ -18,6 +25,13 @@ export type UserInterfaceModule = {
18
25
  * Rejects if the request is not received.
19
26
  */
20
27
  show: () => Promise<void>;
28
+ /**
29
+ * Closes the user profile UI.
30
+ *
31
+ * Resolves when our SDK receives the request.
32
+ * Rejects if the request is not received.
33
+ */
34
+ hide: () => Promise<void>;
21
35
  };
22
36
  wallets: {
23
37
  revealEmbeddedWalletKey: UserInterfaceModuleMessages['revealEmbeddedWalletKey'];
@@ -5,9 +5,11 @@ const createUserInterfaceModule = (core) => {
5
5
  const userInterfaceRequestChannel = createRequestChannel(core.messageTransport);
6
6
  return {
7
7
  auth: {
8
+ hide: () => userInterfaceRequestChannel.emit('hideAuthFlow'),
8
9
  show: () => userInterfaceRequestChannel.emit('openAuthFlow'),
9
10
  },
10
11
  userProfile: {
12
+ hide: () => userInterfaceRequestChannel.emit('hideUserProfile'),
11
13
  show: () => userInterfaceRequestChannel.emit('openUserProfile'),
12
14
  },
13
15
  wallets: {
@@ -21,7 +21,7 @@ const createEmbeddedWalletsModule = (core) => {
21
21
  });
22
22
  const requestChannel = messageTransport.createRequestChannel(core.messageTransport);
23
23
  return Object.assign(store.getters, pickListenerActions.pickListenerActions(messageEvents), {
24
- createWallet: () => requestChannel.request('createWallet'),
24
+ createWallet: (args) => requestChannel.request('createWallet', args),
25
25
  getWallet: () => requestChannel.request('getWallet'),
26
26
  });
27
27
  };
@@ -17,7 +17,7 @@ const createEmbeddedWalletsModule = (core) => {
17
17
  });
18
18
  const requestChannel = createRequestChannel(core.messageTransport);
19
19
  return Object.assign(store.getters, pickListenerActions(messageEvents), {
20
- createWallet: () => requestChannel.request('createWallet'),
20
+ createWallet: (args) => requestChannel.request('createWallet', args),
21
21
  getWallet: () => requestChannel.request('getWallet'),
22
22
  });
23
23
  };