@redocly/replay 0.17.0-next.1 → 0.17.0-next.3

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./replay-index-EhwAJn12.js");async function n(e={}){return typeof e=="object"&&Object.freeze(e),await t.invoke("plugin:dialog|open",{options:e})}exports.open=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./replay-index-CVW-FeP2.js");async function n(e={}){return typeof e=="object"&&Object.freeze(e),await t.invoke("plugin:dialog|open",{options:e})}exports.open=n;
@@ -1,4 +1,4 @@
1
- "use strict";var UE=Object.defineProperty;var ZE=(u,e,a)=>e in u?UE(u,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):u[e]=a;var Ou=(u,e,a)=>ZE(u,typeof e!="symbol"?e+"":e,a);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("./replay-index-EhwAJn12.js");async function YE(u){const{descriptionPath:e,externalRefResolver:a,base:i}=u,r=await X.bundle({base:i,ref:e,config:u.config,dereference:!0,externalRefResolver:a});if(!r)throw new Error(`Could not find source description file '${e}'.`);return r.bundle.parsed}function ht(u){var a;if(typeof u!="object")return;const e=Object.keys(u)[0];return e?(a=u[e])==null?void 0:a.value:void 0}const{env:ce={},argv:pt=[],platform:QE=""}=typeof process>"u"?{}:process,XE="NO_COLOR"in ce||pt.includes("--no-color"),u5="FORCE_COLOR"in ce||pt.includes("--color"),e5=QE==="win32",a5=ce.TERM==="dumb",i5=X.tty&&void 0,r5="CI"in ce&&("GITHUB_ACTIONS"in ce||"GITLAB_CI"in ce||"CIRCLECI"in ce),n5=!XE&&(u5||e5&&!a5||i5||r5),gt=(u,e,a,i,r=e.substring(0,u)+i,n=e.substring(u+a.length),o=n.indexOf(a))=>r+(o<0?n:gt(o,n,a,i)),o5=(u,e,a,i,r)=>u<0?a+e+i:a+gt(u,e,i,r)+i,t5=(u,e,a=u,i=u.length+1)=>r=>r||!(r===""||r===void 0)?o5((""+r).indexOf(e,i),r,u,e,a):"",nu=(u,e,a)=>t5(`\x1B[${u}m`,`\x1B[${e}m`,a),n1={reset:nu(0,0),bold:nu(1,22,"\x1B[22m\x1B[1m"),dim:nu(2,22,"\x1B[22m\x1B[2m"),italic:nu(3,23),underline:nu(4,24),inverse:nu(7,27),hidden:nu(8,28),strikethrough:nu(9,29),black:nu(30,39),red:nu(31,39),green:nu(32,39),yellow:nu(33,39),blue:nu(34,39),magenta:nu(35,39),cyan:nu(36,39),white:nu(37,39),gray:nu(90,39),bgBlack:nu(40,49),bgRed:nu(41,49),bgGreen:nu(42,49),bgYellow:nu(43,49),bgBlue:nu(44,49),bgMagenta:nu(45,49),bgCyan:nu(46,49),bgWhite:nu(47,49),blackBright:nu(90,39),redBright:nu(91,39),greenBright:nu(92,39),yellowBright:nu(93,39),blueBright:nu(94,39),magentaBright:nu(95,39),cyanBright:nu(96,39),whiteBright:nu(97,39),bgBlackBright:nu(100,49),bgRedBright:nu(101,49),bgGreenBright:nu(102,49),bgYellowBright:nu(103,49),bgBlueBright:nu(104,49),bgMagentaBright:nu(105,49),bgCyanBright:nu(106,49),bgWhiteBright:nu(107,49)},s5=({useColor:u=n5}={})=>u?n1:Object.keys(n1).reduce((e,a)=>({...e,[a]:String}),{}),{reset:F3u,bold:W0,dim:l5,italic:k3u,underline:E5,inverse:Ct,hidden:h3u,strikethrough:p3u,black:g3u,red:mu,green:Fa,yellow:q0,blue:fu,magenta:C3u,cyan:v3u,white:o1,gray:yu,bgBlack:b3u,bgRed:li,bgGreen:B3u,bgYellow:A3u,bgBlue:f3u,bgMagenta:y3u,bgCyan:z3u,bgWhite:S3u,blackBright:M3u,redBright:j3u,greenBright:P3u,yellowBright:w3u,blueBright:K3u,magentaBright:T3u,cyanBright:L3u,whiteBright:N3u,bgBlackBright:R3u,bgRedBright:H3u,bgGreenBright:G3u,bgYellowBright:_3u,bgBlueBright:$3u,bgMagentaBright:V3u,bgCyanBright:J3u,bgWhiteBright:O3u}=s5(),D5=u=>/\{.*?\}/.test(u);function g0({value:u,ctx:e,logger:a}){if(!u)return u;if(typeof u=="object"){for(const i in u)u[i]=g0({value:u[i],ctx:e,logger:a});return u}return typeof u=="number"||typeof u=="boolean"?u:u.toString().startsWith("$faker.")?ka({pointer:u.slice(1),ctx:e,logger:a}):D5(u)?d5(u,e,a):F5(u,e,a)}function x5(u,e,a){const i=u.indexOf("{");if(i!==-1){const n=u.substring(i+1).slice(0,-1),o=ka({pointer:n.slice(1),ctx:e,logger:a});return o&&u.replace(/{(.*)}/,o)}else return u}function c5(u,e){const a=Object.keys(e),i=Object.values(e);return new Function(...a,`return ${u}`)(...i)}function d5(u,e,a){const i=/\{\$(\{[^{}]*\}|[^{}])*\}/g;let r=u;return r=r.replace(i,(n,o)=>m5(n,e,a)),r}function m5(u,e,a){if(!u.includes("$"))return u;if(u.includes("$faker."))return x5(u,e,a);const i=oa(e)(k5(u));return i!==void 0?i:""}const F5=(u,e,a)=>{if(!u)return u;const i=u.toString();if(!i.includes("$"))return u;if(i.startsWith("$file(")&&i.endsWith(")"))return i.slice(7,-2);if(i.startsWith("$sourceDescriptions.")&&i.includes(".workflows.")){const r=i.split("."),n=r[1],o=r[3];if(!n||!o)return;const s=oa(e)("$sourceDescriptions");return s[n]?s[n].workflows.find(t=>t.workflowId===o):void 0}return i&&i.trim().startsWith("faker.")?ka({pointer:i,ctx:e,logger:a}):i?oa(e)(t1(i)):i.replace(/\$\{([^}]+)}/g,(r,n)=>oa(e)(t1(n)))};function k5(u){return u.replace(/\{(.*)\}/,"$1")}function t1(u){return u.replace(/\['(.*?)'\]/g,".$1")}const oa=(u,e="")=>a=>{if(e||(e=a),!a)return u;const[i,...r]=a.split(".");if(!u)throw Error(`Cannot get ${mu(i)} from ${mu(e)}`);if((u==null?void 0:u[i])===void 0){const n=` Undefined ${mu(i)} at ${mu(e)}.`,o=Object.keys(u).length?`Did you mean to use another key? Available keys:
1
+ "use strict";var UE=Object.defineProperty;var ZE=(u,e,a)=>e in u?UE(u,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):u[e]=a;var Ou=(u,e,a)=>ZE(u,typeof e!="symbol"?e+"":e,a);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("./replay-index-CVW-FeP2.js");async function YE(u){const{descriptionPath:e,externalRefResolver:a,base:i}=u,r=await X.bundle({base:i,ref:e,config:u.config,dereference:!0,externalRefResolver:a});if(!r)throw new Error(`Could not find source description file '${e}'.`);return r.bundle.parsed}function ht(u){var a;if(typeof u!="object")return;const e=Object.keys(u)[0];return e?(a=u[e])==null?void 0:a.value:void 0}const{env:ce={},argv:pt=[],platform:QE=""}=typeof process>"u"?{}:process,XE="NO_COLOR"in ce||pt.includes("--no-color"),u5="FORCE_COLOR"in ce||pt.includes("--color"),e5=QE==="win32",a5=ce.TERM==="dumb",i5=X.tty&&void 0,r5="CI"in ce&&("GITHUB_ACTIONS"in ce||"GITLAB_CI"in ce||"CIRCLECI"in ce),n5=!XE&&(u5||e5&&!a5||i5||r5),gt=(u,e,a,i,r=e.substring(0,u)+i,n=e.substring(u+a.length),o=n.indexOf(a))=>r+(o<0?n:gt(o,n,a,i)),o5=(u,e,a,i,r)=>u<0?a+e+i:a+gt(u,e,i,r)+i,t5=(u,e,a=u,i=u.length+1)=>r=>r||!(r===""||r===void 0)?o5((""+r).indexOf(e,i),r,u,e,a):"",nu=(u,e,a)=>t5(`\x1B[${u}m`,`\x1B[${e}m`,a),n1={reset:nu(0,0),bold:nu(1,22,"\x1B[22m\x1B[1m"),dim:nu(2,22,"\x1B[22m\x1B[2m"),italic:nu(3,23),underline:nu(4,24),inverse:nu(7,27),hidden:nu(8,28),strikethrough:nu(9,29),black:nu(30,39),red:nu(31,39),green:nu(32,39),yellow:nu(33,39),blue:nu(34,39),magenta:nu(35,39),cyan:nu(36,39),white:nu(37,39),gray:nu(90,39),bgBlack:nu(40,49),bgRed:nu(41,49),bgGreen:nu(42,49),bgYellow:nu(43,49),bgBlue:nu(44,49),bgMagenta:nu(45,49),bgCyan:nu(46,49),bgWhite:nu(47,49),blackBright:nu(90,39),redBright:nu(91,39),greenBright:nu(92,39),yellowBright:nu(93,39),blueBright:nu(94,39),magentaBright:nu(95,39),cyanBright:nu(96,39),whiteBright:nu(97,39),bgBlackBright:nu(100,49),bgRedBright:nu(101,49),bgGreenBright:nu(102,49),bgYellowBright:nu(103,49),bgBlueBright:nu(104,49),bgMagentaBright:nu(105,49),bgCyanBright:nu(106,49),bgWhiteBright:nu(107,49)},s5=({useColor:u=n5}={})=>u?n1:Object.keys(n1).reduce((e,a)=>({...e,[a]:String}),{}),{reset:F3u,bold:W0,dim:l5,italic:k3u,underline:E5,inverse:Ct,hidden:h3u,strikethrough:p3u,black:g3u,red:mu,green:Fa,yellow:q0,blue:fu,magenta:C3u,cyan:v3u,white:o1,gray:yu,bgBlack:b3u,bgRed:li,bgGreen:B3u,bgYellow:A3u,bgBlue:f3u,bgMagenta:y3u,bgCyan:z3u,bgWhite:S3u,blackBright:M3u,redBright:j3u,greenBright:P3u,yellowBright:w3u,blueBright:K3u,magentaBright:T3u,cyanBright:L3u,whiteBright:N3u,bgBlackBright:R3u,bgRedBright:H3u,bgGreenBright:G3u,bgYellowBright:_3u,bgBlueBright:$3u,bgMagentaBright:V3u,bgCyanBright:J3u,bgWhiteBright:O3u}=s5(),D5=u=>/\{.*?\}/.test(u);function g0({value:u,ctx:e,logger:a}){if(!u)return u;if(typeof u=="object"){for(const i in u)u[i]=g0({value:u[i],ctx:e,logger:a});return u}return typeof u=="number"||typeof u=="boolean"?u:u.toString().startsWith("$faker.")?ka({pointer:u.slice(1),ctx:e,logger:a}):D5(u)?d5(u,e,a):F5(u,e,a)}function x5(u,e,a){const i=u.indexOf("{");if(i!==-1){const n=u.substring(i+1).slice(0,-1),o=ka({pointer:n.slice(1),ctx:e,logger:a});return o&&u.replace(/{(.*)}/,o)}else return u}function c5(u,e){const a=Object.keys(e),i=Object.values(e);return new Function(...a,`return ${u}`)(...i)}function d5(u,e,a){const i=/\{\$(\{[^{}]*\}|[^{}])*\}/g;let r=u;return r=r.replace(i,(n,o)=>m5(n,e,a)),r}function m5(u,e,a){if(!u.includes("$"))return u;if(u.includes("$faker."))return x5(u,e,a);const i=oa(e)(k5(u));return i!==void 0?i:""}const F5=(u,e,a)=>{if(!u)return u;const i=u.toString();if(!i.includes("$"))return u;if(i.startsWith("$file(")&&i.endsWith(")"))return i.slice(7,-2);if(i.startsWith("$sourceDescriptions.")&&i.includes(".workflows.")){const r=i.split("."),n=r[1],o=r[3];if(!n||!o)return;const s=oa(e)("$sourceDescriptions");return s[n]?s[n].workflows.find(t=>t.workflowId===o):void 0}return i&&i.trim().startsWith("faker.")?ka({pointer:i,ctx:e,logger:a}):i?oa(e)(t1(i)):i.replace(/\$\{([^}]+)}/g,(r,n)=>oa(e)(t1(n)))};function k5(u){return u.replace(/\{(.*)\}/,"$1")}function t1(u){return u.replace(/\['(.*?)'\]/g,".$1")}const oa=(u,e="")=>a=>{if(e||(e=a),!a)return u;const[i,...r]=a.split(".");if(!u)throw Error(`Cannot get ${mu(i)} from ${mu(e)}`);if((u==null?void 0:u[i])===void 0){const n=` Undefined ${mu(i)} at ${mu(e)}.`,o=Object.keys(u).length?`Did you mean to use another key? Available keys:
2
2
  ${Object.keys(u).join(", ")}.
3
3
  `:"",s=`${n} ${o}`;throw Error(s)}return oa(u[i],e)(r.join("."))};function ka({pointer:u,ctx:e,logger:a}){const i=u.split("."),r={ctx:{faker:e.$faker}};try{const n=i.map(o=>o.trim()).map((o,s)=>o.endsWith(")")?`${s==0?"":"."}${o}`:`["${o}"]`).join("");return c5(`ctx${n}`,r)}catch(n){a.error(mu(n.toString()));return}}function vt(u,e,a){if(typeof u=="string"&&u)return g0({value:u,ctx:e,logger:a});if(!(typeof u=="string"||typeof u=="number"||typeof u=="boolean"||typeof u>"u"||u instanceof Blob||u===null))for(const i in u)typeof u[i]=="string"?u[i]&&(u[i]=g0({value:u[i],ctx:e,logger:a})):vt(u[i],e,a)}function s1(u,e,a){return vt(u,e,a)||u}function l1(u,e){if(!u)return;const a={};for(const i in e)a[`{${i}}`]=String(e[i]);return u.split(/(\{[a-zA-Z0-9_.-]+\}+)/g).map(i=>a[i]?a[i]:i).join("")}function h5(u){return typeof u=="object"&&u!==null&&"name"in u&&"value"in u&&!("in"in u)}function an(u){return typeof u=="object"&&u!==null&&"in"in u&&["header","query","path","cookie"].includes(u.in)}const p5=/^image\/(png|jpeg|gif|bmp|webp|svg\+xml)|application\/pdf$/;function bt(u){return u.startsWith("$file(")&&u.endsWith(")")?u.substring(7,u.length-2):u}const E1=async(u,e,a,i,r)=>{const n=X.pathBrowserify.dirname(i),o=X.pathBrowserify.resolve(n,bt(a));u.append(e,await r.options.requestFileLoader.getFileBody(o))},Bt=(u,e,a,i,r,n)=>{Object.entries(a).forEach(([o,s])=>{const t=n?`${n}[${o}]`:o;typeof s=="string"&&s.startsWith("$file(")&&s.endsWith(")")?u.push(E1(e,t,s,i,r)):Array.isArray(s)?s.forEach(l=>{typeof l=="string"&&l.startsWith("$file(")&&l.endsWith(")")?u.push(E1(e,t,l,i,r)):e.append(t,l.toString())}):typeof s=="object"&&s!==null?Bt(u,e,s,i,r,t):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&e.append(t,s.toString())})},g5=async(u,e,a,i)=>{if(u&&typeof u=="object"&&!Array.isArray(u)){const r=[];Bt(r,e,u,a,i),await Promise.all(r)}},C5=async(u,e)=>{if(typeof u=="string"&&u.startsWith("$file(")&&u.endsWith(")")){const a=X.pathBrowserify.resolve(X.pathBrowserify.dirname(e.options.filePath),bt(u));return e.options.requestFileLoader.getFileBody(a)}else return u};async function v5(u,e){if(!u)return{payload:void 0,contentType:void 0,encoding:void 0,replacements:void 0};const{payload:a,contentType:i}=u;if(i==="multipart/form-data"){const r=new FormData,n=X.pathBrowserify.resolve(e.options.filePath);return await g5(a,r,n,e),{...u,payload:r}}else{if(i==="application/octet-stream"||typeof i=="string"&&p5.test(i))return{...u,payload:await C5(a,e),contentType:"application/octet-stream"};if(i==="application/x-www-form-urlencoded"&&typeof a=="string")return{...u,payload:Object.fromEntries(new URLSearchParams(a).entries()),contentType:"application/x-www-form-urlencoded"}}return u}function b5(u,e){function a(){this.constructor=u}a.prototype=e.prototype,u.prototype=new a}function Ke(u,e,a,i){this.message=u,this.expected=e,this.found=a,this.location=i,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Ke)}b5(Ke,Error);Ke.buildMessage=function(u,e){var a={literal:function(l){return'"'+r(l.text)+'"'},class:function(l){var E="",D;for(D=0;D<l.parts.length;D++)E+=l.parts[D]instanceof Array?n(l.parts[D][0])+"-"+n(l.parts[D][1]):n(l.parts[D]);return"["+(l.inverted?"^":"")+E+"]"},any:function(l){return"any character"},end:function(l){return"end of input"},other:function(l){return l.description}};function i(l){return l.charCodeAt(0).toString(16).toUpperCase()}function r(l){return l.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(E){return"\\x0"+i(E)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(E){return"\\x"+i(E)})}function n(l){return l.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(E){return"\\x0"+i(E)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(E){return"\\x"+i(E)})}function o(l){return a[l.type](l)}function s(l){var E=new Array(l.length),D,x;for(D=0;D<l.length;D++)E[D]=o(l[D]);if(E.sort(),E.length>0){for(D=1,x=1;D<E.length;D++)E[D-1]!==E[D]&&(E[x]=E[D],x++);E.length=x}switch(E.length){case 1:return E[0];case 2:return E[0]+" or "+E[1];default:return E.slice(0,-1).join(", ")+", or "+E[E.length-1]}}function t(l){return l?'"'+r(l)+'"':"end of input"}return"Expected "+s(u)+" but "+t(e)+" found."};function B5(u,e){e=e!==void 0?e:{};var a={},i={Start:Zo},r=Zo,n="&&",o=eu("&&",!1),s="||",t=eu("||",!1),l="!",E=eu("!",!1),D="==",x=eu("==",!1),d="!=",F=eu("!=",!1),p="<=",C=eu("<=",!1),c="<",k=eu("<",!1),B=">=",A=eu(">=",!1),z=">",j=eu(">",!1),R="{",q=eu("{",!1),J="}",Y=eu("}",!1),W="$url",H=eu("$url",!1),$="$method",U=eu("$method",!1),iu="$statusCode",su=eu("$statusCode",!1),Du="$request.",du=eu("$request.",!1),wu="$response.",T=eu("$response.",!1),f="$inputs.",K=eu("$inputs.",!1),M="$steps.",g=eu("$steps.",!1),b="$workflows.",w=eu("$workflows.",!1),_="$sourceDescriptions.",O=eu("$sourceDescriptions.",!1),G="$components.",Q=eu("$components.",!1),Eu="$components.parameters.",Ju=eu("$components.parameters.",!1),A0="$outputs.",Y0=eu("$outputs.",!1),qu=".",Uu=eu(".",!1),o0="outputs.",f0=eu("outputs.",!1),y0="header.",Q0=eu("header.",!1),z0="query.",X0=eu("query.",!1),t0="path.",S0=eu("path.",!1),ve="body",ue=eu("body",!1),Ie="#",Ra=eu("#",!1),Ha="/",Zi=eu("/",!1),xE=/^[!-.0-9A-Z_a-z]/,cE=m0([["!","."],["0","9"],["A","Z"],"_",["a","z"]],!1,!1),dE="~",mE=eu("~",!1),zo="0",So=eu("0",!1),FE="1",kE=eu("1",!1),hE=/^[a-zA-Z]/,pE=m0([["a","z"],["A","Z"]],!1,!1),Mo=/^[a-zA-Z0-9_\-]/,jo=m0([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),Po=/^[!#$%&'*+\-.\^_`|~a-zA-Z0-9\-]/,wo=m0(["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~",["a","z"],["A","Z"],["0","9"],"-"],!1,!1),gE="[",CE=eu("[",!1),vE="]",bE=eu("]",!1),BE=/^[1-9]/,AE=m0([["1","9"]],!1,!1),Ga=/^[0-9]/,_a=m0([["0","9"]],!1,!1),Ko='"',To=eu('"',!1),Lo=/^[^"]/,No=m0(['"'],!0,!1),Ro="'",Ho=eu("'",!1),Go=/^[^']/,_o=m0(["'"],!0,!1),$o="true",fE=eu("true",!1),Vo="false",yE=eu("false",!1),Jo="null",zE=eu("null",!1),Oo="undefined",SE=eu("undefined",!1),Io=/^[ \t\r\n]/,Wo=m0([" "," ","\r",`
4
4
  `],!1,!1),h=0,$a=[{line:1,column:1}],s0=0,Yi=[],Va;if("startRule"in e){if(!(e.startRule in i))throw new Error(`Can't start parsing from rule "`+e.startRule+'".');r=i[e.startRule]}function eu(m,v){return{type:"literal",text:m,ignoreCase:v}}function m0(m,v,y){return{type:"class",parts:m,inverted:v,ignoreCase:y}}function ME(){return{type:"end"}}function qo(m){var v=$a[m],y;if(v)return v;for(y=m-1;!$a[y];)y--;for(v=$a[y],v={line:v.line,column:v.column};y<m;)u.charCodeAt(y)===10?(v.line++,v.column=1):v.column++,y++;return $a[m]=v,v}function Uo(m,v){var y=qo(m),S=qo(v);return{start:{offset:m,line:y.line,column:y.column},end:{offset:v,line:S.line,column:S.column}}}function N(m){h<s0||(h>s0&&(s0=h,Yi=[]),Yi.push(m))}function jE(m,v,y){return new Ke(Ke.buildMessage(m,v),m,v,y)}function Zo(){var m;return m=Yo(),m}function Yo(){var m,v,y,S,L,ru,Bu,Cu;if(m=h,v=Qi(),v!==a){for(y=[],S=h,L=Hu(),L!==a?(ru=Qo(),ru!==a?(Bu=Hu(),Bu!==a?(Cu=Qi(),Cu!==a?(L=[L,ru,Bu,Cu],S=L):(h=S,S=a)):(h=S,S=a)):(h=S,S=a)):(h=S,S=a);S!==a;)y.push(S),S=h,L=Hu(),L!==a?(ru=Qo(),ru!==a?(Bu=Hu(),Bu!==a?(Cu=Qi(),Cu!==a?(L=[L,ru,Bu,Cu],S=L):(h=S,S=a)):(h=S,S=a)):(h=S,S=a)):(h=S,S=a);y!==a?(v=[v,y],m=v):(h=m,m=a)}else h=m,m=a;return m}function Qo(){var m;return u.substr(h,2)===n?(m=n,h+=2):(m=a,N(o)),m===a&&(u.substr(h,2)===s?(m=s,h+=2):(m=a,N(t)),m===a&&(u.charCodeAt(h)===33?(m=l,h++):(m=a,N(E)))),m}function Xo(){var m;return u.substr(h,2)===D?(m=D,h+=2):(m=a,N(x)),m===a&&(u.substr(h,2)===d?(m=d,h+=2):(m=a,N(F)),m===a&&(u.substr(h,2)===p?(m=p,h+=2):(m=a,N(C)),m===a&&(u.charCodeAt(h)===60?(m=c,h++):(m=a,N(k)),m===a&&(u.substr(h,2)===B?(m=B,h+=2):(m=a,N(A)),m===a&&(u.charCodeAt(h)===62?(m=z,h++):(m=a,N(j))))))),m}function Qi(){var m,v,y,S,L,ru,Bu,Cu;if(m=h,v=Xi(),v===a&&(v=Ja(),v===a&&(v=ir())),v!==a)if(y=Hu(),y!==a){for(S=[],L=h,ru=Xo(),ru!==a?(Bu=Hu(),Bu!==a?(Cu=Xi(),Cu===a&&(Cu=Ja(),Cu===a&&(Cu=ir())),Cu!==a?(ru=[ru,Bu,Cu],L=ru):(h=L,L=a)):(h=L,L=a)):(h=L,L=a);L!==a;)S.push(L),L=h,ru=Xo(),ru!==a?(Bu=Hu(),Bu!==a?(Cu=Xi(),Cu===a&&(Cu=Ja(),Cu===a&&(Cu=ir())),Cu!==a?(ru=[ru,Bu,Cu],L=ru):(h=L,L=a)):(h=L,L=a)):(h=L,L=a);S!==a?(v=[v,y,S],m=v):(h=m,m=a)}else h=m,m=a;else h=m,m=a;return m}function Xi(){var m,v,y,S,L,ru;return m=h,u.charCodeAt(h)===123?(v=R,h++):(v=a,N(q)),v!==a?(y=Hu(),y!==a?(S=Ja(),S!==a?(L=Hu(),L!==a?(u.charCodeAt(h)===125?(ru=J,h++):(ru=a,N(Y)),ru!==a?(v=[v,y,S,L,ru],m=v):(h=m,m=a)):(h=m,m=a)):(h=m,m=a)):(h=m,m=a)):(h=m,m=a),m===a&&(m=h,u.charCodeAt(h)===123?(v=R,h++):(v=a,N(q)),v!==a?(y=Hu(),y!==a?(S=Yo(),S!==a?(L=Hu(),L!==a?(u.charCodeAt(h)===125?(ru=J,h++):(ru=a,N(Y)),ru!==a?(v=[v,y,S,L,ru],m=v):(h=m,m=a)):(h=m,m=a)):(h=m,m=a)):(h=m,m=a)):(h=m,m=a)),m}function Ja(){var m,v,y;return u.substr(h,4)===W?(m=W,h+=4):(m=a,N(H)),m===a&&(u.substr(h,7)===$?(m=$,h+=7):(m=a,N(U)),m===a&&(u.substr(h,11)===iu?(m=iu,h+=11):(m=a,N(su)),m===a&&(m=h,u.substr(h,9)===Du?(v=Du,h+=9):(v=a,N(du)),v!==a?(y=u1(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m===a&&(m=h,u.substr(h,10)===wu?(v=wu,h+=10):(v=a,N(T)),v!==a?(y=u1(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m===a&&(m=h,u.substr(h,8)===f?(v=f,h+=8):(v=a,N(K)),v!==a?(y=ee(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m===a&&(m=PE(),m===a&&(m=h,u.substr(h,7)===M?(v=M,h+=7):(v=a,N(g)),v!==a?(y=wE(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m===a&&(m=h,u.substr(h,11)===b?(v=b,h+=11):(v=a,N(w)),v!==a?(y=KE(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m===a&&(m=h,u.substr(h,20)===_?(v=_,h+=20):(v=a,N(O)),v!==a?(y=ee(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m===a&&(m=h,u.substr(h,12)===G?(v=G,h+=12):(v=a,N(Q)),v!==a?(y=ee(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m===a&&(m=h,u.substr(h,23)===Eu?(v=Eu,h+=23):(v=a,N(Ju)),v!==a?(y=ee(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a)))))))))))),m}function PE(){var m,v,y,S,L;return m=h,u.substr(h,9)===A0?(v=A0,h+=9):(v=a,N(Y0)),v!==a?(y=h,S=ee(),S!==a?(L=er(),L===a&&(L=null),L!==a?(S=[S,L],y=S):(h=y,y=a)):(h=y,y=a),y===a&&(y=ur()),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m}function wE(){var m,v,y,S,L,ru;return m=h,v=be(),v!==a?(u.charCodeAt(h)===46?(y=qu,h++):(y=a,N(Uu)),y!==a?(S=h,u.substr(h,8)===o0?(L=o0,h+=8):(L=a,N(f0)),L!==a?(ru=ur(),ru!==a?(L=[L,ru],S=L):(h=S,S=a)):(h=S,S=a),S===a&&(S=ee()),S!==a?(v=[v,y,S],m=v):(h=m,m=a)):(h=m,m=a)):(h=m,m=a),m}function KE(){var m,v,y,S,L,ru;return m=h,v=be(),v!==a?(u.charCodeAt(h)===46?(y=qu,h++):(y=a,N(Uu)),y!==a?(S=h,u.substr(h,8)===o0?(L=o0,h+=8):(L=a,N(f0)),L!==a?(ru=ur(),ru!==a?(L=[L,ru],S=L):(h=S,S=a)):(h=S,S=a),S===a&&(S=ee()),S!==a?(v=[v,y,S],m=v):(h=m,m=a)):(h=m,m=a)):(h=m,m=a),m}function ur(){var m,v,y;return m=h,v=be(),v!==a?(y=er(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m}function ee(){var m,v,y,S,L,ru,Bu;if(m=h,v=be(),v!==a){for(y=[],S=h,u.charCodeAt(h)===46?(L=qu,h++):(L=a,N(Uu)),L!==a?(ru=Hu(),ru!==a?(Bu=be(),Bu!==a?(L=[L,ru,Bu],S=L):(h=S,S=a)):(h=S,S=a)):(h=S,S=a);S!==a;)y.push(S),S=h,u.charCodeAt(h)===46?(L=qu,h++):(L=a,N(Uu)),L!==a?(ru=Hu(),ru!==a?(Bu=be(),Bu!==a?(L=[L,ru,Bu],S=L):(h=S,S=a)):(h=S,S=a)):(h=S,S=a);y!==a?(v=[v,y],m=v):(h=m,m=a)}else h=m,m=a;return m}function be(){var m;return m=ar(),m===a&&(m=r1()),m}function u1(){var m;return m=TE(),m===a&&(m=LE(),m===a&&(m=NE(),m===a&&(m=RE()))),m}function TE(){var m,v,y;return m=h,u.substr(h,7)===y0?(v=y0,h+=7):(v=a,N(Q0)),v!==a?(y=HE(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m}function LE(){var m,v,y;return m=h,u.substr(h,6)===z0?(v=z0,h+=6):(v=a,N(X0)),v!==a?(y=ar(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m}function NE(){var m,v,y;return m=h,u.substr(h,5)===t0?(v=t0,h+=5):(v=a,N(S0)),v!==a?(y=ar(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m}function RE(){var m,v,y;return m=h,u.substr(h,4)===ve?(v=ve,h+=4):(v=a,N(ue)),v!==a?(y=er(),y===a&&(y=null),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m}function er(){var m,v,y,S;if(m=h,u.charCodeAt(h)===35?(v=Ie,h++):(v=a,N(Ra)),v!==a){for(y=[],S=e1();S!==a;)y.push(S),S=e1();y!==a?(v=[v,y],m=v):(h=m,m=a)}else h=m,m=a;return m}function e1(){var m,v,y,S;if(m=h,u.charCodeAt(h)===47?(v=Ha,h++):(v=a,N(Zi)),v!==a){for(y=[],S=a1(),S===a&&(S=i1());S!==a;)y.push(S),S=a1(),S===a&&(S=i1());y!==a?(v=[v,y],m=v):(h=m,m=a)}else h=m,m=a;return m}function a1(){var m;return xE.test(u.charAt(h))?(m=u.charAt(h),h++):(m=a,N(cE)),m}function i1(){var m,v,y;return m=h,u.charCodeAt(h)===126?(v=dE,h++):(v=a,N(mE)),v!==a?(u.charCodeAt(h)===48?(y=zo,h++):(y=a,N(So)),y===a&&(u.charCodeAt(h)===49?(y=FE,h++):(y=a,N(kE))),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m}function ar(){var m,v,y,S;if(m=h,hE.test(u.charAt(h))?(v=u.charAt(h),h++):(v=a,N(pE)),v!==a){for(y=[],Mo.test(u.charAt(h))?(S=u.charAt(h),h++):(S=a,N(jo));S!==a;)y.push(S),Mo.test(u.charAt(h))?(S=u.charAt(h),h++):(S=a,N(jo));y!==a?(v=[v,y],m=v):(h=m,m=a)}else h=m,m=a;return m}function HE(){var m,v;if(m=[],Po.test(u.charAt(h))?(v=u.charAt(h),h++):(v=a,N(wo)),v!==a)for(;v!==a;)m.push(v),Po.test(u.charAt(h))?(v=u.charAt(h),h++):(v=a,N(wo));else m=a;return m}function ir(){var m;return m=GE(),m===a&&(m=r1(),m===a&&(m=VE(),m===a&&(m=IE(),m===a&&(m=WE(),m===a&&(m=qE()))))),m}function GE(){var m,v,y,S;return m=h,u.charCodeAt(h)===91?(v=gE,h++):(v=a,N(CE)),v!==a?(y=Hu(),y!==a?(u.charCodeAt(h)===93?(S=vE,h++):(S=a,N(bE)),S!==a?(v=[v,y,S],m=v):(h=m,m=a)):(h=m,m=a)):(h=m,m=a),m}function r1(){var m,v,y,S,L;return m=h,v=_E(),v!==a?(y=h,u.charCodeAt(h)===46?(S=qu,h++):(S=a,N(Uu)),S!==a?(L=$E(),L!==a?(S=[S,L],y=S):(h=y,y=a)):(h=y,y=a),y===a&&(y=null),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m}function _E(){var m,v,y,S;if(u.charCodeAt(h)===48?(m=zo,h++):(m=a,N(So)),m===a)if(m=h,BE.test(u.charAt(h))?(v=u.charAt(h),h++):(v=a,N(AE)),v!==a){for(y=[],Ga.test(u.charAt(h))?(S=u.charAt(h),h++):(S=a,N(_a));S!==a;)y.push(S),Ga.test(u.charAt(h))?(S=u.charAt(h),h++):(S=a,N(_a));y!==a?(v=[v,y],m=v):(h=m,m=a)}else h=m,m=a;return m}function $E(){var m,v;if(m=[],Ga.test(u.charAt(h))?(v=u.charAt(h),h++):(v=a,N(_a)),v!==a)for(;v!==a;)m.push(v),Ga.test(u.charAt(h))?(v=u.charAt(h),h++):(v=a,N(_a));else m=a;return m}function VE(){var m;return m=JE(),m===a&&(m=OE()),m}function JE(){var m,v,y,S;if(m=h,u.charCodeAt(h)===34?(v=Ko,h++):(v=a,N(To)),v!==a){for(y=[],Lo.test(u.charAt(h))?(S=u.charAt(h),h++):(S=a,N(No));S!==a;)y.push(S),Lo.test(u.charAt(h))?(S=u.charAt(h),h++):(S=a,N(No));y!==a?(u.charCodeAt(h)===34?(S=Ko,h++):(S=a,N(To)),S!==a?(v=[v,y,S],m=v):(h=m,m=a)):(h=m,m=a)}else h=m,m=a;return m}function OE(){var m,v,y,S;if(m=h,u.charCodeAt(h)===39?(v=Ro,h++):(v=a,N(Ho)),v!==a){for(y=[],Go.test(u.charAt(h))?(S=u.charAt(h),h++):(S=a,N(_o));S!==a;)y.push(S),Go.test(u.charAt(h))?(S=u.charAt(h),h++):(S=a,N(_o));y!==a?(u.charCodeAt(h)===39?(S=Ro,h++):(S=a,N(Ho)),S!==a?(v=[v,y,S],m=v):(h=m,m=a)):(h=m,m=a)}else h=m,m=a;return m}function IE(){var m;return u.substr(h,4)===$o?(m=$o,h+=4):(m=a,N(fE)),m===a&&(u.substr(h,5)===Vo?(m=Vo,h+=5):(m=a,N(yE))),m}function WE(){var m;return u.substr(h,4)===Jo?(m=Jo,h+=4):(m=a,N(zE)),m}function qE(){var m;return u.substr(h,9)===Oo?(m=Oo,h+=9):(m=a,N(SE)),m}function Hu(){var m,v;for(m=[],Io.test(u.charAt(h))?(v=u.charAt(h),h++):(v=a,N(Wo));v!==a;)m.push(v),Io.test(u.charAt(h))?(v=u.charAt(h),h++):(v=a,N(Wo));return m}if(Va=r(),Va!==a&&h===u.length)return Va;throw Va!==a&&h<u.length&&N(ME()),jE(Yi,s0<u.length?u.charAt(s0):null,s0<u.length?Uo(s0,s0+1):Uo(s0,s0))}var A5={SyntaxError:Ke,parse:B5};const f5=X.getDefaultExportFromCjs(A5);function y5(u){try{return f5.parse(u)}catch{throw new Error(`Runtime expression is not valid: ${u}`)}}function z5(u,e){const a=[{pattern:/\$response\.body#\/([\w/]+)/g,ctxFunction:(r,n)=>{var o;return We((o=e.$response)==null?void 0:o.body,n,r)}},{pattern:/\$request\.body#\/([\w/]+)/g,ctxFunction:(r,n)=>{var o;return We((o=e.$request)==null?void 0:o.body,n,r)}},{pattern:/\$outputs\.([\w-]+)#\/([\w/]+)/g,ctxFunction:(r,n,o)=>{var s;return We((s=e.$outputs)==null?void 0:s[n],o,r)}},{pattern:/\$workflows\.([\w-]+)\.outputs\.([\w-]+)#\/([\w/]+)/g,ctxFunction:(r,n,o,s)=>{var t,l,E;return We((E=(l=(t=e.$workflows)==null?void 0:t[n])==null?void 0:l.outputs)==null?void 0:E[o],s,r)}},{pattern:/\$steps\.([\w-]+)\.outputs\.([\w-]+)#\/([\w/]+)/g,ctxFunction:(r,n,o,s)=>{var t,l,E;return We((E=(l=(t=e.$steps)==null?void 0:t[n])==null?void 0:l.outputs)==null?void 0:E[o],s,r)}}];let i=u;for(const{pattern:r,ctxFunction:n}of a)i=i.replaceAll(r,n);return i}function We(u,e,a){if(u)try{const i=X.JsonPointer.get(u,`/${e}`);return typeof i=="string"||Array.isArray(i)||typeof i=="object"?JSON.stringify(i):i!==void 0?i:a}catch{return a}return a}function c0({payload:u,context:e,contentType:a,logger:i}){if(a!=null&&a.includes("application/octet-stream"))return s1(u,e,i);if(a!=null&&a.includes("multipart/form-data")){if(u instanceof FormData){const r=new FormData;for(const[n,o]of u.entries())if(o instanceof File)r.append(n,o);else{const s=c0({payload:o,context:e,logger:i});r.append(n,s)}return r}return s1(u,e,i)}return typeof u=="string"?L5(u)?Fe(u,e,i):T5(u,e,i):X.isPlainObject(u)?Object.entries(u).reduce((r,[n,o])=>(r[n]=c0({payload:o,context:e,logger:i}),r),{}):Array.isArray(u)?u.map(r=>c0({payload:r,context:e,logger:i})):u}function Fe(u,e,a){return typeof u=="string"?S5(u,e,a):X.isPlainObject(u)?Object.entries(u).reduce((i,[r,n])=>(i[r]=n&&Fe(n,e,a),i),{}):Array.isArray(u)?u.map(i=>Fe(i,e,a)):u}function S5(u,e,a){if(/^\$faker\.[a-zA-Z0-9._-]+(\([^\\)]*\))?$/.test(u))return ka({pointer:u.slice(1),ctx:e,logger:a});if(u.includes("$faker.")){const n=/\$faker\.[a-zA-Z0-9._-]+(\([^\\)]*\))?/g;u=u.replace(n,o=>ka({pointer:o.slice(1),ctx:e,logger:a})).replace(/{(.*?)}/g,"$1")}if(!u.includes("$")&&!/[=<>]/.test(u))return u;y5(u);const i=j5(u,e),r=P5(e);try{return new Function(...Object.keys(r),`return ${i};`)(...Object.values(r))}catch{throw new Error(`Error in resolving runtime expression '${u}'.
@@ -1,4 +1,4 @@
1
- import { v as n } from "./replay-index-CH1yz2mo.js";
1
+ import { v as n } from "./replay-index-CKRAlRbe.js";
2
2
  async function r(e = {}) {
3
3
  return typeof e == "object" && Object.freeze(e), await n("plugin:dialog|open", { options: e });
4
4
  }
@@ -1,7 +1,7 @@
1
1
  var a5 = Object.defineProperty;
2
2
  var i5 = (u, e, a) => e in u ? a5(u, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : u[e] = a;
3
3
  var Ju = (u, e, a) => i5(u, typeof e != "symbol" ? e + "" : e, a);
4
- import { b as bt, t as r5, p as Wu, g as fi, J as R0, a as yi, c as mi, d as n5, e as l1, m as o5, f as t5, h as s5, k as Bt, l as l5, n as E5, o as D5, q as x5, u as c5 } from "./replay-index-CH1yz2mo.js";
4
+ import { b as bt, t as r5, p as Wu, g as fi, J as R0, i as yi, a as mi, r as n5, c as l1, m as o5, s as t5, j as s5, f as Bt, d as l5, e as E5, l as D5, h as x5, k as c5 } from "./replay-index-CKRAlRbe.js";
5
5
  async function d5(u) {
6
6
  const { descriptionPath: e, externalRefResolver: a, base: i } = u, r = await bt({
7
7
  base: i,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-EhwAJn12.js");async function v(i,l){const t=e.sep(),a=await e.resolve(i),c=await e.resolve(l),r=a.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),n=c.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),p=Math.min(r.length,n.length);let s=0;for(let o=0;o<p&&r[o]===n[o];o++)s++;const f=r.slice(s).map(()=>".."),g=n.slice(s);return[...f,...g].join(t)}exports.isAbsolute=e.isAbsolute;exports.join=e.join;exports.resolve=e.resolve;exports.relative=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-CVW-FeP2.js");async function v(i,l){const t=e.sep(),a=await e.resolve(i),c=await e.resolve(l),r=a.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),n=c.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),p=Math.min(r.length,n.length);let s=0;for(let o=0;o<p&&r[o]===n[o];o++)s++;const f=r.slice(s).map(()=>".."),g=n.slice(s);return[...f,...g].join(t)}exports.isAbsolute=e.isAbsolute;exports.join=e.join;exports.resolve=e.resolve;exports.relative=v;
@@ -0,0 +1,16 @@
1
+ import { n as h, o as r } from "./replay-index-CKRAlRbe.js";
2
+ import { u as w, q as b } from "./replay-index-CKRAlRbe.js";
3
+ async function x(s, i) {
4
+ const t = h(), l = await r(s), c = await r(i), o = l.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), n = c.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), p = Math.min(o.length, n.length);
5
+ let a = 0;
6
+ for (let e = 0; e < p && o[e] === n[e]; e++)
7
+ a++;
8
+ const f = o.slice(a).map(() => ".."), m = n.slice(a);
9
+ return [...f, ...m].join(t);
10
+ }
11
+ export {
12
+ w as isAbsolute,
13
+ b as join,
14
+ x as relative,
15
+ r as resolve
16
+ };
package/dist/replay.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-EhwAJn12.js");exports.EmbeddedReplay=e.EmbeddedReplay;exports.Modal=e.Modal;exports.Replay=e.Replay;exports.ReplayOverlay=e.ReplayOverlay;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-CVW-FeP2.js");exports.EmbeddedReplay=e.EmbeddedReplay;exports.Modal=e.Modal;exports.Replay=e.Replay;exports.ReplayOverlay=e.ReplayOverlay;
package/dist/replay.d.ts CHANGED
@@ -75,6 +75,7 @@ declare type InputSettings = {
75
75
  storageKey?: string;
76
76
  convertOperationToReplayValue?: ConvertOperationFunction;
77
77
  getOperationUrl?: GetOperationURLFunction;
78
+ onRequestReset?: () => void;
78
79
  telemetry?: {
79
80
  tracerName?: TracerName;
80
81
  collectorUrl?: string;
@@ -546,6 +547,17 @@ export declare type OperationSecurity = {
546
547
  'x-defaultClientSecret'?: string;
547
548
  'x-defaultUsername'?: string;
548
549
  'x-defaultPassword'?: string;
550
+ serverValues?: {
551
+ [serverUrl: string]: {
552
+ 'x-defaultAccessToken'?: string;
553
+ 'x-defaultTokenType'?: string;
554
+ 'x-defaultClientId'?: string;
555
+ 'x-defaultClientSecret'?: string;
556
+ 'x-defaultUsername'?: string;
557
+ 'x-defaultPassword'?: string;
558
+ scopes?: string[];
559
+ };
560
+ };
549
561
  };
550
562
 
551
563
  declare interface ParsedDescription {
package/dist/replay.js CHANGED
@@ -1,4 +1,4 @@
1
- import { E as l, M as d, R as p, w as s } from "./replay-index-CH1yz2mo.js";
1
+ import { E as l, M as d, R as p, w as s } from "./replay-index-CKRAlRbe.js";
2
2
  export {
3
3
  l as EmbeddedReplay,
4
4
  d as Modal,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/replay",
3
- "version": "0.17.0-next.1",
3
+ "version": "0.17.0-next.3",
4
4
  "type": "module",
5
5
  "main": "./dist/replay.cjs",
6
6
  "module": "./dist/replay.js",
@@ -19,7 +19,7 @@
19
19
  "react-dom": "^19.1.0",
20
20
  "react-router-dom": "^6.21.1",
21
21
  "styled-components": "^5.3.11",
22
- "@redocly/theme": "0.58.0-next.0"
22
+ "@redocly/theme": "0.58.0-next.2"
23
23
  },
24
24
  "dependencies": {
25
25
  "@codemirror/autocomplete": "^6.15.0",
@@ -1,16 +0,0 @@
1
- import { s as h, r } from "./replay-index-CH1yz2mo.js";
2
- import { i as j, j as u } from "./replay-index-CH1yz2mo.js";
3
- async function x(s, i) {
4
- const t = h(), l = await r(s), c = await r(i), o = l.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), a = c.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), p = Math.min(o.length, a.length);
5
- let n = 0;
6
- for (let e = 0; e < p && o[e] === a[e]; e++)
7
- n++;
8
- const f = o.slice(n).map(() => ".."), m = a.slice(n);
9
- return [...f, ...m].join(t);
10
- }
11
- export {
12
- j as isAbsolute,
13
- u as join,
14
- x as relative,
15
- r as resolve
16
- };