@lydianpay/sdk-web 3.0.1 → 3.2.0

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.
Files changed (72) hide show
  1. package/README.md +9 -8
  2. package/dist/chunks/index-BhtU_AAG.js +740 -0
  3. package/dist/chunks/{index-YAGlsS0s.js → index-CVTOXcSY.js} +13 -14
  4. package/dist/chunks/{metamask-sdk-CFm2IK48.js → metamask-sdk-BwVxHW1_.js} +1 -1
  5. package/dist/chunks/mountEngine-P1Ws89oo.js +34936 -0
  6. package/dist/lydian.js +1 -1
  7. package/dist/types/.tsbuildinfo +1 -1
  8. package/dist/types/constants.d.ts +6 -0
  9. package/dist/types/types.d.ts +1 -0
  10. package/dist/types/ui/Checkout.d.ts +11 -143
  11. package/dist/types/ui/checkoutCallbacks.d.ts +26 -0
  12. package/dist/types/ui/checkoutEngine.d.ts +28 -0
  13. package/dist/types/ui/checkoutPresentation.d.ts +24 -0
  14. package/dist/types/ui/checkoutSelection.d.ts +30 -0
  15. package/dist/types/ui/components/icons.d.ts +0 -1
  16. package/dist/types/ui/copyFields.d.ts +13 -0
  17. package/dist/types/ui/countdownClock.d.ts +5 -0
  18. package/dist/types/ui/dialogController.d.ts +35 -0
  19. package/dist/types/ui/failureReport.d.ts +13 -0
  20. package/dist/types/ui/flowConfig.d.ts +3 -2
  21. package/dist/types/ui/hostCallbacks.d.ts +10 -0
  22. package/dist/types/ui/kycFlow.d.ts +44 -0
  23. package/dist/types/ui/kycVerificationRequest.d.ts +17 -0
  24. package/dist/types/ui/networkListHelpers.d.ts +9 -1
  25. package/dist/types/ui/paymentFlow.d.ts +49 -0
  26. package/dist/types/ui/pollTick.d.ts +15 -0
  27. package/dist/types/ui/react/AssetSelectScreen.d.ts +1 -5
  28. package/dist/types/ui/react/CheckoutApp.d.ts +1 -4
  29. package/dist/types/ui/react/CloseTransactionDialogBody.d.ts +1 -6
  30. package/dist/types/ui/react/ConnectWithQrScreen.d.ts +1 -5
  31. package/dist/types/ui/react/ConnectingWalletScreen.d.ts +1 -5
  32. package/dist/types/ui/react/KycScreen.d.ts +1 -5
  33. package/dist/types/ui/react/LoadingScreen.d.ts +1 -8
  34. package/dist/types/ui/react/NetworkSelectScreen.d.ts +1 -5
  35. package/dist/types/ui/react/PaymentFailureScreen.d.ts +1 -5
  36. package/dist/types/ui/react/PaymentHeaderSection.d.ts +1 -12
  37. package/dist/types/ui/react/PaymentSuccessScreen.d.ts +1 -5
  38. package/dist/types/ui/react/RestoreDetailsDialogBody.d.ts +1 -4
  39. package/dist/types/ui/react/ScanToPayScreen.d.ts +1 -5
  40. package/dist/types/ui/react/TimerBanner/TimerBanner.d.ts +2 -0
  41. package/dist/types/ui/react/TimerBanner/timerBannerHelpers.d.ts +13 -0
  42. package/dist/types/ui/react/WalletSelectScreen.d.ts +1 -5
  43. package/dist/types/ui/react/checkoutActions.d.ts +107 -0
  44. package/dist/types/ui/react/checkoutContext.d.ts +9 -0
  45. package/dist/types/ui/react/checkoutReducer.d.ts +11 -0
  46. package/dist/types/ui/react/checkoutStore.d.ts +19 -11
  47. package/dist/types/ui/react/engine/CheckoutEngine.d.ts +30 -0
  48. package/dist/types/ui/react/engine/checkoutShell.d.ts +3 -0
  49. package/dist/types/ui/react/engine/mountEngine.d.ts +10 -0
  50. package/dist/types/ui/react/engine/useBranding.d.ts +1 -0
  51. package/dist/types/ui/react/engine/useCopyFields.d.ts +1 -0
  52. package/dist/types/ui/react/engine/useHostCallbacks.d.ts +2 -0
  53. package/dist/types/ui/react/engine/useProcessingOverlay.d.ts +1 -0
  54. package/dist/types/ui/react/engine/useScreenNavigator.d.ts +3 -0
  55. package/dist/types/ui/react/mount.d.ts +7 -5
  56. package/dist/types/ui/react/useQrCanvas.d.ts +9 -0
  57. package/dist/types/ui/screenNavigator.d.ts +13 -0
  58. package/dist/types/ui/sessionBootstrap.d.ts +36 -0
  59. package/dist/types/ui/sessionHelpers.d.ts +1 -2
  60. package/dist/types/ui/sessionLifecycle.d.ts +37 -0
  61. package/dist/types/ui/sessionQuoteWatcher.d.ts +7 -8
  62. package/dist/types/ui/settledOutcome.d.ts +14 -0
  63. package/dist/types/ui/transactionOutcome.d.ts +2 -0
  64. package/dist/types/ui/transactionPoller.d.ts +16 -0
  65. package/dist/types/ui/walletConnection.d.ts +48 -0
  66. package/package.json +2 -1
  67. package/dist/chunks/index-NI3RoQG3.js +0 -22485
  68. package/dist/chunks/mount-bhuHFGLm.js +0 -12914
  69. package/dist/types/ui/countdownBanner.d.ts +0 -33
  70. package/dist/types/ui/react/DownloadWalletScreen.d.ts +0 -4
  71. package/dist/types/ui/react/TimerBanner.d.ts +0 -4
  72. package/dist/types/ui/react/callbacksFixture.d.ts +0 -6
