@dynamic-labs/message-transport 3.0.0-alpha.36 → 3.0.0-alpha.38

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,23 @@
1
1
 
2
+ ## [3.0.0-alpha.38](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.37...v3.0.0-alpha.38) (2024-08-09)
3
+
4
+
5
+ ### Features
6
+
7
+ * add dynamic footer options switcher ([#6528](https://github.com/dynamic-labs/DynamicAuth/issues/6528)) ([7d8a7ff](https://github.com/dynamic-labs/DynamicAuth/commit/7d8a7ff5c7d07e3ac2a916bd8b37e87e7cbfdaa2))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * hcaptcha for mobile login ([#6525](https://github.com/dynamic-labs/DynamicAuth/issues/6525)) ([146888e](https://github.com/dynamic-labs/DynamicAuth/commit/146888e91add7f3be3ed4defafc038107648c20a))
13
+
14
+ ## [3.0.0-alpha.37](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.36...v3.0.0-alpha.37) (2024-08-08)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * normalize wallet address before comparing on wallet sync ([#6514](https://github.com/dynamic-labs/DynamicAuth/issues/6514)) ([49d9dcf](https://github.com/dynamic-labs/DynamicAuth/commit/49d9dcf300b360f46ac6618756f6741fffce47a7))
20
+
2
21
  ## [3.0.0-alpha.36](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.35...v3.0.0-alpha.36) (2024-08-06)
3
22
 
4
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/message-transport",
3
- "version": "3.0.0-alpha.36",
3
+ "version": "3.0.0-alpha.38",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@vue/reactivity": "3.4.21",
30
- "@dynamic-labs/types": "3.0.0-alpha.36",
30
+ "@dynamic-labs/types": "3.0.0-alpha.38",
31
31
  "eventemitter3": "5.0.1"
32
32
  }
33
33
  }
package/src/index.d.ts CHANGED
@@ -5,4 +5,4 @@ export { parseMessageTransportData } from './utils/parseMessageTransportData';
5
5
  export { serializeErrorForTransport } from './utils/serializeErrorForTransport';
6
6
  export { createEventEmitterForMessages, createStore, createStoreSetter, type CreateStoreProps, type MessagesForEventEmitter, } from './store';
7
7
  export type { Store, StoreEventListeners, StoreKeys, StoreSetter, StoreStateChangeEvent, StoreStateEvents, StoreStateGetters, } from './store/types';
8
- export { sdkHasLoadedEventName, type AuthModuleMessages, type AuthModuleState, type ClientManifest, type ConsoleMessages, type EmbeddedWalletsModuleMessages, type EmbeddedWalletsModuleState, type EthMessages, type ExternalAuthMessages, type FetchMessages, type NetworksModuleState, type OtpMessages, type PasskeyMessages, type PlatformServiceMessages, type SdkModuleMessages, type SdkModuleState, type SocialAuthModuleMessages, type SocialProvider, type SolanaMessages, type UserInterfaceModuleMessages, type WalletsModuleMessages, type WalletsModuleState, type WebViewVisibilityMessages, } from './messageTypes';
8
+ export { sdkHasLoadedEventName, type AuthModuleMessages, type AuthModuleState, type ClientManifest, type ConsoleMessages, type EmailOtpParams, type EmbeddedWalletsModuleMessages, type EmbeddedWalletsModuleState, type EthMessages, type EthRequestWithAddressParams, type EthRequestWithChainIdParams, type ExternalAuthMessages, type FetchMessages, type NetworksModuleState, type OtpMessages, type PasskeyMessages, type PlatformServiceMessages, type SdkModuleMessages, type SdkModuleState, type SignInWithExternalJwtParams, type SmsOtpParams, type SocialAuthModuleMessages, type SocialProvider, type SolanaMessages, type UserInterfaceModuleMessages, type VerifyWithExternalJwtParams, type WalletsModuleMessages, type WalletsModuleState, type WebViewVisibilityMessages, } from './messageTypes';
@@ -1,13 +1,17 @@
1
+ export type EthRequestWithAddressParams = {
2
+ method: string;
3
+ params: readonly unknown[];
4
+ address: string;
5
+ };
6
+ export type EthRequestWithChainIdParams = {
7
+ method: string;
8
+ params: readonly unknown[];
9
+ chainId: number;
10
+ };
11
+ export type EthRequestParams = EthRequestWithAddressParams | EthRequestWithChainIdParams;
1
12
  /**
2
13
  * Messages exchanged for evm requests.
3
14
  */
4
15
  export type EthMessages = {
5
- ethRequest(props: {
6
- method: string;
7
- params: readonly unknown[];
8
- } & ({
9
- address: string;
10
- } | {
11
- chainId: number;
12
- })): Promise<string>;
16
+ ethRequest(props: EthRequestParams): Promise<string>;
13
17
  };
@@ -1,16 +1,18 @@
1
+ export type SignInWithExternalJwtParams = {
2
+ externalUserId: string;
3
+ externalJwt: string;
4
+ };
5
+ export type VerifyWithExternalJwtParams = {
6
+ externalUserId: string;
7
+ externalJwt: string;
8
+ };
1
9
  export type ExternalAuthMessages = {
2
10
  /**
3
11
  * Initiates sign in with an externally provided JWT
4
12
  */
5
- signInWithExternalJwt: (props: {
6
- externalUserId: string;
7
- externalJwt: string;
8
- }) => Promise<void>;
13
+ signInWithExternalJwt: (props: SignInWithExternalJwtParams) => Promise<void>;
9
14
  /**
10
15
  * Initiates verification with an externally provided JWT
11
16
  */
12
- verifyWithExternalJwt: (props: {
13
- externalUserId: string;
14
- externalJwt: string;
15
- }) => Promise<void>;
17
+ verifyWithExternalJwt: (props: VerifyWithExternalJwtParams) => Promise<void>;
16
18
  };
@@ -1,11 +1,13 @@
1
1
  import { OtpDestination, PhoneData } from '@dynamic-labs/types';
2
- type OtpData = {
2
+ export type EmailOtpParams = {
3
3
  destination: Extract<OtpDestination, 'email'>;
4
4
  target: string;
5
- } | {
5
+ };
6
+ export type SmsOtpParams = {
6
7
  destination: Extract<OtpDestination, 'sms'>;
7
8
  target: PhoneData;
8
9
  };
10
+ export type OtpData = EmailOtpParams | SmsOtpParams;
9
11
  export type OtpMessages = {
10
12
  /** Request to send an OTP to a destination for verification */
11
13
  sendOTP: (data: OtpData) => Promise<void>;
@@ -14,4 +16,3 @@ export type OtpMessages = {
14
16
  /** Re-sends the OTP for verification */
15
17
  resendOTP: () => Promise<void>;
16
18
  };
17
- export {};