@lydianpay/sdk-web 3.2.0 → 3.4.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.
- package/dist/chunks/{index-BhtU_AAG.js → index-B0BHysWS.js} +12 -11
- package/dist/chunks/{index-CVTOXcSY.js → index-VfKF_MSs.js} +1 -1
- package/dist/chunks/{metamask-sdk-BwVxHW1_.js → metamask-sdk-C_765hQm.js} +1 -1
- package/dist/chunks/{mountEngine-P1Ws89oo.js → mountEngine-B8FwMr2r.js} +8411 -8333
- package/dist/lydian.js +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/types.d.ts +1 -1
- package/dist/types/ui/pullToRefreshGuard.d.ts +21 -0
- package/dist/types/ui/react/engine/usePullToRefreshGuard.d.ts +3 -0
- package/package.json +2 -2
|
@@ -197,13 +197,13 @@ function T(t, e, a) {
|
|
|
197
197
|
console.error(`onEvent("${e}") threw:`, n);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
async function
|
|
200
|
+
async function W({
|
|
201
201
|
api: t,
|
|
202
202
|
options: e,
|
|
203
203
|
emit: a
|
|
204
204
|
}) {
|
|
205
205
|
try {
|
|
206
|
-
const n = await
|
|
206
|
+
const n = await F({ api: t, options: e }), { session: o, sessionPromoted: r } = await x({ api: t, sessionID: n });
|
|
207
207
|
a("session.loaded", $(o));
|
|
208
208
|
const s = await M({
|
|
209
209
|
api: t,
|
|
@@ -214,7 +214,7 @@ async function F({
|
|
|
214
214
|
return { ok: !1 };
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
async function
|
|
217
|
+
async function F({
|
|
218
218
|
api: t,
|
|
219
219
|
options: e
|
|
220
220
|
}) {
|
|
@@ -285,7 +285,7 @@ function Y({
|
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
287
|
}
|
|
288
|
-
const
|
|
288
|
+
const B = {
|
|
289
289
|
"common.cancelTransaction": "Cancel Transaction",
|
|
290
290
|
"common.cancel": "Cancel",
|
|
291
291
|
"common.back": "Back",
|
|
@@ -322,6 +322,7 @@ const q = {
|
|
|
322
322
|
"wallet.install": "Install {wallet}",
|
|
323
323
|
"wallet.connectNamed": "Connect {wallet}",
|
|
324
324
|
"wallet.scanToConnect": "Scan with your phone to connect with {wallet}.",
|
|
325
|
+
"wallet.backToWallets": "Back to wallets",
|
|
325
326
|
"asset.chooseCoin": "Choose a coin",
|
|
326
327
|
"asset.markupNotice": "Conversion includes a {percent}% markup fee",
|
|
327
328
|
"network.chooseNetwork": "Choose a network",
|
|
@@ -478,7 +479,7 @@ const q = {
|
|
|
478
479
|
"validation.customerDetailsMissing": "Customer details are missing.",
|
|
479
480
|
"validation.invalidOtp": "Please enter a valid 6-digit code.",
|
|
480
481
|
"terms.notice": 'By continuing, you agree to Lydian <a href="https://lydian.com/privacy" target="_blank" rel="noopener noreferrer">Terms and Conditions</a> and understand your data will be processed according to the <a href="https://lydian.com/privacy" target="_blank" rel="noopener noreferrer">Privacy Notice</a>.'
|
|
481
|
-
}, f = { en:
|
|
482
|
+
}, f = { en: B }, D = "en";
|
|
482
483
|
let E = D;
|
|
483
484
|
function te() {
|
|
484
485
|
return E;
|
|
@@ -491,7 +492,7 @@ function v(t, e) {
|
|
|
491
492
|
(o, r) => e[r] != null ? String(e[r]) : `{${r}}`
|
|
492
493
|
) : a;
|
|
493
494
|
}
|
|
494
|
-
function
|
|
495
|
+
function q(t) {
|
|
495
496
|
return t === y.SUCCESS ? "succeeded" : t < y.PENDING && t !== y.KYC_VERIFICATION_PENDING ? "failed" : "active";
|
|
496
497
|
}
|
|
497
498
|
function _({
|
|
@@ -499,7 +500,7 @@ function _({
|
|
|
499
500
|
session: e
|
|
500
501
|
}) {
|
|
501
502
|
var o, r, s;
|
|
502
|
-
const a =
|
|
503
|
+
const a = q(t.status);
|
|
503
504
|
if (a === "active")
|
|
504
505
|
return null;
|
|
505
506
|
if (a === "failed")
|
|
@@ -594,7 +595,7 @@ class j extends HTMLElement {
|
|
|
594
595
|
// Not started in the constructor: a page can carry the tag and never check out.
|
|
595
596
|
// Overlapping initialize() calls share one download.
|
|
596
597
|
getOrLoadEngine() {
|
|
597
|
-
return this.engineLoadPromise ?? (this.engineLoadPromise = import("./mountEngine-
|
|
598
|
+
return this.engineLoadPromise ?? (this.engineLoadPromise = import("./mountEngine-B8FwMr2r.js").then((e) => e.m).then((e) => {
|
|
598
599
|
const a = e.mountCheckoutEngine({
|
|
599
600
|
host: this,
|
|
600
601
|
shadowRoot: this.shadow
|
|
@@ -669,7 +670,7 @@ function z({
|
|
|
669
670
|
api: t,
|
|
670
671
|
options: e
|
|
671
672
|
}) {
|
|
672
|
-
return
|
|
673
|
+
return W({
|
|
673
674
|
api: t,
|
|
674
675
|
options: e,
|
|
675
676
|
emit: (a, n) => T(e.onEvent, a, n)
|
|
@@ -727,14 +728,14 @@ export {
|
|
|
727
728
|
te as g,
|
|
728
729
|
c as h,
|
|
729
730
|
S as i,
|
|
730
|
-
|
|
731
|
+
q as j,
|
|
731
732
|
_ as k,
|
|
732
733
|
k as l,
|
|
733
734
|
ee as m,
|
|
734
735
|
Y as n,
|
|
735
736
|
X as o,
|
|
736
737
|
K as p,
|
|
737
|
-
|
|
738
|
+
F as r,
|
|
738
739
|
m as s,
|
|
739
740
|
v as t
|
|
740
741
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as Fe, I as ft, g as Qt, h as pt, b as jn, s as Bn } from "./mountEngine-
|
|
1
|
+
import { i as Fe, I as ft, g as Qt, h as pt, b as jn, s as Bn } from "./mountEngine-B8FwMr2r.js";
|
|
2
2
|
function Wn(t, e) {
|
|
3
3
|
if (!Fe(t, { strict: !1 }))
|
|
4
4
|
throw new ft({ address: t });
|
|
@@ -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 { c as ei, g as ga } from "./mountEngine-
|
|
4
|
+
import { c as ei, g as ga } from "./mountEngine-B8FwMr2r.js";
|
|
5
5
|
var ti = { exports: {} }, cc;
|
|
6
6
|
function Zf() {
|
|
7
7
|
return cc || (cc = 1, (function(t, e) {
|