mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 23:55:20 +00:00
Update scalar dependency (#2652)
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'@gitbook/react-openapi': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Updated scalar depdenency
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
},
|
},
|
||||||
"version": "0.7.1",
|
"version": "0.7.1",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@scalar/api-client-react": "1.0.87",
|
"@scalar/api-client-react": "1.1.2",
|
||||||
"classnames": "^2.5.1",
|
"classnames": "^2.5.1",
|
||||||
"flatted": "^3.2.9",
|
"flatted": "^3.2.9",
|
||||||
"openapi-types": "^12.1.3",
|
"openapi-types": "^12.1.3",
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export function OpenAPIOperation(props: {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<ApiClientModalProvider
|
<ApiClientModalProvider
|
||||||
configuration={{ spec: { url: context.specUrl } }}
|
configuration={{ spec: { url: context.specUrl }, showSidebar: false }}
|
||||||
initialRequest={{ path: data.path, method: data.method }}
|
initialRequest={{ path: data.path, method: data.method }}
|
||||||
>
|
>
|
||||||
<div className={classNames('openapi-operation', className)}>
|
<div className={classNames('openapi-operation', className)}>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export function ScalarApiButton({ method, path }: { method: string; path: string
|
|||||||
<div className="scalar scalar-activate">
|
<div className="scalar scalar-activate">
|
||||||
<button
|
<button
|
||||||
className="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">
|
<svg xmlns="http://www.w3.org/2000/svg" width="10" height="12" fill="none">
|
||||||
<path
|
<path
|
||||||
|
|||||||
Reference in New Issue
Block a user