@pooflabs/web 0.0.86 → 0.0.88
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/providers/solana-mobile-wallet-provider.d.ts +43 -0
- package/dist/{index-DK28JaJm.esm.js → index-BfsQaxom.esm.js} +3054 -301
- package/dist/index-BfsQaxom.esm.js.map +1 -0
- package/dist/{index-BQUfNEiY.esm.js → index-CJRFnq6O.esm.js} +476 -103
- package/dist/index-CJRFnq6O.esm.js.map +1 -0
- package/dist/{index-BHkED2YI.js → index-CTtGbOzo.js} +3054 -300
- package/dist/index-CTtGbOzo.js.map +1 -0
- package/dist/{index-D-Wbwevj.js → index-CvNX4W0l.js} +2 -2
- package/dist/index-CvNX4W0l.js.map +1 -0
- package/dist/{index-DUn32Hkh.js → index-DBYgqO9f.js} +3055 -301
- package/dist/index-DBYgqO9f.js.map +1 -0
- package/dist/index-DpiO7Cpe.esm.js +6 -0
- package/dist/index-DpiO7Cpe.esm.js.map +1 -0
- package/dist/{index-hEc5_KoM.js → index-Lm0k5Hwv.js} +477 -102
- package/dist/index-Lm0k5Hwv.js.map +1 -0
- package/dist/{index-Cfp30Jm_.esm.js → index-MF_M5V0O.esm.js} +3055 -300
- package/dist/index-MF_M5V0O.esm.js.map +1 -0
- package/dist/{index.browser-CbawPvh6.js → index.browser-BCr9Sc8V.js} +506 -1876
- package/dist/index.browser-BCr9Sc8V.js.map +1 -0
- package/dist/{index.browser-DD8pg_L2.js → index.browser-BxKN5pIs.js} +1223 -2565
- package/dist/index.browser-BxKN5pIs.js.map +1 -0
- package/dist/{index.browser-DQqKPfDA.esm.js → index.browser-CGZvkfTO.esm.js} +506 -1876
- package/dist/index.browser-CGZvkfTO.esm.js.map +1 -0
- package/dist/{index.browser-C9gHoUen.esm.js → index.browser-CMijwVwX.esm.js} +1223 -2565
- package/dist/index.browser-CMijwVwX.esm.js.map +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{index.native-7hiNiSyC.js → index.native-FMbSnE7i.js} +44 -61
- package/dist/index.native-FMbSnE7i.js.map +1 -0
- package/dist/{index.native-BItnSD47.esm.js → index.native-GyqT8Dn5.esm.js} +43 -62
- package/dist/index.native-GyqT8Dn5.esm.js.map +1 -0
- package/dist/index.native.esm.js +1 -1
- package/dist/index.native.js +1 -1
- package/dist/{phantom-wallet-provider-CjvLq_2_.js → phantom-wallet-provider-4_DBhDbx.js} +4 -4
- package/dist/{phantom-wallet-provider-CjvLq_2_.js.map → phantom-wallet-provider-4_DBhDbx.js.map} +1 -1
- package/dist/{phantom-wallet-provider-DE3vit2Z.esm.js → phantom-wallet-provider-BFSfBW0w.esm.js} +4 -4
- package/dist/{phantom-wallet-provider-DE3vit2Z.esm.js.map → phantom-wallet-provider-BFSfBW0w.esm.js.map} +1 -1
- package/dist/{privy-wallet-provider-DFZaQPss.js → privy-wallet-provider-DRss_Hua.js} +3 -3
- package/dist/privy-wallet-provider-DRss_Hua.js.map +1 -0
- package/dist/{privy-wallet-provider-ip2pqo_U.esm.js → privy-wallet-provider-Dl0feuCb.esm.js} +3 -3
- package/dist/privy-wallet-provider-Dl0feuCb.esm.js.map +1 -0
- package/dist/{solana-mobile-wallet-provider-D7BbSpez.esm.js → solana-mobile-wallet-provider-C5mN8Dxh.esm.js} +437 -45
- package/dist/solana-mobile-wallet-provider-C5mN8Dxh.esm.js.map +1 -0
- package/dist/{solana-mobile-wallet-provider-DwER68Rz.js → solana-mobile-wallet-provider-CAZs-TkL.js} +437 -45
- package/dist/solana-mobile-wallet-provider-CAZs-TkL.js.map +1 -0
- package/package.json +1 -1
- package/dist/index-BHkED2YI.js.map +0 -1
- package/dist/index-BQUfNEiY.esm.js.map +0 -1
- package/dist/index-Cfp30Jm_.esm.js.map +0 -1
- package/dist/index-D-Wbwevj.js.map +0 -1
- package/dist/index-DK28JaJm.esm.js.map +0 -1
- package/dist/index-DKyWaxCB.esm.js +0 -6
- package/dist/index-DKyWaxCB.esm.js.map +0 -1
- package/dist/index-DUn32Hkh.js.map +0 -1
- package/dist/index-hEc5_KoM.js.map +0 -1
- package/dist/index.browser-C9gHoUen.esm.js.map +0 -1
- package/dist/index.browser-CbawPvh6.js.map +0 -1
- package/dist/index.browser-DD8pg_L2.js.map +0 -1
- package/dist/index.browser-DQqKPfDA.esm.js.map +0 -1
- package/dist/index.native-7hiNiSyC.js.map +0 -1
- package/dist/index.native-BItnSD47.esm.js.map +0 -1
- package/dist/privy-wallet-provider-DFZaQPss.js.map +0 -1
- package/dist/privy-wallet-provider-ip2pqo_U.esm.js.map +0 -1
- package/dist/solana-mobile-wallet-provider-D7BbSpez.esm.js.map +0 -1
- package/dist/solana-mobile-wallet-provider-DwER68Rz.js.map +0 -1
|
@@ -95,6 +95,49 @@ export declare class SolanaMobileWalletProvider implements AuthProvider {
|
|
|
95
95
|
private ensureAuthorized;
|
|
96
96
|
/** Returns the active wallet-standard chain identifier (e.g. 'solana:mainnet'). */
|
|
97
97
|
private getChain;
|
|
98
|
+
/**
|
|
99
|
+
* Cached MWA auth_token returned by `wallet.authorize()`. Reused by
|
|
100
|
+
* subsequent native transact() calls (signMessage / signTransaction)
|
|
101
|
+
* so the user doesn't get the wallet-pick popup on every operation.
|
|
102
|
+
* Persisted to platform storage and hydrated by the constructor on
|
|
103
|
+
* native; cleared by logout() and on `ERROR_REAUTHORIZE`.
|
|
104
|
+
*/
|
|
105
|
+
private nativeAuthToken;
|
|
106
|
+
/** Cached public key string for the connected MWA wallet (native). */
|
|
107
|
+
private nativeAddress;
|
|
108
|
+
/**
|
|
109
|
+
* Dynamically import and unwrap `transact` from the MWA web3js
|
|
110
|
+
* package. The package is externalized in rollup.config.js so this
|
|
111
|
+
* resolves to `lib/cjs/index.native.js` (TurboModule-backed) on
|
|
112
|
+
* Metro and `lib/esm/index.browser.js` (WebSocket) on webpack/vite
|
|
113
|
+
* per their respective platform conditions. Handles Metro's CJS-to-
|
|
114
|
+
* ESM interop variance (`mod.transact` vs `mod.default?.transact`).
|
|
115
|
+
*/
|
|
116
|
+
private loadTransact;
|
|
117
|
+
/**
|
|
118
|
+
* Cache and persist a fresh MWA auth_token + address. Called from
|
|
119
|
+
* `_loginNative` after a successful authorize. Storage failures are
|
|
120
|
+
* non-fatal (next cold-start re-auths).
|
|
121
|
+
*/
|
|
122
|
+
private persistNativeAuth;
|
|
123
|
+
/** Clear cached + persisted native auth state. */
|
|
124
|
+
private clearNativeAuth;
|
|
125
|
+
/**
|
|
126
|
+
* Classify an MWA-native error as a user cancellation. User-cancel
|
|
127
|
+
* shouldn't surface as a red console.error; callers can swallow or
|
|
128
|
+
* show a softer message. MWA spec codes plus the same substring
|
|
129
|
+
* checks the web path uses to catch wallet-specific phrasing.
|
|
130
|
+
*/
|
|
131
|
+
private isNativeUserCancel;
|
|
132
|
+
/**
|
|
133
|
+
* Native MWA login via @solana-mobile/mobile-wallet-adapter-protocol-web3js.
|
|
134
|
+
* Used in true React Native (Expo) environments where wallet-standard-mobile's
|
|
135
|
+
* web universal-link path doesn't apply. Does authorize + signMessage in a
|
|
136
|
+
* single transact() roundtrip — intent-based MWA doesn't need the two-popup
|
|
137
|
+
* dance the web path uses (no Chrome activation-loss concern). Persists the
|
|
138
|
+
* resulting auth_token so cold-start can reauthorize without a fresh popup.
|
|
139
|
+
*/
|
|
140
|
+
private _loginNative;
|
|
98
141
|
login(): Promise<User | null>;
|
|
99
142
|
restoreSession(): Promise<User | null>;
|
|
100
143
|
logout(): Promise<void>;
|