@pelican-identity/vanilla 1.0.40 → 1.0.42

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/index.min.js CHANGED
@@ -461,13 +461,13 @@ Minimum version required to store current data is: `+u+`.
461
461
  background-color: #f5f5f5 !important;
462
462
  }
463
463
  `,document.head.appendChild(n);}function ei(n,e){wo();let i=document.getElementById(n);if(!i)throw new Error(`Container with id "${n}" not found`);let a=new ti.PelicanAuthentication(e),c={isOpen:e.continuousMode||false,qr:null,deeplink:null,authState:"idle",successMessage:null,error:null},u={isProcessing:()=>["initializing","paired","awaiting-auth"].includes(c.authState),showMobileAuth:()=>!e.forceQRCode&&!!c.deeplink,showQRView:()=>e.forceQRCode&&!!c.qr&&c.authState==="awaiting-pair"||!e.forceQRCode&&!!c.qr&&c.authState==="awaiting-pair",successText:()=>`${e.authType==="login"?"login":e.authType==="signup"?"signup":e.authType==="id-verification"?"verification":"authentication"} complete!`},p=[a.on("qr",ft=>{c.qr=ft,y();}),a.on("deeplink",ft=>{c.deeplink=ft,y();}),a.on("state",ft=>{c.authState=ft,y();}),a.on("success",ft=>{e.onSuccess(ft),e.continuousMode?(c.successMessage=u.successText(),y(),setTimeout(()=>{c.successMessage=null,y();},2e3)):(c.isOpen=false,y());}),a.on("error",ft=>{c.error=ft,e.onError?.(ft),y();})];function y(){if(!i)return;let ft=E();i.innerHTML=ft,wt();}function E(){return `
464
- <section style="max-width: 520px; width: 100%;">
464
+ <section style="width: 100%;">
465
465
  ${z()}
466
466
  ${q()}
467
467
  ${st()}
468
468
  </section>
469
469
  `}function z(){return !e.continuousMode&&c.authState==="idle"?`
470
- <div style="width: 100%; justify-content: space-between; align-items: center; max-width: 300px;">
470
+ <div style="width: 100%; justify-content: space-between; align-items: center;">
471
471
  <div style="width: 100%; display: flex; justify-content: space-between; align-items: center;">
472
472
  <button
473
473
  type="button"