@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 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, onCompleted: o, onFailed: s, onError: c, onClose: l, onLoaded: u, onEvent: d, ...f }) => {
312
- let p = a(null);
313
- w(p, {
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: o,
316
- onFailed: s,
317
- onError: c,
318
- onClose: l,
319
- onLoaded: u,
320
- onEvent: d
315
+ onCompleted: s,
316
+ onFailed: c,
317
+ onError: l,
318
+ onClose: u,
319
+ onLoaded: d,
320
+ onEvent: f
321
321
  });
322
- let { loadFailed: m, retry: h } = T({
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 m ? /* @__PURE__ */ e(C, {
329
- onRetry: h,
330
- onClose: l
328
+ return h ? /* @__PURE__ */ e(C, {
329
+ onRetry: g,
330
+ onClose: u
331
331
  }) : n.createElement(D, {
332
- ref: p,
332
+ ref: m,
333
333
  jwt: t,
334
334
  env: r,
335
335
  theme: i,
336
- ...f
336
+ appredirecturl: o,
337
+ ...p
337
338
  });
338
339
  };
339
340
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerohash-sdk/crypto-withdrawals-react",
3
- "version": "1.15.5",
3
+ "version": "1.15.7",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",