@bounded-sh/client 0.0.3 → 0.0.4

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.
Files changed (45) hide show
  1. package/dist/hooks/useQuery.d.ts +58 -0
  2. package/dist/{index-2UpSvA7V.js → index-BBLnBZjY.js} +353 -2627
  3. package/dist/index-BBLnBZjY.js.map +1 -0
  4. package/dist/{index-C2JpxGAC.js → index-BMrN-6oK.js} +2 -2
  5. package/dist/{index-C2JpxGAC.js.map → index-BMrN-6oK.js.map} +1 -1
  6. package/dist/{index-DJg-Dduo.esm.js → index-D5Ut2JU7.esm.js} +2 -2
  7. package/dist/{index-DJg-Dduo.esm.js.map → index-D5Ut2JU7.esm.js.map} +1 -1
  8. package/dist/{index-C2yvle9S.esm.js → index-DkWfblRJ.esm.js} +2 -2
  9. package/dist/{index-C2yvle9S.esm.js.map → index-DkWfblRJ.esm.js.map} +1 -1
  10. package/dist/{index-CYVVTWs4.js → index-FYyc3l_y.js} +2 -2
  11. package/dist/{index-CYVVTWs4.js.map → index-FYyc3l_y.js.map} +1 -1
  12. package/dist/{index-DyfiK3_X.esm.js → index-n4fG6EZJ.esm.js} +350 -2628
  13. package/dist/index-n4fG6EZJ.esm.js.map +1 -0
  14. package/dist/{index.browser-pymH6o1X.esm.js → index.browser-CCWEiCH-.esm.js} +2 -2
  15. package/dist/{index.browser-pymH6o1X.esm.js.map → index.browser-CCWEiCH-.esm.js.map} +1 -1
  16. package/dist/{index.browser-BTJZmhY1.js → index.browser-D5evrolK.js} +2 -2
  17. package/dist/{index.browser-BTJZmhY1.js.map → index.browser-D5evrolK.js.map} +1 -1
  18. package/dist/index.d.ts +2 -0
  19. package/dist/index.esm.js +1 -1
  20. package/dist/index.js +5 -1
  21. package/dist/index.js.map +1 -1
  22. package/dist/{index.native-BTjBgNiE.esm.js → index.native-D5q2RUeV.esm.js} +82 -2420
  23. package/dist/index.native-D5q2RUeV.esm.js.map +1 -0
  24. package/dist/{index.native-BvsmNFXn.js → index.native-D82ofFXB.js} +84 -2419
  25. package/dist/index.native-D82ofFXB.js.map +1 -0
  26. package/dist/index.native.esm.js +1 -1
  27. package/dist/index.native.js +4 -1
  28. package/dist/index.native.js.map +1 -1
  29. package/dist/{phantom-wallet-provider-CTossIFB.esm.js → phantom-wallet-provider-C8DNu92D.esm.js} +3 -3
  30. package/dist/{phantom-wallet-provider-CTossIFB.esm.js.map → phantom-wallet-provider-C8DNu92D.esm.js.map} +1 -1
  31. package/dist/{phantom-wallet-provider-BXMvoOrI.js → phantom-wallet-provider-CoL7g8Sr.js} +3 -3
  32. package/dist/{phantom-wallet-provider-BXMvoOrI.js.map → phantom-wallet-provider-CoL7g8Sr.js.map} +1 -1
  33. package/dist/{privy-wallet-provider-D64DJ3u4.js → privy-wallet-provider-CV1mU4KR.js} +3 -3
  34. package/dist/{privy-wallet-provider-D64DJ3u4.js.map → privy-wallet-provider-CV1mU4KR.js.map} +1 -1
  35. package/dist/{privy-wallet-provider-1qE_f-DF.esm.js → privy-wallet-provider-De3mfJYo.esm.js} +3 -3
  36. package/dist/{privy-wallet-provider-1qE_f-DF.esm.js.map → privy-wallet-provider-De3mfJYo.esm.js.map} +1 -1
  37. package/dist/{solana-mobile-wallet-provider-9M8U6AA7.esm.js → solana-mobile-wallet-provider-CLCvi-08.esm.js} +2 -2
  38. package/dist/{solana-mobile-wallet-provider-9M8U6AA7.esm.js.map → solana-mobile-wallet-provider-CLCvi-08.esm.js.map} +1 -1
  39. package/dist/{solana-mobile-wallet-provider-C1wQ1DRK.js → solana-mobile-wallet-provider-D9dPbk__.js} +2 -2
  40. package/dist/{solana-mobile-wallet-provider-C1wQ1DRK.js.map → solana-mobile-wallet-provider-D9dPbk__.js.map} +1 -1
  41. package/package.json +2 -2
  42. package/dist/index-2UpSvA7V.js.map +0 -1
  43. package/dist/index-DyfiK3_X.esm.js.map +0 -1
  44. package/dist/index.native-BTjBgNiE.esm.js.map +0 -1
  45. package/dist/index.native-BvsmNFXn.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -8,6 +8,8 @@ export type { GetOptions as BoundedGetOptions } from "@bounded-sh/core";
