@pooflabs/web 0.0.67 → 0.0.69
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-BJkKyW8U.esm.js → index-BMWeM64T.esm.js} +10 -31
- package/dist/index-BMWeM64T.esm.js.map +1 -0
- package/dist/{index-D4MRp3aP.js → index-C-ADfv7y.js} +10 -31
- package/dist/index-C-ADfv7y.js.map +1 -0
- package/dist/{index-DzfODeEO.esm.js → index-CitlpjWv.esm.js} +2 -2
- package/dist/{index-DzfODeEO.esm.js.map → index-CitlpjWv.esm.js.map} +1 -1
- package/dist/{index-BHU0Q8vq.js → index-DG-p1jRT.js} +2 -2
- package/dist/{index-BHU0Q8vq.js.map → index-DG-p1jRT.js.map} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/dist/index-BJkKyW8U.esm.js.map +0 -1
- package/dist/index-D4MRp3aP.js.map +0 -1
|
@@ -10600,8 +10600,6 @@ async function getOrCreateConnection(appId, isServer) {
|
|
|
10600
10600
|
isConnected: false,
|
|
10601
10601
|
appId,
|
|
10602
10602
|
tokenRefreshTimer: null,
|
|
10603
|
-
lastMessageAt: Date.now(),
|
|
10604
|
-
keepaliveTimer: null,
|
|
10605
10603
|
consecutiveAuthFailures: 0,
|
|
10606
10604
|
};
|
|
10607
10605
|
connections.set(appId, connection);
|
|
@@ -10653,7 +10651,6 @@ async function getOrCreateConnection(appId, isServer) {
|
|
|
10653
10651
|
ws.addEventListener('open', () => {
|
|
10654
10652
|
connection.isConnecting = false;
|
|
10655
10653
|
connection.isConnected = true;
|
|
10656
|
-
connection.lastMessageAt = Date.now();
|
|
10657
10654
|
connection.consecutiveAuthFailures = 0;
|
|
10658
10655
|
// Schedule periodic token freshness checks
|
|
10659
10656
|
scheduleTokenRefresh(connection, isServer);
|
|
@@ -10662,25 +10659,9 @@ async function getOrCreateConnection(appId, isServer) {
|
|
|
10662
10659
|
sub.lastData = undefined;
|
|
10663
10660
|
sendSubscribe(connection, sub);
|
|
10664
10661
|
}
|
|
10665
|
-
// Start keepalive detection — if no messages for 90s, force reconnect
|
|
10666
|
-
if (connection.keepaliveTimer) {
|
|
10667
|
-
clearInterval(connection.keepaliveTimer);
|
|
10668
|
-
}
|
|
10669
|
-
connection.keepaliveTimer = setInterval(() => {
|
|
10670
|
-
var _a;
|
|
10671
|
-
if (Date.now() - connection.lastMessageAt > 90000) {
|
|
10672
|
-
console.warn('[WS v2] No messages received for 90s, forcing reconnect');
|
|
10673
|
-
if (connection.keepaliveTimer) {
|
|
10674
|
-
clearInterval(connection.keepaliveTimer);
|
|
10675
|
-
connection.keepaliveTimer = null;
|
|
10676
|
-
}
|
|
10677
|
-
(_a = connection.ws) === null || _a === void 0 ? void 0 : _a.reconnect();
|
|
10678
|
-
}
|
|
10679
|
-
}, 30000);
|
|
10680
10662
|
});
|
|
10681
10663
|
// Handle incoming messages
|
|
10682
10664
|
ws.addEventListener('message', (event) => {
|
|
10683
|
-
connection.lastMessageAt = Date.now();
|
|
10684
10665
|
try {
|
|
10685
10666
|
const message = JSON.parse(event.data);
|
|
10686
10667
|
handleServerMessage(connection, message);
|
|
@@ -10704,10 +10685,6 @@ async function getOrCreateConnection(appId, isServer) {
|
|
|
10704
10685
|
clearInterval(connection.tokenRefreshTimer);
|
|
10705
10686
|
connection.tokenRefreshTimer = null;
|
|
10706
10687
|
}
|
|
10707
|
-
if (connection.keepaliveTimer) {
|
|
10708
|
-
clearInterval(connection.keepaliveTimer);
|
|
10709
|
-
connection.keepaliveTimer = null;
|
|
10710
|
-
}
|
|
10711
10688
|
});
|
|
10712
10689
|
return connection;
|
|
10713
10690
|
}
|
|
@@ -10965,10 +10942,6 @@ async function closeAllSubscriptionsV2() {
|
|
|
10965
10942
|
clearInterval(connection.tokenRefreshTimer);
|
|
10966
10943
|
connection.tokenRefreshTimer = null;
|
|
10967
10944
|
}
|
|
10968
|
-
if (connection.keepaliveTimer) {
|
|
10969
|
-
clearInterval(connection.keepaliveTimer);
|
|
10970
|
-
connection.keepaliveTimer = null;
|
|
10971
|
-
}
|
|
10972
10945
|
if (connection.ws) {
|
|
10973
10946
|
const ws = connection.ws;
|
|
10974
10947
|
connection.ws = null;
|
|
@@ -13570,7 +13543,7 @@ async function loadDependencies() {
|
|
|
13570
13543
|
const [reactModule, reactDomModule, phantomModule] = await Promise.all([
|
|
13571
13544
|
import('react'),
|
|
13572
13545
|
import('react-dom/client'),
|
|
13573
|
-
import('./index-
|
|
13546
|
+
import('./index-CitlpjWv.esm.js')
|
|
13574
13547
|
]);
|
|
13575
13548
|
// Extract default export from ESM module namespace
|
|
13576
13549
|
// Dynamic import() returns { default: Module, ...exports }, not the module directly
|
|
@@ -13682,9 +13655,15 @@ class PhantomWalletProvider {
|
|
|
13682
13655
|
this.containerElement.setAttribute('data-phantom-provider', 'true');
|
|
13683
13656
|
// Keep Phantom UI above host overlays while avoiding global click-capture.
|
|
13684
13657
|
this.containerElement.style.position = 'fixed';
|
|
13685
|
-
this.containerElement.style.inset = '0';
|
|
13686
13658
|
this.containerElement.style.zIndex = '2147483647';
|
|
13687
|
-
this.
|
|
13659
|
+
if (this.config.enablePrivyFallback) {
|
|
13660
|
+
// Full-viewport overlay for custom modal; pointer-events: none lets
|
|
13661
|
+
// clicks pass through to page except where the modal sets 'auto'
|
|
13662
|
+
this.containerElement.style.inset = '0';
|
|
13663
|
+
this.containerElement.style.pointerEvents = 'none';
|
|
13664
|
+
}
|
|
13665
|
+
// When Privy fallback is off, the container just hosts PhantomProvider
|
|
13666
|
+
// without covering the viewport or blocking pointer events
|
|
13688
13667
|
document.body.appendChild(this.containerElement);
|
|
13689
13668
|
const that = this;
|
|
13690
13669
|
const { PhantomProvider: ReactPhantomProvider, usePhantom, useConnect, useDisconnect, useModal, useSolana, useDiscoveredWallets, AddressType, darkTheme, lightTheme } = phantomReactSdk;
|
|
@@ -35236,4 +35215,4 @@ async function getIdToken() {
|
|
|
35236
35215
|
}
|
|
35237
35216
|
|
|
35238
35217
|
export { useAuth as A, getIdToken as B, PrivyWalletProvider as C, DEFAULT_TEST_ADDRESS as D, EventEmitter3 as E, buildSetDocumentsTransaction as F, clearCache as G, closeAllSubscriptions as H, convertRemainingAccounts as I, createSessionWithPrivy as J, createSessionWithSignature as K, genAuthNonce as L, MockAuthProvider as M, genSolanaMessage as N, OffchainAuthProvider as O, PhantomWalletProvider as P, getCachedData as Q, reconnectWithNewAuth as R, ServerSessionManager as S, refreshSession as T, signSessionCreateMessage as U, WebSessionManager as W, bs58 as a, bufferExports as b, onAuthLoadingChanged as c, getAuthLoading as d, logout as e, getConfig as f, getCurrentUser as g, getAuthProvider as h, init as i, get$2 as j, setMany as k, login as l, setFile as m, getFiles as n, onAuthStateChanged as o, runQueryMany as p, runExpression as q, runQuery as r, set$1 as s, runExpressionMany as t, signMessage as u, signTransaction as v, signAndSubmitTransaction as w, count as x, aggregate as y, subscribe as z };
|
|
35239
|
-
//# sourceMappingURL=index-
|
|
35218
|
+
//# sourceMappingURL=index-BMWeM64T.esm.js.map
|