@zerohash-sdk/crypto-withdrawals-react 1.15.16 → 1.15.18
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.d.ts +6 -0
- package/dist/index.js +17 -16
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -143,6 +143,12 @@ declare interface CryptoWithdrawalsProps {
|
|
|
143
143
|
* embeddings ignore it.
|
|
144
144
|
*/
|
|
145
145
|
appRedirectUrl?: string;
|
|
146
|
+
/**
|
|
147
|
+
* App-scoped URI the native SDK receives the OAuth callback on, such as
|
|
148
|
+
* `connectsdk-oauth://com.partner.app`. Set by the Android SDK shell only.
|
|
149
|
+
* Browser embeddings ignore it.
|
|
150
|
+
*/
|
|
151
|
+
oauthCallbackUri?: string;
|
|
146
152
|
/**
|
|
147
153
|
* Callback invoked when the crypto withdrawal flow is successfully completed.
|
|
148
154
|
*
|
package/dist/index.js
CHANGED
|
@@ -125,7 +125,7 @@ var s = {
|
|
|
125
125
|
return E ? (T(E, !1), () => {
|
|
126
126
|
b = !0, C();
|
|
127
127
|
}) : m;
|
|
128
|
-
}, y = () => "1.15.
|
|
128
|
+
}, y = () => "1.15.18", b = {
|
|
129
129
|
local: {
|
|
130
130
|
BASE_URL: "/",
|
|
131
131
|
DEV: !1,
|
|
@@ -310,34 +310,35 @@ var w = {
|
|
|
310
310
|
loadFailed: m,
|
|
311
311
|
retry: r(() => _((e) => e + 1), [])
|
|
312
312
|
};
|
|
313
|
-
}, O = S("crypto-withdrawals-web", "index.js", { eu: !0 }), k = "zerohash-crypto-withdrawals", A = ({ jwt: t, env: r = "prod", theme: i, appRedirectUrl: o,
|
|
314
|
-
let
|
|
315
|
-
E(
|
|
313
|
+
}, O = S("crypto-withdrawals-web", "index.js", { eu: !0 }), k = "zerohash-crypto-withdrawals", A = ({ jwt: t, env: r = "prod", theme: i, appRedirectUrl: o, oauthCallbackUri: s, onCompleted: c, onFailed: l, onError: u, onClose: d, onLoaded: f, onEvent: p, ...m }) => {
|
|
314
|
+
let h = a(null);
|
|
315
|
+
E(h, {
|
|
316
316
|
theme: i,
|
|
317
|
-
onCompleted:
|
|
318
|
-
onFailed:
|
|
319
|
-
onError:
|
|
320
|
-
onClose:
|
|
321
|
-
onLoaded:
|
|
322
|
-
onEvent:
|
|
317
|
+
onCompleted: c,
|
|
318
|
+
onFailed: l,
|
|
319
|
+
onError: u,
|
|
320
|
+
onClose: d,
|
|
321
|
+
onLoaded: f,
|
|
322
|
+
onEvent: p
|
|
323
323
|
});
|
|
324
|
-
let { loadFailed:
|
|
324
|
+
let { loadFailed: g, retry: _ } = D({
|
|
325
325
|
webComponentTag: k,
|
|
326
326
|
scriptUrls: O,
|
|
327
327
|
env: r,
|
|
328
328
|
jwt: t
|
|
329
329
|
});
|
|
330
|
-
return
|
|
331
|
-
onRetry:
|
|
332
|
-
onClose:
|
|
330
|
+
return g ? /* @__PURE__ */ e(T, {
|
|
331
|
+
onRetry: _,
|
|
332
|
+
onClose: d
|
|
333
333
|
}) : n.createElement(k, {
|
|
334
|
-
ref:
|
|
334
|
+
ref: h,
|
|
335
335
|
jwt: t,
|
|
336
336
|
env: r,
|
|
337
337
|
sdkversion: y(),
|
|
338
338
|
theme: i,
|
|
339
339
|
appredirecturl: o,
|
|
340
|
-
|
|
340
|
+
oauthcallbackuri: s,
|
|
341
|
+
...m
|
|
341
342
|
});
|
|
342
343
|
};
|
|
343
344
|
//#endregion
|