@lydianpay/sdk-web 3.19.5 → 3.20.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/{browser-DL9_hXMV.js → browser-rxX-1RlV.js} +1 -1
- package/dist/chunks/{connect-multichain-Cv_d4cUb.js → connect-multichain-BwOA1L8N.js} +9 -9
- package/dist/chunks/{dist-2JlmBYpb.js → dist-BTA0E_b3.js} +2 -2
- package/dist/chunks/{dist-C8wtmWKA.js → dist-Bnz-_T3x.js} +3 -3
- package/dist/chunks/{index-YSt1dpEp.js → index-C7WgU0CK.js} +22 -13
- package/dist/chunks/{index-B0iJjksC.js → index-DbCr6lts.js} +2 -2
- package/dist/chunks/{index-Dg1EY0o2.js → index-_SoQft4L.js} +1 -1
- package/dist/chunks/{index-DyzbNiWD.js → index-hVXeCXXz.js} +1 -1
- package/dist/chunks/{mountEngine-DVTbWmeA.js → mountEngine-CjLQCm5Y.js} +11648 -11153
- package/dist/lydian.js +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/types.d.ts +1 -0
- package/dist/types/ui/countries.d.ts +2 -0
- package/dist/types/ui/kycFlow.d.ts +11 -0
- package/dist/types/ui/kycValidation.d.ts +8 -2
- package/dist/types/ui/otpValidation.d.ts +5 -0
- package/dist/types/ui/react/ContactInfoSection/ContactInfoSection.d.ts +11 -0
- package/dist/types/ui/react/ContactInfoSection/EmailCodeCard.d.ts +10 -0
- package/dist/types/ui/react/ContactInfoSection/EmailEntryStep.d.ts +10 -0
- package/dist/types/ui/react/ContactInfoSection/NotYouButton.d.ts +6 -0
- package/dist/types/ui/react/ContactInfoSection/Reveal.d.ts +5 -0
- package/dist/types/ui/react/ContactInfoSection/SavedLoginStep.d.ts +9 -0
- package/dist/types/ui/react/ContactInfoSection/SendCodeButton.d.ts +5 -0
- package/dist/types/ui/react/ContactInfoSection/StepCard.d.ts +5 -0
- package/dist/types/ui/react/ContactInfoSection/VerifiedEmailCard.d.ts +5 -0
- package/dist/types/ui/react/ContactInfoSection/emailStep.d.ts +20 -0
- package/dist/types/ui/react/ContactInfoSection/useEmailVerification.d.ts +17 -0
- package/dist/types/ui/react/ErrorText.d.ts +5 -0
- package/dist/types/ui/react/FormField.d.ts +2 -1
- package/dist/types/ui/react/KycFields.d.ts +2 -1
- package/dist/types/ui/react/SearchSelect.d.ts +2 -1
- package/dist/types/ui/react/checkoutStore.d.ts +11 -0
- package/dist/types/ui/restoredCustomer.d.ts +17 -3
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Va = Object.defineProperty;
|
|
2
2
|
var Ka = (e, t, r) => t in e ? Va(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var Ee = (e, t, r) => Ka(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { E as Ja } from "./index-
|
|
5
|
-
import { g as ri, c as gr } from "./mountEngine-
|
|
4
|
+
import { E as Ja } from "./index-hVXeCXXz.js";
|
|
5
|
+
import { g as ri, c as gr } from "./mountEngine-CjLQCm5Y.js";
|
|
6
6
|
var _r = { exports: {} }, on, Hi;
|
|
7
7
|
function Ya() {
|
|
8
8
|
if (Hi) return on;
|
|
@@ -7879,7 +7879,7 @@ var Cn, Rs, Is, Fs, qe, gt, _t, xr, Bs, Os, Cr, zt, Ps, Ns, Ds, ta, ra = V({
|
|
|
7879
7879
|
}
|
|
7880
7880
|
getActiveSession() {
|
|
7881
7881
|
return S(this, null, function* () {
|
|
7882
|
-
const { kvstore: e } = this, { SessionStore: t } = yield import("./index-
|
|
7882
|
+
const { kvstore: e } = this, { SessionStore: t } = yield import("./index-DbCr6lts.js").then((n) => n.i), r = yield t.create(e);
|
|
7883
7883
|
try {
|
|
7884
7884
|
const [n] = yield r.list();
|
|
7885
7885
|
return n;
|
|
@@ -8058,7 +8058,7 @@ Xr(na, {
|
|
|
8058
8058
|
});
|
|
8059
8059
|
function Qd() {
|
|
8060
8060
|
return S(this, null, function* () {
|
|
8061
|
-
const { decrypt: e, encrypt: t, PrivateKey: r, PublicKey: n } = yield import("./index-
|
|
8061
|
+
const { decrypt: e, encrypt: t, PrivateKey: r, PublicKey: n } = yield import("./index-_SoQft4L.js").then((i) => i.i);
|
|
8062
8062
|
return {
|
|
8063
8063
|
generateKeyPair() {
|
|
8064
8064
|
const i = new r();
|
|
@@ -9329,12 +9329,12 @@ Ta = function() {
|
|
|
9329
9329
|
Ui = function() {
|
|
9330
9330
|
return S(this, null, function* () {
|
|
9331
9331
|
const [e, { DappClient: t }, { createKeyManager: r }] = yield Promise.all([
|
|
9332
|
-
import("./index-
|
|
9333
|
-
import("./dist-
|
|
9332
|
+
import("./index-DbCr6lts.js").then((h) => h.i),
|
|
9333
|
+
import("./dist-Bnz-_T3x.js"),
|
|
9334
9334
|
Promise.resolve().then(() => (eh(), na))
|
|
9335
9335
|
]), n = yield r(), { adapter: i } = this.options.storage, o = yield e.SessionStore.create(i), l = (
|
|
9336
9336
|
// eslint-disable-next-line no-negated-condition
|
|
9337
|
-
typeof window < "u" ? WebSocket : (yield import("./browser-
|
|
9337
|
+
typeof window < "u" ? WebSocket : (yield import("./browser-rxX-1RlV.js").then((h) => h.b)).WebSocket
|
|
9338
9338
|
), c = yield e.WebSocketTransport.create({
|
|
9339
9339
|
url: uh,
|
|
9340
9340
|
kvstore: i,
|
|
@@ -9399,7 +9399,7 @@ Ba = function(e, t, r, n) {
|
|
|
9399
9399
|
/* MWP */
|
|
9400
9400
|
);
|
|
9401
9401
|
})).catch((c) => S(this, null, function* () {
|
|
9402
|
-
const { ProtocolError: d, ErrorCode: h } = yield import("./index-
|
|
9402
|
+
const { ProtocolError: d, ErrorCode: h } = yield import("./index-DbCr6lts.js").then((y) => y.i);
|
|
9403
9403
|
if (c instanceof d)
|
|
9404
9404
|
c.code !== h.REQUEST_EXPIRED && (this.status = "disconnected", yield this.options.ui.factory.unload(c), i.reject(c));
|
|
9405
9405
|
else {
|
|
@@ -9456,7 +9456,7 @@ Pa = function(e, t, r) {
|
|
|
9456
9456
|
/* MWP */
|
|
9457
9457
|
);
|
|
9458
9458
|
} catch (i) {
|
|
9459
|
-
const { ProtocolError: o } = yield import("./index-
|
|
9459
|
+
const { ProtocolError: o } = yield import("./index-DbCr6lts.js").then((l) => l.i);
|
|
9460
9460
|
throw this.status = "disconnected", yield this.storage.removeTransportType(), i instanceof o || i instanceof Error ? i : new Error(String(i));
|
|
9461
9461
|
} finally {
|
|
9462
9462
|
this.dappClient.off("session_request", n);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as Te, I as Xe, h as et, g as yn, b as vn, s as kn } from "./mountEngine-
|
|
1
|
+
import { i as Te, I as Xe, h as et, g as yn, b as vn, s as kn } from "./mountEngine-CjLQCm5Y.js";
|
|
2
2
|
import { r as En, a as In } from "./utils-Ca8X9WUu.js";
|
|
3
|
-
import { E as Cn } from "./index-
|
|
3
|
+
import { E as Cn } from "./index-hVXeCXXz.js";
|
|
4
4
|
function Sn(t, e) {
|
|
5
5
|
if (!Te(t, { strict: !1 }))
|
|
6
6
|
throw new Xe({ address: t });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var f = Object.defineProperty;
|
|
2
2
|
var S = (e, t, n) => t in e ? f(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var h = (e, t, n) => S(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { d as s } from "./index-
|
|
5
|
-
import { v as w } from "./connect-multichain-
|
|
6
|
-
import { a as l } from "./mountEngine-
|
|
4
|
+
import { d as s } from "./index-DbCr6lts.js";
|
|
5
|
+
import { v as w } from "./connect-multichain-BwOA1L8N.js";
|
|
6
|
+
import { a as l } from "./mountEngine-CjLQCm5Y.js";
|
|
7
7
|
function m(e) {
|
|
8
8
|
var t, n;
|
|
9
9
|
return typeof ((n = (t = e == null ? void 0 : e.prototype) == null ? void 0 : t.constructor) == null ? void 0 : n.name) == "string";
|
|
@@ -332,7 +332,7 @@ const Q = [
|
|
|
332
332
|
s.KYC_VERIFICATION_PENDING,
|
|
333
333
|
s.COMPLIANCE_PENDING
|
|
334
334
|
];
|
|
335
|
-
async function
|
|
335
|
+
async function V({
|
|
336
336
|
api: t,
|
|
337
337
|
options: e,
|
|
338
338
|
emit: a
|
|
@@ -346,10 +346,10 @@ async function X({
|
|
|
346
346
|
}), i = te({ session: o, linkedTransaction: r });
|
|
347
347
|
return { ok: !0, session: o, sessionPromoted: i, linkedTransaction: r };
|
|
348
348
|
} catch (n) {
|
|
349
|
-
return { ok: !1, ...await
|
|
349
|
+
return { ok: !1, ...await X(n) };
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
|
-
async function
|
|
352
|
+
async function X(t) {
|
|
353
353
|
const e = t instanceof Error ? t.cause : void 0;
|
|
354
354
|
if (!(e instanceof Response && e.status === 404))
|
|
355
355
|
return {};
|
|
@@ -431,7 +431,6 @@ const ne = {
|
|
|
431
431
|
"common.back": "Back",
|
|
432
432
|
"common.close": "Close",
|
|
433
433
|
"common.done": "Done",
|
|
434
|
-
"common.continue": "Continue",
|
|
435
434
|
"common.retry": "Retry",
|
|
436
435
|
"common.warningAlt": "Warning",
|
|
437
436
|
"common.checkoutAria": "Checkout",
|
|
@@ -489,7 +488,8 @@ const ne = {
|
|
|
489
488
|
"network.recommended": "RECOMMENDED",
|
|
490
489
|
"network.fee": "Network fee: {fee}",
|
|
491
490
|
"kyc.yourDetails": "Additional info required",
|
|
492
|
-
"kyc.
|
|
491
|
+
"kyc.contactInfo": "Contact info",
|
|
492
|
+
"kyc.basicDetails": "Basic info",
|
|
493
493
|
"kyc.groupTitleOne": "Provide one of the following",
|
|
494
494
|
"kyc.groupTitle": "Provide {count} of the following",
|
|
495
495
|
"kyc.groupGuidanceAcrossForm": "Complete {required} of the {total} identity details to continue ({completed} done).",
|
|
@@ -516,9 +516,11 @@ const ne = {
|
|
|
516
516
|
"kyc.dateOfBirthPlaceholder": "Enter your date of birth",
|
|
517
517
|
"kyc.dateAndPlaceOfBirthChoice": "Place and date of birth",
|
|
518
518
|
"kyc.physicalAddressChoice": "Address",
|
|
519
|
-
"kyc.
|
|
520
|
-
"kyc.citizenshipLabel": "Country of
|
|
519
|
+
"kyc.citizenOf": "I am a citizen of {country}",
|
|
520
|
+
"kyc.citizenshipLabel": "Country of citizenship",
|
|
521
521
|
"kyc.citizenshipPlaceholder": "Select country of citizenship",
|
|
522
|
+
"kyc.residenceLabel": "Country of residence",
|
|
523
|
+
"kyc.residencePlaceholder": "Select country of residence",
|
|
522
524
|
"kyc.cityOfBirthLabel": "City of birth",
|
|
523
525
|
"kyc.cityOfBirthPlaceholder": "Enter city",
|
|
524
526
|
"kyc.nationalIdLabel": "ID number",
|
|
@@ -544,6 +546,7 @@ const ne = {
|
|
|
544
546
|
"kyc.fileHint": "PNG, JPG or PDF, up to 10 MB",
|
|
545
547
|
"kyc.saveInfo": "Securely save this info for next time",
|
|
546
548
|
"kyc.saveInfoDescription": "Next time, skip this step by entering the one-time code sent to your email.",
|
|
549
|
+
"kyc.next": "Next",
|
|
547
550
|
"kyc.onFileHint": "Details we have on file are shown masked. Select a field to replace it.",
|
|
548
551
|
"scan.exactAmountNotice": "Make sure you send the exact amount on the correct network to complete your payment smoothly.",
|
|
549
552
|
"scan.scanWithWallet": "Scan the QR code with your preferred wallet",
|
|
@@ -640,6 +643,12 @@ const ne = {
|
|
|
640
643
|
"restore.unableToSendOtpTitle": "Unable to send OTP",
|
|
641
644
|
"restore.unableToSendOtpBody": "Check your email and try again.",
|
|
642
645
|
"restore.unableToVerifyCode": "Unable to verify code.",
|
|
646
|
+
"emailVerification.sendOtp": "Send OTP",
|
|
647
|
+
"emailVerification.verifyHeading": "Verify it’s you",
|
|
648
|
+
"emailVerification.codePrompt": "Please enter the 6 digit code that we sent to",
|
|
649
|
+
"emailVerification.codeLabel": "OTP",
|
|
650
|
+
"emailVerification.codePlaceholder": "Enter 6 digit code",
|
|
651
|
+
"emailVerification.verifiedHeading": "Verified info",
|
|
643
652
|
"modal.areYouSure": "Are you sure?",
|
|
644
653
|
"modal.closeDescription": "Are you sure you want to cancel this payment? If you continue, you will lose any progress you have made.",
|
|
645
654
|
"modal.approvedInWalletNote": "If you already approved in your wallet, the transaction is on-chain — cancelling here only stops this page from waiting.",
|
|
@@ -687,14 +696,14 @@ const ne = {
|
|
|
687
696
|
"validation.customerDetailsMissing": "Customer details are missing.",
|
|
688
697
|
"validation.invalidOtp": "Please enter a valid 6-digit code.",
|
|
689
698
|
"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>.'
|
|
690
|
-
}, T = { en: ne },
|
|
691
|
-
let
|
|
699
|
+
}, T = { en: ne }, L = "en";
|
|
700
|
+
let R = L;
|
|
692
701
|
function we() {
|
|
693
|
-
return
|
|
702
|
+
return R;
|
|
694
703
|
}
|
|
695
704
|
function f(t, e) {
|
|
696
705
|
var n;
|
|
697
|
-
const a = ((n = T[
|
|
706
|
+
const a = ((n = T[R]) == null ? void 0 : n[t]) ?? T[L][t] ?? t;
|
|
698
707
|
return e ? a.replace(
|
|
699
708
|
/\{(\w+)\}/g,
|
|
700
709
|
(o, r) => e[r] != null ? String(e[r]) : `{${r}}`
|
|
@@ -816,7 +825,7 @@ class ce extends HTMLElement {
|
|
|
816
825
|
// Not started in the constructor: a page can carry the tag and never check out.
|
|
817
826
|
// Overlapping initialize() calls share one download.
|
|
818
827
|
getOrLoadEngine() {
|
|
819
|
-
return this.engineLoadPromise ?? (this.engineLoadPromise = import("./mountEngine-
|
|
828
|
+
return this.engineLoadPromise ?? (this.engineLoadPromise = import("./mountEngine-CjLQCm5Y.js").then((e) => e.m).then((e) => {
|
|
820
829
|
const a = e.mountCheckoutEngine({
|
|
821
830
|
host: this,
|
|
822
831
|
shadowRoot: this.shadow
|
|
@@ -905,7 +914,7 @@ function de({
|
|
|
905
914
|
api: t,
|
|
906
915
|
options: e
|
|
907
916
|
}) {
|
|
908
|
-
return
|
|
917
|
+
return V({
|
|
909
918
|
api: t,
|
|
910
919
|
options: e,
|
|
911
920
|
emit: (a, n) => I(e.onEvent, a, n)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as Si, g as wi } from "./mountEngine-
|
|
2
|
-
import { r as Ti } from "./index-
|
|
1
|
+
import { d as Si, g as wi } from "./mountEngine-CjLQCm5Y.js";
|
|
2
|
+
import { r as Ti } from "./index-hVXeCXXz.js";
|
|
3
3
|
function Pi(r, u) {
|
|
4
4
|
for (var f = 0; f < u.length; f++) {
|
|
5
5
|
const h = u[f];
|