@zerohash-sdk/crypto-deposits-react 0.5.16 → 0.5.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 CHANGED
@@ -42,6 +42,12 @@ declare interface CryptoDepositsProps {
42
42
  * embeddings ignore it.
43
43
  */
44
44
  appRedirectUrl?: string;
45
+ /**
46
+ * App-scoped URI the native SDK receives the OAuth callback on, such as
47
+ * `connectsdk-oauth://com.partner.app`. Set by the Android SDK shell only.
48
+ * Browser embeddings ignore it.
49
+ */
50
+ oauthCallbackUri?: string;
45
51
  /** Callback invoked when the crypto deposit flow is successfully completed. */
46
52
  onCompleted?: (data: CryptoDepositsCompletedData) => void;
47
53
  /**
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.5.16", b = {
128
+ }, y = () => "0.5.18", b = {
129
129
  local: {
130
130
  BASE_URL: "/",
131
131
  DEV: !1,
@@ -310,32 +310,33 @@ var w = {
310
310
  loadFailed: m,
311
311
  retry: r(() => _((e) => e + 1), [])
312
312
  };
313
- }, O = S("crypto-deposits-web", "index.js", { eu: !0 }), k = "zerohash-crypto-deposits", A = ({ jwt: t, env: r = "prod", theme: i, appRedirectUrl: o, onCompleted: s, onFailed: c, onDeposit: l, onError: u, onClose: d, onLoaded: f, onEvent: p, ...m }) => {
314
- let h = a(null);
315
- E(h, {
313
+ }, O = S("crypto-deposits-web", "index.js", { eu: !0 }), k = "zerohash-crypto-deposits", A = ({ jwt: t, env: r = "prod", theme: i, appRedirectUrl: o, oauthCallbackUri: s, onCompleted: c, onFailed: l, onDeposit: u, onError: d, onClose: f, onLoaded: p, onEvent: m, ...h }) => {
314
+ let g = a(null);
315
+ E(g, {
316
316
  theme: i,
317
- onCompleted: s,
318
- onFailed: c,
319
- onDeposit: l,
320
- onError: u,
321
- onClose: d,
322
- onLoaded: f,
323
- onEvent: p
317
+ onCompleted: c,
318
+ onFailed: l,
319
+ onDeposit: u,
320
+ onError: d,
321
+ onClose: f,
322
+ onLoaded: p,
323
+ onEvent: m
324
324
  });
325
- let { loadFailed: g, retry: _ } = D({
325
+ let { loadFailed: _, retry: v } = D({
326
326
  webComponentTag: k,
327
327
  scriptUrls: O,
328
328
  env: r,
329
329
  jwt: t
330
330
  });
331
- return g ? /* @__PURE__ */ e(T, { onRetry: _ }) : n.createElement(k, {
332
- ref: h,
331
+ return _ ? /* @__PURE__ */ e(T, { onRetry: v }) : n.createElement(k, {
332
+ ref: g,
333
333
  jwt: t,
334
334
  env: r,
335
335
  sdkversion: y(),
336
336
  theme: i,
337
337
  appredirecturl: o,
338
- ...m
338
+ oauthcallbackuri: s,
339
+ ...h
339
340
  });
340
341
  };
341
342
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerohash-sdk/crypto-deposits-react",
3
- "version": "0.5.16",
3
+ "version": "0.5.18",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",