@scalar/api-reference 1.25.7 → 1.25.10

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.
Files changed (143) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/dist/browser/standalone.js +12353 -12767
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiClientModal.vue.js +5 -5
  5. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  6. package/dist/components/ApiReference.vue.js +43 -42
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  9. package/dist/components/ApiReferenceLayout.vue2.js +67 -61
  10. package/dist/components/Content/Authentication/Authentication.vue.js +1 -1
  11. package/dist/components/Content/Introduction/Introduction.vue.d.ts +1 -1
  12. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  13. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  14. package/dist/components/Content/Introduction/Introduction.vue2.js +9 -9
  15. package/dist/components/Content/Models/Models.vue.d.ts +1 -1
  16. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Models/Models.vue.js +2 -2
  18. package/dist/components/Content/Models/Models.vue2.js +68 -47
  19. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts +1 -1
  20. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Models/ModelsAccordion.vue.js +1 -1
  22. package/dist/components/Content/Operation/Operation.vue.d.ts.map +1 -1
  23. package/dist/components/Content/Operation/Operation.vue.js +2 -2
  24. package/dist/components/Content/Operation/Operation.vue2.js +46 -59
  25. package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +1 -1
  26. package/dist/components/Content/Operation/OperationAccordion.vue.js +2 -2
  27. package/dist/components/Content/Operation/OperationAccordion.vue2.js +53 -49
  28. package/dist/components/Content/Operation/PathResponses/PathResponses.vue.js +1 -1
  29. package/dist/components/Content/Operation/PathResponses/PathResponses.vue2.js +1 -1
  30. package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +1 -1
  31. package/dist/components/Content/Operation/TestRequestButton.vue.js +1 -1
  32. package/dist/components/Content/Operation/TestRequestButton.vue2.js +30 -22
  33. package/dist/components/Content/Schema/Schema.vue.d.ts +1 -1
  34. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Schema/Schema.vue.js +1 -1
  36. package/dist/components/Content/Schema/Schema.vue2.js +18 -18
  37. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +1 -1
  38. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  39. package/dist/components/Content/Schema/SchemaHeading.vue.js +2 -2
  40. package/dist/components/Content/Schema/SchemaHeading.vue2.js +14 -14
  41. package/dist/components/Content/Tag/Endpoints.vue.d.ts +2 -0
  42. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
  43. package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
  44. package/dist/components/Content/Tag/Endpoints.vue2.js +31 -29
  45. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Tag/Tag.vue.js +3 -3
  47. package/dist/components/Content/Tag/Tag.vue2.js +15 -14
  48. package/dist/components/Content/Webhooks/Webhook.vue.d.ts.map +1 -1
  49. package/dist/components/Content/Webhooks/Webhook.vue.js +5 -33
  50. package/dist/components/Content/Webhooks/Webhook.vue2.js +37 -2
  51. package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +1 -1
  52. package/dist/components/Content/Webhooks/Webhooks.vue.js +2 -2
  53. package/dist/components/Content/Webhooks/Webhooks.vue2.js +91 -62
  54. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +1 -1
  55. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +3 -3
  56. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
  57. package/dist/components/Layouts/ClassicLayout.vue.js +18 -17
  58. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  59. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  60. package/dist/components/Layouts/ModernLayout.vue2.js +31 -28
  61. package/dist/components/Section/CompactSection.vue.d.ts +28 -0
  62. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -0
  63. package/dist/components/Section/CompactSection.vue.js +7 -0
  64. package/dist/components/Section/CompactSection.vue2.js +59 -0
  65. package/dist/components/Section/index.d.ts +1 -0
  66. package/dist/components/Section/index.d.ts.map +1 -1
  67. package/dist/{components/Content/Models/CollapsedModel.vue.d.ts → embeds/ExampleRequest/ExampleRequest.vue.d.ts} +9 -5
  68. package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -0
  69. package/dist/embeds/ExampleRequest/index.d.ts +2 -0
  70. package/dist/embeds/ExampleRequest/index.d.ts.map +1 -0
  71. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +508 -0
  72. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -0
  73. package/dist/embeds/OpenApiDocument/index.d.ts +3 -0
  74. package/dist/embeds/OpenApiDocument/index.d.ts.map +1 -0
  75. package/dist/embeds/OpenApiDocument/types.d.ts +3 -0
  76. package/dist/embeds/OpenApiDocument/types.d.ts.map +1 -0
  77. package/dist/embeds/index.d.ts +3 -0
  78. package/dist/embeds/index.d.ts.map +1 -0
  79. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  80. package/dist/features/BaseUrl/BaseUrl.vue.js +24 -74
  81. package/dist/features/BaseUrl/types.d.ts +1 -1
  82. package/dist/features/BaseUrl/types.d.ts.map +1 -1
  83. package/dist/features/BaseUrl/utils/getServers.d.ts +3 -2
  84. package/dist/features/BaseUrl/utils/getServers.d.ts.map +1 -1
  85. package/dist/{components/Content/Introduction/DownloadSpec.vue.d.ts → features/DownloadLink/DownloadLink.vue.d.ts} +1 -1
  86. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -0
  87. package/dist/features/DownloadLink/DownloadLink.vue.js +7 -0
  88. package/dist/features/DownloadLink/DownloadLink.vue2.js +36 -0
  89. package/dist/features/DownloadLink/index.d.ts +2 -0
  90. package/dist/features/DownloadLink/index.d.ts.map +1 -0
  91. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +1 -3
  92. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  93. package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
  94. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +127 -122
  95. package/dist/helpers/createEmptySpecification.d.ts +1 -1
  96. package/dist/helpers/createEmptySpecification.d.ts.map +1 -1
  97. package/dist/helpers/getApiClientRequest.d.ts +1 -1
  98. package/dist/helpers/getApiClientRequest.d.ts.map +1 -1
  99. package/dist/helpers/getHarRequest.d.ts.map +1 -1
  100. package/dist/helpers/getHarRequest.js +8 -15
  101. package/dist/helpers/getModels.d.ts +1 -1
  102. package/dist/helpers/getModels.d.ts.map +1 -1
  103. package/dist/helpers/openClientFor.d.ts +1 -1
  104. package/dist/helpers/openClientFor.d.ts.map +1 -1
  105. package/dist/helpers/openClientFor.js +5 -5
  106. package/dist/helpers/parse.d.ts.map +1 -1
  107. package/dist/helpers/provideSymbols.d.ts +4 -2
  108. package/dist/helpers/provideSymbols.d.ts.map +1 -1
  109. package/dist/helpers/provideSymbols.js +5 -3
  110. package/dist/index.js +66 -64
  111. package/dist/legacy/components/SecurityScheme.vue.d.ts +1 -1
  112. package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
  113. package/dist/legacy/components/SecurityScheme.vue.js +2 -2
  114. package/dist/legacy/components/SecurityScheme.vue2.js +57 -53
  115. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts +1 -1
  116. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
  117. package/dist/legacy/components/SecuritySchemeSelector.vue.js +4 -4
  118. package/dist/legacy/components/SecuritySchemeSelector.vue2.js +5 -5
  119. package/dist/legacy/helpers/getRequestFromAuthentication.d.ts +1 -1
  120. package/dist/legacy/helpers/getRequestFromAuthentication.d.ts.map +1 -1
  121. package/dist/legacy/helpers/getUrlFromServerState.d.ts +1 -1
  122. package/dist/legacy/helpers/getUrlFromServerState.d.ts.map +1 -1
  123. package/dist/legacy/helpers/index.d.ts +1 -1
  124. package/dist/legacy/helpers/normalizeHeaders.d.ts +2 -3
  125. package/dist/legacy/helpers/normalizeHeaders.d.ts.map +1 -1
  126. package/dist/legacy/helpers/normalizeHeaders.js +24 -0
  127. package/dist/legacy/stores/useOpenApiStore.d.ts +2 -2
  128. package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
  129. package/dist/legacy/stores/useServerStore.d.ts +32 -6
  130. package/dist/legacy/stores/useServerStore.d.ts.map +1 -1
  131. package/dist/legacy/stores/useServerStore.js +70 -11
  132. package/dist/legacy/types.d.ts +0 -23
  133. package/dist/legacy/types.d.ts.map +1 -1
  134. package/dist/style.css +1 -1
  135. package/package.json +12 -11
  136. package/dist/components/Content/Introduction/DownloadSpec.vue.d.ts.map +0 -1
  137. package/dist/components/Content/Introduction/DownloadSpec.vue.js +0 -7
  138. package/dist/components/Content/Introduction/DownloadSpec.vue2.js +0 -30
  139. package/dist/components/Content/Models/CollapsedModel.vue.d.ts.map +0 -1
  140. package/dist/components/Content/Models/CollapsedModel.vue.js +0 -7
  141. package/dist/components/Content/Models/CollapsedModel.vue2.js +0 -70
  142. package/dist/features/BaseUrl/utils/index.d.ts +0 -2
  143. package/dist/features/BaseUrl/utils/index.d.ts.map +0 -1
