diff --git a/docs/assets/icons.js b/docs/assets/icons.js index e88e8ca7..3dfbd322 100644 --- a/docs/assets/icons.js +++ b/docs/assets/icons.js @@ -3,7 +3,7 @@ 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.innerHTML = `MMNEPVFCICPMFPCPTTAAATR`; svg.style.display = "none"; if (location.protocol === "file:") updateUseElements(); } diff --git a/docs/assets/icons.svg b/docs/assets/icons.svg index e371b8b5..a19417dc 100644 --- a/docs/assets/icons.svg +++ b/docs/assets/icons.svg @@ -1 +1 @@ - \ No newline at end of file +MMNEPVFCICPMFPCPTTAAATR \ No newline at end of file diff --git a/docs/assets/main.js b/docs/assets/main.js index 21a5d74d..99097a05 100644 --- a/docs/assets/main.js +++ b/docs/assets/main.js @@ -3,7 +3,7 @@ window.translations={"copy":"Copy","copied":"Copied!","normally_hidden":"This me "use strict";(()=>{var Pe=Object.create;var ie=Object.defineProperty;var Oe=Object.getOwnPropertyDescriptor;var _e=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,Me=Object.prototype.hasOwnProperty;var Fe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var De=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of _e(e))!Me.call(t,i)&&i!==n&&ie(t,i,{get:()=>e[i],enumerable:!(r=Oe(e,i))||r.enumerable});return t};var Ae=(t,e,n)=>(n=t!=null?Pe(Re(t)):{},De(e||!t||!t.__esModule?ie(n,"default",{value:t,enumerable:!0}):n,t));var ue=Fe((ae,le)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. `,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),m=s.str.charAt(1),p;m in s.node.edges?p=s.node.edges[m]:(p=new t.TokenSet,s.node.edges[m]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof ae=="object"?le.exports=n():e.lunr=n()}(this,function(){return t})})()});var se=[];function G(t,e){se.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}createComponents(e){se.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}showPage(){document.body.style.display&&(document.body.style.removeProperty("display"),this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}scrollToHash(){if(location.hash){let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e&&!Ve(e)){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r,document.querySelector(".col-sidebar").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(!n)return;let r=n.offsetParent==null,i=n;for(;i!==document.body;)i instanceof HTMLDetailsElement&&(i.open=!0),i=i.parentElement;if(n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let s=document.createElement("p");s.classList.add("warning"),s.textContent=window.translations.normally_hidden,n.prepend(s)}r&&e.scrollIntoView()}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent=window.translations.copied,e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent=window.translations.copy},100)},1e3)})})}};function Ve(t){let e=t.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(e.bottom<0||e.top-n>=0)}var oe=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var pe=Ae(ue());async function ce(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=pe.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function fe(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{ce(e,t)}),ce(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");i.addEventListener("mouseup",()=>{te(t)}),r.addEventListener("focus",()=>t.classList.add("has-focus")),He(t,i,r,e)}function He(t,e,n,r){n.addEventListener("input",oe(()=>{Ne(t,e,n,r)},200)),n.addEventListener("keydown",i=>{i.key=="Enter"?Be(e,t):i.key=="ArrowUp"?(de(e,n,-1),i.preventDefault()):i.key==="ArrowDown"&&(de(e,n,1),i.preventDefault())}),document.body.addEventListener("keypress",i=>{i.altKey||i.ctrlKey||i.metaKey||!n.matches(":focus")&&i.key==="/"&&(i.preventDefault(),n.focus())}),document.body.addEventListener("keyup",i=>{t.classList.contains("has-focus")&&(i.key==="Escape"||!e.matches(":focus-within")&&!n.matches(":focus"))&&(n.blur(),te(t))})}function te(t){t.classList.remove("has-focus")}function Ne(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=he(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` ${he(l.parent,i)}.${d}`);let m=document.createElement("li");m.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=u+d,m.append(p),p.addEventListener("focus",()=>{e.querySelector(".current")?.classList.remove("current"),m.classList.add("current")}),e.appendChild(m)}}function de(t,e,n){let r=t.querySelector(".current");if(!r)r=t.querySelector(n==1?"li:first-child":"li:last-child"),r&&r.classList.add("current");else{let i=r;if(n===1)do i=i.nextElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);else do i=i.previousElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);i?(r.classList.remove("current"),i.classList.add("current")):n===-1&&(r.classList.remove("current"),e.focus())}}function Be(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),te(e)}}function he(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(ee(t.substring(s,o)),`${ee(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(ee(t.substring(s))),i.join("")}var je={"&":"&","<":"<",">":">","'":"'",'"':"""};function ee(t){return t.replace(/[&<>"'"]/g,e=>je[e])}var I=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",ye="mousemove",N="mouseup",J={x:0,y:0},me=!1,ne=!1,qe=!1,D=!1,ve=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(ve?"is-mobile":"not-mobile");ve&&"ontouchstart"in document.documentElement&&(qe=!0,F="touchstart",ye="touchmove",N="touchend");document.addEventListener(F,t=>{ne=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(ye,t=>{if(ne&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(N,()=>{ne=!1});document.addEventListener("click",t=>{me&&(t.preventDefault(),t.stopImmediatePropagation(),me=!1)});var X=class extends I{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(N,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(F,n=>this.onDocumentPointerDown(n)),document.addEventListener(N,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var re;try{re=localStorage}catch{re={getItem(){return null},setItem(){}}}var Q=re;var ge=document.head.appendChild(document.createElement("style"));ge.dataset.for="filters";var Y=class extends I{constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ge.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } -`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var Z=class extends I{constructor(e){super(e),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function Ee(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,xe(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),xe(t.value)})}function xe(t){document.documentElement.dataset.theme=t}var K;function we(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",Le),Le())}async function Le(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();K=t.dataset.base,K.endsWith("/")||(K+="/"),t.innerHTML="";for(let s of i)Se(s,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function Se(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-accordion`:"tsd-accordion";let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.dataset.key=i.join("$"),o.innerHTML='',be(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)Se(u,l,i)}else be(t,r,t.class)}function be(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=K+t.path,n&&(r.className=n),location.pathname===r.pathname&&!r.href.includes("#")&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else 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();})(); +`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var Z=class extends I{constructor(e){super(e),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function Ee(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,xe(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),xe(t.value)})}function xe(t){document.documentElement.dataset.theme=t}var K;function we(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",Le),Le())}async function Le(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();K=t.dataset.base,K.endsWith("/")||(K+="/"),t.innerHTML="";for(let s of i)Se(s,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function Se(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-accordion`:"tsd-accordion";let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.dataset.key=i.join("$"),o.innerHTML='',be(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)Se(u,l,i)}else be(t,r,t.class)}function be(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=K+t.path,n&&(r.className=n),location.pathname===r.pathname&&!r.href.includes("#")&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else{let r=e.appendChild(document.createElement("span"));r.innerHTML='',r.appendChild(document.createElement("span")).textContent=t.text}}G(X,"a[data-toggle]");G(Z,".tsd-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Te=document.getElementById("tsd-theme");Te&&Ee(Te);var $e=new U;Object.defineProperty(window,"app",{value:$e});fe();we();})(); /*! Bundled license information: lunr/lunr.js: diff --git a/docs/assets/style.css b/docs/assets/style.css index 9d619a64..178bfb02 100644 --- a/docs/assets/style.css +++ b/docs/assets/style.css @@ -4,11 +4,17 @@ --light-color-background-secondary: #eff0f1; --light-color-warning-text: #222; --light-color-background-warning: #e6e600; - --light-color-icon-background: var(--light-color-background); --light-color-accent: #c5c7c9; --light-color-active-menu-item: var(--light-color-accent); --light-color-text: #222; --light-color-text-aside: #6e6e6e; + + --light-color-icon-background: var(--light-color-background); + --light-color-icon-text: var(--light-color-text); + + --light-color-comment-tag-text: var(--light-color-text); + --light-color-comment-tag: var(--light-color-background); + --light-color-link: #1f70c2; --light-color-focus-outline: #3584e4; @@ -22,16 +28,17 @@ --light-color-ts-function: #572be7; --light-color-ts-class: #1f70c2; --light-color-ts-interface: #108024; - --light-color-ts-constructor: var(--light-color-ts-class); - --light-color-ts-property: var(--light-color-ts-variable); - --light-color-ts-method: var(--light-color-ts-function); + --light-color-ts-constructor: #4d7fff; + --light-color-ts-property: #ff984d; + --light-color-ts-method: #ff4db8; + --light-color-ts-reference: #ff4d82; --light-color-ts-call-signature: var(--light-color-ts-method); --light-color-ts-index-signature: var(--light-color-ts-property); --light-color-ts-constructor-signature: var(--light-color-ts-constructor); --light-color-ts-parameter: var(--light-color-ts-variable); /* type literal not included as links will never be generated to it */ --light-color-ts-type-parameter: #a55c0e; - --light-color-ts-accessor: var(--light-color-ts-property); + --light-color-ts-accessor: #ff4d4d; --light-color-ts-get-signature: var(--light-color-ts-accessor); --light-color-ts-set-signature: var(--light-color-ts-accessor); --light-color-ts-type-alias: #d51270; @@ -46,11 +53,17 @@ --dark-color-background-secondary: #1e2024; --dark-color-background-warning: #bebe00; --dark-color-warning-text: #222; - --dark-color-icon-background: var(--dark-color-background-secondary); --dark-color-accent: #9096a2; --dark-color-active-menu-item: #5d5d6a; --dark-color-text: #f5f5f5; --dark-color-text-aside: #dddddd; + + --dark-color-icon-background: var(--dark-color-background-secondary); + --dark-color-icon-text: var(--dark-color-text); + + --dark-color-comment-tag-text: var(--dark-color-text); + --dark-color-comment-tag: var(--dark-color-background); + --dark-color-link: #00aff4; --dark-color-focus-outline: #4c97f2; @@ -64,16 +77,17 @@ --dark-color-ts-function: #a280ff; --dark-color-ts-class: #8ac4ff; --dark-color-ts-interface: #6cff87; - --dark-color-ts-constructor: var(--dark-color-ts-class); - --dark-color-ts-property: var(--dark-color-ts-variable); - --dark-color-ts-method: var(--dark-color-ts-function); + --dark-color-ts-constructor: #4d7fff; + --dark-color-ts-property: #ff984d; + --dark-color-ts-method: #ff4db8; + --dark-color-ts-reference: #ff4d82; --dark-color-ts-call-signature: var(--dark-color-ts-method); --dark-color-ts-index-signature: var(--dark-color-ts-property); --dark-color-ts-constructor-signature: var(--dark-color-ts-constructor); --dark-color-ts-parameter: var(--dark-color-ts-variable); /* type literal not included as links will never be generated to it */ --dark-color-ts-type-parameter: #e07d13; - --dark-color-ts-accessor: var(--dark-color-ts-property); + --dark-color-ts-accessor: #ff4d4d; --dark-color-ts-get-signature: var(--dark-color-ts-accessor); --dark-color-ts-set-signature: var(--dark-color-ts-accessor); --dark-color-ts-type-alias: #ff6492; @@ -90,15 +104,22 @@ --color-background-secondary: var(--light-color-background-secondary); --color-background-warning: var(--light-color-background-warning); --color-warning-text: var(--light-color-warning-text); - --color-icon-background: var(--light-color-icon-background); --color-accent: var(--light-color-accent); --color-active-menu-item: var(--light-color-active-menu-item); --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); + + --color-icon-background: var(--light-color-icon-background); + --color-icon-text: var(--light-color-icon-text); + + --color-comment-tag-text: var(--light-color-text); + --color-comment-tag: var(--light-color-background); + --color-link: var(--light-color-link); --color-focus-outline: var(--light-color-focus-outline); --color-ts-keyword: var(--light-color-ts-keyword); + --color-ts-project: var(--light-color-ts-project); --color-ts-module: var(--light-color-ts-module); --color-ts-namespace: var(--light-color-ts-namespace); --color-ts-enum: var(--light-color-ts-enum); @@ -110,6 +131,7 @@ --color-ts-constructor: var(--light-color-ts-constructor); --color-ts-property: var(--light-color-ts-property); --color-ts-method: var(--light-color-ts-method); + --color-ts-reference: var(--light-color-ts-reference); --color-ts-call-signature: var(--light-color-ts-call-signature); --color-ts-index-signature: var(--light-color-ts-index-signature); --color-ts-constructor-signature: var( @@ -134,15 +156,22 @@ --color-background-secondary: var(--dark-color-background-secondary); --color-background-warning: var(--dark-color-background-warning); --color-warning-text: var(--dark-color-warning-text); - --color-icon-background: var(--dark-color-icon-background); --color-accent: var(--dark-color-accent); --color-active-menu-item: var(--dark-color-active-menu-item); --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); + + --color-icon-background: var(--dark-color-icon-background); + --color-icon-text: var(--dark-color-icon-text); + + --color-comment-tag-text: var(--dark-color-text); + --color-comment-tag: var(--dark-color-background); + --color-link: var(--dark-color-link); --color-focus-outline: var(--dark-color-focus-outline); --color-ts-keyword: var(--dark-color-ts-keyword); + --color-ts-project: var(--dark-color-ts-project); --color-ts-module: var(--dark-color-ts-module); --color-ts-namespace: var(--dark-color-ts-namespace); --color-ts-enum: var(--dark-color-ts-enum); @@ -154,6 +183,7 @@ --color-ts-constructor: var(--dark-color-ts-constructor); --color-ts-property: var(--dark-color-ts-property); --color-ts-method: var(--dark-color-ts-method); + --color-ts-reference: var(--dark-color-ts-reference); --color-ts-call-signature: var(--dark-color-ts-call-signature); --color-ts-index-signature: var(--dark-color-ts-index-signature); --color-ts-constructor-signature: var( @@ -190,10 +220,16 @@ body { --color-active-menu-item: var(--light-color-active-menu-item); --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); + --color-icon-text: var(--light-color-icon-text); + + --color-comment-tag-text: var(--light-color-text); + --color-comment-tag: var(--light-color-background); + --color-link: var(--light-color-link); --color-focus-outline: var(--light-color-focus-outline); --color-ts-keyword: var(--light-color-ts-keyword); + --color-ts-project: var(--light-color-ts-project); --color-ts-module: var(--light-color-ts-module); --color-ts-namespace: var(--light-color-ts-namespace); --color-ts-enum: var(--light-color-ts-enum); @@ -205,6 +241,7 @@ body { --color-ts-constructor: var(--light-color-ts-constructor); --color-ts-property: var(--light-color-ts-property); --color-ts-method: var(--light-color-ts-method); + --color-ts-reference: var(--light-color-ts-reference); --color-ts-call-signature: var(--light-color-ts-call-signature); --color-ts-index-signature: var(--light-color-ts-index-signature); --color-ts-constructor-signature: var( @@ -232,10 +269,16 @@ body { --color-active-menu-item: var(--dark-color-active-menu-item); --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); + --color-icon-text: var(--dark-color-icon-text); + + --color-comment-tag-text: var(--dark-color-text); + --color-comment-tag: var(--dark-color-background); + --color-link: var(--dark-color-link); --color-focus-outline: var(--dark-color-focus-outline); --color-ts-keyword: var(--dark-color-ts-keyword); + --color-ts-project: var(--dark-color-ts-project); --color-ts-module: var(--dark-color-ts-module); --color-ts-namespace: var(--dark-color-ts-namespace); --color-ts-enum: var(--dark-color-ts-enum); @@ -247,6 +290,7 @@ body { --color-ts-constructor: var(--dark-color-ts-constructor); --color-ts-property: var(--dark-color-ts-property); --color-ts-method: var(--dark-color-ts-method); + --color-ts-reference: var(--dark-color-ts-reference); --color-ts-call-signature: var(--dark-color-ts-call-signature); --color-ts-index-signature: var(--dark-color-ts-index-signature); --color-ts-constructor-signature: var( @@ -439,7 +483,6 @@ pre { pre { position: relative; - white-space: pre; white-space: pre-wrap; word-wrap: break-word; padding: 10px; @@ -860,6 +903,12 @@ a.tsd-index-link { margin-bottom: 0.75rem; } +.tsd-no-select { + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} .tsd-kind-icon { margin-right: 0.5rem; width: 1.25rem; @@ -867,10 +916,6 @@ a.tsd-index-link { min-width: 1.25rem; min-height: 1.25rem; } -.tsd-kind-icon path { - transform-origin: center; - transform: scale(1.1); -} .tsd-signature > .tsd-kind-icon { margin-right: 0.8rem; } @@ -1242,6 +1287,9 @@ img { .tsd-kind-method { color: var(--color-ts-method); } +.tsd-kind-reference { + color: var(--color-ts-reference); +} .tsd-kind-call-signature { color: var(--color-ts-call-signature); } @@ -1254,9 +1302,6 @@ img { .tsd-kind-parameter { color: var(--color-ts-parameter); } -.tsd-kind-type-literal { - color: var(--color-ts-type-literal); -} .tsd-kind-type-parameter { color: var(--color-ts-type-parameter); } @@ -1435,7 +1480,7 @@ img { } .site-menu { - margin-top: 1rem 0; + margin-top: 1rem; } .page-menu, diff --git a/docs/functions/CardBrandFromJSON.html b/docs/functions/CardBrandFromJSON.html index c884e89d..bf5676c1 100644 --- a/docs/functions/CardBrandFromJSON.html +++ b/docs/functions/CardBrandFromJSON.html @@ -1 +1 @@ -CardBrandFromJSON | payjp-react-native

Function CardBrandFromJSON

+CardBrandFromJSON | payjp-react-native

Function CardBrandFromJSON

diff --git a/docs/functions/CardBrandFromJSONTyped.html b/docs/functions/CardBrandFromJSONTyped.html index 3dcc70e0..3e75349d 100644 --- a/docs/functions/CardBrandFromJSONTyped.html +++ b/docs/functions/CardBrandFromJSONTyped.html @@ -1 +1 @@ -CardBrandFromJSONTyped | payjp-react-native

Function CardBrandFromJSONTyped

+CardBrandFromJSONTyped | payjp-react-native

Function CardBrandFromJSONTyped

diff --git a/docs/functions/CardBrandToJSON.html b/docs/functions/CardBrandToJSON.html index 52aad6bb..838df36c 100644 --- a/docs/functions/CardBrandToJSON.html +++ b/docs/functions/CardBrandToJSON.html @@ -1 +1 @@ -CardBrandToJSON | payjp-react-native

Function CardBrandToJSON

+CardBrandToJSON | payjp-react-native

Function CardBrandToJSON

diff --git a/docs/functions/CardFromJSON.html b/docs/functions/CardFromJSON.html index b35ca229..89becb48 100644 --- a/docs/functions/CardFromJSON.html +++ b/docs/functions/CardFromJSON.html @@ -1 +1 @@ -CardFromJSON | payjp-react-native

Function CardFromJSON

+CardFromJSON | payjp-react-native

Function CardFromJSON

diff --git a/docs/functions/CardFromJSONTyped.html b/docs/functions/CardFromJSONTyped.html index 27dc774a..3f1b1ed2 100644 --- a/docs/functions/CardFromJSONTyped.html +++ b/docs/functions/CardFromJSONTyped.html @@ -1 +1 @@ -CardFromJSONTyped | payjp-react-native

Function CardFromJSONTyped

  • Parameters

    • json: any
    • ignoreDiscriminator: boolean

    Returns Card

+CardFromJSONTyped | payjp-react-native

Function CardFromJSONTyped

  • Parameters

    • json: any
    • ignoreDiscriminator: boolean

    Returns Card

diff --git a/docs/functions/CardToJSON.html b/docs/functions/CardToJSON.html index 77249f24..9c952361 100644 --- a/docs/functions/CardToJSON.html +++ b/docs/functions/CardToJSON.html @@ -1 +1 @@ -CardToJSON | payjp-react-native

Function CardToJSON

+CardToJSON | payjp-react-native

Function CardToJSON

diff --git a/docs/functions/ErrorResponseFromJSON.html b/docs/functions/ErrorResponseFromJSON.html index bda010b3..b6a5ff4c 100644 --- a/docs/functions/ErrorResponseFromJSON.html +++ b/docs/functions/ErrorResponseFromJSON.html @@ -1 +1 @@ -ErrorResponseFromJSON | payjp-react-native

Function ErrorResponseFromJSON

+ErrorResponseFromJSON | payjp-react-native

Function ErrorResponseFromJSON

diff --git a/docs/functions/ErrorResponseFromJSONTyped.html b/docs/functions/ErrorResponseFromJSONTyped.html index 767eadda..66328563 100644 --- a/docs/functions/ErrorResponseFromJSONTyped.html +++ b/docs/functions/ErrorResponseFromJSONTyped.html @@ -1 +1 @@ -ErrorResponseFromJSONTyped | payjp-react-native

Function ErrorResponseFromJSONTyped

+ErrorResponseFromJSONTyped | payjp-react-native

Function ErrorResponseFromJSONTyped

diff --git a/docs/functions/ErrorResponseToJSON.html b/docs/functions/ErrorResponseToJSON.html index 141beed6..e5c732ab 100644 --- a/docs/functions/ErrorResponseToJSON.html +++ b/docs/functions/ErrorResponseToJSON.html @@ -1 +1 @@ -ErrorResponseToJSON | payjp-react-native

Function ErrorResponseToJSON

+ErrorResponseToJSON | payjp-react-native

Function ErrorResponseToJSON

diff --git a/docs/functions/ModelErrorFromJSON.html b/docs/functions/ModelErrorFromJSON.html index 59a3f08c..b7235520 100644 --- a/docs/functions/ModelErrorFromJSON.html +++ b/docs/functions/ModelErrorFromJSON.html @@ -1 +1 @@ -ModelErrorFromJSON | payjp-react-native

Function ModelErrorFromJSON

+ModelErrorFromJSON | payjp-react-native

Function ModelErrorFromJSON

diff --git a/docs/functions/ModelErrorFromJSONTyped.html b/docs/functions/ModelErrorFromJSONTyped.html index f9528e35..41857be2 100644 --- a/docs/functions/ModelErrorFromJSONTyped.html +++ b/docs/functions/ModelErrorFromJSONTyped.html @@ -1 +1 @@ -ModelErrorFromJSONTyped | payjp-react-native

Function ModelErrorFromJSONTyped

+ModelErrorFromJSONTyped | payjp-react-native

Function ModelErrorFromJSONTyped

diff --git a/docs/functions/ModelErrorToJSON.html b/docs/functions/ModelErrorToJSON.html index 9c93a41c..04556e74 100644 --- a/docs/functions/ModelErrorToJSON.html +++ b/docs/functions/ModelErrorToJSON.html @@ -1 +1 @@ -ModelErrorToJSON | payjp-react-native

Function ModelErrorToJSON

+ModelErrorToJSON | payjp-react-native

Function ModelErrorToJSON

diff --git a/docs/functions/PayjpApplePay.completeApplePay.html b/docs/functions/PayjpApplePay.completeApplePay.html index 3869eef7..25db47dc 100644 --- a/docs/functions/PayjpApplePay.completeApplePay.html +++ b/docs/functions/PayjpApplePay.completeApplePay.html @@ -2,4 +2,4 @@ isSuccess がtrueの場合は成功の、falseの場合はエラーのUIを表示します。

  • Parameters

    • isSuccess: boolean

      Apple Payによるオーソリゼーションに成功したか(trueなら成功)

    • errorMessage: null | string = null

      エラーメッセージ

      -

    Returns Promise<void>

+

Returns Promise<void>

diff --git a/docs/functions/PayjpApplePay.isApplePayAvailable.html b/docs/functions/PayjpApplePay.isApplePayAvailable.html index 48401fb8..b20cb1f0 100644 --- a/docs/functions/PayjpApplePay.isApplePayAvailable.html +++ b/docs/functions/PayjpApplePay.isApplePayAvailable.html @@ -1,3 +1,3 @@ isApplePayAvailable | payjp-react-native

ApplePayが利用可能かどうか

cf. canMakePayments

-
  • Returns Promise<boolean>

+
  • Returns Promise<boolean>

diff --git a/docs/functions/PayjpApplePay.makeApplePayToken.html b/docs/functions/PayjpApplePay.makeApplePayToken.html index e55f46e6..5cf6f73c 100644 --- a/docs/functions/PayjpApplePay.makeApplePayToken.html +++ b/docs/functions/PayjpApplePay.makeApplePayToken.html @@ -3,4 +3,4 @@ フローの更新イベントを受け取るには、onApplePayUpdate にリスナーを登録してください。 Apple Payのペイメントシートを閉じるには completeApplePay を呼ぶ必要があります。

+

Returns Promise<void>

diff --git a/docs/functions/PayjpApplePay.onApplePayUpdate.html b/docs/functions/PayjpApplePay.onApplePayUpdate.html index 9b1be92c..737a32b6 100644 --- a/docs/functions/PayjpApplePay.onApplePayUpdate.html +++ b/docs/functions/PayjpApplePay.onApplePayUpdate.html @@ -2,4 +2,4 @@ 登録したリスナーを解除するには、返却される関数を実行します。

+
    • (): void
    • Returns void

diff --git a/docs/functions/PayjpCardForm.completeCardForm.html b/docs/functions/PayjpCardForm.completeCardForm.html index f2e4944f..6f0f4189 100644 --- a/docs/functions/PayjpCardForm.completeCardForm.html +++ b/docs/functions/PayjpCardForm.completeCardForm.html @@ -1,2 +1,2 @@ completeCardForm | payjp-react-native

カードフォーム画面を閉じます。

-
  • Returns Promise<void>

+
  • Returns Promise<void>

diff --git a/docs/functions/PayjpCardForm.onCardFormUpdate.html b/docs/functions/PayjpCardForm.onCardFormUpdate.html index 6ca1d063..8832ecfd 100644 --- a/docs/functions/PayjpCardForm.onCardFormUpdate.html +++ b/docs/functions/PayjpCardForm.onCardFormUpdate.html @@ -5,4 +5,4 @@
+
    • (): void
    • Returns void

diff --git a/docs/functions/PayjpCardForm.setIOSCardFormStyle.html b/docs/functions/PayjpCardForm.setIOSCardFormStyle.html index 537cbf43..d9cbc053 100644 --- a/docs/functions/PayjpCardForm.setIOSCardFormStyle.html +++ b/docs/functions/PayjpCardForm.setIOSCardFormStyle.html @@ -1,3 +1,3 @@ setIOSCardFormStyle | payjp-react-native

カードフォームのスタイルをセットします。(iOS用)

+

Returns Promise<void>

diff --git a/docs/functions/PayjpCardForm.showTokenProcessingError.html b/docs/functions/PayjpCardForm.showTokenProcessingError.html index dfaf06dc..48bc86c9 100644 --- a/docs/functions/PayjpCardForm.showTokenProcessingError.html +++ b/docs/functions/PayjpCardForm.showTokenProcessingError.html @@ -1,3 +1,3 @@ showTokenProcessingError | payjp-react-native

カードフォーム画面を終了せずにエラーメッセージを表示します。

  • Parameters

    • message: string

      エラーメッセージ

      -

    Returns Promise<void>

+

Returns Promise<void>

diff --git a/docs/functions/PayjpCardForm.startCardForm.html b/docs/functions/PayjpCardForm.startCardForm.html index 76a63c21..7a2e2a03 100644 --- a/docs/functions/PayjpCardForm.startCardForm.html +++ b/docs/functions/PayjpCardForm.startCardForm.html @@ -1,4 +1,4 @@ startCardForm | payjp-react-native

カードフォームを開始します。 更新を受け取るには onCardFormUpdate にリスナーを登録してください。

  • Parameters

    • Optionaloptions: CardFormOption

      カードフォームのオプション

      -

    Returns Promise<void>

+

Returns Promise<void>

diff --git a/docs/functions/PayjpCore.init.html b/docs/functions/PayjpCore.init.html index b26ed54c..7f2a93f6 100644 --- a/docs/functions/PayjpCore.init.html +++ b/docs/functions/PayjpCore.init.html @@ -1,4 +1,4 @@ init | payjp-react-native

PAY.JPのSDKの初期設定 カードフォームなどを利用する前にコールする必要があります。

  • Parameters

    • options: InitOption

      オプション

      -

    Returns Promise<void>

+

Returns Promise<void>

diff --git a/docs/functions/TokenFromJSON.html b/docs/functions/TokenFromJSON.html index bb097033..c8cdb3ca 100644 --- a/docs/functions/TokenFromJSON.html +++ b/docs/functions/TokenFromJSON.html @@ -1 +1 @@ -TokenFromJSON | payjp-react-native

Function TokenFromJSON

+TokenFromJSON | payjp-react-native

Function TokenFromJSON

diff --git a/docs/functions/TokenFromJSONTyped.html b/docs/functions/TokenFromJSONTyped.html index e21d87fd..c391eb5e 100644 --- a/docs/functions/TokenFromJSONTyped.html +++ b/docs/functions/TokenFromJSONTyped.html @@ -1 +1 @@ -TokenFromJSONTyped | payjp-react-native

Function TokenFromJSONTyped

  • Parameters

    • json: any
    • ignoreDiscriminator: boolean

    Returns Token

+TokenFromJSONTyped | payjp-react-native

Function TokenFromJSONTyped

  • Parameters

    • json: any
    • ignoreDiscriminator: boolean

    Returns Token

diff --git a/docs/functions/TokenToJSON.html b/docs/functions/TokenToJSON.html index ed627b50..d8e9e2db 100644 --- a/docs/functions/TokenToJSON.html +++ b/docs/functions/TokenToJSON.html @@ -1 +1 @@ -TokenToJSON | payjp-react-native

Function TokenToJSON

+TokenToJSON | payjp-react-native

Function TokenToJSON

diff --git a/docs/functions/instanceOfCardBrand.html b/docs/functions/instanceOfCardBrand.html index 686946f1..649e1fbe 100644 --- a/docs/functions/instanceOfCardBrand.html +++ b/docs/functions/instanceOfCardBrand.html @@ -1 +1 @@ -instanceOfCardBrand | payjp-react-native

Function instanceOfCardBrand

+instanceOfCardBrand | payjp-react-native

Function instanceOfCardBrand

diff --git a/docs/index.html b/docs/index.html index ba93c86c..252f1688 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,4 +1,4 @@ -payjp-react-native

payjp-react-native

React Native Plugin for PAY.JP SDK

npm +payjp-react-native

payjp-react-native

React Native Plugin for PAY.JP SDK

npm Build and Test

オンライン決済サービス「PAY.JP」をReact Nativeアプリケーションに組み込むためのプラグインです。 このプラグインは以下の機能を提供します。

diff --git a/docs/interfaces/Card.html b/docs/interfaces/Card.html index 38cf180e..4fefebe4 100644 --- a/docs/interfaces/Card.html +++ b/docs/interfaces/Card.html @@ -1,5 +1,5 @@ -Card | payjp-react-native

Card

-
interface Card {
    addressCity?: null | string;
    addressLine1?: null | string;
    addressLine2?: null | string;
    addressState?: null | string;
    addressZip?: null | string;
    addressZipCheck?: string;
    brand?: CardBrand;
    country?: null | string;
    created?: number;
    customer?: null | string;
    cvcCheck?: string;
    email?: null | string;
    expMonth?: number;
    expYear?: number;
    fingerprint?: string;
    id: string;
    last4?: string;
    metadata?: object;
    name?: null | string;
    object?: string;
    phone?: null | string;
    threeDSecureStatus?: string;
}

Properties

addressCity? +Card | payjp-react-native

Card

+
interface Card {
    addressCity?: null | string;
    addressLine1?: null | string;
    addressLine2?: null | string;
    addressState?: null | string;
    addressZip?: null | string;
    addressZipCheck?: string;
    brand?: CardBrand;
    country?: null | string;
    created?: number;
    customer?: null | string;
    cvcCheck?: string;
    email?: null | string;
    expMonth?: number;
    expYear?: number;
    fingerprint?: string;
    id: string;
    last4?: string;
    metadata?: object;
    name?: null | string;
    object?: string;
    phone?: null | string;
    threeDSecureStatus?: string;
}

Properties

addressCity?: null | string

市区町村

-

Card

-
addressLine1?: null | string

番地など

-

Card

-
addressLine2?: null | string

建物名など

-

Card

-
addressState?: null | string

都道府県

-

Card

-
addressZip?: null | string

郵便番号

-

Card

-
addressZipCheck?: string

郵便番号存在チェックの結果

-

Card

-
brand?: CardBrand

Card

-
country?: null | string

2桁のISOコード(e.g. JP)

-

Card

-
created?: number

カード作成時のタイムスタンプ

-

Card

-
customer?: null | string

顧客オブジェクトのID

-

Card

-
cvcCheck?: string

CVCコードチェックの結果

-

Card

-
email?: null | string

メールアドレス 2024年8月以降、3Dセキュア認証の際にphoneまたはemailのデータ入力が求められます。

-

Card

-
expMonth?: number

有効期限月

-

Card

-
expYear?: number

有効期限年

-

Card

-
fingerprint?: string

このクレジットカード番号に紐づく値。 同一番号のカードからは同一の値が生成されることが保証されており、 トークン化の度にトークンIDは変わりますが、この値は変わりません。

-

Card

-
id: string

car_で始まり一意なオブジェクトを示す、最大32桁の文字列

-

Card

-
last4?: string

カード番号の下四桁

-

Card

-
metadata?: object

キーバリューの任意データ

-

Card

-
name?: null | string

カード保有者名

-

Card

-
object?: string

\"card\"の固定文字列

-

Card

-
phone?: null | string

E.164形式の電話番号 (e.g. 090-0123-4567(日本) => "+819001234567") 2024年8月以降、3Dセキュア認証の際にphoneまたはemailのデータ入力が求められます。

-

Card

-
threeDSecureStatus?: string

3Dセキュアの実施結果。 加盟店において3Dセキュアが有効でない等未実施の場合null。

-

Card

-
+

Card

+
addressLine1?: null | string

番地など

+

Card

+
addressLine2?: null | string

建物名など

+

Card

+
addressState?: null | string

都道府県

+

Card

+
addressZip?: null | string

郵便番号

+

Card

+
addressZipCheck?: string

郵便番号存在チェックの結果

+

Card

+
brand?: CardBrand

Card

+
country?: null | string

2桁のISOコード(e.g. JP)

+

Card

+
created?: number

カード作成時のタイムスタンプ

+

Card

+
customer?: null | string

顧客オブジェクトのID

+

Card

+
cvcCheck?: string

CVCコードチェックの結果

+

Card

+
email?: null | string

メールアドレス 2024年8月以降、3Dセキュア認証の際にphoneまたはemailのデータ入力が求められます。

+

Card

+
expMonth?: number

有効期限月

+

Card

+
expYear?: number

有効期限年

+

Card

+
fingerprint?: string

このクレジットカード番号に紐づく値。 同一番号のカードからは同一の値が生成されることが保証されており、 トークン化の度にトークンIDは変わりますが、この値は変わりません。

+

Card

+
id: string

car_で始まり一意なオブジェクトを示す、最大32桁の文字列

+

Card

+
last4?: string

カード番号の下四桁

+

Card

+
metadata?: object

キーバリューの任意データ

+

Card

+
name?: null | string

カード保有者名

+

Card

+
object?: string

\"card\"の固定文字列

+

Card

+
phone?: null | string

E.164形式の電話番号 (e.g. 090-0123-4567(日本) => "+819001234567") 2024年8月以降、3Dセキュア認証の際にphoneまたはemailのデータ入力が求められます。

+

Card

+
threeDSecureStatus?: string

3Dセキュアの実施結果。 加盟店において3Dセキュアが有効でない等未実施の場合null。

+

Card

+
diff --git a/docs/interfaces/ErrorResponse.html b/docs/interfaces/ErrorResponse.html index 9bfee9c1..5e2c0996 100644 --- a/docs/interfaces/ErrorResponse.html +++ b/docs/interfaces/ErrorResponse.html @@ -1,4 +1,4 @@ -ErrorResponse | payjp-react-native

Interface ErrorResponse

ErrorResponse

-
interface ErrorResponse {
    error: Error;
}

Properties

Properties

error: Error

ErrorResponse

-
+ErrorResponse | payjp-react-native

Interface ErrorResponse

ErrorResponse

+
interface ErrorResponse {
    error: Error;
}

Properties

Properties

error: Error

ErrorResponse

+
diff --git a/docs/interfaces/ModelError.html b/docs/interfaces/ModelError.html index fea39caa..9be30e73 100644 --- a/docs/interfaces/ModelError.html +++ b/docs/interfaces/ModelError.html @@ -1,8 +1,8 @@ -ModelError | payjp-react-native

Interface ModelError

ModelError

-
interface ModelError {
    code?: string;
    message: string;
    type: string;
}

Properties

code? +ModelError | payjp-react-native

Interface ModelError

ModelError

+
interface ModelError {
    code?: string;
    message: string;
    type: string;
}

Properties

Properties

code?: string

ModelError

-
message: string

ModelError

-
type: string

ModelError

-
+

Properties

code?: string

ModelError

+
message: string

ModelError

+
type: string

ModelError

+
diff --git a/docs/interfaces/Token.html b/docs/interfaces/Token.html index 0b6a5b05..5699ae98 100644 --- a/docs/interfaces/Token.html +++ b/docs/interfaces/Token.html @@ -1,19 +1,19 @@ -Token | payjp-react-native

Token

-
interface Token {
    card: Card;
    created: number;
    id: string;
    livemode: boolean;
    object: string;
    used: boolean;
}

Properties

card +Token | payjp-react-native

Token

+
interface Token {
    card: Card;
    created: number;
    id: string;
    livemode: boolean;
    object: string;
    used: boolean;
}

Properties

card: Card

Token

-
created: number

このトークン作成時のタイムスタンプ

-

Token

-
id: string

tok_で始まる一意なオブジェクトを示す文字列

-

Token

-
livemode: boolean

本番環境かどうか

-

Token

-
object: string

\"token\"の固定文字列

-

Token

-
used: boolean

このトークンが使用済みかどうか

-

Token

-
+

Properties

card: Card

Token

+
created: number

このトークン作成時のタイムスタンプ

+

Token

+
id: string

tok_で始まる一意なオブジェクトを示す文字列

+

Token

+
livemode: boolean

本番環境かどうか

+

Token

+
object: string

\"token\"の固定文字列

+

Token

+
used: boolean

このトークンが使用済みかどうか

+

Token

+
diff --git a/docs/modules.html b/docs/modules.html index 240931e8..ef880435 100644 --- a/docs/modules.html +++ b/docs/modules.html @@ -1,4 +1,4 @@ -payjp-react-native

payjp-react-native

Index

Namespaces

PayjpApplePay +payjp-react-native

payjp-react-native

Index

Namespaces

Interfaces

Card diff --git a/docs/modules/PayjpApplePay.html b/docs/modules/PayjpApplePay.html index b52c1983..f7e0b6e1 100644 --- a/docs/modules/PayjpApplePay.html +++ b/docs/modules/PayjpApplePay.html @@ -1,4 +1,4 @@ -PayjpApplePay | payjp-react-native

Namespace PayjpApplePay

Index

Type Aliases

ApplePayAuthorizationOption +PayjpApplePay | payjp-react-native

Namespace PayjpApplePay

Index

Type Aliases

ApplePayAuthorizationOption ErrorInfo OnApplePayCompleted OnApplePayFailedRequestToken diff --git a/docs/modules/PayjpCardForm.html b/docs/modules/PayjpCardForm.html index 381f772c..66f1e5c3 100644 --- a/docs/modules/PayjpCardForm.html +++ b/docs/modules/PayjpCardForm.html @@ -1,4 +1,4 @@ -PayjpCardForm | payjp-react-native

Namespace PayjpCardForm

Index

Type Aliases

CardFormType +PayjpCardForm | payjp-react-native

Namespace PayjpCardForm

Index

Type Aliases

CardFormType ExtraAttribute IOSCardFormStyle OnCardFormCanceled diff --git a/docs/modules/PayjpCore.html b/docs/modules/PayjpCore.html index 9e7907a8..3eb1a2ca 100644 --- a/docs/modules/PayjpCore.html +++ b/docs/modules/PayjpCore.html @@ -1,2 +1,2 @@ -PayjpCore | payjp-react-native

Namespace PayjpCore

Index

Functions

init +PayjpCore | payjp-react-native

Namespace PayjpCore

Index

Functions

diff --git a/docs/types/CardBrand.html b/docs/types/CardBrand.html index d9bc8f23..503a786f 100644 --- a/docs/types/CardBrand.html +++ b/docs/types/CardBrand.html @@ -1 +1 @@ -CardBrand | payjp-react-native

Type Alias CardBrand

CardBrand: typeof CardBrand[keyof typeof CardBrand]
+CardBrand | payjp-react-native

Type Alias CardBrand

CardBrand: typeof CardBrand[keyof typeof CardBrand]
diff --git a/docs/types/PayjpApplePay.ApplePayAuthorizationOption.html b/docs/types/PayjpApplePay.ApplePayAuthorizationOption.html index 7238fe80..bea05e6a 100644 --- a/docs/types/PayjpApplePay.ApplePayAuthorizationOption.html +++ b/docs/types/PayjpApplePay.ApplePayAuthorizationOption.html @@ -8,5 +8,5 @@
  • Optional ReadonlyrequiredBillingAddress?: boolean

    住所を要求するかどうか

  • ReadonlysummaryItemAmount: string

    表示されるサマリーアイテムの金額

  • ReadonlysummaryItemLabel: string

    表示されるサマリーアイテムの名前

    -
  • +
    diff --git a/docs/types/PayjpApplePay.ErrorInfo.html b/docs/types/PayjpApplePay.ErrorInfo.html index 387bff03..4b994ed6 100644 --- a/docs/types/PayjpApplePay.ErrorInfo.html +++ b/docs/types/PayjpApplePay.ErrorInfo.html @@ -1,2 +1,2 @@ ErrorInfo | payjp-react-native
    ErrorInfo: {
        errorCode: number;
        errorMessage: string;
        errorType: string;
    }

    エラー情報

    -
    +
    diff --git a/docs/types/PayjpApplePay.OnApplePayCompleted.html b/docs/types/PayjpApplePay.OnApplePayCompleted.html index 57c90ce7..198740b6 100644 --- a/docs/types/PayjpApplePay.OnApplePayCompleted.html +++ b/docs/types/PayjpApplePay.OnApplePayCompleted.html @@ -1,2 +1,2 @@ OnApplePayCompleted | payjp-react-native
    OnApplePayCompleted: (() => void)

    Apple Payが完了したときのリスナー

    -
    +
    diff --git a/docs/types/PayjpApplePay.OnApplePayFailedRequestToken.html b/docs/types/PayjpApplePay.OnApplePayFailedRequestToken.html index 1d7f25c0..2ba9fe8e 100644 --- a/docs/types/PayjpApplePay.OnApplePayFailedRequestToken.html +++ b/docs/types/PayjpApplePay.OnApplePayFailedRequestToken.html @@ -1,3 +1,3 @@ OnApplePayFailedRequestToken | payjp-react-native
    OnApplePayFailedRequestToken: ((errorInfo: ErrorInfo) => void)

    トークンのリクエストに失敗したときのリスナー

    Type declaration

      • (errorInfo): void
      • Parameters

        Returns void

    +

    Returns void

    diff --git a/docs/types/PayjpApplePay.OnApplePayProducedToken.html b/docs/types/PayjpApplePay.OnApplePayProducedToken.html index 92d82ca3..c5e91394 100644 --- a/docs/types/PayjpApplePay.OnApplePayProducedToken.html +++ b/docs/types/PayjpApplePay.OnApplePayProducedToken.html @@ -1,3 +1,3 @@ OnApplePayProducedToken | payjp-react-native
    OnApplePayProducedToken: ((token: Token) => void)

    PAY.JPトークンが生成されたときのリスナー

    Type declaration

      • (token): void
      • Parameters

        • token: Token

          PAY.JPトークン

          -

        Returns void

    +

    Returns void

    diff --git a/docs/types/PayjpCardForm.CardFormType.html b/docs/types/PayjpCardForm.CardFormType.html index b9b28c09..8c9af602 100644 --- a/docs/types/PayjpCardForm.CardFormType.html +++ b/docs/types/PayjpCardForm.CardFormType.html @@ -1,2 +1,2 @@ CardFormType | payjp-react-native
    CardFormType: "multiLine" | "cardDisplay"

    カードフォームの表示タイプ

    -
    +
    diff --git a/docs/types/PayjpCardForm.ExtraAttribute.html b/docs/types/PayjpCardForm.ExtraAttribute.html index 5024fd61..fcf8411d 100644 --- a/docs/types/PayjpCardForm.ExtraAttribute.html +++ b/docs/types/PayjpCardForm.ExtraAttribute.html @@ -1,2 +1,2 @@ ExtraAttribute | payjp-react-native
    ExtraAttribute: ExtraAttributeEmail | ExtraAttributePhone

    カードフォームの追加属性

    -
    +
    diff --git a/docs/types/PayjpCardForm.IOSCardFormStyle.html b/docs/types/PayjpCardForm.IOSCardFormStyle.html index cc0c5aae..398b0cf0 100644 --- a/docs/types/PayjpCardForm.IOSCardFormStyle.html +++ b/docs/types/PayjpCardForm.IOSCardFormStyle.html @@ -1,2 +1,2 @@ IOSCardFormStyle | payjp-react-native
    IOSCardFormStyle: {
        errorTextColor?: ColorValue;
        highlightColor?: ColorValue;
        inputFieldBackgroundColor?: ColorValue;
        inputTextColor?: ColorValue;
        labelTextColor?: ColorValue;
        submitButtonColor?: ColorValue;
        tintColor?: ColorValue;
    }

    カードフォームスタイル(iOS用)

    -
    +
    diff --git a/docs/types/PayjpCardForm.OnCardFormCanceled.html b/docs/types/PayjpCardForm.OnCardFormCanceled.html index 65bfdb59..08010815 100644 --- a/docs/types/PayjpCardForm.OnCardFormCanceled.html +++ b/docs/types/PayjpCardForm.OnCardFormCanceled.html @@ -1,2 +1,2 @@ OnCardFormCanceled | payjp-react-native
    OnCardFormCanceled: (() => void)

    カードフォームがキャンセルされたときに実行されるリスナー

    -
    +
    diff --git a/docs/types/PayjpCardForm.OnCardFormCompleted.html b/docs/types/PayjpCardForm.OnCardFormCompleted.html index b10a15d7..61c61e10 100644 --- a/docs/types/PayjpCardForm.OnCardFormCompleted.html +++ b/docs/types/PayjpCardForm.OnCardFormCompleted.html @@ -1,2 +1,2 @@ OnCardFormCompleted | payjp-react-native
    OnCardFormCompleted: (() => void)

    カードフォームが完了したときに実行されるリスナー

    -
    +
    diff --git a/docs/types/PayjpCardForm.OnCardFormProducedToken.html b/docs/types/PayjpCardForm.OnCardFormProducedToken.html index 3ea2028f..695576a8 100644 --- a/docs/types/PayjpCardForm.OnCardFormProducedToken.html +++ b/docs/types/PayjpCardForm.OnCardFormProducedToken.html @@ -1,3 +1,3 @@ OnCardFormProducedToken | payjp-react-native
    OnCardFormProducedToken: ((token: Token) => void)

    カードフォームでトークンが生成されたときに実行されるリスナー

    Type declaration

      • (token): void
      • Parameters

        • token: Token

          PAY.JPトークン

          -

        Returns void

    +

    Returns void

    diff --git a/docs/variables/CardBrand-1.html b/docs/variables/CardBrand-1.html index d03d4eaf..866001dd 100644 --- a/docs/variables/CardBrand-1.html +++ b/docs/variables/CardBrand-1.html @@ -1 +1 @@ -CardBrand | payjp-react-native

    Variable CardBrandConst

    CardBrand: {
        AmericanExpress: "American Express";
        DinersClub: "Diners Club";
        Discover: "Discover";
        Jcb: "JCB";
        MasterCard: "MasterCard";
        Visa: "Visa";
    } = ...
    +CardBrand | payjp-react-native

    Variable CardBrandConst

    CardBrand: {
        AmericanExpress: "American Express";
        DinersClub: "Diners Club";
        Discover: "Discover";
        Jcb: "JCB";
        MasterCard: "MasterCard";
        Visa: "Visa";
    } = ...
    diff --git a/ios/Classes/RNPAY.m b/ios/Classes/RNPAY.m index f6d5db77..ffe40632 100644 --- a/ios/Classes/RNPAY.m +++ b/ios/Classes/RNPAY.m @@ -23,4 +23,4 @@ #import "RNPAY.h" NSString *const RNPAYErrorDomain = @"RNPAYErrorDomain"; -NSString *const RNPAYPluginVersion = @"0.8.9"; +NSString *const RNPAYPluginVersion = @"0.8.10"; diff --git a/package.json b/package.json index cebb9592..27965687 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "payjp-react-native", "description": "A React Native plugin for PAY.JP SDK", - "version": "0.8.9", + "version": "0.8.10", "author": { "name": "PAY.JP", "email": "support@pay.jp",