@zerohash-sdk/fund-react 1.15.5 → 1.15.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
@@ -198,6 +198,13 @@ declare interface FundProps {
198
198
  * ```
199
199
  */
200
200
  theme?: Theme;
201
+ /**
202
+ * App link that brings the user back to the host app from another app, such
203
+ * as a wallet after a WalletConnect approval: an https universal/app link or a
204
+ * custom-scheme deep link. Set by the native SDK shells only. Browser
205
+ * embeddings ignore it.
206
+ */
207
+ appRedirectUrl?: string;
201
208
  /**
202
209
  * Live branding override (`{ theme?, colors?: { accent? } }`) for previewing an
203
210
  * unsaved draft theme (e.g. from a host theme editor). Pushed into the SDK and
package/dist/index.js CHANGED
@@ -308,37 +308,38 @@ var S = {
308
308
  loadFailed: m,
309
309
  retry: r(() => v((e) => e + 1), [])
310
310
  };
311
- }, E = b("fund-web", "index.js", { eu: !0 }), D = "zerohash-fund", O = ({ jwt: t, env: r = "prod", theme: i, branding: o, isPay: s = !1, onCompleted: c, onFailed: l, onDeposit: u, onProvideInfo: d, onError: f, onClose: p, onLoaded: m, onEvent: h, ...g }) => {
312
- let _ = a(null);
313
- w(_, {
314
- isPay: s,
311
+ }, E = b("fund-web", "index.js", { eu: !0 }), D = "zerohash-fund", O = ({ jwt: t, env: r = "prod", theme: i, appRedirectUrl: o, branding: s, isPay: c = !1, onCompleted: l, onFailed: u, onDeposit: d, onProvideInfo: f, onError: p, onClose: m, onLoaded: h, onEvent: g, ..._ }) => {
312
+ let v = a(null);
313
+ w(v, {
314
+ isPay: c,
315
315
  theme: i,
316
- branding: o,
317
- onCompleted: c,
318
- onFailed: l,
319
- onDeposit: u,
320
- onProvideInfo: d,
321
- onError: f,
322
- onClose: p,
323
- onLoaded: m,
324
- onEvent: h
316
+ branding: s,
317
+ onCompleted: l,
318
+ onFailed: u,
319
+ onDeposit: d,
320
+ onProvideInfo: f,
321
+ onError: p,
322
+ onClose: m,
323
+ onLoaded: h,
324
+ onEvent: g
325
325
  });
326
- let { loadFailed: v, retry: y } = T({
326
+ let { loadFailed: y, retry: b } = T({
327
327
  webComponentTag: D,
328
328
  scriptUrls: E,
329
329
  env: r,
330
330
  jwt: t
331
331
  });
332
- return v ? /* @__PURE__ */ e(C, {
333
- onRetry: y,
334
- onClose: p
332
+ return y ? /* @__PURE__ */ e(C, {
333
+ onRetry: b,
334
+ onClose: m
335
335
  }) : n.createElement(D, {
336
- ref: _,
336
+ ref: v,
337
337
  jwt: t,
338
338
  env: r,
339
339
  theme: i,
340
- ispay: s ? "true" : void 0,
341
- ...g
340
+ appredirecturl: o,
341
+ ispay: c ? "true" : void 0,
342
+ ..._
342
343
  });
343
344
  };
344
345
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerohash-sdk/fund-react",
3
- "version": "1.15.5",
3
+ "version": "1.15.6",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",