diff --git a/.version b/.version index fa49670..d80b4a8 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -v2.4.0 \ No newline at end of file +v2.5.0 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e77bd6..4c974fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## [v2.5.0](https://github.com/auth0/auth0-vue/tree/v2.5.0) (2025-12-12) +[Full Changelog](https://github.com/auth0/auth0-vue/compare/v2.4.0...v2.5.0) + +**Added** +- feat: add DPoP support with fetcher API [\#500](https://github.com/auth0/auth0-vue/pull/500) ([yogeshchoudhary147](https://github.com/yogeshchoudhary147)) + ## [v2.4.0](https://github.com/auth0/auth0-vue/tree/v2.4.0) (2024-12-02) [Full Changelog](https://github.com/auth0/auth0-vue/compare/v2.3.3...v2.4.0) diff --git a/docs/assets/highlight.css b/docs/assets/highlight.css index 95384e7..78ede62 100644 --- a/docs/assets/highlight.css +++ b/docs/assets/highlight.css @@ -23,10 +23,12 @@ --dark-hl-10: #9CDCFE; --light-hl-11: #0000FF; --dark-hl-11: #CE9178; - --light-hl-12: #267F99; - --dark-hl-12: #4EC9B0; - --light-hl-13: #008000; - --dark-hl-13: #6A9955; + --light-hl-12: #008000; + --dark-hl-12: #6A9955; + --light-hl-13: #098658; + --dark-hl-13: #B5CEA8; + --light-hl-14: #267F99; + --dark-hl-14: #4EC9B0; --light-code-background: #FFFFFF; --dark-code-background: #1E1E1E; } @@ -46,6 +48,7 @@ --hl-11: var(--light-hl-11); --hl-12: var(--light-hl-12); --hl-13: var(--light-hl-13); + --hl-14: var(--light-hl-14); --code-background: var(--light-code-background); } } @@ -64,6 +67,7 @@ --hl-11: var(--dark-hl-11); --hl-12: var(--dark-hl-12); --hl-13: var(--dark-hl-13); + --hl-14: var(--dark-hl-14); --code-background: var(--dark-code-background); } } @@ -82,6 +86,7 @@ --hl-11: var(--light-hl-11); --hl-12: var(--light-hl-12); --hl-13: var(--light-hl-13); + --hl-14: var(--light-hl-14); --code-background: var(--light-code-background); } @@ -100,6 +105,7 @@ --hl-11: var(--dark-hl-11); --hl-12: var(--dark-hl-12); --hl-13: var(--dark-hl-13); + --hl-14: var(--dark-hl-14); --code-background: var(--dark-code-background); } @@ -117,4 +123,5 @@ .hl-11 { color: var(--hl-11); } .hl-12 { color: var(--hl-12); } .hl-13 { color: var(--hl-13); } +.hl-14 { color: var(--hl-14); } pre, code { background: var(--code-background); } diff --git a/docs/assets/icons.js b/docs/assets/icons.js new file mode 100644 index 0000000..3dfbd32 --- /dev/null +++ b/docs/assets/icons.js @@ -0,0 +1,18 @@ +(function() { + addIcons(); + function addIcons() { + if (document.readyState === "loading") return document.addEventListener("DOMContentLoaded", addIcons); + const svg = document.body.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "svg")); + svg.innerHTML = `MMNEPVFCICPMFPCPTTAAATR`; + svg.style.display = "none"; + if (location.protocol === "file:") updateUseElements(); + } + + function updateUseElements() { + document.querySelectorAll("use").forEach(el => { + if (el.getAttribute("href").includes("#icon-")) { + el.setAttribute("href", el.getAttribute("href").replace(/.*#/, "#")); + } + }); + } +})() \ No newline at end of file diff --git a/docs/assets/icons.svg b/docs/assets/icons.svg new file mode 100644 index 0000000..a19417d --- /dev/null +++ b/docs/assets/icons.svg @@ -0,0 +1 @@ +MMNEPVFCICPMFPCPTTAAATR \ No newline at end of file diff --git a/docs/assets/main.js b/docs/assets/main.js index d0aa8d5..99097a0 100644 --- a/docs/assets/main.js +++ b/docs/assets/main.js @@ -1,8 +1,9 @@ "use strict"; -"use strict";(()=>{var Pe=Object.create;var ne=Object.defineProperty;var Ie=Object.getOwnPropertyDescriptor;var Oe=Object.getOwnPropertyNames;var _e=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var Me=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Fe=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Oe(e))!Re.call(t,i)&&i!==n&&ne(t,i,{get:()=>e[i],enumerable:!(r=Ie(e,i))||r.enumerable});return t};var De=(t,e,n)=>(n=t!=null?Pe(_e(t)):{},Fe(e||!t||!t.__esModule?ne(n,"default",{value:t,enumerable:!0}):n,t));var ae=Me((se,oe)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. -`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),v=s.str.charAt(1),f;v in s.node.edges?f=s.node.edges[v]:(f=new t.TokenSet,s.node.edges[v]=f),s.str.length==1&&(f.final=!0),i.push({node:f,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof se=="object"?oe.exports=n():e.lunr=n()}(this,function(){return t})})()});var re=[];function G(t,e){re.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureActivePageVisible(),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible())}createComponents(e){re.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r}}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(n&&n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let r=document.createElement("p");r.classList.add("warning"),r.textContent="This member is normally hidden due to your filter settings.",n.prepend(r)}}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent="Copied!",e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent="Copy"},100)},1e3)})})}};var ie=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var de=De(ae());async function le(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=de.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function he(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{le(e,t)}),le(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");let s=!1;i.addEventListener("mousedown",()=>s=!0),i.addEventListener("mouseup",()=>{s=!1,t.classList.remove("has-focus")}),r.addEventListener("focus",()=>t.classList.add("has-focus")),r.addEventListener("blur",()=>{s||(s=!1,t.classList.remove("has-focus"))}),Ae(t,i,r,e)}function Ae(t,e,n,r){n.addEventListener("input",ie(()=>{Ne(t,e,n,r)},200));let i=!1;n.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Ve(e,n):s.key=="Escape"?n.blur():s.key=="ArrowUp"?ue(e,-1):s.key==="ArrowDown"?ue(e,1):i=!1}),n.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!n.matches(":focus")&&s.key==="/"&&(n.focus(),s.preventDefault())})}function Ne(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=ce(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` - ${ce(l.parent,i)}.${d}`);let v=document.createElement("li");v.classList.value=l.classes??"";let f=document.createElement("a");f.href=r.base+l.url,f.innerHTML=u+d,v.append(f),e.appendChild(v)}}function ue(t,e){let n=t.querySelector(".current");if(!n)n=t.querySelector(e==1?"li:first-child":"li:last-child"),n&&n.classList.add("current");else{let r=n;if(e===1)do r=r.nextElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);else do r=r.previousElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);r&&(n.classList.remove("current"),r.classList.add("current"))}}function Ve(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),e.blur()}}function ce(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(K(t.substring(s,o)),`${K(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(K(t.substring(s))),i.join("")}var Be={"&":"&","<":"<",">":">","'":"'",'"':"""};function K(t){return t.replace(/[&<>"'"]/g,e=>Be[e])}var C=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",pe="mousemove",B="mouseup",J={x:0,y:0},fe=!1,ee=!1,He=!1,D=!1,me=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(me?"is-mobile":"not-mobile");me&&"ontouchstart"in document.documentElement&&(He=!0,F="touchstart",pe="touchmove",B="touchend");document.addEventListener(F,t=>{ee=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(pe,t=>{if(ee&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(B,()=>{ee=!1});document.addEventListener("click",t=>{fe&&(t.preventDefault(),t.stopImmediatePropagation(),fe=!1)});var X=class extends C{constructor(n){super(n);this.className=this.el.dataset.toggle||"",this.el.addEventListener(B,r=>this.onPointerUp(r)),this.el.addEventListener("click",r=>r.preventDefault()),document.addEventListener(F,r=>this.onDocumentPointerDown(r)),document.addEventListener(B,r=>this.onDocumentPointerUp(r))}setActive(n){if(this.active==n)return;this.active=n,document.documentElement.classList.toggle("has-"+this.className,n),this.el.classList.toggle("active",n);let r=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(r),setTimeout(()=>document.documentElement.classList.remove(r),500)}onPointerUp(n){D||(this.setActive(!0),n.preventDefault())}onDocumentPointerDown(n){if(this.active){if(n.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(n){if(!D&&this.active&&n.target.closest(".col-sidebar")){let r=n.target.closest("a");if(r){let i=window.location.href;i.indexOf("#")!=-1&&(i=i.substring(0,i.indexOf("#"))),r.href.substring(0,i.length)==i&&setTimeout(()=>this.setActive(!1),250)}}}};var te;try{te=localStorage}catch{te={getItem(){return null},setItem(){}}}var Q=te;var ve=document.head.appendChild(document.createElement("style"));ve.dataset.for="filters";var Y=class extends C{constructor(n){super(n);this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ve.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } -`}fromLocalStorage(){let n=Q.getItem(this.key);return n?n==="true":this.el.checked}setLocalStorage(n){Q.setItem(this.key,n.toString()),this.value=n,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),document.querySelectorAll(".tsd-index-section").forEach(n=>{n.style.display="block";let r=Array.from(n.querySelectorAll(".tsd-index-link")).every(i=>i.offsetParent==null);n.style.display=r?"none":"block"})}};var Z=class extends C{constructor(n){super(n);this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let r=Q.getItem(this.key);this.el.open=r?r==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let i=this.summary.querySelector("a");i&&i.addEventListener("click",()=>{location.assign(i.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function ge(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,ye(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),ye(t.value)})}function ye(t){document.documentElement.dataset.theme=t}var Le;function be(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",xe),xe())}async function xe(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();Le=t.dataset.base+"/",t.innerHTML="";for(let s of i)we(s,t,[]);window.app.createComponents(t),window.app.ensureActivePageVisible()}function we(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-index-accordion`:"tsd-index-accordion",s.dataset.key=i.join("$");let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.innerHTML='',Ee(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)we(u,l,i)}else Ee(t,r,t.class)}function Ee(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=Le+t.path,n&&(r.className=n),location.href===r.href&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else e.appendChild(document.createElement("span")).textContent=t.text}G(X,"a[data-toggle]");G(Z,".tsd-index-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Se=document.getElementById("tsd-theme");Se&&ge(Se);var je=new U;Object.defineProperty(window,"app",{value:je});he();be();})(); +window.translations={"copy":"Copy","copied":"Copied!","normally_hidden":"This member is normally hidden due to your filter settings."}; +"use strict";(()=>{var Pe=Object.create;var ie=Object.defineProperty;var Oe=Object.getOwnPropertyDescriptor;var _e=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,Me=Object.prototype.hasOwnProperty;var Fe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var De=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of _e(e))!Me.call(t,i)&&i!==n&&ie(t,i,{get:()=>e[i],enumerable:!(r=Oe(e,i))||r.enumerable});return t};var Ae=(t,e,n)=>(n=t!=null?Pe(Re(t)):{},De(e||!t||!t.__esModule?ie(n,"default",{value:t,enumerable:!0}):n,t));var ue=Fe((ae,le)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. +`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),m=s.str.charAt(1),p;m in s.node.edges?p=s.node.edges[m]:(p=new t.TokenSet,s.node.edges[m]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof ae=="object"?le.exports=n():e.lunr=n()}(this,function(){return t})})()});var se=[];function G(t,e){se.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}createComponents(e){se.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}showPage(){document.body.style.display&&(document.body.style.removeProperty("display"),this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}scrollToHash(){if(location.hash){let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e&&!Ve(e)){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r,document.querySelector(".col-sidebar").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(!n)return;let r=n.offsetParent==null,i=n;for(;i!==document.body;)i instanceof HTMLDetailsElement&&(i.open=!0),i=i.parentElement;if(n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let s=document.createElement("p");s.classList.add("warning"),s.textContent=window.translations.normally_hidden,n.prepend(s)}r&&e.scrollIntoView()}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent=window.translations.copied,e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent=window.translations.copy},100)},1e3)})})}};function Ve(t){let e=t.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(e.bottom<0||e.top-n>=0)}var oe=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var pe=Ae(ue());async function ce(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=pe.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function fe(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{ce(e,t)}),ce(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");i.addEventListener("mouseup",()=>{te(t)}),r.addEventListener("focus",()=>t.classList.add("has-focus")),He(t,i,r,e)}function He(t,e,n,r){n.addEventListener("input",oe(()=>{Ne(t,e,n,r)},200)),n.addEventListener("keydown",i=>{i.key=="Enter"?Be(e,t):i.key=="ArrowUp"?(de(e,n,-1),i.preventDefault()):i.key==="ArrowDown"&&(de(e,n,1),i.preventDefault())}),document.body.addEventListener("keypress",i=>{i.altKey||i.ctrlKey||i.metaKey||!n.matches(":focus")&&i.key==="/"&&(i.preventDefault(),n.focus())}),document.body.addEventListener("keyup",i=>{t.classList.contains("has-focus")&&(i.key==="Escape"||!e.matches(":focus-within")&&!n.matches(":focus"))&&(n.blur(),te(t))})}function te(t){t.classList.remove("has-focus")}function Ne(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=he(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` + ${he(l.parent,i)}.${d}`);let m=document.createElement("li");m.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=u+d,m.append(p),p.addEventListener("focus",()=>{e.querySelector(".current")?.classList.remove("current"),m.classList.add("current")}),e.appendChild(m)}}function de(t,e,n){let r=t.querySelector(".current");if(!r)r=t.querySelector(n==1?"li:first-child":"li:last-child"),r&&r.classList.add("current");else{let i=r;if(n===1)do i=i.nextElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);else do i=i.previousElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);i?(r.classList.remove("current"),i.classList.add("current")):n===-1&&(r.classList.remove("current"),e.focus())}}function Be(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),te(e)}}function he(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(ee(t.substring(s,o)),`${ee(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(ee(t.substring(s))),i.join("")}var je={"&":"&","<":"<",">":">","'":"'",'"':"""};function ee(t){return t.replace(/[&<>"'"]/g,e=>je[e])}var I=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",ye="mousemove",N="mouseup",J={x:0,y:0},me=!1,ne=!1,qe=!1,D=!1,ve=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(ve?"is-mobile":"not-mobile");ve&&"ontouchstart"in document.documentElement&&(qe=!0,F="touchstart",ye="touchmove",N="touchend");document.addEventListener(F,t=>{ne=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(ye,t=>{if(ne&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(N,()=>{ne=!1});document.addEventListener("click",t=>{me&&(t.preventDefault(),t.stopImmediatePropagation(),me=!1)});var X=class extends I{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(N,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(F,n=>this.onDocumentPointerDown(n)),document.addEventListener(N,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var re;try{re=localStorage}catch{re={getItem(){return null},setItem(){}}}var Q=re;var ge=document.head.appendChild(document.createElement("style"));ge.dataset.for="filters";var Y=class extends I{constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ge.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } +`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var Z=class extends I{constructor(e){super(e),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function Ee(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,xe(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),xe(t.value)})}function xe(t){document.documentElement.dataset.theme=t}var K;function we(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",Le),Le())}async function Le(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();K=t.dataset.base,K.endsWith("/")||(K+="/"),t.innerHTML="";for(let s of i)Se(s,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function Se(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-accordion`:"tsd-accordion";let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.dataset.key=i.join("$"),o.innerHTML='',be(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)Se(u,l,i)}else be(t,r,t.class)}function be(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=K+t.path,n&&(r.className=n),location.pathname===r.pathname&&!r.href.includes("#")&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else{let r=e.appendChild(document.createElement("span"));r.innerHTML='',r.appendChild(document.createElement("span")).textContent=t.text}}G(X,"a[data-toggle]");G(Z,".tsd-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Te=document.getElementById("tsd-theme");Te&&Ee(Te);var $e=new U;Object.defineProperty(window,"app",{value:$e});fe();we();})(); /*! Bundled license information: lunr/lunr.js: diff --git a/docs/assets/navigation.js b/docs/assets/navigation.js index b0eb21d..b8b959f 100644 --- a/docs/assets/navigation.js +++ b/docs/assets/navigation.js @@ -1 +1 @@ -window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAE6WVXU/CMBSG/0uvwQEKKneEEJwiEAGNMYbU7cAaSru0ZwY0/nezEWDfW8bt3mfPe7Z23ccvQdgh6RJTPMNWqn2fWg6QGnEpOqRLLE61Bm1E4isHt5zUyIYJm3SbrbvagSNdgtquM12HHYISlJO/2qlhJC3KZygVXUNGSwKp1rTQoJJy/2o1X891Z0gxNDATCGpFLdDGMYyqW+1OWOCh05hyb83ExEUmhU5XJbBC6asHfc5AYLbwhJSXFQ4ZJ4vUQ48qu8gahoqEUrEf6pNTqug22xnjEtpS6z8EnMsNiBnjIJDv8x4kg72s+I2hM5Wu55ZpjsPVqs3YJxoqMlM+zdJaO5gx3XvIqolHci293I0bIfL21wFcKF5sO0PVpg7WqS/Fiq3zypLYBXUjWXAMJahqZS9gMwUWFvalgXnrE2w//1fhk2cj7l3QRiSMWRr3t812q9TwgYZ+cUj1+0F1d28xf2gszfHjoD83J+Pl0+D93PJNFfP12kjBop3XrZCUHg/Qs2rlCSt4mcYpjAo6NyGBpYAiBKd7miIUl5JkzhJDcmSezh7nmCVu//wHTqagcNMIAAA=" \ No newline at end of file +window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAE6WWXW/aMBSG/4uv6ULZ2m3cVYx12SigAZuqaqq85ECsOrZlH0+l0/77RCiQxPmSuT5PnvfEPrL98JcgPCMZks+AUQKa9IiimJAhiTg1BkzwWniTYMpJjzwxEZPh5eBDb0+QIUETXzBzAc8IWlBO/vWO1lDcQSr1dkSjBFx3oeyXMJER5QuUmm6gJsVB/JJWBj4pqaZSRDDWWlaslYN4J1XLPX03Si2QYm5pmEDQaxqBCQ7FonpwdZ0XWEz6c243TMwUMilMtcrBWqU/LIw4A4H1wiPSXdbaZJlsU99aquM2ax5qE0rNXuiOnFNN03pniXO0nfb/FnApn0AsGAeBfNv0IzXsecE/GSZzqazqklyG/aLD0mGQCworDoHO2jjrsdq7r/mJJ3IjbePgFoim+dqDK83bbSfIr+tsn0ZSrNmmKczFzoibyJZjyKH8wr5DzDRE2JpXBTbtTzZ+9DfPTSduFZjgWCh93f/4/vJq0KnpTLG78HZdVPoPxTMyrEGZZu+COyZYSvnMorLoxNVw/smvb5H9JJXjCkX/jJvV8kv/MZx+HY+W4Wz6+G18f0r6QzXbbZAJKrBi5ttBTkoP18NJtbYiykYlOBaLgut3OUGkgSJkd1eVIlfuJKntpYQ0yKypb+dQcz7/9R+Lfmw5cQoAAA==" \ No newline at end of file diff --git a/docs/assets/search.js b/docs/assets/search.js index 0d3eb92..22ae57d 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE7VZYW+jOBD9L+5Xb4tNSJN8q6rVXe+q3era29MJRZEX3MQXCghM96oo/31lE2BMbEouvU9Vy3szb+aNjXF3qMh+lGgR7tBWpDFaTCcYpeyFowWKCs4kv6nkxkMYVUWCFui5SiMpsrS8Ak8vN/IlQRhFCStLXqIFQntsCViVzmjNo8FQPm1D3fz59Ku3uvvy2+fbp7uvX1a/f/67jfrKCsG+J7y8sqAGE9Bg2mXI80fJJG/DilTy4plFKu7h2WAw4tGudMmKNZfvxrpocSAkRjkreCqhKIdm1cKHpFqL9GuuG2vNeIQaX0e5FfkfPBYFj+QtS5LvLNqekOPCwXdUe1yOQxYviqx4YHJzihZI+g8Cjhr/reK3iVBMl4gWMb7horzPWCzS9cigF5AwUFUn1plY4XgqRcQkj8en79POEVGVvBib+YA9q+b4Kdvy9DZh4sW9dPoV90jnCNAjOTZxAz4xIfUmszZhkq1F+peQm4csr/KxmY9YHyKh2RdOVgGI5wjZsDRO+OjdrafGyT5HUrTh0faRl6XI0rFCepxz0q+5vIkiXpZ6wh9FwlOZvI0V4mR/nKSTJ9dNP3OEs+qUua3Rp6Z0vnDee9n3gaMPQfda6kB4AzA6bLNK7rPhk4oNN/aw2Z1Pf6lYEQ+eYDViOHAQ+J3+1Uq+5XxkyIv+H1u23f8+vF/I/yLqEznI+kQ/QlhnAxswgI1qfX/sNeOdiYeY8Wctljv3kaOAFzXYvYQNmY6Exch1YFfgYI+VtMRIpDH/Fy126JUX+nWxQPTSv5wjjJ4FT2L1YVhrxSjKXl5UqOXh2TceyaxQiBpy5SEcetj3Lqeev1zisGHoB/oPGkYQDokNRgwYRTikNhg1YD7CoW+D+QZsgnA4scEmBixAOAxssMCATREOpzbY1IBdIxxe22DXBmyGcDizwWYGbI5wOLfB5mZ7VbeJ1QfSM0I7YbfC9IKonhOrG8S0g6i2E6shxHSEqM4TqyfENIWo5hOrLcT0haj+E6szxLSGKAuI1RxiukOUC8TqDzENIsoIYrWImB5RZQS1ekRNj6gyglo9or31oheMfcWYHlFlBPUxDS4n84mJND2iyghq9YiaHlFlBA2sMU2P6NSNND2iyghqdZOaHlFlBLW6SU2PqDKCWt2kpke+5+ySX3uk989XXkge39X7aBi2L+EdWh02Vxo02/0O0QAtdnuM6FT93HebqvpNpdAvFcCdAe7czSnri6qO6Hc830VTB8OVSP/h+m282vI3IzXIPBQh17cjWfP26QKAsoOhAK8Vjw63Jh0Z1D0bRbYIoASUQAairOvjCWBOAfP6PaYt9TUI4CpAf6eVzXdaRyaATFzZ67MXq29TO67XUb13mcd1T4DsiYN/uHUAesGwEde0aVau79o6JijUVeeaS6a/16T6Xivbb0iQHswKcfXaDPNDyE1ef/aBOHMQx7XW6o/85uAVtR/5IAyYHeJa5iLWOqLDlRFgg2VHXOtOlMy8YgN8MADENQGiTJobwo4JqncVr+9b7L0Dg0Ncg9PSi/a6BkQA2wVx7RfNhzOYWFAvddVb02zLFG5yrm43arV8WxAw/tSv93ffJUVdfw9NDxge1+w0/yHoSKD5rt5X5fFeAbZH1+5YX6kCCuRYSUuMcpHzRKQcLcLlfv8TrNV8i2EaAAA="; \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE7WaXW/bNhSG/wtzq6Y+h/6+K7Juy1a0wdp1GITAUCXG5qJIgkSlC4z894GUJZEi5dJxdtXC4vvyHPIhdURmT8r8e0XW4Z7c8ywh6/k0IFn0wMiaxCWLBHtXi92EBKQuU7Imd3UWC55n1Vvt6eVOPKQkIHEaVRWryJqQ58BhWFejbu2jo1YUO6t3f375dbK5/vjb+6sv158+bn5//3fn+hiVPPqWsuqto9XRDnA273sois8iEqyz5Zlg5V0US9/Ds6NmMME+dRGVWyZ+6HXRtdMsA1JEJcuEHtRIzHIIb9J6y7NPhRpYZ49WK/88qnte/MESXrJYXEVp+i2K70/o42JEP5Ktnc5IWKws8/ImErtTYtFFLwjAGvivNbtKuVSOBdG18B9wXn3Io4RnW0/TC11wJKs+2NGOZTuWCR5HgiX+3Q9l5wRRV6z07fnQ9qycky/5Pcuu0og/jC+dYcYD0TkBKCR9O24bn9ghTqbLrsM03/LsLy52N3lRF749W6pXCaHdF06OQhOeE8guypKUee9ug2hG1eeEFO9YfP+ZVRXPM99ABppzut8y8S6OWVUpwj/zlGUiffINZFT9eiGdTO64/EyE8/oUbpvWZ47DT0VefMyz2F2iuJPXNed0X72g++r1ut+yjJWRYNLvpszzO/8hsIVnLVBVBf/MRLzzf1MNRacGMFp4/KjoGzb0LoY/KGSP2BsNvG3b3fJDfrxidbXz/ejov1N+qaMyOfolo1ocN57NaB//ZiOeCuZpeTH8sVO753/YfJjI/xLUGziE9QZfI7B+GqIjExB5Df0Qe6X4AfF6G/+aOypG3yeW4UXTeHwJG2GOdFh6rgN3BCNq35BuA8KzhP1L1nvyyEpVNqwJXtLLFQnIHWdpIg8ImlgDEucPD803TpLHtfrv7aHZVxaLvJSNm9ZvJyQIJwGFy8USbm+DsBWrB+qH1qP/RQmBBCG4hGAJwRAiCUJ0CdESoiGkJAipS0gtITWEUxKEU5dwagmnhnBGgnDmEs4s4cwQzkkQzl3CuSWcG8IFCcKFS7iwhAtDuCRBuHQJl5ZwaQhXJAhXLuHKEq5MACQP4GQHbHhgQI/Cx82PAyCTIJBcgJMhsCECkyKQbICTI7BBApMkkHyAkyWwYQKTJpCMgJMnsIECkyiQnICTKbChApMqkKyAkyuwwQKTLJC8gJMtsOECky6QzICTL7ABA5MwlMygkzC0CUOTMJTMoJMwtAnDwR6lNin3LuXYpkzCUDKDTsLQJgxNwlAyg07C0CYMTcJQMoNOwtAmDE3CUDKDTsLQJgxNwlAyg4sA55fzBZpimzA0CUPJDDoJQ5swNAlDyQyunD3bhKFJGJ2MiqlNGDUJo5IZ6sST2oRRkzAqmaFOPKlNGB28CdWr0IkndbwMTcLodHSqqE3Y4SdVgTyyUrDkuqlEwrArY/dkcyhPcNUWTHuCK7LePweETuS/z31Zon7tKhP5TPaoirTeqb9I2BNKfR2q5jpAs9Fc/EzkR9iGZ/8wVflu7tmTkaCWn79foc6n87bu6+1mvd3M3+6xZvHhFLu3WvZWyxdYOYJDLTr0D2/bfEJoczDRJgFO83GERUGz85sEdd5WtedtvRUseitY+FmpL6mouSPrnbQU/XDvfazxQm0q0W8uG7e79rhC85pqXlMvr8OZtTZK2iICv1WkPAp1b9P7aIPtN9btSVBS5EXRnARpmWlRoV9UWyYidbIo5Mli1Z12aqlqQw9+Q2+afudiVzTHlZqrtivCytdVZp01B3Fa1hr86LeWmlPv9gs07k69tfjmWnxzL1OeqHTjw42K5qXtkOC3OnkVmfdRmpu2rsBvYfEqbS/Xeh9tAvzGX11cuCdTW1Hgt6I6s7K7BdH8tF0W/HbZ9nRaw0IbJ/Qbp8bEte1rNKAfDW1eKlGXpbb0cXEoC/zGrhpbCPqb2I8zebF9bBloeful3f4lQG+hseGXXl3Z7xJtifut8OZaVTPQHTwsbgNS8IKlPGNkHd4+P/8HunTlsXMiAAA="; \ No newline at end of file diff --git a/docs/assets/style.css b/docs/assets/style.css index 07a385b..178bfb0 100644 --- a/docs/assets/style.css +++ b/docs/assets/style.css @@ -4,12 +4,19 @@ --light-color-background-secondary: #eff0f1; --light-color-warning-text: #222; --light-color-background-warning: #e6e600; - --light-color-icon-background: var(--light-color-background); --light-color-accent: #c5c7c9; --light-color-active-menu-item: var(--light-color-accent); --light-color-text: #222; --light-color-text-aside: #6e6e6e; + + --light-color-icon-background: var(--light-color-background); + --light-color-icon-text: var(--light-color-text); + + --light-color-comment-tag-text: var(--light-color-text); + --light-color-comment-tag: var(--light-color-background); + --light-color-link: #1f70c2; + --light-color-focus-outline: #3584e4; --light-color-ts-keyword: #056bd6; --light-color-ts-project: #b111c9; @@ -21,20 +28,22 @@ --light-color-ts-function: #572be7; --light-color-ts-class: #1f70c2; --light-color-ts-interface: #108024; - --light-color-ts-constructor: var(--light-color-ts-class); - --light-color-ts-property: var(--light-color-ts-variable); - --light-color-ts-method: var(--light-color-ts-function); + --light-color-ts-constructor: #4d7fff; + --light-color-ts-property: #ff984d; + --light-color-ts-method: #ff4db8; + --light-color-ts-reference: #ff4d82; --light-color-ts-call-signature: var(--light-color-ts-method); --light-color-ts-index-signature: var(--light-color-ts-property); --light-color-ts-constructor-signature: var(--light-color-ts-constructor); --light-color-ts-parameter: var(--light-color-ts-variable); /* type literal not included as links will never be generated to it */ - --light-color-ts-type-parameter: var(--light-color-ts-type-alias); - --light-color-ts-accessor: var(--light-color-ts-property); + --light-color-ts-type-parameter: #a55c0e; + --light-color-ts-accessor: #ff4d4d; --light-color-ts-get-signature: var(--light-color-ts-accessor); --light-color-ts-set-signature: var(--light-color-ts-accessor); --light-color-ts-type-alias: #d51270; /* reference not included as links will be colored with the kind that it points to */ + --light-color-document: #000000; --light-external-icon: url("data:image/svg+xml;utf8,"); --light-color-scheme: light; @@ -44,12 +53,19 @@ --dark-color-background-secondary: #1e2024; --dark-color-background-warning: #bebe00; --dark-color-warning-text: #222; - --dark-color-icon-background: var(--dark-color-background-secondary); --dark-color-accent: #9096a2; --dark-color-active-menu-item: #5d5d6a; --dark-color-text: #f5f5f5; --dark-color-text-aside: #dddddd; + + --dark-color-icon-background: var(--dark-color-background-secondary); + --dark-color-icon-text: var(--dark-color-text); + + --dark-color-comment-tag-text: var(--dark-color-text); + --dark-color-comment-tag: var(--dark-color-background); + --dark-color-link: #00aff4; + --dark-color-focus-outline: #4c97f2; --dark-color-ts-keyword: #3399ff; --dark-color-ts-project: #e358ff; @@ -61,20 +77,22 @@ --dark-color-ts-function: #a280ff; --dark-color-ts-class: #8ac4ff; --dark-color-ts-interface: #6cff87; - --dark-color-ts-constructor: var(--dark-color-ts-class); - --dark-color-ts-property: var(--dark-color-ts-variable); - --dark-color-ts-method: var(--dark-color-ts-function); + --dark-color-ts-constructor: #4d7fff; + --dark-color-ts-property: #ff984d; + --dark-color-ts-method: #ff4db8; + --dark-color-ts-reference: #ff4d82; --dark-color-ts-call-signature: var(--dark-color-ts-method); --dark-color-ts-index-signature: var(--dark-color-ts-property); --dark-color-ts-constructor-signature: var(--dark-color-ts-constructor); --dark-color-ts-parameter: var(--dark-color-ts-variable); /* type literal not included as links will never be generated to it */ - --dark-color-ts-type-parameter: var(--dark-color-ts-type-alias); - --dark-color-ts-accessor: var(--dark-color-ts-property); + --dark-color-ts-type-parameter: #e07d13; + --dark-color-ts-accessor: #ff4d4d; --dark-color-ts-get-signature: var(--dark-color-ts-accessor); --dark-color-ts-set-signature: var(--dark-color-ts-accessor); --dark-color-ts-type-alias: #ff6492; /* reference not included as links will be colored with the kind that it points to */ + --dark-color-document: #ffffff; --dark-external-icon: url("data:image/svg+xml;utf8,"); --dark-color-scheme: dark; @@ -86,14 +104,22 @@ --color-background-secondary: var(--light-color-background-secondary); --color-background-warning: var(--light-color-background-warning); --color-warning-text: var(--light-color-warning-text); - --color-icon-background: var(--light-color-icon-background); --color-accent: var(--light-color-accent); --color-active-menu-item: var(--light-color-active-menu-item); --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); + + --color-icon-background: var(--light-color-icon-background); + --color-icon-text: var(--light-color-icon-text); + + --color-comment-tag-text: var(--light-color-text); + --color-comment-tag: var(--light-color-background); + --color-link: var(--light-color-link); + --color-focus-outline: var(--light-color-focus-outline); --color-ts-keyword: var(--light-color-ts-keyword); + --color-ts-project: var(--light-color-ts-project); --color-ts-module: var(--light-color-ts-module); --color-ts-namespace: var(--light-color-ts-namespace); --color-ts-enum: var(--light-color-ts-enum); @@ -105,6 +131,7 @@ --color-ts-constructor: var(--light-color-ts-constructor); --color-ts-property: var(--light-color-ts-property); --color-ts-method: var(--light-color-ts-method); + --color-ts-reference: var(--light-color-ts-reference); --color-ts-call-signature: var(--light-color-ts-call-signature); --color-ts-index-signature: var(--light-color-ts-index-signature); --color-ts-constructor-signature: var( @@ -116,6 +143,7 @@ --color-ts-get-signature: var(--light-color-ts-get-signature); --color-ts-set-signature: var(--light-color-ts-set-signature); --color-ts-type-alias: var(--light-color-ts-type-alias); + --color-document: var(--light-color-document); --external-icon: var(--light-external-icon); --color-scheme: var(--light-color-scheme); @@ -128,14 +156,22 @@ --color-background-secondary: var(--dark-color-background-secondary); --color-background-warning: var(--dark-color-background-warning); --color-warning-text: var(--dark-color-warning-text); - --color-icon-background: var(--dark-color-icon-background); --color-accent: var(--dark-color-accent); --color-active-menu-item: var(--dark-color-active-menu-item); --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); + + --color-icon-background: var(--dark-color-icon-background); + --color-icon-text: var(--dark-color-icon-text); + + --color-comment-tag-text: var(--dark-color-text); + --color-comment-tag: var(--dark-color-background); + --color-link: var(--dark-color-link); + --color-focus-outline: var(--dark-color-focus-outline); --color-ts-keyword: var(--dark-color-ts-keyword); + --color-ts-project: var(--dark-color-ts-project); --color-ts-module: var(--dark-color-ts-module); --color-ts-namespace: var(--dark-color-ts-namespace); --color-ts-enum: var(--dark-color-ts-enum); @@ -147,6 +183,7 @@ --color-ts-constructor: var(--dark-color-ts-constructor); --color-ts-property: var(--dark-color-ts-property); --color-ts-method: var(--dark-color-ts-method); + --color-ts-reference: var(--dark-color-ts-reference); --color-ts-call-signature: var(--dark-color-ts-call-signature); --color-ts-index-signature: var(--dark-color-ts-index-signature); --color-ts-constructor-signature: var( @@ -158,6 +195,7 @@ --color-ts-get-signature: var(--dark-color-ts-get-signature); --color-ts-set-signature: var(--dark-color-ts-set-signature); --color-ts-type-alias: var(--dark-color-ts-type-alias); + --color-document: var(--dark-color-document); --external-icon: var(--dark-external-icon); --color-scheme: var(--dark-color-scheme); @@ -182,9 +220,16 @@ body { --color-active-menu-item: var(--light-color-active-menu-item); --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); + --color-icon-text: var(--light-color-icon-text); + + --color-comment-tag-text: var(--light-color-text); + --color-comment-tag: var(--light-color-background); + --color-link: var(--light-color-link); + --color-focus-outline: var(--light-color-focus-outline); --color-ts-keyword: var(--light-color-ts-keyword); + --color-ts-project: var(--light-color-ts-project); --color-ts-module: var(--light-color-ts-module); --color-ts-namespace: var(--light-color-ts-namespace); --color-ts-enum: var(--light-color-ts-enum); @@ -196,6 +241,7 @@ body { --color-ts-constructor: var(--light-color-ts-constructor); --color-ts-property: var(--light-color-ts-property); --color-ts-method: var(--light-color-ts-method); + --color-ts-reference: var(--light-color-ts-reference); --color-ts-call-signature: var(--light-color-ts-call-signature); --color-ts-index-signature: var(--light-color-ts-index-signature); --color-ts-constructor-signature: var( @@ -207,6 +253,7 @@ body { --color-ts-get-signature: var(--light-color-ts-get-signature); --color-ts-set-signature: var(--light-color-ts-set-signature); --color-ts-type-alias: var(--light-color-ts-type-alias); + --color-document: var(--light-color-document); --external-icon: var(--light-external-icon); --color-scheme: var(--light-color-scheme); @@ -222,9 +269,16 @@ body { --color-active-menu-item: var(--dark-color-active-menu-item); --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); + --color-icon-text: var(--dark-color-icon-text); + + --color-comment-tag-text: var(--dark-color-text); + --color-comment-tag: var(--dark-color-background); + --color-link: var(--dark-color-link); + --color-focus-outline: var(--dark-color-focus-outline); --color-ts-keyword: var(--dark-color-ts-keyword); + --color-ts-project: var(--dark-color-ts-project); --color-ts-module: var(--dark-color-ts-module); --color-ts-namespace: var(--dark-color-ts-namespace); --color-ts-enum: var(--dark-color-ts-enum); @@ -236,6 +290,7 @@ body { --color-ts-constructor: var(--dark-color-ts-constructor); --color-ts-property: var(--dark-color-ts-property); --color-ts-method: var(--dark-color-ts-method); + --color-ts-reference: var(--dark-color-ts-reference); --color-ts-call-signature: var(--dark-color-ts-call-signature); --color-ts-index-signature: var(--dark-color-ts-index-signature); --color-ts-constructor-signature: var( @@ -247,11 +302,17 @@ body { --color-ts-get-signature: var(--dark-color-ts-get-signature); --color-ts-set-signature: var(--dark-color-ts-set-signature); --color-ts-type-alias: var(--dark-color-ts-type-alias); + --color-document: var(--dark-color-document); --external-icon: var(--dark-external-icon); --color-scheme: var(--dark-color-scheme); } +*:focus-visible, +.tsd-accordion-summary:focus-visible svg { + outline: 2px solid var(--color-focus-outline); +} + .always-visible, .always-visible .tsd-signatures { display: inherit !important; @@ -266,16 +327,6 @@ h6 { line-height: 1.2; } -h1 > a, -h2 > a, -h3 > a, -h4 > a, -h5 > a, -h6 > a { - text-decoration: none; - color: var(--color-text); -} - h1 { font-size: 1.875rem; margin: 0.67rem 0; @@ -306,10 +357,6 @@ h6 { margin: 2.33rem 0; } -.uppercase { - text-transform: uppercase; -} - dl, menu, ol, @@ -327,17 +374,14 @@ dd { } /* Footer */ -.tsd-generator { +footer { border-top: 1px solid var(--color-accent); padding-top: 1rem; padding-bottom: 1rem; max-height: 3.5rem; } - -.tsd-generator > p { - margin-top: 0; - margin-bottom: 0; - padding: 0 1rem; +footer > p { + margin: 0 1em; } .container-main { @@ -405,7 +449,8 @@ dd { } body { background: var(--color-background); - font-family: "Segoe UI", sans-serif; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", + Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; color: var(--color-text); } @@ -423,6 +468,9 @@ a.external[target="_blank"] { background-repeat: no-repeat; padding-right: 13px; } +a.tsd-anchor-link { + color: var(--color-text); +} code, pre { @@ -435,7 +483,6 @@ pre { pre { position: relative; - white-space: pre; white-space: pre-wrap; word-wrap: break-word; padding: 10px; @@ -582,13 +629,13 @@ dl.tsd-comment-tag-group p { } .tsd-filter-input { display: flex; - width: fit-content; width: -moz-fit-content; + width: fit-content; align-items: center; - user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; + user-select: none; cursor: pointer; } .tsd-filter-input input[type="checkbox"] { @@ -611,11 +658,8 @@ dl.tsd-comment-tag-group p { Don't remove unless you know what you're doing. */ opacity: 0.99; } -.tsd-filter-input input[type="checkbox"]:focus + svg { - transform: scale(0.95); -} -.tsd-filter-input input[type="checkbox"]:focus:not(:focus-visible) + svg { - transform: scale(1); +.tsd-filter-input input[type="checkbox"]:focus-visible + svg { + outline: 2px solid var(--color-focus-outline); } .tsd-checkbox-background { fill: var(--color-accent); @@ -632,13 +676,18 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { stroke: var(--color-accent); } -.tsd-theme-toggle { - padding-top: 0.75rem; +.settings-label { + font-weight: bold; + text-transform: uppercase; + display: inline-block; } -.tsd-theme-toggle > h4 { - display: inline; - vertical-align: middle; - margin-right: 0.75rem; + +.tsd-filter-visibility .settings-label { + margin: 0.75rem 0 0.5rem 0; +} + +.tsd-theme-toggle .settings-label { + margin: 0.75rem 0.75rem 0 0; } .tsd-hierarchy { @@ -649,6 +698,28 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { font-weight: bold; } +.tsd-full-hierarchy:not(:last-child) { + margin-bottom: 1em; + padding-bottom: 1em; + border-bottom: 1px solid var(--color-accent); +} +.tsd-full-hierarchy, +.tsd-full-hierarchy ul { + list-style: none; + margin: 0; + padding: 0; +} +.tsd-full-hierarchy ul { + padding-left: 1.5rem; +} +.tsd-full-hierarchy a { + padding: 0.25rem 0 !important; + font-size: 1rem; + display: inline-flex; + align-items: center; + color: var(--color-text); +} + .tsd-panel-group.tsd-index-group { margin-bottom: 0; } @@ -714,12 +785,15 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { } .tsd-navigation > a, .tsd-navigation .tsd-accordion-summary { - width: calc(100% - 0.5rem); + width: calc(100% - 0.25rem); + display: flex; + align-items: center; } .tsd-navigation a, .tsd-navigation summary > span, .tsd-page-navigation a { - display: inline-flex; + display: flex; + width: calc(100% - 0.25rem); align-items: center; padding: 0.25rem; color: var(--color-text); @@ -746,6 +820,9 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { padding: 0; max-width: 100%; } +.tsd-navigation .tsd-nav-link { + display: none; +} .tsd-nested-navigation { margin-left: 3rem; } @@ -759,11 +836,15 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { margin-left: -1.5rem; } -.tsd-nested-navigation > li > a, -.tsd-nested-navigation > li > span { - width: calc(100% - 1.75rem - 0.5rem); +.tsd-page-navigation-section { + margin-left: 10px; +} +.tsd-page-navigation-section > summary { + padding: 0.25rem; +} +.tsd-page-navigation-section > div { + margin-left: 20px; } - .tsd-page-navigation ul { padding-left: 1.75rem; } @@ -794,10 +875,10 @@ a.tsd-index-link { } .tsd-accordion-summary, .tsd-accordion-summary a { - user-select: none; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; + user-select: none; cursor: pointer; } @@ -810,8 +891,9 @@ a.tsd-index-link { padding-top: 0; padding-bottom: 0; } -.tsd-index-accordion .tsd-accordion-summary > svg { +.tsd-accordion .tsd-accordion-summary > svg { margin-left: 0.25rem; + vertical-align: text-top; } .tsd-index-content > :not(:first-child) { margin-top: 0.75rem; @@ -821,6 +903,12 @@ a.tsd-index-link { margin-bottom: 0.75rem; } +.tsd-no-select { + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} .tsd-kind-icon { margin-right: 0.5rem; width: 1.25rem; @@ -828,10 +916,6 @@ a.tsd-index-link { min-width: 1.25rem; min-height: 1.25rem; } -.tsd-kind-icon path { - transform-origin: center; - transform: scale(1.1); -} .tsd-signature > .tsd-kind-icon { margin-right: 0.8rem; } @@ -859,7 +943,7 @@ a.tsd-index-link { } .tsd-panel-group { - margin: 4rem 0; + margin: 2rem 0; } .tsd-panel-group.tsd-index-group { margin: 2rem 0; @@ -867,6 +951,9 @@ a.tsd-index-link { .tsd-panel-group.tsd-index-group details { margin: 2rem 0; } +.tsd-panel-group > .tsd-accordion-summary { + margin-bottom: 1rem; +} #tsd-search { transition: background-color 0.2s; @@ -1016,6 +1103,12 @@ a.tsd-index-link { border-width: 1px 0; transition: background-color 0.1s; } +.tsd-signatures .tsd-index-signature:not(:last-child) { + margin-bottom: 1em; +} +.tsd-signatures .tsd-index-signature .tsd-signature { + border-width: 1px; +} .tsd-description .tsd-signatures .tsd-signature { border-width: 1px; } @@ -1194,6 +1287,9 @@ img { .tsd-kind-method { color: var(--color-ts-method); } +.tsd-kind-reference { + color: var(--color-ts-reference); +} .tsd-kind-call-signature { color: var(--color-ts-call-signature); } @@ -1206,9 +1302,6 @@ img { .tsd-kind-parameter { color: var(--color-ts-parameter); } -.tsd-kind-type-literal { - color: var(--color-ts-type-literal); -} .tsd-kind-type-parameter { color: var(--color-ts-type-parameter); } @@ -1329,6 +1422,12 @@ img { .has-menu .tsd-navigation { max-height: 100%; } + #tsd-toolbar-links { + display: none; + } + .tsd-navigation .tsd-nav-link { + display: flex; + } } /* one sidebar */ @@ -1381,7 +1480,7 @@ img { } .site-menu { - margin-top: 1rem 0; + margin-top: 1rem; } .page-menu, diff --git a/docs/classes/Fetcher.html b/docs/classes/Fetcher.html new file mode 100644 index 0000000..e6df235 --- /dev/null +++ b/docs/classes/Fetcher.html @@ -0,0 +1,17 @@ +Fetcher | @auth0/auth0-vue

