@zerohash-sdk/crypto-deposits-react 0.5.5 → 0.5.6

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 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, onCompleted: o, onFailed: s, onDeposit: c, onError: l, onClose: u, onLoaded: d, onEvent: f, ...p }) => {
312
- let m = a(null);
313
- w(m, {
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: o,
316
- onFailed: s,
317
- onDeposit: c,
318
- onError: l,
319
- onClose: u,
320
- onLoaded: d,
321
- onEvent: f
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: h, retry: g } = T({
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 h ? /* @__PURE__ */ e(C, { onRetry: g }) : n.createElement(D, {
330
- ref: m,
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
- ...p
334
+ appredirecturl: o,
335
+ ...m
335
336
  });
336
337
  };
337
338
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerohash-sdk/crypto-deposits-react",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",