From d161e187cfe3fddf0c0ae64d36c355a2cde0e643 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 19 Jul 2024 21:07:32 +0000 Subject: [PATCH] Updated docs (43118dc) --- assets/custom.css | 72 ++++++++++++++++---- assets/highlight.css | 8 +-- assets/icons.js | 31 +++++---- assets/icons.svg | 2 +- assets/main.js | 9 +-- assets/navigation.js | 2 +- assets/search.js | 2 +- assets/style.css | 98 ++++++++++++++++++--------- classes/Navigation.html | 16 ++--- classes/NotFoundError.html | 6 +- classes/Outlet.html | 2 - classes/PathnameTemplate.html | 16 +++++ classes/Redirect.html | 13 ++-- classes/Route.html | 48 +++++++++---- classes/Router.html | 6 +- functions/HistoryProvider.html | 1 + functions/Link.html | 4 +- functions/Outlet.html | 3 + functions/createBrowserHistory.html | 6 +- functions/createHashHistory.html | 3 + functions/createMemoryHistory.html | 4 +- functions/createRoute.html | 26 ++++--- functions/notFound.html | 8 +-- functions/redirect-1.html | 6 +- functions/useHistory.html | 2 + functions/useHistorySubscription.html | 6 +- functions/useLocation.html | 2 - functions/useNavigation.html | 4 +- functions/useRoute.html | 3 - functions/useRouteData.html | 4 -- functions/useRouteError.html | 3 - functions/useRouteParams.html | 4 -- functions/useRouteState.html | 3 + hierarchy.html | 2 +- index.html | 31 +++++---- interfaces/BrowserHistoryOptions.html | 5 -- interfaces/Dict.html | 2 +- interfaces/History.html | 20 ++++++ interfaces/HistoryOptions.html | 6 ++ interfaces/LinkProps.html | 31 ++++----- interfaces/Location.html | 10 +-- interfaces/LocationOptions.html | 12 ++-- interfaces/MemoryHistoryOptions.html | 13 ++-- interfaces/OutletProps.html | 7 +- interfaces/ParamsAdapter.html | 14 ++-- interfaces/PathnameMatch.html | 8 +++ interfaces/RedirectOptions.html | 7 ++ interfaces/RouteOptions.html | 90 ++++++++++++++---------- interfaces/RouteState.html | 9 +++ interfaces/RouterProps.html | 29 ++++++++ interfaces/SearchParamsAdapter.html | 8 +++ types/LoadingAppearance.html | 9 +++ types/RouteContent.html | 9 --- types/RouteFallback.html | 2 - types/To.html | 4 +- 55 files changed, 494 insertions(+), 257 deletions(-) delete mode 100644 classes/Outlet.html create mode 100644 classes/PathnameTemplate.html create mode 100644 functions/HistoryProvider.html create mode 100644 functions/Outlet.html create mode 100644 functions/createHashHistory.html create mode 100644 functions/useHistory.html delete mode 100644 functions/useLocation.html delete mode 100644 functions/useRoute.html delete mode 100644 functions/useRouteData.html delete mode 100644 functions/useRouteError.html delete mode 100644 functions/useRouteParams.html create mode 100644 functions/useRouteState.html delete mode 100644 interfaces/BrowserHistoryOptions.html create mode 100644 interfaces/History.html create mode 100644 interfaces/HistoryOptions.html create mode 100644 interfaces/PathnameMatch.html create mode 100644 interfaces/RedirectOptions.html create mode 100644 interfaces/RouteState.html create mode 100644 interfaces/RouterProps.html create mode 100644 interfaces/SearchParamsAdapter.html create mode 100644 types/LoadingAppearance.html delete mode 100644 types/RouteContent.html delete mode 100644 types/RouteFallback.html diff --git a/assets/custom.css b/assets/custom.css index 900e2ba..10b8850 100644 --- a/assets/custom.css +++ b/assets/custom.css @@ -186,9 +186,11 @@ meter { --input-border-color-focus: var(--dark-input-border-color-focus); } +html, body { font-family: var(--font-family-body); line-height: var(--line-height); + font-size: 16px; } b, strong { @@ -210,7 +212,7 @@ select { font-size: 1rem; border: solid 1px var(--input-border-color); border-radius: var(--border-radius); - vertical-align: middle; + vertical-align: baseline; } input { @@ -354,16 +356,23 @@ button:hover { /* ---------------------------------------------------- PANELS ----------------------------------------------------- */ -.tsd-panel-group, +.tsd-panel-group { + margin: 0; +} + .tsd-panel-group.tsd-index-group { - margin: var(--member-group-spacing) 0; + margin: var(--member-spacing) 0 0 0; +} + +.tsd-panel-group > .tsd-accordion-summary { + margin: 0; } .tsd-panel-group.tsd-index-group details { margin: 0; } -.tsd-panel-group.tsd-member-group > h2 { +.tsd-panel-group.tsd-member-group > summary > h2 { font-size: var(--font-size-h2); margin: 0 0 var(--member-spacing) 0; } @@ -372,9 +381,14 @@ button:hover { margin: 0 0 var(--paragraph-spacing) 0; } +.tsd-panel.tsd-index-panel { + margin: 0; +} + /* ---------------------------------------------------- SOURCE ----------------------------------------------------- */ .tsd-sources { + color: var(--color-text-aside); font-size: var(--font-size-aside); margin: 0 0 var(--paragraph-spacing) 0; } @@ -531,7 +545,7 @@ ul.tsd-parameter-list > li > h5:last-child { /* Protected, optional, etc. */ code.tsd-tag { padding: 0; - margin: 0; + margin: 0 0.3em 0 0; border: none; font: inherit; font-weight: normal; @@ -572,8 +586,8 @@ code.tsd-tag { padding: 0 0 0 var(--menu-spacing-horizontal); } -.tsd-nested-navigation { - margin: 0 0 0 calc(var(--menu-spacing-horizontal) * 2); +ul.tsd-nested-navigation { + margin: 0 0 0 calc(var(--menu-spacing-horizontal) * 2 + 0.1em); } .tsd-nested-navigation > li > a { @@ -599,13 +613,17 @@ code.tsd-tag { } .tsd-accordion-summary > h3 > svg { - margin-right: 0.2rem; + margin: 0 0.2em 0 0; } .tsd-accordion-summary:has(a.current) + .tsd-accordion-details a.current { background: none; } +.tsd-accordion .tsd-accordion-summary > svg { + margin: 0 0.2em 0 0.3em; +} + .tsd-small-nested-navigation { margin: 0 0 0 var(--menu-spacing-horizontal); } @@ -625,7 +643,7 @@ code.tsd-tag { padding: 0; } -.tsd-filter-visibility h4 { +.tsd-filter-visibility .settings-label { margin: var(--paragraph-spacing) 0 var(--term-spacing) 0; padding: 0; font-weight: normal; @@ -645,7 +663,7 @@ code.tsd-tag { padding: 0; } -.tsd-theme-toggle h4 { +.tsd-theme-toggle .settings-label { margin: 0 0.5rem 0 0; padding: 0; font-weight: normal; @@ -664,6 +682,25 @@ code.tsd-tag { stroke: var(--color-text); } +/* ------------------------------------------- "ON THIS PAGE" NAVIGATION ------------------------------------------- */ + +.page-menu .tsd-accordion .tsd-accordion-summary > svg { + margin: 0 0.2em 0 0; + vertical-align: middle; +} + +.tsd-page-navigation-section > summary { + padding: 0.25rem 0; +} + +.tsd-page-navigation-section { + margin: 0 0 0 1.3em; +} + +.tsd-page-navigation-section > div { + margin: 0 0 0 1.2em; +} + /* --------------------------------------------------- HIERARCHY --------------------------------------------------- */ ul.tsd-hierarchy { @@ -696,12 +733,13 @@ ul.tsd-hierarchy .target { /* Main heading */ .tsd-index-summary > .tsd-index-heading, .tsd-index-panel > .tsd-index-heading { + margin: 0 0 var(--member-spacing) 0; font-size: var(--font-size-h2); } .tsd-index-panel .tsd-index-list { padding: 0; - margin: 0 0 var(--paragraph-spacing) 0; + margin: 0 0 var(--member-spacing) 0; } a.tsd-index-link { @@ -843,9 +881,9 @@ a.tsd-index-link { overflow-x: hidden; } -.col-content .tsd-panel:last-child { - margin-bottom: var(--member-group-spacing); -} +/*.col-content .tsd-panel:last-child {*/ +/* margin-bottom: var(--member-group-spacing);*/ +/*}*/ @media (max-width: 769px) { :root { @@ -928,3 +966,9 @@ a.tsd-index-link { padding: var(--paragraph-spacing) 0 var(--paragraph-spacing) var(--content-spacing); } } + +/* ---------------------------------------------------- FOOTER ----------------------------------------------------- */ + +footer:empty { + display: none; +} diff --git a/assets/highlight.css b/assets/highlight.css index eedbb9e..cbf6516 100644 --- a/assets/highlight.css +++ b/assets/highlight.css @@ -1,10 +1,10 @@ :root { - --light-hl-0: #A31515; - --dark-hl-0: #CE9178; + --light-hl-0: #0000FF; + --dark-hl-0: #569CD6; --light-hl-1: #000000; --dark-hl-1: #D4D4D4; - --light-hl-2: #0000FF; - --dark-hl-2: #569CD6; + --light-hl-2: #A31515; + --dark-hl-2: #CE9178; --light-code-background: #FFFFFF; --dark-code-background: #1E1E1E; } diff --git a/assets/icons.js b/assets/icons.js index b79c9e8..e88e8ca 100644 --- a/assets/icons.js +++ b/assets/icons.js @@ -1,15 +1,18 @@ -(function(svg) { - svg.innerHTML = ``; - svg.style.display = 'none'; - if (location.protocol === 'file:') { - if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', updateUseElements); - else updateUseElements() - function updateUseElements() { - document.querySelectorAll('use').forEach(el => { - if (el.getAttribute('href').includes('#icon-')) { - el.setAttribute('href', el.getAttribute('href').replace(/.*#/, '#')); - } - }); - } +(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 = `""`; + svg.style.display = "none"; + if (location.protocol === "file:") updateUseElements(); } -})(document.body.appendChild(document.createElementNS('http://www.w3.org/2000/svg', 'svg'))) \ No newline at end of file + + 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/assets/icons.svg b/assets/icons.svg index 7dead61..e371b8b 100644 --- a/assets/icons.svg +++ b/assets/icons.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/main.js b/assets/main.js index d6f1388..3572881 100644 --- a/assets/main.js +++ b/assets/main.js @@ -1,8 +1,9 @@ "use strict"; -"use strict";(()=>{var Ce=Object.create;var ne=Object.defineProperty;var Pe=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=Pe(e,i))||r.enumerable});return t};var De=(t,e,n)=>(n=t!=null?Ce(_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),y=s.str.charAt(1),p;y in s.node.edges?p=s.node.edges[y]:(p=new t.TokenSet,s.node.edges[y]=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 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.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}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()}showPage(){document.body.style.display&&(console.log("Show page"),document.body.style.removeProperty("display"),this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}scrollToHash(){if(location.hash){console.log("Scorlling");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&&!e.checkVisibility()){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").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&&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(()=>{Ve(t,e,n,r)},200));let i=!1;n.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Ne(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 Ve(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 y=document.createElement("li");y.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=u+d,y.append(p),e.appendChild(y)}}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 Ne(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 He={"&":"&","<":"<",">":">","'":"'",'"':"""};function K(t){return t.replace(/[&<>"'"]/g,e=>He[e])}var I=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",fe="mousemove",H="mouseup",J={x:0,y:0},pe=!1,ee=!1,Be=!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&&(Be=!0,F="touchstart",fe="touchmove",H="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(fe,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(H,()=>{ee=!1});document.addEventListener("click",t=>{pe&&(t.preventDefault(),t.stopImmediatePropagation(),pe=!1)});var X=class extends I{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(H,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(F,n=>this.onDocumentPointerDown(n)),document.addEventListener(H,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 te;try{te=localStorage}catch{te={getItem(){return null},setItem(){}}}var Q=te;var ye=document.head.appendChild(document.createElement("style"));ye.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()),ye.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 ge(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,ve(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),ve(t.value)})}function ve(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.showPage(),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.pathname===r.pathname&&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.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-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/assets/navigation.js b/assets/navigation.js index b8e4e3b..d8bba15 100644 --- a/assets/navigation.js +++ b/assets/navigation.js @@ -1 +1 @@ -window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAA43VwVLCMBAG4HfJGUUYQeWmIuNBhVFvjofQBslQkk6yVRnHd3dKW5uk222v3f2/MWHdvP0wEN/AZuyJf8oPDlIrNmAphy2bsSjh1go7rGunW9gnbMB2UsVsNhpf/g5qQcNCZyq+M0YbBHHLlLPMIBHQBIrvVPJZxNKICMlWFTKtMxBINP/cmUMOXHynkjdGf1lh7qUFbQ7LNL9hW0NSgTAbHgk7RDt9ejyZOvRcutfgSHmBCj5ItVsZneJ/x3+VJHQUDJIrlMU+AHUjQQ/FPYq9Nocet4w1UnAxke235dQpZsUN39vrmKfeHDmQ10FRx5mjjug2dEK3WoFQzhzBIa2MshYYZ1cXo8k4dBY8SdY82qFQVeySXnUYf9VdmXxc69QmU9Hx4Mcx9rPTcycWGcFB+P9zGIP1dbLekLWrXlsnGuyuEEN2mIeocjdjQlUj4qaxd+t4VTsZEUBmRXnSl2xtIyNTf3/UHN5J08195Hn4RgoR7H30mLZHMoRaf6qq1iM+58ApIq/3YIKXuukgbzUKFfuJkoqOBvX+B0eBLamBCAAA" \ No newline at end of file +window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAA42WQU8bMRCF/4vPoSERpJAbVVtxKCVqckMcBq9hLbK2NZ6ljSr+O0qyYW3HO87V771P67FnvA//Bal/JObiN7zpFyBtjRgJB1SLuZBr8F75ca99qalZi5F41aYS88n06n3UEyz9tK2pfiBazEBCmeMsgGoDjVqpxq2B1DEqdXC0P6rSqCQdUw4Km7Zt7gN2y8Vcpgj7dS75XYffqg0pfAap/HgrxMHp5SwI3mpPFjfZbKedEL9322P2HKWzcLBf2rwu0Lo851NlEVYmtzEkdOIpAG5HiYfD3anG4uaEKuWMHPi+pbWi4WoFOodZAELjbypw0cULQJGDR+3b6w5I1gOowMGhDj3GFSzxsLht+7CswFAELSmaLilmJxchOHxygc5hlgpQ1uXzy/j4+w+VNi83zilAMDLYKW3c7vInhoR2fv11cjkNiCubIla2lOn6YIH2TVfhxp5bI3fHNE4sMXF2kYyVHGG7zsT2HZQL7hUmKlEBqW9o/3qFRxO2B+V8Rewt+LrIDExFYDR6hpGRrQhNnsAUlnkKI4jpnv0c4aAxcTx6vvv4QTubMIDWK6YgvXoSYtk+eYnaxQ9TDhc6eXTuxysiDv19paDcTItAQ1NtdvH++AGiwT+nCQoAAA==" \ No newline at end of file diff --git a/assets/search.js b/assets/search.js index 06ca2a6..ca39fd7 100644 --- a/assets/search.js +++ b/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAA62bWY/bNhCA/wv3Vdk1L/l464kWSNugCfpiLALF5sZCvJIhyWmDxf73gpRkzVgzOtw+tV3NxflmhjSlvogi/7sUm+2L+JJme7GJTSSy5NmJjdgVLqnc917AFb+kZZUX30QkzsVRbMTTOdtVaZ6VD5TY/aF6PopI7I5JWbpSbIR4jVgXv7nnvPg25gFJzXPwZ36uHGs4PJ1q8Fy6JoT350/lrkhP3hRhmxac4eb35Gv6OeGtd89nGH2b7wZMtk9nGORS2z6aa+rHpEoGzPnHc02+S4rkuRwwWgvMNft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wBRTB4JdcXraKrP88C2mCWSa5MW22yR8CSYw553nzJBfyC1pKrQbV+rYAVG85lfWOftDeNIGDQY9bWBRNzrNrPdgBioK64dDdXjJ2WBXRjrpu6tylgrSC9ponWsgbqi9pPl4taEADozJgrr0afxAzqxHK8um8UAGgwB2WzANWMNs3m74znogTDSHKsui/9gCJIn1w33rmSuXwfCvTBdiu5tPf3OKCluFkUtIgd3oICi7kEBWWKkwXpjrl+DtrUDARptmyamw+0wHJBPypudNZvvk/NtTPwCQrTcMuFykRLKzBMNFfczTtX0FogVbqpDdNUpuWs+K99gAmQMN0Ut+HKpMrbBu9nwQJDMVcxVc4l0YKCi7nT5Ll0zc5Vov/pACwHrIY3Qu3C8GzGa9I7H6h3buXnsn+QBEXHlU2rtg//O0CnCmYZ1yKtam/DBAOFK/VWt88J1Ck5Qx8jcUpP7phmTmy2j6+v/wIticbaWjMAAA=="; \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAA62d3XPbNhLA/xf6VXGEb9Jvba83vZm0zSS9e/FkOozMxJzakoakc81l8r/fgB/iLrAgV7KfrIjYDwA/LBZLivmWNYf/ttnN7bfsr3p/l91Yvcn25WOV3WS7piq76kffoGp+qdvu0HzNNtlT85DdZJ+e9ruuPuzb11Sz6/vu8SHbZLuHsm2rNrvJsu+bpIlfyvZ+TT9oc57yX6vHQ/N1TT1qxTXwpt7/RWj0X3NVPLXVaPT908d219RHr4NQSjc838yiaq66sfnb5vClvqsaQmfQ4rwpe3d46qrkVPVXFxUKmZ80/lZ+qT+XaFBHmdfzpUVtcqtndcen9n5N0dXYCGjbZMeyqfYddihho6mOD+WuWjUzt7vU0sdy99eqmbHRpTaOTfWp6naMUZsbnmELwLM/dP88PO3vCHKmS3xsRoGfm+bQxK7Dq1y2f3/qHqqOcG64sOzaVs6K7ur2+FB+/c3/a1HbFW5Jj+roFj0Mb8vu3n/8o3o8PpRdzGTYYLEXRsh5pR/2bdc87TpieEmlV1iC7kzkb2IIj2VT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jV4vTwZu3Fie9UWQ08KTBI3fS1Z3eDAuAgceOcQtQbLXDe6vBbIAYywXm9Po44BQ8JstBUI9/DdO5IHAA+saoaHmK5jdNg26CKCTHfV/yCJ7UERuUBVNR8IIAEdnEFiZx45iNEFoee9HhVgLPJC+q9Dqo5AAe4LfMKRjfKgp2O7DC9BmdaqLIa4E/jrfkp/e+ACWAV8fLCQYlXbAaHTx2Sx4Dwy/aiSgOkef1DKoiQrgG2OtxFZkpjeQdkqIeazCTZoyRxSlZ54UQ8BItECeBs5bHLHjjGtAD5tby1rh/8SboIZhTM9YQCx6z3YHaXiTYrphllVlRzImDyZ3gTWN3SFHnYE4keGuhO/hfUcExB4vS8hh4aiuqWAGG/kw1Lfovg8B0gjXAVUmfIxRYoJqtiw4cGkR9zejqh012rI/VQ72vspvbD9+//x8vrm5yrGoAAA=="; \ No newline at end of file diff --git a/assets/style.css b/assets/style.css index 778b949..9d619a6 100644 --- a/assets/style.css +++ b/assets/style.css @@ -10,6 +10,7 @@ --light-color-text: #222; --light-color-text-aside: #6e6e6e; --light-color-link: #1f70c2; + --light-color-focus-outline: #3584e4; --light-color-ts-keyword: #056bd6; --light-color-ts-project: #b111c9; @@ -35,6 +36,7 @@ --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; @@ -50,6 +52,7 @@ --dark-color-text: #f5f5f5; --dark-color-text-aside: #dddddd; --dark-color-link: #00aff4; + --dark-color-focus-outline: #4c97f2; --dark-color-ts-keyword: #3399ff; --dark-color-ts-project: #e358ff; @@ -75,6 +78,7 @@ --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; @@ -92,6 +96,7 @@ --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); --color-link: var(--light-color-link); + --color-focus-outline: var(--light-color-focus-outline); --color-ts-keyword: var(--light-color-ts-keyword); --color-ts-module: var(--light-color-ts-module); @@ -116,6 +121,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); @@ -134,6 +140,7 @@ --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); --color-link: var(--dark-color-link); + --color-focus-outline: var(--dark-color-focus-outline); --color-ts-keyword: var(--dark-color-ts-keyword); --color-ts-module: var(--dark-color-ts-module); @@ -158,6 +165,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); @@ -183,6 +191,7 @@ body { --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); --color-link: var(--light-color-link); + --color-focus-outline: var(--light-color-focus-outline); --color-ts-keyword: var(--light-color-ts-keyword); --color-ts-module: var(--light-color-ts-module); @@ -207,6 +216,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); @@ -223,6 +233,7 @@ body { --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); --color-link: var(--dark-color-link); + --color-focus-outline: var(--dark-color-focus-outline); --color-ts-keyword: var(--dark-color-ts-keyword); --color-ts-module: var(--dark-color-ts-module); @@ -247,11 +258,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 +283,6 @@ h6 { line-height: 1.2; } -h1 > a:not(.link), -h2 > a:not(.link), -h3 > a:not(.link), -h4 > a:not(.link), -h5 > a:not(.link), -h6 > a:not(.link) { - text-decoration: none; - color: var(--color-text); -} - h1 { font-size: 1.875rem; margin: 0.67rem 0; @@ -306,10 +313,6 @@ h6 { margin: 2.33rem 0; } -.uppercase { - text-transform: uppercase; -} - dl, menu, ol, @@ -333,7 +336,7 @@ footer { padding-bottom: 1rem; max-height: 3.5rem; } -.tsd-generator { +footer > p { margin: 0 1em; } @@ -421,6 +424,9 @@ a.external[target="_blank"] { background-repeat: no-repeat; padding-right: 13px; } +a.tsd-anchor-link { + color: var(--color-text); +} code, pre { @@ -580,13 +586,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"] { @@ -609,11 +615,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); @@ -630,13 +633,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 { @@ -769,6 +777,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; } @@ -782,6 +793,15 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { margin-left: -1.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; } @@ -812,10 +832,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; } @@ -828,8 +848,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; @@ -877,7 +898,7 @@ a.tsd-index-link { } .tsd-panel-group { - margin: 4rem 0; + margin: 2rem 0; } .tsd-panel-group.tsd-index-group { margin: 2rem 0; @@ -885,6 +906,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; @@ -1034,6 +1058,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; } @@ -1347,6 +1377,12 @@ img { .has-menu .tsd-navigation { max-height: 100%; } + #tsd-toolbar-links { + display: none; + } + .tsd-navigation .tsd-nav-link { + display: flex; + } } /* one sidebar */ diff --git a/classes/Navigation.html b/classes/Navigation.html index 37b790e..e8588db 100644 --- a/classes/Navigation.html +++ b/classes/Navigation.html @@ -1,15 +1,15 @@ -Navigation | React Corsair - v0.0.3

Class Navigation

Provides components a way to trigger router navigation.

-

Methods

back +Navigation | React Corsair - v0.0.4

Class Navigation

Provides components a way to trigger router navigation.

+

Methods

  • Triggers RouterProps.onBack.

    -

    Returns void

  • Prefetch the content and data of a route and its ancestors matched by a location.

    +

Methods

  • Prefetch a content of a route matched by a location and content of its ancestors.

    Parameters

    • to: To

      A location or route.

      -

    Returns boolean

    true if the route was prefetched, or false if there's no route in the router that matches the provided +

Returns boolean

true if the route was prefetched, or false if there's no route in the router that matches the provided location.

-
  • Triggers RouterProps.onPush with the requested location.

    +
  • Triggers RouterProps.onPush with the requested location.

    Parameters

    • to: To

      A location or route.

      -

    Returns void

  • Triggers RouterProps.onReplace with the requested location.

    +

Returns void

  • Triggers RouterProps.onReplace with the requested location.

    Parameters

    • to: To

      A location or route.

      -

    Returns void

\ No newline at end of file +

Returns void

diff --git a/classes/NotFoundError.html b/classes/NotFoundError.html index 258c267..d52372f 100644 --- a/classes/NotFoundError.html +++ b/classes/NotFoundError.html @@ -1,4 +1,4 @@ -NotFoundError | React Corsair - v0.0.3

Class NotFoundError

An error that is thrown during rendering to signify that the RouteOptions.notFoundFallback must be rendered +NotFoundError | React Corsair - v0.0.4

Class NotFoundError

An error that is thrown during rendering to signify that the RouteOptions.notFoundComponent must be rendered instead of the matched route.

-

Hierarchy

Constructors

Constructors

  • Parameters

    • Optional message: string

    Returns NotFoundError

  • Parameters

    • Optional message: string
    • Optional options: ErrorOptions

    Returns NotFoundError

\ No newline at end of file +

Hierarchy

Constructors

Constructors

  • Parameters

    • Optionalmessage: string

    Returns NotFoundError

  • Parameters

    • Optionalmessage: string
    • Optionaloptions: ErrorOptions

    Returns NotFoundError

diff --git a/classes/Outlet.html b/classes/Outlet.html deleted file mode 100644 index c227ca0..0000000 --- a/classes/Outlet.html +++ /dev/null @@ -1,2 +0,0 @@ -Outlet | React Corsair - v0.0.3

Renders a Route provided by an enclosing Router.

-

Hierarchy

\ No newline at end of file diff --git a/classes/PathnameTemplate.html b/classes/PathnameTemplate.html new file mode 100644 index 0000000..ad903a4 --- /dev/null +++ b/classes/PathnameTemplate.html @@ -0,0 +1,16 @@ +PathnameTemplate | React Corsair - v0.0.4

Class PathnameTemplate

A template of a pathname pattern.

+

Constructors

Properties

Methods

Constructors

  • Creates a new PathnameTemplate instance.

    +

    Parameters

    • pattern: string

      A pathname pattern from which a template is derived.

      +
    • isCaseSensitive: boolean = false

      If true then pathname is matched in a case-sensitive manner.

      +

    Returns PathnameTemplate

Properties

isCaseSensitive: boolean

true if pathname is matched in a case-sensitive manner.

+
paramNames: ReadonlySet<string>

Names of template params.

+
pattern: string

A pathname pattern from which a template is derived.

+

Methods

  • Matches a pathname against a pathname pattern.

    +

    Parameters

    • pathname: string

    Returns null | PathnameMatch

  • Creates a pathname from a template by substituting params, beginning with a "/".

    +

    Parameters

    • Optionalparams: void | Dict

    Returns string

diff --git a/classes/Redirect.html b/classes/Redirect.html index 4b4ffae..ec7ca31 100644 --- a/classes/Redirect.html +++ b/classes/Redirect.html @@ -1,12 +1,11 @@ -Redirect | React Corsair - v0.0.3

Class Redirect

A redirect to a location.

-

Constructors

constructor +Redirect | React Corsair - v0.0.4

Class Redirect

A redirect to a location.

+

Constructors

Properties

Constructors

  • Creates a new Redirect instance.

    +

Constructors

Properties

isPermanent: boolean = false

If true then -the permanent redirect is rendered.

+a permanent redirect must be rendered.

+

Returns Redirect

Properties

isPermanent: boolean

true if a a permanent redirect must be rendered.

location: Location

A location to redirect to.

-
\ No newline at end of file +
diff --git a/classes/Route.html b/classes/Route.html index 8bed446..65482d6 100644 --- a/classes/Route.html +++ b/classes/Route.html @@ -1,24 +1,46 @@ -Route | React Corsair - v0.0.3

Class Route<Parent, Params, Data, Context>

A route that can be rendered by a router.

+Route | React Corsair - v0.0.4

Class Route<Parent, Params, Data, Context>

A route that can be rendered by a router.

Type Parameters

  • Parent extends Route<any, any, Context> | null = any

    A parent route or null if there is no parent.

  • Params extends object | void = any

    Route params.

  • Data = any

    Data loaded by a route.

    -
  • Context = any

    A context provided by a Router for a RouteOptions.dataLoader.

    -

Constructors

Properties

  • Context = any

    A context required by a data loader.

    +
  • Constructors

    Constructors

    Properties

    parent: Parent

    A parent route or null if there is no parent.

    -

    Methods

    Returns Route<Parent, Params, Data, Context>

    Properties

    errorComponent: undefined | ComponentType

    A component that is rendered when an error was thrown during route rendering.

    +
    getComponent: (() => ComponentType | Promise<ComponentType>)

    Loads and caches a route component.

    +
    loader: undefined | ((params: Params, context: Context) => Data | PromiseLike<Data>)

    Loads data required to render a route.

    +

    Route params extracted from a location.

    +

    A RouterProps.context provided to a Router.

    +
    loadingAppearance: LoadingAppearance

    What to render when a component or data are being loaded.

    +
    loadingComponent: undefined | ComponentType

    A component that is rendered when a component or data are being loaded.

    +
    notFoundComponent: undefined | ComponentType

    A component that is rendered if notFound was called during route rendering.

    +
    paramsAdapter: undefined | ParamsAdapter<Params>

    An adapter that can validate and transform params extracted from the Location.pathname and +Location.searchParams.

    +
    parent: Parent

    A parent route or null if there is no parent.

    +
    pathnameTemplate: PathnameTemplate

    A template of a pathname pattern.

    +

    Methods

    • Returns a route location.

      Parameters

      Returns Location

    • Prefetches route content and data of this route and its ancestors.

      +
    • Optionaloptions: LocationOptions

      Location options.

      +

    Returns Location

    • Prefetches a component and data of this route and its ancestors.

      Parameters

      Returns void

    \ No newline at end of file +
  • context: 0 extends 1 & Context
        ? void
        : never

    A context provided to a RouteOptions.loader.

    +
  • Returns void

  • Prefetches a component and data of this route and its ancestors.

    +

    Parameters

    Returns void

  • diff --git a/classes/Router.html b/classes/Router.html index 590a1ea..4456329 100644 --- a/classes/Router.html +++ b/classes/Router.html @@ -1,3 +1,3 @@ -Router | React Corsair - v0.0.3

    Class Router<Context>

    A router that renders a route that matches the provided location.

    -

    Type Parameters

    Hierarchy

    • Component<NoContextRouterProps | RouterProps<Context>, RouterState>
      • Router
    \ No newline at end of file +Router | React Corsair - v0.0.4

    Class Router<Context>

    A router that renders a route that matches the provided location.

    +

    Type Parameters

    Hierarchy

    diff --git a/functions/HistoryProvider.html b/functions/HistoryProvider.html new file mode 100644 index 0000000..56dc892 --- /dev/null +++ b/functions/HistoryProvider.html @@ -0,0 +1 @@ +HistoryProvider | React Corsair - v0.0.4

    Function HistoryProvider

    • Parameters

      Returns ReactNode

    diff --git a/functions/Link.html b/functions/Link.html index 18ab63b..ded625b 100644 --- a/functions/Link.html +++ b/functions/Link.html @@ -1,2 +1,2 @@ -Link | React Corsair - v0.0.3

    Function Link

    • Renders an a tag that trigger an enclosing router navigation when clicked.

      -

      Parameters

      Returns ReactElement

    \ No newline at end of file +Link | React Corsair - v0.0.4

    Function Link

    Renders an a tag that trigger an enclosing router navigation when clicked.

    +
    diff --git a/functions/Outlet.html b/functions/Outlet.html new file mode 100644 index 0000000..64c2bbd --- /dev/null +++ b/functions/Outlet.html @@ -0,0 +1,3 @@ +Outlet | React Corsair - v0.0.4

    Function Outlet

    • Renders a route provided by an enclosing Router.

      +

      Parameters

      Returns ReactNode

    Properties

    Properties

    displayName: string
    diff --git a/functions/createBrowserHistory.html b/functions/createBrowserHistory.html index 6041d88..de75390 100644 --- a/functions/createBrowserHistory.html +++ b/functions/createBrowserHistory.html @@ -1,3 +1,3 @@ -createBrowserHistory | React Corsair - v0.0.3

    Function createBrowserHistory

    • Create the history adapter that reads and writes location to a browser's session history.

      -

      Parameters

      Returns History

    \ No newline at end of file +createBrowserHistory | React Corsair - v0.0.4

    Function createBrowserHistory

    • Create the history adapter that reads and writes location to a browser's session history.

      +

      Parameters

      Returns History

    diff --git a/functions/createHashHistory.html b/functions/createHashHistory.html new file mode 100644 index 0000000..ef1b3de --- /dev/null +++ b/functions/createHashHistory.html @@ -0,0 +1,3 @@ +createHashHistory | React Corsair - v0.0.4

    Function createHashHistory

    • Create the history adapter that reads and writes location to a browser's session history using only URL hash.

      +

      Parameters

      Returns History

    diff --git a/functions/createMemoryHistory.html b/functions/createMemoryHistory.html index f927aaf..36bfa13 100644 --- a/functions/createMemoryHistory.html +++ b/functions/createMemoryHistory.html @@ -1,3 +1,3 @@ -createMemoryHistory | React Corsair - v0.0.3

    Function createMemoryHistory

    • Create the history adapter that reads and writes location to an in-memory stack.

      +createMemoryHistory | React Corsair - v0.0.4

      Function createMemoryHistory

      • Create the history adapter that reads and writes location to an in-memory stack.

        Parameters

        Returns History

      \ No newline at end of file +

    Returns History

    diff --git a/functions/createRoute.html b/functions/createRoute.html index 147b318..50d77bb 100644 --- a/functions/createRoute.html +++ b/functions/createRoute.html @@ -1,12 +1,22 @@ -createRoute | React Corsair - v0.0.3

    Function createRoute

    \ No newline at end of file +
  • Optionaloptions: RouteOptions<Params, Data, Parent["_context"]>

    Route options.

    +
  • Returns Route<Parent, Params, Data, Parent["_context"]>

  • Creates a route that is rendered in the Outlet of a Router.

    +

    Type Parameters

    • Params extends void | object = void | object

      Route params.

      +

    Parameters

    • pathname: string

      A URL pathname pattern.

      +
    • Optionalcomponent: ComponentType

      A component that is rendered by a route.

      +

    Returns Route<null, Params, void>

  • Creates a route that is rendered in the Outlet of a parent route.

    +

    Type Parameters

    • Parent extends Route<any, any, any, any>

      A parent route.

      +
    • Params extends void | object = void | object

      Route params.

      +

    Parameters

    • parent: Parent

      A parent route.

      +
    • pathname: string

      A URL pathname pattern.

      +
    • Optionalcomponent: ComponentType

      A component that is rendered by a route.

      +

    Returns Route<Parent, Params, void>

  • diff --git a/functions/notFound.html b/functions/notFound.html index 0d3f2ad..815fffd 100644 --- a/functions/notFound.html +++ b/functions/notFound.html @@ -1,4 +1,4 @@ -notFound | React Corsair - v0.0.3

    Function notFound

    \ No newline at end of file +notFound | React Corsair - v0.0.4

    Function notFound

    diff --git a/functions/redirect-1.html b/functions/redirect-1.html index 8bbccb1..bd05ab0 100644 --- a/functions/redirect-1.html +++ b/functions/redirect-1.html @@ -1,3 +1,3 @@ -redirect | React Corsair - v0.0.3

    Function redirect

    • Throws a Redirect instance that redirects router to a location.

      -

      During SSR, redirects abort rendering. On the client, redirects trigger RouterProps.onReplace.

      -

      Parameters

      • to: To
      • Optional options: RedirectOptions

      Returns never

    \ No newline at end of file +redirect | React Corsair - v0.0.4

    Function redirect

    • Throws a Redirect instance that redirects router to a location.

      +

      During SSR, redirects abort rendering. On the client, redirects trigger RouterProps.onReplace.

      +

      Parameters

      Returns never

    diff --git a/functions/useHistory.html b/functions/useHistory.html new file mode 100644 index 0000000..4562596 --- /dev/null +++ b/functions/useHistory.html @@ -0,0 +1,2 @@ +useHistory | React Corsair - v0.0.4

    Function useHistory

    diff --git a/functions/useHistorySubscription.html b/functions/useHistorySubscription.html index 1af406c..5041ee3 100644 --- a/functions/useHistorySubscription.html +++ b/functions/useHistorySubscription.html @@ -1,3 +1,3 @@ -useHistorySubscription | React Corsair - v0.0.3

    Function useHistorySubscription

    • Subscribes component to updates of a history adapter and triggers re-render when history location is changed.

      -

      Parameters

      • history: History

        The history to subscribe to.

        -

      Returns void

    \ No newline at end of file +useHistorySubscription | React Corsair - v0.0.4

    Function useHistorySubscription

    • Subscribes component to updates of a history adapter and triggers re-render when history location is changed.

      +

      Parameters

      • history: History

        The history to subscribe to.

        +

      Returns void

    diff --git a/functions/useLocation.html b/functions/useLocation.html deleted file mode 100644 index 635faff..0000000 --- a/functions/useLocation.html +++ /dev/null @@ -1,2 +0,0 @@ -useLocation | React Corsair - v0.0.3

    Function useLocation

    • Returns the currently rendered location.

      -

      Returns Location

    \ No newline at end of file diff --git a/functions/useNavigation.html b/functions/useNavigation.html index e076e5c..7930c21 100644 --- a/functions/useNavigation.html +++ b/functions/useNavigation.html @@ -1,2 +1,2 @@ -useNavigation | React Corsair - v0.0.3

    Function useNavigation

    • Provides components a way to trigger router navigation.

      -

      Returns Navigation

    \ No newline at end of file +useNavigation | React Corsair - v0.0.4

    Function useNavigation

    • Returns the navigation that controls the enclosing router.

      +

      Returns Navigation

    diff --git a/functions/useRoute.html b/functions/useRoute.html deleted file mode 100644 index 8b0685e..0000000 --- a/functions/useRoute.html +++ /dev/null @@ -1,3 +0,0 @@ -useRoute | React Corsair - v0.0.3

    Function useRoute

    • Returns the currently rendered route.

      -

      Returns Route | null

      A rendered route, or null if RouterProps.notFoundFallback is rendered.

      -
    \ No newline at end of file diff --git a/functions/useRouteData.html b/functions/useRouteData.html deleted file mode 100644 index 810944b..0000000 --- a/functions/useRouteData.html +++ /dev/null @@ -1,4 +0,0 @@ -useRouteData | React Corsair - v0.0.3

    Function useRouteData

    • Returns the data loaded for the rendered route.

      -

      Type Parameters

      • Data

        Data loaded by a route.

        -

      Parameters

      • route: Route<any, any, Data, any>

        A route to retrieve data for.

        -

      Returns Data

    \ No newline at end of file diff --git a/functions/useRouteError.html b/functions/useRouteError.html deleted file mode 100644 index bbbdae1..0000000 --- a/functions/useRouteError.html +++ /dev/null @@ -1,3 +0,0 @@ -useRouteError | React Corsair - v0.0.3

    Function useRouteError

    • Returns the error thrown during data loading or route rendering.

      -

      Returns any

      An error, or undefined if there's no error.

      -
    \ No newline at end of file diff --git a/functions/useRouteParams.html b/functions/useRouteParams.html deleted file mode 100644 index b9de65e..0000000 --- a/functions/useRouteParams.html +++ /dev/null @@ -1,4 +0,0 @@ -useRouteParams | React Corsair - v0.0.3

    Function useRouteParams

    • Returns params of the rendered route.

      -

      Type Parameters

      • Params extends void | object

        Route params.

        -

      Parameters

      • route: Route<any, Params, any, any>

        A route to retrieve params for.

        -

      Returns Params

    \ No newline at end of file diff --git a/functions/useRouteState.html b/functions/useRouteState.html new file mode 100644 index 0000000..efd5321 --- /dev/null +++ b/functions/useRouteState.html @@ -0,0 +1,3 @@ +useRouteState | React Corsair - v0.0.4

    Function useRouteState

    diff --git a/hierarchy.html b/hierarchy.html index ae4d83f..1f33e63 100644 --- a/hierarchy.html +++ b/hierarchy.html @@ -1 +1 @@ -React Corsair - v0.0.3

    React Corsair - v0.0.3

    Class Hierarchy

    \ No newline at end of file +React Corsair - v0.0.4
    diff --git a/index.html b/index.html index 5bbaba1..3d46da7 100644 --- a/index.html +++ b/index.html @@ -1,32 +1,37 @@ -React Corsair - v0.0.3

    React Corsair - v0.0.3

    Index

    Classes

    Navigation +React Corsair - v0.0.4
    \ No newline at end of file +useRouteState +
    diff --git a/interfaces/BrowserHistoryOptions.html b/interfaces/BrowserHistoryOptions.html deleted file mode 100644 index a9650fc..0000000 --- a/interfaces/BrowserHistoryOptions.html +++ /dev/null @@ -1,5 +0,0 @@ -BrowserHistoryOptions | React Corsair - v0.0.3

    Interface BrowserHistoryOptions

    Options of createBrowserHistory.

    -
    interface BrowserHistoryOptions {
        searchParamsAdapter?: SearchParamsAdapter;
    }

    Properties

    searchParamsAdapter?: SearchParamsAdapter

    An adapter that extracts params from a URL search string and stringifies them back. By default, -an adapter that relies on URLSearchParams is used.

    -
    \ No newline at end of file diff --git a/interfaces/Dict.html b/interfaces/Dict.html index 0b3b2af..cd5c222 100644 --- a/interfaces/Dict.html +++ b/interfaces/Dict.html @@ -1 +1 @@ -Dict | React Corsair - v0.0.3

    Interface Dict

    interface Dict {
        [key: string]: any;
    }

    Indexable

    [key: string]: any
    \ No newline at end of file +Dict | React Corsair - v0.0.4

    Interface Dict

    Indexable

    • [key: string]: any
    diff --git a/interfaces/History.html b/interfaces/History.html new file mode 100644 index 0000000..5ce2bfe --- /dev/null +++ b/interfaces/History.html @@ -0,0 +1,20 @@ +History | React Corsair - v0.0.4

    Interface History

    A history abstraction.

    +
    interface History {
        location: Location;
        back(): void;
        push(to: To): void;
        replace(to: To): void;
        subscribe(listener: (() => void)): (() => void);
        toURL(location: Location, base?: string | URL): string;
    }

    Properties

    Methods

    Properties

    location: Location

    The current history location.

    +

    Methods

    • Move back to the previous history entry.

      +

      Returns void

    • Adds an entry to the history stack.

      +

      Parameters

      • to: To

        A location to navigate to.

        +

      Returns void

    • Modifies the current history entry, replacing it with the state object and URL passed in the method parameters.

      +

      Parameters

      • to: To

        A location to navigate to.

        +

      Returns void

    • Subscribe to location changes.

      +

      Parameters

      • listener: (() => void)

        A listener to subscribe.

        +
          • (): void
          • Returns void

      Returns (() => void)

      A callback to unsubscribe a listener.

      +
        • (): void
        • Returns void

    • Creates a URL for a given location.

      +

      Parameters

      • location: Location

        A location to create a URL for.

        +
      • Optionalbase: string | URL

        A URL base.

        +

      Returns string

    diff --git a/interfaces/HistoryOptions.html b/interfaces/HistoryOptions.html new file mode 100644 index 0000000..93db5fb --- /dev/null +++ b/interfaces/HistoryOptions.html @@ -0,0 +1,6 @@ +HistoryOptions | React Corsair - v0.0.4

    Interface HistoryOptions

    interface HistoryOptions {
        base?: string | URL;
        searchParamsAdapter?: SearchParamsAdapter;
    }

    Hierarchy (view full)

    Properties

    base?: string | URL

    A default URL base used by History.toURL.

    +
    searchParamsAdapter?: SearchParamsAdapter

    An adapter that extracts params from a URL search string and stringifies them back. By default, an adapter that +relies on URLSearchParams is used.

    +
    diff --git a/interfaces/LinkProps.html b/interfaces/LinkProps.html index 986f940..9ef2f2c 100644 --- a/interfaces/LinkProps.html +++ b/interfaces/LinkProps.html @@ -1,20 +1,19 @@ -LinkProps | React Corsair - v0.0.3

    Interface LinkProps

    Props of the Link component.

    -
    interface LinkProps {
        action?: "replace" | "push";
        hash?: string;
        prefetch?: "off" | "rendered";
        state?: any;
        to: To;
    }

    Hierarchy (view full)

    Properties

    action? -hash? +LinkProps | React Corsair - v0.0.4

    Interface LinkProps

    Props of the Link component.

    +
    interface LinkProps {
        hash?: string;
        prefetch?: boolean;
        replace?: boolean;
        state?: any;
        to: To;
    }

    Hierarchy (view full)

    Properties

    action?: "replace" | "push"

    Navigation action triggered by a link.

    -
    hash?: string

    A URL fragment identifier.

    -

    If hash begins with a "#" then it is used as is. Otherwise, it is encoded using encodeURIComponent.

    -
    prefetch?: "off" | "rendered"

    When to prefetch a route and its data.

    -
    -
    "rendered"
    -
    Prefetch when the link is rendered.
    -
    "off"
    -
    Prefetch is disabled.
    -

    Default

    "off"
    -
    -
    state?: any

    An arbitrary data associated with the location.

    +

    Properties

    hash?: string

    A URL fragment identifier.

    +

    If hash begins with a # then it is used as is. Otherwise, it is encoded using encodeURIComponent.

    +
    prefetch?: boolean

    If true then link prefetches a route location and its data.

    +
    false
    +
    + +
    replace?: boolean

    If true then link replaces the current history entry, otherwise link pushes an entry.

    +
    false
    +
    + +
    state?: any

    An arbitrary data associated with the location.

    to: To

    A location or route to navigate to when link is clicked.

    -
    \ No newline at end of file +
    diff --git a/interfaces/Location.html b/interfaces/Location.html index 344b1ac..5d748e0 100644 --- a/interfaces/Location.html +++ b/interfaces/Location.html @@ -1,10 +1,10 @@ -Location | React Corsair - v0.0.3

    Interface Location

    A location contains information about the URL path and history state.

    -
    interface Location {
        hash: string;
        pathname: string;
        searchParams: Dict;
        state?: any;
    }

    Properties

    hash +Location | React Corsair - v0.0.4

    Interface Location

    A location contains information about the URL path and history state.

    +
    interface Location {
        hash: string;
        pathname: string;
        searchParams: Dict;
        state?: any;
    }

    Properties

    hash: string

    A URL fragment identifier, beginning with "#".

    +

    Properties

    hash: string

    A decoded URL fragment identifier without a #.

    pathname: string

    A URL pathname.

    searchParams: Dict

    URL search params represented as an object.

    -
    state?: any

    An arbitrary data associated with the location.

    -
    \ No newline at end of file +
    state?: any

    An arbitrary data associated with the location.

    +
    diff --git a/interfaces/LocationOptions.html b/interfaces/LocationOptions.html index f1f5f9b..b70c381 100644 --- a/interfaces/LocationOptions.html +++ b/interfaces/LocationOptions.html @@ -1,7 +1,7 @@ -LocationOptions | React Corsair - v0.0.3

    Interface LocationOptions

    Non-essential Location options.

    -
    interface LocationOptions {
        hash?: string;
        state?: any;
    }

    Hierarchy (view full)

    Properties

    hash? +LocationOptions | React Corsair - v0.0.4

    Interface LocationOptions

    Non-essential Location options.

    +
    interface LocationOptions {
        hash?: string;
        state?: any;
    }

    Hierarchy (view full)

    Properties

    Properties

    hash?: string

    A URL fragment identifier.

    -

    If hash begins with a "#" then it is used as is. Otherwise, it is encoded using encodeURIComponent.

    -
    state?: any

    An arbitrary data associated with the location.

    -
    \ No newline at end of file +

    Properties

    hash?: string

    A URL fragment identifier.

    +

    If hash begins with a # then it is used as is. Otherwise, it is encoded using encodeURIComponent.

    +
    state?: any

    An arbitrary data associated with the location.

    +
    diff --git a/interfaces/MemoryHistoryOptions.html b/interfaces/MemoryHistoryOptions.html index 6841068..382fac0 100644 --- a/interfaces/MemoryHistoryOptions.html +++ b/interfaces/MemoryHistoryOptions.html @@ -1,4 +1,9 @@ -MemoryHistoryOptions | React Corsair - v0.0.3

    Interface MemoryHistoryOptions

    Options of createMemoryHistory.

    -
    interface MemoryHistoryOptions {
        initialEntries: Location[];
    }

    Properties

    Properties

    initialEntries: Location[]

    A non-empty array of initial history entries.

    -
    \ No newline at end of file +MemoryHistoryOptions | React Corsair - v0.0.4

    Interface MemoryHistoryOptions

    Options of createMemoryHistory.

    +
    interface MemoryHistoryOptions {
        base?: string | URL;
        initialEntries: Location[];
        searchParamsAdapter?: SearchParamsAdapter;
    }

    Hierarchy (view full)

    Properties

    base?: string | URL

    A default URL base used by History.toURL.

    +
    initialEntries: Location[]

    A non-empty array of initial history entries.

    +
    searchParamsAdapter?: SearchParamsAdapter

    An adapter that extracts params from a URL search string and stringifies them back. By default, an adapter that +relies on URLSearchParams is used.

    +
    diff --git a/interfaces/OutletProps.html b/interfaces/OutletProps.html index 749c290..98bc931 100644 --- a/interfaces/OutletProps.html +++ b/interfaces/OutletProps.html @@ -1,3 +1,4 @@ -OutletProps | React Corsair - v0.0.3

    Interface OutletProps

    interface OutletProps {
        children?: ReactNode;
    }

    Properties

    Properties

    children?: ReactNode

    Children that are rendered if an Outlet doesn't have any content to render.

    -
    \ No newline at end of file +OutletProps | React Corsair - v0.0.4

    Interface OutletProps

    Props of an Outlet.

    +
    interface OutletProps {
        children?: ReactNode;
    }

    Properties

    Properties

    children?: ReactNode

    A content that is rendered if there's no route to render.

    +
    diff --git a/interfaces/ParamsAdapter.html b/interfaces/ParamsAdapter.html index 7eeead5..d65a42f 100644 --- a/interfaces/ParamsAdapter.html +++ b/interfaces/ParamsAdapter.html @@ -1,15 +1,15 @@ -ParamsAdapter | React Corsair - v0.0.3

    Interface ParamsAdapter<Params>

    An adapter that can validate and transform route params.

    -
    interface ParamsAdapter<Params> {
        parse(params): Params;
        toPathnameParams?(params): Dict;
        toSearchParams?(params): Dict;
    }

    Type Parameters

    • Params

      Route params.

      -

    Methods

    parse +ParamsAdapter | React Corsair - v0.0.4

    Interface ParamsAdapter<Params>

    An adapter that can validate and transform route params.

    +
    interface ParamsAdapter<Params> {
        parse(params: Dict): Params;
        toPathnameParams?(params: Params): Dict;
        toSearchParams?(params: Params): Dict;
    }

    Type Parameters

    • Params

      Route params.

      +

    Methods

    Methods

    • Converts route params to Location.pathname params.

      Parameters

      Returns Dict

      Params that should be substituted into a location pathname.

      -
    \ No newline at end of file +
    diff --git a/interfaces/PathnameMatch.html b/interfaces/PathnameMatch.html new file mode 100644 index 0000000..f2360bf --- /dev/null +++ b/interfaces/PathnameMatch.html @@ -0,0 +1,8 @@ +PathnameMatch | React Corsair - v0.0.4

    Interface PathnameMatch

    A result returned by PathnameTemplate.match on a successful pathname match.

    +
    interface PathnameMatch {
        childPathname: string;
        params: undefined | Dict;
        pathname: string;
    }

    Properties

    childPathname: string

    A pathname that should be matched by a child route, beginning with a /.

    +
    params: undefined | Dict

    Params extracted from the pathname, or undefined if pathname doesn't have params.

    +
    pathname: string

    A pathname that was matched, beginning with a /.

    +
    diff --git a/interfaces/RedirectOptions.html b/interfaces/RedirectOptions.html new file mode 100644 index 0000000..6f0e42c --- /dev/null +++ b/interfaces/RedirectOptions.html @@ -0,0 +1,7 @@ +RedirectOptions | React Corsair - v0.0.4

    Interface RedirectOptions

    Options of the redirect function.

    +
    interface RedirectOptions {
        isPermanent?: boolean;
    }

    Properties

    Properties

    isPermanent?: boolean

    If true then the permanent redirect is rendered.

    +
    false
    +
    + +
    diff --git a/interfaces/RouteOptions.html b/interfaces/RouteOptions.html index 697790e..83c12ba 100644 --- a/interfaces/RouteOptions.html +++ b/interfaces/RouteOptions.html @@ -1,36 +1,58 @@ -RouteOptions | React Corsair - v0.0.3

    Interface RouteOptions<Params, Data, Context>

    Options of a Route.

    -
    interface RouteOptions<Params, Data, Context> {
        content?: RouteContent;
        dataLoader?: ((params, context) => Data | PromiseLike<Data>);
        errorFallback?: RouteFallback;
        notFoundFallback?: RouteFallback;
        paramsAdapter?: ParamsAdapter<Params> | ((params) => Params);
        pathname: string;
        pendingBehavior?: "auto" | "fallback";
        pendingFallback?: RouteFallback;
    }

    Type Parameters

    Properties

    content?: RouteContent

    A content rendered by a route. If undefined then route implicitly renders Outlet.

    -
    dataLoader?: ((params, context) => Data | PromiseLike<Data>)

    Loads data required to render a route. The loaded data is synchronously available inside the content -through useRouteData hook.

    -

    Type declaration

      • (params, context): Data | PromiseLike<Data>
      • Parameters

        • params: Params

          Route params extracted from a location.

          -
        • context: Context

          A RouterProps.context provided to a Router.

          -

        Returns Data | PromiseLike<Data>

    errorFallback?: RouteFallback

    A fallback that is rendered when an error was thrown during route rendering. An error is available through -useRouteError hook.

    -
    notFoundFallback?: RouteFallback

    A fallback that is rendered if notFound was called during route rendering.

    -
    paramsAdapter?: ParamsAdapter<Params> | ((params) => Params)

    An adapter that can validate and transform params extracted from the Location.pathname and -Location.searchParams. Params are available inside the content through useRouteParams hook.

    -

    Type declaration

    pathname: string

    A URL pathname segment. Leading and trailing slashes are ignored during route matching.

    -

    Example

    "/foo/$bar"
    -
    -
    pendingBehavior?: "auto" | "fallback"

    What to render when route is being loaded.

    -
    -
    "fallback"
    -
    A pendingFallback is always rendered if a route is matched and content or data are being loaded.
    -
    "auto"
    -
    If another route is currently rendered then it would be preserved until content and data of a newly matched - route are being loaded. Otherwise, a pendingFallback is rendered.
    -

    Default

    "auto"
    -
    -
    pendingFallback?: RouteFallback

    A fallback that is rendered when the route content or data are being loaded.

    -
    \ No newline at end of file +pathname? +

    Properties

    component?: ComponentType

    A component that is rendered by a route.

    +

    If both component and lazyComponent are omitted then a route implicitly renders an Outlet.

    +
    errorComponent?: ComponentType

    A component that is rendered when an error was thrown during route rendering.

    +
    isCaseSensitive?: boolean

    If true then pathname is matched in a case-sensitive manner.

    +
    false
    +
    + +
    lazyComponent?: (() => PromiseLike<{
        default: ComponentType;
    }>)

    A lazy-loaded component that is rendered by a route. A component cached forever if a returned Promise +is fulfilled.

    +
    () => import('./UserPage')
    +
    + +
    loader?: ((params: Params, context: Context) => Data | PromiseLike<Data>)

    Loads data required to render a route.

    +

    Type declaration

    loadingAppearance?: LoadingAppearance

    What to render when lazyComponent or loader are being loaded.

    +
    "auto"
    +
    + +
    loadingComponent?: ComponentType

    A component that is rendered when a lazyComponent or loader are being loaded. Render a skeleton or +a spinner in this component to notify user that a new route is being loaded.

    +
    notFoundComponent?: ComponentType

    A component that is rendered if notFound was called during route rendering.

    +
    paramsAdapter?: ParamsAdapter<Params> | ((params: Dict) => Params)

    An adapter that can validate and transform params extracted from the Location.pathname and +Location.searchParams.

    +

    Type declaration

    pathname?: string

    A URL pathname pattern.

    +

    Pattern can include params that conform :[A-Za-z$_][A-Za-z0-9$_]+. For example "/:userId".

    +

    Params match a whole segment and cannot be partial. For example, "/teams--:teamId" is invalid and would throw +a SyntaxError, while "/teams/:teamId" is valid.

    +

    By default, a param matches a non-empty pathname segment. To make a param optional (so it can match an absent +segment) follow it by a ? flag. For example: "/user/:userId?" matches both "/user" and "/user/37".

    +

    Static pathname segments can be optional as well: "/project/task?/:taskId".

    +

    By default, a param matches a single pathname segment. Follow a param with a * flag to make it match multiple +segments. For example: "/:slug*" matches "/watch" and "/watch/a/movie". Such params are called wildcard +params.

    +

    To make param both wildcard and optional, combine * and ? flags: "/:slug*?".

    +

    To use : as a character in a pathname pattern, replace it with an encoded +representation: %3A.

    +
    "/"
    +
    + +
    diff --git a/interfaces/RouteState.html b/interfaces/RouteState.html new file mode 100644 index 0000000..271e4a8 --- /dev/null +++ b/interfaces/RouteState.html @@ -0,0 +1,9 @@ +RouteState | React Corsair - v0.0.4

    Interface RouteState<Params, Data>

    interface RouteState<Params, Data> {
        data: undefined | Data;
        error: unknown;
        hasError: boolean;
        params: Params;
    }

    Type Parameters

    • Params
    • Data

    Properties

    Properties

    data: undefined | Data

    Data loaded by a RouteOptions.loader, or undefined data isn't loaded yet.

    +
    error: unknown

    An error that was thrown during rendering.

    +
    hasError: boolean

    true if an error was thrown during rendering.

    +
    params: Params

    Params of a route.

    +
    diff --git a/interfaces/RouterProps.html b/interfaces/RouterProps.html new file mode 100644 index 0000000..dad204f --- /dev/null +++ b/interfaces/RouterProps.html @@ -0,0 +1,29 @@ +RouterProps | React Corsair - v0.0.4

    Interface RouterProps<Context>

    Props of the Router component.

    +
    interface RouterProps<Context> {
        children?: ReactNode;
        context: Context;
        errorComponent?: ComponentType;
        loadingComponent?: ComponentType;
        location: Partial<Location>;
        notFoundComponent?: ComponentType;
        onBack?: (() => void);
        onPush?: ((location: Location) => void);
        onReplace?: ((location: Location) => void);
        routes: Route<any, any, any, Context>[];
    }

    Type Parameters

    Properties

    children?: ReactNode

    Children rendered by the router. If undefined, then an Outlet is rendered.

    +
    context: Context

    An arbitrary context provided to RouteOptions.loader.

    +
    errorComponent?: ComponentType

    A component that is rendered when an error was thrown during route rendering.

    +

    The Router-level errorComponent is used only for root routes. Child routes must specify their own +RouteOptions.errorComponent.

    +
    loadingComponent?: ComponentType

    A component that is rendered when a RouteOptions.lazyComponent or RouteOptions.loader are being +loaded. Render a skeleton or a spinner in this component to notify user that a new route is being loaded.

    +

    The Router-level loadingComponent is used only for root routes. Child routes must specify their own +RouteOptions.loadingComponent.

    +
    location: Partial<Location>

    The location rendered by the router.

    +
    notFoundComponent?: ComponentType

    A component that is rendered in the Outlet if there is no route in routes that matches +the location.

    +
    onBack?: (() => void)

    Triggered when a router should be navigated to the previous location.

    +
    onPush?: ((location: Location) => void)

    Triggered when a new location must be added to a history stack.

    +
    onReplace?: ((location: Location) => void)

    Triggered when a new location must replace the current history entry.

    +
    routes: Route<any, any, any, Context>[]

    Routes that the router can render.

    +
    diff --git a/interfaces/SearchParamsAdapter.html b/interfaces/SearchParamsAdapter.html new file mode 100644 index 0000000..afe6740 --- /dev/null +++ b/interfaces/SearchParamsAdapter.html @@ -0,0 +1,8 @@ +SearchParamsAdapter | React Corsair - v0.0.4

    Interface SearchParamsAdapter

    Extracts params from a URL search string and stringifies them back.

    +
    interface SearchParamsAdapter {
        parse(search: string): Dict;
        stringify(params: Dict): string;
    }

    Methods

    Methods

    • Extract params from a URL search string.

      +

      Parameters

      • search: string

        The URL search string to extract params from.

        +

      Returns Dict

    • Stringifies params as a search string.

      +

      Parameters

      • params: Dict

        Params to stringify.

        +

      Returns string

    diff --git a/types/LoadingAppearance.html b/types/LoadingAppearance.html new file mode 100644 index 0000000..fbbb4d4 --- /dev/null +++ b/types/LoadingAppearance.html @@ -0,0 +1,9 @@ +LoadingAppearance | React Corsair - v0.0.4

    Type Alias LoadingAppearance

    LoadingAppearance: "loading" | "auto"

    What to render when RouteOptions.lazyComponent or RouteOptions.loader are being loaded.

    +
    +
    "loading"
    +
    A RouteOptions.loadingComponent is always rendered if a route is matched and component or loader are + being loaded.
    +
    "auto"
    +
    If another route is currently rendered then it would be preserved until component and loader of a newly + matched route are being loaded. Otherwise, a RouteOptions.loadingComponent is rendered.
    +
    diff --git a/types/RouteContent.html b/types/RouteContent.html deleted file mode 100644 index e91d43f..0000000 --- a/types/RouteContent.html +++ /dev/null @@ -1,9 +0,0 @@ -RouteContent | React Corsair - v0.0.3

    Type alias RouteContent

    RouteContent: (() => PromiseLike<{
        default: ComponentType;
    } | ComponentType> | ComponentType) | ReactNode

    A content rendered by a route:

    -
      -
    • An arbitrary React node (element, string, number, etc.)
    • -
    • A function that returns a component.
    • -
    • A function that dynamically imports a module that default-exports the component.
    • -
    -

    Type declaration

      • (): PromiseLike<{
            default: ComponentType;
        } | ComponentType> | ComponentType
      • Returns PromiseLike<{
            default: ComponentType;
        } | ComponentType> | ComponentType

    Example

    () => import('./UserPage')
    -
    -
    \ No newline at end of file diff --git a/types/RouteFallback.html b/types/RouteFallback.html deleted file mode 100644 index 039a45e..0000000 --- a/types/RouteFallback.html +++ /dev/null @@ -1,2 +0,0 @@ -RouteFallback | React Corsair - v0.0.3

    Type alias RouteFallback

    RouteFallback: ComponentType | ReactNode

    A fallback rendered by the Outlet when RouteContent cannot be rendered for some reason.

    -
    \ No newline at end of file diff --git a/types/To.html b/types/To.html index c99eade..8e3dd4c 100644 --- a/types/To.html +++ b/types/To.html @@ -1,2 +1,2 @@ -To | React Corsair - v0.0.3

    Type alias To

    To: Location | {
        getLocation(): Location;
    }

    A location or route.

    -

    Type declaration

    \ No newline at end of file +To | React Corsair - v0.0.4

    Type Alias To

    To: Location | {
        getLocation(): Location;
    }

    A location or route.

    +