Class Fetcher<TOutput>

Type Parameters

Constructors

Properties

config: Omit<FetcherConfig<TOutput>, "fetch"> & Required<Pick<FetcherConfig<TOutput>, "fetch">>
hooks: FetcherHooks

Methods

  • Parameters

    • info: RequestInfo | URL
    • init: undefined | RequestInit

    Returns Request

  • Parameters

    • baseUrl: undefined | string
    • url: undefined | string

    Returns string

  • Parameters

    • info: RequestInfo | URL

    Returns string

  • Parameters

    • info: RequestInfo | URL
    • Optionalinit: RequestInit
    • OptionalauthParams: AuthParams

    Returns Promise<TOutput>

  • Parameters

    • OptionalauthParams: AuthParams

    Returns Promise<string | GetTokenSilentlyVerboseResponse>

  • Parameters

    • headers: ResponseHeaders
    • name: string

    Returns string

  • Parameters

    Returns Promise<TOutput>

  • Parameters

    Returns boolean

  • Parameters

    • info: RequestInfo | URL
    • init: undefined | RequestInit
    • callbacks: FetchWithAuthCallbacks<TOutput>
    • OptionalauthParams: AuthParams

    Returns Promise<TOutput>

  • Parameters

    • url: string

    Returns boolean

  • Parameters

    • request: Request
    • OptionalauthParams: AuthParams

    Returns Promise<void>

  • Parameters

    • request: Request
    • accessToken: string
    • OptionaltokenType: string

    Returns void

  • Parameters

    • request: Request
    • accessToken: string

    Returns Promise<void>

