@aller/cyclops-frontend-vanilla
Advanced tools
Comparing version 1.4.0-alpha.2 to 1.4.0-alpha.3
@@ -59,6 +59,4 @@ import { createElement } from "./stringToHtml"; | ||
var _injectElement = document.getElementById(elementId); | ||
console.log(_injectElement); | ||
var dealBox = createBox("cta-" + brand.brandId + "-" + product.productId + "-" + deal.dealId); | ||
var modal = createModal("cta-" + brand.brandId + "-" + product.productId + "-" + deal.dealId + "-modal"); | ||
console.log(modal); | ||
_injectElement === null || _injectElement === void 0 ? void 0 : _injectElement.insertAdjacentElement("beforeend", dealBox); | ||
@@ -65,0 +63,0 @@ (_a = document.querySelector("body")) === null || _a === void 0 ? void 0 : _a.appendChild(modal); |
@@ -7,11 +7,11 @@ import { defaultSubscriptionBox, } from "../interfaces/subscriptionBox"; | ||
textsAndClasses = updateToDefaults(defaultSubscriptionBox, textsAndClasses); | ||
return "\n <div id=\"" + id + "\" class=\"dialog " + ((_b = (_a = textsAndClasses.classes) === null || _a === void 0 ? void 0 : _a.dialogClass) !== null && _b !== void 0 ? _b : "") + "\">\n <div class=\"dialog-overlay\" tabindex=\"-1\" data-a11y-dialog-hide></div>\n <dialog class=\"dialog-content " + ((_d = (_c = textsAndClasses.classes) === null || _c === void 0 ? void 0 : _c.dialogContentClass) !== null && _d !== void 0 ? _d : "") + "\" aria-labelledby=\"dialog-title\">\n <button type=\"button\" class=\"dialog-close " + ((_f = (_e = textsAndClasses.classes) === null || _e === void 0 ? void 0 : _e.dialogCloseClass) !== null && _f !== void 0 ? _f : "") + " \" data-a11y-dialog-hide aria-label=\"Lukk vinduet\">×</button>\n <div>\n <div class=\"you-chose\">" + ((_g = textsAndClasses.texts) === null || _g === void 0 ? void 0 : _g.youChoseText) + "</div>\n <h3 class=\"product-name " + ((_j = (_h = textsAndClasses.classes) === null || _h === void 0 ? void 0 : _h.dialogProductNameClass) !== null && _j !== void 0 ? _j : "") + "\">" + product.productName + "</h3> \n <p class=\"cost " + ((_l = (_k = textsAndClasses.classes) === null || _k === void 0 ? void 0 : _k.dialogCostClass) !== null && _l !== void 0 ? _l : "") + "\">" + deal.dealDescription + "</p>\n <p deal-name " + ((_o = (_m = textsAndClasses.classes) === null || _m === void 0 ? void 0 : _m.dialogDealNameClass) !== null && _o !== void 0 ? _o : "") + "\">" + deal.dealName + "</p>\n <p class=\"full-terms " + ((_q = (_p = textsAndClasses.classes) === null || _p === void 0 ? void 0 : _p.dialogFullTermsClass) !== null && _q !== void 0 ? _q : "") + "\">" + deal.fullTermsDescription + "</p>\n " + (((_r = textsAndClasses.texts) === null || _r === void 0 ? void 0 : _r.subtitleText) ? "<p class='subtitle-text " + | ||
return "\n <div class=\"dialog-modal-container\">\n <div id=\"" + id + "\" class=\"dialog " + ((_b = (_a = textsAndClasses.classes) === null || _a === void 0 ? void 0 : _a.dialogClass) !== null && _b !== void 0 ? _b : "") + "\" aria-hidden=\"true\">\n <div class=\"dialog-overlay\" tabindex=\"-1\" data-a11y-dialog-hide></div>\n <div class=\"dialog-content " + ((_d = (_c = textsAndClasses.classes) === null || _c === void 0 ? void 0 : _c.dialogContentClass) !== null && _d !== void 0 ? _d : "") + "\" aria-labelledby=\"dialog-title\" role=\"dialog\">\n <button type=\"button\" class=\"dialog-close " + ((_f = (_e = textsAndClasses.classes) === null || _e === void 0 ? void 0 : _e.dialogCloseClass) !== null && _f !== void 0 ? _f : "") + " \" data-a11y-dialog-hide aria-label=\"Lukk vinduet\">×</button>\n <div>\n <div class=\"you-chose\">" + ((_g = textsAndClasses.texts) === null || _g === void 0 ? void 0 : _g.youChoseText) + "</div>\n <h3 class=\"product-name " + ((_j = (_h = textsAndClasses.classes) === null || _h === void 0 ? void 0 : _h.dialogProductNameClass) !== null && _j !== void 0 ? _j : "") + "\">" + product.productName + "</h3> \n <p class=\"cost " + ((_l = (_k = textsAndClasses.classes) === null || _k === void 0 ? void 0 : _k.dialogCostClass) !== null && _l !== void 0 ? _l : "") + "\">" + deal.dealDescription + "</p>\n <p deal-name " + ((_o = (_m = textsAndClasses.classes) === null || _m === void 0 ? void 0 : _m.dialogDealNameClass) !== null && _o !== void 0 ? _o : "") + "\">" + deal.dealName + "</p>\n <p class=\"full-terms " + ((_q = (_p = textsAndClasses.classes) === null || _p === void 0 ? void 0 : _p.dialogFullTermsClass) !== null && _q !== void 0 ? _q : "") + "\">" + deal.fullTermsDescription + "</p>\n " + (((_r = textsAndClasses.texts) === null || _r === void 0 ? void 0 : _r.subtitleText) ? "<p class='subtitle-text " + | ||
((_t = (_s = textsAndClasses.classes) === null || _s === void 0 ? void 0 : _s.dialogSubtitleTextClass) !== null && _t !== void 0 ? _t : "") + | ||
"'>" + ((_u = textsAndClasses.texts) === null || _u === void 0 ? void 0 : _u.subtitleText) + | ||
"</p>" | ||
: "") + "\n <a href=\"" + cyclopsCheckoutRelativeURLServer(product.productId, deal.dealId, pathname, domain) + "\" class=\"dialog-buy buy-button " + ((_w = (_v = textsAndClasses.classes) === null || _v === void 0 ? void 0 : _v.dialogBuyButtonClass) !== null && _w !== void 0 ? _w : "") + "\">" + ((_x = textsAndClasses.texts) === null || _x === void 0 ? void 0 : _x.buyButtonText) + "</a>\n " + (((_y = textsAndClasses.texts) === null || _y === void 0 ? void 0 : _y.bottomText) ? "<p class='bottom-text " + | ||
: "") + "\n <a href=\"" + cyclopsCheckoutRelativeURLServer(product.productId, deal.dealId, pathname, domain) + "\" class=\"dialog-buy buy-button " + ((_w = (_v = textsAndClasses.classes) === null || _v === void 0 ? void 0 : _v.dialogBuyButtonClass) !== null && _w !== void 0 ? _w : "") + "\">" + ((_x = textsAndClasses.texts) === null || _x === void 0 ? void 0 : _x.buyButtonText) + "</a>\n " + (((_y = textsAndClasses.texts) === null || _y === void 0 ? void 0 : _y.bottomText) ? "<p class='bottom-text " + | ||
((_0 = (_z = textsAndClasses.classes) === null || _z === void 0 ? void 0 : _z.dialogBottomTextClass) !== null && _0 !== void 0 ? _0 : "") + | ||
"'>" + ((_1 = textsAndClasses.texts) === null || _1 === void 0 ? void 0 : _1.bottomText) + | ||
"</p>" | ||
: "") + "\n </div>\n </dialog>\n </div>"; | ||
: "") + "\n </div>\n </div>\n </div>\n </div>"; | ||
}; |
{ | ||
"name": "@aller/cyclops-frontend-vanilla", | ||
"version": "1.4.0-alpha.2", | ||
"version": "1.4.0-alpha.3", | ||
"description": "Vanilla JS implementation of login-button", | ||
@@ -49,3 +49,3 @@ "author": "kasperrt <kasper@kasperrt.no>", | ||
}, | ||
"gitHead": "6d24080493ea01df23446bcb37190bc547c84ca6" | ||
"gitHead": "b33658bddaa7938389a80214543674043123e437" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48449
755