Compare commits

...

3 Commits

Author SHA1 Message Date
Samy Pessé 88ffdcc303 Version Packages (#3172)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-22 11:20:21 +02:00
Nolann B. b6b09d42af Fix OpenAPI responses select placement and icon (#3174) 2025-04-22 10:59:42 +02:00
Nolann B. ebc39e9db9 Missing select icon (#3171) 2025-04-18 16:26:59 +02:00
6 changed files with 19 additions and 2 deletions
+8
View File
@@ -1,5 +1,13 @@
# gitbook # gitbook
## 0.11.1
### Patch Changes
- Updated dependencies [ebc39e9]
- Updated dependencies [b6b09d4]
- @gitbook/react-openapi@1.2.1
## 0.11.0 ## 0.11.0
### Minor Changes ### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "gitbook", "name": "gitbook",
"version": "0.11.0", "version": "0.11.1",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "env-cmd --silent -f ../../.env.local next dev", "dev": "env-cmd --silent -f ../../.env.local next dev",
+7
View File
@@ -1,5 +1,12 @@
# @gitbook/react-openapi # @gitbook/react-openapi
## 1.2.1
### Patch Changes
- ebc39e9: Missing select icon
- b6b09d4: Fix OpenAPI responses select placement and icon
## 1.2.0 ## 1.2.0
### Minor Changes ### Minor Changes
+1 -1
View File
@@ -8,7 +8,7 @@
"default": "./dist/index.js" "default": "./dist/index.js"
} }
}, },
"version": "1.2.0", "version": "1.2.1",
"sideEffects": false, "sideEffects": false,
"dependencies": { "dependencies": {
"@gitbook/openapi-parser": "workspace:*", "@gitbook/openapi-parser": "workspace:*",
@@ -132,6 +132,7 @@ function DisclosureItem(props: {
state.expand(); state.expand();
}} }}
items={group.tabs} items={group.tabs}
placement="bottom end"
> >
{group.tabs.map((tab) => ( {group.tabs.map((tab) => (
<OpenAPISelectItem key={tab.key} id={tab.key} value={tab}> <OpenAPISelectItem key={tab.key} id={tab.key} value={tab}>
@@ -98,6 +98,7 @@ export function OpenAPIResponses(props: {
state.setKey(key); state.setKey(key);
}} }}
groups={groups} groups={groups}
selectIcon={context.icons.chevronDown}
selectStateKey={createStateKey('response-media-types', context.blockKey)} selectStateKey={createStateKey('response-media-types', context.blockKey)}
/> />
</StaticSection> </StaticSection>