diff --git a/docs/classes/InMemoryCache.html b/docs/classes/InMemoryCache.html index 8b387e6..8f95c99 100644 --- a/docs/classes/InMemoryCache.html +++ b/docs/classes/InMemoryCache.html @@ -1,3 +1,3 @@ -InMemoryCache | @auth0/auth0-vue

Constructors

Properties

Constructors

Properties

enclosedCache: ICache
\ No newline at end of file +InMemoryCache | @auth0/auth0-vue

Constructors

Properties

Constructors

Properties

enclosedCache: ICache
diff --git a/docs/classes/LocalStorageCache.html b/docs/classes/LocalStorageCache.html index 060b603..9a5c063 100644 --- a/docs/classes/LocalStorageCache.html +++ b/docs/classes/LocalStorageCache.html @@ -1,6 +1,6 @@ -LocalStorageCache | @auth0/auth0-vue

Class LocalStorageCache

Implements

Constructors

Methods

Constructors

Methods

  • Returns string[]

  • Type Parameters

    Parameters

    • key: string

    Returns MaybePromise<undefined | T>

  • Parameters

    • key: string

    Returns void

  • Type Parameters

    Parameters

    • key: string
    • entry: T

    Returns void

\ No newline at end of file +LocalStorageCache | @auth0/auth0-vue

