@forge-connect/react 1.0.13 → 1.0.16

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/dist/index.d.cts CHANGED
@@ -2,6 +2,20 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
3
  import { ReactNode } from 'react';
4
4
 
5
+ interface MwaOptions {
6
+ /** Set to false to disable MWA registration entirely. Default: true when `wallet` is in loginMethods. */
7
+ enabled?: boolean;
8
+ /** App identity advertised to the mobile wallet (Seeker, etc.). */
9
+ appIdentity?: {
10
+ name?: string;
11
+ uri?: string;
12
+ icon?: string;
13
+ };
14
+ /** Solana chains to request. Default: ['solana:mainnet']. */
15
+ chains?: string[];
16
+ }
17
+ declare function registerMwaIfAvailable(config: ForgeConnectConfig, opts: MwaOptions | undefined): Promise<void>;
18
+
5
19
  type OAuthProvider = 'google' | 'discord' | 'twitter' | 'apple' | 'telegram' | 'matrica';
6
20
  type Chain = 'solana' | 'ethereum';
7
21
  /** A login method entry for the method selector. OAuth providers are individual entries. */
@@ -62,6 +76,15 @@ interface ForgeConnectConfig {
62
76
  passwordlessLogin?: boolean;
63
77
  /** Appearance customization */
64
78
  appearance?: AppearanceConfig;
79
+ /**
80
+ * Mobile Wallet Adapter (MWA) registration for Solana Mobile / Seeker compatibility.
81
+ * When `wallet` is in loginMethods, MWA is auto-registered on Android browsers so it
82
+ * appears as a wallet option. Requires `@solana-mobile/wallet-standard-mobile` to be
83
+ * installed in the consumer app (peer-style optional dependency).
84
+ *
85
+ * Pass `{ enabled: false }` to opt out.
86
+ */
87
+ mwa?: MwaOptions;
65
88
  }
