@zerohash-sdk/fund-withdrawals-react 0.14.16 → 0.14.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 +18 -17
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -94,6 +94,12 @@ declare interface FundWithdrawalsProps {
|
|
|
94
94
|
* embeddings ignore it.
|
|
95
95
|
*/
|
|
96
96
|
appRedirectUrl?: string;
|
|
97
|
+
/**
|
|
98
|
+
* App-scoped URI the native SDK receives the OAuth callback on, such as
|
|
99
|
+
* `connectsdk-oauth://com.partner.app`. Set by the Android SDK shell only.
|
|
100
|
+
* Browser embeddings ignore it.
|
|
101
|
+
*/
|
|
102
|
+
oauthCallbackUri?: string;
|
|
97
103
|
/**
|
|
98
104
|
* When true, the widget renders as the Payouts flow. When false or omitted,
|
|
99
105
|
* renders as the standard Fund Withdrawals flow.
|
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 = () => "0.14.
|
|
128
|
+
}, y = () => "0.14.18", b = {
|
|
129
129
|
local: {
|
|
130
130
|
BASE_URL: "/",
|
|
131
131
|
DEV: !1,
|
|
@@ -310,35 +310,36 @@ var w = {
|
|
|
310
310
|
loadFailed: m,
|
|
311
311
|
retry: r(() => _((e) => e + 1), [])
|
|
312
312
|
};
|
|
313
|
-
}, O = S("fund-withdrawals-web", "index.js", { eu: !0 }), k = "zerohash-fund-withdrawals", A = ({ jwt: t, env: r = "prod", theme: i, appRedirectUrl: o,
|
|
314
|
-
let
|
|
315
|
-
E(
|
|
316
|
-
isPayouts:
|
|
313
|
+
}, O = S("fund-withdrawals-web", "index.js", { eu: !0 }), k = "zerohash-fund-withdrawals", A = ({ jwt: t, env: r = "prod", theme: i, appRedirectUrl: o, oauthCallbackUri: s, isPayouts: c = !1, onCompleted: l, onError: u, onClose: d, onLoaded: f, onEvent: p, ...m }) => {
|
|
314
|
+
let h = a(null);
|
|
315
|
+
E(h, {
|
|
316
|
+
isPayouts: c,
|
|
317
317
|
theme: i,
|
|
318
|
-
onCompleted:
|
|
319
|
-
onError:
|
|
320
|
-
onClose:
|
|
321
|
-
onLoaded:
|
|
322
|
-
onEvent:
|
|
318
|
+
onCompleted: l,
|
|
319
|
+
onError: u,
|
|
320
|
+
onClose: d,
|
|
321
|
+
onLoaded: f,
|
|
322
|
+
onEvent: p
|
|
323
323
|
});
|
|
324
|
-
let { loadFailed:
|
|
324
|
+
let { loadFailed: g, retry: _ } = D({
|
|
325
325
|
webComponentTag: k,
|
|
326
326
|
scriptUrls: O,
|
|
327
327
|
env: r,
|
|
328
328
|
jwt: t
|
|
329
329
|
});
|
|
330
|
-
return
|
|
331
|
-
onRetry:
|
|
332
|
-
onClose:
|
|
330
|
+
return g ? /* @__PURE__ */ e(T, {
|
|
331
|
+
onRetry: _,
|
|
332
|
+
onClose: d
|
|
333
333
|
}) : n.createElement(k, {
|
|
334
|
-
ref:
|
|
334
|
+
ref: h,
|
|
335
335
|
jwt: t,
|
|
336
336
|
env: r,
|
|
337
337
|
sdkversion: y(),
|
|
338
338
|
theme: i,
|
|
339
339
|
appredirecturl: o,
|
|
340
|
-
|
|
341
|
-
|
|
340
|
+
oauthcallbackuri: s,
|
|
341
|
+
"is-payouts": c ? "true" : "false",
|
|
342
|
+
...m
|
|
342
343
|
});
|
|
343
344
|
};
|
|
344
345
|
//#endregion
|