@scalar/api-reference 1.24.45 → 1.24.48
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/CHANGELOG.md +33 -0
- package/dist/browser/standalone.js +14129 -14605
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts +7 -5
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/ApiClientModal.vue.d.ts +4 -4
- package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.d.ts +7 -5
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts +23 -20
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +24 -21
- package/dist/components/Badge/Badge.vue.d.ts +4 -2
- package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
- package/dist/components/Card/Card.vue.d.ts +4 -2
- package/dist/components/Card/Card.vue.d.ts.map +1 -1
- package/dist/components/Card/CardContent.vue.d.ts +4 -2
- package/dist/components/Card/CardContent.vue.d.ts.map +1 -1
- package/dist/components/Card/CardFooter.vue.d.ts +4 -2
- package/dist/components/Card/CardFooter.vue.d.ts.map +1 -1
- package/dist/components/Card/CardHeader.vue.d.ts +4 -2
- package/dist/components/Card/CardHeader.vue.d.ts.map +1 -1
- package/dist/components/Card/CardTab.vue.d.ts +4 -2
- package/dist/components/Card/CardTab.vue.d.ts.map +1 -1
- package/dist/components/Card/CardTabHeader.vue.d.ts +7 -5
- package/dist/components/Card/CardTabHeader.vue.d.ts.map +1 -1
- package/dist/components/ClassicHeader.vue.d.ts +4 -2
- package/dist/components/ClassicHeader.vue.d.ts.map +1 -1
- package/dist/components/Content/Authentication/Authentication.vue.d.ts +4 -4
- package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.d.ts +16 -14
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Description.vue.d.ts +2 -2
- package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/DownloadSpec.vue.d.ts +2 -2
- package/dist/components/Content/Introduction/DownloadSpec.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.d.ts +7 -5
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Lazy.vue.d.ts +12 -10
- package/dist/components/Content/Lazy/Lazy.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.d.ts +3 -3
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.d.ts +3 -2
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts +3 -2
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/EndpointDetails.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/EndpointDetailsCard.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/EndpointPath.vue.d.ts +2 -2
- package/dist/components/Content/Operation/EndpointPath.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/Operation.vue.d.ts +2 -2
- package/dist/components/Content/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/OperationAccordion.vue.d.ts +2 -2
- package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/OperationAccordion.vue.js +2 -2
- package/dist/components/Content/Operation/ParameterItem.vue.d.ts +2 -2
- package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/Parameters.vue.d.ts +10 -8
- package/dist/components/Content/Operation/Parameters.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/PathResponses/ExampleResponse.vue.d.ts +4 -4
- package/dist/components/Content/Operation/PathResponses/ExampleResponse.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/PathResponses/Headers.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/PathResponses/PathResponses.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/RequestBody.vue.d.ts +8 -6
- package/dist/components/Content/Operation/RequestBody.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/RequestBodyPropertiesChild.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/TestRequestButton.vue.js +2 -2
- package/dist/components/Content/Operation/TestRequestButton.vue2.js +9 -9
- package/dist/components/Content/Schema/Schema.vue.d.ts +10 -10
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +4 -4
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +14 -14
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts +10 -8
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +14 -12
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Endpoints.vue.d.ts +2 -2
- package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.d.ts +8 -6
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagAccordion.vue.d.ts +6 -4
- package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/mutationObserver.d.ts.map +1 -1
- package/dist/components/Content/Webhooks/Webhook.vue.d.ts.map +1 -1
- package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +1 -1
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +1 -1
- package/dist/components/DarkModeToggle/DarkModeToggle.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue.d.ts +5 -4
- package/dist/components/GettingStarted.vue.d.ts.map +1 -1
- package/dist/components/HelpfulLink.vue.d.ts +6 -4
- package/dist/components/HelpfulLink.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +16 -14
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/IntersectionObserver.vue.d.ts +10 -8
- package/dist/components/IntersectionObserver.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.d.ts +4 -2
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/Layouts.vue.d.ts +4 -2
- package/dist/components/Layouts/Layouts.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.d.ts +4 -2
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/LoadingSkeleton.vue.d.ts +2 -2
- package/dist/components/LoadingSkeleton.vue.d.ts.map +1 -1
- package/dist/components/MobileHeader.vue.d.ts +8 -6
- package/dist/components/MobileHeader.vue.d.ts.map +1 -1
- package/dist/components/ScreenReader.vue.d.ts +9 -7
- package/dist/components/ScreenReader.vue.d.ts.map +1 -1
- package/dist/components/SearchButton.vue.d.ts +2 -2
- package/dist/components/SearchButton.vue.d.ts.map +1 -1
- package/dist/components/SearchButton.vue.js +2 -2
- package/dist/components/SearchButton.vue2.js +10 -9
- package/dist/components/SearchModal.vue.d.ts +3 -10
- package/dist/components/SearchModal.vue.d.ts.map +1 -1
- package/dist/components/SearchModal.vue.js +2 -2
- package/dist/components/SearchModal.vue2.js +36 -36
- package/dist/components/Section/Section.vue.d.ts +10 -8
- package/dist/components/Section/Section.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionAccordion.vue.d.ts +10 -8
- package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionColumn.vue.d.ts +4 -2
- package/dist/components/Section/SectionColumn.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionColumns.vue.d.ts +4 -2
- package/dist/components/Section/SectionColumns.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainer.vue.d.ts +4 -2
- package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts +4 -2
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContent.vue.d.ts +8 -6
- package/dist/components/Section/SectionContent.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeader.vue.d.ts +12 -10
- package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts +9 -6
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +29 -27
- package/dist/components/Sidebar/SidebarElement.vue.d.ts +23 -21
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarGroup.vue.d.ts +6 -4
- package/dist/components/Sidebar/SidebarGroup.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts +2 -2
- package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleCell.vue.d.ts +13 -11
- package/dist/components/SimpleTable/SimpleCell.vue.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleHeader.vue.d.ts +4 -2
- package/dist/components/SimpleTable/SimpleHeader.vue.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleRow.vue.d.ts +4 -2
- package/dist/components/SimpleTable/SimpleRow.vue.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleTable.vue.d.ts +4 -2
- package/dist/components/SimpleTable/SimpleTable.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts +6 -6
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerForm.vue.d.ts +6 -6
- package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrl.vue.d.ts +4 -4
- package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts +6 -4
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts +4 -4
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +9 -7
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/TextSelect.vue.d.ts +8 -6
- package/dist/features/ExampleRequest/TextSelect.vue.d.ts.map +1 -1
- package/dist/helpers/createEmptySpecification.d.ts.map +1 -1
- package/dist/helpers/getHarRequest.d.ts.map +1 -1
- package/dist/helpers/getModels.d.ts.map +1 -1
- package/dist/helpers/getModels.js +13 -7
- package/dist/helpers/mapFromObject.d.ts.map +1 -1
- package/dist/helpers/mergeAllObjects.d.ts.map +1 -1
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/provideSymbols.d.ts.map +1 -1
- package/dist/helpers/specDownloads.d.ts +1 -1
- package/dist/helpers/specDownloads.d.ts.map +1 -1
- package/dist/hooks/useReactiveSpec.d.ts +101 -101
- package/dist/hooks/useSidebar.d.ts +9 -4
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +123 -122
- package/dist/index.js +1 -1
- package/dist/legacy/components/CardForm.vue.d.ts +4 -2
- package/dist/legacy/components/CardForm.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormButton.vue.d.ts +6 -4
- package/dist/legacy/components/CardFormButton.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormGroup.vue.d.ts +4 -2
- package/dist/legacy/components/CardFormGroup.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormRows.vue.d.ts +4 -2
- package/dist/legacy/components/CardFormRows.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormTextInput.vue.d.ts +8 -6
- package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecurityScheme.vue.d.ts +5 -5
- package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts +2 -2
- package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts +2 -6
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
- package/dist/legacy/helpers/normalizeHeaders.d.ts.map +1 -1
- package/dist/legacy/helpers/prepareClientRequestConfig.d.ts +8 -8
- package/dist/legacy/stores/useAuthenticationStore.d.ts +2 -6
- package/dist/legacy/stores/useAuthenticationStore.d.ts.map +1 -1
- package/dist/legacy/stores/useOpenApiStore.d.ts +37 -37
- package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
- package/dist/legacy/stores/useRequestStore.d.ts +13 -13
- package/dist/legacy/stores/useServerStore.d.ts +4 -4
- package/dist/legacy/stores/useServerStore.d.ts.map +1 -1
- package/dist/stores/useHttpClientStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +5 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -13,46 +13,46 @@ export declare function useReactiveSpec({ specConfig, proxy, }: {
|
|
|
13
13
|
name: string;
|
|
14
14
|
description: string;
|
|
15
15
|
operations: {
|
|
16
|
-
httpVerb: "
|
|
16
|
+
httpVerb: import("@scalar/oas-utils/helpers").RequestMethod;
|
|
17
17
|
path: string;
|
|
18
|
-
operationId?: string
|
|
19
|
-
name?: string
|
|
20
|
-
description?: string
|
|
18
|
+
operationId?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
description?: string;
|
|
21
21
|
information?: {
|
|
22
|
-
description?: string
|
|
23
|
-
operationId?: string | number
|
|
22
|
+
description?: string;
|
|
23
|
+
operationId?: string | number;
|
|
24
24
|
parameters?: {
|
|
25
25
|
name: string;
|
|
26
|
-
in?: string
|
|
27
|
-
description?: string
|
|
28
|
-
required?: boolean
|
|
29
|
-
deprecated?: boolean
|
|
30
|
-
allowEmptyValue?: boolean
|
|
31
|
-
style?: "form" | "simple"
|
|
32
|
-
explode?: boolean
|
|
33
|
-
allowReserved?: boolean
|
|
26
|
+
in?: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
required?: boolean;
|
|
29
|
+
deprecated?: boolean;
|
|
30
|
+
allowEmptyValue?: boolean;
|
|
31
|
+
style?: "form" | "simple";
|
|
32
|
+
explode?: boolean;
|
|
33
|
+
allowReserved?: boolean;
|
|
34
34
|
schema?: {
|
|
35
35
|
type: string;
|
|
36
|
-
name?: string
|
|
36
|
+
name?: string;
|
|
37
37
|
example?: any;
|
|
38
38
|
default?: any;
|
|
39
|
-
format?: string
|
|
40
|
-
description?: string
|
|
41
|
-
properties?: Record<string, import("@scalar/oas-utils").Schema
|
|
39
|
+
format?: string;
|
|
40
|
+
description?: string;
|
|
41
|
+
properties?: Record<string, import("@scalar/oas-utils").Schema>;
|
|
42
42
|
} | undefined;
|
|
43
43
|
example?: any;
|
|
44
44
|
examples?: (Map<string, any> & Omit<Map<string, any>, keyof Map<any, any>>) | undefined;
|
|
45
45
|
}[] | undefined;
|
|
46
|
-
responses?: Record<string, import("@scalar/oas-utils").ScalarResponse
|
|
47
|
-
security?: import("@scalar/openapi-parser").OpenAPIV3.SecurityRequirementObject[]
|
|
46
|
+
responses?: Record<string, import("@scalar/oas-utils").ScalarResponse>;
|
|
47
|
+
security?: import("@scalar/openapi-parser").OpenAPIV3.SecurityRequirementObject[];
|
|
48
48
|
requestBody?: {
|
|
49
|
-
description?: string
|
|
50
|
-
required?: boolean
|
|
51
|
-
content?: import("@scalar/oas-utils").RequestBodyMimeTypes
|
|
49
|
+
description?: string;
|
|
50
|
+
required?: boolean;
|
|
51
|
+
content?: import("@scalar/oas-utils").RequestBodyMimeTypes;
|
|
52
52
|
} | undefined;
|
|
53
|
-
summary?: string
|
|
54
|
-
tags?: string[]
|
|
55
|
-
deprecated?: boolean
|
|
53
|
+
summary?: string;
|
|
54
|
+
tags?: string[];
|
|
55
|
+
deprecated?: boolean;
|
|
56
56
|
'x-custom-examples'?: {
|
|
57
57
|
lang: string;
|
|
58
58
|
label: string;
|
|
@@ -71,141 +71,141 @@ export declare function useReactiveSpec({ specConfig, proxy, }: {
|
|
|
71
71
|
} | undefined;
|
|
72
72
|
pathParameters?: {
|
|
73
73
|
name: string;
|
|
74
|
-
in?: string
|
|
75
|
-
description?: string
|
|
76
|
-
required?: boolean
|
|
77
|
-
deprecated?: boolean
|
|
78
|
-
allowEmptyValue?: boolean
|
|
79
|
-
style?: "form" | "simple"
|
|
80
|
-
explode?: boolean
|
|
81
|
-
allowReserved?: boolean
|
|
74
|
+
in?: string;
|
|
75
|
+
description?: string;
|
|
76
|
+
required?: boolean;
|
|
77
|
+
deprecated?: boolean;
|
|
78
|
+
allowEmptyValue?: boolean;
|
|
79
|
+
style?: "form" | "simple";
|
|
80
|
+
explode?: boolean;
|
|
81
|
+
allowReserved?: boolean;
|
|
82
82
|
schema?: {
|
|
83
83
|
type: string;
|
|
84
|
-
name?: string
|
|
84
|
+
name?: string;
|
|
85
85
|
example?: any;
|
|
86
86
|
default?: any;
|
|
87
|
-
format?: string
|
|
88
|
-
description?: string
|
|
89
|
-
properties?: Record<string, import("@scalar/oas-utils").Schema
|
|
87
|
+
format?: string;
|
|
88
|
+
description?: string;
|
|
89
|
+
properties?: Record<string, import("@scalar/oas-utils").Schema>;
|
|
90
90
|
} | undefined;
|
|
91
91
|
example?: any;
|
|
92
92
|
examples?: (Map<string, any> & Omit<Map<string, any>, keyof Map<any, any>>) | undefined;
|
|
93
93
|
}[] | undefined;
|
|
94
94
|
}[];
|
|
95
|
-
'x-displayName'?: string
|
|
95
|
+
'x-displayName'?: string;
|
|
96
96
|
}[] | undefined;
|
|
97
97
|
info: {
|
|
98
|
-
title?: string
|
|
99
|
-
description?: string
|
|
100
|
-
termsOfService?: string
|
|
98
|
+
title?: string;
|
|
99
|
+
description?: string;
|
|
100
|
+
termsOfService?: string;
|
|
101
101
|
contact?: {
|
|
102
|
-
name?: string
|
|
103
|
-
url?: string
|
|
104
|
-
email?: string
|
|
102
|
+
name?: string;
|
|
103
|
+
url?: string;
|
|
104
|
+
email?: string;
|
|
105
105
|
} | undefined;
|
|
106
106
|
license?: {
|
|
107
|
-
name?: string
|
|
108
|
-
url?: string
|
|
107
|
+
name?: string;
|
|
108
|
+
url?: string;
|
|
109
109
|
} | undefined;
|
|
110
|
-
version?: string
|
|
110
|
+
version?: string;
|
|
111
111
|
} | {
|
|
112
|
-
title?: string
|
|
113
|
-
description?: string
|
|
114
|
-
termsOfService?: string
|
|
112
|
+
title?: string;
|
|
113
|
+
description?: string;
|
|
114
|
+
termsOfService?: string;
|
|
115
115
|
contact?: {
|
|
116
|
-
name?: string
|
|
117
|
-
url?: string
|
|
118
|
-
email?: string
|
|
116
|
+
name?: string;
|
|
117
|
+
url?: string;
|
|
118
|
+
email?: string;
|
|
119
119
|
} | undefined;
|
|
120
120
|
license?: {
|
|
121
|
-
name?: string
|
|
122
|
-
url?: string
|
|
121
|
+
name?: string;
|
|
122
|
+
url?: string;
|
|
123
123
|
} | undefined;
|
|
124
|
-
version?: string
|
|
124
|
+
version?: string;
|
|
125
125
|
} | {
|
|
126
|
-
description?: string
|
|
127
|
-
title?: string
|
|
128
|
-
termsOfService?: string
|
|
126
|
+
description?: string;
|
|
127
|
+
title?: string;
|
|
128
|
+
termsOfService?: string;
|
|
129
129
|
contact?: {
|
|
130
|
-
name?: string
|
|
131
|
-
url?: string
|
|
132
|
-
email?: string
|
|
130
|
+
name?: string;
|
|
131
|
+
url?: string;
|
|
132
|
+
email?: string;
|
|
133
133
|
} | undefined;
|
|
134
|
-
version?: string
|
|
135
|
-
summary?: string
|
|
134
|
+
version?: string;
|
|
135
|
+
summary?: string;
|
|
136
136
|
license?: {
|
|
137
|
-
url?: string
|
|
138
|
-
name?: string
|
|
139
|
-
identifier?: string
|
|
137
|
+
url?: string;
|
|
138
|
+
name?: string;
|
|
139
|
+
identifier?: string;
|
|
140
140
|
} | undefined;
|
|
141
141
|
} | undefined;
|
|
142
|
-
host?:
|
|
143
|
-
basePath?:
|
|
144
|
-
schemes?:
|
|
142
|
+
host?: import("@scalar/openapi-parser").OpenAPIV2.Document["host"];
|
|
143
|
+
basePath?: import("@scalar/openapi-parser").OpenAPIV2.Document["basePath"];
|
|
144
|
+
schemes?: import("@scalar/openapi-parser").OpenAPIV2.Document["schemes"];
|
|
145
145
|
externalDocs?: {
|
|
146
146
|
url: string;
|
|
147
147
|
description?: string | undefined;
|
|
148
148
|
} | undefined;
|
|
149
149
|
servers?: {
|
|
150
|
-
url?: string
|
|
151
|
-
description?: string
|
|
150
|
+
url?: string;
|
|
151
|
+
description?: string;
|
|
152
152
|
variables?: {
|
|
153
153
|
[variable: string]: import("@scalar/openapi-parser").OpenAPIV3.ServerVariableObject;
|
|
154
|
-
}
|
|
154
|
+
};
|
|
155
155
|
}[] | {
|
|
156
|
-
url?: string
|
|
157
|
-
description?: string
|
|
158
|
-
variables?: Record<string, import("@scalar/openapi-parser").OpenAPIV3_1.ServerVariableObject
|
|
156
|
+
url?: string;
|
|
157
|
+
description?: string;
|
|
158
|
+
variables?: Record<string, import("@scalar/openapi-parser").OpenAPIV3_1.ServerVariableObject>;
|
|
159
159
|
}[] | undefined;
|
|
160
160
|
components?: {
|
|
161
161
|
schemas?: {
|
|
162
162
|
[key: string]: import("@scalar/openapi-parser").OpenAPIV3.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3.SchemaObject;
|
|
163
|
-
}
|
|
163
|
+
};
|
|
164
164
|
responses?: {
|
|
165
165
|
[key: string]: import("@scalar/openapi-parser").OpenAPIV3.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3.ResponseObject;
|
|
166
|
-
}
|
|
166
|
+
};
|
|
167
167
|
parameters?: {
|
|
168
168
|
[key: string]: import("@scalar/openapi-parser").OpenAPIV3.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3.ParameterObject;
|
|
169
|
-
}
|
|
169
|
+
};
|
|
170
170
|
examples?: {
|
|
171
171
|
[key: string]: import("@scalar/openapi-parser").OpenAPIV3.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3.ExampleObject;
|
|
172
|
-
}
|
|
172
|
+
};
|
|
173
173
|
requestBodies?: {
|
|
174
174
|
[key: string]: import("@scalar/openapi-parser").OpenAPIV3.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3.RequestBodyObject;
|
|
175
|
-
}
|
|
175
|
+
};
|
|
176
176
|
headers?: {
|
|
177
177
|
[key: string]: import("@scalar/openapi-parser").OpenAPIV3.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3.HeaderObject;
|
|
178
|
-
}
|
|
178
|
+
};
|
|
179
179
|
securitySchemes?: {
|
|
180
180
|
[key: string]: import("@scalar/openapi-parser").OpenAPIV3.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3.SecuritySchemeObject;
|
|
181
|
-
}
|
|
181
|
+
};
|
|
182
182
|
links?: {
|
|
183
183
|
[key: string]: import("@scalar/openapi-parser").OpenAPIV3.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3.LinkObject;
|
|
184
|
-
}
|
|
184
|
+
};
|
|
185
185
|
callbacks?: {
|
|
186
186
|
[key: string]: import("@scalar/openapi-parser").OpenAPIV3.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3.CallbackObject;
|
|
187
|
-
}
|
|
187
|
+
};
|
|
188
188
|
} | {
|
|
189
|
-
schemas?: Record<string, import("@scalar/openapi-parser").OpenAPIV3_1.SchemaObject
|
|
190
|
-
responses?: Record<string, import("@scalar/openapi-parser").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3_1.ResponseObject
|
|
191
|
-
parameters?: Record<string, import("@scalar/openapi-parser").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-parser").
|
|
192
|
-
examples?: Record<string, import("@scalar/openapi-parser").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-parser").
|
|
193
|
-
requestBodies?: Record<string, import("@scalar/openapi-parser").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3_1.RequestBodyObject
|
|
194
|
-
headers?: Record<string, import("@scalar/openapi-parser").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-parser").
|
|
195
|
-
securitySchemes?: Record<string, import("@scalar/openapi-parser").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-parser").
|
|
196
|
-
links?: Record<string, import("@scalar/openapi-parser").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3_1.LinkObject
|
|
197
|
-
callbacks?: Record<string, import("@scalar/openapi-parser").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3_1.CallbackObject
|
|
198
|
-
pathItems?: Record<string, import("@scalar/openapi-parser").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3_1.PathItemObject
|
|
189
|
+
schemas?: Record<string, import("@scalar/openapi-parser").OpenAPIV3_1.SchemaObject>;
|
|
190
|
+
responses?: Record<string, import("@scalar/openapi-parser").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3_1.ResponseObject>;
|
|
191
|
+
parameters?: Record<string, import("@scalar/openapi-parser").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3_1.ParameterObject>;
|
|
192
|
+
examples?: Record<string, import("@scalar/openapi-parser").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3_1.ExampleObject>;
|
|
193
|
+
requestBodies?: Record<string, import("@scalar/openapi-parser").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3_1.RequestBodyObject>;
|
|
194
|
+
headers?: Record<string, import("@scalar/openapi-parser").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3_1.HeaderObject>;
|
|
195
|
+
securitySchemes?: Record<string, import("@scalar/openapi-parser").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3_1.SecuritySchemeObject>;
|
|
196
|
+
links?: Record<string, import("@scalar/openapi-parser").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3_1.LinkObject>;
|
|
197
|
+
callbacks?: Record<string, import("@scalar/openapi-parser").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3_1.CallbackObject>;
|
|
198
|
+
pathItems?: Record<string, import("@scalar/openapi-parser").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-parser").OpenAPIV3_1.PathItemObject>;
|
|
199
199
|
} | undefined;
|
|
200
|
-
webhooks?: import("@scalar/oas-utils").Webhooks
|
|
201
|
-
definitions?: import("@scalar/
|
|
202
|
-
swagger?:
|
|
203
|
-
openapi?:
|
|
200
|
+
webhooks?: import("@scalar/oas-utils").Webhooks;
|
|
201
|
+
definitions?: import("@scalar/oas-utils").Definitions;
|
|
202
|
+
swagger?: import("@scalar/openapi-parser").OpenAPIV2.Document["swagger"];
|
|
203
|
+
openapi?: import("@scalar/openapi-parser").OpenAPIV3.Document["openapi"] | import("@scalar/openapi-parser").OpenAPIV3_1.Document["openapi"];
|
|
204
204
|
'x-tagGroups'?: {
|
|
205
205
|
name: string;
|
|
206
206
|
tags: string[];
|
|
207
207
|
}[] | undefined;
|
|
208
|
-
security?: import("@scalar/openapi-parser").OpenAPIV3.SecurityRequirementObject[]
|
|
208
|
+
security?: import("@scalar/openapi-parser").OpenAPIV3.SecurityRequirementObject[];
|
|
209
209
|
};
|
|
210
210
|
specErrors: import("vue").Ref<string | null>;
|
|
211
211
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Spec } from '@scalar/oas-utils';
|
|
1
|
+
import type { Spec, Tag } from '@scalar/oas-utils';
|
|
2
2
|
export type SidebarEntry = {
|
|
3
3
|
id: string;
|
|
4
4
|
title: string;
|
|
@@ -10,16 +10,21 @@ export type SidebarEntry = {
|
|
|
10
10
|
deprecated?: boolean;
|
|
11
11
|
isGroup?: boolean;
|
|
12
12
|
};
|
|
13
|
+
/** Helper to overwrite the current OpenAPI document */
|
|
13
14
|
declare function setParsedSpec(spec: Spec): Spec;
|
|
14
15
|
type CollapsedSidebarItems = Record<string, boolean>;
|
|
15
16
|
declare function toggleCollapsedSidebarItem(key: string): void;
|
|
16
17
|
declare function setCollapsedSidebarItem(key: string, value: boolean): void;
|
|
18
|
+
export type ParsedSpecOption = {
|
|
19
|
+
parsedSpec: Spec;
|
|
20
|
+
};
|
|
21
|
+
export type TagsSorterOption = {
|
|
22
|
+
tagsSorter?: 'alpha' | ((a: Tag, b: Tag) => number);
|
|
23
|
+
};
|
|
17
24
|
/**
|
|
18
25
|
* Provides the sidebar state and methods to control it.
|
|
19
26
|
*/
|
|
20
|
-
export declare function useSidebar(options?: {
|
|
21
|
-
parsedSpec: Spec;
|
|
22
|
-
}): {
|
|
27
|
+
export declare function useSidebar(options?: ParsedSpecOption & TagsSorterOption): {
|
|
23
28
|
breadcrumb: import("vue").ComputedRef<string>;
|
|
24
29
|
items: import("vue").ComputedRef<{
|
|
25
30
|
entries: SidebarEntry[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSidebar.d.ts","sourceRoot":"","sources":["../../src/hooks/useSidebar.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"useSidebar.d.ts","sourceRoot":"","sources":["../../src/hooks/useSidebar.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAwB,MAAM,mBAAmB,CAAA;AAexE,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAA;IACzB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;IACb,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAkBD,uDAAuD;AACvD,iBAAS,aAAa,CAAC,IAAI,EAAE,IAAI,QAWhC;AAMD,KAAK,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAMpD,iBAAS,0BAA0B,CAAC,GAAG,EAAE,MAAM,QAE9C;AAED,iBAAS,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,QAE3D;AA2OD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,IAAI,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,KAAK,MAAM,CAAC,CAAA;CACpD,CAAA;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,gBAAgB;;;;;;;;;;;;;EA8CvE"}
|