@zerohash-sdk/fund-withdrawals-react 0.14.16 → 0.14.17

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
@@ -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.16", b = {
128
+ }, y = () => "0.14.17", 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, isPayouts: s = !1, onCompleted: c, onError: l, onClose: u, onLoaded: d, onEvent: f, ...p }) => {
314
- let m = a(null);
315
- E(m, {
316
- isPayouts: s,
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: c,
319
- onError: l,
320
- onClose: u,
321
- onLoaded: d,
322
- onEvent: f
318
+ onCompleted: l,
319
+ onError: u,
320
+ onClose: d,
321
+ onLoaded: f,
322
+ onEvent: p
323
323
  });
324
- let { loadFailed: h, retry: g } = D({
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 h ? /* @__PURE__ */ e(T, {
331
- onRetry: g,
332
- onClose: u
330
+ return g ? /* @__PURE__ */ e(T, {
331
+ onRetry: _,
332
+ onClose: d
333
333
  }) : n.createElement(k, {
334
- ref: m,
334
+ ref: h,
335
335
  jwt: t,
336
336
  env: r,
337
337
  sdkversion: y(),
338
338
  theme: i,
339
339
  appredirecturl: o,
340
- "is-payouts": s ? "true" : "false",
341
- ...p
340
+ oauthcallbackuri: s,
341
+ "is-payouts": c ? "true" : "false",
342
+ ...m
342
343
  });
343
344
  };
344
345
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerohash-sdk/fund-withdrawals-react",
3
- "version": "0.14.16",
3
+ "version": "0.14.17",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",