@authsignal/browser 0.0.3 → 0.0.4
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/cjs/index.js +1 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -3562,7 +3562,7 @@ var PopupHandler = /** @class */ (function () {
|
|
|
3562
3562
|
// Create CSS for dialog
|
|
3563
3563
|
var style = document.createElement("style");
|
|
3564
3564
|
style.setAttribute("id", STYLE_ID);
|
|
3565
|
-
style.textContent = "\n #".concat(CONTAINER_ID, ",\n #").concat(OVERLAY_ID, " {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n }\n\n #").concat(CONTAINER_ID, " {\n z-index: 2;\n display: flex;\n }\n\n #").concat(CONTAINER_ID, "[aria-hidden='true'] {\n display: none;\n }\n\n #").concat(OVERLAY_ID, " {\n background-color: rgba(43, 46, 56, 0.9);\n }\n\n #").concat(CONTENT_ID, " {\n margin: auto;\n z-index: 2;\n position: relative;\n background-color: white;\n }\n ");
|
|
3565
|
+
style.textContent = "\n #".concat(CONTAINER_ID, ",\n #").concat(OVERLAY_ID, " {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n }\n\n #").concat(CONTAINER_ID, " {\n z-index: 2;\n display: flex;\n }\n\n #").concat(CONTAINER_ID, "[aria-hidden='true'] {\n display: none;\n }\n\n #").concat(OVERLAY_ID, " {\n background-color: rgba(43, 46, 56, 0.9);\n }\n\n #").concat(CONTENT_ID, " {\n margin: auto;\n z-index: 2;\n position: relative;\n background-color: white;\n height: 600px;\n width: 600px;\n border-radius: 5px;\n }\n\n #").concat(CONTENT_ID, " iframe {\n width: 100%;\n height: 100%;\n }\n ");
|
|
3566
3566
|
// Attach the created elements
|
|
3567
3567
|
document.head.insertAdjacentElement("beforeend", style);
|
|
3568
3568
|
container.appendChild(overlay);
|
|
@@ -3587,8 +3587,6 @@ var PopupHandler = /** @class */ (function () {
|
|
|
3587
3587
|
iframe.setAttribute("name", "authsignal");
|
|
3588
3588
|
iframe.setAttribute("title", "Authsignal multi-factor authentication challenge");
|
|
3589
3589
|
iframe.setAttribute("src", challengeUrl);
|
|
3590
|
-
iframe.setAttribute("width", "600");
|
|
3591
|
-
iframe.setAttribute("height", "600");
|
|
3592
3590
|
iframe.setAttribute("frameborder", "0");
|
|
3593
3591
|
var dialogContent = document.querySelector("#".concat(CONTENT_ID));
|
|
3594
3592
|
if (dialogContent) {
|