Skip to content

Commit

Permalink
Update scalar dependency (#2652)
Browse files Browse the repository at this point in the history
  • Loading branch information
amritk authored Dec 20, 2024
1 parent 6ba3ae7 commit fc7b16f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/shiny-seahorses-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@gitbook/react-openapi': patch
---

Updated scalar depdenency
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/react-openapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-openapi/src/OpenAPIOperation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)}>
Expand Down
2 changes: 1 addition & 1 deletion packages/react-openapi/src/ScalarApiButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fc7b16f

Please sign in to comment.