@zerohash-sdk/crypto-withdrawals-react 1.15.5 → 1.15.7
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 +7 -0
- package/dist/index.js +16 -15
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -129,6 +129,13 @@ declare interface CryptoWithdrawalsProps {
|
|
|
129
129
|
* ```
|
|
130
130
|
*/
|
|
131
131
|
theme?: Theme;
|
|
132
|
+
/**
|
|
133
|
+
* App link that brings the user back to the host app from another app, such
|
|
134
|
+
* as a wallet after a WalletConnect approval: an https universal/app link or a
|
|
135
|
+
* custom-scheme deep link. Set by the native SDK shells only. Browser
|
|
136
|
+
* embeddings ignore it.
|
|
137
|
+
*/
|
|
138
|
+
appRedirectUrl?: string;
|
|
132
139
|
/**
|
|
133
140
|
* Callback invoked when the crypto withdrawal flow is successfully completed.
|
|
134
141
|
*
|
package/dist/index.js
CHANGED
|
@@ -308,32 +308,33 @@ var S = {
|
|
|
308
308
|
loadFailed: m,
|
|
309
309
|
retry: r(() => v((e) => e + 1), [])
|
|
310
310
|
};
|
|
311
|
-
}, E = b("crypto-withdrawals-web", "index.js", { eu: !0 }), D = "zerohash-crypto-withdrawals", O = ({ jwt: t, env: r = "prod", theme: i,
|
|
312
|
-
let
|
|
313
|
-
w(
|
|
311
|
+
}, E = b("crypto-withdrawals-web", "index.js", { eu: !0 }), D = "zerohash-crypto-withdrawals", O = ({ jwt: t, env: r = "prod", theme: i, appRedirectUrl: o, onCompleted: s, onFailed: c, onError: l, onClose: u, onLoaded: d, onEvent: f, ...p }) => {
|
|
312
|
+
let m = a(null);
|
|
313
|
+
w(m, {
|
|
314
314
|
theme: i,
|
|
315
|
-
onCompleted:
|
|
316
|
-
onFailed:
|
|
317
|
-
onError:
|
|
318
|
-
onClose:
|
|
319
|
-
onLoaded:
|
|
320
|
-
onEvent:
|
|
315
|
+
onCompleted: s,
|
|
316
|
+
onFailed: c,
|
|
317
|
+
onError: l,
|
|
318
|
+
onClose: u,
|
|
319
|
+
onLoaded: d,
|
|
320
|
+
onEvent: f
|
|
321
321
|
});
|
|
322
|
-
let { loadFailed:
|
|
322
|
+
let { loadFailed: h, retry: g } = T({
|
|
323
323
|
webComponentTag: D,
|
|
324
324
|
scriptUrls: E,
|
|
325
325
|
env: r,
|
|
326
326
|
jwt: t
|
|
327
327
|
});
|
|
328
|
-
return
|
|
329
|
-
onRetry:
|
|
330
|
-
onClose:
|
|
328
|
+
return h ? /* @__PURE__ */ e(C, {
|
|
329
|
+
onRetry: g,
|
|
330
|
+
onClose: u
|
|
331
331
|
}) : n.createElement(D, {
|
|
332
|
-
ref:
|
|
332
|
+
ref: m,
|
|
333
333
|
jwt: t,
|
|
334
334
|
env: r,
|
|
335
335
|
theme: i,
|
|
336
|
-
|
|
336
|
+
appredirecturl: o,
|
|
337
|
+
...p
|
|
337
338
|
});
|
|
338
339
|
};
|
|
339
340
|
//#endregion
|