@redocly/replay 0.17.1 → 0.18.0-next.0
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.
- package/dist/{replay-index-B5S6qAS8.js → replay-index-BJ7jrzyR.js} +1 -1
- package/dist/{replay-index-yIZURr30.js → replay-index-CHqupEMo.js} +467 -467
- package/dist/{replay-index-CK1akZKQ.js → replay-index-C_gm7uty.js} +3274 -3266
- package/dist/{replay-index-hrcnswLO.js → replay-index-DB3FLvoF.js} +1 -1
- package/dist/{replay-index-JNXmVopJ.js → replay-index-mtnMxpJN.js} +1 -1
- package/dist/{replay-index-DgVAEDqk.js → replay-index-nl2MS0TA.js} +1 -1
- package/dist/{replay-tauri-path-CEMesvhn.js → replay-tauri-path-CXOJ8LEO.js} +1 -1
- package/dist/{replay-tauri-path-8meq0GGy.js → replay-tauri-path-DnARtnw8.js} +2 -2
- package/dist/replay.cjs +1 -1
- package/dist/replay.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var v3=Object.defineProperty;var b3=(u,a,e)=>a in u?v3(u,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[a]=e;var Ou=(u,a,e)=>b3(u,typeof a!="symbol"?a+"":a,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const bu=require("./replay-index-
|
|
1
|
+
"use strict";var v3=Object.defineProperty;var b3=(u,a,e)=>a in u?v3(u,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[a]=e;var Ou=(u,a,e)=>b3(u,typeof a!="symbol"?a+"":a,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const bu=require("./replay-index-CHqupEMo.js");async function B3(u){const{descriptionPath:a,externalRefResolver:e,base:r}=u,i=await bu.bundle({base:r,ref:a,config:u.config,dereference:!0,externalRefResolver:e});if(!i)throw new Error(`Could not find source description file '${a}'.`);return i.bundle.parsed}function _4(u){var e;if(typeof u!="object")return;const a=Object.keys(u)[0];return a?(e=u[a])==null?void 0:e.value:void 0}const{env:ae={},argv:$4=[],platform:A3=""}=typeof process>"u"?{}:process,f3="NO_COLOR"in ae||$4.includes("--no-color"),y3="FORCE_COLOR"in ae||$4.includes("--color"),z3=A3==="win32",S3=ae.TERM==="dumb",j3=bu.tty&&void 0,M3="CI"in ae&&("GITHUB_ACTIONS"in ae||"GITLAB_CI"in ae||"CIRCLECI"in ae),P3=!f3&&(y3||z3&&!S3||j3||M3),V4=(u,a,e,r,i=a.substring(0,u)+r,o=a.substring(u+e.length),n=o.indexOf(e))=>i+(n<0?o:V4(n,o,e,r)),w3=(u,a,e,r,i)=>u<0?e+a+r:e+V4(u,a,r,i)+r,K3=(u,a,e=u,r=u.length+1)=>i=>i||!(i===""||i===void 0)?w3((""+i).indexOf(a,r),i,u,a,e):"",Su=(u,a,e)=>K3(`\x1B[${u}m`,`\x1B[${a}m`,e),So={reset:Su(0,0),bold:Su(1,22,"\x1B[22m\x1B[1m"),dim:Su(2,22,"\x1B[22m\x1B[2m"),italic:Su(3,23),underline:Su(4,24),inverse:Su(7,27),hidden:Su(8,28),strikethrough:Su(9,29),black:Su(30,39),red:Su(31,39),green:Su(32,39),yellow:Su(33,39),blue:Su(34,39),magenta:Su(35,39),cyan:Su(36,39),white:Su(37,39),gray:Su(90,39),bgBlack:Su(40,49),bgRed:Su(41,49),bgGreen:Su(42,49),bgYellow:Su(43,49),bgBlue:Su(44,49),bgMagenta:Su(45,49),bgCyan:Su(46,49),bgWhite:Su(47,49),blackBright:Su(90,39),redBright:Su(91,39),greenBright:Su(92,39),yellowBright:Su(93,39),blueBright:Su(94,39),magentaBright:Su(95,39),cyanBright:Su(96,39),whiteBright:Su(97,39),bgBlackBright:Su(100,49),bgRedBright:Su(101,49),bgGreenBright:Su(102,49),bgYellowBright:Su(103,49),bgBlueBright:Su(104,49),bgMagentaBright:Su(105,49),bgCyanBright:Su(106,49),bgWhiteBright:Su(107,49)},T3=({useColor:u=P3}={})=>u?So:Object.keys(So).reduce((a,e)=>({...a,[e]:String}),{}),{reset:vru,bold:w0,dim:L3,italic:bru,underline:N3,inverse:J4,hidden:Bru,strikethrough:Aru,black:fru,red:Ku,green:ke,yellow:K0,blue:Gu,magenta:yru,cyan:zru,white:jo,gray:$u,bgBlack:Sru,bgRed:Rr,bgGreen:jru,bgYellow:Mru,bgBlue:Pru,bgMagenta:wru,bgCyan:Kru,bgWhite:Tru,blackBright:Lru,redBright:Nru,greenBright:Rru,yellowBright:Hru,blueBright:Gru,magentaBright:_ru,cyanBright:$ru,whiteBright:Vru,bgBlackBright:Jru,bgRedBright:Iru,bgGreenBright:Oru,bgYellowBright:qru,bgBlueBright:Wru,bgMagentaBright:Zru,bgCyanBright:Uru,bgWhiteBright:Yru}=T3(),R3=u=>/\{.*?\}/.test(u);function B0({value:u,ctx:a,logger:e}){if(!u)return u;if(typeof u=="object"){for(const r in u)u[r]=B0({value:u[r],ctx:a,logger:e});return u}return typeof u=="number"||typeof u=="boolean"?u:u.toString().startsWith("$faker.")?Ue({pointer:u.slice(1),ctx:a,logger:e}):R3(u)?_3(u,a,e):V3(u,a,e)}function H3(u,a,e){const r=u.indexOf("{");if(r!==-1){const o=u.substring(r+1).slice(0,-1),n=Ue({pointer:o.slice(1),ctx:a,logger:e});return n&&u.replace(/{(.*)}/,n)}else return u}function G3(u,a){const e=Object.keys(a),r=Object.values(a);return new Function(...e,`return ${u}`)(...r)}function _3(u,a,e){const r=/\{\$(\{[^{}]*\}|[^{}])*\}/g;let i=u;return i=i.replace(r,(o,n)=>$3(o,a,e)),i}function $3(u,a,e){if(!u.includes("$"))return u;if(u.includes("$faker."))return H3(u,a,e);const r=qe(a)(J3(u));return r!==void 0?r:""}const V3=(u,a,e)=>{if(!u)return u;const r=u.toString();if(!r.includes("$"))return u;if(r.startsWith("$file(")&&r.endsWith(")"))return r.slice(7,-2);if(r.startsWith("$sourceDescriptions.")&&r.includes(".workflows.")){const i=r.split("."),o=i[1],n=i[3];if(!o||!n)return;const s=qe(a)("$sourceDescriptions");return s[o]?s[o].workflows.find(t=>t.workflowId===n):void 0}return r&&r.trim().startsWith("faker.")?Ue({pointer:r,ctx:a,logger:e}):r?qe(a)(Mo(r)):r.replace(/\$\{([^}]+)}/g,(i,o)=>qe(a)(Mo(o)))};function J3(u){return u.replace(/\{(.*)\}/,"$1")}function Mo(u){return u.replace(/\['(.*?)'\]/g,".$1")}const qe=(u,a="")=>e=>{if(a||(a=e),!e)return u;const[r,...i]=e.split(".");if(!u)throw Error(`Cannot get ${Ku(r)} from ${Ku(a)}`);if((u==null?void 0:u[r])===void 0){const o=` Undefined ${Ku(r)} at ${Ku(a)}.`,n=Object.keys(u).length?`Did you mean to use another key? Available keys:
|
|
2
2
|
${Object.keys(u).join(", ")}.
|
|
3
3
|
`:"",s=`${o} ${n}`;throw Error(s)}return qe(u[r],a)(i.join("."))};function Ue({pointer:u,ctx:a,logger:e}){const r=u.split("."),i={ctx:{faker:a.$faker}};try{const o=r.map(n=>n.trim()).map((n,s)=>n.endsWith(")")?`${s==0?"":"."}${n}`:`["${n}"]`).join("");return G3(`ctx${o}`,i)}catch(o){e.error(Ku(o.toString()));return}}function I4(u,a,e){if(typeof u=="string"&&u)return B0({value:u,ctx:a,logger:e});if(!(typeof u=="string"||typeof u=="number"||typeof u=="boolean"||typeof u>"u"||u instanceof Blob||u===null))for(const r in u)typeof u[r]=="string"?u[r]&&(u[r]=B0({value:u[r],ctx:a,logger:e})):I4(u[r],a,e)}function Po(u,a,e){return I4(u,a,e)||u}function wo(u,a){if(!u)return;const e={};for(const r in a)e[`{${r}}`]=String(a[r]);return u.split(/(\{[a-zA-Z0-9_.-]+\}+)/g).map(r=>e[r]?e[r]:r).join("")}function I3(u){return typeof u=="object"&&u!==null&&"name"in u&&"value"in u&&!("in"in u)}function Jn(u){return typeof u=="object"&&u!==null&&"in"in u&&["header","query","path","cookie"].includes(u.in)}const O3=/^image\/(png|jpeg|gif|bmp|webp|svg\+xml)|application\/pdf$/;function O4(u){return u.startsWith("$file(")&&u.endsWith(")")?u.substring(7,u.length-2):u}const Ko=async(u,a,e,r,i)=>{const o=bu.pathBrowserifyExports.dirname(r),n=bu.pathBrowserifyExports.resolve(o,O4(e));u.append(a,await i.options.requestFileLoader.getFileBody(n))},q4=(u,a,e,r,i,o)=>{Object.entries(e).forEach(([n,s])=>{const t=o?`${o}[${n}]`:n;typeof s=="string"&&s.startsWith("$file(")&&s.endsWith(")")?u.push(Ko(a,t,s,r,i)):Array.isArray(s)?s.forEach(E=>{typeof E=="string"&&E.startsWith("$file(")&&E.endsWith(")")?u.push(Ko(a,t,E,r,i)):a.append(t,E.toString())}):typeof s=="object"&&s!==null?q4(u,a,s,r,i,t):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&a.append(t,s.toString())})},q3=async(u,a,e,r)=>{if(u&&typeof u=="object"&&!Array.isArray(u)){const i=[];q4(i,a,u,e,r),await Promise.all(i)}},W3=async(u,a)=>{if(typeof u=="string"&&u.startsWith("$file(")&&u.endsWith(")")){const e=bu.pathBrowserifyExports.resolve(bu.pathBrowserifyExports.dirname(a.options.filePath),O4(u));return a.options.requestFileLoader.getFileBody(e)}else return u};async function Z3(u,a){if(!u)return{payload:void 0,contentType:void 0,encoding:void 0,replacements:void 0};const{payload:e,contentType:r}=u;if(r==="multipart/form-data"){const i=new FormData,o=bu.pathBrowserifyExports.resolve(a.options.filePath);return await q3(e,i,o,a),{...u,payload:i}}else{if(r==="application/octet-stream"||typeof r=="string"&&O3.test(r))return{...u,payload:await W3(e,a),contentType:"application/octet-stream"};if(r==="application/x-www-form-urlencoded"&&typeof e=="string")return{...u,payload:Object.fromEntries(new URLSearchParams(e).entries()),contentType:"application/x-www-form-urlencoded"}}return u}function U3(u,a){function e(){this.constructor=u}e.prototype=a.prototype,u.prototype=new e}function Ye(u,a,e,r){this.message=u,this.expected=a,this.found=e,this.location=r,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Ye)}U3(Ye,Error);Ye.buildMessage=function(u,a,e){var r={literal:function(l){return'"'+o(l.text)+'"'},class:function(l){var D=l.parts.map(function(x){return Array.isArray(x)?n(x[0])+"-"+n(x[1]):n(x)});return"["+(l.inverted?"^":"")+D+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(l){return l.description},not:function(l){return"not "+s(l.expected)}};function i(l){return l.charCodeAt(0).toString(16).toUpperCase()}function o(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(D){return"\\x0"+i(D)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(D){return"\\x"+i(D)})}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(D){return"\\x0"+i(D)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(D){return"\\x"+i(D)})}function s(l){return r[l.type](l)}function t(l){var D=l.map(s),x,c;if(D.sort(),D.length>0){for(x=1,c=1;x<D.length;x++)D[x-1]!==D[x]&&(D[c]=D[x],c++);D.length=c}switch(D.length){case 1:return D[0];case 2:return D[0]+" or "+D[1];default:return D.slice(0,-1).join(", ")+", or "+D[D.length-1]}}function E(l){return l?'"'+o(l)+'"':"end of input"}return"Expected "+t(u)+" but "+E(a)+" found."};function Y3(u,a){a=a!==void 0?a:{};var e={},r={Start:ka},i=ka,o="&&",n="||",s="!",t="==",E="!=",l="<=",D="<",x=">=",c=">",C="{",k="}",b="$url",d="$method",F="$statusCode",g="$request.",B="$response.",p="$inputs.",h="$steps.",v="$workflows.",j="$sourceDescriptions.",K="$components.",H="$components.parameters.",V="$outputs.",$=".",R="outputs.",U="header.",Y="query.",tu="path.",ou="body",Du="#",mu="/",X="~",J="0",Q="1",q="[",f="]",w='"',I="'",iu="true",su="false",L="null",M="undefined",S=/^[!-.0-9A-Z_a-z]/,_=/^[a-zA-Z]/,O=/^[a-zA-Z0-9_\-]/,uu=/^[!#$%&'*+\-.\^_`|~a-zA-Z0-9\-]/,lu=/^[1-9]/,Fu=/^[0-9]/,yu=/^[^"]/,Au=/^[^']/,zu=/^[ \t\r\n]/,gu=fu("&&",!1),eu=fu("||",!1),ru=fu("!",!1),du=fu("==",!1),hu=fu("!=",!1),_u=fu("<=",!1),Qu=fu("<",!1),L0=fu(">=",!1),N0=fu(">",!1),A0=fu("{",!1),R0=fu("}",!1),ti=fu("$url",!1),si=fu("$method",!1),ne=fu("$statusCode",!1),oe=fu("$request.",!1),li=fu("$response.",!1),Ei=fu("$inputs.",!1),Di=fu("$steps.",!1),ua=fu("$workflows.",!1),xi=fu("$sourceDescriptions.",!1),ea=fu("$components.",!1),ci=fu("$components.parameters.",!1),aa=fu("$outputs.",!1),f0=fu(".",!1),ra=fu("outputs.",!1),be=fu("header.",!1),di=fu("query.",!1),mi=fu("path.",!1),Fi=fu("body",!1),ki=fu("#",!1),ia=fu("/",!1),na=Xu([["!","."],["0","9"],["A","Z"],"_",["a","z"]],!1,!1),hi=fu("~",!1),oa=fu("0",!1),pi=fu("1",!1),gi=Xu([["a","z"],["A","Z"]],!1,!1),ta=Xu([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),sa=Xu(["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~",["a","z"],["A","Z"],["0","9"],"-"],!1,!1),Ci=fu("[",!1),vi=fu("]",!1),bi=Xu([["1","9"]],!1,!1),te=Xu([["0","9"]],!1,!1),la=fu('"',!1),Ea=Xu(['"'],!0,!1),Da=fu("'",!1),xa=Xu(["'"],!0,!1),Bi=fu("true",!1),Ai=fu("false",!1),fi=fu("null",!1),ca=fu("undefined",!1),da=Xu([" "," ","\r",`
|
|
4
4
|
`],!1,!1),T=0,se=[{line:1,column:1}],H0=[],le;if("startRule"in a){if(!(a.startRule in r))throw new Error(`Can't start parsing from rule "`+a.startRule+'".');i=r[a.startRule]}function fu(z,P){return{type:"literal",text:z,ignoreCase:P}}function Xu(z,P,W){return{type:"class",parts:z,inverted:P,ignoreCase:W}}function yi(){return{type:"end"}}function ma(z){var P=se[z],W;if(P)return P;for(W=z-1;!se[W];)W--;for(P=se[W],P={line:P.line,column:P.column};W<z;)u.charCodeAt(W)===10?(P.line++,P.column=1):P.column++,W++;return se[z]=P,P}var zi=typeof a.filename=="string"&&a.filename.length>0;function Fa(z,P){var W={};zi&&(W.filename=a.filename);var G=ma(z);W.start={offset:z,line:G.line,column:G.column};var nu=ma(P);return W.end={offset:P,line:nu.line,column:nu.column},W}function Si(){H0.push({pos:T,variants:[]})}function wu(z){var P=H0[H0.length-1];T<P.pos||(T>P.pos&&(P.pos=T,P.variants=[]),P.variants.push(z))}function ji(z,P,W){return new Ye(Ye.buildMessage(z,P,W),z,P,W)}function Mi(){var z=H0[0],P=z.pos;return ji(z.variants,P<u.length?u.charAt(P):null,P<u.length?Fa(P,P+1):Fa(P,P))}function ka(){var z;return z=ha(),z}function ha(){var z,P,W,G,nu,pu,ku,Cu;if(z=T,P=Be(),P!==e){for(W=[],G=T,nu=cu(),pu=pa(),pu!==e?(ku=cu(),Cu=Be(),Cu!==e?(nu=[nu,pu,ku,Cu],G=nu):(T=G,G=e)):(T=G,G=e);G!==e;)W.push(G),G=T,nu=cu(),pu=pa(),pu!==e?(ku=cu(),Cu=Be(),Cu!==e?(nu=[nu,pu,ku,Cu],G=nu):(T=G,G=e)):(T=G,G=e);P=[P,W],z=P}else T=z,z=e;return z}function pa(){var z,P=function(W){wu(W)};return P(gu),u.substr(T,2)===o?(z=o,T+=2):z=e,z===e&&(P(eu),u.substr(T,2)===n?(z=n,T+=2):z=e,z===e&&(P(ru),u.charCodeAt(T)===33?(z=s,T++):z=e)),z}function ga(){var z,P=function(W){wu(W)};return P(du),u.substr(T,2)===t?(z=t,T+=2):z=e,z===e&&(P(hu),u.substr(T,2)===E?(z=E,T+=2):z=e,z===e&&(P(_u),u.substr(T,2)===l?(z=l,T+=2):z=e,z===e&&(P(Qu),u.charCodeAt(T)===60?(z=D,T++):z=e,z===e&&(P(L0),u.substr(T,2)===x?(z=x,T+=2):z=e,z===e&&(P(N0),u.charCodeAt(T)===62?(z=c,T++):z=e))))),z}function Be(){var z,P,W,G,nu,pu,ku,Cu;if(z=T,P=Ae(),P===e&&(P=G0(),P===e&&(P=ze())),P!==e){for(W=cu(),G=[],nu=T,pu=ga(),pu!==e?(ku=cu(),Cu=Ae(),Cu===e&&(Cu=G0(),Cu===e&&(Cu=ze())),Cu!==e?(pu=[pu,ku,Cu],nu=pu):(T=nu,nu=e)):(T=nu,nu=e);nu!==e;)G.push(nu),nu=T,pu=ga(),pu!==e?(ku=cu(),Cu=Ae(),Cu===e&&(Cu=G0(),Cu===e&&(Cu=ze())),Cu!==e?(pu=[pu,ku,Cu],nu=pu):(T=nu,nu=e)):(T=nu,nu=e);P=[P,W,G],z=P}else T=z,z=e;return z}function Ae(){var z,P,W,G,nu,pu,ku=function(Cu){wu(Cu)};return z=T,ku(A0),u.charCodeAt(T)===123?(P=C,T++):P=e,P!==e?(W=cu(),G=G0(),G!==e?(nu=cu(),ku(R0),u.charCodeAt(T)===125?(pu=k,T++):pu=e,pu!==e?(P=[P,W,G,nu,pu],z=P):(T=z,z=e)):(T=z,z=e)):(T=z,z=e),z===e&&(z=T,ku(A0),u.charCodeAt(T)===123?(P=C,T++):P=e,P!==e?(W=cu(),G=ha(),G!==e?(nu=cu(),ku(R0),u.charCodeAt(T)===125?(pu=k,T++):pu=e,pu!==e?(P=[P,W,G,nu,pu],z=P):(T=z,z=e)):(T=z,z=e)):(T=z,z=e)),z}function G0(){var z,P,W,G=function(nu){wu(nu)};return G(ti),u.substr(T,4)===b?(z=b,T+=4):z=e,z===e&&(G(si),u.substr(T,7)===d?(z=d,T+=7):z=e,z===e&&(G(ne),u.substr(T,11)===F?(z=F,T+=11):z=e,z===e&&(z=T,G(oe),u.substr(T,9)===g?(P=g,T+=9):P=e,P!==e?(W=va(),W!==e?(P=[P,W],z=P):(T=z,z=e)):(T=z,z=e),z===e&&(z=T,G(li),u.substr(T,10)===B?(P=B,T+=10):P=e,P!==e?(W=va(),W!==e?(P=[P,W],z=P):(T=z,z=e)):(T=z,z=e),z===e&&(z=T,G(Ei),u.substr(T,8)===p?(P=p,T+=8):P=e,P!==e?(W=x0(),W!==e?(P=[P,W],z=P):(T=z,z=e)):(T=z,z=e),z===e&&(z=Pi(),z===e&&(z=T,G(Di),u.substr(T,7)===h?(P=h,T+=7):P=e,P!==e?(W=Ca(),W!==e?(P=[P,W],z=P):(T=z,z=e)):(T=z,z=e),z===e&&(z=T,G(ua),u.substr(T,11)===v?(P=v,T+=11):P=e,P!==e?(W=wi(),W!==e?(P=[P,W],z=P):(T=z,z=e)):(T=z,z=e),z===e&&(z=T,G(xi),u.substr(T,20)===j?(P=j,T+=20):P=e,P!==e?(W=x0(),W!==e?(P=[P,W],z=P):(T=z,z=e)):(T=z,z=e),z===e&&(z=T,G(ea),u.substr(T,12)===K?(P=K,T+=12):P=e,P!==e?(W=x0(),W!==e?(P=[P,W],z=P):(T=z,z=e)):(T=z,z=e),z===e&&(z=T,G(ci),u.substr(T,23)===H?(P=H,T+=23):P=e,P!==e?(W=x0(),W!==e?(P=[P,W],z=P):(T=z,z=e)):(T=z,z=e)))))))))))),z}function Pi(){var z,P,W,G,nu,pu=function(ku){wu(ku)};return z=T,pu(aa),u.substr(T,9)===V?(P=V,T+=9):P=e,P!==e?(W=T,G=x0(),G!==e?(nu=Ee(),nu===e&&(nu=null),G=[G,nu],W=G):(T=W,W=e),W===e&&(W=fe()),W!==e?(P=[P,W],z=P):(T=z,z=e)):(T=z,z=e),z}function Ca(){var z,P,W,G,nu,pu,ku=function(Cu){wu(Cu)};return z=T,P=y0(),P!==e?(ku(f0),u.charCodeAt(T)===46?(W=$,T++):W=e,W!==e?(G=T,ku(ra),u.substr(T,8)===R?(nu=R,T+=8):nu=e,nu!==e?(pu=fe(),pu!==e?(nu=[nu,pu],G=nu):(T=G,G=e)):(T=G,G=e),G===e&&(G=x0()),G!==e?(P=[P,W,G],z=P):(T=z,z=e)):(T=z,z=e)):(T=z,z=e),z}function wi(){var z,P,W,G,nu,pu,ku=function(Cu){wu(Cu)};return z=T,P=y0(),P!==e?(ku(f0),u.charCodeAt(T)===46?(W=$,T++):W=e,W!==e?(G=T,ku(ra),u.substr(T,8)===R?(nu=R,T+=8):nu=e,nu!==e?(pu=fe(),pu!==e?(nu=[nu,pu],G=nu):(T=G,G=e)):(T=G,G=e),G===e&&(G=x0()),G!==e?(P=[P,W,G],z=P):(T=z,z=e)):(T=z,z=e)):(T=z,z=e),z}function fe(){var z,P,W;return z=T,P=y0(),P!==e?(W=Ee(),W!==e?(P=[P,W],z=P):(T=z,z=e)):(T=z,z=e),z}function x0(){var z,P,W,G,nu,pu,ku,Cu=function(Oi){wu(Oi)};if(z=T,P=y0(),P!==e){for(W=[],G=T,Cu(f0),u.charCodeAt(T)===46?(nu=$,T++):nu=e,nu!==e?(pu=cu(),ku=y0(),ku!==e?(nu=[nu,pu,ku],G=nu):(T=G,G=e)):(T=G,G=e);G!==e;)W.push(G),G=T,Cu(f0),u.charCodeAt(T)===46?(nu=$,T++):nu=e,nu!==e?(pu=cu(),ku=y0(),ku!==e?(nu=[nu,pu,ku],G=nu):(T=G,G=e)):(T=G,G=e);P=[P,W],z=P}else T=z,z=e;return z}function y0(){var z;return z=ye(),z===e&&(z=fa()),z}function va(){var z;return z=Ki(),z===e&&(z=Ti(),z===e&&(z=Li(),z===e&&(z=Ni()))),z}function Ki(){var z,P,W,G=function(nu){wu(nu)};return z=T,G(be),u.substr(T,7)===U?(P=U,T+=7):P=e,P!==e?(W=Ri(),W!==e?(P=[P,W],z=P):(T=z,z=e)):(T=z,z=e),z}function Ti(){var z,P,W,G=function(nu){wu(nu)};return z=T,G(di),u.substr(T,6)===Y?(P=Y,T+=6):P=e,P!==e?(W=ye(),W!==e?(P=[P,W],z=P):(T=z,z=e)):(T=z,z=e),z}function Li(){var z,P,W,G=function(nu){wu(nu)};return z=T,G(mi),u.substr(T,5)===tu?(P=tu,T+=5):P=e,P!==e?(W=ye(),W!==e?(P=[P,W],z=P):(T=z,z=e)):(T=z,z=e),z}function Ni(){var z,P,W,G=function(nu){wu(nu)};return z=T,G(Fi),u.substr(T,4)===ou?(P=ou,T+=4):P=e,P!==e?(W=Ee(),W===e&&(W=null),P=[P,W],z=P):(T=z,z=e),z}function Ee(){var z,P,W,G,nu=function(pu){wu(pu)};if(z=T,nu(ki),u.charCodeAt(T)===35?(P=Du,T++):P=e,P!==e){for(W=[],G=ba();G!==e;)W.push(G),G=ba();P=[P,W],z=P}else T=z,z=e;return z}function ba(){var z,P,W,G,nu=function(pu){wu(pu)};if(z=T,nu(ia),u.charCodeAt(T)===47?(P=mu,T++):P=e,P!==e){for(W=[],G=Ba(),G===e&&(G=Aa());G!==e;)W.push(G),G=Ba(),G===e&&(G=Aa());P=[P,W],z=P}else T=z,z=e;return z}function Ba(){var z,P=function(W){wu(W)};return P(na),S.test(u.charAt(T))?(z=u.charAt(T),T++):z=e,z}function Aa(){var z,P,W,G=function(nu){wu(nu)};return z=T,G(hi),u.charCodeAt(T)===126?(P=X,T++):P=e,P!==e?(G(oa),u.charCodeAt(T)===48?(W=J,T++):W=e,W===e&&(G(pi),u.charCodeAt(T)===49?(W=Q,T++):W=e),W!==e?(P=[P,W],z=P):(T=z,z=e)):(T=z,z=e),z}function ye(){var z,P,W,G,nu=function(pu){wu(pu)};if(z=T,nu(gi),_.test(u.charAt(T))?(P=u.charAt(T),T++):P=e,P!==e){for(W=[],nu(ta),O.test(u.charAt(T))?(G=u.charAt(T),T++):G=e;G!==e;)W.push(G),nu(ta),O.test(u.charAt(T))?(G=u.charAt(T),T++):G=e;P=[P,W],z=P}else T=z,z=e;return z}function Ri(){var z,P,W=function(G){wu(G)};if(z=[],W(sa),uu.test(u.charAt(T))?(P=u.charAt(T),T++):P=e,P!==e)for(;P!==e;)z.push(P),W(sa),uu.test(u.charAt(T))?(P=u.charAt(T),T++):P=e;else z=e;return z}function ze(){var z;return z=Hi(),z===e&&(z=fa(),z===e&&(z=ya(),z===e&&(z=Ji(),z===e&&(z=Ii(),z===e&&(z=y()))))),z}function Hi(){var z,P,W,G,nu=function(pu){wu(pu)};return z=T,nu(Ci),u.charCodeAt(T)===91?(P=q,T++):P=e,P!==e?(W=cu(),nu(vi),u.charCodeAt(T)===93?(G=f,T++):G=e,G!==e?(P=[P,W,G],z=P):(T=z,z=e)):(T=z,z=e),z}function fa(){var z,P,W,G,nu,pu=function(ku){wu(ku)};return z=T,P=Gi(),P!==e?(W=T,pu(f0),u.charCodeAt(T)===46?(G=$,T++):G=e,G!==e?(nu=_i(),nu!==e?(G=[G,nu],W=G):(T=W,W=e)):(T=W,W=e),W===e&&(W=null),P=[P,W],z=P):(T=z,z=e),z}function Gi(){var z,P,W,G,nu=function(pu){wu(pu)};if(nu(oa),u.charCodeAt(T)===48?(z=J,T++):z=e,z===e)if(z=T,nu(bi),lu.test(u.charAt(T))?(P=u.charAt(T),T++):P=e,P!==e){for(W=[],nu(te),Fu.test(u.charAt(T))?(G=u.charAt(T),T++):G=e;G!==e;)W.push(G),nu(te),Fu.test(u.charAt(T))?(G=u.charAt(T),T++):G=e;P=[P,W],z=P}else T=z,z=e;return z}function _i(){var z,P,W=function(G){wu(G)};if(z=[],W(te),Fu.test(u.charAt(T))?(P=u.charAt(T),T++):P=e,P!==e)for(;P!==e;)z.push(P),W(te),Fu.test(u.charAt(T))?(P=u.charAt(T),T++):P=e;else z=e;return z}function ya(){var z;return z=$i(),z===e&&(z=Vi()),z}function $i(){var z,P,W,G,nu=function(pu){wu(pu)};if(z=T,nu(la),u.charCodeAt(T)===34?(P=w,T++):P=e,P!==e){for(W=[],nu(Ea),yu.test(u.charAt(T))?(G=u.charAt(T),T++):G=e;G!==e;)W.push(G),nu(Ea),yu.test(u.charAt(T))?(G=u.charAt(T),T++):G=e;nu(la),u.charCodeAt(T)===34?(G=w,T++):G=e,G!==e?(P=[P,W,G],z=P):(T=z,z=e)}else T=z,z=e;return z}function Vi(){var z,P,W,G,nu=function(pu){wu(pu)};if(z=T,nu(Da),u.charCodeAt(T)===39?(P=I,T++):P=e,P!==e){for(W=[],nu(xa),Au.test(u.charAt(T))?(G=u.charAt(T),T++):G=e;G!==e;)W.push(G),nu(xa),Au.test(u.charAt(T))?(G=u.charAt(T),T++):G=e;nu(Da),u.charCodeAt(T)===39?(G=I,T++):G=e,G!==e?(P=[P,W,G],z=P):(T=z,z=e)}else T=z,z=e;return z}function Ji(){var z,P=function(W){wu(W)};return P(Bi),u.substr(T,4)===iu?(z=iu,T+=4):z=e,z===e&&(P(Ai),u.substr(T,5)===su?(z=su,T+=5):z=e),z}function Ii(){var z,P=function(W){wu(W)};return P(fi),u.substr(T,4)===L?(z=L,T+=4):z=e,z}function y(){var z,P=function(W){wu(W)};return P(ca),u.substr(T,9)===M?(z=M,T+=9):z=e,z}function cu(){var z,P,W=function(G){wu(G)};for(z=[],W(da),zu.test(u.charAt(T))?(P=u.charAt(T),T++):P=e;P!==e;)z.push(P),W(da),zu.test(u.charAt(T))?(P=u.charAt(T),T++):P=e;return z}if(Si(),le=i(),le!==e&&T===u.length)return le;throw le!==e&&T<u.length&&wu(yi()),Mi()}function Q3(u){try{return Z4(u)}catch{throw new Error(`Runtime expression is not valid: ${u}`)}}function X3(u,a){const e=[{pattern:/\$response\.body#\/([\w/]+)/g,ctxFunction:(i,o)=>{var n;return je((n=a.$response)==null?void 0:n.body,o,i)}},{pattern:/\$request\.body#\/([\w/]+)/g,ctxFunction:(i,o)=>{var n;return je((n=a.$request)==null?void 0:n.body,o,i)}},{pattern:/\$outputs\.([\w-]+)#\/([\w/]+)/g,ctxFunction:(i,o,n)=>{var s;return je((s=a.$outputs)==null?void 0:s[o],n,i)}},{pattern:/\$workflows\.([\w-]+)\.outputs\.([\w-]+)#\/([\w/]+)/g,ctxFunction:(i,o,n,s)=>{var t,E,l;return je((l=(E=(t=a.$workflows)==null?void 0:t[o])==null?void 0:E.outputs)==null?void 0:l[n],s,i)}},{pattern:/\$steps\.([\w-]+)\.outputs\.([\w-]+)#\/([\w/]+)/g,ctxFunction:(i,o,n,s)=>{var t,E,l;return je((l=(E=(t=a.$steps)==null?void 0:t[o])==null?void 0:E.outputs)==null?void 0:l[n],s,i)}}];let r=u;for(const{pattern:i,ctxFunction:o}of e)r=r.replaceAll(i,o);return r}function je(u,a,e){if(u)try{const r=bu.JsonPointer.get(u,`/${a}`);return typeof r=="string"||Array.isArray(r)||typeof r=="object"?JSON.stringify(r):r!==void 0?r:e}catch{return e}return e}function D0({payload:u,context:a,contentType:e,logger:r}){if(e!=null&&e.includes("application/octet-stream"))return Po(u,a,r);if(e!=null&&e.includes("multipart/form-data")){if(u instanceof FormData){const i=new FormData;for(const[o,n]of u.entries())if(n instanceof File)i.append(o,n);else{const s=D0({payload:n,context:a,logger:r});i.append(o,s)}return i}return Po(u,a,r)}return typeof u=="string"?tE(u)?re(u,a,r):oE(u,a,r):bu.isPlainObject(u)?Object.entries(u).reduce((i,[o,n])=>(i[o]=D0({payload:n,context:a,logger:r}),i),{}):Array.isArray(u)?u.map(i=>D0({payload:i,context:a,logger:r})):u}function re(u,a,e){return typeof u=="string"?uE(u,a,e):bu.isPlainObject(u)?Object.entries(u).reduce((r,[i,o])=>(r[i]=o&&re(o,a,e),r),{}):Array.isArray(u)?u.map(r=>re(r,a,e)):u}function uE(u,a,e){if(/^\$faker\.[a-zA-Z0-9._-]+(\([^\\)]*\))?$/.test(u))return Ue({pointer:u.slice(1),ctx:a,logger:e});if(u.includes("$faker.")){const o=/\$faker\.[a-zA-Z0-9._-]+(\([^\\)]*\))?/g;u=u.replace(o,n=>Ue({pointer:n.slice(1),ctx:a,logger:e})).replace(/{(.*?)}/g,"$1")}if(!u.includes("$")&&!/[=<>]/.test(u))return u;Q3(u);const r=aE(u,a),i=rE(a);try{return new Function(...Object.keys(i),`return ${r};`)(...Object.values(i))}catch{throw new Error(`Error in resolving runtime expression '${u}'.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./replay-index-CHqupEMo.js");async function n(e={}){return typeof e=="object"&&Object.freeze(e),await t.invoke("plugin:dialog|open",{options:e})}exports.open=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-CHqupEMo.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,5 +1,5 @@
|
|
|
1
|
-
import { n as h, o as r } from "./replay-index-
|
|
2
|
-
import { u as w, q as b } from "./replay-index-
|
|
1
|
+
import { n as h, o as r } from "./replay-index-C_gm7uty.js";
|
|
2
|
+
import { u as w, q as b } from "./replay-index-C_gm7uty.js";
|
|
3
3
|
async function x(s, i) {
|
|
4
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
5
|
let a = 0;
|
package/dist/replay.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-CHqupEMo.js");exports.EmbeddedReplay=e.EmbeddedReplay;exports.Modal=e.Modal;exports.Replay=e.Replay;exports.ReplayOverlay=e.ReplayOverlay;
|
package/dist/replay.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/replay",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0-next.0",
|
|
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.
|
|
22
|
+
"@redocly/theme": "0.59.0-next.0"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@codemirror/autocomplete": "^6.15.0",
|