@@ -1,6 +1,13 @@
1
- import { E as Qt, F as Fe, I as ft, G as pt, H as jn, J as Bn } from "./index-NI3RoQG3.js";
1
+ import { i as Fe, I as ft, g as Qt, h as pt, b as jn, s as Bn } from "./mountEngine-P1Ws89oo.js";
2
+ function Wn(t, e) {
3
+ if (!Fe(t, { strict: !1 }))
4
+ throw new ft({ address: t });
5
+ if (!Fe(e, { strict: !1 }))
6
+ throw new ft({ address: e });
7
+ return t.toLowerCase() === e.toLowerCase();
8
+ }
2
9
  var Oe = { exports: {} }, gt;
3
- function Wn() {
10
+ function qn() {
4
11
  return gt || (gt = 1, (function(t) {
5
12
  var e = Object.prototype.hasOwnProperty, n = "~";
6
13
  function s() {
@@ -106,16 +113,8 @@ function Wn() {
106
113
  }, l.prototype.off = l.prototype.removeListener, l.prototype.addListener = l.prototype.on, l.prefixed = n, l.EventEmitter = l, t.exports = l;
107
114
  })(Oe)), Oe.exports;
108
115
  }
109
- var qn = Wn();
110
- const Vn = /* @__PURE__ */ Qt(qn);
111
- function Kn(t, e) {
112
- if (!Fe(t, { strict: !1 }))
113
- throw new ft({ address: t });
114
- if (!Fe(e, { strict: !1 }))
115
- throw new ft({ address: e });
116
- return t.toLowerCase() === e.toLowerCase();
117
- }
118
- const Fn = (t, e) => {
116
+ var Vn = qn();
117
+ const Kn = /* @__PURE__ */ Qt(Vn), Fn = (t, e) => {
119
118
  let n;
120
119
  switch (t) {
121
120
  case "standard":
@@ -793,7 +792,7 @@ class ps {
793
792
  async handleGetCapabilitiesRequest(e) {
794
793
  ls(e.params);
795
794
  const n = e.params[0], s = e.params[1];
796
- if (!this.accounts.some((l) => Kn(l, n)))
795
+ if (!this.accounts.some((l) => Wn(l, n)))
797
796
  throw L.provider.unauthorized("no active account found");
798
797
  const r = this.storage.loadObject(vt);
799
798
  if (!r)
@@ -3457,7 +3456,7 @@ function yi(t) {
3457
3456
  }
3458
3457
  return t;
3459
3458
  }
3460
- class wi extends Vn {
3459
+ class wi extends Kn {
3461
3460
  }
3462
3461
  var bi = function(t, e) {
3463
3462
  var n = {};
@@ -1,7 +1,7 @@
1
1
  var Gf = Object.defineProperty;
2
2
  var Yf = (t, e, n) => e in t ? Gf(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var Ht = (t, e, n) => Yf(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { B as ei, E as ga } from "./index-NI3RoQG3.js";
4
+ import { c as ei, g as ga } from "./mountEngine-P1Ws89oo.js";
5
5
  var ti = { exports: {} }, cc;
6
6
  function Zf() {
7
7
  return cc || (cc = 1, (function(t, e) {