@pooflabs/web 0.0.40 → 0.0.41
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-BSBKiLWi.esm.js → index-D4AGvIAD.esm.js} +2 -2
- package/dist/{index-BSBKiLWi.esm.js.map → index-D4AGvIAD.esm.js.map} +1 -1
- package/dist/{index-CdHX3Tgg.js → index-DhhR0WRy.js} +15 -2
- package/dist/index-DhhR0WRy.js.map +1 -0
- package/dist/{index-YqkhFncb.esm.js → index-DsQ3lRxj.esm.js} +15 -2
- package/dist/index-DsQ3lRxj.esm.js.map +1 -0
- package/dist/{index-UIsHf4b_.js → index-pn682_P9.js} +2 -2
- package/dist/{index-UIsHf4b_.js.map → index-pn682_P9.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-CdHX3Tgg.js.map +0 -1
- package/dist/index-YqkhFncb.esm.js.map +0 -1
|
@@ -9850,6 +9850,10 @@ async function setMany(many, options) {
|
|
|
9850
9850
|
lastTxSignature = transactionResult.transactionSignature;
|
|
9851
9851
|
signedTransaction = transactionResult.signedTransaction;
|
|
9852
9852
|
}
|
|
9853
|
+
// Sync items after all transactions are confirmed
|
|
9854
|
+
// Wait for 1.5 seconds to ensure all transactions are confirmed
|
|
9855
|
+
await new Promise(resolve => setTimeout(resolve, 1500));
|
|
9856
|
+
await syncItems(many.map(m => m.path));
|
|
9853
9857
|
// TODO: Should we wait here or do the optimistic subscription updates like below?
|
|
9854
9858
|
return Object.assign(Object.assign({}, documents.map(d => d.document)), { transactionId: lastTxSignature, signedTransaction: signedTransaction });
|
|
9855
9859
|
}
|
|
@@ -10061,6 +10065,15 @@ async function signAndSubmitTransaction(transaction, feePayer) {
|
|
|
10061
10065
|
}
|
|
10062
10066
|
return config.authProvider.signAndSubmitTransaction(transaction, feePayer);
|
|
10063
10067
|
}
|
|
10068
|
+
async function syncItems(paths) {
|
|
10069
|
+
try {
|
|
10070
|
+
const response = await makeApiRequest('PUT', 'items/sync', { paths }, undefined);
|
|
10071
|
+
return response.data;
|
|
10072
|
+
}
|
|
10073
|
+
catch (error) {
|
|
10074
|
+
throw error;
|
|
10075
|
+
}
|
|
10076
|
+
}
|
|
10064
10077
|
|
|
10065
10078
|
/**
|
|
10066
10079
|
* WebSocket v2 Subscription Manager
|
|
@@ -13032,7 +13045,7 @@ async function loadDependencies() {
|
|
|
13032
13045
|
const [reactModule, reactDomModule, phantomModule] = await Promise.all([
|
|
13033
13046
|
import('react'),
|
|
13034
13047
|
import('react-dom/client'),
|
|
13035
|
-
import('./index-
|
|
13048
|
+
import('./index-D4AGvIAD.esm.js')
|
|
13036
13049
|
]);
|
|
13037
13050
|
React$1 = reactModule;
|
|
13038
13051
|
ReactDOM$1 = reactDomModule;
|
|
@@ -34163,4 +34176,4 @@ async function getIdToken() {
|
|
|
34163
34176
|
}
|
|
34164
34177
|
|
|
34165
34178
|
export { useAuth as A, getIdToken as B, PrivyWalletProvider as C, DEFAULT_TEST_ADDRESS as D, EventEmitter4 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, commonjsRequire as c, onAuthLoadingChanged as d, getAuthLoading as e, logout as f, getCurrentUser as g, getConfig as h, init as i, getAuthProvider as j, get$2 as k, login as l, setMany as m, setFile as n, onAuthStateChanged as o, getFiles as p, runQuery as q, require$$0$1 as r, set$1 as s, runQueryMany as t, runExpression as u, runExpressionMany as v, signMessage as w, signTransaction as x, signAndSubmitTransaction as y, subscribe as z };
|
|
34166
|
-
//# sourceMappingURL=index-
|
|
34179
|
+
//# sourceMappingURL=index-DsQ3lRxj.esm.js.map
|