@oobit/react-native-sdk 1.1.0 → 2.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/dist/WidgetSDK.d.ts.map +1 -1
- package/dist/WidgetSDK.js +12 -56
- package/dist/WidgetSDK.js.map +1 -1
- package/dist/config.d.ts +6 -7
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +21 -7
- package/dist/config.js.map +1 -1
- package/dist/index.d.ts +1 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -18
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +2 -36
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
- package/src/WidgetSDK.tsx +12 -68
- package/src/config.ts +21 -10
- package/src/index.ts +1 -42
- package/src/types.ts +3 -38
- package/dist/biometricUtils.d.ts +0 -66
- package/dist/biometricUtils.d.ts.map +0 -1
- package/dist/biometricUtils.js +0 -183
- package/dist/biometricUtils.js.map +0 -1
- package/dist/cryptoUtils.d.ts +0 -64
- package/dist/cryptoUtils.d.ts.map +0 -1
- package/dist/cryptoUtils.js +0 -123
- package/dist/cryptoUtils.js.map +0 -1
- package/src/cryptoUtils.ts +0 -131
package/dist/WidgetSDK.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetSDK.d.ts","sourceRoot":"","sources":["../src/WidgetSDK.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAON,MAAM,OAAO,CAAC;AAWf,OAAO,EAAyC,eAAe,EAAE,MAAM,SAAS,CAAC;AAIjF,MAAM,WAAW,YAAY;IAC3B,sCAAsC;IACtC,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,wBAAwB;IACxB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"WidgetSDK.d.ts","sourceRoot":"","sources":["../src/WidgetSDK.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAON,MAAM,OAAO,CAAC;AAWf,OAAO,EAAyC,eAAe,EAAE,MAAM,SAAS,CAAC;AAIjF,MAAM,WAAW,YAAY;IAC3B,sCAAsC;IACtC,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,wBAAwB;IACxB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,sFAqPrB,CAAC"}
|
package/dist/WidgetSDK.js
CHANGED
|
@@ -44,17 +44,7 @@ const react_native_webview_1 = require("react-native-webview");
|
|
|
44
44
|
const config_1 = require("./config");
|
|
45
45
|
const walletUtils_1 = require("./walletUtils");
|
|
46
46
|
const Clipboard = __importStar(require("expo-clipboard"));
|
|
47
|
-
exports.WidgetSDK = (0, react_1.forwardRef)(({ accessToken, userWalletAddress,
|
|
48
|
-
// Debug logger - only logs when debug is enabled
|
|
49
|
-
const log = debug
|
|
50
|
-
? (...args) => console.log("[WidgetSDK]", ...args)
|
|
51
|
-
: () => { };
|
|
52
|
-
const logError = debug
|
|
53
|
-
? (...args) => console.error("[WidgetSDK]", ...args)
|
|
54
|
-
: () => { };
|
|
55
|
-
const logWarn = debug
|
|
56
|
-
? (...args) => console.warn("[WidgetSDK]", ...args)
|
|
57
|
-
: () => { };
|
|
47
|
+
exports.WidgetSDK = (0, react_1.forwardRef)(({ accessToken, userWalletAddress, onError, onClose, onTransactionRequested, }, ref) => {
|
|
58
48
|
const webViewRef = (0, react_1.useRef)(null);
|
|
59
49
|
const [walletAvailable, setWalletAvailable] = (0, react_1.useState)(false);
|
|
60
50
|
const [isLoading, setIsLoading] = (0, react_1.useState)(true);
|
|
@@ -85,16 +75,11 @@ exports.WidgetSDK = (0, react_1.forwardRef)(({ accessToken, userWalletAddress, e
|
|
|
85
75
|
});
|
|
86
76
|
},
|
|
87
77
|
reload: () => {
|
|
88
|
-
log("Reloading widget");
|
|
89
78
|
setIsLoading(true);
|
|
90
79
|
hasLoadedOnce.current = false;
|
|
91
80
|
webViewRef.current?.reload();
|
|
92
81
|
},
|
|
93
82
|
}));
|
|
94
|
-
// Notify parent of loading state changes
|
|
95
|
-
(0, react_1.useEffect)(() => {
|
|
96
|
-
onLoadingChange?.(isLoading);
|
|
97
|
-
}, [isLoading, onLoadingChange]);
|
|
98
83
|
const checkWalletAvailability = async () => {
|
|
99
84
|
const available = await (0, walletUtils_1.isWalletAvailable)();
|
|
100
85
|
setWalletAvailable(available);
|
|
@@ -105,7 +90,6 @@ exports.WidgetSDK = (0, react_1.forwardRef)(({ accessToken, userWalletAddress, e
|
|
|
105
90
|
const handleMessage = (event) => {
|
|
106
91
|
try {
|
|
107
92
|
const message = JSON.parse(event.nativeEvent.data);
|
|
108
|
-
log("Received message:", message.type);
|
|
109
93
|
switch (message.type) {
|
|
110
94
|
case "widget:ready":
|
|
111
95
|
handleReady();
|
|
@@ -117,30 +101,24 @@ exports.WidgetSDK = (0, react_1.forwardRef)(({ accessToken, userWalletAddress, e
|
|
|
117
101
|
handleError(message);
|
|
118
102
|
break;
|
|
119
103
|
case "widget:close":
|
|
120
|
-
|
|
104
|
+
onClose?.();
|
|
121
105
|
break;
|
|
122
106
|
case "widget:transaction-requested":
|
|
123
107
|
handleTransactionRequested(message);
|
|
124
108
|
break;
|
|
125
109
|
case "widget:token-expired":
|
|
126
|
-
logError("Access token expired");
|
|
127
110
|
onError?.("TOKEN_EXPIRED", "Access token has expired");
|
|
128
111
|
break;
|
|
129
112
|
case "widget:copy-to-clipboard":
|
|
130
113
|
handleCopyToClipboard(message);
|
|
131
114
|
break;
|
|
132
|
-
default:
|
|
133
|
-
logWarn("Unknown message type:", message);
|
|
134
115
|
}
|
|
135
116
|
}
|
|
136
|
-
catch
|
|
137
|
-
logError("Failed to parse message:", error);
|
|
117
|
+
catch {
|
|
138
118
|
onError?.("PARSE_ERROR", "Failed to parse widget message");
|
|
139
119
|
}
|
|
140
120
|
};
|
|
141
121
|
const handleReady = () => {
|
|
142
|
-
log("Widget ready");
|
|
143
|
-
onReady?.();
|
|
144
122
|
// Send platform info to widget
|
|
145
123
|
sendMessageToWidget({
|
|
146
124
|
type: "native:platform-info",
|
|
@@ -151,7 +129,6 @@ exports.WidgetSDK = (0, react_1.forwardRef)(({ accessToken, userWalletAddress, e
|
|
|
151
129
|
});
|
|
152
130
|
};
|
|
153
131
|
const handleOpenWallet = async () => {
|
|
154
|
-
log("Opening native wallet...");
|
|
155
132
|
const success = await (0, walletUtils_1.openNativeWallet)();
|
|
156
133
|
// Notify widget of result
|
|
157
134
|
sendMessageToWidget({
|
|
@@ -163,32 +140,19 @@ exports.WidgetSDK = (0, react_1.forwardRef)(({ accessToken, userWalletAddress, e
|
|
|
163
140
|
if (message.type !== "widget:error")
|
|
164
141
|
return;
|
|
165
142
|
const { code, message: errorMessage } = message.payload;
|
|
166
|
-
logError("Widget error:", code, errorMessage);
|
|
167
143
|
onError?.(code, errorMessage);
|
|
168
144
|
};
|
|
169
|
-
const handleClose = () => {
|
|
170
|
-
log("Widget closed");
|
|
171
|
-
onClose?.();
|
|
172
|
-
};
|
|
173
145
|
const handleTransactionRequested = (message) => {
|
|
174
146
|
if (message.type !== "widget:transaction-requested")
|
|
175
147
|
return;
|
|
176
148
|
const { token, cryptoAmount, depositAddress, depositAddressTag } = message.payload;
|
|
177
|
-
|
|
178
|
-
token: token.symbol,
|
|
179
|
-
cryptoAmount,
|
|
180
|
-
depositAddress,
|
|
181
|
-
});
|
|
182
|
-
onTransactionRequested?.(token, cryptoAmount, depositAddress, depositAddressTag);
|
|
149
|
+
onTransactionRequested(token, cryptoAmount, depositAddress, depositAddressTag);
|
|
183
150
|
};
|
|
184
151
|
/**
|
|
185
152
|
* Handle clipboard copy request from widget
|
|
186
|
-
* Copies text to device clipboard and sends result back to widget
|
|
187
153
|
*/
|
|
188
154
|
const handleCopyToClipboard = async (message) => {
|
|
189
155
|
const { text, label } = message.payload;
|
|
190
|
-
// Log only the label, never the actual text content (security)
|
|
191
|
-
log("Copy to clipboard requested:", label || "unlabeled");
|
|
192
156
|
try {
|
|
193
157
|
await Clipboard.setStringAsync(text);
|
|
194
158
|
sendMessageToWidget({
|
|
@@ -196,8 +160,7 @@ exports.WidgetSDK = (0, react_1.forwardRef)(({ accessToken, userWalletAddress, e
|
|
|
196
160
|
payload: { success: true, label },
|
|
197
161
|
});
|
|
198
162
|
}
|
|
199
|
-
catch
|
|
200
|
-
logError("Clipboard copy failed:", error);
|
|
163
|
+
catch {
|
|
201
164
|
sendMessageToWidget({
|
|
202
165
|
type: "native:clipboard-result",
|
|
203
166
|
payload: {
|
|
@@ -222,29 +185,25 @@ exports.WidgetSDK = (0, react_1.forwardRef)(({ accessToken, userWalletAddress, e
|
|
|
222
185
|
* Build the widget URL with query parameters
|
|
223
186
|
*/
|
|
224
187
|
const finalWidgetUrl = (0, react_1.useMemo)(() => {
|
|
225
|
-
const baseUrl = (0, config_1.getWidgetUrl)(
|
|
188
|
+
const baseUrl = (0, config_1.getWidgetUrl)(accessToken);
|
|
226
189
|
const params = new URLSearchParams({
|
|
227
190
|
token: accessToken,
|
|
228
191
|
platform: react_native_1.Platform.OS,
|
|
229
192
|
userWalletAddress: userWalletAddress,
|
|
230
193
|
});
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
return url;
|
|
234
|
-
}, [accessToken, userWalletAddress, environment]);
|
|
194
|
+
return `${baseUrl}?${params.toString()}`;
|
|
195
|
+
}, [accessToken, userWalletAddress]);
|
|
235
196
|
return (<react_native_1.View style={styles.container}>
|
|
236
197
|
<react_native_webview_1.WebView ref={webViewRef} style={styles.webview} source={{ uri: finalWidgetUrl }} onMessage={handleMessage} onLoadEnd={() => {
|
|
237
198
|
if (!hasLoadedOnce.current) {
|
|
238
199
|
hasLoadedOnce.current = true;
|
|
239
200
|
setIsLoading(false);
|
|
240
201
|
}
|
|
241
|
-
}} onError={(
|
|
242
|
-
const { nativeEvent } = syntheticEvent;
|
|
243
|
-
logError("WebView error:", nativeEvent);
|
|
202
|
+
}} onError={() => {
|
|
244
203
|
setIsLoading(false);
|
|
245
204
|
onError?.("WEBVIEW_ERROR", "Failed to load widget");
|
|
246
205
|
}}
|
|
247
|
-
//
|
|
206
|
+
// Allow external URLs to open in native apps
|
|
248
207
|
onShouldStartLoadWithRequest={(request) => {
|
|
249
208
|
const { url } = request;
|
|
250
209
|
// Allow wallet URLs to open in native apps
|
|
@@ -252,10 +211,7 @@ exports.WidgetSDK = (0, react_1.forwardRef)(({ accessToken, userWalletAddress, e
|
|
|
252
211
|
url.includes("pay.google.com") || // Google Wallet
|
|
253
212
|
url.includes("wallet.google.com") ||
|
|
254
213
|
url.includes("wallet.apple.com")) {
|
|
255
|
-
|
|
256
|
-
react_native_1.Linking.openURL(url).catch((err) => {
|
|
257
|
-
logError("Failed to open URL:", err);
|
|
258
|
-
});
|
|
214
|
+
react_native_1.Linking.openURL(url).catch(() => { });
|
|
259
215
|
return false; // Don't load in WebView
|
|
260
216
|
}
|
|
261
217
|
// Allow normal widget navigation
|
|
@@ -268,7 +224,7 @@ exports.WidgetSDK = (0, react_1.forwardRef)(({ accessToken, userWalletAddress, e
|
|
|
268
224
|
// Android specific
|
|
269
225
|
mixedContentMode="always"/>
|
|
270
226
|
{isLoading && (<react_native_1.View style={styles.loadingOverlay}>
|
|
271
|
-
<react_native_1.ActivityIndicator size="large" color=
|
|
227
|
+
<react_native_1.ActivityIndicator size="large" color="#007AFF"/>
|
|
272
228
|
</react_native_1.View>)}
|
|
273
229
|
</react_native_1.View>);
|
|
274
230
|
});
|
package/dist/WidgetSDK.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetSDK.js","sourceRoot":"","sources":["../src/WidgetSDK.tsx"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,+CAOe;AACf,+CAOsB;AACtB,+DAAoE;AACpE,qCAAwC;AAExC,+CAAoE;AACpE,0DAA4C;AAS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yB,CAAC,CAAC,IAAI,CAAC;IAChC,eAAe;IACf,OAAO,CAAC,CAAC,KAAK,CAAC,CACf,mCAAmC,CAAC,CAAC,IAAI,CAAC;IAC1C,mBAAmB;IACnB,gBAAgB,CAAC,QAAQ,EAE3B;QAAA,CAAC,SAAS,IAAI,CACZ,CAAC,mBAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CACjC;YAAA,CAAC,gCAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,EACjD;UAAA,EAAE,mBAAI,CAAC,CACR,CACH;MAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,MAAM,GAAG,yBAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,IAAI,EAAE,CAAC;KACR;IACD,OAAO,EAAE;QACP,IAAI,EAAE,CAAC;KACR;IACD,cAAc,EAAE;QACd,GAAG,yBAAU,CAAC,kBAAkB;QAChC,eAAe,EAAE,0BAA0B;QAC3C,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;KACrB;CACF,CAAC,CAAC"}
|
package/dist/config.d.ts
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Widget SDK Configuration
|
|
3
|
-
* Environment
|
|
3
|
+
* Environment detection based on access token prefix
|
|
4
4
|
*/
|
|
5
|
-
import { WidgetEnvironment } from "./types";
|
|
6
5
|
/**
|
|
7
6
|
* Widget URLs by environment
|
|
8
7
|
*/
|
|
9
8
|
export declare const WIDGET_URLS: {
|
|
10
|
-
readonly
|
|
9
|
+
readonly sandbox: "https://oobit-widget-dev.web.app";
|
|
11
10
|
readonly production: "https://oobit-widget.web.app";
|
|
12
11
|
};
|
|
13
12
|
/**
|
|
14
|
-
* Get the widget URL
|
|
15
|
-
* @param
|
|
16
|
-
* @returns The widget URL for the
|
|
13
|
+
* Get the widget URL based on the access token prefix
|
|
14
|
+
* @param accessToken - The access token (prefixed with sbx_ or prod_)
|
|
15
|
+
* @returns The widget URL for the corresponding environment
|
|
17
16
|
*/
|
|
18
|
-
export declare function getWidgetUrl(
|
|
17
|
+
export declare function getWidgetUrl(accessToken: string): string;
|
|
19
18
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH;;GAEG;AACH,eAAO,MAAM,WAAW;;;CAGd,CAAC;AAEX;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CASxD"}
|
package/dist/config.js
CHANGED
|
@@ -1,24 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* Widget SDK Configuration
|
|
4
|
-
* Environment
|
|
4
|
+
* Environment detection based on access token prefix
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.WIDGET_URLS = void 0;
|
|
8
8
|
exports.getWidgetUrl = getWidgetUrl;
|
|
9
|
+
/**
|
|
10
|
+
* Token prefixes that determine the environment
|
|
11
|
+
*/
|
|
12
|
+
const TOKEN_PREFIX = {
|
|
13
|
+
SANDBOX: "sbx_",
|
|
14
|
+
PRODUCTION: "prod_",
|
|
15
|
+
};
|
|
9
16
|
/**
|
|
10
17
|
* Widget URLs by environment
|
|
11
18
|
*/
|
|
12
19
|
exports.WIDGET_URLS = {
|
|
13
|
-
|
|
20
|
+
sandbox: "https://oobit-widget-dev.web.app",
|
|
14
21
|
production: "https://oobit-widget.web.app",
|
|
15
22
|
};
|
|
16
23
|
/**
|
|
17
|
-
* Get the widget URL
|
|
18
|
-
* @param
|
|
19
|
-
* @returns The widget URL for the
|
|
24
|
+
* Get the widget URL based on the access token prefix
|
|
25
|
+
* @param accessToken - The access token (prefixed with sbx_ or prod_)
|
|
26
|
+
* @returns The widget URL for the corresponding environment
|
|
20
27
|
*/
|
|
21
|
-
function getWidgetUrl(
|
|
22
|
-
|
|
28
|
+
function getWidgetUrl(accessToken) {
|
|
29
|
+
if (accessToken.startsWith(TOKEN_PREFIX.SANDBOX)) {
|
|
30
|
+
return exports.WIDGET_URLS.sandbox;
|
|
31
|
+
}
|
|
32
|
+
if (accessToken.startsWith(TOKEN_PREFIX.PRODUCTION)) {
|
|
33
|
+
return exports.WIDGET_URLS.production;
|
|
34
|
+
}
|
|
35
|
+
// Default to production for backwards compatibility
|
|
36
|
+
return exports.WIDGET_URLS.production;
|
|
23
37
|
}
|
|
24
38
|
//# sourceMappingURL=config.js.map
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAuBH,oCASC;AA9BD;;GAEG;AACH,MAAM,YAAY,GAAG;IACnB,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,OAAO;CACX,CAAC;AAEX;;GAEG;AACU,QAAA,WAAW,GAAG;IACzB,OAAO,EAAE,kCAAkC;IAC3C,UAAU,EAAE,8BAA8B;CAClC,CAAC;AAEX;;;;GAIG;AACH,SAAgB,YAAY,CAAC,WAAmB;IAC9C,IAAI,WAAW,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC;QACjD,OAAO,mBAAW,CAAC,OAAO,CAAC;IAC7B,CAAC;IACD,IAAI,WAAW,CAAC,UAAU,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC;QACpD,OAAO,mBAAW,CAAC,UAAU,CAAC;IAChC,CAAC;IACD,oDAAoD;IACpD,OAAO,mBAAW,CAAC,UAAU,CAAC;AAChC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Widget SDK - Public API
|
|
3
|
-
* Export all public components, types, and utilities
|
|
4
3
|
*/
|
|
5
4
|
export { WidgetSDK } from "./WidgetSDK";
|
|
6
5
|
export type { WidgetSDKRef } from "./WidgetSDK";
|
|
7
|
-
export type {
|
|
8
|
-
export { getWidgetUrl, WIDGET_URLS } from "./config";
|
|
9
|
-
export { MessageTypes, WALLET_URLS } from "./types";
|
|
10
|
-
export { isWalletAvailable, openNativeWallet } from "./walletUtils";
|
|
11
|
-
export { generateRandomHexKey, generateSessionCredentials, hexToBase64, } from "./cryptoUtils";
|
|
12
|
-
export type { SessionCredentials } from "./cryptoUtils";
|
|
6
|
+
export type { DepositToken, SDKErrorCode, WidgetSDKConfig, } from "./types";
|
|
13
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,YAAY,EACV,YAAY,EACZ,YAAY,EACZ,eAAe,GAChB,MAAM,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,26 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* Widget SDK - Public API
|
|
4
|
-
* Export all public components, types, and utilities
|
|
5
4
|
*/
|
|
6
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.
|
|
6
|
+
exports.WidgetSDK = void 0;
|
|
8
7
|
var WidgetSDK_1 = require("./WidgetSDK");
|
|
9
8
|
Object.defineProperty(exports, "WidgetSDK", { enumerable: true, get: function () { return WidgetSDK_1.WidgetSDK; } });
|
|
10
|
-
// Export constants
|
|
11
|
-
var config_1 = require("./config");
|
|
12
|
-
Object.defineProperty(exports, "getWidgetUrl", { enumerable: true, get: function () { return config_1.getWidgetUrl; } });
|
|
13
|
-
Object.defineProperty(exports, "WIDGET_URLS", { enumerable: true, get: function () { return config_1.WIDGET_URLS; } });
|
|
14
|
-
var types_1 = require("./types");
|
|
15
|
-
Object.defineProperty(exports, "MessageTypes", { enumerable: true, get: function () { return types_1.MessageTypes; } });
|
|
16
|
-
Object.defineProperty(exports, "WALLET_URLS", { enumerable: true, get: function () { return types_1.WALLET_URLS; } });
|
|
17
|
-
// Export wallet utilities
|
|
18
|
-
var walletUtils_1 = require("./walletUtils");
|
|
19
|
-
Object.defineProperty(exports, "isWalletAvailable", { enumerable: true, get: function () { return walletUtils_1.isWalletAvailable; } });
|
|
20
|
-
Object.defineProperty(exports, "openNativeWallet", { enumerable: true, get: function () { return walletUtils_1.openNativeWallet; } });
|
|
21
|
-
// Export crypto utilities (for advanced usage)
|
|
22
|
-
var cryptoUtils_1 = require("./cryptoUtils");
|
|
23
|
-
Object.defineProperty(exports, "generateRandomHexKey", { enumerable: true, get: function () { return cryptoUtils_1.generateRandomHexKey; } });
|
|
24
|
-
Object.defineProperty(exports, "generateSessionCredentials", { enumerable: true, get: function () { return cryptoUtils_1.generateSessionCredentials; } });
|
|
25
|
-
Object.defineProperty(exports, "hexToBase64", { enumerable: true, get: function () { return cryptoUtils_1.hexToBase64; } });
|
|
26
9
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,yCAAwC;AAA/B,sGAAA,SAAS,OAAA"}
|
package/dist/types.d.ts
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
export interface DepositToken {
|
|
10
10
|
symbol: string;
|
|
11
11
|
name: string;
|
|
12
|
-
iconUrl: string | null;
|
|
13
12
|
networkName: string;
|
|
13
|
+
chainId: number;
|
|
14
14
|
}
|
|
15
15
|
export type WidgetMessageType = "widget:ready" | "widget:open-wallet" | "widget:error" | "widget:close" | "widget:transaction-requested" | "widget:token-expired" | "widget:request-card-details-session" | "widget:copy-to-clipboard";
|
|
16
16
|
/**
|
|
@@ -114,12 +114,6 @@ export interface CopyToClipboardMessage extends BaseWidgetMessage {
|
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
export type WidgetMessage = WidgetReadyMessage | OpenWalletMessage | WidgetErrorMessage | WidgetCloseMessage | TransactionRequestedMessage | TokenExpiredMessage | RequestCardDetailsSessionMessage | CopyToClipboardMessage;
|
|
117
|
-
/**
|
|
118
|
-
* Widget environment configuration
|
|
119
|
-
* - 'development': Uses development/staging widget URL
|
|
120
|
-
* - 'production': Uses production widget URL
|
|
121
|
-
*/
|
|
122
|
-
export type WidgetEnvironment = "development" | "production";
|
|
123
117
|
/**
|
|
124
118
|
* Known SDK error codes
|
|
125
119
|
* - TOKEN_EXPIRED: The access token has expired
|
|
@@ -133,21 +127,8 @@ export type SDKErrorCode = "TOKEN_EXPIRED" | "PARSE_ERROR" | "WEBVIEW_ERROR";
|
|
|
133
127
|
export interface WidgetSDKConfig {
|
|
134
128
|
accessToken: string;
|
|
135
129
|
userWalletAddress: string;
|
|
136
|
-
/**
|
|
137
|
-
* Widget environment to use.
|
|
138
|
-
* - 'development': Uses https://oobit-widget-dev.web.app
|
|
139
|
-
* - 'production': Uses https://widget.oobit.com
|
|
140
|
-
* @default 'production'
|
|
141
|
-
*/
|
|
142
|
-
environment?: WidgetEnvironment;
|
|
143
|
-
/**
|
|
144
|
-
* Called when the widget is ready and loaded
|
|
145
|
-
*/
|
|
146
|
-
onReady?: () => void;
|
|
147
130
|
/**
|
|
148
131
|
* Called when an error occurs
|
|
149
|
-
* @param code - Error code (SDKErrorCode or custom widget error code)
|
|
150
|
-
* @param message - Human-readable error message
|
|
151
132
|
*/
|
|
152
133
|
onError?: (code: SDKErrorCode | string, message: string) => void;
|
|
153
134
|
/**
|
|
@@ -157,22 +138,7 @@ export interface WidgetSDKConfig {
|
|
|
157
138
|
/**
|
|
158
139
|
* Called when a crypto transaction is requested
|
|
159
140
|
*/
|
|
160
|
-
onTransactionRequested
|
|
161
|
-
/**
|
|
162
|
-
* Called when the loading state changes
|
|
163
|
-
* @param isLoading - Whether the widget is currently loading
|
|
164
|
-
*/
|
|
165
|
-
onLoadingChange?: (isLoading: boolean) => void;
|
|
166
|
-
/**
|
|
167
|
-
* Enable debug logging to console
|
|
168
|
-
* @default false
|
|
169
|
-
*/
|
|
170
|
-
debug?: boolean;
|
|
171
|
-
/**
|
|
172
|
-
* Custom color for the loading indicator
|
|
173
|
-
* @default "#007AFF"
|
|
174
|
-
*/
|
|
175
|
-
loadingIndicatorColor?: string;
|
|
141
|
+
onTransactionRequested: (token: DepositToken, cryptoAmount: string, depositAddress: string, depositAddressTag: string | null) => void;
|
|
176
142
|
}
|
|
177
143
|
/**
|
|
178
144
|
* Platform-specific wallet URLs
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,MAA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
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAsMH;;GAEG;AACU,QAAA,WAAW,GAAG;IACzB,GAAG,EAAE;QACH,OAAO,EAAE,YAAY,EAAE,yBAAyB;QAChD,QAAQ,EAAE,0BAA0B;KACrC;IACD,OAAO,EAAE;QACP,SAAS,EAAE,yCAAyC;QACpD,QAAQ,EAAE,2BAA2B;KACtC;CACO,CAAC;AAEX;;;;;;GAMG;AACU,QAAA,YAAY,GAAG;IAC1B,kBAAkB;IAClB,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,oBAAoB;IACjC,KAAK,EAAE,cAAc;IACrB,KAAK,EAAE,cAAc;IACrB,qBAAqB,EAAE,8BAA8B;IACrD,aAAa,EAAE,sBAAsB;IACrC,4BAA4B,EAAE,qCAAqC;IACnE,iBAAiB,EAAE,0BAA0B;IAC7C,kBAAkB;IAClB,aAAa,EAAE,sBAAsB;IACrC,aAAa,EAAE,sBAAsB;IACrC,YAAY,EAAE,qBAAqB;IACnC,aAAa,EAAE,sBAAsB;IACrC,oBAAoB,EAAE,6BAA6B;IACnD,gBAAgB,EAAE,yBAAyB;IAC3C,gBAAgB,EAAE,yBAAyB;CACnC,CAAC"}
|