@zerohash-sdk/crypto-withdrawals-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 CHANGED
@@ -143,6 +143,12 @@ declare interface CryptoWithdrawalsProps {
143
143
  * embeddings ignore it.
144
144
  */
145
145
  appRedirectUrl?: string;
146
+ /**
147
+ * App-scoped URI the native SDK receives the OAuth callback on, such as
148
+ * `connectsdk-oauth://com.partner.app`. Set by the Android SDK shell only.
149
+ * Browser embeddings ignore it.
150
+ */
151
+ oauthCallbackUri?: string;
146
152
  /**
147
153
  * Callback invoked when the crypto withdrawal flow is successfully completed.
148
154
  *
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.18", b = {
129
129
  local: {
130
130
  BASE_URL: "/",
131
131
  DEV: !1,
@@ -310,34 +310,35 @@ var w = {
310
310
  loadFailed: m,
311
311
  retry: r(() => _((e) => e + 1), [])
312
312
  };
313
- }, O = S("crypto-withdrawals-web", "index.js", { eu: !0 }), k = "zerohash-crypto-withdrawals", A = ({ jwt: t, env: r = "prod", theme: i, appRedirectUrl: o, onCompleted: s, onFailed: c, onError: l, onClose: u, onLoaded: d, onEvent: f, ...p }) => {
314
- let m = a(null);
315
- E(m, {
313
+ }, O = S("crypto-withdrawals-web", "index.js", { eu: !0 }), k = "zerohash-crypto-withdrawals", A = ({ jwt: t, env: r = "prod", theme: i, appRedirectUrl: o, oauthCallbackUri: s, onCompleted: c, onFailed: l, onError: u, onClose: d, onLoaded: f, onEvent: p, ...m }) => {
314
+ let h = a(null);
315
+ E(h, {
316
316
  theme: i,
317
- onCompleted: s,
318
- onFailed: c,
319
- onError: l,
320
- onClose: u,
321
- onLoaded: d,
322
- onEvent: f
317
+ onCompleted: c,
318
+ onFailed: 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
- ...p
340
+ oauthcallbackuri: s,
341
+ ...m
341
342
  });
342
343
  };
343
344
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerohash-sdk/crypto-withdrawals-react",
3
- "version": "1.15.16",
3
+ "version": "1.15.18",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",