@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.
- package/dist/auth/index.d.ts +1 -0
- package/dist/auth/providers/phantom-wallet-provider.d.ts +4 -5
- package/dist/{index-R_GFZpLo.esm.js → index-BMMdUWro.esm.js} +2 -2
- package/dist/{index-R_GFZpLo.esm.js.map → index-BMMdUWro.esm.js.map} +1 -1
- package/dist/{index-BEla3UUZ.js → index-BWQWVO4Q.js} +2 -2
- package/dist/{index-BEla3UUZ.js.map → index-BWQWVO4Q.js.map} +1 -1
- package/dist/{index-7SWQ00_t.js → index-Bj9e15Hj.js} +142 -217
- package/dist/{index-7SWQ00_t.js.map → index-Bj9e15Hj.js.map} +1 -1
- package/dist/{index-B6X0fhJf.esm.js → index-Bpn_DJ0f.esm.js} +142 -217
- package/dist/{index-B6X0fhJf.esm.js.map → index-Bpn_DJ0f.esm.js.map} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/auth/index.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
-
*
|
|
51
|
-
*
|
|
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-
|
|
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-
|
|
17698
|
+
//# sourceMappingURL=index-BMMdUWro.esm.js.map
|