@pooflabs/web 0.0.47 → 0.0.48

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.
@@ -13,4 +13,5 @@ export declare const SOLANA_MAINNET_RPC_URL = "https://celestia-cegncv-fast-main
13
13
  export declare const SURFNET_RPC_URL = "https://surfpool.fly.dev";
14
14
  export declare function getAuthProvider(config?: Partial<ClientConfig>): Promise<AuthProvider>;
15
15
  export declare function login(): Promise<User | null>;
16
+ export declare function getCurrentAuthMethod(): string | null;
16
17
  export declare function logout(): Promise<void>;
@@ -5,7 +5,6 @@ export interface PhantomWalletConfig {
5
5
  appId?: string;
6
6
  /** Providers to use for authentication. Accepts string[] for convenience (e.g., ["injected"]) */
7
7
  providers?: PhantomProviderType[] | string[];
8
- redirectUrl?: string;
9
8
  autoConnect?: boolean;
10
9
  /** Theme for the connect modal: 'light' or 'dark' */
11
10
  theme?: 'light' | 'dark';
@@ -13,7 +12,7 @@ export interface PhantomWalletConfig {
13
12
  appName?: string;
14
13
  /** App icon URL displayed in the connect modal */
15
14
  appIcon?: string;
16
- /** Enable a "Log in with Privy instead" fallback button in the Phantom modal */
15
+ /** Enable a "Log in with email" fallback button (via Privy) in the Phantom modal */
17
16
  enablePrivyFallback?: boolean;
18
17
  }
19
18
  export declare class PhantomWalletProvider implements AuthProvider {
@@ -28,7 +27,7 @@ export declare class PhantomWalletProvider implements AuthProvider {
28
27
  private loginInProgress;
29
28
  private autoLoginInProgress;
30
29
  private initPromise;
31
- /** Callback to swap to a Privy provider when the user clicks "Log in with Privy instead" */
30
+ /** Callback to swap to a Privy provider when the user clicks "Log in with email" */
32
31
  onSwitchToPrivy: (() => Promise<AuthProvider>) | null;
33
32
  constructor(networkUrl?: string | null, config?: PhantomWalletConfig);
34
33
  private initializeAsync;
@@ -47,8 +46,8 @@ export declare class PhantomWalletProvider implements AuthProvider {
47
46
  getAvailableProviders(): PhantomProviderType[];
48
47
  /**
49
48
  * Login using the Phantom connect modal.
50
- * Opens the native Phantom connect UI where users can choose their preferred login method
51
- * (Google, Apple, Phantom, or browser extension).
49
+ * When enablePrivyFallback is true, the modal is enhanced via React effect to
50
+ * auto-skip to the wallet list and show a "Log in with email" button.
52
51
  */
53
52
  login(): Promise<User | null>;
54
53
  restoreSession(): Promise<User | null>;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { useContext, createContext, useState, useMemo, useRef, useEffect, useCallback } from 'react';
3
3
  import globalAxios, { isAxiosError } from 'axios';
4
- import { c as commonjsRequire, r as require$$0, b as bufferExports, a as bs58$1, E as EventEmitter4 } from './index-B6X0fhJf.esm.js';
4
+ import { c as commonjsRequire, r as require$$0, b as bufferExports, a as bs58$1, E as EventEmitter4 } from './index-Bpn_DJ0f.esm.js';
5
5
  import { Transaction as Transaction$1, VersionedTransaction } from '@solana/web3.js';
6
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
7
7
  import '@coral-xyz/anchor';
@@ -17695,4 +17695,4 @@ function ConnectBox({ maxWidth = "350px", transparent = false, appIcon, appName
17695
17695
  }
17696
17696
 
17697
17697
  export { DerivationInfoAddressFormatEnum as AddressType, ConnectBox, ConnectButton, DebugLevel, NetworkId, PhantomProvider, darkTheme, debug, isMobileDevice, lightTheme, mergeTheme, useAccounts, useAutoConfirm, useConnect, useDisconnect, useDiscoveredWallets, useEthereum, useIsExtensionInstalled, useIsPhantomLoginAvailable, useModal, usePhantom, useSolana, useTheme };
17698
- //# sourceMappingURL=index-R_GFZpLo.esm.js.map
17698
+ //# sourceMappingURL=index-BMMdUWro.esm.js.map