8
8
  export { subscribe } from "@bounded-sh/core";
9
9
  export * from "@bounded-sh/core";
10
10
  export { useAuth } from "./auth/hooks/useAuth";
11
+ export { useQuery } from "./hooks/useQuery";
12
+ export type { UseQueryOptions, UseQueryResult } from "./hooks/useQuery";
11
13
  export { deserializeTransaction } from "./auth/providers/sol/sol-utils";
12
14
  export { getIdToken } from "./utils";
13
15
  export { setPlatform, getPlatform } from "./platform";
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- export { U as DEFAULT_TEST_ADDRESS, $ as EFFECT_INTENT_ADDRESS, a0 as FunctionInvokeError, a1 as InsufficientBalanceError, a2 as LiveIntentError, T as MockAuthProvider, V as OffchainAuthProvider, S as PhantomWalletProvider, _ as PrivyExpoProvider, Z as PrivyWalletProvider, a3 as ReactNativeSessionManager, a4 as RealtimeStore, a5 as ServerSessionManager, W as SolanaMobileWalletProvider, a6 as WebSessionManager, L as aggregate, a7 as buildSetDocumentsTransaction, a8 as clearCache, a9 as closeAllSubscriptions, r as completeLoginFromRedirect, u as completeLoginInPopup, aa as convertRemainingAccounts, K as count, ab as createSessionWithSignature, ac as defineLiveModule, ad as deriveUserIdentityFromIdToken, O as deserializeTransaction, ae as functions, af as genAuthNonce, ag as genSolanaMessage, w as get, ah as getActiveSessionManager, e as getAuthLoading, j as getAuthProvider, ai as getCachedData, h as getConfig, c as getCurrentUser, A as getFiles, P as getIdToken, aj as getMany, R as getPlatform, ak as getRealtimeStore, al as getWebhookKeysUrl, am as hasActiveConnection, an as increment, i as init, ao as invokeFunction, ap as isEffectResult, X as isMobileWalletAvailable, m as linkEmail, q as linkWithRedirect, aq as live, ar as liveIntent, as as liveStatus, l as login, t as loginWithPopup, n as loginWithPrivy, p as loginWithRedirect, f as logout, d as onAuthLoadingChanged, o as onAuthStateChanged, C as queryAggregate, at as reconnectWithNewAuth, au as refreshSession, Y as registerMobileWalletAdapter, av as resetRealtimeStore, aw as revokeSession, F as runExpression, G as runExpressionMany, D as runQuery, E as runQueryMany, B as search, k as sendEmailOtp, ax as serverTimestamp, x as set, z as setFile, y as setMany, Q as setPlatform, J as signAndSubmitTransaction, s as signInAnonymously, H as signMessage, ay as signSessionCreateMessage, I as signTransaction, M as subscribe, az as subscribeLiveView, N as useAuth, v as verifyEmailOtp, aA as withEffects, aB as wsDelete, aC as wsGet, aD as wsGetMany, aE as wsQuery, aF as wsSet } from './index-DyfiK3_X.esm.js';
1
+ export { V as DEFAULT_TEST_ADDRESS, a0 as EFFECT_INTENT_ADDRESS, a1 as FunctionInvokeError, a2 as InsufficientBalanceError, a3 as LiveIntentError, U as MockAuthProvider, W as OffchainAuthProvider, T as PhantomWalletProvider, $ as PrivyExpoProvider, _ as PrivyWalletProvider, a4 as ReactNativeSessionManager, a5 as RealtimeStore, a6 as ServerSessionManager, X as SolanaMobileWalletProvider, a7 as WebSessionManager, L as aggregate, a8 as buildSetDocumentsTransaction, a9 as clearCache, aa as closeAllSubscriptions, r as completeLoginFromRedirect, u as completeLoginInPopup, ab as convertRemainingAccounts, K as count, ac as createSessionWithSignature, ad as defineLiveModule, ae as deriveUserIdentityFromIdToken, P as deserializeTransaction, af as functions, ag as genAuthNonce, ah as genSolanaMessage, w as get, ai as getActiveSessionManager, e as getAuthLoading, j as getAuthProvider, aj as getCachedData, h as getConfig, c as getCurrentUser, A as getFiles, Q as getIdToken, ak as getMany, S as getPlatform, al as getRealtimeStore, am as getWebhookKeysUrl, an as hasActiveConnection, ao as increment, i as init, ap as invokeFunction, aq as isEffectResult, Y as isMobileWalletAvailable, m as linkEmail, q as linkWithRedirect, ar as live, as as liveIntent, at as liveStatus, l as login, t as loginWithPopup, n as loginWithPrivy, p as loginWithRedirect, f as logout, au as now, d as onAuthLoadingChanged, o as onAuthStateChanged, C as queryAggregate, av as reconnectWithNewAuth, aw as refreshSession, Z as registerMobileWalletAdapter, ax as resetRealtimeStore, ay as revokeSession, F as runExpression, G as runExpressionMany, D as runQuery, E as runQueryMany, B as search, k as sendEmailOtp, az as serverTimestamp, x as set, z as setFile, y as setMany, R as setPlatform, J as signAndSubmitTransaction, s as signInAnonymously, H as signMessage, aA as signSessionCreateMessage, I as signTransaction, M as subscribe, aB as subscribeLiveView, aC as toMillis, aD as toSeconds, N as useAuth, O as useQuery, v as verifyEmailOtp, aE as withEffects, aF as wsDelete, aG as wsGet, aH as wsGetMany, aI as wsQuery, aJ as wsSet } from './index-n4fG6EZJ.esm.js';
2
2
  import 'axios';
