mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-20 17:43:24 +00:00
Remove stable from x-stability (#3083)
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
'@gitbook/openapi-parser': patch
|
||||||
|
'@gitbook/react-openapi': patch
|
||||||
|
'gitbook': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Remove stable from x-stability
|
||||||
@@ -29,10 +29,6 @@
|
|||||||
@apply py-0.5 px-1.5 min-w-[1.625rem] font-normal w-fit justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-sm leading-[calc(max(1.20em,1.25rem))] before:!content-none after:!content-none;
|
@apply py-0.5 px-1.5 min-w-[1.625rem] font-normal w-fit justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-sm leading-[calc(max(1.20em,1.25rem))] before:!content-none after:!content-none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.openapi-stability-stable {
|
|
||||||
@apply text-green-600 dark:text-green-300 bg-green-50 dark:bg-green-900/6 ring-green-500/5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.openapi-stability-alpha {
|
.openapi-stability-alpha {
|
||||||
@apply text-amber-700 dark:text-amber-300 bg-amber-50 dark:bg-amber-900/6 ring-amber-500/5;
|
@apply text-amber-700 dark:text-amber-300 bg-amber-50 dark:bg-amber-900/6 ring-amber-500/5;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,12 +65,12 @@ export interface OpenAPICustomOperationProperties {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Stability of the operation.
|
* Stability of the operation.
|
||||||
* @enum 'experimental' | 'alpha' | 'beta' | 'stable'
|
* @enum 'experimental' | 'alpha' | 'beta'
|
||||||
*/
|
*/
|
||||||
'x-stability'?: OpenAPIStability;
|
'x-stability'?: OpenAPIStability;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type OpenAPIStability = 'experimental' | 'alpha' | 'beta' | 'stable';
|
export type OpenAPIStability = 'experimental' | 'alpha' | 'beta';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Custom code samples that can be defined at the operation level.
|
* Custom code samples that can be defined at the operation level.
|
||||||
|
|||||||
@@ -108,7 +108,6 @@ const stabilityEnum = {
|
|||||||
experimental: 'Experimental',
|
experimental: 'Experimental',
|
||||||
alpha: 'Alpha',
|
alpha: 'Alpha',
|
||||||
beta: 'Beta',
|
beta: 'Beta',
|
||||||
stable: 'Stable',
|
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
function OpenAPIOperationStability(props: { stability: OpenAPIStability }) {
|
function OpenAPIOperationStability(props: { stability: OpenAPIStability }) {
|
||||||
|
|||||||
Reference in New Issue
Block a user