@scalar/api-reference 1.25.55 → 1.25.56
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.56
|
|
9
9
|
*
|
|
10
10
|
* Website: https://scalar.com
|
|
11
11
|
* GitHub: https://github.com/scalar/scalar
|
|
@@ -19713,7 +19713,7 @@ fn:xr((t=>[To(e.$slots,n,tt(ii(t||{})))]))
|
|
|
19713
19713
|
__name:"OpenApiClientButton",props:{buttonSource:{},isDevelopment:{type:Boolean
|
|
19714
19714
|
},integration:{},url:{}},setup(e){const t=$i((()=>{const t=(e=>{
|
|
19715
19715
|
if(!e||e.startsWith("http://")||e.startsWith("https://")||"undefined"==typeof window)return e
|
|
19716
|
-
;const t=window.location.href.split("?")[0].split("#")[0],n=t.endsWith("/")?t:t
|
|
19716
|
+
;const t=window.location.href.split("?")[0].split("#")[0],n=t.endsWith("/")?t:t.substring(0,t.lastIndexOf("/")+1)
|
|
19717
19717
|
;return new URL(e,n).toString()})(e.url);if(null==t||!t.length)return
|
|
19718
19718
|
;const n=new URL(e.isDevelopment?"http://localhost:5065":"https://client.scalar.com")
|
|
19719
19719
|
;return n.searchParams.set("url",t),
|
|
@@ -27152,7 +27152,7 @@ _:2},1024),ai(Un($ve),{modelValue:r.value.includes(e),
|
|
|
27152
27152
|
"onUpdate:modelValue":()=>{}},null,8,["modelValue"])])),_:2
|
|
27153
27153
|
},1032,["onClick"])))),128))])])),_:1})]})),_:1})])])),_:1}))}
|
|
27154
27154
|
}),wbe=e=>e.type.startsWith("oauth"),kbe=async(e,t,n,r)=>{
|
|
27155
|
-
if(!("clientSecret"in t))throw new Error("Authorize Servers only works for Client Credentials or Authorization Code flow")
|
|
27155
|
+
if(!("clientSecret"in t))throw new Error("Authorize Servers only works for Password, Client Credentials or Authorization Code flow")
|
|
27156
27156
|
;if(!e.flow)throw new Error("OAuth2 flow was not defined")
|
|
27157
27157
|
;const o=new URLSearchParams
|
|
27158
27158
|
;o.set("client_id",e["x-scalar-client-id"]),o.set("scope",n),
|
|
@@ -27189,11 +27189,10 @@ const e=new URL(l.location.href).searchParams
|
|
|
27189
27189
|
;c=e.get("access_token"),u=e.get("code")
|
|
27190
27190
|
;const t=new URLSearchParams(l.location.href.split("#")[1])
|
|
27191
27191
|
;c||(c=t.get("access_token")),u||(u=t.get("code"))}catch{}
|
|
27192
|
-
|
|
27193
|
-
|
|
27194
|
-
|
|
27195
|
-
}
|
|
27196
|
-
}),200)}}})))(t.scheme,t.example,o.value).finally((()=>n.stopLoading()))
|
|
27192
|
+
(l.closed||c||u)&&(clearInterval(n),
|
|
27193
|
+
l.close(),c?(null==(s=l.location.href.match(/state=([^&]*)/))?void 0:s[1])===i?r(c):o(new Error("State mismatch")):u?new URL(l.location.href).searchParams.get("state")===i?kbe(e,t,a,u).then(r).catch(o):o(new Error("State mismatch")):(clearInterval(n),
|
|
27194
|
+
o(new Error("Window was closed without granting authorization"))))}),200)}}
|
|
27195
|
+
})))(t.scheme,t.example,o.value).finally((()=>n.stopLoading()))
|
|
27197
27196
|
;a&&l(`auth.${t.scheme.uid}.token`,a)}
|
|
27198
27197
|
;return(e,r)=>e.example.token?(Wa(),Ka(Fa,{key:0},[ai(Un(Eve),null,{
|
|
27199
27198
|
default:xr((()=>[ai(mbe,{id:"oauth2-access-token",class:"border-r-transparent",
|
|
@@ -27663,7 +27662,7 @@ r.commandPalette.emit({commandName:"Create Request"})},s=e=>{
|
|
|
27663
27662
|
null!=e&&e.createNew&&"request"===o.name&&i()};return co((()=>r.hotKeys.on(s))),
|
|
27664
27663
|
ho((()=>r.hotKeys.off(s))),
|
|
27665
27664
|
(e,o)=>(Wa(),Ka("div",Nye,[oi("div",Mye,[Un(n).isReadOnly?ui("",!0):(Wa(),
|
|
27666
|
-
Ka("div",Iye,[li(" Scalar V"+st(Un("2.1.
|
|
27665
|
+
Ka("div",Iye,[li(" Scalar V"+st(Un("2.1.41"))+" ",1),o[1]||(o[1]=oi("b",null,"Beta",-1)),o[2]||(o[2]=li(" Release ")),o[3]||(o[3]=oi("div",{
|
|
27667
27666
|
class:"mt-1"},[oi("a",{href:"https://github.com/scalar/scalar/issues/2669",
|
|
27668
27667
|
target:"_blank"}," Roadmap ")],-1))])),ai(Rye,{
|
|
27669
27668
|
art:Un(" .,,uod8B8bou,,.\n ..,uod8BBBBBBBBBBBBBBBBRPFT?l!i:.\n ||||||||||||||!?TFPRBBBBBBBBBBBBBBB8m=,\n |||| '\"\"^^!!||||||||||TFPRBBBVT!:...!\n |||| '\"\"^^!!|||||?!:.......!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n ||||, ||||.........`\n |||||!!-._ ||||.......;.\n ':!|||||||||!!-._ ||||.....bBBBBWdou,.\n bBBBBB86foi!|||||||!!-..:|||!..bBBBBBBBBBBBBBBY!\n ::!?TFPRBBBBBB86foi!||||||||!!bBBBBBBBBBBBBBBY..!\n :::::::::!?TFPRBBBBBB86ftiaabBBBBBBBBBBBBBBY....!\n :::;`\"^!:;::::::!?TFPRBBBBBBBBBBBBBBBBBBBY......!\n ;::::::...''^::::::::::!?TFPRBBBBBBBBBBY........!\n .ob86foi;::::::::::::::::::::::::!?TFPRBY..........`\n .b888888888886foi;:::::::::::::::::::::::..........`\n .b888888888888888888886foi;::::::::::::::::..........\n.b888888888888888888888888888886foi;:::::::::......`\n!Tf998888888888888888888888888888888886foi;:::....`\n '\"^!|Tf9988888888888888888888888888888888!::..`\n '\"^!|Tf998888888888888888888888889!! '`\n '\"^!|Tf9988888888888888888!!` iBBbo.\n '\"^!|Tf998888888889!` WBBBBbo.\n '\"^!|Tf9989!` YBBBP^'\n '\"^!` `\n"),
|