@nightnetwork/night-auth 1.0.4 → 1.0.6

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.
@@ -24442,6 +24442,13 @@ class l6 {
24442
24442
  constructor(a) {
24443
24443
  this.options = a, this.modalVisible = !1, this.options.disableFontInjection || this.injectFont();
24444
24444
  }
24445
+ injectFont() {
24446
+ const a = "night-login-font";
24447
+ if (!document.getElementById(a)) {
24448
+ const s = document.createElement("link");
24449
+ s.id = a, s.href = "https://fonts.cdnfonts.com/css/onest", s.rel = "stylesheet", document.head.appendChild(s);
24450
+ }
24451
+ }
24445
24452
  renderTrigger(a) {
24446
24453
  const r = {
24447
24454
  defaultTheme: "dark",
@@ -24606,7 +24613,9 @@ class l6 {
24606
24613
  show(a) {
24607
24614
  this.modalVisible = !0;
24608
24615
  let s = null;
24609
- a && (s = document.getElementById(a), s || console.error(`NightLogin: Element with id "${a}" not found. Falling back to default overlay.`)), s || (s = document.getElementById("night-login-overlay"), s || (s = document.createElement("div"), s.id = "night-login-overlay", s.style.position = "fixed", s.style.inset = "0", s.style.zIndex = String(
24616
+ a && (s = document.getElementById(a), s || console.error(
24617
+ `NightLogin: Element with id "${a}" not found. Falling back to default overlay.`
24618
+ )), s || (s = document.getElementById("night-login-overlay"), s || (s = document.createElement("div"), s.id = "night-login-overlay", s.style.position = "fixed", s.style.inset = "0", s.style.zIndex = String(
24610
24619
  this.options && this.options.zIndex || 999999
24611
24620
  ), s.style.pointerEvents = "none", document.body.appendChild(s))), s.classList.add("night-login-wrapper");
24612
24621
  const r = M.createElement(