@zerohash-sdk/crypto-deposits-react 0.5.5 → 0.5.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 +15 -14
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -35,6 +35,13 @@ declare interface CryptoDepositsProps {
|
|
|
35
35
|
env?: Environment;
|
|
36
36
|
/** Theme mode for the Connect Crypto Deposits interface. @default "auto" */
|
|
37
37
|
theme?: Theme;
|
|
38
|
+
/**
|
|
39
|
+
* App link that brings the user back to the host app from another app, such
|
|
40
|
+
* as a wallet after a WalletConnect approval: an https universal/app link or a
|
|
41
|
+
* custom-scheme deep link. Set by the native SDK shells only. Browser
|
|
42
|
+
* embeddings ignore it.
|
|
43
|
+
*/
|
|
44
|
+
appRedirectUrl?: string;
|
|
38
45
|
/** Callback invoked when the crypto deposit flow is successfully completed. */
|
|
39
46
|
onCompleted?: (data: CryptoDepositsCompletedData) => void;
|
|
40
47
|
/**
|
package/dist/index.js
CHANGED
|
@@ -308,30 +308,31 @@ var S = {
|
|
|
308
308
|
loadFailed: m,
|
|
309
309
|
retry: r(() => v((e) => e + 1), [])
|
|
310
310
|
};
|
|
311
|
-
}, E = b("crypto-deposits-web", "index.js", { eu: !0 }), D = "zerohash-crypto-deposits", O = ({ jwt: t, env: r = "prod", theme: i,
|
|
312
|
-
let
|
|
313
|
-
w(
|
|
311
|
+
}, E = b("crypto-deposits-web", "index.js", { eu: !0 }), D = "zerohash-crypto-deposits", O = ({ jwt: t, env: r = "prod", theme: i, appRedirectUrl: o, onCompleted: s, onFailed: c, onDeposit: l, onError: u, onClose: d, onLoaded: f, onEvent: p, ...m }) => {
|
|
312
|
+
let h = a(null);
|
|
313
|
+
w(h, {
|
|
314
314
|
theme: i,
|
|
315
|
-
onCompleted:
|
|
316
|
-
onFailed:
|
|
317
|
-
onDeposit:
|
|
318
|
-
onError:
|
|
319
|
-
onClose:
|
|
320
|
-
onLoaded:
|
|
321
|
-
onEvent:
|
|
315
|
+
onCompleted: s,
|
|
316
|
+
onFailed: c,
|
|
317
|
+
onDeposit: l,
|
|
318
|
+
onError: u,
|
|
319
|
+
onClose: d,
|
|
320
|
+
onLoaded: f,
|
|
321
|
+
onEvent: p
|
|
322
322
|
});
|
|
323
|
-
let { loadFailed:
|
|
323
|
+
let { loadFailed: g, retry: _ } = T({
|
|
324
324
|
webComponentTag: D,
|
|
325
325
|
scriptUrls: E,
|
|
326
326
|
env: r,
|
|
327
327
|
jwt: t
|
|
328
328
|
});
|
|
329
|
-
return
|
|
330
|
-
ref:
|
|
329
|
+
return g ? /* @__PURE__ */ e(C, { onRetry: _ }) : n.createElement(D, {
|
|
330
|
+
ref: h,
|
|
331
331
|
jwt: t,
|
|
332
332
|
env: r,
|
|
333
333
|
theme: i,
|
|
334
|
-
|
|
334
|
+
appredirecturl: o,
|
|
335
|
+
...m
|
|
335
336
|
});
|
|
336
337
|
};
|
|
337
338
|
//#endregion
|