Class LocalStorageCache

Implements

Constructors

Methods

Constructors

Methods

  • Returns string[]

  • Type Parameters

    Parameters

    • key: string

    Returns MaybePromise<undefined | T>

  • Parameters

    • key: string

    Returns void

  • Type Parameters

    Parameters

    • key: string
    • entry: T

    Returns void

diff --git a/docs/classes/UseDpopNonceError.html b/docs/classes/UseDpopNonceError.html new file mode 100644 index 0000000..994f260 --- /dev/null +++ b/docs/classes/UseDpopNonceError.html @@ -0,0 +1,37 @@ +UseDpopNonceError | @auth0/auth0-vue

Class UseDpopNonceError

Error thrown when the wrong DPoP nonce is used and a potential subsequent retry wasn't able to fix it.

+

Hierarchy

  • GenericError
    • UseDpopNonceError

Constructors

  • Parameters

    • newDpopNonce: undefined | string

    Returns UseDpopNonceError

Properties

error: string
error_description: string
message: string
name: string
newDpopNonce: undefined | string
stack?: string
stackTraceLimit: number

The Error.stackTraceLimit property specifies the number of stack frames +collected by a stack trace (whether generated by new Error().stack or +Error.captureStackTrace(obj)).

+

The default value is 10 but may be set to any valid JavaScript number. Changes +will affect any stack trace captured after the value has been changed.

+

If set to a non-number value, or set to a negative number, stack traces will +not capture any frames.

+

Methods

  • Creates a .stack property on targetObject, which when accessed returns +a string representing the location in the code at which +Error.captureStackTrace() was called.

    +
    const myObject = {};
    Error.captureStackTrace(myObject);
    myObject.stack; // Similar to `new Error().stack` +
    + +

    The first line of the trace will be prefixed with +${myObject.name}: ${myObject.message}.

    +

    The optional constructorOpt argument accepts a function. If given, all frames +above constructorOpt, including constructorOpt, will be omitted from the +generated stack trace.

    +

    The constructorOpt argument is useful for hiding implementation +details of error generation from the user. For instance:

    +
    function a() {
    b();
    }

    function b() {
    c();
    }

    function c() {
    // Create an error without stack trace to avoid calculating the stack trace twice.
    const { stackTraceLimit } = Error;
    Error.stackTraceLimit = 0;
    const error = new Error();
    Error.stackTraceLimit = stackTraceLimit;

    // Capture the stack trace above function b
    Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
    throw error;
    }

    a(); +
    + +

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

  • Parameters

    • __namedParameters: {
          error: string;
          error_description: string;
      }
      • error: string
      • error_description: string

    Returns GenericError

diff --git a/docs/classes/User.html b/docs/classes/User.html index 346100f..4ce7ec3 100644 --- a/docs/classes/User.html +++ b/docs/classes/User.html @@ -1,22 +1,22 @@ -User | @auth0/auth0-vue

Indexable

[key: string]: any

Constructors

Properties

address?: string
birthdate?: string
email?: string
email_verified?: boolean
family_name?: string
gender?: string
given_name?: string
locale?: string
middle_name?: string
name?: string
nickname?: string
phone_number?: string
phone_number_verified?: boolean
picture?: string
preferred_username?: string
profile?: string
sub?: string
updated_at?: string
website?: string
zoneinfo?: string
\ No newline at end of file +User | @auth0/auth0-vue

Indexable

  • [key: string]: any

Constructors

Properties

address?: string
birthdate?: string
email?: string
email_verified?: boolean
family_name?: string
gender?: string
given_name?: string
locale?: string
middle_name?: string
name?: string
nickname?: string
phone_number?: string
phone_number_verified?: boolean
picture?: string
preferred_username?: string
profile?: string
sub?: string
updated_at?: string
website?: string
zoneinfo?: string
diff --git a/docs/functions/authGuard.html b/docs/functions/authGuard.html index f64b638..1230cdb 100644 --- a/docs/functions/authGuard.html +++ b/docs/functions/authGuard.html @@ -1 +1 @@ -authGuard | @auth0/auth0-vue
\ No newline at end of file +authGuard | @auth0/auth0-vue

Function authGuard

  • Parameters

    • to: RouteLocation

    Returns Promise<boolean>

diff --git a/docs/functions/createAuth0.html b/docs/functions/createAuth0.html index 1fdc01d..8b8c6d9 100644 --- a/docs/functions/createAuth0.html +++ b/docs/functions/createAuth0.html @@ -1,5 +1,5 @@ -createAuth0 | @auth0/auth0-vue

Function createAuth0

  • Creates the Auth0 plugin.

    -

    Parameters

    Returns Auth0Plugin

    An instance of Auth0Plugin

    -
\ No newline at end of file +createAuth0 | @auth0/auth0-vue

Function createAuth0

  • Creates the Auth0 plugin.

    +

    Parameters

    Returns Auth0Plugin

    An instance of Auth0Plugin

    +
diff --git a/docs/functions/createAuthGuard.html b/docs/functions/createAuthGuard.html index 34cc09d..fe47e03 100644 --- a/docs/functions/createAuthGuard.html +++ b/docs/functions/createAuthGuard.html @@ -1,3 +1,3 @@ -createAuthGuard | @auth0/auth0-vue

Function createAuthGuard

  • Parameters

    • Optional app: App<any>

      The vue application

      -

    Returns ((to) => Promise<boolean>)

      • (to): Promise<boolean>
      • Parameters

        • to: RouteLocation

        Returns Promise<boolean>

  • Parameters

    • Optional options: AuthGuardOptions

      The options used when creating an AuthGuard.

      -

    Returns ((to) => Promise<boolean>)

      • (to): Promise<boolean>
      • Parameters

        • to: RouteLocation

        Returns Promise<boolean>

\ No newline at end of file +createAuthGuard | @auth0/auth0-vue

Function createAuthGuard

  • Parameters

    • Optionalapp: App<any>

      The vue application

      +

    Returns ((to: RouteLocation) => Promise<boolean>)

      • (to): Promise<boolean>
      • Parameters

        • to: RouteLocation

        Returns Promise<boolean>

  • Parameters

    Returns ((to: RouteLocation) => Promise<boolean>)

      • (to): Promise<boolean>
      • Parameters

        • to: RouteLocation

        Returns Promise<boolean>

diff --git a/docs/functions/useAuth0.html b/docs/functions/useAuth0.html index 6f90501..30f4f47 100644 --- a/docs/functions/useAuth0.html +++ b/docs/functions/useAuth0.html @@ -1,3 +1,3 @@ -useAuth0 | @auth0/auth0-vue

Function useAuth0

diff --git a/docs/hierarchy.html b/docs/hierarchy.html new file mode 100644 index 0000000..6bc5b71 --- /dev/null +++ b/docs/hierarchy.html @@ -0,0 +1 @@ +@auth0/auth0-vue
diff --git a/docs/index.html b/docs/index.html index 44723f5..aa231a5 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,30 +1,33 @@ -@auth0/auth0-vue

