@scalar/api-reference 1.25.124 → 1.25.125

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,12 @@
1
1
  # @scalar/api-reference
2
2
 
3
+ ## 1.25.125
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [fdd50b2]
8
+ - @scalar/api-client@2.2.54
9
+
3
10
  ## 1.25.124
4
11
 
5
12
  ### Patch Changes
@@ -5,7 +5,7 @@
5
5
  * ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
6
6
  * /____/\____/_/ |_/_____/_/ |_/_/ |_|
7
7
  *
8
- * @scalar/api-reference 1.25.124
8
+ * @scalar/api-reference 1.25.125
9
9
  *
10
10
  * Website: https://scalar.com
11
11
  * GitHub: https://github.com/scalar/scalar
@@ -25529,9 +25529,11 @@ setup:e=>(e,t)=>(Ja(),oi(qn(NZ),{as:"div",
25529
25529
  class:"group/collapse focus-within:text-c-1 text-c-2 request-item",
25530
25530
  defaultOpen:e.defaultOpen,static:"reference"===e.layout},{
25531
25531
  default:Tr((({open:t})=>[ci("div",wfe,[ui(qn(MZ),{
25532
- class:ot(["hover:text-c-1 group box-content flex max-h-8 flex-1 items-center gap-2.5 overflow-hidden px-1 py-1.5 text-sm font-medium outline-none group-last/collapse:border-b md:px-1.5 xl:pl-2 xl:pr-0.5",{
25533
- "!pl-3":"reference"===e.layout}]),disabled:"reference"===e.layout},{
25534
- default:Tr((()=>["reference"!==e.layout?(Ja(),oi(qn(yH),{key:0,
25532
+ class:ot(["hover:text-c-1 group box-content flex max-h-8 flex-1 items-center gap-2.5 overflow-hidden px-1 py-1.5 text-sm font-medium outline-none md:px-1.5 xl:pl-2 xl:pr-0.5",{
25533
+ "!pl-3":"reference"===e.layout},{
25534
+ "group-last/collapse:border-b":"client"===e.layout}]),
25535
+ disabled:"reference"===e.layout},{default:Tr((()=>["reference"!==e.layout?(Ja(),
25536
+ oi(qn(yH),{key:0,
25535
25537
  class:ot(["text-c-3 group-hover:text-c-1 ui-open:rotate-90 ui-not-open:rotate-0 rounded-px outline-offset-2 group-focus-visible:outline"]),
25536
25538
  icon:"ChevronRight",size:"md"})):mi("",!0),ci("div",xfe,[Do(e.$slots,"title",{
25537
25539
  open:t}),!t&&e.itemCount?(Ja(),ri("span",kfe,dt(e.itemCount),1)):mi("",!0)])])),
@@ -25632,26 +25634,29 @@ onDelete:r[1]||(r[1]=t=>{var n;return(t=>{var n;if(!t)return
25632
25634
  }),$fe=c4(Rfe,[["__scopeId","data-v-fdbdfe77"]]),Nfe={key:1,
25633
25635
  class:"gap-0.75 text-c-1 h-6.5 flex w-full items-center whitespace-nowrap rounded-b-lg px-3 py-1.5 text-xs lg:text-sm"
25634
25636
  },Mfe=eo({__name:"ServerSelector",props:{collection:{},server:{},target:{}},
25635
- setup(e){const{servers:t,collectionMutators:n}=R0(),r=ji((()=>{var n
25636
- ;return null==(n=e.collection)?void 0:n.servers.map((e=>{var n;return{id:e,
25637
- label:(null==(n=t[e])?void 0:n.url)??"Unknown server"}}))})),o=ji({
25638
- get:()=>e.server?r.value.find((t=>t.id===e.server.uid)):void 0,set:t=>{
25639
- t&&n.edit(e.collection.uid,"selectedServerUid",t.id)}})
25640
- ;$a((()=>e.collection),(t=>{var r;if(!t||t.selectedServerUid)return
25641
- ;const o=null==(r=e.collection.servers)?void 0:r[0]
25642
- ;o&&n.edit(e.collection.uid,"selectedServerUid",o)}));const a=ji((()=>{var t,n,r
25637
+ emits:["updateServer"],setup(e,{emit:t}){
25638
+ const n=t,{servers:r,collectionMutators:o}=R0(),a=ji((()=>{var t
25639
+ ;return null==(t=e.collection)?void 0:t.servers.map((e=>{var t;return{id:e,
25640
+ label:(null==(t=r[e])?void 0:t.url)??"Unknown server"}}))})),i=ji({
25641
+ get:()=>e.server?a.value.find((t=>t.id===e.server.uid)):void 0,set:t=>{var a
25642
+ ;if(!t)return;o.edit(e.collection.uid,"selectedServerUid",t.id)
25643
+ ;const i=null==(a=r[t.id])?void 0:a.url;i&&n("updateServer",i)}})
25644
+ ;$a((()=>e.collection),(t=>{var a,i;if(!t||t.selectedServerUid)return
25645
+ ;const s=null==(a=e.collection.servers)?void 0:a[0]
25646
+ ;s&&(o.edit(e.collection.uid,"selectedServerUid",s),
25647
+ null!=(i=r[s])&&i.url&&n("updateServer",r[s].url))}));const s=ji((()=>{var t,n,r
25643
25648
  ;return null!=(n=null==(t=e.server)?void 0:t.url)&&n.endsWith("/")?e.server.url.slice(0,-1):(null==(r=e.server)?void 0:r.url)||""
25644
- }));return(e,t)=>r.value.length>1?(Ja(),oi(qn(gK),{key:0,modelValue:o.value,
25645
- "onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),options:r.value,
25649
+ }));return(e,t)=>a.value.length>1?(Ja(),oi(qn(gK),{key:0,modelValue:i.value,
25650
+ "onUpdate:modelValue":t[0]||(t[0]=e=>i.value=e),options:a.value,
25646
25651
  placement:"bottom-start",resize:"",target:e.target,teleport:`#${e.target}`},{
25647
25652
  default:Tr((()=>[ui(qn(N$),{
25648
25653
  class:"gap-0.75 text-c-1 h-6.5 w-full justify-start whitespace-nowrap rounded-b-lg px-3 py-1.5 text-xs font-normal -outline-offset-1 lg:text-sm",
25649
25654
  variant:"ghost"},{default:Tr((()=>[t[1]||(t[1]=ci("span",{class:"sr-only"
25650
- },"Server:",-1)),hi(" "+dt(a.value)+" ",1),ui(qn(yH),{class:"text-c-2",
25655
+ },"Server:",-1)),hi(" "+dt(s.value)+" ",1),ui(qn(yH),{class:"text-c-2",
25651
25656
  icon:"ChevronDown",size:"sm"})])),_:1})])),_:1
25652
25657
  },8,["modelValue","options","target","teleport"])):(Ja(),
25653
25658
  ri("div",Nfe,[t[2]||(t[2]=ci("span",{class:"sr-only"
25654
- },"Server:",-1)),hi(" "+dt(a.value),1)]))}}),Ife={key:0,class:"sr-only"
25659
+ },"Server:",-1)),hi(" "+dt(s.value),1)]))}}),Ife={key:0,class:"sr-only"
25655
25660
  },Lfe=eo({__name:"ServerVariablesSelect",props:{enum:{},value:{},controls:{}},
25656
25661
  emits:["change"],setup(e,{emit:t}){const n=e,r=t,o=ji((()=>n.enum.map((e=>({
25657
25662
  id:e,label:e}))))),a=ji({get:()=>o.value.find((e=>e.id===n.value)),
@@ -25764,15 +25769,15 @@ variant:"ghost"},{default:Tr((()=>[n[0]||(n[0]=ci("span",{class:"sr-only"
25764
25769
  },8,["target","teleport"]))}}),Yfe=["id"],Kfe=eo({__name:"BaseUrl",setup(e){
25765
25770
  const{activeCollection:t,activeServer:n}=Q0(),{serverMutators:r}=R0(),o=to(),a=(e,t)=>{
25766
25771
  if(!n.value)return;const o=n.value.variables||{};o[e]={...o[e],default:t
25767
- },r.edit(n.value.uid,"variables",o)};return(e,r)=>{var i,s,l,c
25768
- ;return Ja(),ri(Za,null,[r[0]||(r[0]=ci("label",{
25772
+ },r.edit(n.value.uid,"variables",o)},{onServerChange:i}=gd(),s=e=>{null==i||i(e)
25773
+ };return(e,r)=>{var i,l,c,u;return Ja(),ri(Za,null,[r[0]||(r[0]=ci("label",{
25769
25774
  class:"bg-b-2 flex h-8 items-center px-3 py-2.5 text-sm font-medium"
25770
25775
  }," Server ",-1)),ci("div",{id:qn(o)
25771
- },[(null==(s=null==(i=qn(t))?void 0:i.servers)?void 0:s.length)?(Ja(),
25772
- oi(qn(Mfe),{key:0,collection:qn(t),server:qn(n),target:qn(o)
25776
+ },[(null==(l=null==(i=qn(t))?void 0:i.servers)?void 0:l.length)?(Ja(),
25777
+ oi(qn(Mfe),{key:0,collection:qn(t),server:qn(n),target:qn(o),onUpdateServer:s
25773
25778
  },null,8,["collection","server","target"])):mi("",!0)],8,Yfe),ui(qn(Ufe),{
25774
- variables:null==(l=qn(n))?void 0:l.variables,"onUpdate:variable":a
25775
- },null,8,["variables"]),(null==(c=qn(n))?void 0:c.description)?(Ja(),oi(qn(bK),{
25779
+ variables:null==(c=qn(n))?void 0:c.variables,"onUpdate:variable":a
25780
+ },null,8,["variables"]),(null==(u=qn(n))?void 0:u.description)?(Ja(),oi(qn(bK),{
25776
25781
  key:0,class:"text-c-3 px-3 py-1.5",value:qn(n).description
25777
25782
  },null,8,["value"])):mi("",!0)],64)}}}),Jfe=["onClick"],eme={
25778
25783
  class:"client-libraries-text"
@@ -29758,7 +29763,7 @@ vo((()=>t.hotKeys.off(a))),(e,n)=>(Ja(),ri("div",pPe,[ci("div",{
29758
29763
  class:ot(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center",{
29759
29764
  "hidden opacity-0":e.numWorkspaceRequests<=1&&"modal"!==qn(r)}])
29760
29765
  },["modal"!==qn(r)?(Ja(),
29761
- ri("div",hPe,[hi(" Scalar App V"+dt(qn("2.2.53"))+" Beta ",1),n[2]||(n[2]=ci("div",{
29766
+ ri("div",hPe,[hi(" Scalar App V"+dt(qn("2.2.54"))+" Beta ",1),n[2]||(n[2]=ci("div",{
29762
29767
  class:"mt-2"},[ci("a",{href:"https://github.com/scalar/scalar/issues/2669",
29763
29768
  target:"_blank"}," Roadmap ")],-1))])):mi("",!0),n[3]||(n[3]=ci("a",{
29764
29769
  class:"gitbook-show scalar-version-number",href:"https://www.scalar.com",