Update scalar dependency (#2652)

This commit is contained in:
Amrit Kahlon
2024-12-20 14:16:11 -08:00
committed by GitHub
parent 6ba3ae74d5
commit fc7b16f6a7
5 changed files with 8 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@gitbook/react-openapi': patch
---
Updated scalar depdenency
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -10,7 +10,7 @@
},
"version": "0.7.1",
"dependencies": {
"@scalar/api-client-react": "1.0.87",
"@scalar/api-client-react": "1.1.2",
"classnames": "^2.5.1",
"flatted": "^3.2.9",
"openapi-types": "^12.1.3",
@@ -29,7 +29,7 @@ export function OpenAPIOperation(props: {
return (
<ApiClientModalProvider
configuration={{ spec: { url: context.specUrl } }}
configuration={{ spec: { url: context.specUrl }, showSidebar: false }}
initialRequest={{ path: data.path, method: data.method }}
>
<div className={classNames('openapi-operation', className)}>
@@ -13,7 +13,7 @@ export function ScalarApiButton({ method, path }: { method: string; path: string
<div className="scalar scalar-activate">
<button
className="scalar-activate-button"
onClick={() => client?.open({ method, path })}
onClick={() => client?.open({ method, path, _source: 'gitbook' })}
>
<svg xmlns="http://www.w3.org/2000/svg" width="10" height="12" fill="none">
<path