@auth0/auth0-vue

Auth0 SDK for Vue 3 Single Page Applications

+@auth0/auth0-vue

@auth0/auth0-vue

Auth0 SDK for Vue 3 Single Page Applications

Release -Codecov +Codecov +Ask DeepWiki Downloads -License -CircleCI

+License +CircleCI

📚 Documentation - 🚀 Getting Started - 💻 API Reference - 💬 Feedback

-

Documentation

    -
  • Quickstart - our interactive guide for quickly adding login, logout and user information to a Vue 3 app using Auth0.
  • -
  • Sample App - a full-fledged Vue 3 application integrated with Auth0.
  • -
  • FAQs - frequently asked questions about the auth0-vue SDK.
  • -
  • Examples - code samples for common Vue 3 authentication scenario's.
  • -
  • Docs site - explore our docs site and learn more about Auth0.
  • +
      +
    • Quickstart - our interactive guide for quickly adding login, logout and user information to a Vue 3 app using Auth0.
    • +
    • Sample App - a full-fledged Vue 3 application integrated with Auth0.
    • +
    • FAQs - frequently asked questions about the auth0-vue SDK.
    • +
    • Examples - code samples for common Vue 3 authentication scenario's.
    • +
    • Docs site - explore our docs site and learn more about Auth0.
    -

    Getting started

    Requirements

    This library supports Vue 3 applications. -For integrating Auth0 with a Vue 2 application, please read the Vue 2 Tutorial.

    -

    Installation

    Using npm:

    -
    npm install @auth0/auth0-vue
    -
    -

    Using yarn:

    -
    yarn add @auth0/auth0-vue
    -
    -

    Configure Auth0

    Create a Single Page Application in the Auth0 Dashboard.

    +

    This library supports Vue 3 applications. +For integrating Auth0 with a Vue 2 application, please read the Vue 2 Tutorial.

    +

    Using npm:

    +
    npm install @auth0/auth0-vue
    +
    + +

    Using yarn:

    +
    yarn add @auth0/auth0-vue
    +
    + +

    Create a Single Page Application in the Auth0 Dashboard.

    -

    If you're using an existing application, verify that you have configured the following settings in your Single Page Application:

    +

    If you're using an existing application, verify that you have configured the following settings in your Single Page Application:

      -
    • Click on the "Settings" tab of your application's page.
    • +
    • Click on the "Settings" tab of your application's page.
    • Scroll down and click on the "Show Advanced Settings" link.
    • Under "Advanced Settings", click on the "OAuth" tab.
    • Ensure that "JsonWebToken Signature Algorithm" is set to RS256 and that "OIDC Conformant" is enabled.
    • @@ -37,43 +40,45 @@
    • Allowed Web Origins: http://localhost:3000
    -

    These URLs should reflect the origins that your application is running on. Allowed Callback URLs may also include a path, depending on where you're handling the callback (see below).

    +

    These URLs should reflect the origins that your application is running on. Allowed Callback URLs may also include a path, depending on where you're handling the callback (see below).

    -

    Take note of the Client ID and Domain values under the "Basic Information" section. You'll need these values in the next step.

    -

    Configure the SDK

    Create an instance of the Auth0Plugin by calling createAuth0 and pass it to Vue's app.use().

    -
    import { createAuth0 } from '@auth0/auth0-vue';

    const app = createApp(App);

    app.use(
    createAuth0({
    domain: '<AUTH0_DOMAIN>',
    clientId: '<AUTH0_CLIENT_ID>',
    authorizationParams: {
    redirect_uri: '<MY_CALLBACK_URL>'
    }
    })
    );

    app.mount('#app'); -
    -

    Add login to your application

    In order to add login to your application you can use the loginWithRedirect function that is exposed on the return value of useAuth0, which you can access in your component's setup function.

    -
    <script>
    import { useAuth0 } from '@auth0/auth0-vue';

    export default {
    setup() {
    const { loginWithRedirect } = useAuth0();

    return {
    login: () => {
    loginWithRedirect();
    }
    };
    }
    };
    </script> -
    -

    Once setup returns the correct method, you can call that method from your component's HTML.

    -
    <template>
    <div>
    <button @click="login">Log in</button>
    </div>
    </template> -
    +

    Take note of the Client ID and Domain values under the "Basic Information" section. You'll need these values in the next step.

    +

    Create an instance of the Auth0Plugin by calling createAuth0 and pass it to Vue's app.use().

    +
    import { createAuth0 } from '@auth0/auth0-vue';

    const app = createApp(App);

    app.use(
    createAuth0({
    domain: '<AUTH0_DOMAIN>',
    clientId: '<AUTH0_CLIENT_ID>',
    authorizationParams: {
    redirect_uri: '<MY_CALLBACK_URL>'
    }
    })
    );

    app.mount('#app'); +
    + +

    In order to add login to your application you can use the loginWithRedirect function that is exposed on the return value of useAuth0, which you can access in your component's setup function.

    +
    <script>
    import { useAuth0 } from '@auth0/auth0-vue';

    export default {
    setup() {
    const { loginWithRedirect } = useAuth0();

    return {
    login: () => {
    loginWithRedirect();
    }
    };
    }
    };
    </script> +
    + +

    Once setup returns the correct method, you can call that method from your component's HTML.

    +
    <template>
    <div>
    <button @click="login">Log in</button>
    </div>
    </template> +
    +
    Using Options API +
    <template>
    <div>
    <button @click="login">Log in</button>
    </div>
    </template>

    <script>
    export default {
    methods: {
    login() {
    this.$auth0.loginWithRedirect();
    }
    }
    };
    </script> +
    -
    <template>
    <div>
    <button @click="login">Log in</button>
    </div>
    </template>

    <script>
    export default {
    methods: {
    login() {
    this.$auth0.loginWithRedirect();
    }
    }
    };
    </script> -
    - -

    For more code samples on how to integrate the auth0-vue SDK in your Vue 3 application, have a look at our examples.

    -

    API reference

    Explore public API's available in auth0-vue.

    +

    For more code samples on how to integrate the auth0-vue SDK in your Vue 3 application, have a look at our examples.

    +

    Explore public API's available in auth0-vue.

    -

    Feedback

    Contributing

    We appreciate feedback and contribution to this repo! Before you get started, please see the following:

    +

    We appreciate feedback and contribution to this repo! Before you get started, please see the following:

    -

    Raise an issue

    To provide feedback or report a bug, please raise an issue on our issue tracker.

    -

    Vulnerability Reporting

    Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.

    +

    To provide feedback or report a bug, please raise an issue on our issue tracker.

    +

    Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.


    @@ -84,4 +89,4 @@

    Auth0 is an easy to implement, adaptable authentication and authorization platform. To learn more checkout Why Auth0?

    -This project is licensed under the MIT license. See the LICENSE file for more info.

\ No newline at end of file +This project is licensed under the MIT license. See the LICENSE file for more info.

diff --git a/docs/interfaces/AppState.html b/docs/interfaces/AppState.html index 85a3cda..e6f820b 100644 --- a/docs/interfaces/AppState.html +++ b/docs/interfaces/AppState.html @@ -1,5 +1,5 @@ -AppState | @auth0/auth0-vue

Interface AppState

interface AppState {
    target?: string;
    [key: string]: any;
}

Indexable

[key: string]: any

Any custom parameter to be stored in appState

-

Properties

Properties

target?: string

Target path the app gets routed to after -handling the callback from Auth0 (defaults to '/')

-
\ No newline at end of file +AppState | @auth0/auth0-vue

Interface AppState

interface AppState {
    target?: string;
    [key: string]: any;
}

Indexable

  • [key: string]: any

    Any custom parameter to be stored in appState

    +

Properties

Properties

target?: string

Target path the app gets routed to after +handling the callback from Auth0 (defaults to '/')

+
diff --git a/docs/interfaces/Auth0PluginOptions.html b/docs/interfaces/Auth0PluginOptions.html index da80775..50c76aa 100644 --- a/docs/interfaces/Auth0PluginOptions.html +++ b/docs/interfaces/Auth0PluginOptions.html @@ -1,14 +1,15 @@ -Auth0PluginOptions | @auth0/auth0-vue

Interface Auth0PluginOptions

Additional Configuration for the Auth0 Vue plugin

-
interface Auth0PluginOptions {
    errorPath?: string;
    skipRedirectCallback?: boolean;
}

Properties

errorPath?: string

Path in your application to redirect to when the Authorization server +Auth0PluginOptions | @auth0/auth0-vue

Interface Auth0PluginOptions

Additional Configuration for the Auth0 Vue plugin

+
interface Auth0PluginOptions {
    errorPath?: string;
    skipRedirectCallback?: boolean;
}

Properties

errorPath?: string

Path in your application to redirect to when the Authorization server returns an error. Defaults to /

-
skipRedirectCallback?: boolean

By default, if the page URL has code and state parameters, the SDK will assume it should handle it and attempt to exchange the code for a token.

+
skipRedirectCallback?: boolean

By default, if the page URL has code and state parameters, the SDK will assume it should handle it and attempt to exchange the code for a token.

In situations where you are combining our SDK with other libraries that use the same code and state parameters, you will need to ensure our SDK can differentiate between requests it should and should not handle.

In these cases you can instruct the client to ignore certain URLs by setting skipRedirectCallback.

-
createAuth0({}, {
skipRedirectCallback: window.location.pathname === '/other-callback'
}) -
+
createAuth0({}, {
skipRedirectCallback: window.location.pathname === '/other-callback'
}) +
+

Note: In the above example, /other-callback is an existing route, with a code (or error in case when something went wrong) and state, that will be handled by any other SDK.

-
\ No newline at end of file +
diff --git a/docs/interfaces/Auth0VueClient.html b/docs/interfaces/Auth0VueClient.html index ea993e6..9759689 100644 --- a/docs/interfaces/Auth0VueClient.html +++ b/docs/interfaces/Auth0VueClient.html @@ -1,44 +1,87 @@ -Auth0VueClient | @auth0/auth0-vue

Interface Auth0VueClient

interface Auth0VueClient {
    error: Ref<any>;
    idTokenClaims: Ref<undefined | IdToken>;
    isAuthenticated: Ref<boolean>;
    isLoading: Ref<boolean>;
    user: Ref<undefined | User>;
    checkSession(options?): Promise<void>;
    getAccessTokenSilently(options): Promise<GetTokenSilentlyVerboseResponse>;
    getAccessTokenSilently(options?): Promise<string>;
    getAccessTokenWithPopup(options?, config?): Promise<undefined | string>;
    handleRedirectCallback(url?): Promise<RedirectLoginResult<AppState>>;
    loginWithPopup(options?, config?): Promise<void>;
    loginWithRedirect(options?): Promise<void>;
    logout(options?): Promise<void>;
}

Properties

error: Ref<any>

Contains an error that occured in the SDK

-
idTokenClaims: Ref<undefined | IdToken>

Contains all claims from the id_token if available.

-
isAuthenticated: Ref<boolean>

The authentication state, true if the user is authenticated, false if not.

-
isLoading: Ref<boolean>

The loading state of the SDK, true if the SDK is still processing the PKCE flow, false if the SDK has finished processing the PKCE flow.

-
user: Ref<undefined | User>

Contains the information of the user if available.

-

Methods

  • await setDpopNonce('new-nonce-value', 'my-api');
    +
    + +

    Stores a DPoP nonce value for future use with a specific identifier.

    +

    This is typically called automatically when the server provides a new nonce +in the DPoP-Nonce response header. Manual usage is only needed for advanced scenarios.

    +

    Note: Requires useDpop: true in the Auth0 client configuration.

    +

    Parameters

    • nonce: string

      The nonce value to store

      +
    • Optionalid: string

      Optional identifier for the nonce. If omitted, sets the nonce for Auth0 requests. +Use a custom identifier for managing nonces for different API endpoints.

      +

    Returns Promise<void>

diff --git a/docs/interfaces/Auth0VueClientOptions.html b/docs/interfaces/Auth0VueClientOptions.html index 6a38378..be6cd03 100644 --- a/docs/interfaces/Auth0VueClientOptions.html +++ b/docs/interfaces/Auth0VueClientOptions.html @@ -1,79 +1,87 @@ -Auth0VueClientOptions | @auth0/auth0-vue

Interface Auth0VueClientOptions

Configuration for the Auth0 Vue Client

-
interface Auth0VueClientOptions {
    auth0Client?: {
        env?: {
            [key: string]: string;
        };
        name: string;
        version: string;
    };
    authorizationParams?: AuthorizationParams;
    authorizeTimeoutInSeconds?: number;
    cache?: ICache;
    cacheLocation?: CacheLocation;
    clientId: string;
    cookieDomain?: string;
    domain: string;
    httpTimeoutInSeconds?: number;
    issuer?: string;
    leeway?: number;
    legacySameSiteCookie?: boolean;
    nowProvider?: (() => number | Promise<number>);
    sessionCheckExpiryDays?: number;
    useCookiesForTransactions?: boolean;
    useFormData?: boolean;
    useRefreshTokens?: boolean;
    useRefreshTokensFallback?: boolean;
    workerUrl?: string;
}

Hierarchy

  • Auth0ClientOptions
    • Auth0VueClientOptions

Properties

auth0Client?: {
    env?: {
        [key: string]: string;
    };
    name: string;
    version: string;
}

Internal property to send information about the client to the authorization server.

-

Type declaration

  • Optional env?: {
        [key: string]: string;
    }
    • [key: string]: string
  • name: string
  • version: string
authorizationParams?: AuthorizationParams

URL parameters that will be sent back to the Authorization Server. This can be known parameters +Auth0VueClientOptions | @auth0/auth0-vue

Interface Auth0VueClientOptions

Configuration for the Auth0 Vue Client

