@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 +7 -0
- package/dist/index.js +21 -20
- package/package.json +1 -1
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,
|
|
312
|
-
let
|
|
313
|
-
w(
|
|
314
|
-
isPay:
|
|
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:
|
|
317
|
-
onCompleted:
|
|
318
|
-
onFailed:
|
|
319
|
-
onDeposit:
|
|
320
|
-
onProvideInfo:
|
|
321
|
-
onError:
|
|
322
|
-
onClose:
|
|
323
|
-
onLoaded:
|
|
324
|
-
onEvent:
|
|
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:
|
|
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
|
|
333
|
-
onRetry:
|
|
334
|
-
onClose:
|
|
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
|
-
|
|
341
|
-
|
|
340
|
+
appredirecturl: o,
|
|
341
|
+
ispay: c ? "true" : void 0,
|
|
342
|
+
..._
|
|
342
343
|
});
|
|
343
344
|
};
|
|
344
345
|
//#endregion
|