@redocly/openapi-docs 0.0.0-beta-20240308105737 → 0.0.0-beta-20240308111235
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Redocly OpenAPI Docs
|
|
3
3
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: "0.0.0-beta-
|
|
5
|
+
* Version: "0.0.0-beta-20240308111235"
|
|
6
6
|
*/(function(Uy,ep){typeof exports=="object"&&typeof module=="object"?module.exports=ep(require("null")):typeof define=="function"&&define.amd?define(["null"],ep):typeof exports=="object"?exports.RedoclyOpenAPIDocs=ep(require("null")):Uy.RedoclyOpenAPIDocs=ep(Uy.null)})(this,o8=>(()=>{var Uy={1570:function(U,O,l){"use strict";var I=this&&this.__awaiter||function(W,de,le,Ce){function ie(ve){return ve instanceof le?ve:new le(function(pe){pe(ve)})}return new(le||(le=Promise))(function(ve,pe){function Se(Le){try{ge(Ce.next(Le))}catch(Ze){pe(Ze)}}function me(Le){try{ge(Ce.throw(Le))}catch(Ze){pe(Ze)}}function ge(Le){Le.done?ve(Le.value):ie(Le.value).then(Se,me)}ge((Ce=Ce.apply(W,de||[])).next())})};Object.defineProperty(O,"__esModule",{value:!0}),O.mapTypeToComponent=O.bundleDocument=O.bundleFromString=O.bundle=O.OasVersion=void 0;const F=l(7361),C=l(7311),A=l(5426),w=l(7120),L=l(7382),T=l(2086),k=l(1001),j=l(4417),N=l(2249),R=l(6572),Z=l(7543),Q=l(2042),J=l(1315);var B;(function(W){W.Version2="oas2",W.Version3_0="oas3_0",W.Version3_1="oas3_1"})(B||(O.OasVersion=B={}));function G(W){return I(this,void 0,void 0,function*(){const{ref:de,doc:le,externalRefResolver:Ce=new C.BaseResolver(W.config.resolve),base:ie=null}=W;if(!(de||le))throw new Error(`Document or reference is required.
|
|
7
7
|
`);const ve=le===void 0?yield Ce.resolveDocument(ie,de,!0):le;if(ve instanceof Error)throw ve;return _(Object.assign(Object.assign({document:ve},W),{config:W.config.styleguide,externalRefResolver:Ce}))})}O.bundle=G;function x(W){return I(this,void 0,void 0,function*(){const{source:de,absoluteRef:le,externalRefResolver:Ce=new C.BaseResolver(W.config.resolve)}=W,ie=(0,C.makeDocumentFromString)(de,le||"/");return _(Object.assign(Object.assign({document:ie},W),{externalRefResolver:Ce,config:W.config.styleguide}))})}O.bundleFromString=x;function _(W){return I(this,void 0,void 0,function*(){const{document:de,config:le,customTypes:Ce,externalRefResolver:ie,dereference:ve=!1,skipRedoclyRegistryRefs:pe=!1,removeUnusedComponents:Se=!1,keepUrlRefs:me=!1}=W,ge=(0,T.detectSpec)(de.parsed),Le=(0,T.getMajorSpecVersion)(ge),Ze=le.getRulesForOasVersion(Le),ye=(0,w.normalizeTypes)(le.extendTypes(Ce??(0,T.getTypes)(ge),ge),le),Ve=(0,j.initRules)(Ze,le,"preprocessors",ge),Re=(0,j.initRules)(Ze,le,"decorators",ge),ae={problems:[],oasVersion:ge,refTypes:new Map,visitorsData:{}};Se&&Re.push({severity:"error",ruleId:"remove-unused-components",visitor:Le===T.SpecMajorVersion.OAS2?(0,Q.RemoveUnusedComponents)({}):(0,J.RemoveUnusedComponents)({})});let he=yield(0,C.resolveDocument)({rootDocument:de,rootType:ye.Root,externalRefResolver:ie});Ve.length>0&&((0,L.walkDocument)({document:de,rootType:ye.Root,normalizedVisitors:(0,A.normalizeVisitors)(Ve,ye),resolvedRefMap:he,ctx:ae}),he=yield(0,C.resolveDocument)({rootDocument:de,rootType:ye.Root,externalRefResolver:ie}));const fe=(0,A.normalizeVisitors)([{severity:"error",ruleId:"bundler",visitor:oe(Le,ve,pe,de,he,me)},...Re],ye);return(0,L.walkDocument)({document:de,rootType:ye.Root,normalizedVisitors:fe,resolvedRefMap:he,ctx:ae}),{bundle:de,problems:ae.problems.map(je=>le.addProblemToIgnore(je)),fileDependencies:ie.getFiles(),rootType:ye.Root,refTypes:ae.refTypes,visitorsData:ae.visitorsData}})}O.bundleDocument=_;function V(W,de){switch(de){case T.SpecMajorVersion.OAS3:switch(W){case"Schema":return"schemas";case"Parameter":return"parameters";case"Response":return"responses";case"Example":return"examples";case"RequestBody":return"requestBodies";case"Header":return"headers";case"SecuritySchema":return"securitySchemes";case"Link":return"links";case"Callback":return"callbacks";default:return null}case T.SpecMajorVersion.OAS2:switch(W){case"Schema":return"definitions";case"Parameter":return"parameters";case"Response":return"responses";default:return null}case T.SpecMajorVersion.Async2:switch(W){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}}}O.mapTypeToComponent=V;function oe(W,de,le,Ce,ie,ve){let pe,Se;const me={ref:{leave(Re,ae,he){if(!he.location||he.node===void 0){(0,N.reportUnresolvedRef)(he,ae.report,ae.location);return}if(he.location.source===Ce.source&&he.location.source===ae.location.source&&ae.type.name!=="scalar"&&!de||le&&(0,Z.isRedoclyRegistryURL)(Re.$ref)||ve&&(0,k.isAbsoluteUrl)(Re.$ref))return;const fe=V(ae.type.name,W);fe?de?(Ze(fe,he,ae),Le(Re,he,ae)):(Re.$ref=Ze(fe,he,ae),ge(Re,he,ae)):Le(Re,he,ae)}},Root:{enter(Re,ae){Se=ae.location,W===T.SpecMajorVersion.OAS3?pe=Re.components=Re.components||{}:W===T.SpecMajorVersion.OAS2&&(pe=Re)}}};W===T.SpecMajorVersion.OAS3&&(me.DiscriminatorMapping={leave(Re,ae){for(const he of Object.keys(Re)){const fe=Re[he],je=ae.resolve({$ref:fe});if(!je.location||je.node===void 0){(0,N.reportUnresolvedRef)(je,ae.report,ae.location.child(he));return}const Ie=V("Schema",W);de?Ze(Ie,je,ae):Re[he]=Ze(Ie,je,ae)}}});function ge(Re,ae,he){const fe=(0,C.makeRefId)(he.location.source.absoluteRef,Re.$ref);ie.set(fe,{document:Ce,isRemote:!1,node:ae.node,nodePointer:Re.$ref,resolved:!0})}function Le(Re,ae,he){if(!(0,R.isPlainObject)(ae.node))he.parent[he.key]=ae.node;else{delete Re.$ref;const fe=Object.assign({},ae.node,Re);Object.assign(Re,fe)}}function Ze(Re,ae,he){pe[Re]=pe[Re]||{};const fe=Ve(ae,Re,he);return pe[Re][fe]=ae.node,W===T.SpecMajorVersion.OAS3?`#/components/${Re}/${fe}`:`#/${Re}/${fe}`}function ye(Re,ae,he){var fe;return(0,k.isRef)(Re)&&((fe=he.resolve(Re,Se.absolutePointer).location)===null||fe===void 0?void 0:fe.absolutePointer)===ae.location.absolutePointer?!0:F(Re,ae.node)}function Ve(Re,ae,he){const[fe,je]=[Re.location.source.absoluteRef,Re.location.pointer],Ie=pe[ae];let we="";const He=je.slice(2).split("/").filter(R.isTruthy);for(;He.length>0;)if(we=He.pop()+(we?`-${we}`:""),!Ie||!Ie[we]||ye(Ie[we],Re,he))return we;if(we=(0,k.refBaseName)(fe)+(we?`_${we}`:""),!Ie[we]||ye(Ie[we],Re,he))return we;const ze=we;let Ye=2;for(;Ie[we]&&!ye(Ie[we],Re,he);)we=`${ze}-${Ye}`,Ye++;return Ie[we]||he.report({message:`Two schemas are referenced with the same name but different content. Renamed ${ze} to ${we}.`,location:he.location,forceSeverity:"warn"}),we}return me}},4025:(U,O,l)=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.Config=O.StyleguideConfig=O.AVAILABLE_REGIONS=O.DOMAINS=O.DEFAULT_REGION=O.IGNORE_FILE=void 0;const I=l(1100),F=l(7410),C=l(3490),A=l(6572),w=l(2086),L=l(701),T=l(4742),k=l(1001);O.IGNORE_FILE=".redocly.lint-ignore.yaml";const j=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
|
|
8
8
|
# See https://redoc.ly/docs/cli/ for more information.
|
|
@@ -27,7 +27,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
27
27
|
* Redocly OpenAPI Docs
|
|
28
28
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
29
29
|
* -------------------------------------------------------------
|
|
30
|
-
* Version: "0.0.0-beta-
|
|
30
|
+
* Version: "0.0.0-beta-20240308111235"
|
|
31
31
|
*/(()=>{var Y={818:(x,E,T)=>{var j,C;/**
|
|
32
32
|
* lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9
|
|
33
33
|
* Copyright (C) 2020 Oliver Nightingale
|
|
@@ -11848,4 +11848,4 @@ html body {
|
|
|
11848
11848
|
@media screen and (min-width: ${cr.medium}) {
|
|
11849
11849
|
display: ${({isStacked:e})=>e?"none":"block"};
|
|
11850
11850
|
}
|
|
11851
|
-
`;function PJe({items:e,root:t=!1,routingBasePath:n}){const o=on(aR),a=o?`/${o}/`:"/",{rootItem:c}=HSe(e),u=!t||c?a:n4(e,a),d=(0,x.useMemo)(()=>(0,l.jsxs)(wh,{children:[c&&(0,l.jsx)(sp,{path:`${c.href||a}*`,element:(0,l.jsx)(wK,{items:e})}),(0,l.jsx)(sp,{path:"*",element:(0,l.jsx)(Ch,{to:u,replace:!0})})]}),[c,a,e,u]);return t&&!e.length?(0,l.jsx)(wh,{children:(0,l.jsx)(sp,{path:"*",element:(0,l.jsx)(wK,{items:e})})}):e.length?(0,l.jsx)(l.Fragment,{children:t?d:e.map(f=>(0,l.jsx)(t8,{item:f,routingBasePath:n},f.id))}):null}const PK=(0,x.memo)(PJe);let IK=!0;function IJe({routingBasePath:e,disableLoadingAnimation:t,items:n}){const[o,a]=(0,x.useState)(To&&!IK&&!t);return l9e(o,e),(0,x.useEffect)(()=>{const c=setTimeout(()=>{a(!1)},200);return IK=!1,()=>{clearTimeout(c)}},[]),o?(0,l.jsx)("div",{style:{flex:1,width:"100%"},children:(0,l.jsx)(NCe,{})}):(0,l.jsx)(PK,{root:!0,items:n,routingBasePath:e})}const EJe=(0,x.memo)(IJe);function AJe(e){return e.displayName||e.name||"Component"}var TJe=Object.defineProperty,jJe=Object.defineProperties,kJe=Object.getOwnPropertyDescriptors,XC=Object.getOwnPropertySymbols,EK=Object.prototype.hasOwnProperty,AK=Object.prototype.propertyIsEnumerable,TK=(e,t,n)=>t in e?TJe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,r8=(e,t)=>{for(var n in t||(t={}))EK.call(t,n)&&TK(e,n,t[n]);if(XC)for(var n of XC(t))AK.call(t,n)&&TK(e,n,t[n]);return e},RJe=(e,t)=>jJe(e,kJe(t)),DJe=(e,t)=>{var n={};for(var o in e)EK.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&XC)for(var o of XC(e))t.indexOf(o)<0&&AK.call(e,o)&&(n[o]=e[o]);return n};function $Je(e){const t=n=>{var o=n,{enableRouter:a=!0}=o,c=DJe(o,["enableRouter"]),u,d;const f=(u=c.basePath)!=null?u:"/",p=(d=c.router)!=null?d:"history",{Router:g,routerProps:y}=USe(p,f);return To&&a?(0,x.createElement)(g,RJe(r8({},y),{key:f}),(0,l.jsx)(e,r8({},c))):(0,l.jsx)(e,r8({},c))};return t.displayName=`WithRouter(${AJe(e)})`,t}var LJe=Object.defineProperty,MJe=Object.defineProperties,FJe=Object.getOwnPropertyDescriptors,GC=Object.getOwnPropertySymbols,jK=Object.prototype.hasOwnProperty,kK=Object.prototype.propertyIsEnumerable,RK=(e,t,n)=>t in e?LJe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,NJe=(e,t)=>{for(var n in t||(t={}))jK.call(t,n)&&RK(e,n,t[n]);if(GC)for(var n of GC(t))kK.call(t,n)&&RK(e,n,t[n]);return e},BJe=(e,t)=>MJe(e,FJe(t)),zJe=(e,t)=>{var n={};for(var o in e)jK.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&GC)for(var o of GC(e))t.indexOf(o)<0&&kK.call(e,o)&&(n[o]=e[o]);return n};function QJe(e){return n=>{var o=n,{portalOptions:a}=o,c=zJe(o,["portalOptions"]);const[u,d]=fi(gc),[f,p]=fi(oR),{options:g,versions:y}=on(Mv);(0,x.useEffect)(()=>{a?.layout&&d(a.layout)},[a?.layout,d]),(0,x.useEffect)(()=>{typeof a?.collapsedSidebar=="boolean"&&p(a.collapsedSidebar)},[a?.collapsedSidebar,p]);const[b,S]=fi(iR),[E,D]=fi(aR),$=Ld(),z=So(),X=(0,x.useCallback)(({idx:re})=>{if(re!==void 0){const se=y[re].id;if(To&&se){const{hash:te,pathname:ue,search:ce}=z;$(`${ue}${ce}${te}`.replace(E,se))}S(re)}},[z,$,S,E,y]),{parser:ee}=y?.[b]||{};return(0,x.useEffect)(()=>{ee?.versionPath&&D(ee.versionPath)},[ee?.versionPath,D]),!ee||!y.length?null:(0,l.jsx)(e,BJe(NJe({},c),{options:g,versions:y,layout:u,activeVersionIdx:b,onChangeActiveVersion:X,collapsedSidebar:f,parser:ee}))}}var DK=(e,t,n)=>new Promise((o,a)=>{var c=f=>{try{d(n.next(f))}catch(p){a(p)}},u=f=>{try{d(n.throw(f))}catch(p){a(p)}},d=f=>f.done?o(f.value):Promise.resolve(f.value).then(c,u);d((n=n.apply(e,t)).next())});function $K(e){return"then"in e?e:new Promise(t=>{e.oncomplete=n=>{t(n.target.result)}})}function LK(e){const t=new ArrayBuffer(e.length),n=new Uint8Array(t);for(let o=0,a=e.length;o<a;o++)n[o]=e.charCodeAt(o);return t}const VJe=()=>{var e;const t=LK(atob("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMHjNir5fXx/ZXoaEeXQ5XyxbNJ4YJYczoCRdSkL6NLzw1FHnng5Vfcgk5+bvox9QRYRbuk84mA4f2NhywDbXKECAwEAAQ=="));return $K((e=cR)==null?void 0:e.subtle.importKey("spki",t,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},!0,["verify"]))};function UJe(e){if(window.TextEncoder)return new TextEncoder().encode(e);const t=unescape(encodeURIComponent(e)),n=new Uint8Array(t.length);for(let o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return n}function HJe(e,t){return DK(this,null,function*(){var n;return $K((n=cR)==null?void 0:n.subtle.verify({name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},yield VJe(),LK(atob(t)),UJe(e)))})}function WJe(e,t){return t===!0?!0:Array.isArray(t)&&typeof window<"u"?e==="localhost"||e==="127.0.0.1"||e.endsWith(".localhost")||t.find(n=>n===e||e.endsWith("."+n))?!0:!!t.find(n=>{if(n.indexOf("*")!==n.lastIndexOf("*"))return;const[o,a]=n.split("*");return a&&e.startsWith(o)&&e.endsWith(a)&&a.split(".").length>2}):!1}function ZJe(e){return DK(this,null,function*(){const t=window.location.hostname;if(!e)return t==="localhost"||t==="127.0.0.1"||t.endsWith(".localhost")?{local:!0}:{};const[n,o]=e.split(".");let a;try{if(!(yield HJe(atob(n),o)))return{valid:!1};a=JSON.parse(atob(n))}catch{return{valid:!1,cryptoMissing:!0}}return a.valid=!0,(!a.e||Date.now()/1e3>a.e)&&(a.expired=!0),a.allowed=WJe(t,a.h),a})}var YJe=(e,t,n)=>new Promise((o,a)=>{var c=f=>{try{d(n.next(f))}catch(p){a(p)}},u=f=>{try{d(n.throw(f))}catch(p){a(p)}},d=f=>f.done?o(f.value):Promise.resolve(f.value).then(c,u);d((n=n.apply(e,t)).next())});function XJe(e){const[t,n]=(0,x.useState)({});return(0,x.useEffect)(()=>{function o(){return YJe(this,null,function*(){const a=yield ZJe(e);n(a)})}o()},[e]),{licenseInfo:t,isValid:GJe(t)}}function GJe(e){return e.valid&&e.allowed&&!e.expired||!!e.local}var KJe=Object.defineProperty,JJe=Object.defineProperties,qJe=Object.getOwnPropertyDescriptors,MK=Object.getOwnPropertySymbols,_Je=Object.prototype.hasOwnProperty,eqe=Object.prototype.propertyIsEnumerable,FK=(e,t,n)=>t in e?KJe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tqe=(e,t)=>{for(var n in t||(t={}))_Je.call(t,n)&&FK(e,n,t[n]);if(MK)for(var n of MK(t))eqe.call(t,n)&&FK(e,n,t[n]);return e},rqe=(e,t)=>JJe(e,qJe(t));const nqe=nSe($Je,QJe,x.memo)(({licenseKey:e,onLoaded:t,children:n,options:o,versions:a,layout:c,activeVersionIdx:u,onChangeActiveVersion:d,collapsedSidebar:f,parser:p})=>{var g,y,b,S,E;const D=(0,x.useRef)(null),{isValid:$,licenseInfo:z}=XJe(e);je(()=>{t?.()});const{disableSidebar:X,whiteLabel:ee,hideLogo:re,hideFab:se,scrollYOffset:te,disableLoadingAnimation:ue}=o||{},{flatItems:ce,contentItems:Ae}=WSe({parser:p,options:o}),ke=(y=(g=p.definition)==null?void 0:g.info)==null?void 0:y["x-logo"];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(dv,{}),(0,l.jsxs)(e9e,{className:"redoc-wrap",ref:D,children:[(0,l.jsx)(gSe,{}),!$&&(0,l.jsx)(Y6e,{licenseInfo:z}),(0,l.jsx)(t9e,{whiteLabel:ee,layout:c}),!X&&(0,l.jsxs)(a9e,{hideFab:se,scrollYOffset:te,className:"menu-content",collapsedSidebar:!f,children:[!re&&(0,l.jsx)(qee,{imageUrl:ke?.url,href:ke?.href||((E=(S=(b=p.definition)==null?void 0:b.info)==null?void 0:S.contact)==null?void 0:E.url),altText:ke?.altText,backgroundColor:ke?.backgroundColor}),a.length>1&&(0,l.jsx)(G6e,{versions:a,activeVersionIdx:u,onChange:d}),(0,l.jsx)(O5e,{contentItems:Ae,flatItems:ce,options:o}),(0,l.jsx)(c5e,{items:$?Ae:[]})]}),(0,l.jsxs)(q6e,{className:"api-content",id:"api-content",layout:c===ro.THREE_PANEL?ro.THREE_PANEL:ro.STACKED,collapsedSidebar:f,children:[(0,l.jsx)(EJe,{items:$?Ae:[],routingBasePath:o.routingBasePath,disableLoadingAnimation:ue}),n]})]})]})});function n8({onLoaded:e,children:t,store:n}){var o,a,c;return n?.definition?(0,l.jsx)(V6e,rqe(tqe({},n),{children:(0,l.jsx)(nqe,{onLoaded:e,basePath:(o=n.options)==null?void 0:o.routingBasePath,licenseKey:(a=n.options)==null?void 0:a.licenseKey,enableRouter:(c=n.options)==null?void 0:c.enableRouter,portalOptions:n?.portalOptions,children:t})})):null}function oqe({definition:e,definitionUrl:t,options:n={},activeItemId:o,activeSampleLanguage:a,activeDeepLink:c}){const u=(0,l.jsx)(GM,{definition:e,definitionUrl:t,options:n,activeItemId:o,activeSampleLanguage:a,activeDeepLink:c,children:(0,l.jsx)(n8,{})});return n.disableErrorBoundary?u:(0,l.jsx)(_M,{children:u})}function iqe({definitions:e,options:t={}}){return(0,l.jsx)(_M,{children:(0,l.jsx)(GM,{definitions:e,options:t,children:(0,l.jsx)(n8,{})})})}var aqe=Object.defineProperty,sqe=Object.defineProperties,lqe=Object.getOwnPropertyDescriptors,NK=Object.getOwnPropertySymbols,cqe=Object.prototype.hasOwnProperty,uqe=Object.prototype.propertyIsEnumerable,BK=(e,t,n)=>t in e?aqe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,By=(e,t)=>{for(var n in t||(t={}))cqe.call(t,n)&&BK(e,n,t[n]);if(NK)for(var n of NK(t))uqe.call(t,n)&&BK(e,n,t[n]);return e},dqe=(e,t)=>sqe(e,lqe(t));function fqe(e=ro.THREE_PANEL){const t=tf(Em);sw(Em,dqe(By({},t),{layout:e}))}const zK=Ove(),pqe=zK?(0,G.dirname)(zK)+"/":"";function hqe(e){const t={},n=e.attributes;for(let o=0;o<n.length;o++){const a=n[o];t[a.name]=a.value}return t}function QK(e){const t=hqe(e),n={};for(const o in t){const a=o.replace(/-(.)/g,(c,u)=>u.toUpperCase());n[a]=t[o]}return n}function mqe(e,t=document.querySelector("redoc")){(0,V.a)(t,(0,l.jsx)(n8,{store:e}))}function VK(e,t={},n=mw("redoc")){if(n===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let o,a;if(typeof e=="object"&&"versions"in e){(0,V.s)(n).render((0,x.createElement)(iqe,{definitions:e,options:By(By({},t),QK(n))},["Loading..."]));return}typeof e=="string"?o=e:typeof e=="object"&&(a=e),(0,V.s)(n).render((0,x.createElement)(oqe,{definition:a,definitionUrl:o,options:By(By({},t),QK(n))},["Loading..."]))}function UK(e){Lt.p=e}const gqe="0.0.0-beta-
|
|
11851
|
+
`;function PJe({items:e,root:t=!1,routingBasePath:n}){const o=on(aR),a=o?`/${o}/`:"/",{rootItem:c}=HSe(e),u=!t||c?a:n4(e,a),d=(0,x.useMemo)(()=>(0,l.jsxs)(wh,{children:[c&&(0,l.jsx)(sp,{path:`${c.href||a}*`,element:(0,l.jsx)(wK,{items:e})}),(0,l.jsx)(sp,{path:"*",element:(0,l.jsx)(Ch,{to:u,replace:!0})})]}),[c,a,e,u]);return t&&!e.length?(0,l.jsx)(wh,{children:(0,l.jsx)(sp,{path:"*",element:(0,l.jsx)(wK,{items:e})})}):e.length?(0,l.jsx)(l.Fragment,{children:t?d:e.map(f=>(0,l.jsx)(t8,{item:f,routingBasePath:n},f.id))}):null}const PK=(0,x.memo)(PJe);let IK=!0;function IJe({routingBasePath:e,disableLoadingAnimation:t,items:n}){const[o,a]=(0,x.useState)(To&&!IK&&!t);return l9e(o,e),(0,x.useEffect)(()=>{const c=setTimeout(()=>{a(!1)},200);return IK=!1,()=>{clearTimeout(c)}},[]),o?(0,l.jsx)("div",{style:{flex:1,width:"100%"},children:(0,l.jsx)(NCe,{})}):(0,l.jsx)(PK,{root:!0,items:n,routingBasePath:e})}const EJe=(0,x.memo)(IJe);function AJe(e){return e.displayName||e.name||"Component"}var TJe=Object.defineProperty,jJe=Object.defineProperties,kJe=Object.getOwnPropertyDescriptors,XC=Object.getOwnPropertySymbols,EK=Object.prototype.hasOwnProperty,AK=Object.prototype.propertyIsEnumerable,TK=(e,t,n)=>t in e?TJe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,r8=(e,t)=>{for(var n in t||(t={}))EK.call(t,n)&&TK(e,n,t[n]);if(XC)for(var n of XC(t))AK.call(t,n)&&TK(e,n,t[n]);return e},RJe=(e,t)=>jJe(e,kJe(t)),DJe=(e,t)=>{var n={};for(var o in e)EK.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&XC)for(var o of XC(e))t.indexOf(o)<0&&AK.call(e,o)&&(n[o]=e[o]);return n};function $Je(e){const t=n=>{var o=n,{enableRouter:a=!0}=o,c=DJe(o,["enableRouter"]),u,d;const f=(u=c.basePath)!=null?u:"/",p=(d=c.router)!=null?d:"history",{Router:g,routerProps:y}=USe(p,f);return To&&a?(0,x.createElement)(g,RJe(r8({},y),{key:f}),(0,l.jsx)(e,r8({},c))):(0,l.jsx)(e,r8({},c))};return t.displayName=`WithRouter(${AJe(e)})`,t}var LJe=Object.defineProperty,MJe=Object.defineProperties,FJe=Object.getOwnPropertyDescriptors,GC=Object.getOwnPropertySymbols,jK=Object.prototype.hasOwnProperty,kK=Object.prototype.propertyIsEnumerable,RK=(e,t,n)=>t in e?LJe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,NJe=(e,t)=>{for(var n in t||(t={}))jK.call(t,n)&&RK(e,n,t[n]);if(GC)for(var n of GC(t))kK.call(t,n)&&RK(e,n,t[n]);return e},BJe=(e,t)=>MJe(e,FJe(t)),zJe=(e,t)=>{var n={};for(var o in e)jK.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&GC)for(var o of GC(e))t.indexOf(o)<0&&kK.call(e,o)&&(n[o]=e[o]);return n};function QJe(e){return n=>{var o=n,{portalOptions:a}=o,c=zJe(o,["portalOptions"]);const[u,d]=fi(gc),[f,p]=fi(oR),{options:g,versions:y}=on(Mv);(0,x.useEffect)(()=>{a?.layout&&d(a.layout)},[a?.layout,d]),(0,x.useEffect)(()=>{typeof a?.collapsedSidebar=="boolean"&&p(a.collapsedSidebar)},[a?.collapsedSidebar,p]);const[b,S]=fi(iR),[E,D]=fi(aR),$=Ld(),z=So(),X=(0,x.useCallback)(({idx:re})=>{if(re!==void 0){const se=y[re].id;if(To&&se){const{hash:te,pathname:ue,search:ce}=z;$(`${ue}${ce}${te}`.replace(E,se))}S(re)}},[z,$,S,E,y]),{parser:ee}=y?.[b]||{};return(0,x.useEffect)(()=>{ee?.versionPath&&D(ee.versionPath)},[ee?.versionPath,D]),!ee||!y.length?null:(0,l.jsx)(e,BJe(NJe({},c),{options:g,versions:y,layout:u,activeVersionIdx:b,onChangeActiveVersion:X,collapsedSidebar:f,parser:ee}))}}var DK=(e,t,n)=>new Promise((o,a)=>{var c=f=>{try{d(n.next(f))}catch(p){a(p)}},u=f=>{try{d(n.throw(f))}catch(p){a(p)}},d=f=>f.done?o(f.value):Promise.resolve(f.value).then(c,u);d((n=n.apply(e,t)).next())});function $K(e){return"then"in e?e:new Promise(t=>{e.oncomplete=n=>{t(n.target.result)}})}function LK(e){const t=new ArrayBuffer(e.length),n=new Uint8Array(t);for(let o=0,a=e.length;o<a;o++)n[o]=e.charCodeAt(o);return t}const VJe=()=>{var e;const t=LK(atob("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMHjNir5fXx/ZXoaEeXQ5XyxbNJ4YJYczoCRdSkL6NLzw1FHnng5Vfcgk5+bvox9QRYRbuk84mA4f2NhywDbXKECAwEAAQ=="));return $K((e=cR)==null?void 0:e.subtle.importKey("spki",t,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},!0,["verify"]))};function UJe(e){if(window.TextEncoder)return new TextEncoder().encode(e);const t=unescape(encodeURIComponent(e)),n=new Uint8Array(t.length);for(let o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return n}function HJe(e,t){return DK(this,null,function*(){var n;return $K((n=cR)==null?void 0:n.subtle.verify({name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},yield VJe(),LK(atob(t)),UJe(e)))})}function WJe(e,t){return t===!0?!0:Array.isArray(t)&&typeof window<"u"?e==="localhost"||e==="127.0.0.1"||e.endsWith(".localhost")||t.find(n=>n===e||e.endsWith("."+n))?!0:!!t.find(n=>{if(n.indexOf("*")!==n.lastIndexOf("*"))return;const[o,a]=n.split("*");return a&&e.startsWith(o)&&e.endsWith(a)&&a.split(".").length>2}):!1}function ZJe(e){return DK(this,null,function*(){const t=window.location.hostname;if(!e)return t==="localhost"||t==="127.0.0.1"||t.endsWith(".localhost")?{local:!0}:{};const[n,o]=e.split(".");let a;try{if(!(yield HJe(atob(n),o)))return{valid:!1};a=JSON.parse(atob(n))}catch{return{valid:!1,cryptoMissing:!0}}return a.valid=!0,(!a.e||Date.now()/1e3>a.e)&&(a.expired=!0),a.allowed=WJe(t,a.h),a})}var YJe=(e,t,n)=>new Promise((o,a)=>{var c=f=>{try{d(n.next(f))}catch(p){a(p)}},u=f=>{try{d(n.throw(f))}catch(p){a(p)}},d=f=>f.done?o(f.value):Promise.resolve(f.value).then(c,u);d((n=n.apply(e,t)).next())});function XJe(e){const[t,n]=(0,x.useState)({});return(0,x.useEffect)(()=>{function o(){return YJe(this,null,function*(){const a=yield ZJe(e);n(a)})}o()},[e]),{licenseInfo:t,isValid:GJe(t)}}function GJe(e){return e.valid&&e.allowed&&!e.expired||!!e.local}var KJe=Object.defineProperty,JJe=Object.defineProperties,qJe=Object.getOwnPropertyDescriptors,MK=Object.getOwnPropertySymbols,_Je=Object.prototype.hasOwnProperty,eqe=Object.prototype.propertyIsEnumerable,FK=(e,t,n)=>t in e?KJe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tqe=(e,t)=>{for(var n in t||(t={}))_Je.call(t,n)&&FK(e,n,t[n]);if(MK)for(var n of MK(t))eqe.call(t,n)&&FK(e,n,t[n]);return e},rqe=(e,t)=>JJe(e,qJe(t));const nqe=nSe($Je,QJe,x.memo)(({licenseKey:e,onLoaded:t,children:n,options:o,versions:a,layout:c,activeVersionIdx:u,onChangeActiveVersion:d,collapsedSidebar:f,parser:p})=>{var g,y,b,S,E;const D=(0,x.useRef)(null),{isValid:$,licenseInfo:z}=XJe(e);je(()=>{t?.()});const{disableSidebar:X,whiteLabel:ee,hideLogo:re,hideFab:se,scrollYOffset:te,disableLoadingAnimation:ue}=o||{},{flatItems:ce,contentItems:Ae}=WSe({parser:p,options:o}),ke=(y=(g=p.definition)==null?void 0:g.info)==null?void 0:y["x-logo"];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(dv,{}),(0,l.jsxs)(e9e,{className:"redoc-wrap",ref:D,children:[(0,l.jsx)(gSe,{}),!$&&(0,l.jsx)(Y6e,{licenseInfo:z}),(0,l.jsx)(t9e,{whiteLabel:ee,layout:c}),!X&&(0,l.jsxs)(a9e,{hideFab:se,scrollYOffset:te,className:"menu-content",collapsedSidebar:!f,children:[!re&&(0,l.jsx)(qee,{imageUrl:ke?.url,href:ke?.href||((E=(S=(b=p.definition)==null?void 0:b.info)==null?void 0:S.contact)==null?void 0:E.url),altText:ke?.altText,backgroundColor:ke?.backgroundColor}),a.length>1&&(0,l.jsx)(G6e,{versions:a,activeVersionIdx:u,onChange:d}),(0,l.jsx)(O5e,{contentItems:Ae,flatItems:ce,options:o}),(0,l.jsx)(c5e,{items:$?Ae:[]})]}),(0,l.jsxs)(q6e,{className:"api-content",id:"api-content",layout:c===ro.THREE_PANEL?ro.THREE_PANEL:ro.STACKED,collapsedSidebar:f,children:[(0,l.jsx)(EJe,{items:$?Ae:[],routingBasePath:o.routingBasePath,disableLoadingAnimation:ue}),n]})]})]})});function n8({onLoaded:e,children:t,store:n}){var o,a,c;return n?.definition?(0,l.jsx)(V6e,rqe(tqe({},n),{children:(0,l.jsx)(nqe,{onLoaded:e,basePath:(o=n.options)==null?void 0:o.routingBasePath,licenseKey:(a=n.options)==null?void 0:a.licenseKey,enableRouter:(c=n.options)==null?void 0:c.enableRouter,portalOptions:n?.portalOptions,children:t})})):null}function oqe({definition:e,definitionUrl:t,options:n={},activeItemId:o,activeSampleLanguage:a,activeDeepLink:c}){const u=(0,l.jsx)(GM,{definition:e,definitionUrl:t,options:n,activeItemId:o,activeSampleLanguage:a,activeDeepLink:c,children:(0,l.jsx)(n8,{})});return n.disableErrorBoundary?u:(0,l.jsx)(_M,{children:u})}function iqe({definitions:e,options:t={}}){return(0,l.jsx)(_M,{children:(0,l.jsx)(GM,{definitions:e,options:t,children:(0,l.jsx)(n8,{})})})}var aqe=Object.defineProperty,sqe=Object.defineProperties,lqe=Object.getOwnPropertyDescriptors,NK=Object.getOwnPropertySymbols,cqe=Object.prototype.hasOwnProperty,uqe=Object.prototype.propertyIsEnumerable,BK=(e,t,n)=>t in e?aqe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,By=(e,t)=>{for(var n in t||(t={}))cqe.call(t,n)&&BK(e,n,t[n]);if(NK)for(var n of NK(t))uqe.call(t,n)&&BK(e,n,t[n]);return e},dqe=(e,t)=>sqe(e,lqe(t));function fqe(e=ro.THREE_PANEL){const t=tf(Em);sw(Em,dqe(By({},t),{layout:e}))}const zK=Ove(),pqe=zK?(0,G.dirname)(zK)+"/":"";function hqe(e){const t={},n=e.attributes;for(let o=0;o<n.length;o++){const a=n[o];t[a.name]=a.value}return t}function QK(e){const t=hqe(e),n={};for(const o in t){const a=o.replace(/-(.)/g,(c,u)=>u.toUpperCase());n[a]=t[o]}return n}function mqe(e,t=document.querySelector("redoc")){(0,V.a)(t,(0,l.jsx)(n8,{store:e}))}function VK(e,t={},n=mw("redoc")){if(n===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let o,a;if(typeof e=="object"&&"versions"in e){(0,V.s)(n).render((0,x.createElement)(iqe,{definitions:e,options:By(By({},t),QK(n))},["Loading..."]));return}typeof e=="string"?o=e:typeof e=="object"&&(a=e),(0,V.s)(n).render((0,x.createElement)(oqe,{definition:a,definitionUrl:o,options:By(By({},t),QK(n))},["Loading..."]))}function UK(e){Lt.p=e}const gqe="0.0.0-beta-20240308111235",vqe="f8cfe72afb";function yqe(){const e=mw("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&VK(t,{},e)}To&&UK(pqe),yqe()})(),KC})());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/openapi-docs",
|
|
3
|
-
"version": "0.0.0-beta-
|
|
3
|
+
"version": "0.0.0-beta-20240308111235",
|
|
4
4
|
"description": "Redocly OpenAPI Docs",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-esm/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"openapi-docs": "bin.js"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@redocly/theme": "
|
|
19
|
+
"@redocly/theme": "0.0.0-beta-20240308111235",
|
|
20
20
|
"core-js": "^3.1.4",
|
|
21
21
|
"react": "^18.0.0",
|
|
22
22
|
"react-dom": "^18.0.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"url-template": "^2.0.8",
|
|
49
49
|
"util": "~0.12.5",
|
|
50
50
|
"js-yaml": "4.1.0",
|
|
51
|
-
"@redocly/replay": "0.0.0-beta-
|
|
51
|
+
"@redocly/replay": "0.0.0-beta-20240308111235"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@cfaester/enzyme-adapter-react-18": "0.7.1",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"webpack-cli": "5.1.4",
|
|
101
101
|
"webpack-dev-server": "4.15.1",
|
|
102
102
|
"workerize-loader": "github:redocly/workerize-loader#webpack-5-dist",
|
|
103
|
-
"@redocly/theme": "0.
|
|
103
|
+
"@redocly/theme": "0.0.0-beta-20240308111235"
|
|
104
104
|
},
|
|
105
105
|
"scripts": {
|
|
106
106
|
"start": "webpack serve --mode=development --hot",
|