+
interface Auth0VueClientOptions {
    auth0Client?: {
        env?: {
            [key: string]: string;
        };
        name: string;
        version: string;
    };
    authorizationParams?: ClientAuthorizationParams;
    authorizeTimeoutInSeconds?: number;
    cache?: ICache;
    cacheLocation?: CacheLocation;
    clientId: string;
    cookieDomain?: string;
    domain: string;
    httpTimeoutInSeconds?: number;
    issuer?: string;
    leeway?: number;
    legacySameSiteCookie?: boolean;
    nowProvider?: (() => number | Promise<number>);
    sessionCheckExpiryDays?: number;
    useCookiesForTransactions?: boolean;
    useDpop?: boolean;
    useFormData?: boolean;
    useMrrt?: boolean;
    useRefreshTokens?: boolean;
    useRefreshTokensFallback?: boolean;
    workerUrl?: string;
}

Hierarchy

  • Auth0ClientOptions
    • Auth0VueClientOptions

Properties

auth0Client?: {
    env?: {
        [key: string]: string;
    };
    name: string;
    version: string;
}

Internal property to send information about the client to the authorization server.

+
authorizationParams?: ClientAuthorizationParams

URL parameters that will be sent back to the Authorization Server. This can be known parameters defined by Auth0 or custom parameters that you define.

-
authorizeTimeoutInSeconds?: number

A maximum number of seconds to wait before declaring background calls to /authorize as failed for timeout +

authorizeTimeoutInSeconds?: number

A maximum number of seconds to wait before declaring background calls to /authorize as failed for timeout Defaults to 60s.

-
cache?: ICache

Specify a custom cache implementation to use for token storage and retrieval. This setting takes precedence over cacheLocation if they are both specified.

-
cacheLocation?: CacheLocation

The location to use when storing cache data. Valid values are memory or localstorage. +

cache?: ICache

Specify a custom cache implementation to use for token storage and retrieval. This setting takes precedence over cacheLocation if they are both specified.

+
cacheLocation?: CacheLocation

The location to use when storing cache data. Valid values are memory or localstorage. The default setting is memory.

-

Read more about changing storage options in the Auth0 docs

-
clientId: string

The Client ID found on your Application settings page

-
cookieDomain?: string

The domain the cookie is accessible from. If not set, the cookie is scoped to +

Read more about changing storage options in the Auth0 docs

+
clientId: string

The Client ID found on your Application settings page

+
cookieDomain?: string

The domain the cookie is accessible from. If not set, the cookie is scoped to the current domain, including the subdomain.

Note: setting this incorrectly may cause silent authentication to stop working on page load.

To keep a user logged in across multiple subdomains set this to your top-level domain and prefixed with a . (eg: .example.com).

-
domain: string

Your Auth0 account domain such as 'example.auth0.com', -'example.eu.auth0.com' or , 'example.mycompany.com' -(when using custom domains)

-
httpTimeoutInSeconds?: number

Specify the timeout for HTTP calls using fetch. The default is 10 seconds.

-
issuer?: string

The issuer to be used for validation of JWTs, optionally defaults to the domain above

-
leeway?: number

The value in seconds used to account for clock skew in JWT expirations. +

domain: string

Your Auth0 account domain such as 'example.auth0.com', +'example.eu.auth0.com' or , 'example.mycompany.com' +(when using custom domains)

+
httpTimeoutInSeconds?: number

Specify the timeout for HTTP calls using fetch. The default is 10 seconds.

+
issuer?: string

The issuer to be used for validation of JWTs, optionally defaults to the domain above

+
leeway?: number

The value in seconds used to account for clock skew in JWT expirations. Typically, this value is no more than a minute or two at maximum. Defaults to 60s.

-
legacySameSiteCookie?: boolean

Sets an additional cookie with no SameSite attribute to support legacy browsers +

legacySameSiteCookie?: boolean

Sets an additional cookie with no SameSite attribute to support legacy browsers that are not compatible with the latest SameSite changes. This will log a warning on modern browsers, you can disable the warning by setting this to false but be aware that some older useragents will not work, -See https://www.chromium.org/updates/same-site/incompatible-clients +See https://www.chromium.org/updates/same-site/incompatible-clients Defaults to true

-
nowProvider?: (() => number | Promise<number>)

Type declaration

    • (): number | Promise<number>
    • Modify the value used as the current time during the token validation.

      +
nowProvider?: (() => number | Promise<number>)

Modify the value used as the current time during the token validation.

Note: Using this improperly can potentially compromise the token validation.

-

Returns number | Promise<number>

sessionCheckExpiryDays?: number

Number of days until the cookie auth0.is.authenticated will expire +

sessionCheckExpiryDays?: number

Number of days until the cookie auth0.is.authenticated will expire Defaults to 1.

-
useCookiesForTransactions?: boolean

If true, the SDK will use a cookie when storing information about the auth transaction while +

useCookiesForTransactions?: boolean

If true, the SDK will use a cookie when storing information about the auth transaction while the user is going through the authentication flow on the authorization server.

The default is false, in which case the SDK will use session storage.

-

Notes

You might want to enable this if you rely on your users being able to authenticate using flows that +

You might want to enable this if you rely on your users being able to authenticate using flows that may end up spanning across multiple tabs (e.g. magic links) or you cannot otherwise rely on session storage being available.

-
useFormData?: boolean

If true, data to the token endpoint is transmitted as x-www-form-urlencoded data, if false it will be transmitted as JSON. The default setting is true.

+
useDpop?: boolean

If true, DPoP (OAuth 2.0 Demonstrating Proof of Possession, RFC9449) +will be used to cryptographically bind tokens to this specific browser +so they can't be used from a different device in case of a leak.

+

The default setting is false.

+
useFormData?: boolean

If true, data to the token endpoint is transmitted as x-www-form-urlencoded data, if false it will be transmitted as JSON. The default setting is true.

Note: Setting this to false may affect you if you use Auth0 Rules and are sending custom, non-primitive data. If you disable this, please verify that your Auth0 Rules continue to work as intended.

-
useRefreshTokens?: boolean

If true, refresh tokens are used to fetch new access tokens from the Auth0 server. If false, the legacy technique of using a hidden iframe and the authorization_code grant with prompt=none is used. +

useMrrt?: boolean

If true, the SDK will allow the refreshing of tokens using MRRT

+
useRefreshTokens?: boolean

If true, refresh tokens are used to fetch new access tokens from the Auth0 server. If false, the legacy technique of using a hidden iframe and the authorization_code grant with prompt=none is used. The default setting is false.

Note: Use of refresh tokens must be enabled by an administrator on your Auth0 client application.

-
useRefreshTokensFallback?: boolean

If true, fallback to the technique of using a hidden iframe and the authorization_code grant with prompt=none when unable to use refresh tokens. If false, the iframe fallback is not used and +

useRefreshTokensFallback?: boolean

If true, fallback to the technique of using a hidden iframe and the authorization_code grant with prompt=none when unable to use refresh tokens. If false, the iframe fallback is not used and errors relating to a failed refresh_token grant should be handled appropriately. The default setting is false.

Note: There might be situations where doing silent auth with a Web Message response from an iframe is not possible, -like when you're serving your application from the file system or a custom protocol (like in a Desktop or Native app). +like when you're serving your application from the file system or a custom protocol (like in a Desktop or Native app). In situations like this you can disable the iframe fallback and handle the failed refresh_token grant and prompt the user to login interactively with loginWithRedirect or loginWithPopup."

E.g. Using the file: protocol in an Electron application does not support that legacy technique.

-

Example

let token: string;
try {
token = await auth0.getTokenSilently();
} catch (e) {
if (e.error === 'missing_refresh_token' || e.error === 'invalid_grant') {
auth0.loginWithRedirect();
}
} -
-
workerUrl?: string

If provided, the SDK will load the token worker from this URL instead of the integrated blob. An example of when this is useful is if you have strict +

let token: string;
try {
token = await auth0.getTokenSilently();
} catch (e) {
if (e.error === 'missing_refresh_token' || e.error === 'invalid_grant') {
auth0.loginWithRedirect();
}
} +
+ +
workerUrl?: string

If provided, the SDK will load the token worker from this URL instead of the integrated blob. An example of when this is useful is if you have strict Content-Security-Policy (CSP) and wish to avoid needing to set worker-src: blob:. We recommend either serving the worker, which you can find in the module at <module_path>/dist/auth0-spa-js.worker.production.js, from the same host as your application or using the Auth0 CDN https://cdn.auth0.com/js/auth0-spa-js/<version>/auth0-spa-js.worker.production.js.

-

Note: The worker is only used when useRefreshTokens: true, cacheLocation: 'memory', and the cache is not custom.

-
\ No newline at end of file +

Note: The worker is only used when useRefreshTokens: true, cacheLocation: 'memory', and the cache is not custom.

+
diff --git a/docs/interfaces/AuthGuardOptions.html b/docs/interfaces/AuthGuardOptions.html index ccb92eb..2648429 100644 --- a/docs/interfaces/AuthGuardOptions.html +++ b/docs/interfaces/AuthGuardOptions.html @@ -1,6 +1,6 @@ -AuthGuardOptions | @auth0/auth0-vue

Interface AuthGuardOptions

The options used when creating an AuthGuard.

-
interface AuthGuardOptions {
    app?: App<any>;
    redirectLoginOptions?: RedirectLoginOptions<any>;
}

Properties

app?: App<any>

The vue application

-
redirectLoginOptions?: RedirectLoginOptions<any>

Route specific options to use when being redirected to Auth0

-
\ No newline at end of file +AuthGuardOptions | @auth0/auth0-vue

Interface AuthGuardOptions

The options used when creating an AuthGuard.

+
interface AuthGuardOptions {
    app?: App<any>;
    redirectLoginOptions?: RedirectLoginOptions<any>;
}

Properties

app?: App<any>

The vue application

+
redirectLoginOptions?: RedirectLoginOptions<any>

Route specific options to use when being redirected to Auth0

+
diff --git a/docs/interfaces/AuthorizationParams.html b/docs/interfaces/AuthorizationParams.html index 7d2f969..3ffa471 100644 --- a/docs/interfaces/AuthorizationParams.html +++ b/docs/interfaces/AuthorizationParams.html @@ -1,63 +1,65 @@ -AuthorizationParams | @auth0/auth0-vue

Interface AuthorizationParams

interface AuthorizationParams {
    acr_values?: string;
    audience?: string;
    connection?: string;
    display?: "page" | "touch" | "popup" | "wap";
    id_token_hint?: string;
    invitation?: string;
    login_hint?: string;
    max_age?: string | number;
    organization?: string;
    prompt?: "none" | "login" | "consent" | "select_account";
    redirect_uri?: string;
    scope?: string;
    screen_hint?: string;
    ui_locales?: string;
    [key: string]: any;
}

Indexable

[key: string]: any

If you need to send custom parameters to the Authorization Server, +AuthorizationParams | @auth0/auth0-vue

Interface AuthorizationParams

interface AuthorizationParams {
    acr_values?: string;
    audience?: string;
    connection?: string;
    display?:
        | "page"
        | "touch"
        | "popup"
        | "wap";
    id_token_hint?: string;
    invitation?: string;
    login_hint?: string;
    max_age?: string | number;
    organization?: string;
    prompt?:
        | "none"
        | "login"
        | "consent"
        | "select_account";
    redirect_uri?: string;
    scope?: string;
    screen_hint?: string;
    ui_locales?: string;
    [key: string]: any;
}

Indexable

  • [key: string]: any

    If you need to send custom parameters to the Authorization Server, make sure to use the original parameter name.

    -

Properties

acr_values?: string
audience?: string

The default audience to be used for requesting API access.

-
connection?: string

The name of the connection configured for your application. +

Properties

acr_values?: string
audience?: string

The default audience to be used for requesting API access.

+
connection?: string

The name of the connection configured for your application. If null, it will redirect to the Auth0 Login Page and show the Login Widget.

-
display?: "page" | "touch" | "popup" | "wap"
    -
  • 'page': displays the UI with a full page view
  • -
  • 'popup': displays the UI with a popup window
  • -
  • 'touch': displays the UI in a way that leverages a touch interface
  • -
  • 'wap': displays the UI with a "feature phone" type interface
  • +
display?:
    | "page"
    | "touch"
    | "popup"
    | "wap"
    +
  • 'page': displays the UI with a full page view
  • +
  • 'popup': displays the UI with a popup window
  • +
  • 'touch': displays the UI in a way that leverages a touch interface
  • +
  • 'wap': displays the UI with a "feature phone" type interface
-
id_token_hint?: string

Previously issued ID Token.

-
invitation?: string

The Id of an invitation to accept. This is available from the user invitation URL that is given when participating in a user invitation flow.

-
login_hint?: string

The user's email address or other identifier. When your app knows +

id_token_hint?: string

Previously issued ID Token.

+
invitation?: string

The Id of an invitation to accept. This is available from the user invitation URL that is given when participating in a user invitation flow.

+
login_hint?: string

The user's email address or other identifier. When your app knows which user is trying to authenticate, you can provide this parameter to pre-fill the email box or select the right session for sign-in.

This currently only affects the classic Lock experience.

-
max_age?: string | number

Maximum allowable elapsed time (in seconds) since authentication. +

max_age?: string | number

Maximum allowable elapsed time (in seconds) since authentication. If the last time the user authenticated is greater than this value, the user must be reauthenticated.

-
organization?: string

The organization to log in to.

-

This will specify an organization parameter in your user's login request.

+
organization?: string

The organization to log in to.

+

This will specify an organization parameter in your user's login request.

    -
  • If you provide an Organization ID (a string with the prefix org_), it will be validated against the org_id claim of your user's ID Token. The validation is case-sensitive.
  • -
  • If you provide an Organization Name (a string without the prefix org_), it will be validated against the org_name claim of your user's ID Token. The validation is case-insensitive.
  • +
  • If you provide an Organization ID (a string with the prefix org_), it will be validated against the org_id claim of your user's ID Token. The validation is case-sensitive.
  • +
  • If you provide an Organization Name (a string without the prefix org_), it will be validated against the org_name claim of your user's ID Token. The validation is case-insensitive. +To use an Organization Name you must have "Allow Organization Names in Authentication API" switched on in your Auth0 settings dashboard. +More information is available on the Auth0 documentation portal
-
prompt?: "none" | "login" | "consent" | "select_account"
    -
  • 'none': do not prompt user for login or consent on reauthentication
  • -
  • 'login': prompt user for reauthentication
  • -
  • 'consent': prompt user for consent before processing request
  • -
  • 'select_account': prompt user to select an account
  • +