66
89
  interface AppearanceConfig {
67
90
  theme?: 'light' | 'dark' | 'glass';
@@ -792,4 +815,4 @@ declare function isOAuthMethod(method: LoginMethod): method is OAuthProvider;
792
815
  */
793
816
  declare function resolveLoginMethods(config: ForgeConnectConfig): LoginMethod[];
794
817
 
795
- export { AccountButton, AccountModal, type AccountModalState, type AccountModalTab, type AdminUser, type ApiClient, type AppearanceConfig, type AuthMethod, type AuthProvider, type AuthState, type AuthStatus, type Chain, DeleteAccountModal, ErrorView, type ErrorViewProps, ForgeConnectApiError, type ForgeConnectConfig, ForgeConnectContext, type ForgeConnectContextValue, ForgeConnectProvider, LinkAuthModal, type LinkModalState, LoginButton, type LoginMethod, LoginModal, type LoginResponse, ModalOverlay, type ModalState, type ModalStep, type OAuthProvider, type PaginatedResponse, type Passkey, PasskeysModal, type PermissionDomains, type Role, type RoleUser, type Session, type TokenVerificationResult, type TotpSetup, TwoFactorModal, type TwoFactorStatus, type User, type UserRoleAssignment, type UserStatus, type Wallet, type WalletAdapterContext, type WalletConfig, type WalletUserResult, createApiClient, hasAllPermissions, hasAnyPermission, hasPermission, isOAuthMethod, resolveLoginMethods, useAdmin, useForgeConnect, useRoles, useSessions, useUser, useWallets };
818
+ export { AccountButton, AccountModal, type AccountModalState, type AccountModalTab, type AdminUser, type ApiClient, type AppearanceConfig, type AuthMethod, type AuthProvider, type AuthState, type AuthStatus, type Chain, DeleteAccountModal, ErrorView, type ErrorViewProps, ForgeConnectApiError, type ForgeConnectConfig, ForgeConnectContext, type ForgeConnectContextValue, ForgeConnectProvider, LinkAuthModal, type LinkModalState, LoginButton, type LoginMethod, LoginModal, type LoginResponse, ModalOverlay, type ModalState, type ModalStep, type MwaOptions, type OAuthProvider, type PaginatedResponse, type Passkey, PasskeysModal, type PermissionDomains, type Role, type RoleUser, type Session, type TokenVerificationResult, type TotpSetup, TwoFactorModal, type TwoFactorStatus, type User, type UserRoleAssignment, type UserStatus, type Wallet, type WalletAdapterContext, type WalletConfig, type WalletUserResult, createApiClient, hasAllPermissions, hasAnyPermission, hasPermission, isOAuthMethod, registerMwaIfAvailable, resolveLoginMethods, useAdmin, useForgeConnect, useRoles, useSessions, useUser, useWallets };
package/dist/index.d.ts CHANGED
@@ -2,6 +2,20 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
3
  import { ReactNode } from 'react';
4
4
 
5
+ interface MwaOptions {
6
+ /** Set to false to disable MWA registration entirely. Default: true when `wallet` is in loginMethods. */
7
+ enabled?: boolean;
8
+ /** App identity advertised to the mobile wallet (Seeker, etc.). */
9
+ appIdentity?: {
10
+ name?: string;
11
+ uri?: string;
12
+ icon?: string;
13
+ };
14
+ /** Solana chains to request. Default: ['solana:mainnet']. */
15
+ chains?: string[];
16
+ }
17
+ declare function registerMwaIfAvailable(config: ForgeConnectConfig, opts: MwaOptions | undefined): Promise<void>;
18
+
5
19
  type OAuthProvider = 'google' | 'discord' | 'twitter' | 'apple' | 'telegram' | 'matrica';
6
20
  type Chain = 'solana' | 'ethereum';
7
21
  /** A login method entry for the method selector. OAuth providers are individual entries. */
@@ -62,6 +76,15 @@ interface ForgeConnectConfig {
62
76
  passwordlessLogin?: boolean;
63
77
  /** Appearance customization */
64
78
  appearance?: AppearanceConfig;
79
+ /**
80
+ * Mobile Wallet Adapter (MWA) registration for Solana Mobile / Seeker compatibility.
81
+ * When `wallet` is in loginMethods, MWA is auto-registered on Android browsers so it
82
+ * appears as a wallet option. Requires `@solana-mobile/wallet-standard-mobile` to be
83
+ * installed in the consumer app (peer-style optional dependency).
84
+ *
85
+ * Pass `{ enabled: false }` to opt out.
86
+ */
87
+ mwa?: MwaOptions;
65
88
  }
66
89
  interface AppearanceConfig {
67
90
  theme?: 'light' | 'dark' | 'glass';
@@ -792,4 +815,4 @@ declare function isOAuthMethod(method: LoginMethod): method is OAuthProvider;
792
815
  */
793
816
  declare function resolveLoginMethods(config: ForgeConnectConfig): LoginMethod[];
794
817
 
795
- export { AccountButton, AccountModal, type AccountModalState, type AccountModalTab, type AdminUser, type ApiClient, type AppearanceConfig, type AuthMethod, type AuthProvider, type AuthState, type AuthStatus, type Chain, DeleteAccountModal, ErrorView, type ErrorViewProps, ForgeConnectApiError, type ForgeConnectConfig, ForgeConnectContext, type ForgeConnectContextValue, ForgeConnectProvider, LinkAuthModal, type LinkModalState, LoginButton, type LoginMethod, LoginModal, type LoginResponse, ModalOverlay, type ModalState, type ModalStep, type OAuthProvider, type PaginatedResponse, type Passkey, PasskeysModal, type PermissionDomains, type Role, type RoleUser, type Session, type TokenVerificationResult, type TotpSetup, TwoFactorModal, type TwoFactorStatus, type User, type UserRoleAssignment, type UserStatus, type Wallet, type WalletAdapterContext, type WalletConfig, type WalletUserResult, createApiClient, hasAllPermissions, hasAnyPermission, hasPermission, isOAuthMethod, resolveLoginMethods, useAdmin, useForgeConnect, useRoles, useSessions, useUser, useWallets };
818
+ export { AccountButton, AccountModal, type AccountModalState, type AccountModalTab, type AdminUser, type ApiClient, type AppearanceConfig, type AuthMethod, type AuthProvider, type AuthState, type AuthStatus, type Chain, DeleteAccountModal, ErrorView, type ErrorViewProps, ForgeConnectApiError, type ForgeConnectConfig, ForgeConnectContext, type ForgeConnectContextValue, ForgeConnectProvider, LinkAuthModal, type LinkModalState, LoginButton, type LoginMethod, LoginModal, type LoginResponse, ModalOverlay, type ModalState, type ModalStep, type MwaOptions, type OAuthProvider, type PaginatedResponse, type Passkey, PasskeysModal, type PermissionDomains, type Role, type RoleUser, type Session, type TokenVerificationResult, type TotpSetup, TwoFactorModal, type TwoFactorStatus, type User, type UserRoleAssignment, type UserStatus, type Wallet, type WalletAdapterContext, type WalletConfig, type WalletUserResult, createApiClient, hasAllPermissions, hasAnyPermission, hasPermission, isOAuthMethod, registerMwaIfAvailable, resolveLoginMethods, useAdmin, useForgeConnect, useRoles, useSessions, useUser, useWallets };