@dynamic-labs/message-transport 3.0.0-alpha.30 → 3.0.0-alpha.32

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,14 @@
1
1
 
2
+ ## [3.0.0-alpha.32](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.31...v3.0.0-alpha.32) (2024-07-30)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * react native flicker when redirecting back from farcaster ([#6338](https://github.com/dynamic-labs/DynamicAuth/issues/6338)) ([6ab8464](https://github.com/dynamic-labs/DynamicAuth/commit/6ab846476f7961564445223dd12a552ed4c0f0c8))
8
+ * stop unnecessary phantom btc popup when disconnecting - Revert ([#6439](https://github.com/dynamic-labs/DynamicAuth/issues/6439)) ([79ba97d](https://github.com/dynamic-labs/DynamicAuth/commit/79ba97d82c4eb89f0118a925e4dc899853e04550)), closes [#6188](https://github.com/dynamic-labs/DynamicAuth/issues/6188)
9
+
10
+ ## [3.0.0-alpha.31](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.30...v3.0.0-alpha.31) (2024-07-27)
11
+
2
12
  ## [3.0.0-alpha.30](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.29...v3.0.0-alpha.30) (2024-07-27)
3
13
 
4
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/message-transport",
3
- "version": "3.0.0-alpha.30",
3
+ "version": "3.0.0-alpha.32",
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.30",
30
+ "@dynamic-labs/types": "3.0.0-alpha.32",
31
31
  "eventemitter3": "5.0.1"
32
32
  }
33
33
  }
package/src/index.d.ts CHANGED
@@ -3,6 +3,6 @@ export { createRequestChannel, type RequestChannel } from './requestChannel';
3
3
  export { parseErrorFromTransport } from './utils/parseErrorFromTransport';
4
4
  export { parseMessageTransportData } from './utils/parseMessageTransportData';
5
5
  export { serializeErrorForTransport } from './utils/serializeErrorForTransport';
6
- export { createEventEmitterForMessages, createStore, createStoreSetter, type MessagesForEventEmitter, } from './store';
7
- export type { Store, StoreEventListeners, StoreKeys, StoreSetter, StoreStateEvents, StoreStateGetters, } from './store/types';
6
+ export { createEventEmitterForMessages, createStore, createStoreSetter, type CreateStoreProps, type MessagesForEventEmitter, } from './store';
7
+ export type { Store, StoreEventListeners, StoreKeys, StoreSetter, StoreStateChangeEvent, StoreStateEvents, StoreStateGetters, } from './store/types';
8
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';
@@ -14,11 +14,4 @@ export type PlatformServiceMessages = {
14
14
  url: string;
15
15
  redirectUrl?: string;
16
16
  }) => Promise<string>;
17
- /**
18
- * Requests the URL to use to deeplink back to the app.
19
- *
20
- * This won't be safe for use with oauth2, so we need to replace this by asking the app URL
21
- * in the dashboard before social connections are allowed.
22
- */
23
- getRedirectUrl: () => Promise<string>;
24
17
  };
@@ -10,7 +10,8 @@ export type ClientManifest = {
10
10
  clientVersion: string;
11
11
  cssOverrides?: string;
12
12
  environmentId: string;
13
- platform: 'browser' | 'react-native';
13
+ platform: 'browser' | 'react-native' | 'flutter';
14
+ redirectUrl: string;
14
15
  };
15
16
  export type SdkModuleState = {
16
17
  /** Indicates the SDK is set up and ready for requests */
@@ -1,6 +1,17 @@
1
1
  export type SocialProvider = 'apple' | 'coinbaseSocial' | 'discord' | 'facebook' | 'farcaster' | 'github' | 'google' | 'telegram' | 'twitch' | 'twitter';
2
2
  export type SocialAuthModuleMessages = {
3
3
  connectWithSocial: (args: {
4
+ /**
5
+ * Provider with which to connect
6
+ */
4
7
  provider: SocialProvider;
8
+ /**
9
+ * When using expo-router, which pathname to redirect back to after social connection.
10
+ *
11
+ * The router will create another stack when redirecting back to a different pathname than your
12
+ * app was at originally, which in iOS devices will cause visual flickering. To avoid this, pass
13
+ * `usePathname()` to this property.
14
+ */
15
+ redirectPathname?: string;
5
16
  }) => Promise<void>;
6
17
  };
@@ -1,9 +1,8 @@
1
1
  import { MessageTransportWithDefaultOrigin } from '../messageTransport';
2
2
  import { Store } from './types';
3
- type CreateStoreProps<T extends Record<string, unknown>, U extends string> = {
3
+ export type CreateStoreProps<T extends Record<string, unknown>, U extends string> = {
4
4
  messageTransport: MessageTransportWithDefaultOrigin;
5
5
  key: U;
6
6
  initialState: T;
7
7
  };
8
8
  export declare const createStore: <T extends Record<string, unknown> = never, U extends string = never>({ initialState, key, messageTransport, }: CreateStoreProps<T, U>) => Store<T>;
9
- export {};
@@ -1,5 +1,5 @@
1
1
  import EventEmitter from 'eventemitter3';
2
- export type StoreKeys = 'auth' | 'sdk' | 'wallets' | 'embeddedWallets' | 'networks';
2
+ export type StoreKeys = 'auth' | 'sdk' | 'wallets' | 'embeddedWallets' | 'platform' | 'networks';
3
3
  /**
4
4
  * Readonly getters for the store values
5
5
  */