prompt?:
    | "none"
    | "login"
    | "consent"
    | "select_account"
    +
  • 'none': do not prompt user for login or consent on reauthentication
  • +
  • 'login': prompt user for reauthentication
  • +
  • 'consent': prompt user for consent before processing request
  • +
  • 'select_account': prompt user to select an account
-
redirect_uri?: string

The default URL where Auth0 will redirect your browser to with +

redirect_uri?: string

The default URL where Auth0 will redirect your browser to with the authentication result. It must be whitelisted in -the "Allowed Callback URLs" field in your Auth0 Application's +the "Allowed Callback URLs" field in your Auth0 Application's settings. If not provided here, it should be provided in the other methods that provide authentication.

-
scope?: string

The default scope to be used on authentication requests.

+
scope?: string

The default scope to be used on authentication requests.

This defaults to profile email if not set. If you are setting extra scopes and require profile and email to be included then you must include them in the provided scope.

Note: The openid scope is always applied regardless of this setting.

-
screen_hint?: string

Provides a hint to Auth0 as to what flow should be displayed. +

screen_hint?: string

Provides a hint to Auth0 as to what flow should be displayed. The default behavior is to show a login page but you can override -this by passing 'signup' to show the signup page instead.

+this by passing 'signup' to show the signup page instead.

This only affects the New Universal Login Experience.

-
ui_locales?: string

The space-separated list of language tags, ordered by preference. -For example: 'fr-CA fr en'.

-
\ No newline at end of file +
ui_locales?: string

The space-separated list of language tags, ordered by preference. +For example: 'fr-CA fr en'.

+
diff --git a/docs/interfaces/GetTokenSilentlyOptions.html b/docs/interfaces/GetTokenSilentlyOptions.html index ebd07ea..bfa1ed4 100644 --- a/docs/interfaces/GetTokenSilentlyOptions.html +++ b/docs/interfaces/GetTokenSilentlyOptions.html @@ -1,25 +1,25 @@ -GetTokenSilentlyOptions | @auth0/auth0-vue

Interface GetTokenSilentlyOptions

interface GetTokenSilentlyOptions {
    authorizationParams?: {
        audience?: string;
        redirect_uri?: string;
        scope?: string;
        [key: string]: any;
    };
    cacheMode?: "off" | "on" | "cache-only";
    detailedResponse?: boolean;
    timeoutInSeconds?: number;
}

Properties

authorizationParams?: {
    audience?: string;
    redirect_uri?: string;
    scope?: string;
    [key: string]: any;
}

Parameters that will be sent back to Auth0 as part of a request.

+GetTokenSilentlyOptions | @auth0/auth0-vue

Interface GetTokenSilentlyOptions

interface GetTokenSilentlyOptions {
    authorizationParams?: {
        audience?: string;
        redirect_uri?: string;
        scope?: string;
        [key: string]: any;
    };
    cacheMode?: "off" | "on" | "cache-only";
    detailedResponse?: boolean;
    timeoutInSeconds?: number;
}

Properties

authorizationParams?: {
    audience?: string;
    redirect_uri?: string;
    scope?: string;
    [key: string]: any;
}

Parameters that will be sent back to Auth0 as part of a request.

Type declaration

  • [key: string]: any

    If you need to send custom parameters to the Authorization Server, make sure to use the original parameter name.

    -
  • Optional audience?: string

    The audience that was used in the authentication request

    -
  • Optional redirect_uri?: string

    There's no actual redirect when getting a token silently, +

  • Optionalaudience?: string

    The audience that was used in the authentication request

    +
  • Optionalredirect_uri?: string

    There's no actual redirect when getting a token silently, but, according to the spec, a redirect_uri param is required. Auth0 uses this parameter to validate that the current origin matches the redirect_uri origin when sending the response. It must be whitelisted in the "Allowed Web Origins" in your -Auth0 Application's settings.

    -
  • Optional scope?: string

    The scope that was used in the authentication request

    -
cacheMode?: "off" | "on" | "cache-only"

When off, ignores the cache and always sends a +Auth0 Application's settings.

