@pooflabs/web 0.0.48 → 0.0.50
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/phantom-wallet-provider.d.ts +1 -1
- package/dist/{index-Bj9e15Hj.js → index-6xbUpF_l.js} +14 -4
- package/dist/{index-Bj9e15Hj.js.map → index-6xbUpF_l.js.map} +1 -1
- package/dist/{index-BWQWVO4Q.js → index-CcTRxMfo.js} +2 -2
- package/dist/{index-BWQWVO4Q.js.map → index-CcTRxMfo.js.map} +1 -1
- package/dist/{index-BMMdUWro.esm.js → index-DvBYeZDH.esm.js} +2 -2
- package/dist/{index-BMMdUWro.esm.js.map → index-DvBYeZDH.esm.js.map} +1 -1
- package/dist/{index-Bpn_DJ0f.esm.js → index-NRbP_-4R.esm.js} +14 -4
- package/dist/{index-Bpn_DJ0f.esm.js.map → index-NRbP_-4R.esm.js.map} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EVMTransaction, SolTransaction, TransactionResult, User, AuthProvider, SetOptions } from '@pooflabs/core';
|
|
2
2
|
import { PublicKey, Transaction, VersionedTransaction } from '@solana/web3.js';
|
|
3
|
-
export type PhantomProviderType = 'injected' | 'google' | 'apple' | 'deeplink';
|
|
3
|
+
export type PhantomProviderType = 'injected' | 'google' | 'apple' | 'deeplink' | 'phantom';
|
|
4
4
|
export interface PhantomWalletConfig {
|
|
5
5
|
appId?: string;
|
|
6
6
|
/** Providers to use for authentication. Accepts string[] for convenience (e.g., ["injected"]) */
|
|
@@ -13051,7 +13051,7 @@ function requireBuffer () {
|
|
|
13051
13051
|
|
|
13052
13052
|
var bufferExports = requireBuffer();
|
|
13053
13053
|
|
|
13054
|
-
const VALID_PROVIDERS = ['injected', 'google', 'apple', 'deeplink'];
|
|
13054
|
+
const VALID_PROVIDERS = ['injected', 'google', 'apple', 'deeplink', 'phantom'];
|
|
13055
13055
|
// Dynamically import React and Phantom SDK - only when needed
|
|
13056
13056
|
let React$1;
|
|
13057
13057
|
let ReactDOM$1;
|
|
@@ -13072,7 +13072,7 @@ async function loadDependencies() {
|
|
|
13072
13072
|
const [reactModule, reactDomModule, phantomModule] = await Promise.all([
|
|
13073
13073
|
import('react'),
|
|
13074
13074
|
import('react-dom/client'),
|
|
13075
|
-
Promise.resolve().then(function () { return require('./index-
|
|
13075
|
+
Promise.resolve().then(function () { return require('./index-CcTRxMfo.js'); })
|
|
13076
13076
|
]);
|
|
13077
13077
|
// Extract default export from ESM module namespace
|
|
13078
13078
|
// Dynamic import() returns { default: Module, ...exports }, not the module directly
|
|
@@ -13370,7 +13370,7 @@ class PhantomWalletProvider {
|
|
|
13370
13370
|
let socialBtnContainer = null;
|
|
13371
13371
|
let didAutoClick = false;
|
|
13372
13372
|
const enhanceModal = () => {
|
|
13373
|
-
var _a, _b;
|
|
13373
|
+
var _a, _b, _c;
|
|
13374
13374
|
const overlayEl = ((_a = that.containerElement) === null || _a === void 0 ? void 0 : _a.querySelector('div[style*="z-index"]'))
|
|
13375
13375
|
|| document.querySelector('div[style*="z-index: 9999"]');
|
|
13376
13376
|
const modalCard = overlayEl === null || overlayEl === void 0 ? void 0 : overlayEl.firstElementChild;
|
|
@@ -13403,6 +13403,16 @@ class PhantomWalletProvider {
|
|
|
13403
13403
|
break;
|
|
13404
13404
|
}
|
|
13405
13405
|
}
|
|
13406
|
+
// Hide the "OR" divider that appears between injected wallet and deeplink
|
|
13407
|
+
const allSpans = modalCard.querySelectorAll('span');
|
|
13408
|
+
for (const span of allSpans) {
|
|
13409
|
+
if (((_c = span.textContent) === null || _c === void 0 ? void 0 : _c.trim()) === 'OR') {
|
|
13410
|
+
const dividerContainer = span.parentElement;
|
|
13411
|
+
if (dividerContainer)
|
|
13412
|
+
dividerContainer.style.display = 'none';
|
|
13413
|
+
break;
|
|
13414
|
+
}
|
|
13415
|
+
}
|
|
13406
13416
|
// Inject the email login button if not already present
|
|
13407
13417
|
if (socialBtnContainer || modalCard.querySelector('[data-privy-fallback-btn]'))
|
|
13408
13418
|
return;
|
|
@@ -34506,4 +34516,4 @@ exports.signSessionCreateMessage = signSessionCreateMessage;
|
|
|
34506
34516
|
exports.signTransaction = signTransaction;
|
|
34507
34517
|
exports.subscribe = subscribe;
|
|
34508
34518
|
exports.useAuth = useAuth;
|
|
34509
|
-
//# sourceMappingURL=index-
|
|
34519
|
+
//# sourceMappingURL=index-6xbUpF_l.js.map
|