@cshah18/sdk 4.4.0 → 4.6.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/cobuy-sdk.umd.js
CHANGED
|
@@ -2344,7 +2344,7 @@ var CoBuySDK = (function (exports) {
|
|
|
2344
2344
|
const buttons = Array.from(document.querySelectorAll(".cobuy-button"));
|
|
2345
2345
|
const target = buttons.find((btn) => {
|
|
2346
2346
|
const text = (btn.textContent || "").trim().toLowerCase();
|
|
2347
|
-
return text.includes("continue to checkout") || text === "checkout" || text.includes("checkout");
|
|
2347
|
+
return (text.includes("continue to checkout") || text === "checkout" || text.includes("checkout"));
|
|
2348
2348
|
});
|
|
2349
2349
|
if (!target) {
|
|
2350
2350
|
this.logger.warn("[LobbyModal] Could not find a checkout button to trigger");
|
|
@@ -5661,6 +5661,8 @@ var CoBuySDK = (function (exports) {
|
|
|
5661
5661
|
payload.currency = data.currency;
|
|
5662
5662
|
if (data.payment_method)
|
|
5663
5663
|
payload.payment_method = data.payment_method;
|
|
5664
|
+
if (data.micrositeCheckout !== undefined)
|
|
5665
|
+
payload.micrositeCheckout = data.micrositeCheckout;
|
|
5664
5666
|
if (data.metadata)
|
|
5665
5667
|
payload.metadata = data.metadata;
|
|
5666
5668
|
}
|
|
@@ -5701,7 +5703,6 @@ var CoBuySDK = (function (exports) {
|
|
|
5701
5703
|
event: "CTA_CLICKED",
|
|
5702
5704
|
productId,
|
|
5703
5705
|
timestamp: new Date().toISOString(),
|
|
5704
|
-
sessionId: this.sessionId,
|
|
5705
5706
|
context: {
|
|
5706
5707
|
pageUrl: typeof window !== "undefined" ? window.location.href : undefined,
|
|
5707
5708
|
userAgent: typeof navigator !== "undefined" ? navigator.userAgent : undefined,
|