@bounded-sh/client 0.0.1
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/README.md +298 -0
- package/dist/auth/hooks/useAuth.d.ts +8 -0
- package/dist/auth/index.d.ts +73 -0
- package/dist/auth/oidc-auth.d.ts +27 -0
- package/dist/auth/providers/email-auth-provider.d.ts +38 -0
- package/dist/auth/providers/guest-auth-provider.d.ts +14 -0
- package/dist/auth/providers/guest-keystore.d.ts +12 -0
- package/dist/auth/providers/mock-auth-provider.d.ts +49 -0
- package/dist/auth/providers/offchain-auth-provider.d.ts +56 -0
- package/dist/auth/providers/phantom-wallet-provider.d.ts +117 -0
- package/dist/auth/providers/privy-expo-provider.d.ts +115 -0
- package/dist/auth/providers/privy-wallet-provider.d.ts +80 -0
- package/dist/auth/providers/sol/sol-utils.d.ts +2 -0
- package/dist/auth/providers/solana-mobile-wallet-provider.d.ts +155 -0
- package/dist/auth/providers/transaction-utils.d.ts +10 -0
- package/dist/global.d.ts +13 -0
- package/dist/index-BHTfW8CV.esm.js +16091 -0
- package/dist/index-BHTfW8CV.esm.js.map +1 -0
- package/dist/index-C1VOdmRN.js +16130 -0
- package/dist/index-C1VOdmRN.js.map +1 -0
- package/dist/index-CT2j1oic.esm.js +16089 -0
- package/dist/index-CT2j1oic.esm.js.map +1 -0
- package/dist/index-VGx-869x.js +23572 -0
- package/dist/index-VGx-869x.js.map +1 -0
- package/dist/index-o5Hv9pfS.esm.js +23456 -0
- package/dist/index-o5Hv9pfS.esm.js.map +1 -0
- package/dist/index-sKqrgk0t.js +16132 -0
- package/dist/index-sKqrgk0t.js.map +1 -0
- package/dist/index.browser-BJZ7fYwv.js +5081 -0
- package/dist/index.browser-BJZ7fYwv.js.map +1 -0
- package/dist/index.browser-DaNhOhkQ.esm.js +4220 -0
- package/dist/index.browser-DaNhOhkQ.esm.js.map +1 -0
- package/dist/index.browser-DhAcjdpV.esm.js +5071 -0
- package/dist/index.browser-DhAcjdpV.esm.js.map +1 -0
- package/dist/index.browser-utVKQsEC.js +4225 -0
- package/dist/index.browser-utVKQsEC.js.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.esm.js +8 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +105 -0
- package/dist/index.js.map +1 -0
- package/dist/index.native-B5IBOdv_.js +19684 -0
- package/dist/index.native-B5IBOdv_.js.map +1 -0
- package/dist/index.native-JPUkdHJj.esm.js +19565 -0
- package/dist/index.native-JPUkdHJj.esm.js.map +1 -0
- package/dist/index.native.d.ts +26 -0
- package/dist/index.native.esm.js +6 -0
- package/dist/index.native.esm.js.map +1 -0
- package/dist/index.native.js +98 -0
- package/dist/index.native.js.map +1 -0
- package/dist/phantom-wallet-provider-CDLyxrih.js +1466 -0
- package/dist/phantom-wallet-provider-CDLyxrih.js.map +1 -0
- package/dist/phantom-wallet-provider-DMlaSrAl.esm.js +1445 -0
- package/dist/phantom-wallet-provider-DMlaSrAl.esm.js.map +1 -0
- package/dist/platform.d.ts +81 -0
- package/dist/privy-wallet-provider-DiHHTDbZ.js +956 -0
- package/dist/privy-wallet-provider-DiHHTDbZ.js.map +1 -0
- package/dist/privy-wallet-provider-nR52lXzI.esm.js +933 -0
- package/dist/privy-wallet-provider-nR52lXzI.esm.js.map +1 -0
- package/dist/solana-mobile-wallet-provider-B4CeMMQd.esm.js +1460 -0
- package/dist/solana-mobile-wallet-provider-B4CeMMQd.esm.js.map +1 -0
- package/dist/solana-mobile-wallet-provider-BYMfFjZb.js +1481 -0
- package/dist/solana-mobile-wallet-provider-BYMfFjZb.js.map +1 -0
- package/dist/utils.d.ts +1 -0
- package/package.json +100 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React Native entry point for @bounded-sh/web.
|
|
3
|
+
*
|
|
4
|
+
* This entry re-exports everything EXCEPT web-only providers that depend on
|
|
5
|
+
* react-dom or Phantom's browser SDK.
|
|
6
|
+
*
|
|
7
|
+
* Metro resolves this file via the "react-native" condition in package.json.
|
|
8
|
+
* Web bundlers (webpack, vite, rollup) continue to use the default entry.
|
|
9
|
+
*/
|
|
10
|
+
export { init, getCurrentUser, onAuthStateChanged, onAuthLoadingChanged, getAuthLoading, login, logout, } from "./global";
|
|
11
|
+
export { getConfig } from "@bounded-sh/core";
|
|
12
|
+
export { getAuthProvider, signInAnonymously, sendEmailOtp, verifyEmailOtp, linkEmail, loginWithPrivy } from "./auth";
|
|
13
|
+
export { loginWithRedirect, linkWithRedirect, completeLoginFromRedirect, loginWithPopup, completeLoginInPopup } from "./auth";
|
|
14
|
+
export { get, set, setMany, setFile, getFiles, search, queryAggregate, runQuery, runQueryMany, runExpression, runExpressionMany, signMessage, signTransaction, signAndSubmitTransaction, count, aggregate, GetOptions, SearchOptions, SetOptions, CountOptions, AggregateOptions, AggregateOperation, AggregateResult, AggregateSpec, AggregateRow, QueryAggregateOptions, } from "@bounded-sh/core";
|
|
15
|
+
export type { GetOptions as TarobaseGetOptions } from "@bounded-sh/core";
|
|
16
|
+
export { subscribe } from "@bounded-sh/core";
|
|
17
|
+
export * from "@bounded-sh/core";
|
|
18
|
+
export { useAuth } from "./auth/hooks/useAuth";
|
|
19
|
+
export { deserializeTransaction } from "./auth/providers/sol/sol-utils";
|
|
20
|
+
export { getIdToken } from "./utils";
|
|
21
|
+
export { setPlatform, getPlatform } from "./platform";
|
|
22
|
+
export type { PlatformAdapter, StorageAdapter } from "./platform";
|
|
23
|
+
export { MockAuthProvider, DEFAULT_TEST_ADDRESS, } from "./auth/providers/mock-auth-provider";
|
|
24
|
+
export { OffchainAuthProvider, OffchainAuthProviderConfig, } from "./auth/providers/offchain-auth-provider";
|
|
25
|
+
export { PrivyExpoProvider } from "./auth/providers/privy-expo-provider";
|
|
26
|
+
export type { PrivyExpoMethods } from "./auth/providers/privy-expo-provider";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { a6 as DEFAULT_TEST_ADDRESS, a9 as EFFECT_INTENT_ADDRESS, aa as FunctionInvokeError, ab as InsufficientBalanceError, ac as LiveIntentError, a5 as MockAuthProvider, a7 as OffchainAuthProvider, a8 as PrivyExpoProvider, ad as ReactNativeSessionManager, ae as RealtimeStore, af as ServerSessionManager, W as WebSessionManager, $ as aggregate, a as buildSetDocumentsTransaction, ag as clearCache, ah as closeAllSubscriptions, H as completeLoginFromRedirect, J as completeLoginInPopup, c as convertRemainingAccounts, _ as count, m as createSessionWithSignature, ai as defineLiveModule, aj as deriveUserIdentityFromIdToken, a2 as deserializeTransaction, ak as functions, k as genAuthNonce, l as genSolanaMessage, K as get, n as getActiveSessionManager, v as getAuthLoading, z as getAuthProvider, al as getCachedData, y as getConfig, r as getCurrentUser, O as getFiles, a3 as getIdToken, am as getMany, i as getPlatform, an as getRealtimeStore, ao as getWebhookKeysUrl, ap as hasActiveConnection, aq as increment, q as init, ar as invokeFunction, as as isEffectResult, D as linkEmail, G as linkWithRedirect, at as live, au as liveIntent, w as login, I as loginWithPopup, E as loginWithPrivy, F as loginWithRedirect, x as logout, u as onAuthLoadingChanged, t as onAuthStateChanged, Q as queryAggregate, av as reconnectWithNewAuth, aw as refreshSession, ax as resetRealtimeStore, ay as revokeSession, U as runExpression, V as runExpressionMany, R as runQuery, T as runQueryMany, P as search, B as sendEmailOtp, az as serverTimestamp, L as set, N as setFile, M as setMany, a4 as setPlatform, Z as signAndSubmitTransaction, A as signInAnonymously, X as signMessage, aA as signSessionCreateMessage, Y as signTransaction, a0 as subscribe, aB as subscribeLiveView, a1 as useAuth, C as verifyEmailOtp, aC as withEffects, aD as wsDelete, aE as wsGet, aF as wsGetMany, aG as wsQuery, aH as wsSet } from './index.native-JPUkdHJj.esm.js';
|
|
2
|
+
import 'axios';
|
|
3
|
+
import '@solana/web3.js';
|
|
4
|
+
import '@coral-xyz/anchor';
|
|
5
|
+
import 'react';
|
|
6
|
+
//# sourceMappingURL=index.native.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.native.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index_native = require('./index.native-B5IBOdv_.js');
|
|
4
|
+
require('axios');
|
|
5
|
+
require('@solana/web3.js');
|
|
6
|
+
require('@coral-xyz/anchor');
|
|
7
|
+
require('react');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
exports.DEFAULT_TEST_ADDRESS = index_native.DEFAULT_TEST_ADDRESS;
|
|
12
|
+
exports.EFFECT_INTENT_ADDRESS = index_native.EFFECT_INTENT_ADDRESS;
|
|
13
|
+
exports.FunctionInvokeError = index_native.FunctionInvokeError;
|
|
14
|
+
exports.InsufficientBalanceError = index_native.InsufficientBalanceError;
|
|
15
|
+
exports.LiveIntentError = index_native.LiveIntentError;
|
|
16
|
+
exports.MockAuthProvider = index_native.MockAuthProvider;
|
|
17
|
+
exports.OffchainAuthProvider = index_native.OffchainAuthProvider;
|
|
18
|
+
exports.PrivyExpoProvider = index_native.PrivyExpoProvider;
|
|
19
|
+
exports.ReactNativeSessionManager = index_native.ReactNativeSessionManager;
|
|
20
|
+
exports.RealtimeStore = index_native.RealtimeStore;
|
|
21
|
+
exports.ServerSessionManager = index_native.ServerSessionManager;
|
|
22
|
+
exports.WebSessionManager = index_native.WebSessionManager;
|
|
23
|
+
exports.aggregate = index_native.aggregate;
|
|
24
|
+
exports.buildSetDocumentsTransaction = index_native.buildSetDocumentsTransaction;
|
|
25
|
+
exports.clearCache = index_native.clearCache;
|
|
26
|
+
exports.closeAllSubscriptions = index_native.closeAllSubscriptions;
|
|
27
|
+
exports.completeLoginFromRedirect = index_native.completeLoginFromRedirect;
|
|
28
|
+
exports.completeLoginInPopup = index_native.completeLoginInPopup;
|
|
29
|
+
exports.convertRemainingAccounts = index_native.convertRemainingAccounts;
|
|
30
|
+
exports.count = index_native.count;
|
|
31
|
+
exports.createSessionWithSignature = index_native.createSessionWithSignature;
|
|
32
|
+
exports.defineLiveModule = index_native.defineLiveModule;
|
|
33
|
+
exports.deriveUserIdentityFromIdToken = index_native.deriveUserIdentityFromIdToken;
|
|
34
|
+
exports.deserializeTransaction = index_native.deserializeTransaction;
|
|
35
|
+
exports.functions = index_native.functions;
|
|
36
|
+
exports.genAuthNonce = index_native.genAuthNonce;
|
|
37
|
+
exports.genSolanaMessage = index_native.genSolanaMessage;
|
|
38
|
+
exports.get = index_native.get;
|
|
39
|
+
exports.getActiveSessionManager = index_native.getActiveSessionManager;
|
|
40
|
+
exports.getAuthLoading = index_native.getAuthLoading;
|
|
41
|
+
exports.getAuthProvider = index_native.getAuthProvider;
|
|
42
|
+
exports.getCachedData = index_native.getCachedData;
|
|
43
|
+
exports.getConfig = index_native.getConfig;
|
|
44
|
+
exports.getCurrentUser = index_native.getCurrentUser;
|
|
45
|
+
exports.getFiles = index_native.getFiles;
|
|
46
|
+
exports.getIdToken = index_native.getIdToken;
|
|
47
|
+
exports.getMany = index_native.getMany;
|
|
48
|
+
exports.getPlatform = index_native.getPlatform;
|
|
49
|
+
exports.getRealtimeStore = index_native.getRealtimeStore;
|
|
50
|
+
exports.getWebhookKeysUrl = index_native.getWebhookKeysUrl;
|
|
51
|
+
exports.hasActiveConnection = index_native.hasActiveConnection;
|
|
52
|
+
exports.increment = index_native.increment;
|
|
53
|
+
exports.init = index_native.init;
|
|
54
|
+
exports.invokeFunction = index_native.invoke;
|
|
55
|
+
exports.isEffectResult = index_native.isEffectResult;
|
|
56
|
+
exports.linkEmail = index_native.linkEmail;
|
|
57
|
+
exports.linkWithRedirect = index_native.linkWithRedirect;
|
|
58
|
+
exports.live = index_native.live;
|
|
59
|
+
exports.liveIntent = index_native.intent;
|
|
60
|
+
exports.login = index_native.login;
|
|
61
|
+
exports.loginWithPopup = index_native.loginWithPopup;
|
|
62
|
+
exports.loginWithPrivy = index_native.loginWithPrivy;
|
|
63
|
+
exports.loginWithRedirect = index_native.loginWithRedirect;
|
|
64
|
+
exports.logout = index_native.logout;
|
|
65
|
+
exports.onAuthLoadingChanged = index_native.onAuthLoadingChanged;
|
|
66
|
+
exports.onAuthStateChanged = index_native.onAuthStateChanged;
|
|
67
|
+
exports.queryAggregate = index_native.queryAggregate;
|
|
68
|
+
exports.reconnectWithNewAuth = index_native.reconnectWithNewAuth;
|
|
69
|
+
exports.refreshSession = index_native.refreshSession;
|
|
70
|
+
exports.resetRealtimeStore = index_native.resetRealtimeStore;
|
|
71
|
+
exports.revokeSession = index_native.revokeSession;
|
|
72
|
+
exports.runExpression = index_native.runExpression;
|
|
73
|
+
exports.runExpressionMany = index_native.runExpressionMany;
|
|
74
|
+
exports.runQuery = index_native.runQuery;
|
|
75
|
+
exports.runQueryMany = index_native.runQueryMany;
|
|
76
|
+
exports.search = index_native.search;
|
|
77
|
+
exports.sendEmailOtp = index_native.sendEmailOtp;
|
|
78
|
+
exports.serverTimestamp = index_native.serverTimestamp;
|
|
79
|
+
exports.set = index_native.set;
|
|
80
|
+
exports.setFile = index_native.setFile;
|
|
81
|
+
exports.setMany = index_native.setMany;
|
|
82
|
+
exports.setPlatform = index_native.setPlatform;
|
|
83
|
+
exports.signAndSubmitTransaction = index_native.signAndSubmitTransaction;
|
|
84
|
+
exports.signInAnonymously = index_native.signInAnonymously;
|
|
85
|
+
exports.signMessage = index_native.signMessage;
|
|
86
|
+
exports.signSessionCreateMessage = index_native.signSessionCreateMessage;
|
|
87
|
+
exports.signTransaction = index_native.signTransaction;
|
|
88
|
+
exports.subscribe = index_native.subscribe;
|
|
89
|
+
exports.subscribeLiveView = index_native.subscribeView;
|
|
90
|
+
exports.useAuth = index_native.useAuth;
|
|
91
|
+
exports.verifyEmailOtp = index_native.verifyEmailOtp;
|
|
92
|
+
exports.withEffects = index_native.withEffects;
|
|
93
|
+
exports.wsDelete = index_native.wsDelete;
|
|
94
|
+
exports.wsGet = index_native.wsGet;
|
|
95
|
+
exports.wsGetMany = index_native.wsGetMany;
|
|
96
|
+
exports.wsQuery = index_native.wsQuery;
|
|
97
|
+
exports.wsSet = index_native.wsSet;
|
|
98
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.native.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|