@zerohash-sdk/fund-react 1.15.16 → 1.15.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
@@ -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.16", b = {
128
+ }, y = () => "1.15.17", 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, branding: s, isPay: c = !1, onCompleted: l, onFailed: u, onDeposit: d, onProvideInfo: f, onError: p, onClose: m, onLoaded: h, onEvent: g, ..._ }) => {
314
- let v = a(null);
315
- E(v, {
316
- isPay: c,
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: s,
319
- onCompleted: l,
320
- onFailed: u,
321
- onDeposit: d,
322
- onProvideInfo: f,
323
- onError: p,
324
- onClose: m,
325
- onLoaded: h,
326
- onEvent: g
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: b, retry: x } = D({
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 b ? /* @__PURE__ */ e(T, {
335
- onRetry: x,
336
- onClose: m
334
+ return x ? /* @__PURE__ */ e(T, {
335
+ onRetry: S,
336
+ onClose: h
337
337
  }) : n.createElement(k, {
338
- ref: v,
338
+ ref: b,
339
339
  jwt: t,
340
340
  env: r,
341
341
  sdkversion: y(),
342
342
  theme: i,
343
343
  appredirecturl: o,
344
- ispay: c ? "true" : void 0,
345
- ..._
344
+ oauthcallbackuri: s,
345
+ ispay: l ? "true" : void 0,
346
+ ...v
346
347
  });
347
348
  };
348
349
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerohash-sdk/fund-react",
3
- "version": "1.15.16",
3
+ "version": "1.15.17",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",