@scalar/api-reference 1.25.95 → 1.25.98

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
@@ -1,5 +1,28 @@
1
1
  # @scalar/api-reference
2
2
 
3
+ ## 1.25.98
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [3156ecd]
8
+ - @scalar/api-client@2.2.27
9
+ - @scalar/oas-utils@0.2.95
10
+
11
+ ## 1.25.97
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [a36fada]
16
+ - @scalar/oas-utils@0.2.94
17
+ - @scalar/api-client@2.2.26
18
+
19
+ ## 1.25.96
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [00feb3e]
24
+ - @scalar/api-client@2.2.25
25
+
3
26
  ## 1.25.95
4
27
 
5
28
  ### Patch Changes
@@ -5,7 +5,7 @@
5
5
  * ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
6
6
  * /____/\____/_/ |_/_____/_/ |_/_/ |_|
7
7
  *
8
- * @scalar/api-reference 1.25.95
8
+ * @scalar/api-reference 1.25.98
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)=>{var u,d,p,h,f,m,g;if(!n.value||!r.value)return
27562
- ;const v=a.value;if(v.length>e){const n=[...v];n[e]={...n[e],[l]:c||"",
27563
- value:(null==(u=n[e])?void 0:u.value)||"",key:(null==(d=n[e])?void 0:d.key)||"",
27564
- enabled:(null==(p=n[e])?void 0:p.enabled)??!1
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===v.length-1&&i()
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.24"))+" Beta ",1),o[2]||(o[2]=ui("div",{
27832
+ },[Vn(n)?gi("",!0):(ei(),oi("div",hwe,[fi(" Scalar App V"+ht(Vn("2.2.27"))+" 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",
@@ -28403,7 +28400,7 @@ const{value:e}=r,{value:n}=t
28403
28400
  const r=e["x-scalar-active-environment"]
28404
28401
  ;r&&t.value&&n.value?(t.value["x-scalar-active-environment"]=r,
28405
28402
  n.value.activeEnvironmentId=r):n.value&&(n.value.activeEnvironmentId="")}
28406
- ;return Ma(t,(e=>{d(e)})),go((()=>{d(t.value)
28403
+ ;return Ma(t,(e=>e&&d(e))),go((()=>{t.value&&d(t.value)
28407
28404
  })),(e,n)=>(ei(),oi("div",null,[di(Vn(F0),{placement:"bottom-end"},{
28408
28405
  items:Ar((()=>[(ei(!0),oi(Wa,null,Do(u.value,(e=>(ei(),ai(Vn(y1),{key:e.uid,
28409
28406
  class:"flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",