3
3
  import '@solana/web3.js';
4
4
  import '@coral-xyz/anchor';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-2UpSvA7V.js');
3
+ var index = require('./index-BBLnBZjY.js');
4
4
  require('axios');
5
5
  require('@solana/web3.js');
6
6
  require('@coral-xyz/anchor');
@@ -69,6 +69,7 @@ exports.loginWithPopup = index.loginWithPopup;
69
69
  exports.loginWithPrivy = index.loginWithPrivy;
70
70
  exports.loginWithRedirect = index.loginWithRedirect;
71
71
  exports.logout = index.logout;
72
+ exports.now = index.now;
72
73
  exports.onAuthLoadingChanged = index.onAuthLoadingChanged;
73
74
  exports.onAuthStateChanged = index.onAuthStateChanged;
74
75
  exports.queryAggregate = index.queryAggregate;
@@ -95,7 +96,10 @@ exports.signSessionCreateMessage = index.signSessionCreateMessage;
95
96
  exports.signTransaction = index.signTransaction;
96
97
  exports.subscribe = index.subscribe;
97
98
  exports.subscribeLiveView = index.subscribeView;
99
+ exports.toMillis = index.toMillis;
100
+ exports.toSeconds = index.toSeconds;
98
101
  exports.useAuth = index.useAuth;
102
+ exports.useQuery = index.useQuery;
99
103
  exports.verifyEmailOtp = index.verifyEmailOtp;
100
104
  exports.withEffects = index.withEffects;
101
105
  exports.wsDelete = index.wsDelete;
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}