@authsignal/browser 0.0.18 → 0.0.19

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/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  The Authsignal Browser API can be used to launch the Authsignal Prebuilt MFA page to let users set up MFA and complete challenges.
9
9
 
10
- See the [documentation](https://docs.authsignal.com) for details on how to use this SDK with the Authsignal Server APIs.
10
+ See the [documentation](https://docs.authsignal.com/api/browser-api) for details on how to use this SDK with the Authsignal Server APIs.
11
11
 
12
12
  ### Server SDKs
13
13
  [NodeJS](https://www.npmjs.com/package/@authsignal/node)
package/dist/index.js CHANGED
@@ -543,7 +543,7 @@ var PopupHandler = /** @class */ (function () {
543
543
  // Create CSS for dialog
544
544
  var style = document.createElement("style");
545
545
  style.setAttribute("id", STYLE_ID);
546
- 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: 2147483647;\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: 2147483647;\n position: relative;\n background-color: white;\n height: ").concat(popupHeight, ";\n width: ").concat(popupWidth, ";\n border-radius: 8px;\n }\n\n #").concat(CONTENT_ID, " iframe {\n width: 100%;\n height: 100%;\n border-radius: inherit;\n }\n ");
546
+ 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: 2147483647;\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: 2147483647;\n position: relative;\n background-color: transparent;\n height: ").concat(popupHeight, ";\n width: ").concat(popupWidth, ";\n border-radius: 8px;\n }\n\n #").concat(CONTENT_ID, " iframe {\n width: 100%;\n height: 100%;\n border-radius: inherit;\n }\n ");
547
547
  // Attach the created elements
548
548
  document.head.insertAdjacentElement("beforeend", style);
549
549
  container.appendChild(overlay);
@@ -572,7 +572,7 @@ var PopupHandler = /** @class */ (function () {
572
572
  iframe.setAttribute("title", "Authsignal multi-factor authentication");
573
573
  iframe.setAttribute("src", url);
574
574
  iframe.setAttribute("frameborder", "0");
575
- iframe.setAttribute("allow", "publickey-credentials-get *");
575
+ iframe.setAttribute("allow", "publickey-credentials-get *; clipboard-write");
576
576
  var dialogContent = document.querySelector("#".concat(CONTENT_ID));
577
577
  if (dialogContent) {
578
578
  dialogContent.appendChild(iframe);
package/dist/index.mjs CHANGED
@@ -539,7 +539,7 @@ var PopupHandler = /** @class */ (function () {
539
539
  // Create CSS for dialog
540
540
  var style = document.createElement("style");
541
541
  style.setAttribute("id", STYLE_ID);
542
- 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: 2147483647;\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: 2147483647;\n position: relative;\n background-color: white;\n height: ").concat(popupHeight, ";\n width: ").concat(popupWidth, ";\n border-radius: 8px;\n }\n\n #").concat(CONTENT_ID, " iframe {\n width: 100%;\n height: 100%;\n border-radius: inherit;\n }\n ");
542
+ 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: 2147483647;\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: 2147483647;\n position: relative;\n background-color: transparent;\n height: ").concat(popupHeight, ";\n width: ").concat(popupWidth, ";\n border-radius: 8px;\n }\n\n #").concat(CONTENT_ID, " iframe {\n width: 100%;\n height: 100%;\n border-radius: inherit;\n }\n ");
543
543
  // Attach the created elements
544
544
  document.head.insertAdjacentElement("beforeend", style);
545
545
  container.appendChild(overlay);
@@ -568,7 +568,7 @@ var PopupHandler = /** @class */ (function () {
568
568
  iframe.setAttribute("title", "Authsignal multi-factor authentication");
569
569
  iframe.setAttribute("src", url);
570
570
  iframe.setAttribute("frameborder", "0");
571
- iframe.setAttribute("allow", "publickey-credentials-get *");
571
+ iframe.setAttribute("allow", "publickey-credentials-get *; clipboard-write");
572
572
  var dialogContent = document.querySelector("#".concat(CONTENT_ID));
573
573
  if (dialogContent) {
574
574
  dialogContent.appendChild(iframe);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@authsignal/browser",
3
3
  "type": "module",
4
- "version": "0.0.18",
4
+ "version": "0.0.19",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",