@paywithglide/glide-react 0.0.41 → 0.0.42

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.
@@ -133,6 +133,7 @@ export type GlideDepositOptions = {
133
133
  showOnrampFirst?: boolean;
134
134
  debitCardAlias?: DebitCardAlias;
135
135
  copyOverrides?: Record<string, string>;
136
+ stableDepositAddressKey?: string;
136
137
  theme?: GlideWidgetTheme;
137
138
  popupsBlocked?: boolean;
138
139
  baseUrl?: string;
package/dist/glide.js CHANGED
@@ -1,31 +1,31 @@
1
1
  var _ = Object.defineProperty;
2
2
  var ee = (s, t, e) => t in s ? _(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
3
- var W = (s, t, e) => ee(s, typeof t != "symbol" ? t + "" : t, e);
4
- import { useMemo as B } from "react";
3
+ var B = (s, t, e) => ee(s, typeof t != "symbol" ? t + "" : t, e);
4
+ import { useMemo as O } from "react";
5
5
  function te(s, { strict: t = !0 } = {}) {
6
6
  return !s || typeof s != "string" ? !1 : t ? /^0x[0-9a-fA-F]*$/.test(s) : s.startsWith("0x");
7
7
  }
8
- function N(s) {
8
+ function K(s) {
9
9
  return te(s, { strict: !1 }) ? Math.ceil((s.length - 2) / 2) : s.length;
10
10
  }
11
- const K = "2.21.51";
12
- let G = {
11
+ const N = "2.21.51";
12
+ let W = {
13
13
  getDocsUrl: ({ docsBaseUrl: s, docsPath: t = "", docsSlug: e }) => t ? `${s ?? "https://viem.sh"}${t}${e ? `#${e}` : ""}` : void 0,
14
- version: `viem@${K}`
14
+ version: `viem@${N}`
15
15
  };
16
- class A extends Error {
16
+ class z extends Error {
17
17
  constructor(t, e = {}) {
18
18
  var a;
19
19
  const i = (() => {
20
20
  var n;
21
- return e.cause instanceof A ? e.cause.details : (n = e.cause) != null && n.message ? e.cause.message : e.details;
22
- })(), o = e.cause instanceof A && e.cause.docsPath || e.docsPath, r = (a = G.getDocsUrl) == null ? void 0 : a.call(G, { ...e, docsPath: o }), p = [
21
+ return e.cause instanceof z ? e.cause.details : (n = e.cause) != null && n.message ? e.cause.message : e.details;
22
+ })(), o = e.cause instanceof z && e.cause.docsPath || e.docsPath, r = (a = W.getDocsUrl) == null ? void 0 : a.call(W, { ...e, docsPath: o }), p = [
23
23
  t || "An error occurred.",
24
24
  "",
25
25
  ...e.metaMessages ? [...e.metaMessages, ""] : [],
26
26
  ...r ? [`Docs: ${r}`] : [],
27
27
  ...i ? [`Details: ${i}`] : [],
28
- ...G.version ? [`Version: ${G.version}`] : []
28
+ ...W.version ? [`Version: ${W.version}`] : []
29
29
  ].join(`
30
30
  `);
31
31
  super(p, e.cause ? { cause: e.cause } : void 0), Object.defineProperty(this, "details", {
@@ -58,7 +58,7 @@ class A extends Error {
58
58
  configurable: !0,
59
59
  writable: !0,
60
60
  value: "BaseError"
61
- }), this.details = i, this.docsPath = o, this.metaMessages = e.metaMessages, this.name = e.name ?? this.name, this.shortMessage = t, this.version = K;
61
+ }), this.details = i, this.docsPath = o, this.metaMessages = e.metaMessages, this.name = e.name ?? this.name, this.shortMessage = t, this.version = N;
62
62
  }
63
63
  walk(t) {
64
64
  return F(this, t);
@@ -67,12 +67,12 @@ class A extends Error {
67
67
  function F(s, t) {
68
68
  return t != null && t(s) ? s : s && typeof s == "object" && "cause" in s && s.cause !== void 0 ? F(s.cause, t) : t ? null : s;
69
69
  }
70
- class V extends A {
70
+ class V extends z {
71
71
  constructor({ size: t, targetSize: e, type: i }) {
72
72
  super(`${i.charAt(0).toUpperCase()}${i.slice(1).toLowerCase()} size (${t}) exceeds padding size (${e}).`, { name: "SizeExceedsPaddingSizeError" });
73
73
  }
74
74
  }
75
- function H(s, { dir: t, size: e = 32 } = {}) {
75
+ function L(s, { dir: t, size: e = 32 } = {}) {
76
76
  return typeof s == "string" ? se(s, { dir: t, size: e }) : ie(s, { dir: t, size: e });
77
77
  }
78
78
  function se(s, { dir: t, size: e = 32 } = {}) {
@@ -103,20 +103,20 @@ function ie(s, { dir: t, size: e = 32 } = {}) {
103
103
  }
104
104
  return i;
105
105
  }
106
- class oe extends A {
106
+ class oe extends z {
107
107
  constructor({ max: t, min: e, signed: i, size: o, value: r }) {
108
108
  super(`Number "${r}" is not in safe ${o ? `${o * 8}-bit ${i ? "signed" : "unsigned"} ` : ""}integer range ${t ? `(${e} to ${t})` : `(above ${e})`}`, { name: "IntegerOutOfRangeError" });
109
109
  }
110
110
  }
111
- class re extends A {
111
+ class re extends z {
112
112
  constructor({ givenSize: t, maxSize: e }) {
113
113
  super(`Size cannot exceed ${e} bytes. Given size: ${t} bytes.`, { name: "SizeOverflowError" });
114
114
  }
115
115
  }
116
116
  function q(s, { size: t }) {
117
- if (N(s) > t)
117
+ if (K(s) > t)
118
118
  throw new re({
119
- givenSize: N(s),
119
+ givenSize: K(s),
120
120
  maxSize: t
121
121
  });
122
122
  }
@@ -126,14 +126,14 @@ function ae(s, t = {}) {
126
126
  }
127
127
  function pe(s, t = {}) {
128
128
  const e = `0x${Number(s)}`;
129
- return typeof t.size == "number" ? (q(e, { size: t.size }), H(e, { size: t.size })) : e;
129
+ return typeof t.size == "number" ? (q(e, { size: t.size }), L(e, { size: t.size })) : e;
130
130
  }
131
131
  function J(s, t = {}) {
132
132
  let e = "";
133
133
  for (let o = 0; o < s.length; o++)
134
134
  e += ne[s[o]];
135
135
  const i = `0x${e}`;
136
- return typeof t.size == "number" ? (q(i, { size: t.size }), H(i, { dir: "right", size: t.size })) : i;
136
+ return typeof t.size == "number" ? (q(i, { size: t.size }), L(i, { dir: "right", size: t.size })) : i;
137
137
  }
138
138
  function de(s, t = {}) {
139
139
  const { signed: e, size: i } = t, o = BigInt(s);
@@ -151,17 +151,17 @@ function de(s, t = {}) {
151
151
  });
152
152
  }
153
153
  const a = `0x${(e && o < 0 ? (1n << BigInt(i * 8)) + BigInt(o) : o).toString(16)}`;
154
- return i ? H(a, { size: i }) : a;
154
+ return i ? L(a, { size: i }) : a;
155
155
  }
156
156
  const le = /* @__PURE__ */ new TextEncoder();
157
157
  function ce(s, t = {}) {
158
158
  const e = le.encode(s);
159
159
  return J(e, t);
160
160
  }
161
- class O {
161
+ class H {
162
162
  constructor(t) {
163
- W(this, "opts");
164
- W(this, "open", () => {
163
+ B(this, "opts");
164
+ B(this, "open", () => {
165
165
  if (!(!this.opts.container && document.body.classList.contains("glide-deposit-open"))) {
166
166
  if (this.opts.container || document.body.classList.add("glide-deposit-open"), (this.opts.mode === "deposit" || this.opts.mode === "buy") && !this.opts.recipient)
167
167
  throw new Error("recipient is required for deposit/buy mode");
@@ -172,8 +172,8 @@ class O {
172
172
  this.openUrl(`${this.baseUrl}${this.opts.app}?init=true&embed=true`), this.initialize();
173
173
  }
174
174
  });
175
- W(this, "iframeEventHandler", async (t) => {
176
- var i, o, r, p, a, n, d, g, f, y, w, b, $, l, v, c, S, h, x, u, I, U, E, k, M, C, P, T, D, j, R, z, L;
175
+ B(this, "iframeEventHandler", async (t) => {
176
+ var i, o, r, p, a, n, d, g, f, y, w, b, $, l, v, c, S, h, x, u, I, U, E, k, C, M, P, D, T, R, j, G, A;
177
177
  const e = t.data;
178
178
  switch (e.type) {
179
179
  case "sendInit": {
@@ -210,6 +210,7 @@ class O {
210
210
  showOnrampFirst: this.opts.showOnrampFirst,
211
211
  debitCardAlias: this.opts.debitCardAlias,
212
212
  copyOverrides: this.opts.copyOverrides,
213
+ stableDepositAddressKey: this.opts.stableDepositAddressKey,
213
214
  theme: {
214
215
  ...this.opts.theme || {},
215
216
  colorScheme: ((n = this.opts.theme) == null ? void 0 : n.colorScheme) || getComputedStyle(document.documentElement).colorScheme || ""
@@ -309,7 +310,7 @@ class O {
309
310
  const m = await this.opts.walletProvider.sendTransactionAsync(
310
311
  e.tx
311
312
  );
312
- (M = (k = this.iframe) == null ? void 0 : k.contentWindow) == null || M.postMessage(
313
+ (C = (k = this.iframe) == null ? void 0 : k.contentWindow) == null || C.postMessage(
313
314
  {
314
315
  type: "didSendTransaction",
315
316
  success: !0,
@@ -318,7 +319,7 @@ class O {
318
319
  this.baseUrl
319
320
  );
320
321
  } catch (m) {
321
- (P = (C = this.iframe) == null ? void 0 : C.contentWindow) == null || P.postMessage(
322
+ (P = (M = this.iframe) == null ? void 0 : M.contentWindow) == null || P.postMessage(
322
323
  {
323
324
  type: "didSendTransaction",
324
325
  success: !1,
@@ -334,7 +335,7 @@ class O {
334
335
  if (!this.opts.walletProvider)
335
336
  throw new Error("walletProvider is not set");
336
337
  if (!this.opts.walletProvider.signTypedDataAsync) {
337
- (D = (T = this.iframe) == null ? void 0 : T.contentWindow) == null || D.postMessage(
338
+ (T = (D = this.iframe) == null ? void 0 : D.contentWindow) == null || T.postMessage(
338
339
  {
339
340
  type: "didSignTypedData",
340
341
  success: !1,
@@ -348,7 +349,7 @@ class O {
348
349
  const m = await this.opts.walletProvider.signTypedDataAsync(
349
350
  e.data
350
351
  );
351
- (R = (j = this.iframe) == null ? void 0 : j.contentWindow) == null || R.postMessage(
352
+ (j = (R = this.iframe) == null ? void 0 : R.contentWindow) == null || j.postMessage(
352
353
  {
353
354
  type: "didSignTypedData",
354
355
  success: !0,
@@ -357,7 +358,7 @@ class O {
357
358
  this.baseUrl
358
359
  );
359
360
  } catch (m) {
360
- (L = (z = this.iframe) == null ? void 0 : z.contentWindow) == null || L.postMessage(
361
+ (A = (G = this.iframe) == null ? void 0 : G.contentWindow) == null || A.postMessage(
361
362
  {
362
363
  type: "didSignTypedData",
363
364
  success: !1,
@@ -376,7 +377,7 @@ class O {
376
377
  var t, e, i, o, r, p, a, n, d;
377
378
  return `${this.baseUrl}${this.opts.app}?${this.opts.recipient ? `&recipient=${this.opts.recipient}` : ""}${this.opts.preferGaslessPayment ? "&preferGaslessPayment=true" : ""}${this.opts.mode ? `&mode=${this.opts.mode}` : ""}${this.opts.amount ? `&amount=${this.opts.amount}` : ""}${this.opts.chainId ? `&chainId=${this.opts.chainId}` : ""}${this.opts.currencyId ? `&currencyId=${this.opts.currencyId}` : ""}${this.opts.evm ? `&evm.chainId=${this.opts.evm.chainId}&evm.to=${this.opts.evm.to}&evm.data=${this.opts.evm.data || "0x0"}&evm.value=${ae(
378
379
  this.opts.evm.value || 0n
379
- )}` : ""}${this.opts.approval ? `&approval.token=${this.opts.approval.token}&approval.amount=${this.opts.approval.amount}` : ""}${this.opts.sessionMetadata ? `&metadata=${this.opts.sessionMetadata}` : ""}${this.opts.autoCloseOnSuccess ? "&autoCloseOnSuccess=true" : ""}${this.opts.sessionId ? `&sessionId=${this.opts.sessionId}` : ""}${(t = this.opts.chainIds) != null && t.length ? `&chainIds=${this.opts.chainIds.join(",")}` : ""}${(e = this.opts.excludeChainIds) != null && e.length ? `&excludeChainIds=${this.opts.excludeChainIds.join(",")}` : ""}${(i = this.opts.excludeCurrencyTiers) != null && i.length ? `&excludeCurrencyTiers=${this.opts.excludeCurrencyTiers.join(",")}` : ""}${(o = this.opts.excludeFundingSources) != null && o.length ? `&excludeFundingSources=${this.opts.excludeFundingSources.join(",")}` : ""}${(r = this.opts.fundingSources) != null && r.length ? `&fundingSources=${this.opts.fundingSources.join(",")}` : ""}${(p = this.opts.allowedPaymentCurrencies) != null && p.length ? `&allowedPaymentCurrencies=${this.opts.allowedPaymentCurrencies.join(",")}` : ""}${(a = this.opts.appMetadata) != null && a.name ? `&appMetadata.name=${encodeURIComponent(this.opts.appMetadata.name)}` : ""}${(n = this.opts.appMetadata) != null && n.logoUrl ? `&appMetadata.logoUrl=${encodeURIComponent(this.opts.appMetadata.logoUrl)}` : ""}${(d = this.opts.appMetadata) != null && d.faviconUrl ? `&appMetadata.faviconUrl=${encodeURIComponent(this.opts.appMetadata.faviconUrl)}` : ""}${this.opts.enableRefundEmails ? "&enableRefundEmails=true" : ""}${this.opts.payerEmail ? `&payerEmail=${encodeURIComponent(this.opts.payerEmail)}` : ""}${this.opts.debug ? "&debug=true" : ""}${this.opts.popupsBlocked ? "&popupsBlocked=true" : ""}${this.opts.disableWithdrawToSelfSuggestion ? "&disableWithdrawToSelfSuggestion=true" : ""}${this.opts.hideSettlementCopy ? "&hideSettlementCopy=true" : ""}${this.opts.showAppLogo ? `&showAppLogo=${this.opts.showAppLogo}` : ""}${this.opts.showOnrampFirst ? "&showOnrampFirst=true" : ""}${this.opts.debitCardAlias ? `&debitCardAlias=${this.opts.debitCardAlias}` : ""}${this.opts.copyOverrides ? `&copyOverrides=${encodeURIComponent(JSON.stringify(this.opts.copyOverrides))}` : ""}${this.opts.gasRefuelAmountPerChain ? `&gasRefuelAmountPerChain=${encodeURIComponent(JSON.stringify(this.opts.gasRefuelAmountPerChain))}` : ""}`;
380
+ )}` : ""}${this.opts.approval ? `&approval.token=${this.opts.approval.token}&approval.amount=${this.opts.approval.amount}` : ""}${this.opts.sessionMetadata ? `&metadata=${this.opts.sessionMetadata}` : ""}${this.opts.autoCloseOnSuccess ? "&autoCloseOnSuccess=true" : ""}${this.opts.sessionId ? `&sessionId=${this.opts.sessionId}` : ""}${(t = this.opts.chainIds) != null && t.length ? `&chainIds=${this.opts.chainIds.join(",")}` : ""}${(e = this.opts.excludeChainIds) != null && e.length ? `&excludeChainIds=${this.opts.excludeChainIds.join(",")}` : ""}${(i = this.opts.excludeCurrencyTiers) != null && i.length ? `&excludeCurrencyTiers=${this.opts.excludeCurrencyTiers.join(",")}` : ""}${(o = this.opts.excludeFundingSources) != null && o.length ? `&excludeFundingSources=${this.opts.excludeFundingSources.join(",")}` : ""}${(r = this.opts.fundingSources) != null && r.length ? `&fundingSources=${this.opts.fundingSources.join(",")}` : ""}${(p = this.opts.allowedPaymentCurrencies) != null && p.length ? `&allowedPaymentCurrencies=${this.opts.allowedPaymentCurrencies.join(",")}` : ""}${(a = this.opts.appMetadata) != null && a.name ? `&appMetadata.name=${encodeURIComponent(this.opts.appMetadata.name)}` : ""}${(n = this.opts.appMetadata) != null && n.logoUrl ? `&appMetadata.logoUrl=${encodeURIComponent(this.opts.appMetadata.logoUrl)}` : ""}${(d = this.opts.appMetadata) != null && d.faviconUrl ? `&appMetadata.faviconUrl=${encodeURIComponent(this.opts.appMetadata.faviconUrl)}` : ""}${this.opts.enableRefundEmails ? "&enableRefundEmails=true" : ""}${this.opts.payerEmail ? `&payerEmail=${encodeURIComponent(this.opts.payerEmail)}` : ""}${this.opts.debug ? "&debug=true" : ""}${this.opts.popupsBlocked ? "&popupsBlocked=true" : ""}${this.opts.disableWithdrawToSelfSuggestion ? "&disableWithdrawToSelfSuggestion=true" : ""}${this.opts.hideSettlementCopy ? "&hideSettlementCopy=true" : ""}${this.opts.showAppLogo ? `&showAppLogo=${this.opts.showAppLogo}` : ""}${this.opts.showOnrampFirst ? "&showOnrampFirst=true" : ""}${this.opts.debitCardAlias ? `&debitCardAlias=${this.opts.debitCardAlias}` : ""}${this.opts.copyOverrides ? `&copyOverrides=${encodeURIComponent(JSON.stringify(this.opts.copyOverrides))}` : ""}${this.opts.stableDepositAddressKey ? `&stableDepositAddressKey=${encodeURIComponent(this.opts.stableDepositAddressKey)}` : ""}${this.opts.gasRefuelAmountPerChain ? `&gasRefuelAmountPerChain=${encodeURIComponent(JSON.stringify(this.opts.gasRefuelAmountPerChain))}` : ""}`;
380
381
  }
381
382
  initialize() {
382
383
  window.addEventListener("message", this.iframeEventHandler);
@@ -433,21 +434,22 @@ const me = ({
433
434
  showOnrampFirst: c,
434
435
  debitCardAlias: S,
435
436
  copyOverrides: h,
436
- sessionId: x,
437
- sessionMetadata: u,
438
- disableWithdrawToSelfSuggestion: I,
439
- theme: U,
440
- walletProvider: E,
441
- localStorageProvider: k,
437
+ stableDepositAddressKey: x,
438
+ sessionId: u,
439
+ sessionMetadata: I,
440
+ disableWithdrawToSelfSuggestion: U,
441
+ theme: E,
442
+ walletProvider: k,
443
+ localStorageProvider: C,
442
444
  onOpen: M,
443
- onSuccess: C,
444
- onClose: P,
445
+ onSuccess: P,
446
+ onClose: D,
445
447
  autoCloseOnSuccess: T,
446
- popupsBlocked: D,
448
+ popupsBlocked: R,
447
449
  baseUrl: j,
448
- debug: R
450
+ debug: G
449
451
  }) => {
450
- const z = B(() => new O({
452
+ const A = O(() => new H({
451
453
  app: s,
452
454
  recipient: t,
453
455
  chainId: e,
@@ -469,19 +471,20 @@ const me = ({
469
471
  showOnrampFirst: c,
470
472
  debitCardAlias: S,
471
473
  copyOverrides: h,
472
- sessionId: x,
473
- sessionMetadata: u,
474
- disableWithdrawToSelfSuggestion: I,
475
- theme: U,
476
- walletProvider: E,
477
- localStorageProvider: k,
474
+ stableDepositAddressKey: x,
475
+ sessionId: u,
476
+ sessionMetadata: I,
477
+ disableWithdrawToSelfSuggestion: U,
478
+ theme: E,
479
+ walletProvider: k,
480
+ localStorageProvider: C,
478
481
  onOpen: M,
479
- onSuccess: C,
480
- onClose: P,
482
+ onSuccess: P,
483
+ onClose: D,
481
484
  autoCloseOnSuccess: T,
482
- popupsBlocked: D,
485
+ popupsBlocked: R,
483
486
  baseUrl: j,
484
- debug: R
487
+ debug: G
485
488
  }), [
486
489
  s,
487
490
  t,
@@ -510,18 +513,19 @@ const me = ({
510
513
  U,
511
514
  E,
512
515
  k,
513
- M,
514
516
  C,
517
+ M,
515
518
  P,
516
- T,
517
519
  D,
520
+ T,
521
+ R,
518
522
  j,
519
- R
523
+ G
520
524
  ]);
521
525
  return {
522
- openGlideDeposit: z.open,
523
- externalUrl: z.externalUrl,
524
- opts: z.opts
526
+ openGlideDeposit: A.open,
527
+ externalUrl: A.externalUrl,
528
+ opts: A.opts
525
529
  };
526
530
  }, ge = ({
527
531
  app: s,
@@ -551,10 +555,10 @@ const me = ({
551
555
  onClose: U,
552
556
  autoCloseOnSuccess: E,
553
557
  popupsBlocked: k,
554
- baseUrl: M,
555
- debug: C
558
+ baseUrl: C,
559
+ debug: M
556
560
  }) => {
557
- const P = B(() => new O({
561
+ const P = O(() => new H({
558
562
  app: s,
559
563
  preferGaslessPayment: t,
560
564
  chainIds: e,
@@ -583,8 +587,8 @@ const me = ({
583
587
  onClose: U,
584
588
  autoCloseOnSuccess: E,
585
589
  popupsBlocked: k,
586
- baseUrl: M,
587
- debug: C
590
+ baseUrl: C,
591
+ debug: M
588
592
  }), [
589
593
  s,
590
594
  t,
@@ -613,8 +617,8 @@ const me = ({
613
617
  U,
614
618
  E,
615
619
  k,
616
- M,
617
- C
620
+ C,
621
+ M
618
622
  ]);
619
623
  return {
620
624
  openGlidePay: P.open,
@@ -646,7 +650,7 @@ const me = ({
646
650
  baseUrl: x,
647
651
  debug: u
648
652
  }) => {
649
- const I = B(() => new O({
653
+ const I = O(() => new H({
650
654
  app: s,
651
655
  evm: t,
652
656
  approval: e,
@@ -725,7 +729,7 @@ const me = ({
725
729
  autoCloseOnSuccess: h,
726
730
  baseUrl: x
727
731
  }) => {
728
- const u = B(() => new O({
732
+ const u = O(() => new H({
729
733
  app: s,
730
734
  recipient: t,
731
735
  chainId: e,
@@ -811,7 +815,7 @@ const me = ({
811
815
  })
812
816
  });
813
817
  export {
814
- O as GlideDeposit,
818
+ H as GlideDeposit,
815
819
  we as browserLocalStorageProvider,
816
820
  ye as useGlideBuy,
817
821
  fe as useGlideCall,
@@ -28,6 +28,7 @@ interface UseGlideDepositProps {
28
28
  showOnrampFirst?: boolean;
29
29
  debitCardAlias?: DebitCardAlias;
30
30
  copyOverrides?: Record<string, string>;
31
+ stableDepositAddressKey?: string;
31
32
  sessionId?: string;
32
33
  sessionMetadata?: string;
33
34
  disableWithdrawToSelfSuggestion?: boolean;
@@ -42,7 +43,7 @@ interface UseGlideDepositProps {
42
43
  baseUrl?: string;
43
44
  debug?: boolean;
44
45
  }
45
- export declare const useGlideDeposit: ({ app, recipient, chainId, currencyId, amount, gasRefuelAmountPerChain, preferGaslessPayment, chainIds, excludeChainIds, excludeCurrencyTiers, excludeFundingSources, fundingSources, appMetadata, enableRefundEmails, payerEmail, mode, hideSettlementCopy, showAppLogo, showOnrampFirst, debitCardAlias, copyOverrides, sessionId, sessionMetadata, disableWithdrawToSelfSuggestion, theme, walletProvider, localStorageProvider, onOpen, onSuccess, onClose, autoCloseOnSuccess, popupsBlocked, baseUrl, debug, }: UseGlideDepositProps) => {
46
+ export declare const useGlideDeposit: ({ app, recipient, chainId, currencyId, amount, gasRefuelAmountPerChain, preferGaslessPayment, chainIds, excludeChainIds, excludeCurrencyTiers, excludeFundingSources, fundingSources, appMetadata, enableRefundEmails, payerEmail, mode, hideSettlementCopy, showAppLogo, showOnrampFirst, debitCardAlias, copyOverrides, stableDepositAddressKey, sessionId, sessionMetadata, disableWithdrawToSelfSuggestion, theme, walletProvider, localStorageProvider, onOpen, onSuccess, onClose, autoCloseOnSuccess, popupsBlocked, baseUrl, debug, }: UseGlideDepositProps) => {
46
47
  openGlideDeposit: () => void;
47
48
  externalUrl: string;
48
49
  opts: import('./GlideDeposit.ts').GlideDepositOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paywithglide/glide-react",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"