@zerohash-sdk/fund-react 1.15.16 → 1.15.18
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 +6 -0
- package/dist/index.js +22 -21
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -205,6 +205,12 @@ declare interface FundProps {
|
|
|
205
205
|
* embeddings ignore it.
|
|
206
206
|
*/
|
|
207
207
|
appRedirectUrl?: string;
|
|
208
|
+
/**
|
|
209
|
+
* App-scoped URI the native SDK receives the OAuth callback on, such as
|
|
210
|
+
* `connectsdk-oauth://com.partner.app`. Set by the Android SDK shell only.
|
|
211
|
+
* Browser embeddings ignore it.
|
|
212
|
+
*/
|
|
213
|
+
oauthCallbackUri?: string;
|
|
208
214
|
/**
|
|
209
215
|
* Live branding override (`{ theme?, colors?: { accent? } }`) for previewing an
|
|
210
216
|
* unsaved draft theme (e.g. from a host theme editor). Pushed into the SDK and
|
package/dist/index.js
CHANGED
|
@@ -125,7 +125,7 @@ var s = {
|
|
|
125
125
|
return E ? (T(E, !1), () => {
|
|
126
126
|
b = !0, C();
|
|
127
127
|
}) : m;
|
|
128
|
-
}, y = () => "1.15.
|
|
128
|
+
}, y = () => "1.15.18", b = {
|
|
129
129
|
local: {
|
|
130
130
|
BASE_URL: "/",
|
|
131
131
|
DEV: !1,
|
|
@@ -310,39 +310,40 @@ var w = {
|
|
|
310
310
|
loadFailed: m,
|
|
311
311
|
retry: r(() => _((e) => e + 1), [])
|
|
312
312
|
};
|
|
313
|
-
}, O = S("fund-web", "index.js", { eu: !0 }), k = "zerohash-fund", A = ({ jwt: t, env: r = "prod", theme: i, appRedirectUrl: o,
|
|
314
|
-
let
|
|
315
|
-
E(
|
|
316
|
-
isPay:
|
|
313
|
+
}, O = S("fund-web", "index.js", { eu: !0 }), k = "zerohash-fund", A = ({ jwt: t, env: r = "prod", theme: i, appRedirectUrl: o, oauthCallbackUri: s, branding: c, isPay: l = !1, onCompleted: u, onFailed: d, onDeposit: f, onProvideInfo: p, onError: m, onClose: h, onLoaded: g, onEvent: _, ...v }) => {
|
|
314
|
+
let b = a(null);
|
|
315
|
+
E(b, {
|
|
316
|
+
isPay: l,
|
|
317
317
|
theme: i,
|
|
318
|
-
branding:
|
|
319
|
-
onCompleted:
|
|
320
|
-
onFailed:
|
|
321
|
-
onDeposit:
|
|
322
|
-
onProvideInfo:
|
|
323
|
-
onError:
|
|
324
|
-
onClose:
|
|
325
|
-
onLoaded:
|
|
326
|
-
onEvent:
|
|
318
|
+
branding: c,
|
|
319
|
+
onCompleted: u,
|
|
320
|
+
onFailed: d,
|
|
321
|
+
onDeposit: f,
|
|
322
|
+
onProvideInfo: p,
|
|
323
|
+
onError: m,
|
|
324
|
+
onClose: h,
|
|
325
|
+
onLoaded: g,
|
|
326
|
+
onEvent: _
|
|
327
327
|
});
|
|
328
|
-
let { loadFailed:
|
|
328
|
+
let { loadFailed: x, retry: S } = D({
|
|
329
329
|
webComponentTag: k,
|
|
330
330
|
scriptUrls: O,
|
|
331
331
|
env: r,
|
|
332
332
|
jwt: t
|
|
333
333
|
});
|
|
334
|
-
return
|
|
335
|
-
onRetry:
|
|
336
|
-
onClose:
|
|
334
|
+
return x ? /* @__PURE__ */ e(T, {
|
|
335
|
+
onRetry: S,
|
|
336
|
+
onClose: h
|
|
337
337
|
}) : n.createElement(k, {
|
|
338
|
-
ref:
|
|
338
|
+
ref: b,
|
|
339
339
|
jwt: t,
|
|
340
340
|
env: r,
|
|
341
341
|
sdkversion: y(),
|
|
342
342
|
theme: i,
|
|
343
343
|
appredirecturl: o,
|
|
344
|
-
|
|
345
|
-
|
|
344
|
+
oauthcallbackuri: s,
|
|
345
|
+
ispay: l ? "true" : void 0,
|
|
346
|
+
...v
|
|
346
347
|
});
|
|
347
348
|
};
|
|
348
349
|
//#endregion
|