@zerohash-sdk/fund-withdrawals-react 0.14.5 → 0.14.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
@@ -87,6 +87,13 @@ declare interface FundWithdrawalsProps {
87
87
  * @default "auto"
88
88
  */
89
89
  theme?: Theme;
90
+ /**
91
+ * App link that brings the user back to the host app from another app, such
92
+ * as a wallet after a WalletConnect approval: an https universal/app link or a
93
+ * custom-scheme deep link. Set by the native SDK shells only. Browser
94
+ * embeddings ignore it.
95
+ */
96
+ appRedirectUrl?: string;
90
97
  /**
91
98
  * When true, the widget renders as the Payouts flow. When false or omitted,
92
99
  * renders as the standard Fund Withdrawals flow.
package/dist/index.js CHANGED
@@ -308,33 +308,34 @@ var S = {
308
308
  loadFailed: m,
309
309
  retry: r(() => v((e) => e + 1), [])
310
310
  };
311
- }, E = b("fund-withdrawals-web", "index.js", { eu: !0 }), D = "zerohash-fund-withdrawals", O = ({ jwt: t, env: r = "prod", theme: i, isPayouts: o = !1, onCompleted: s, onError: c, onClose: l, onLoaded: u, onEvent: d, ...f }) => {
312
- let p = a(null);
313
- w(p, {
314
- isPayouts: o,
311
+ }, E = b("fund-withdrawals-web", "index.js", { eu: !0 }), D = "zerohash-fund-withdrawals", O = ({ jwt: t, env: r = "prod", theme: i, appRedirectUrl: o, isPayouts: s = !1, onCompleted: c, onError: l, onClose: u, onLoaded: d, onEvent: f, ...p }) => {
312
+ let m = a(null);
313
+ w(m, {
314
+ isPayouts: s,
315
315
  theme: i,
316
- onCompleted: s,
317
- onError: c,
318
- onClose: l,
319
- onLoaded: u,
320
- onEvent: d
316
+ onCompleted: 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
- "is-payouts": o ? "true" : "false",
337
- ...f
336
+ appredirecturl: o,
337
+ "is-payouts": s ? "true" : "false",
338
+ ...p
338
339
  });
339
340
  };
340
341
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerohash-sdk/fund-withdrawals-react",
3
- "version": "0.14.5",
3
+ "version": "0.14.7",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",