@lydianpay/sdk-web 3.7.2 → 3.9.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-Dny2gxz5.js → index-DRxELYu4.js} +1 -1
- package/dist/chunks/{index-BRfoKKIF.js → index-wJd9PSat.js} +9 -7
- package/dist/chunks/{metamask-sdk-BzhRPCxs.js → metamask-sdk-BvG7yj9u.js} +1 -1
- package/dist/chunks/{mountEngine-Dd6Llndl.js → mountEngine-BEjbUUpt.js} +4744 -4695
- package/dist/lydian.js +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/ui/checkoutPresentation.d.ts +2 -0
- package/dist/types/ui/react/OpenInWalletCta.d.ts +8 -0
- package/dist/types/ui/react/PaymentCanceledScreen.d.ts +2 -0
- package/dist/types/ui/react/checkoutStore.d.ts +2 -0
- package/package.json +1 -1
|
@@ -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-BEjbUUpt.js";
|
|
2
2
|
function Wn(t, e) {
|
|
3
3
|
if (!Fe(t, { strict: !1 }))
|
|
4
4
|
throw new ft({ address: t });
|
|
@@ -166,7 +166,7 @@ var u = {
|
|
|
166
166
|
function U(e) {
|
|
167
167
|
return e.dev ? p.dev : e.sandbox ? p.sandbox : p.prod;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function P({
|
|
170
170
|
options: e,
|
|
171
171
|
unsupportedKeys: t,
|
|
172
172
|
entryPoint: a
|
|
@@ -174,7 +174,7 @@ function C({
|
|
|
174
174
|
const n = t.filter((o) => e[o] !== void 0);
|
|
175
175
|
return n.length === 0 ? null : `${n.join(" and ")} ${n.length > 1 ? "are" : "is"} not used by ${a}. Passing it has no effect, so this is almost always a mistake.`;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function C(e) {
|
|
178
178
|
var t;
|
|
179
179
|
return (t = e.flow) != null && t.walletConnect && !e.walletConnectProjectId ? "walletConnectProjectId is required when flow.walletConnect is on" : null;
|
|
180
180
|
}
|
|
@@ -433,6 +433,8 @@ const B = {
|
|
|
433
433
|
"failure.title": "We couldn't complete your payment",
|
|
434
434
|
"failure.paymentId": "Payment ID",
|
|
435
435
|
"failure.copyPaymentId": "Copy payment ID",
|
|
436
|
+
"canceled.title": "Your payment was canceled",
|
|
437
|
+
"canceled.retryHint": "Please go back to your checkout screen to try again.",
|
|
436
438
|
"restore.title": "Restore Details",
|
|
437
439
|
"restore.heading": "Restore your details",
|
|
438
440
|
"restore.sendCode": "Send code",
|
|
@@ -614,7 +616,7 @@ class G extends HTMLElement {
|
|
|
614
616
|
// Not started in the constructor: a page can carry the tag and never check out.
|
|
615
617
|
// Overlapping initialize() calls share one download.
|
|
616
618
|
getOrLoadEngine() {
|
|
617
|
-
return this.engineLoadPromise ?? (this.engineLoadPromise = import("./mountEngine-
|
|
619
|
+
return this.engineLoadPromise ?? (this.engineLoadPromise = import("./mountEngine-BEjbUUpt.js").then((t) => t.m).then((t) => {
|
|
618
620
|
const a = t.mountCheckoutEngine({
|
|
619
621
|
host: this,
|
|
620
622
|
shadowRoot: this.shadow
|
|
@@ -702,12 +704,12 @@ function h() {
|
|
|
702
704
|
async function z(e) {
|
|
703
705
|
if (!e.publishableKey || !e.transaction.amount || !e.transaction.currency)
|
|
704
706
|
throw new Error("SDK initialization requires publishableKey and a transaction");
|
|
705
|
-
const t =
|
|
707
|
+
const t = C(e);
|
|
706
708
|
if (t)
|
|
707
709
|
throw new Error(t);
|
|
708
710
|
if (!N(e.transaction.currency))
|
|
709
711
|
throw new Error("Invalid value for currency, valid values are: " + g.join(", "));
|
|
710
|
-
const a =
|
|
712
|
+
const a = P({
|
|
711
713
|
options: e,
|
|
712
714
|
unsupportedKeys: ["sessionID"],
|
|
713
715
|
entryPoint: "init"
|
|
@@ -719,10 +721,10 @@ async function z(e) {
|
|
|
719
721
|
async function Q(e) {
|
|
720
722
|
if (!e.sessionID)
|
|
721
723
|
throw new Error("initExistingSession requires a sessionID");
|
|
722
|
-
const t =
|
|
724
|
+
const t = C(e);
|
|
723
725
|
if (t)
|
|
724
726
|
throw new Error(t);
|
|
725
|
-
const a =
|
|
727
|
+
const a = P({
|
|
726
728
|
options: e,
|
|
727
729
|
unsupportedKeys: ["publishableKey", "transaction"],
|
|
728
730
|
entryPoint: "initExistingSession"
|
|
@@ -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-BEjbUUpt.js";
|
|
5
5
|
var ti = { exports: {} }, cc;
|
|
6
6
|
function Zf() {
|
|
7
7
|
return cc || (cc = 1, (function(t, e) {
|