@scalar/api-reference 1.25.95 → 1.25.96
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/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
|
|
6
6
|
* /____/\____/_/ |_/_____/_/ |_/_/ |_|
|
|
7
7
|
*
|
|
8
|
-
* @scalar/api-reference 1.25.
|
|
8
|
+
* @scalar/api-reference 1.25.96
|
|
9
9
|
*
|
|
10
10
|
* Website: https://scalar.com
|
|
11
11
|
* GitHub: https://github.com/scalar/scalar
|
|
@@ -27558,22 +27558,19 @@ const t=e,{activeRequest:n,activeExample:r}=q1(),{requestExampleMutators:o}=M1()
|
|
|
27558
27558
|
var e;return(null==(e=r.value)?void 0:e.parameters[t.paramKey])??[]}));go((()=>{
|
|
27559
27559
|
d()}));const i=()=>{if(!n.value||!r.value)return;const e=ID.parse({enabled:!1
|
|
27560
27560
|
}),i=[...a.value,e];o.edit(r.value.uid,`parameters.${t.paramKey}`,i)
|
|
27561
|
-
},s=Fn(null),l=(e,l,c)=>{
|
|
27562
|
-
;
|
|
27563
|
-
|
|
27564
|
-
|
|
27565
|
-
},(""!==(null==(h=n[e])?void 0:h.key)||""!==(null==(f=n[e])?void 0:f.value))&&(n[e].enabled=!0),
|
|
27566
|
-
""===(null==(m=n[e])?void 0:m.key)&&""===(null==(g=n[e])?void 0:g.value)&&n.splice(e,1),
|
|
27561
|
+
},s=Fn(null),l=(e,l,c)=>{if(!n.value||!r.value)return;const u=a.value
|
|
27562
|
+
;if(u.length>e){const n=[...u];if(!n[e])return;n[e]={...n[e],[l]:c
|
|
27563
|
+
},(""!==n[e].key||""!==n[e].value)&&(n[e].enabled=!0),
|
|
27564
|
+
""===n[e].key&&""===n[e].value&&n.splice(e,1),
|
|
27567
27565
|
o.edit(r.value.uid,`parameters.${t.paramKey}`,n)}else{const e=[ID.parse({[l]:c
|
|
27568
27566
|
})];o.edit(r.value.uid,`parameters.${t.paramKey}`,e),yr((()=>{var e
|
|
27569
27567
|
;s.value&&(null==(e=s.value.querySelectorAll("input")["key"===l?0:1])||e.focus())
|
|
27570
|
-
}))}e===
|
|
27568
|
+
}))}e===u.length-1&&i()
|
|
27571
27569
|
},c=(e,a)=>n.value&&r.value&&o.edit(r.value.uid,`parameters.${t.paramKey}.${e}.enabled`,a),u=()=>{
|
|
27572
27570
|
if(!n.value||!r.value)return;const e=a.value.filter((e=>e.required))
|
|
27573
27571
|
;o.edit(r.value.uid,`parameters.${t.paramKey}`,e),yr((()=>{i()}))};function d(){
|
|
27574
27572
|
if(0===a.value.length)i();else if(a.value.length>=1){
|
|
27575
|
-
const e=a.value[a.value.length-1]
|
|
27576
|
-
;""!==(null==e?void 0:e.key)&&""!==(null==e?void 0:e.value)&&i()}}
|
|
27573
|
+
const e=a.value[a.value.length-1];e&&""!==e.key&&""!==e.value&&i()}}
|
|
27577
27574
|
const p=Bi((()=>a.value.filter((e=>e.key||e.value)).length))
|
|
27578
27575
|
;return Ma((()=>r.value),((e,t)=>{e!==t&&d()}),{immediate:!0
|
|
27579
27576
|
}),(e,t)=>(ei(),ai(Zye,{class:"group/params",itemCount:p.value},{
|
|
@@ -27832,7 +27829,7 @@ null!=e&&e.createNew&&"request"===o.name&&i()};return go((()=>r.hotKeys.on(s))),
|
|
|
27832
27829
|
yo((()=>r.hotKeys.off(s))),(e,o)=>(ei(),oi("div",pwe,[ui("div",{
|
|
27833
27830
|
class:it(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center",{
|
|
27834
27831
|
"hidden opacity-0":Vn(t).length<=1&&"modal"!==Vn(a)}])
|
|
27835
|
-
},[Vn(n)?gi("",!0):(ei(),oi("div",hwe,[fi(" Scalar App V"+ht(Vn("2.2.
|
|
27832
|
+
},[Vn(n)?gi("",!0):(ei(),oi("div",hwe,[fi(" Scalar App V"+ht(Vn("2.2.25"))+" Beta ",1),o[2]||(o[2]=ui("div",{
|
|
27836
27833
|
class:"mt-2"},[ui("a",{href:"https://github.com/scalar/scalar/issues/2669",
|
|
27837
27834
|
target:"_blank"}," Roadmap ")],-1))])),o[3]||(o[3]=ui("a",{
|
|
27838
27835
|
class:"gitbook-show scalar-version-number",href:"https://www.scalar.com",
|