+
  • Optionalscope?: string

    The scope that was used in the authentication request

    +
  • cacheMode?: "off" | "on" | "cache-only"

    When off, ignores the cache and always sends a request to Auth0. When cache-only, only reads from the cache and never sends a request to Auth0. Defaults to on, where it both reads from the cache and sends a request to Auth0 as needed.

    -
    detailedResponse?: boolean

    If true, the full response from the /oauth/token endpoint (or the cache, if the cache was used) is returned +

    detailedResponse?: boolean

    If true, the full response from the /oauth/token endpoint (or the cache, if the cache was used) is returned (minus refresh_token if one was issued). Otherwise, just the access token is returned.

    The default is false.

    -
    timeoutInSeconds?: number

    A maximum number of seconds to wait before declaring the background /authorize call as failed for timeout +

    timeoutInSeconds?: number

    A maximum number of seconds to wait before declaring the background /authorize call as failed for timeout Defaults to 60s.

    -
    \ No newline at end of file +
    diff --git a/docs/interfaces/GetTokenWithPopupOptions.html b/docs/interfaces/GetTokenWithPopupOptions.html index def2ef4..358abc3 100644 --- a/docs/interfaces/GetTokenWithPopupOptions.html +++ b/docs/interfaces/GetTokenWithPopupOptions.html @@ -1,8 +1,8 @@ -GetTokenWithPopupOptions | @auth0/auth0-vue

    Interface GetTokenWithPopupOptions

    interface GetTokenWithPopupOptions {
        authorizationParams?: AuthorizationParams;
        cacheMode?: "off" | "on" | "cache-only";
    }

    Hierarchy

    Properties

    authorizationParams?: AuthorizationParams

    URL parameters that will be sent back to the Authorization Server. This can be known parameters +GetTokenWithPopupOptions | @auth0/auth0-vue

    Interface GetTokenWithPopupOptions

    interface GetTokenWithPopupOptions {
        authorizationParams?: AuthorizationParams;
        cacheMode?: "off" | "on" | "cache-only";
    }

    Hierarchy (view full)

    Properties

    authorizationParams?: AuthorizationParams

    URL parameters that will be sent back to the Authorization Server. This can be known parameters defined by Auth0 or custom parameters that you define.

    -
    cacheMode?: "off" | "on" | "cache-only"

    When off, ignores the cache and always sends a request to Auth0. +

    cacheMode?: "off" | "on" | "cache-only"

    When off, ignores the cache and always sends a request to Auth0. When cache-only, only reads from the cache and never sends a request to Auth0. Defaults to on, where it both reads from the cache and sends a request to Auth0 as needed.

    -
    \ No newline at end of file +
    diff --git a/docs/interfaces/ICache.html b/docs/interfaces/ICache.html index 6e41ff6..738f0dd 100644 --- a/docs/interfaces/ICache.html +++ b/docs/interfaces/ICache.html @@ -1,5 +1,5 @@ -ICache | @auth0/auth0-vue

    Interface ICache

    interface ICache {
        allKeys?(): MaybePromise<string[]>;
        get<T>(key): MaybePromise<undefined | T>;
        remove(key): MaybePromise<void>;
        set<T>(key, entry): MaybePromise<void>;
    }

    Implemented by

    Methods

    Methods

    • Returns MaybePromise<string[]>

    • Type Parameters

      Parameters

      • key: string

      Returns MaybePromise<undefined | T>

    • Parameters

      • key: string

      Returns MaybePromise<void>

    • Type Parameters

      Parameters

      • key: string
      • entry: T

      Returns MaybePromise<void>

    \ No newline at end of file +ICache | @auth0/auth0-vue

    Interface ICache

    interface ICache {
        allKeys?(): MaybePromise<string[]>;
        get<T>(key: string): MaybePromise<undefined | T>;
        remove(key: string): MaybePromise<void>;
        set<T>(key: string, entry: T): MaybePromise<void>;
    }

    Implemented by

    Methods

    Methods

    • Returns MaybePromise<string[]>

    • Type Parameters

      Parameters

      • key: string

      Returns MaybePromise<undefined | T>

    • Parameters

      • key: string

      Returns MaybePromise<void>

    • Type Parameters

      Parameters

      • key: string
      • entry: T

      Returns MaybePromise<void>

    diff --git a/docs/interfaces/IdToken.html b/docs/interfaces/IdToken.html index 11f999c..8c5242f 100644 --- a/docs/interfaces/IdToken.html +++ b/docs/interfaces/IdToken.html @@ -1,39 +1,39 @@ -IdToken | @auth0/auth0-vue

    Interface IdToken

    interface IdToken {
        __raw: string;
        acr?: string;
        address?: string;
        amr?: string[];
        at_hash?: string;
        aud?: string;
        auth_time?: string;
        azp?: string;
        birthdate?: string;
        c_hash?: string;
        cnf?: string;
        email?: string;
        email_verified?: boolean;
        exp?: number;
        family_name?: string;
        gender?: string;
        given_name?: string;
        iat?: number;
        iss?: string;
        jti?: string;
        locale?: string;
        middle_name?: string;
        name?: string;
        nbf?: number;
        nickname?: string;
        nonce?: string;
        org_id?: string;
        org_name?: string;
        phone_number?: string;
        phone_number_verified?: boolean;
        picture?: string;
        preferred_username?: string;
        profile?: string;
        sid?: string;
        sub_jwk?: string;
        updated_at?: string;
        website?: string;
        zoneinfo?: string;
        [key: string]: any;
    }

    Indexable

    [key: string]: any

    Properties

    __raw: string
    acr?: string
    address?: string
    amr?: string[]
    at_hash?: string
    aud?: string
    auth_time?: string
    azp?: string
    birthdate?: string
    c_hash?: string
    cnf?: string
    email?: string
    email_verified?: boolean
    exp?: number
    family_name?: string
    gender?: string
    given_name?: string
    iat?: number
    iss?: string
    jti?: string
    locale?: string
    middle_name?: string
    name?: string
    nbf?: number
    nickname?: string
    nonce?: string
    org_id?: string
    org_name?: string
    phone_number?: string
    phone_number_verified?: boolean
    picture?: string
    preferred_username?: string
    profile?: string
    sid?: string
    sub_jwk?: string
    updated_at?: string
    website?: string
    zoneinfo?: string
    \ No newline at end of file +IdToken | @auth0/auth0-vue

    Interface IdToken

    interface IdToken {
        __raw: string;
        acr?: string;
        address?: string;
        amr?: string[];
        at_hash?: string;
        aud?: string;
        auth_time?: string;
        azp?: string;
        birthdate?: string;
        c_hash?: string;
        cnf?: string;
        email?: string;
        email_verified?: boolean;
        exp?: number;
        family_name?: string;
        gender?: string;
        given_name?: string;
        iat?: number;
        iss?: string;
        jti?: string;
        locale?: string;
        middle_name?: string;
        name?: string;
        nbf?: number;
        nickname?: string;
        nonce?: string;
        org_id?: string;
        org_name?: string;
        phone_number?: string;
        phone_number_verified?: boolean;
        picture?: string;
        preferred_username?: string;
        profile?: string;
        sid?: string;
        sub_jwk?: string;
        updated_at?: string;
        website?: string;
        zoneinfo?: string;
        [key: string]: any;
    }

    Indexable

    • [key: string]: any

    Properties

    __raw: string
    acr?: string
    address?: string
    amr?: string[]
    at_hash?: string
    aud?: string
    auth_time?: string
    azp?: string
    birthdate?: string
    c_hash?: string
    cnf?: string
    email?: string
    email_verified?: boolean
    exp?: number
    family_name?: string
    gender?: string
    given_name?: string
    iat?: number
    iss?: string
    jti?: string
    locale?: string
    middle_name?: string
    name?: string
    nbf?: number
    nickname?: string
    nonce?: string
    org_id?: string
    org_name?: string
    phone_number?: string
    phone_number_verified?: boolean
    picture?: string
    preferred_username?: string
    profile?: string
    sid?: string
    sub_jwk?: string
    updated_at?: string
    website?: string
    zoneinfo?: string
    diff --git a/docs/interfaces/LogoutOptions.html b/docs/interfaces/LogoutOptions.html index ffcbc5f..e009913 100644 --- a/docs/interfaces/LogoutOptions.html +++ b/docs/interfaces/LogoutOptions.html @@ -1,29 +1,31 @@ -LogoutOptions | @auth0/auth0-vue

    Interface LogoutOptions

    interface LogoutOptions {
        clientId?: null | string;
        logoutParams?: {
            federated?: boolean;
            returnTo?: string;
            [key: string]: any;
        };
        openUrl?: false | ((url) => void | Promise<void>);
    }

    Hierarchy

    • Omit<SPALogoutOptions, "onRedirect">
      • LogoutOptions

    Properties

    clientId?: null | string

    The clientId of your application.

    +LogoutOptions | @auth0/auth0-vue

    Interface LogoutOptions

    interface LogoutOptions {
        clientId?: null | string;
        logoutParams?: {
            federated?: boolean;
            returnTo?: string;
            [key: string]: any;
        };
        openUrl?: false | ((url: string) => void | Promise<void>);
    }

    Hierarchy

    • Omit<SPALogoutOptions, "onRedirect">
      • LogoutOptions

    Properties

    clientId?: null | string

    The clientId of your application.

    If this property is not set, then the clientId that was used during initialization of the SDK is sent to the logout endpoint.

    If this property is set to null, then no client ID value is sent to the logout endpoint.

    -

    Read more about how redirecting after logout works

    -
    logoutParams?: {
        federated?: boolean;
        returnTo?: string;
        [key: string]: any;
    }

    Parameters to pass to the logout endpoint. This can be known parameters defined by Auth0 or custom parameters +

    Read more about how redirecting after logout works

    +
    logoutParams?: {
        federated?: boolean;
        returnTo?: string;
        [key: string]: any;
    }

    Parameters to pass to the logout endpoint. This can be known parameters defined by Auth0 or custom parameters you wish to provide.

    Type declaration

    • [key: string]: any

      If you need to send custom parameters to the logout endpoint, make sure to use the original parameter name.

      -
    • Optional federated?: boolean

      When supported by the upstream identity provider, +

    • Optionalfederated?: boolean

      When supported by the upstream identity provider, forces the user to logout of their identity provider and from Auth0. -Read more about how federated logout works at Auth0

      -
    • Optional returnTo?: string

      The URL where Auth0 will redirect your browser to after the logout.

      +Read more about how federated logout works at Auth0

      +
    • OptionalreturnTo?: string

      The URL where Auth0 will redirect your browser to after the logout.

      Note: If the client_id parameter is included, the returnTo URL that is provided must be listed in the -Application's "Allowed Logout URLs" in the Auth0 dashboard. +Application's "Allowed Logout URLs" in the Auth0 dashboard. However, if the client_id parameter is not included, the returnTo URL must be listed in the "Allowed Logout URLs" at the account level in the Auth0 dashboard.

      -

      Read more about how redirecting after logout works

      -
    openUrl?: false | ((url) => void | Promise<void>)

    Used to control the redirect and not rely on the SDK to do the actual redirect.

    +

    Read more about how redirecting after logout works

    +
    openUrl?: false | ((url: string) => void | Promise<void>)

    Used to control the redirect and not rely on the SDK to do the actual redirect.

    Set to false to disable the redirect, or provide a function to handle the actual redirect yourself.

    -

    Type declaration

      • (url): void | Promise<void>
      • Parameters

        • url: string

        Returns void | Promise<void>

    Example

    await auth0.logout({
    openUrl(url) {
    window.location.replace(url);
    }
    }); -
    -

    Example

    import { Browser } from '@capacitor/browser';

    await auth0.logout({
    async openUrl(url) {
    await Browser.open({ url });
    }
    }); -
    -
    \ No newline at end of file +
    await auth0.logout({
    openUrl(url) {
    window.location.replace(url);
    }
    }); +
    + +
    import { Browser } from '@capacitor/browser';

    await auth0.logout({
    async openUrl(url) {
    await Browser.open({ url });
    }
    }); +
    + +
    diff --git a/docs/interfaces/LogoutUrlOptions.html b/docs/interfaces/LogoutUrlOptions.html index 854b1b2..b842856 100644 --- a/docs/interfaces/LogoutUrlOptions.html +++ b/docs/interfaces/LogoutUrlOptions.html @@ -1,22 +1,22 @@ -LogoutUrlOptions | @auth0/auth0-vue

    Interface LogoutUrlOptions

    interface LogoutUrlOptions {
        clientId?: null | string;
        logoutParams?: {
            federated?: boolean;
            returnTo?: string;
            [key: string]: any;
        };
    }

    Properties

    clientId?: null | string

    The clientId of your application.

    +LogoutUrlOptions | @auth0/auth0-vue

    Interface LogoutUrlOptions

    interface LogoutUrlOptions {
        clientId?: null | string;
        logoutParams?: {
            federated?: boolean;
            returnTo?: string;
            [key: string]: any;
        };
    }

    Properties

    clientId?: null | string

    The clientId of your application.

    If this property is not set, then the clientId that was used during initialization of the SDK is sent to the logout endpoint.

    If this property is set to null, then no client ID value is sent to the logout endpoint.

    -

    Read more about how redirecting after logout works

    -
    logoutParams?: {
        federated?: boolean;
        returnTo?: string;
        [key: string]: any;
    }

    Parameters to pass to the logout endpoint. This can be known parameters defined by Auth0 or custom parameters +

    Read more about how redirecting after logout works

    +
    logoutParams?: {
        federated?: boolean;
        returnTo?: string;
        [key: string]: any;
    }

    Parameters to pass to the logout endpoint. This can be known parameters defined by Auth0 or custom parameters you wish to provide.

    Type declaration

    • [key: string]: any

      If you need to send custom parameters to the logout endpoint, make sure to use the original parameter name.

      -
    • Optional federated?: boolean

      When supported by the upstream identity provider, +

    • Optionalfederated?: boolean

      When supported by the upstream identity provider, forces the user to logout of their identity provider and from Auth0. -Read more about how federated logout works at Auth0

      -
    • Optional returnTo?: string

      The URL where Auth0 will redirect your browser to after the logout.

      +Read more about how federated logout works at Auth0

      +
    • OptionalreturnTo?: string

      The URL where Auth0 will redirect your browser to after the logout.

      Note: If the client_id parameter is included, the returnTo URL that is provided must be listed in the -Application's "Allowed Logout URLs" in the Auth0 dashboard. +Application's "Allowed Logout URLs" in the Auth0 dashboard. However, if the client_id parameter is not included, the returnTo URL must be listed in the "Allowed Logout URLs" at the account level in the Auth0 dashboard.

      -

      Read more about how redirecting after logout works

      -
    \ No newline at end of file +

    Read more about how redirecting after logout works

    +
    diff --git a/docs/interfaces/PopupConfigOptions.html b/docs/interfaces/PopupConfigOptions.html index f3c88c8..128ae95 100644 --- a/docs/interfaces/PopupConfigOptions.html +++ b/docs/interfaces/PopupConfigOptions.html @@ -1,8 +1,8 @@ -PopupConfigOptions | @auth0/auth0-vue

    Interface PopupConfigOptions

    interface PopupConfigOptions {
        popup?: any;
        timeoutInSeconds?: number;
    }

    Properties

    popup?: any

    Accepts an already-created popup window to use. If not specified, the SDK +PopupConfigOptions | @auth0/auth0-vue

    Interface PopupConfigOptions

    interface PopupConfigOptions {
        popup?: any;
        timeoutInSeconds?: number;
    }

    Properties

    popup?: any

    Accepts an already-created popup window to use. If not specified, the SDK will create its own. This may be useful for platforms like iOS that have security restrictions around when popups can be invoked (e.g. from a user click event)

    -
    timeoutInSeconds?: number

    The number of seconds to wait for a popup response before +

    timeoutInSeconds?: number

    The number of seconds to wait for a popup response before throwing a timeout error. Defaults to 60s

    -
    \ No newline at end of file +
    diff --git a/docs/interfaces/PopupLoginOptions.html b/docs/interfaces/PopupLoginOptions.html index 3e60ac9..91b0d61 100644 --- a/docs/interfaces/PopupLoginOptions.html +++ b/docs/interfaces/PopupLoginOptions.html @@ -1,4 +1,4 @@ -PopupLoginOptions | @auth0/auth0-vue

    Interface PopupLoginOptions

    interface PopupLoginOptions {
        authorizationParams?: AuthorizationParams;
    }

    Hierarchy

    Properties

    authorizationParams?: AuthorizationParams

    URL parameters that will be sent back to the Authorization Server. This can be known parameters +PopupLoginOptions | @auth0/auth0-vue

    Interface PopupLoginOptions

    interface PopupLoginOptions {
        authorizationParams?: AuthorizationParams;
    }

    Hierarchy (view full)

    Properties

    authorizationParams?: AuthorizationParams

    URL parameters that will be sent back to the Authorization Server. This can be known parameters defined by Auth0 or custom parameters that you define.

    -
    \ No newline at end of file +
    diff --git a/docs/interfaces/RedirectLoginOptions.html b/docs/interfaces/RedirectLoginOptions.html index 6b63608..50f1229 100644 --- a/docs/interfaces/RedirectLoginOptions.html +++ b/docs/interfaces/RedirectLoginOptions.html @@ -1,14 +1,16 @@ -RedirectLoginOptions | @auth0/auth0-vue

    Interface RedirectLoginOptions<TAppState>

    interface RedirectLoginOptions {
        appState?: TAppState;
        authorizationParams?: AuthorizationParams;
        fragment?: string;
        openUrl?: ((url) => void | Promise<void>);
    }

    Type Parameters

    Hierarchy

    • Omit<SPARedirectLoginOptions<TAppState>, "onRedirect">
      • RedirectLoginOptions

    Properties

    appState?: TAppState

    Used to store state before doing the redirect

    -
    authorizationParams?: AuthorizationParams

    URL parameters that will be sent back to the Authorization Server. This can be known parameters +RedirectLoginOptions | @auth0/auth0-vue

    Interface RedirectLoginOptions<TAppState>

    interface RedirectLoginOptions<TAppState> {
        appState?: TAppState;
        authorizationParams?: AuthorizationParams;
        fragment?: string;
        openUrl?: ((url: string) => void | Promise<void>);
    }

    Type Parameters

    Hierarchy

    • Omit<SPARedirectLoginOptions<TAppState>, "onRedirect">
      • RedirectLoginOptions

    Properties

    appState?: TAppState

    Used to store state before doing the redirect

    +
    authorizationParams?: AuthorizationParams

    URL parameters that will be sent back to the Authorization Server. This can be known parameters defined by Auth0 or custom parameters that you define.

    -
    fragment?: string

    Used to add to the URL fragment before redirecting

    -
    openUrl?: ((url) => void | Promise<void>)

    Type declaration

      • (url): void | Promise<void>
      • Used to control the redirect and not rely on the SDK to do the actual redirect.

        -

        Parameters

        • url: string

        Returns void | Promise<void>

        Example

        const client = new Auth0Client({
        openUrl(url) {
        window.location.replace(url);
        }
        }); -
        -

        Example

        import { Browser } from '@capacitor/browser';

        const client = new Auth0Client({
        async openUrl(url) {
        await Browser.open({ url });
        }
        }); -
        -
    \ No newline at end of file +
    fragment?: string

    Used to add to the URL fragment before redirecting

    +
    openUrl?: ((url: string) => void | Promise<void>)

    Used to control the redirect and not rely on the SDK to do the actual redirect.

    +
    const client = new Auth0Client({
    openUrl(url) {
    window.location.replace(url);
    }
    }); +
    + +
    import { Browser } from '@capacitor/browser';

    const client = new Auth0Client({
    async openUrl(url) {
    await Browser.open({ url });
    }
    }); +
    + +
    diff --git a/docs/modules.html b/docs/modules.html index fa600d7..f81a839 100644 --- a/docs/modules.html +++ b/docs/modules.html @@ -1,26 +1,30 @@ -@auth0/auth0-vue
    \ No newline at end of file +@auth0/auth0-vue
    diff --git a/docs/types/CacheLocation.html b/docs/types/CacheLocation.html index 9b48393..32455a2 100644 --- a/docs/types/CacheLocation.html +++ b/docs/types/CacheLocation.html @@ -1,2 +1,2 @@ -CacheLocation | @auth0/auth0-vue

    Type alias CacheLocation

    CacheLocation: "memory" | "localstorage"

    The possible locations where tokens can be stored

    -
    \ No newline at end of file +CacheLocation | @auth0/auth0-vue

    Type Alias CacheLocation

    CacheLocation: "memory" | "localstorage"

    The possible locations where tokens can be stored

    +
    diff --git a/docs/types/Cacheable.html b/docs/types/Cacheable.html index 6c384e6..363a40a 100644 --- a/docs/types/Cacheable.html +++ b/docs/types/Cacheable.html @@ -1 +1 @@ -Cacheable | @auth0/auth0-vue
    \ No newline at end of file +Cacheable | @auth0/auth0-vue

    Type Alias Cacheable

    Cacheable: WrappedCacheEntry | KeyManifestEntry
    diff --git a/docs/types/CustomFetchMinimalOutput.html b/docs/types/CustomFetchMinimalOutput.html new file mode 100644 index 0000000..1d1459d --- /dev/null +++ b/docs/types/CustomFetchMinimalOutput.html @@ -0,0 +1 @@ +CustomFetchMinimalOutput | @auth0/auth0-vue

    Type Alias CustomFetchMinimalOutput

    CustomFetchMinimalOutput: {
        headers: ResponseHeaders;
        status: number;
    }
    diff --git a/docs/types/FetcherConfig.html b/docs/types/FetcherConfig.html new file mode 100644 index 0000000..99f6764 --- /dev/null +++ b/docs/types/FetcherConfig.html @@ -0,0 +1 @@ +FetcherConfig | @auth0/auth0-vue

    Type Alias FetcherConfig<TOutput>

    FetcherConfig<TOutput>: {
        baseUrl?: string;
        dpopNonceId?: string;
        fetch?: CustomFetchImpl<TOutput>;
        getAccessToken?: AccessTokenFactory;
    }

    Type Parameters

    diff --git a/docs/variables/AUTH0_INJECTION_KEY.html b/docs/variables/AUTH0_INJECTION_KEY.html index c6356e2..8c21cf5 100644 --- a/docs/variables/AUTH0_INJECTION_KEY.html +++ b/docs/variables/AUTH0_INJECTION_KEY.html @@ -1,4 +1,5 @@ -AUTH0_INJECTION_KEY | @auth0/auth0-vue

    Variable AUTH0_INJECTION_KEYConst

    AUTH0_INJECTION_KEY: InjectionKey<Auth0VueClient> = ...

    Injection token used to provide the Auth0VueClient instance. Can be used to pass to inject()

    -
    inject(AUTH0_INJECTION_KEY)
    -
    -
    \ No newline at end of file +AUTH0_INJECTION_KEY | @auth0/auth0-vue

    Variable AUTH0_INJECTION_KEYConst

    AUTH0_INJECTION_KEY: InjectionKey<Auth0VueClient> = ...

    Injection token used to provide the Auth0VueClient instance. Can be used to pass to inject()

    +
    inject(AUTH0_INJECTION_KEY)
    +
    + +
    diff --git a/package-lock.json b/package-lock.json index 33ea4b3..98462ca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@auth0/auth0-vue", - "version": "2.4.0", + "version": "2.5.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@auth0/auth0-vue", - "version": "2.4.0", + "version": "2.5.0", "license": "MIT", "dependencies": { "@auth0/auth0-spa-js": "^2.10.0", diff --git a/package.json b/package.json index b9781e7..5fe72e7 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "name": "@auth0/auth0-vue", "description": "Auth0 SDK for Vue Applications using Authorization Code Grant Flow with PKCE", "license": "MIT", - "version": "2.4.0", + "version": "2.5.0", "main": "dist/lib/auth0-vue.cjs.js", "types": "dist/typings/index.d.ts", "module": "dist/auth0-vue.production.esm.js",