@scalar/api-reference 1.25.18 → 1.25.19

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,14 @@
1
1
  # @scalar/api-reference
2
2
 
3
+ ## 1.25.19
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [96c921c]
8
+ - @scalar/openapi-parser@0.8.4
9
+ - @scalar/api-client@2.1.7
10
+ - @scalar/oas-utils@0.2.47
11
+
3
12
  ## 1.25.18
4
13
 
5
14
  ### Patch Changes
@@ -5,7 +5,7 @@
5
5
  * ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
6
6
  * /____/\____/_/ |_/_____/_/ |_/_/ |_|
7
7
  *
8
- * @scalar/api-reference 1.25.18
8
+ * @scalar/api-reference 1.25.19
9
9
  *
10
10
  * Website: https://scalar.com
11
11
  * GitHub: https://github.com/scalar/scalar
@@ -11889,7 +11889,16 @@ const t=structuredClone(o.parameters.find((e=>"body"===e.in))??{})
11889
11889
  "object"!=typeof o.requestBody.content&&(o.requestBody.content={})
11890
11890
  ;const{schema:r,...a}=t;o.requestBody={...o.requestBody,...a}
11891
11891
  ;for(const e of n)o.requestBody.content[e]={schema:r}}
11892
- o.parameters=o.parameters.filter((e=>"body"!==e.in)),delete o.consumes}
11892
+ o.parameters=o.parameters.filter((e=>"body"!==e.in)),delete o.consumes
11893
+ ;const n=o.parameters.filter((e=>"formData"===e.in));if(n.length>0){
11894
+ "object"!=typeof o.requestBody&&(o.requestBody={}),
11895
+ "object"!=typeof o.requestBody.content&&(o.requestBody.content={}),
11896
+ o.requestBody.content["application/x-www-form-urlencoded"]={schema:{
11897
+ type:"object",properties:{},required:[]}}
11898
+ ;for(const e of n)o.requestBody.content["application/x-www-form-urlencoded"].schema.properties[e.name]={
11899
+ type:e.type,description:e.description
11900
+ },e.required&&o.requestBody.content["application/x-www-form-urlencoded"].schema.required.push(e.name)
11901
+ ;o.parameters=o.parameters.filter((e=>"formData"!==e.in))}}
11893
11902
  if(o.responses)for(const t in o.responses)if(Object.hasOwn(o.responses,t)){
11894
11903
  const n=o.responses[t];if(n.schema){
11895
11904
  const t=e.produces??o.produces??["application/json"]
@@ -26741,7 +26750,7 @@ default:Tr((()=>[ei("span",qOe,st(a.value||"Select a value"),1),ti(Fn(kZ),{
26741
26750
  icon:"ChevronDown",size:"xs"})])),_:1})])),_:1},8,["value"]))]))}})
26742
26751
  ;function VOe(e){return e.flatMap((e=>{if("value"===e.key)try{
26743
26752
  const t=JSON.parse(e.value);return Object.keys(t).map((e=>({key:e,value:t[e]})))
26744
- }catch{}return[]}))}
26753
+ }catch{}return[e]}))}
26745
26754
  var WOe=Object.defineProperty,XOe=(e,t,n)=>((e,t,n)=>t in e?WOe(e,t,{
26746
26755
  enumerable:!0,configurable:!0,writable:!0,value:n
26747
26756
  }):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);let YOe=class e extends jie{
@@ -28382,10 +28391,10 @@ r.delete(e),o.value===e&&(o.value=null)})(e.uid)
28382
28391
  button:Tr((()=>[ti(Rxe,{click:s},{title:Tr((()=>[oi("Add Environment")])),_:1
28383
28392
  })])),_:1}),ti(Wne,{class:"flex-1"},{default:Tr((()=>[ti(Lre,null,Jr({
28384
28393
  default:Tr((()=>[o.value?(za(),Xa(lye,{key:0,class:"pl-px pr-2 md:px-2 py-2.5",
28385
- lineNumbers:"",modelValue:Fn(n)[o.value].value,"onUpdate:modelValue":l
28386
- },null,8,["modelValue"])):ii("",!0)])),_:2},[o.value?{name:"title",
28387
- fn:Tr((()=>[!i.value||Fn(n)[o.value].isDefault?(za(),Wa("span",{key:0,
28388
- onDblclick:u},st(Fn(n)[o.value].name),33)):(za(),Wa("input",{key:1,
28394
+ language:"json",lineNumbers:"",modelValue:Fn(n)[o.value].value,
28395
+ "onUpdate:modelValue":l},null,8,["modelValue"])):ii("",!0)])),_:2},[o.value?{
28396
+ name:"title",fn:Tr((()=>[!i.value||Fn(n)[o.value].isDefault?(za(),Wa("span",{
28397
+ key:0,onDblclick:u},st(Fn(n)[o.value].name),33)):(za(),Wa("input",{key:1,
28389
28398
  ref_key:"nameInputRef",ref:a,
28390
28399
  class:"ring-1 ring-offset-4 ring-b-outline rounded",spellcheck:"false",
28391
28400
  type:"text",value:Fn(n)[o.value].name,onBlur:t[0]||(t[0]=e=>i.value=!1),