@@ -0,0 +1,508 @@
1
+ import type { OpenApiDocumentConfiguration } from './types';
2
+ declare const dereferenced: import("vue").Ref<{
3
+ [x: `x-${string}`]: any;
4
+ [x: string]: any;
5
+ openapi?: "3.0.0" | "3.0.1" | "3.0.2" | "3.0.2";
6
+ swagger?: undefined;
7
+ info?: {
8
+ title?: string;
9
+ description?: string;
10
+ termsOfService?: string;
11
+ contact?: {
12
+ name?: string;
13
+ url?: string;
14
+ email?: string;
15
+ } | undefined;
16
+ license?: {
17
+ name?: string;
18
+ url?: string;
19
+ } | undefined;
20
+ version?: string;
21
+ } | undefined;
22
+ servers?: {
23
+ url?: string;
24
+ description?: string;
25
+ variables?: {
26
+ [variable: string]: import("@scalar/openapi-types").OpenAPIV3.ServerVariableObject;
27
+ };
28
+ }[] | undefined;
29
+ paths?: import("@scalar/openapi-types").OpenAPIV3.PathsObject<{}, {}> | undefined;
30
+ components?: {
31
+ schemas?: {
32
+ [key: string]: import("@scalar/openapi-types").OpenAPIV3.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3.SchemaObject;
33
+ };
34
+ responses?: {
35
+ [key: string]: import("@scalar/openapi-types").OpenAPIV3.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3.ResponseObject;
36
+ };
37
+ parameters?: {
38
+ [key: string]: import("@scalar/openapi-types").OpenAPIV3.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3.ParameterObject;
39
+ };
40
+ examples?: {
41
+ [key: string]: import("@scalar/openapi-types").OpenAPIV3.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3.ExampleObject;
42
+ };
43
+ requestBodies?: {
44
+ [key: string]: import("@scalar/openapi-types").OpenAPIV3.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3.RequestBodyObject;
45
+ };
46
+ headers?: {
47
+ [key: string]: import("@scalar/openapi-types").OpenAPIV3.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3.HeaderObject;
48
+ };
49
+ securitySchemes?: {
50
+ [key: string]: import("@scalar/openapi-types").OpenAPIV3.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3.SecuritySchemeObject;
51
+ };
52
+ links?: {
53
+ [key: string]: import("@scalar/openapi-types").OpenAPIV3.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3.LinkObject;
54
+ };
55
+ callbacks?: {
56
+ [key: string]: import("@scalar/openapi-types").OpenAPIV3.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3.CallbackObject;
57
+ };
58
+ } | undefined;
59
+ security?: import("@scalar/openapi-types").OpenAPIV3.SecurityRequirementObject[];
60
+ tags?: {
61
+ [x: `x-${string}`]: any;
62
+ [x: string]: any;
63
+ name?: string;
64
+ description?: string;
65
+ externalDocs?: {
66
+ description?: string;
67
+ url?: string;
68
+ } | undefined;
69
+ }[] | undefined;
70
+ externalDocs?: {
71
+ description?: string;
72
+ url?: string;
73
+ } | undefined;
74
+ } | {
75
+ [x: `x-${string}`]: any;
76
+ [x: string]: any;
77
+ openapi?: "3.1.0";
78
+ swagger?: undefined;
79
+ info?: {
80
+ description?: string;
81
+ title?: string;
82
+ termsOfService?: string;
83
+ contact?: {
84
+ name?: string;
85
+ url?: string;
86
+ email?: string;
87
+ } | undefined;
88
+ version?: string;
89
+ summary?: string;
90
+ license?: {
91
+ url?: string;
92
+ name?: string;
93
+ identifier?: string;
94
+ } | undefined;
95
+ } | undefined;
96
+ jsonSchemaDialect?: string;
97
+ servers?: {
98
+ url?: string;
99
+ description?: string;
100
+ variables?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject>;
101
+ }[] | undefined;
102
+ paths?: import("@scalar/openapi-types").OpenAPIV3_1.PathsObject<{}, {}> | undefined;
103
+ components?: {
104
+ schemas?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject>;
105
+ responses?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.ResponseObject>;
106
+ parameters?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.ParameterObject>;
107
+ examples?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.ExampleObject>;
108
+ requestBodies?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.RequestBodyObject>;
109
+ headers?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.HeaderObject>;
110
+ securitySchemes?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.SecuritySchemeObject>;
111
+ links?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.LinkObject>;
112
+ callbacks?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.CallbackObject>;
113
+ pathItems?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.PathItemObject>;
114
+ } | undefined;
115
+ webhooks?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.PathItemObject | import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject>;
116
+ } | {
117
+ [x: `x-${string}`]: any;
118
+ [x: string]: any;
119
+ openapi?: "3.1.0";
120
+ swagger?: undefined;
121
+ info?: {
122
+ description?: string;
123
+ title?: string;
124
+ termsOfService?: string;
125
+ contact?: {
126
+ name?: string;
127
+ url?: string;
128
+ email?: string;
129
+ } | undefined;
130
+ version?: string;
131
+ summary?: string;
132
+ license?: {
133
+ url?: string;
134
+ name?: string;
135
+ identifier?: string;
136
+ } | undefined;
137
+ } | undefined;
138
+ jsonSchemaDialect?: string;
139
+ servers?: {
140
+ url?: string;
141
+ description?: string;
142
+ variables?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject>;
143
+ }[] | undefined;
144
+ webhooks?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.PathItemObject | import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject>;
145
+ paths?: import("@scalar/openapi-types").OpenAPIV3_1.PathsObject<{}, {}> | undefined;
146
+ components?: {
147
+ schemas?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject>;
148
+ responses?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.ResponseObject>;
149
+ parameters?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.ParameterObject>;
150
+ examples?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.ExampleObject>;
151
+ requestBodies?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.RequestBodyObject>;
152
+ headers?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.HeaderObject>;
153
+ securitySchemes?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.SecuritySchemeObject>;
154
+ links?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.LinkObject>;
155
+ callbacks?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.CallbackObject>;
156
+ pathItems?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.PathItemObject>;
157
+ } | undefined;
158
+ } | {
159
+ [x: `x-${string}`]: any;
160
+ [x: string]: any;
161
+ openapi?: "3.1.0";
162
+ swagger?: undefined;
163
+ info?: {
164
+ description?: string;
165
+ title?: string;
166
+ termsOfService?: string;
167
+ contact?: {
168
+ name?: string;
169
+ url?: string;
170
+ email?: string;
171
+ } | undefined;
172
+ version?: string;
173
+ summary?: string;
174
+ license?: {
175
+ url?: string;
176
+ name?: string;
177
+ identifier?: string;
178
+ } | undefined;
179
+ } | undefined;
180
+ jsonSchemaDialect?: string;
181
+ servers?: {
182
+ url?: string;
183
+ description?: string;
184
+ variables?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject>;
185
+ }[] | undefined;
186
+ components?: {
187
+ schemas?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject>;
188
+ responses?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.ResponseObject>;
189
+ parameters?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.ParameterObject>;
190
+ examples?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.ExampleObject>;
191
+ requestBodies?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.RequestBodyObject>;
192
+ headers?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.HeaderObject>;
193
+ securitySchemes?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.SecuritySchemeObject>;
194
+ links?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.LinkObject>;
195
+ callbacks?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.CallbackObject>;
196
+ pathItems?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.PathItemObject>;
197
+ } | undefined;
198
+ paths?: import("@scalar/openapi-types").OpenAPIV3_1.PathsObject<{}, {}> | undefined;
199
+ webhooks?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.PathItemObject | import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject>;
200
+ } | {
201
+ [x: `x-${string}`]: any;
202
+ [x: string]: any;
203
+ swagger?: "2.0";
204
+ openapi?: never;
205
+ basePath?: string;
206
+ consumes?: string[] | undefined;
207
+ definitions?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject;
208
+ externalDocs?: {
209
+ [x: string]: any;
210
+ description?: string;
211
+ url?: string;
212
+ } | undefined;
213
+ host?: string;
214
+ info?: {
215
+ title?: string;
216
+ description?: string;
217
+ termsOfService?: string;
218
+ contact?: {
219
+ name?: string;
220
+ url?: string;
221
+ email?: string;
222
+ } | undefined;
223
+ license?: {
224
+ name?: string;
225
+ url?: string;
226
+ } | undefined;
227
+ version?: string;
228
+ } | undefined;
229
+ parameters?: import("@scalar/openapi-types").OpenAPIV2.ParametersDefinitionsObject;
230
+ paths?: import("@scalar/openapi-types").OpenAPIV2.PathsObject<{}> | undefined;
231
+ produces?: string[] | undefined;
232
+ responses?: import("@scalar/openapi-types").OpenAPIV2.ResponsesDefinitionsObject;
233
+ schemes?: string[];
234
+ security?: import("@scalar/openapi-types").OpenAPIV2.SecurityRequirementObject[];
235
+ securityDefinitions?: import("@scalar/openapi-types").OpenAPIV2.SecurityDefinitionsObject;
236
+ tags?: {
237
+ [x: `x-${string}`]: any;
238
+ [x: string]: any;
239
+ name?: string;
240
+ description?: string;
241
+ externalDocs?: {
242
+ [x: string]: any;
243
+ description?: string;
244
+ url?: string;
245
+ } | undefined;
246
+ }[] | undefined;
247
+ } | undefined>;
248
+ declare const version: import("vue").Ref<string | undefined>;
249
+ declare const errors: import("vue").Ref<{
250
+ message: string;
251
+ code?: keyof typeof import("@scalar/openapi-parser").ERRORS | string;
252
+ }[]>;
253
+ declare const parsedSpec: {
254
+ tags?: {
255
+ name: string;
256
+ description: string;
257
+ operations: {
258
+ httpVerb: "GET" | "HEAD" | "PATCH" | "POST" | "PUT" | "TRACE" | "CONNECT" | "DELETE" | "OPTIONS";
259
+ path: string;
260
+ operationId?: string;
261
+ name?: string;
262
+ description?: string;
263
+ information?: {
264
+ description?: string;
265
+ operationId?: string | number;
266
+ parameters?: {
267
+ name: string;
268
+ in?: string;
269
+ description?: string;
270
+ required?: boolean;
271
+ deprecated?: boolean;
272
+ allowEmptyValue?: boolean;
273
+ style?: "form" | "simple";
274
+ explode?: boolean;
275
+ allowReserved?: boolean;
276
+ schema?: {
277
+ type: string;
278
+ name?: string;
279
+ example?: any;
280
+ default?: any;
281
+ format?: string;
282
+ description?: string;
283
+ properties?: Record<string, import("@scalar/types/legacy").Schema>;
284
+ } | undefined;
285
+ example?: any;
286
+ examples?: (Map<string, any> & Omit<Map<string, any>, keyof Map<any, any>>) | undefined;
287
+ content?: import("@scalar/types/legacy").RequestBodyMimeTypes;
288
+ }[] | undefined;
289
+ responses?: Record<string, import("@scalar/types/legacy").ScalarResponse>;
290
+ security?: import("@scalar/openapi-types").OpenAPIV3.SecurityRequirementObject[];
291
+ requestBody?: {
292
+ description?: string;
293
+ required?: boolean;
294
+ content?: import("@scalar/types/legacy").RequestBodyMimeTypes;
295
+ } | undefined;
296
+ summary?: string;
297
+ tags?: string[];
298
+ deprecated?: boolean;
299
+ 'x-custom-examples'?: {
300
+ lang: string;
301
+ label: string;
302
+ source: string;
303
+ }[] | undefined;
304
+ 'x-codeSamples'?: {
305
+ lang: string;
306
+ label: string;
307
+ source: string;
308
+ }[] | undefined;
309
+ 'x-code-samples'?: {
310
+ lang: string;
311
+ label: string;
312
+ source: string;
313
+ }[] | undefined;
314
+ } | undefined;
315
+ pathParameters?: {
316
+ name: string;
317
+ in?: string;
318
+ description?: string;
319
+ required?: boolean;
320
+ deprecated?: boolean;
321
+ allowEmptyValue?: boolean;
322
+ style?: "form" | "simple";
323
+ explode?: boolean;
324
+ allowReserved?: boolean;
325
+ schema?: {
326
+ type: string;
327
+ name?: string;
328
+ example?: any;
329
+ default?: any;
330
+ format?: string;
331
+ description?: string;
332
+ properties?: Record<string, import("@scalar/types/legacy").Schema>;
333
+ } | undefined;
334
+ example?: any;
335
+ examples?: (Map<string, any> & Omit<Map<string, any>, keyof Map<any, any>>) | undefined;
336
+ content?: import("@scalar/types/legacy").RequestBodyMimeTypes;
337
+ }[] | undefined;
338
+ }[];
339
+ 'x-displayName'?: string;
340
+ }[] | undefined;
341
+ info: {
342
+ title?: string;
343
+ description?: string;
344
+ termsOfService?: string;
345
+ contact?: {
346
+ name?: string;
347
+ url?: string;
348
+ email?: string;
349
+ } | undefined;
350
+ license?: {
351
+ name?: string;
352
+ url?: string;
353
+ } | undefined;
354
+ version?: string;
355
+ } | {
356
+ title?: string;
357
+ description?: string;
358
+ termsOfService?: string;
359
+ contact?: {
360
+ name?: string;
361
+ url?: string;
362
+ email?: string;
363
+ } | undefined;
364
+ license?: {
365
+ name?: string;
366
+ url?: string;
367
+ } | undefined;
368
+ version?: string;
369
+ } | {
370
+ description?: string;
371
+ title?: string;
372
+ termsOfService?: string;
373
+ contact?: {
374
+ name?: string;
375
+ url?: string;
376
+ email?: string;
377
+ } | undefined;
378
+ version?: string;
379
+ summary?: string;
380
+ license?: {
381
+ url?: string;
382
+ name?: string;
383
+ identifier?: string;
384
+ } | undefined;
385
+ } | undefined;
386
+ host?: import("@scalar/openapi-types").OpenAPIV2.Document["host"];
387
+ basePath?: import("@scalar/openapi-types").OpenAPIV2.Document["basePath"];
388
+ schemes?: import("@scalar/openapi-types").OpenAPIV2.Document["schemes"];
389
+ externalDocs?: {
390
+ url: string;
391
+ description?: string;
392
+ } | undefined;
393
+ servers?: {
394
+ url?: string;
395
+ description?: string;
396
+ variables?: {
397
+ [variable: string]: import("@scalar/openapi-types").OpenAPIV3.ServerVariableObject;
398
+ };
399
+ }[] | {
400
+ url?: string;
401
+ description?: string;
402
+ variables?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject>;
403
+ }[] | undefined;
404
+ components?: {
405
+ schemas?: {
406
+ [key: string]: import("@scalar/openapi-types").OpenAPIV3.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3.SchemaObject;
407
+ };
408
+ responses?: {
409
+ [key: string]: import("@scalar/openapi-types").OpenAPIV3.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3.ResponseObject;
410
+ };
411
+ parameters?: {
412
+ [key: string]: import("@scalar/openapi-types").OpenAPIV3.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3.ParameterObject;
413
+ };
414
+ examples?: {
415
+ [key: string]: import("@scalar/openapi-types").OpenAPIV3.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3.ExampleObject;
416
+ };
417
+ requestBodies?: {
418
+ [key: string]: import("@scalar/openapi-types").OpenAPIV3.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3.RequestBodyObject;
419
+ };
420
+ headers?: {
421
+ [key: string]: import("@scalar/openapi-types").OpenAPIV3.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3.HeaderObject;
422
+ };
423
+ securitySchemes?: {
424
+ [key: string]: import("@scalar/openapi-types").OpenAPIV3.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3.SecuritySchemeObject;
425
+ };
426
+ links?: {
427
+ [key: string]: import("@scalar/openapi-types").OpenAPIV3.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3.LinkObject;
428
+ };
429
+ callbacks?: {
430
+ [key: string]: import("@scalar/openapi-types").OpenAPIV3.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3.CallbackObject;
431
+ };
432
+ } | {
433
+ schemas?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject>;
434
+ responses?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.ResponseObject>;
435
+ parameters?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.ParameterObject>;
436
+ examples?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.ExampleObject>;
437
+ requestBodies?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.RequestBodyObject>;
438
+ headers?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.HeaderObject>;
439
+ securitySchemes?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.SecuritySchemeObject>;
440
+ links?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.LinkObject>;
441
+ callbacks?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.CallbackObject>;
442
+ pathItems?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ReferenceObject | import("@scalar/openapi-types").OpenAPIV3_1.PathItemObject>;
443
+ } | undefined;
444
+ webhooks?: import("@scalar/types/legacy").Webhooks;
445
+ definitions?: import("@scalar/types/legacy").Definitions;
446
+ swagger?: import("@scalar/openapi-types").OpenAPIV2.Document["swagger"];
447
+ openapi?: import("@scalar/openapi-types").OpenAPIV3.Document["openapi"] | import("@scalar/openapi-types").OpenAPIV3_1.Document["openapi"];
448
+ 'x-tagGroups'?: {
449
+ name: string;
450
+ tags: string[];
451
+ }[] | undefined;
452
+ security?: import("@scalar/openapi-types").OpenAPIV3.SecurityRequirementObject[];
453
+ };
454
+ declare function __VLS_template(): Readonly<{
455
+ default(props: {
456
+ /** The given configuration */
457
+ configuration?: OpenApiDocumentConfiguration;
458
+ /** Errors, that came up when dereferencing */
459
+ errors: typeof errors.value;
460
+ /** OpenAPI version of the given document */
461
+ version: typeof version.value;
462
+ /** The dereferenced OpenAPI Document */
463
+ dereferenced: typeof dereferenced.value;
464
+ /**
465
+ * Dereferenced, normalized and parsedSpec OpenAPI document
466
+ * @deprecated We’ll remove this in the future.
467
+ */
468
+ parsedSpec: typeof parsedSpec;
469
+ }): any;
470
+ }> & {
471
+ default(props: {
472
+ /** The given configuration */
473
+ configuration?: OpenApiDocumentConfiguration;
474
+ /** Errors, that came up when dereferencing */
475
+ errors: typeof errors.value;
476
+ /** OpenAPI version of the given document */
477
+ version: typeof version.value;
478
+ /** The dereferenced OpenAPI Document */
479
+ dereferenced: typeof dereferenced.value;
480
+ /**
481
+ * Dereferenced, normalized and parsedSpec OpenAPI document
482
+ * @deprecated We’ll remove this in the future.
483
+ */
484
+ parsedSpec: typeof parsedSpec;
485
+ }): any;
486
+ };
487
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<{
488
+ configuration?: OpenApiDocumentConfiguration;
489
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
490
+ configuration?: OpenApiDocumentConfiguration;
491
+ }>>>, {}, {}>;
492
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
493
+ export default _default;
494
+ type __VLS_WithTemplateSlots<T, S> = T & {
495
+ new (): {
496
+ $slots: S;
497
+ };
498
+ };
499
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
500
+ type __VLS_TypePropsToOption<T> = {
501
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
502
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
503
+ } : {
504
+ type: import('vue').PropType<T[K]>;
505
+ required: true;
506
+ };
507
+ };
508
+ //# sourceMappingURL=OpenApiDocument.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenApiDocument.vue.d.ts","sourceRoot":"","sources":["../../../src/embeds/OpenApiDocument/OpenApiDocument.vue"],"names":[],"mappings":"AAqIA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAA;AAS3D,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAwC,CAAA;AAC1D,QAAA,MAAM,OAAO,uCAA8B,CAAA;AAC3C,QAAA,MAAM,MAAM;;;IAAyB,CAAA;AAIrC,QAAA,MAAoB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG5B,CAAA;AA6EF,iBAAS,cAAc;mBAjDN;QACb,8BAA8B;QAC9B,aAAa,CAAC,EAAE,4BAA4B,CAAA;QAC5C,8CAA8C;QAC9C,MAAM,EAAE,OAAO,MAAM,CAAC,KAAK,CAAA;QAC3B,4CAA4C;QAC5C,OAAO,EAAE,OAAO,OAAO,CAAC,KAAK,CAAA;QAC7B,wCAAwC;QACxC,YAAY,EAAE,OAAO,YAAY,CAAC,KAAK,CAAA;QACvC;;;WAGG;QACH,UAAU,EAAE,OAAO,UAAU,CAAA;KAC9B,GAAG,GAAG;;mBAdQ;QACb,8BAA8B;QAC9B,aAAa,CAAC,EAAE,4BAA4B,CAAA;QAC5C,8CAA8C;QAC9C,MAAM,EAAE,OAAO,MAAM,CAAC,KAAK,CAAA;QAC3B,4CAA4C;QAC5C,OAAO,EAAE,OAAO,OAAO,CAAC,KAAK,CAAA;QAC7B,wCAAwC;QACxC,YAAY,EAAE,OAAO,YAAY,CAAC,KAAK,CAAA;QACvC;;;WAGG;QACH,UAAU,EAAE,OAAO,UAAU,CAAA;KAC9B,GAAG,GAAG;EAuFR;AACD,QAAA,MAAM,eAAe;oBA/IH,4BAA4B;;oBAA5B,4BAA4B;aAqJ5C,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as OpenApiDocument } from './OpenApiDocument.vue';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/embeds/OpenApiDocument/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAClE,cAAc,SAAS,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { ReferenceConfiguration } from '../../types';
2
+ export type OpenApiDocumentConfiguration = Partial<Pick<ReferenceConfiguration, 'proxy' | 'baseServerURL' | 'servers' | 'spec' | 'authentication' | 'defaultHttpClient' | 'hiddenClients'>>;
3
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/embeds/OpenApiDocument/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAErD,MAAM,MAAM,4BAA4B,GAAG,OAAO,CAChD,IAAI,CACF,sBAAsB,EACpB,OAAO,GACP,eAAe,GACf,SAAS,GACT,MAAM,GACN,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './ExampleRequest';
2
+ export * from './OpenApiDocument';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/embeds/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"BaseUrl.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/BaseUrl.vue"],"names":[],"mappings":"AAkIA,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;;IAUtD;;OAEG;oBACa,IAAI;IACpB;;OAEG;uBACgB,MAAM;IACzB;;OAEG;cACO,MAAM,EAAE;;IAXlB;;OAEG;oBACa,IAAI;IACpB;;OAEG;uBACgB,MAAM;IACzB;;OAEG;cACO,MAAM,EAAE;;AA0KpB,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"BaseUrl.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/BaseUrl.vue"],"names":[],"mappings":"AAsEA,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;;IAQtD;;OAEG;oBACa,IAAI;IACpB;;OAEG;uBACgB,MAAM;IACzB;;OAEG;cACO,MAAM,EAAE;;IAXlB;;OAEG;oBACa,IAAI;IACpB;;OAEG;uBACgB,MAAM;IACzB;;OAEG;cACO,MAAM,EAAE;;AAgHpB,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,97 +1,47 @@
1
- import { defineComponent as b, ref as S, watch as c, openBlock as U, createBlock as g, unref as u } from "vue";
2
- import j from "./ServerForm.vue.js";
3
- import { getServers as E } from "./utils/getServers.js";
4
- import { createEmptySpecification as O } from "../../helpers/createEmptySpecification.js";
5
- import { useServerStore as _ } from "../../legacy/stores/useServerStore.js";
6
- const w = /* @__PURE__ */ b({
1
+ import { defineComponent as d, toRef as a, ref as m, watch as S, openBlock as b, createBlock as U, unref as n } from "vue";
2
+ import _ from "./ServerForm.vue.js";
3
+ import { useServerStore as B } from "../../legacy/stores/useServerStore.js";
4
+ const C = /* @__PURE__ */ d({
7
5
  __name: "BaseUrl",
8
6
  props: {
9
7
  specification: {},
10
8
  defaultServerUrl: {},
11
9
  servers: {}
12
10
  },
13
- setup(f) {
14
- const a = f, { server: i, setServer: o } = _(), s = S(0);
15
- c(
16
- s,
11
+ setup(i) {
12
+ const s = i, v = a(s.specification), c = a(s.defaultServerUrl), p = a(s.servers), { server: t, setServer: o } = B({
13
+ specification: v,
14
+ defaultServerUrl: c,
15
+ servers: p
16
+ }), e = m(0);
17
+ S(
18
+ e,
17
19
  () => o({
18
- selectedServer: s.value
20
+ selectedServer: e.value
19
21
  }),
20
22
  {
21
23
  immediate: !0
22
24
  }
23
- ), c(
24
- () => a.specification,
25
- () => {
26
- var r;
27
- const t = (
28
- // Use the specification
29
- a.servers === void 0 ? a.specification : (
30
- // Or create an empty one with the specified servers list
31
- O({
32
- servers: a.servers
33
- })
34
- )
35
- ), e = E(t, {
36
- defaultServerUrl: a.defaultServerUrl
37
- });
38
- o({
39
- servers: e,
40
- variables: {
41
- // Set the initial values for the variables
42
- ...m(
43
- ((r = e[s.value]) == null ? void 0 : r.variables) ?? {}
44
- ),
45
- // Don’t overwrite existing values, but filter out non-existing variables
46
- ...p(
47
- i.variables,
48
- e[s.value]
49
- )
50
- }
51
- });
52
- },
53
- { deep: !0, immediate: !0 }
54
25
  );
55
- function m(t) {
56
- return Object.fromEntries(
57
- Object.entries(t ?? {}).map(([e, r]) => {
58
- var n, l, v;
59
- return [
60
- e,
61
- // 1) Default
62
- ((n = r.default) == null ? void 0 : n.toString()) ?? // 2) First enum value
63
- ((v = (l = r.enum) == null ? void 0 : l[0]) == null ? void 0 : v.toString()) ?? // 3) Empty string
64
- ""
65
- ];
66
- })
67
- );
68
- }
69
- function p(t, e) {
70
- return Object.fromEntries(
71
- Object.entries(t).filter(
72
- ([r]) => r in (e.variables ?? {})
73
- )
74
- );
75
- }
76
- function d(t, e) {
26
+ function f(l, r) {
77
27
  o({
78
28
  variables: {
79
- ...i.variables,
80
- [t]: e
29
+ ...t.variables,
30
+ [l]: r
81
31
  }
82
32
  });
83
33
  }
84
- return (t, e) => (U(), g(j, {
85
- selected: s.value,
86
- servers: u(i).servers,
87
- variables: u(i).variables,
88
- "onUpdate:selected": e[0] || (e[0] = (r) => {
89
- s.value = r;
34
+ return (l, r) => (b(), U(_, {
35
+ selected: e.value,
36
+ servers: n(t).servers,
37
+ variables: n(t).variables,
38
+ "onUpdate:selected": r[0] || (r[0] = (u) => {
39
+ e.value = u;
90
40
  }),
91
- "onUpdate:variable": d
41
+ "onUpdate:variable": f
92
42
  }, null, 8, ["selected", "servers", "variables"]));
93
43
  }
94
44
  });
95
45
  export {
96
- w as default
46
+ C as default
97
47
  };