@redocly/openapi-docs 3.15.0-rc.5 → 3.15.0-rc.6

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
  * @license Redocly OpenAPI Docs
3
3
  * (c) Copyright 2025 Redocly LLC, all rights reserved.
4
4
  * -------------------------------------------------------------
5
- * Version: 3.15.0-rc.4
5
+ * Version: 3.15.0-rc.6
6
6
  **/function SW(e,t){for(var a=0;a<t.length;a++){const r=t[a];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(r,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zW(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var a=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};a.prototype=t.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(a,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}),a}var jW={exports:{}},M0={};/**
7
7
  * @license React
8
8
  * react-jsx-runtime.production.js
@@ -10207,7 +10207,7 @@ ${i.message}`,location:r.child("description")})}}}}),Ipe=e=>({Info:{leave(t){if(
10207
10207
  font-size: var(--page-404-description-font-size);
10208
10208
  line-height: var(--page-404-description-line-height);
10209
10209
  font-weight: var(--page-404-description-font-weight);
10210
- `;async function Pxt(e,t,a){let r;if(a?.skipBundle){if(!e)throw new Error('spec must be specified when using "skipBundleAndConvert"');r=e}else r=await wxt(e||t);try{btt(r)}catch{}return r}const Mxt=({options:e,definitionUrl:t,definition:a,activeSampleLanguage:r,children:n})=>{const[i,o]=K.useState(),[s,l]=K.useState(!0),[c,u]=K.useState(null),[d,p]=K.useState(e||{});K.useEffect(()=>{async function f(){l(!0);try{const b=await xxt();p({...e,...b}),u(await Pxt(a,t,e))}catch(b){o(b.message)}}f()},[a,t,e]);const h=K.useMemo(()=>{if(c)return{definition:c,options:d,definitionUrl:t,activeSampleLanguage:r}},ktt([c,t,d]));return K.useEffect(()=>{h&&l(!1)},[h]),i?g.jsx(zxt,{description:i||"Please check path to your OpenAPI description"}):h?s?yl(e?.hideLoading,!1)?null:g.jsx(Sst,{color:"--loading-spinner-color"}):K.isValidElement(n)?K.cloneElement(n,{store:h}):null:null};function Txt({definition:e,definitionUrl:t,options:a={},activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,router:o}){return g.jsx(Mxt,{definition:e,definitionUrl:t,options:a,activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,children:g.jsx(Zne,{withCommonStyles:!0,router:o||"hash"})})}function _xt(e){const t={},a=e.attributes;for(let r=0;r<a.length;r++){const n=a[r];t[n.name]=n.value}return t}function Ext(e){const t=_xt(e),a={};for(const r in t){const n=r.replace(/-(.)/g,(i,o)=>o.toUpperCase());a[n]=t[r]}return a}function Rxt(e,t=document.querySelector("redoc")){IW.hydrateRoot(t,g.jsx(Zne,{store:e}),{onRecoverableError:(a,r)=>{a.message.includes("Minified React error #418")||console.error(a.message,r)}})}function Zme(e,t={},a=mL("redoc")){if(a===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');const{router:r,...n}=t;let i,o;typeof e=="string"?i=e:typeof e=="object"&&(o=e),IW.createRoot(a).render(K.createElement(Txt,{definition:o,definitionUrl:i,options:{...n,...Ext(a)},router:r??"hash"},["Loading..."]))}const Lxt="3.15.0-rc.4",Bxt="c270f48494";function Nxt(){const e=mL("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&Zme(t,{},e)}Nxt();var Qme={exports:{}};/*!
10210
+ `;async function Pxt(e,t,a){let r;if(a?.skipBundle){if(!e)throw new Error('spec must be specified when using "skipBundleAndConvert"');r=e}else r=await wxt(e||t);try{btt(r)}catch{}return r}const Mxt=({options:e,definitionUrl:t,definition:a,activeSampleLanguage:r,children:n})=>{const[i,o]=K.useState(),[s,l]=K.useState(!0),[c,u]=K.useState(null),[d,p]=K.useState(e||{});K.useEffect(()=>{async function f(){l(!0);try{const b=await xxt();p({...e,...b}),u(await Pxt(a,t,e))}catch(b){o(b.message)}}f()},[a,t,e]);const h=K.useMemo(()=>{if(c)return{definition:c,options:d,definitionUrl:t,activeSampleLanguage:r}},ktt([c,t,d]));return K.useEffect(()=>{h&&l(!1)},[h]),i?g.jsx(zxt,{description:i||"Please check path to your OpenAPI description"}):h?s?yl(e?.hideLoading,!1)?null:g.jsx(Sst,{color:"--loading-spinner-color"}):K.isValidElement(n)?K.cloneElement(n,{store:h}):null:null};function Txt({definition:e,definitionUrl:t,options:a={},activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,router:o}){return g.jsx(Mxt,{definition:e,definitionUrl:t,options:a,activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,children:g.jsx(Zne,{withCommonStyles:!0,router:o||"hash"})})}function _xt(e){const t={},a=e.attributes;for(let r=0;r<a.length;r++){const n=a[r];t[n.name]=n.value}return t}function Ext(e){const t=_xt(e),a={};for(const r in t){const n=r.replace(/-(.)/g,(i,o)=>o.toUpperCase());a[n]=t[r]}return a}function Rxt(e,t=document.querySelector("redoc")){IW.hydrateRoot(t,g.jsx(Zne,{store:e}),{onRecoverableError:(a,r)=>{a.message.includes("Minified React error #418")||console.error(a.message,r)}})}function Zme(e,t={},a=mL("redoc")){if(a===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');const{router:r,...n}=t;let i,o;typeof e=="string"?i=e:typeof e=="object"&&(o=e),IW.createRoot(a).render(K.createElement(Txt,{definition:o,definitionUrl:i,options:{...n,...Ext(a)},router:r??"hash"},["Loading..."]))}const Lxt="3.15.0-rc.6",Bxt="6431c9f0a3";function Nxt(){const e=mL("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&Zme(t,{},e)}Nxt();var Qme={exports:{}};/*!
10211
10211
 
10212
10212
  JSZip v3.10.1 - A JavaScript class for generating and reading zip files
10213
10213
  <http://stuartk.com/jszip>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/openapi-docs",
3
- "version": "3.15.0-rc.5",
3
+ "version": "3.15.0-rc.6",
4
4
  "description": "Redocly OpenAPI Docs",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",