@redocly/openapi-docs 3.22.0-next.1 → 3.22.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/redocly-openapi-docs.min.js +2734 -2762
- package/lib/components/ApiInfo/ApiInfo.d.ts +1 -1
- package/lib/components/Callbacks/CallbackDetails.js +2 -2
- package/lib/components/Callbacks/CallbackSummary.d.ts +1 -1
- package/lib/components/ContentItem/ContentItem.js +1 -1
- package/lib/components/ContentItem/useIsExpanded.d.ts +1 -1
- package/lib/components/ContentItems/ContentItems.js +1 -1
- package/lib/components/ContentItems/Items.js +1 -1
- package/lib/components/Download/DownloadSpecification.d.ts +1 -1
- package/lib/components/Download/DownloadSpecification.js +2 -2
- package/lib/components/ErrorBoundary/ErrorBoundary.js +1 -1
- package/lib/components/ExpandAllButton/ExpandAllButton.js +2 -2
- package/lib/components/Language/LanguageItem.js +1 -1
- package/lib/components/Language/LanguageList.js +1 -1
- package/lib/components/Language/styled.js +1 -1
- package/lib/components/Markdown/Markdown.js +1 -1
- package/lib/components/McpOverview/McpOverview.d.ts +1 -1
- package/lib/components/McpOverview/McpOverview.js +1 -1
- package/lib/components/McpTool/McpPrompt.js +1 -1
- package/lib/components/McpTool/McpResource.js +1 -1
- package/lib/components/McpTool/McpTool.js +1 -1
- package/lib/components/MediaTypeSwitch/MediaTypesSwitch.js +1 -1
- package/lib/components/OperationItem/Description.js +1 -1
- package/lib/components/OperationItem/OperationItem.js +1 -1
- package/lib/components/Overview/Overview.js +1 -1
- package/lib/components/PayloadSamples/Example.d.ts +1 -1
- package/lib/components/PayloadSamples/ExampleValue.d.ts +1 -1
- package/lib/components/PayloadSamples/MediaTypeSamples.js +1 -1
- package/lib/components/PropertyDetails/DescriptionEnums.d.ts +1 -1
- package/lib/components/PropertyDetails/DescriptionEnums.js +1 -1
- package/lib/components/PropertyDetails/EnumValues.js +1 -1
- package/lib/components/PropertyDetails/Examples.js +1 -1
- package/lib/components/PropertyDetails/Extensions.js +2 -2
- package/lib/components/PropertyDetails/FieldDetail.js +1 -1
- package/lib/components/PropertyDetails/FieldDetails.js +2 -2
- package/lib/components/PropertyDetails/Pattern.js +1 -1
- package/lib/components/PropertyDetails/SchemaTypeInfo.js +1 -1
- package/lib/components/PropertyDetails/SimpleEnums.d.ts +1 -1
- package/lib/components/PropertyDetails/SimpleEnums.js +1 -1
- package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.d.ts +1 -1
- package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js +1 -1
- package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsStandalone.d.ts +1 -1
- package/lib/components/Replay/EmbeddedReplay.d.ts +1 -1
- package/lib/components/Replay/Replay.js +1 -1
- package/lib/components/Replay/utils.d.ts +1 -1
- package/lib/components/Request/RequestDetails.js +1 -1
- package/lib/components/RequestParameters/ParametersGroup.js +1 -1
- package/lib/components/RequestParameters/RequestParameters.d.ts +1 -1
- package/lib/components/RequestParameters/RequestParameters.js +1 -1
- package/lib/components/RequestSamples/Example.js +1 -1
- package/lib/components/RequestSamples/RequestSamples.js +2 -2
- package/lib/components/RequestSamples/useCodeSamples.d.ts +1 -1
- package/lib/components/ResponseSamples/ResponseSamples.d.ts +1 -1
- package/lib/components/ResponseSamples/ResponseSamples.js +1 -1
- package/lib/components/Responses/OperationResponseList.js +1 -1
- package/lib/components/Responses/ResponseDetails.js +1 -1
- package/lib/components/RightPanel/RightPanel.js +1 -1
- package/lib/components/Schema/ArraySchema.js +1 -1
- package/lib/components/Schema/ObjectSchema.js +1 -1
- package/lib/components/Schema/OneOfSchema.js +1 -1
- package/lib/components/Schema/helpers.d.ts +1 -1
- package/lib/components/SectionContent/SectionContent.d.ts +1 -1
- package/lib/components/SectionContent/SectionContent.js +1 -1
- package/lib/components/SectionItem/SectionItem.js +1 -1
- package/lib/components/Security/OAuthFlow.js +1 -1
- package/lib/components/Security/OAuthScopes.js +1 -1
- package/lib/components/Security/RequiredScopesList.d.ts +1 -1
- package/lib/components/Security/RequiredScopesList.js +1 -1
- package/lib/components/Security/ScopeTagWithTooltip.d.ts +1 -1
- package/lib/components/Security/Security.js +1 -1
- package/lib/components/Security/SecurityFlow.d.ts +1 -1
- package/lib/components/Security/SecurityFlow.js +1 -1
- package/lib/components/ServerListDropdown/ServerListDropdown.js +1 -1
- package/lib/components/ServerListDropdown/styled.js +1 -1
- package/lib/components/StickySidebar/SidebarActions.js +1 -1
- package/lib/components/StickySidebar/StickyResponsiveSidebar.js +2 -2
- package/lib/components/TagItem/Breadcrumbs.js +1 -1
- package/lib/components/TagItem/OperationNavigationItems.d.ts +1 -1
- package/lib/components/TagItem/OperationNavigationItems.js +1 -1
- package/lib/components/TagItem/OperationsNavigation.d.ts +1 -1
- package/lib/components/TagItem/TagItem.d.ts +1 -1
- package/lib/components/TagItem/TagItem.js +1 -1
- package/lib/components/ViewNested/ViewNested.js +1 -1
- package/lib/components/common/Badges.js +1 -1
- package/lib/components/common/BodyContent/BodyContent.js +2 -2
- package/lib/components/common/ConstraintsView.js +1 -1
- package/lib/components/common/Dropdown/Dropdown.d.ts +1 -1
- package/lib/components/common/Dropdown/Dropdown.js +1 -1
- package/lib/components/common/Extensions.js +2 -2
- package/lib/components/common/LinkToField.js +1 -1
- package/lib/components/common/OperationItemTitle.js +2 -2
- package/lib/components/common/SchemaSelection/SchemaSelection.d.ts +1 -1
- package/lib/components/common/linkify.js +1 -1
- package/lib/components/common/mixins.d.ts +1 -1
- package/lib/empty.d.ts +4 -4
- package/lib/jotai/app.d.ts +2 -2
- package/lib/jotai/operation.d.ts +1 -1
- package/lib/models/mediaContent.d.ts +1 -1
- package/lib/models/mediaType.d.ts +1 -1
- package/lib/models/request.d.ts +1 -1
- package/lib/models/response.d.ts +1 -1
- package/lib/models/schema.d.ts +1 -1
- package/lib/models/security.d.ts +1 -1
- package/lib/services/code-samples/generator.d.ts +1 -1
- package/lib/services/code-samples/httpsnippet/helpers/code-builder.d.ts +1 -1
- package/lib/services/code-samples/httpsnippet/helpers/code-helpers.d.ts +3 -3
- package/lib/services/code-samples/httpsnippet/targets/__mocks__/mock.d.ts +39 -39
- package/lib/services/code-samples/httpsnippet/targets/index.d.ts +1 -1
- package/lib/services/code-samples/httpsnippet/targets/javascript/index.d.ts +1 -1
- package/lib/utils/helpers.d.ts +1 -1
- package/lib/utils/openapi.d.ts +1 -1
- package/lib/utils/theme-helpers.d.ts +2 -2
- package/package.json +12 -13
package/lib/jotai/app.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ type LanguageAtom = {
|
|
|
26
26
|
})[];
|
|
27
27
|
activeLanguage: string;
|
|
28
28
|
};
|
|
29
|
-
export declare const appStore: import("jotai").WritableAtom<AppStore, [
|
|
29
|
+
export declare const appStore: import("jotai").WritableAtom<AppStore, [typeof import("jotai/utils").RESET | AppStore | ((prev: AppStore) => typeof import("jotai/utils").RESET | AppStore)], void>;
|
|
30
30
|
export declare const appStoreOverrideAtom: import("jotai").PrimitiveAtom<Partial<AppStore> | undefined> & {
|
|
31
31
|
init: Partial<AppStore> | undefined;
|
|
32
32
|
};
|
|
@@ -43,7 +43,7 @@ export declare const allowedEnvironmentsAtom: import("jotai").WritableAtom<strin
|
|
|
43
43
|
/**
|
|
44
44
|
* appSessionStore saved to session storage
|
|
45
45
|
*/
|
|
46
|
-
export declare const appSessionStore: import("jotai").WritableAtom<AppSessionStore, [
|
|
46
|
+
export declare const appSessionStore: import("jotai").WritableAtom<AppSessionStore, [typeof import("jotai/utils").RESET | AppSessionStore | ((prev: AppSessionStore) => typeof import("jotai/utils").RESET | AppSessionStore)], void>;
|
|
47
47
|
export declare const collapsedSidebarAtom: import("jotai").WritableAtom<boolean, boolean[], void>;
|
|
48
48
|
export declare function getLangKey({ lang, label }: {
|
|
49
49
|
lang: string;
|
package/lib/jotai/operation.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare function getDefaultOperationStore(pointer: string, requestValues?
|
|
|
19
19
|
}, activeExampleName?: string): {
|
|
20
20
|
activeExampleName: string | undefined;
|
|
21
21
|
activeOneOf: {
|
|
22
|
-
[
|
|
22
|
+
[x: string]: number;
|
|
23
23
|
};
|
|
24
24
|
requestValues: {
|
|
25
25
|
[field: string]: any;
|
|
@@ -3,5 +3,5 @@ import type { MediaContentModel, MediaContentModelInput } from './types.js';
|
|
|
3
3
|
* MediaContent model ready to be sued by React components
|
|
4
4
|
* Contains multiple MediaTypes and keeps track of the currently active one
|
|
5
5
|
*/
|
|
6
|
-
export declare function getMediaContent({ parser, info, isRequestType, options, data: { operation, type, response, absolutePointer }
|
|
6
|
+
export declare function getMediaContent({ parser, info, isRequestType, options, data: { operation, type, response, absolutePointer } }: MediaContentModelInput): MediaContentModel;
|
|
7
7
|
export declare function getActiveMediaType(content: MediaContentModel, activeMimeName?: string): import("./types.js").MediaTypeModel;
|
|
@@ -11,7 +11,7 @@ import type { MediaTypeModel, ResponseModel, OperationModel } from './types.js';
|
|
|
11
11
|
* @param type
|
|
12
12
|
* @param response
|
|
13
13
|
*/
|
|
14
|
-
export declare function getMediaType(parser: OpenAPIParser, name: string, isRequestType: boolean, info: OpenAPIMediaType, options: Options, { operation, type, response, absolutePointer
|
|
14
|
+
export declare function getMediaType(parser: OpenAPIParser, name: string, isRequestType: boolean, info: OpenAPIMediaType, options: Options, { operation, type, response, absolutePointer }: {
|
|
15
15
|
operation: OperationModel;
|
|
16
16
|
type?: 'request' | 'response';
|
|
17
17
|
response?: ResponseModel;
|
package/lib/models/request.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ type GetRequestBodyInput = {
|
|
|
8
8
|
isEvent?: boolean;
|
|
9
9
|
operation: OperationModel;
|
|
10
10
|
};
|
|
11
|
-
export declare function getRequestBody({ parser, infoOrRef, options, isEvent, operation
|
|
11
|
+
export declare function getRequestBody({ parser, infoOrRef, options, isEvent, operation }: GetRequestBodyInput): RequestBodyModel;
|
|
12
12
|
export {};
|
package/lib/models/response.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ type ResponseProps = {
|
|
|
10
10
|
operation: OperationModel;
|
|
11
11
|
isEvent?: boolean;
|
|
12
12
|
};
|
|
13
|
-
export declare function getResponse({ parser, code, defaultAsError, infoOrRef, options, isEvent, operation
|
|
13
|
+
export declare function getResponse({ parser, code, defaultAsError, infoOrRef, options, isEvent, operation }: ResponseProps): ResponseModel;
|
|
14
14
|
export {};
|
package/lib/models/schema.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { OpenAPISchema, Referenced } from '../types/index.js';
|
|
2
2
|
import type { OpenAPIParser, Options } from '../services/index.js';
|
|
3
3
|
import type { Deps, SchemaModel } from './types.js';
|
|
4
|
-
export declare function getSchema({ parser, schemaOrRef, pointer, options, isChild, isDefaultMapping, baseRefsStack, deps, absolutePointer
|
|
4
|
+
export declare function getSchema({ parser, schemaOrRef, pointer, options, isChild, isDefaultMapping, baseRefsStack, deps, absolutePointer }: {
|
|
5
5
|
parser: OpenAPIParser;
|
|
6
6
|
schemaOrRef: Referenced<OpenAPISchema>;
|
|
7
7
|
pointer: string;
|
package/lib/models/security.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ import type { OpenAPIParser } from '../services/index.js';
|
|
|
3
3
|
import type { SecurityRequirement, SecurityScheme } from './types.js';
|
|
4
4
|
export declare function getSecurity(requirements: OpenAPISecurityRequirement[] | undefined, parser: OpenAPIParser): SecurityRequirement[];
|
|
5
5
|
export declare function getSecurityScheme(parser: Partial<OpenAPIParser>, id: string, scheme: Referenced<OpenAPISecurityScheme>): SecurityScheme;
|
|
6
|
-
export declare function getSecuritySchemes({ parser
|
|
6
|
+
export declare function getSecuritySchemes({ parser }: {
|
|
7
7
|
parser: Partial<OpenAPIParser>;
|
|
8
8
|
}): Array<SecurityScheme>;
|
|
@@ -18,7 +18,7 @@ export type CustomHAR = HAR.Request & {
|
|
|
18
18
|
};
|
|
19
19
|
export declare function safeSample(schema: JSONSchema7, options: Sampler.Options, document: object): any;
|
|
20
20
|
export declare function objectToHarParams(obj: GenericObject, parentKey?: string): HAR.Param[];
|
|
21
|
-
export declare function getCodeSample({ lang, operation, exampleName, pathParams, properties, options, environment, translate
|
|
21
|
+
export declare function getCodeSample({ lang, operation, exampleName, pathParams, properties, options, environment, translate }: {
|
|
22
22
|
lang: Languages;
|
|
23
23
|
operation: OperationModel;
|
|
24
24
|
exampleName?: string;
|
|
@@ -25,7 +25,7 @@ export declare class CodeBuilder {
|
|
|
25
25
|
urlFieldName: string;
|
|
26
26
|
rawName: boolean;
|
|
27
27
|
};
|
|
28
|
-
constructor({ indentation, lineJoin, variablesPrefix, capitalize, lang
|
|
28
|
+
constructor({ indentation, lineJoin, variablesPrefix, capitalize, lang }: {
|
|
29
29
|
indentation: string;
|
|
30
30
|
lineJoin?: string;
|
|
31
31
|
variablesPrefix?: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { SnippetRequest } from '../index.js';
|
|
2
2
|
import type { CodeBuilder } from './code-builder.js';
|
|
3
|
-
export declare function getPreserveTransformer({ body, authorizationHeader
|
|
3
|
+
export declare function getPreserveTransformer({ body, authorizationHeader }: {
|
|
4
4
|
body?: boolean;
|
|
5
5
|
authorizationHeader?: boolean;
|
|
6
6
|
}): (input: GenericObject, prop: string, originalResult: string) => string;
|
|
7
7
|
export declare function addIndentation(str: string, { level, indent, firstLine }?: {
|
|
8
|
-
level?: number | undefined;
|
|
9
|
-
indent?: string | undefined;
|
|
10
8
|
firstLine?: boolean | undefined;
|
|
9
|
+
indent?: string | undefined;
|
|
10
|
+
level?: number | undefined;
|
|
11
11
|
}): string;
|
|
12
12
|
export type CodeOperand = {
|
|
13
13
|
type: 'string';
|
|
@@ -39,8 +39,8 @@ export declare const originalOptions: {
|
|
|
39
39
|
'x-displayName'?: undefined;
|
|
40
40
|
} | {
|
|
41
41
|
name: string;
|
|
42
|
-
description?: undefined;
|
|
43
42
|
'x-displayName'?: undefined;
|
|
43
|
+
description?: undefined;
|
|
44
44
|
} | {
|
|
45
45
|
name: string;
|
|
46
46
|
'x-displayName': string;
|
|
@@ -64,16 +64,16 @@ export declare const originalOptions: {
|
|
|
64
64
|
format?: undefined;
|
|
65
65
|
};
|
|
66
66
|
} | {
|
|
67
|
+
example?: undefined;
|
|
67
68
|
name: string;
|
|
68
69
|
in: string;
|
|
69
70
|
description: string;
|
|
70
71
|
required: boolean;
|
|
71
72
|
schema: {
|
|
73
|
+
default?: undefined;
|
|
72
74
|
type: string;
|
|
73
75
|
format: string;
|
|
74
|
-
default?: undefined;
|
|
75
76
|
};
|
|
76
|
-
example?: undefined;
|
|
77
77
|
})[];
|
|
78
78
|
post: {
|
|
79
79
|
tags: string[];
|
|
@@ -217,16 +217,17 @@ export declare const originalOptions: {
|
|
|
217
217
|
description: string;
|
|
218
218
|
operationId: string;
|
|
219
219
|
parameters: ({
|
|
220
|
+
description?: undefined;
|
|
220
221
|
name: string;
|
|
221
222
|
in: string;
|
|
222
223
|
required: boolean;
|
|
223
224
|
schema: {
|
|
224
|
-
type: string;
|
|
225
225
|
format?: undefined;
|
|
226
|
+
type: string;
|
|
226
227
|
};
|
|
227
228
|
example: string;
|
|
228
|
-
description?: undefined;
|
|
229
229
|
} | {
|
|
230
|
+
example?: undefined;
|
|
230
231
|
name: string;
|
|
231
232
|
in: string;
|
|
232
233
|
description: string;
|
|
@@ -235,7 +236,6 @@ export declare const originalOptions: {
|
|
|
235
236
|
type: string;
|
|
236
237
|
format: string;
|
|
237
238
|
};
|
|
238
|
-
example?: undefined;
|
|
239
239
|
})[];
|
|
240
240
|
responses: {
|
|
241
241
|
'400': {
|
|
@@ -1104,6 +1104,7 @@ export declare const originalOptions: {
|
|
|
1104
1104
|
properties?: undefined;
|
|
1105
1105
|
required?: undefined;
|
|
1106
1106
|
} | {
|
|
1107
|
+
$ref?: undefined;
|
|
1107
1108
|
type: string;
|
|
1108
1109
|
properties: {
|
|
1109
1110
|
huntingSkill: {
|
|
@@ -1115,7 +1116,6 @@ export declare const originalOptions: {
|
|
|
1115
1116
|
};
|
|
1116
1117
|
};
|
|
1117
1118
|
required: string[];
|
|
1118
|
-
$ref?: undefined;
|
|
1119
1119
|
})[];
|
|
1120
1120
|
};
|
|
1121
1121
|
Category: {
|
|
@@ -1150,11 +1150,12 @@ export declare const originalOptions: {
|
|
|
1150
1150
|
Dog: {
|
|
1151
1151
|
description: string;
|
|
1152
1152
|
allOf: ({
|
|
1153
|
-
$ref: string;
|
|
1154
1153
|
type?: undefined;
|
|
1155
1154
|
properties?: undefined;
|
|
1156
1155
|
required?: undefined;
|
|
1156
|
+
$ref: string;
|
|
1157
1157
|
} | {
|
|
1158
|
+
$ref?: undefined;
|
|
1158
1159
|
type: string;
|
|
1159
1160
|
properties: {
|
|
1160
1161
|
packSize: {
|
|
@@ -1166,17 +1167,17 @@ export declare const originalOptions: {
|
|
|
1166
1167
|
};
|
|
1167
1168
|
};
|
|
1168
1169
|
required: string[];
|
|
1169
|
-
$ref?: undefined;
|
|
1170
1170
|
})[];
|
|
1171
1171
|
};
|
|
1172
1172
|
HoneyBee: {
|
|
1173
1173
|
description: string;
|
|
1174
1174
|
allOf: ({
|
|
1175
|
-
$ref: string;
|
|
1176
1175
|
type?: undefined;
|
|
1177
1176
|
properties?: undefined;
|
|
1178
1177
|
required?: undefined;
|
|
1178
|
+
$ref: string;
|
|
1179
1179
|
} | {
|
|
1180
|
+
$ref?: undefined;
|
|
1180
1181
|
type: string;
|
|
1181
1182
|
properties: {
|
|
1182
1183
|
honeyPerDay: {
|
|
@@ -1187,7 +1188,6 @@ export declare const originalOptions: {
|
|
|
1187
1188
|
};
|
|
1188
1189
|
};
|
|
1189
1190
|
required: string[];
|
|
1190
|
-
$ref?: undefined;
|
|
1191
1191
|
})[];
|
|
1192
1192
|
};
|
|
1193
1193
|
Id: {
|
|
@@ -1404,13 +1404,13 @@ export declare const originalOptions: {
|
|
|
1404
1404
|
'application/json': {
|
|
1405
1405
|
schema: {
|
|
1406
1406
|
allOf: ({
|
|
1407
|
+
$ref?: undefined;
|
|
1407
1408
|
description: string;
|
|
1408
1409
|
title: string;
|
|
1409
|
-
$ref?: undefined;
|
|
1410
1410
|
} | {
|
|
1411
|
-
$ref: string;
|
|
1412
1411
|
description?: undefined;
|
|
1413
1412
|
title?: undefined;
|
|
1413
|
+
$ref: string;
|
|
1414
1414
|
})[];
|
|
1415
1415
|
};
|
|
1416
1416
|
};
|
|
@@ -1509,19 +1509,6 @@ export declare const serverVariablesOptions: {
|
|
|
1509
1509
|
skipOptionalParameters: boolean;
|
|
1510
1510
|
withOAuth2Call: boolean;
|
|
1511
1511
|
spec: {
|
|
1512
|
-
servers: {
|
|
1513
|
-
url: string;
|
|
1514
|
-
variables: {
|
|
1515
|
-
customerId: {
|
|
1516
|
-
default: string;
|
|
1517
|
-
description: string;
|
|
1518
|
-
};
|
|
1519
|
-
port: {
|
|
1520
|
-
enum: string[];
|
|
1521
|
-
default: string;
|
|
1522
|
-
};
|
|
1523
|
-
};
|
|
1524
|
-
}[];
|
|
1525
1512
|
openapi: string;
|
|
1526
1513
|
info: {
|
|
1527
1514
|
description: string;
|
|
@@ -1552,8 +1539,8 @@ export declare const serverVariablesOptions: {
|
|
|
1552
1539
|
'x-displayName'?: undefined;
|
|
1553
1540
|
} | {
|
|
1554
1541
|
name: string;
|
|
1555
|
-
description?: undefined;
|
|
1556
1542
|
'x-displayName'?: undefined;
|
|
1543
|
+
description?: undefined;
|
|
1557
1544
|
} | {
|
|
1558
1545
|
name: string;
|
|
1559
1546
|
'x-displayName': string;
|
|
@@ -1577,16 +1564,16 @@ export declare const serverVariablesOptions: {
|
|
|
1577
1564
|
format?: undefined;
|
|
1578
1565
|
};
|
|
1579
1566
|
} | {
|
|
1567
|
+
example?: undefined;
|
|
1580
1568
|
name: string;
|
|
1581
1569
|
in: string;
|
|
1582
1570
|
description: string;
|
|
1583
1571
|
required: boolean;
|
|
1584
1572
|
schema: {
|
|
1573
|
+
default?: undefined;
|
|
1585
1574
|
type: string;
|
|
1586
1575
|
format: string;
|
|
1587
|
-
default?: undefined;
|
|
1588
1576
|
};
|
|
1589
|
-
example?: undefined;
|
|
1590
1577
|
})[];
|
|
1591
1578
|
post: {
|
|
1592
1579
|
tags: string[];
|
|
@@ -1730,16 +1717,17 @@ export declare const serverVariablesOptions: {
|
|
|
1730
1717
|
description: string;
|
|
1731
1718
|
operationId: string;
|
|
1732
1719
|
parameters: ({
|
|
1720
|
+
description?: undefined;
|
|
1733
1721
|
name: string;
|
|
1734
1722
|
in: string;
|
|
1735
1723
|
required: boolean;
|
|
1736
1724
|
schema: {
|
|
1737
|
-
type: string;
|
|
1738
1725
|
format?: undefined;
|
|
1726
|
+
type: string;
|
|
1739
1727
|
};
|
|
1740
1728
|
example: string;
|
|
1741
|
-
description?: undefined;
|
|
1742
1729
|
} | {
|
|
1730
|
+
example?: undefined;
|
|
1743
1731
|
name: string;
|
|
1744
1732
|
in: string;
|
|
1745
1733
|
description: string;
|
|
@@ -1748,7 +1736,6 @@ export declare const serverVariablesOptions: {
|
|
|
1748
1736
|
type: string;
|
|
1749
1737
|
format: string;
|
|
1750
1738
|
};
|
|
1751
|
-
example?: undefined;
|
|
1752
1739
|
})[];
|
|
1753
1740
|
responses: {
|
|
1754
1741
|
'400': {
|
|
@@ -2617,6 +2604,7 @@ export declare const serverVariablesOptions: {
|
|
|
2617
2604
|
properties?: undefined;
|
|
2618
2605
|
required?: undefined;
|
|
2619
2606
|
} | {
|
|
2607
|
+
$ref?: undefined;
|
|
2620
2608
|
type: string;
|
|
2621
2609
|
properties: {
|
|
2622
2610
|
huntingSkill: {
|
|
@@ -2628,7 +2616,6 @@ export declare const serverVariablesOptions: {
|
|
|
2628
2616
|
};
|
|
2629
2617
|
};
|
|
2630
2618
|
required: string[];
|
|
2631
|
-
$ref?: undefined;
|
|
2632
2619
|
})[];
|
|
2633
2620
|
};
|
|
2634
2621
|
Category: {
|
|
@@ -2663,11 +2650,12 @@ export declare const serverVariablesOptions: {
|
|
|
2663
2650
|
Dog: {
|
|
2664
2651
|
description: string;
|
|
2665
2652
|
allOf: ({
|
|
2666
|
-
$ref: string;
|
|
2667
2653
|
type?: undefined;
|
|
2668
2654
|
properties?: undefined;
|
|
2669
2655
|
required?: undefined;
|
|
2656
|
+
$ref: string;
|
|
2670
2657
|
} | {
|
|
2658
|
+
$ref?: undefined;
|
|
2671
2659
|
type: string;
|
|
2672
2660
|
properties: {
|
|
2673
2661
|
packSize: {
|
|
@@ -2679,17 +2667,17 @@ export declare const serverVariablesOptions: {
|
|
|
2679
2667
|
};
|
|
2680
2668
|
};
|
|
2681
2669
|
required: string[];
|
|
2682
|
-
$ref?: undefined;
|
|
2683
2670
|
})[];
|
|
2684
2671
|
};
|
|
2685
2672
|
HoneyBee: {
|
|
2686
2673
|
description: string;
|
|
2687
2674
|
allOf: ({
|
|
2688
|
-
$ref: string;
|
|
2689
2675
|
type?: undefined;
|
|
2690
2676
|
properties?: undefined;
|
|
2691
2677
|
required?: undefined;
|
|
2678
|
+
$ref: string;
|
|
2692
2679
|
} | {
|
|
2680
|
+
$ref?: undefined;
|
|
2693
2681
|
type: string;
|
|
2694
2682
|
properties: {
|
|
2695
2683
|
honeyPerDay: {
|
|
@@ -2700,7 +2688,6 @@ export declare const serverVariablesOptions: {
|
|
|
2700
2688
|
};
|
|
2701
2689
|
};
|
|
2702
2690
|
required: string[];
|
|
2703
|
-
$ref?: undefined;
|
|
2704
2691
|
})[];
|
|
2705
2692
|
};
|
|
2706
2693
|
Id: {
|
|
@@ -2917,13 +2904,13 @@ export declare const serverVariablesOptions: {
|
|
|
2917
2904
|
'application/json': {
|
|
2918
2905
|
schema: {
|
|
2919
2906
|
allOf: ({
|
|
2907
|
+
$ref?: undefined;
|
|
2920
2908
|
description: string;
|
|
2921
2909
|
title: string;
|
|
2922
|
-
$ref?: undefined;
|
|
2923
2910
|
} | {
|
|
2924
|
-
$ref: string;
|
|
2925
2911
|
description?: undefined;
|
|
2926
2912
|
title?: undefined;
|
|
2913
|
+
$ref: string;
|
|
2927
2914
|
})[];
|
|
2928
2915
|
};
|
|
2929
2916
|
};
|
|
@@ -3013,5 +3000,18 @@ export declare const serverVariablesOptions: {
|
|
|
3013
3000
|
};
|
|
3014
3001
|
};
|
|
3015
3002
|
};
|
|
3003
|
+
servers: {
|
|
3004
|
+
url: string;
|
|
3005
|
+
variables: {
|
|
3006
|
+
customerId: {
|
|
3007
|
+
default: string;
|
|
3008
|
+
description: string;
|
|
3009
|
+
};
|
|
3010
|
+
port: {
|
|
3011
|
+
enum: string[];
|
|
3012
|
+
default: string;
|
|
3013
|
+
};
|
|
3014
|
+
};
|
|
3015
|
+
}[];
|
|
3016
3016
|
};
|
|
3017
3017
|
};
|
|
@@ -7,7 +7,7 @@ declare const targets: {
|
|
|
7
7
|
default: string;
|
|
8
8
|
};
|
|
9
9
|
fetch: import("../index.js").LanguageHandler<(import("../../types.js").BasicLanguageOptions & {
|
|
10
|
-
credentials?:
|
|
10
|
+
credentials?: 'omit' | 'same-origin' | 'include';
|
|
11
11
|
}) | undefined>;
|
|
12
12
|
};
|
|
13
13
|
node: {
|
|
@@ -6,7 +6,7 @@ declare const _default: {
|
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
8
|
fetch: import("../../index.js").LanguageHandler<(import("../../../types.js").BasicLanguageOptions & {
|
|
9
|
-
credentials?:
|
|
9
|
+
credentials?: 'omit' | 'same-origin' | 'include';
|
|
10
10
|
}) | undefined>;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
package/lib/utils/helpers.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export declare function joinStringFactory(separator: string): (...args: (string
|
|
|
42
42
|
export declare const dottedString: (...args: (string | undefined)[]) => string;
|
|
43
43
|
export declare function getWindowReferenceOptions<T>(option: string): T | null;
|
|
44
44
|
export declare const normalizeText: (text?: string | GenericObject) => string;
|
|
45
|
-
export declare const getValueFromMdParsedExtension: (item: GenericObject, key:
|
|
45
|
+
export declare const getValueFromMdParsedExtension: (item: GenericObject, key: 'description' | 'summary' | 'x-summary' | 'x-enumDescriptions') => any;
|
|
46
46
|
export declare function getServerDisplayName(server: OpenAPIServer): string | undefined;
|
|
47
47
|
export declare function isLastInArray(arr: Array<unknown>, index: number): boolean;
|
|
48
48
|
export declare function isLastProperty(obj: object, key: string): boolean;
|
package/lib/utils/openapi.d.ts
CHANGED
|
@@ -28,8 +28,8 @@ export declare function humanizeConstraints(schema: OpenAPISchema): string[];
|
|
|
28
28
|
export declare function sortByRequired(fields: FieldModel[], order?: string[]): Array<FieldModel>;
|
|
29
29
|
export declare function sortByDeprecated(fields: FieldModel[]): Array<FieldModel>;
|
|
30
30
|
export declare function mergeParams(parser: OpenAPIParser, pathParams: Array<Referenced<OpenAPIParameter>> | undefined, operationParams: Array<Referenced<OpenAPIParameter>> | undefined, { pathPointer, operationPointer }: {
|
|
31
|
-
pathPointer: any;
|
|
32
31
|
operationPointer: any;
|
|
32
|
+
pathPointer: any;
|
|
33
33
|
}): Array<{
|
|
34
34
|
paramOrRef: Referenced<OpenAPIParameter>;
|
|
35
35
|
pointer: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RuleSet } from 'styled-components';
|
|
2
2
|
export declare function getTypographyCssRulesByComponentName(componentName: string, fallbackName?: string): Record<string, string>;
|
|
3
|
-
export declare function typography(componentName: string, fallbackName?: string):
|
|
3
|
+
export declare function typography(componentName: string, fallbackName?: string): RuleSet;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/openapi-docs",
|
|
3
|
-
"version": "3.22.0-next.
|
|
3
|
+
"version": "3.22.0-next.3",
|
|
4
4
|
"description": "Redocly OpenAPI Docs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"styled-components": "^4.1.1 || ^5.3.11 || ^6.0.0"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
+
"@babel/core": "7.29.7",
|
|
23
24
|
"@markdoc/markdoc": "0.5.2",
|
|
24
25
|
"@redocly/openapi-core": "2.31.2",
|
|
25
26
|
"deepmerge": "^4.2.2",
|
|
@@ -33,14 +34,14 @@
|
|
|
33
34
|
"react-router-dom": "^6.30.3",
|
|
34
35
|
"slugify": "^1.4.7",
|
|
35
36
|
"stringify-object": "^3.3.0",
|
|
36
|
-
"styled-components": "^
|
|
37
|
+
"styled-components": "^6.4.2",
|
|
37
38
|
"swagger2openapi": "^7.0.8",
|
|
38
39
|
"url-template": "^2.0.8",
|
|
39
40
|
"util": "~0.12.5",
|
|
40
41
|
"web-vitals": "3.3.1",
|
|
41
42
|
"@redocly/config": "0.49.0",
|
|
42
|
-
"@redocly/redoc-opentelemetry": "0.
|
|
43
|
-
"@redocly/replay": "0.25.0-next.
|
|
43
|
+
"@redocly/redoc-opentelemetry": "0.2.0",
|
|
44
|
+
"@redocly/replay": "0.25.0-next.3"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"@shikijs/transformers": "3.21.0",
|
|
@@ -49,10 +50,9 @@
|
|
|
49
50
|
"@testing-library/user-event": "14.6.1",
|
|
50
51
|
"@types/json-pointer": "1.0.34",
|
|
51
52
|
"@types/json-schema": "^7.0.15",
|
|
52
|
-
"@types/node": "
|
|
53
|
+
"@types/node": "24.1.0",
|
|
53
54
|
"@types/react": "^19.2.7",
|
|
54
55
|
"@types/react-dom": "^19.2.3",
|
|
55
|
-
"@types/styled-components": "5.1.34",
|
|
56
56
|
"@vitejs/plugin-react": "5.1.2",
|
|
57
57
|
"@vitest/coverage-v8": "4.0.10",
|
|
58
58
|
"esbuild": "0.27.0",
|
|
@@ -64,26 +64,25 @@
|
|
|
64
64
|
"react": "^19.2.4",
|
|
65
65
|
"react-dom": "^19.2.4",
|
|
66
66
|
"rimraf": "5.0.7",
|
|
67
|
-
"rollup-plugin-bundle-stats": "^4.
|
|
67
|
+
"rollup-plugin-bundle-stats": "^4.22.1",
|
|
68
68
|
"shiki": "3.21.0",
|
|
69
|
-
"styled-components": "5.3.11",
|
|
70
69
|
"tsx": "4.20.3",
|
|
71
|
-
"typescript": "
|
|
70
|
+
"typescript": "6.0.3",
|
|
72
71
|
"url": "~0.11.0",
|
|
73
|
-
"vite": "7.
|
|
72
|
+
"vite": "7.3.3",
|
|
74
73
|
"vitest": "4.0.10",
|
|
75
|
-
"@redocly/theme": "0.66.0-next.
|
|
74
|
+
"@redocly/theme": "0.66.0-next.3"
|
|
76
75
|
},
|
|
77
76
|
"scripts": {
|
|
78
77
|
"start": "pnpm run copy-highlight-hook && vite",
|
|
79
78
|
"build": "pnpm run clean && pnpm run build:lib && pnpm run build:standalone",
|
|
80
|
-
"build:lib": "
|
|
79
|
+
"build:lib": "tsgo -p tsconfig.build.json && node scripts/minify.js lib",
|
|
81
80
|
"build:standalone": "vite build && node scripts/minify.js dist",
|
|
82
81
|
"prepare:community-source": "pnpm exec tsx scripts/prepare-community-source.ts --",
|
|
83
82
|
"prepare:community-source-only": "pnpm run prepare:community-source --ignore /src/* private-readme.md",
|
|
84
83
|
"prepare:community-dependencies": "pnpm exec tsx scripts/prepare-community-dependencies.ts",
|
|
85
84
|
"apply:community-source": "pnpm exec tsx scripts/apply-changes-from-community-source.ts",
|
|
86
|
-
"ts:check": "
|
|
85
|
+
"ts:check": "tsgo --noEmit --skipLibCheck",
|
|
87
86
|
"clean": "rimraf bin dist lib redocly-static",
|
|
88
87
|
"clear:cache": "scripts/clear-cache.sh",
|
|
89
88
|
"test": "nx run vitest:test",
|