@scalar/api-reference 1.28.32 → 1.28.34

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 (209) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/dist/browser/standalone.js +7541 -7368
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
  5. package/dist/components/Anchor/Anchor.vue.js +2 -2
  6. package/dist/components/Anchor/Anchor.vue2.js +24 -22
  7. package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
  8. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  9. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  10. package/dist/components/ApiReferenceLayout.vue2.js +50 -50
  11. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  12. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +1 -1
  13. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +5 -5
  14. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  15. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
  16. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +1 -1
  17. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +1 -1
  18. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  19. package/dist/components/Content/Content.vue.js +2 -2
  20. package/dist/components/Content/Content.vue2.js +56 -56
  21. package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
  22. package/dist/components/Content/Introduction/Introduction.vue2.js +21 -21
  23. package/dist/components/Content/Lazy/Loading.vue.js +22 -22
  24. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Models/Models.vue.js +2 -2
  26. package/dist/components/Content/Models/Models.vue2.js +17 -17
  27. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
  28. package/dist/components/Content/Models/ModelsAccordion.vue.js +2 -2
  29. package/dist/components/Content/Models/ModelsAccordion.vue2.js +14 -14
  30. package/dist/components/Content/Schema/Schema.preview.d.ts +98 -15
  31. package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
  32. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  33. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  34. package/dist/components/Content/Schema/Schema.vue2.js +2 -1
  35. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
  36. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +99 -5
  37. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +2 -165
  38. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  39. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  40. package/dist/components/Content/Schema/SchemaProperty.vue2.js +27 -26
  41. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  42. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  43. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +142 -138
  44. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +1 -1
  45. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  46. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +50 -40
  47. package/dist/components/Content/Tag/OperationsListItem.vue.js +1 -1
  48. package/dist/components/Content/Tag/OperationsListItem.vue2.js +1 -1
  49. package/dist/components/Content/Tag/TagAccordion.vue.js +2 -2
  50. package/dist/components/Content/Tag/TagAccordion.vue2.js +10 -10
  51. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  52. package/dist/components/Content/Tag/TagList.vue.js +8 -8
  53. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
  54. package/dist/components/Content/Tag/TagSection.vue.js +2 -2
  55. package/dist/components/Content/Tag/TagSection.vue2.js +8 -8
  56. package/dist/components/GettingStarted.vue.d.ts +2 -2
  57. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  58. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  59. package/dist/components/Layouts/ModernLayout.vue2.js +4 -4
  60. package/dist/components/MobileHeader.vue.js +3 -3
  61. package/dist/components/Section/CompactSection.vue.js +2 -2
  62. package/dist/components/Section/CompactSection.vue2.js +4 -4
  63. package/dist/components/Section/Section.vue.d.ts.map +1 -1
  64. package/dist/components/Section/Section.vue.js +1 -1
  65. package/dist/components/Section/SectionHeader.vue.js +2 -2
  66. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  67. package/dist/components/ShowMoreButton.vue.js +2 -2
  68. package/dist/components/Sidebar/Sidebar.vue.d.ts +1 -1
  69. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  70. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  71. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  72. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  73. package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
  74. package/dist/components/Sidebar/SidebarElement.vue2.js +6 -6
  75. package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
  76. package/dist/components/SpecificationExtension/SpecificationExtension.vue.d.ts.map +1 -1
  77. package/dist/components/SpecificationExtension/SpecificationExtension.vue.js +30 -21
  78. package/dist/features/ApiClientModal/ApiClientModal.vue.js +3 -3
  79. package/dist/features/ApiClientModal/index.d.ts +1 -1
  80. package/dist/features/ApiClientModal/index.d.ts.map +1 -1
  81. package/dist/features/ApiClientModal/useApiClient.d.ts +170 -90
  82. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  83. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  84. package/dist/features/BaseUrl/BaseUrl.vue.js +33 -28
  85. package/dist/features/DownloadLink/DownloadLink.vue.d.ts +1 -1
  86. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
  87. package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
  88. package/dist/features/DownloadLink/DownloadLink.vue2.js +17 -17
  89. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  90. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  91. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +12 -12
  92. package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -1
  93. package/dist/features/Operation/Webhooks.vue.js +2 -2
  94. package/dist/features/Operation/Webhooks.vue2.js +13 -13
  95. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  96. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  97. package/dist/features/Operation/components/ParameterListItem.vue2.js +18 -18
  98. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  99. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  100. package/dist/features/Operation/components/RequestBody.vue2.js +38 -32
  101. package/dist/features/Operation/hooks/useResponses.d.ts +1 -0
  102. package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
  103. package/dist/features/Operation/hooks/useResponses.js +13 -12
  104. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  105. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  106. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +1 -1
  107. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  108. package/dist/features/Operation/layouts/ModernLayout.vue2.js +1 -1
  109. package/dist/features/Search/SearchButton.vue.js +2 -2
  110. package/dist/features/Search/SearchButton.vue2.js +1 -1
  111. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  112. package/dist/features/Search/SearchModal.vue.js +2 -2
  113. package/dist/features/Search/SearchModal.vue2.js +1 -1
  114. package/dist/features/Search/useSearchIndex.d.ts +1 -1
  115. package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
  116. package/dist/features/Search/useSearchIndex.js +20 -21
  117. package/dist/helpers/{isMacOs.d.ts → is-mac-os.d.ts} +1 -1
  118. package/dist/helpers/is-mac-os.d.ts.map +1 -0
  119. package/dist/helpers/parse.d.ts.map +1 -1
  120. package/dist/helpers/parse.js +1 -1
  121. package/dist/helpers/{scrollToId.d.ts → scroll-to-id.d.ts} +1 -1
  122. package/dist/helpers/scroll-to-id.d.ts.map +1 -0
  123. package/dist/helpers/sleep.d.ts +0 -2
  124. package/dist/helpers/sleep.d.ts.map +1 -1
  125. package/dist/hooks/useNavState.d.ts.map +1 -1
  126. package/dist/hooks/useNavState.js +28 -28
  127. package/dist/hooks/useReactiveSpec.js +1 -1
  128. package/dist/hooks/useSidebar.d.ts.map +1 -1
  129. package/dist/hooks/useSidebar.js +45 -49
  130. package/dist/index.d.ts +2 -3
  131. package/dist/index.d.ts.map +1 -1
  132. package/dist/index.js +26 -28
  133. package/dist/legacy/fixtures/index.d.ts +1 -1
  134. package/dist/legacy/fixtures/index.d.ts.map +1 -1
  135. package/dist/legacy/helpers/index.d.ts +1 -1
  136. package/dist/legacy/helpers/index.d.ts.map +1 -1
  137. package/dist/libs/download.d.ts +9 -0
  138. package/dist/libs/download.d.ts.map +1 -0
  139. package/dist/libs/download.js +19 -0
  140. package/dist/{helpers/getLowestHeadingLevel.d.ts → libs/markdown.d.ts} +5 -1
  141. package/dist/libs/markdown.d.ts.map +1 -0
  142. package/dist/libs/markdown.js +18 -0
  143. package/dist/libs/openapi.d.ts +56 -0
  144. package/dist/libs/openapi.d.ts.map +1 -0
  145. package/dist/libs/openapi.js +102 -0
  146. package/dist/style.css +1 -1
  147. package/dist/types.d.ts +1 -45
  148. package/dist/types.d.ts.map +1 -1
  149. package/package.json +21 -21
  150. package/dist/esm.js +0 -34
  151. package/dist/helpers/createEmptySpecification.d.ts +0 -8
  152. package/dist/helpers/createEmptySpecification.d.ts.map +0 -1
  153. package/dist/helpers/createEmptySpecification.js +0 -27
  154. package/dist/helpers/deepMerge.d.ts +0 -5
  155. package/dist/helpers/deepMerge.d.ts.map +0 -1
  156. package/dist/helpers/deepMerge.js +0 -8
  157. package/dist/helpers/generateParameters.d.ts +0 -6
  158. package/dist/helpers/generateParameters.d.ts.map +0 -1
  159. package/dist/helpers/get-request.d.ts +0 -59
  160. package/dist/helpers/get-request.d.ts.map +0 -1
  161. package/dist/helpers/getHeadingsFromMarkdown.d.ts +0 -6
  162. package/dist/helpers/getHeadingsFromMarkdown.d.ts.map +0 -1
  163. package/dist/helpers/getHeadingsFromMarkdown.js +0 -13
  164. package/dist/helpers/getLowestHeadingLevel.d.ts.map +0 -1
  165. package/dist/helpers/getLowestHeadingLevel.js +0 -7
  166. package/dist/helpers/getModels.d.ts +0 -7
  167. package/dist/helpers/getModels.d.ts.map +0 -1
  168. package/dist/helpers/getModels.js +0 -22
  169. package/dist/helpers/getVariableNames.d.ts +0 -5
  170. package/dist/helpers/getVariableNames.d.ts.map +0 -1
  171. package/dist/helpers/hasModels.d.ts +0 -3
  172. package/dist/helpers/hasModels.d.ts.map +0 -1
  173. package/dist/helpers/hasModels.js +0 -5
  174. package/dist/helpers/hasSecuritySchemes.d.ts +0 -3
  175. package/dist/helpers/hasSecuritySchemes.d.ts.map +0 -1
  176. package/dist/helpers/hasWebhooks.d.ts +0 -3
  177. package/dist/helpers/hasWebhooks.d.ts.map +0 -1
  178. package/dist/helpers/hasWebhooks.js +0 -4
  179. package/dist/helpers/index.d.ts +0 -17
  180. package/dist/helpers/index.d.ts.map +0 -1
  181. package/dist/helpers/isMacOs.d.ts.map +0 -1
  182. package/dist/helpers/mapFromObject.d.ts +0 -8
  183. package/dist/helpers/mapFromObject.d.ts.map +0 -1
  184. package/dist/helpers/mergeAllObjects.d.ts +0 -5
  185. package/dist/helpers/mergeAllObjects.d.ts.map +0 -1
  186. package/dist/helpers/scrollToId.d.ts.map +0 -1
  187. package/dist/helpers/specDownloads.d.ts +0 -7
  188. package/dist/helpers/specDownloads.d.ts.map +0 -1
  189. package/dist/helpers/specDownloads.js +0 -19
  190. package/dist/helpers/specHelpers.d.ts +0 -16
  191. package/dist/helpers/specHelpers.d.ts.map +0 -1
  192. package/dist/helpers/specHelpers.js +0 -36
  193. package/dist/helpers/waitFor.d.ts +0 -5
  194. package/dist/helpers/waitFor.d.ts.map +0 -1
  195. package/dist/hooks/index.d.ts +0 -5
  196. package/dist/hooks/index.d.ts.map +0 -1
  197. package/dist/legacy/helpers/encodeStringAsBase64.d.ts +0 -5
  198. package/dist/legacy/helpers/encodeStringAsBase64.d.ts.map +0 -1
  199. package/dist/legacy/index.d.ts +0 -5
  200. package/dist/legacy/index.d.ts.map +0 -1
  201. package/dist/legacy/types.d.ts +0 -94
  202. package/dist/legacy/types.d.ts.map +0 -1
  203. package/dist/libs/operation.d.ts +0 -15
  204. package/dist/libs/operation.d.ts.map +0 -1
  205. package/dist/libs/operation.js +0 -16
  206. package/dist/stores/index.d.ts +0 -2
  207. package/dist/stores/index.d.ts.map +0 -1
  208. /package/dist/helpers/{isMacOs.js → is-mac-os.js} +0 -0
  209. /package/dist/helpers/{scrollToId.js → scroll-to-id.js} +0 -0
@@ -205,31 +205,114 @@ export declare const discriminatorsSchema: {
205
205
  name: string;
206
206
  noncollapsible: boolean;
207
207
  value: {
208
- anyOf: ({
209
- name: string;
208
+ type: string;
209
+ properties: {
210
+ foobar: {
211
+ type: string;
212
+ anyOf: ({
213
+ name: string;
214
+ type: string;
215
+ properties: {
216
+ type: {
217
+ type: string;
218
+ enum: string[];
219
+ };
220
+ fooProperty: {
221
+ type: string;
222
+ };
223
+ barProperty?: undefined;
224
+ };
225
+ } | {
226
+ name: string;
227
+ type: string;
228
+ properties: {
229
+ type: {
230
+ type: string;
231
+ enum: string[];
232
+ };
233
+ barProperty: {
234
+ type: string;
235
+ };
236
+ fooProperty?: undefined;
237
+ };
238
+ })[];
239
+ };
240
+ };
241
+ };
242
+ };
243
+ };
244
+ export declare const complexArrayDiscriminatorSchema: {
245
+ component: import("vue").DefineComponent<{
246
+ value?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | import("@scalar/openapi-types").OpenAPIV3.SchemaObject | import("@scalar/openapi-types").OpenAPIV3.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3.NonArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.NonArraySchemaObject;
247
+ level?: number;
248
+ name?: string;
249
+ compact?: boolean;
250
+ noncollapsible?: boolean;
251
+ hideHeading?: boolean;
252
+ additionalProperties?: boolean;
253
+ schemas?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | Record<string, import("@scalar/openapi-types").OpenAPIV3.SchemaObject> | Record<string, import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject> | unknown;
254
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
255
+ value?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | import("@scalar/openapi-types").OpenAPIV3.SchemaObject | import("@scalar/openapi-types").OpenAPIV3.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3.NonArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.NonArraySchemaObject;
256
+ level?: number;
257
+ name?: string;
258
+ compact?: boolean;
259
+ noncollapsible?: boolean;
260
+ hideHeading?: boolean;
261
+ additionalProperties?: boolean;
262
+ schemas?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | Record<string, import("@scalar/openapi-types").OpenAPIV3.SchemaObject> | Record<string, import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject> | unknown;
263
+ }> & Readonly<{}>, {
264
+ level: number;
265
+ noncollapsible: boolean;
266
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
267
+ props: {
268
+ name: string;
269
+ noncollapsible: boolean;
270
+ value: {
271
+ allOf: ({
210
272
  type: string;
211
273
  properties: {
212
- type: {
213
- type: string;
214
- enum: string[];
215
- };
216
- fooProperty: {
274
+ 'top-level-property': {
217
275
  type: string;
218
276
  };
219
- barProperty?: undefined;
277
+ 'top-level-array'?: undefined;
220
278
  };
221
279
  } | {
222
- name: string;
223
280
  type: string;
224
281
  properties: {
225
- type: {
226
- type: string;
227
- enum: string[];
228
- };
229
- barProperty: {
282
+ 'top-level-array': {
230
283
  type: string;
284
+ items: {
285
+ type: string;
286
+ oneOf: ({
287
+ name: string;
288
+ type: string;
289
+ properties: {
290
+ type: {
291
+ type: string;
292
+ enum: string[];
293
+ };
294
+ fooProperty: {
295
+ type: string;
296
+ };
297
+ barProperty?: undefined;
298
+ };
299
+ } | {
300
+ name: string;
301
+ type: string;
302
+ properties: {
303
+ type: {
304
+ type: string;
305
+ enum: string[];
306
+ };
307
+ barProperty: {
308
+ type: string;
309
+ };
310
+ fooProperty?: undefined;
311
+ };
312
+ })[];
313
+ };
231
314
  };
232
- fooProperty?: undefined;
315
+ 'top-level-property'?: undefined;
233
316
  };
234
317
  })[];
235
318
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.preview.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.preview.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWxB,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBxB,CAAA;AAWD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAO3B,CAAA;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWtB,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBhC,CAAA;AAED,eAAO,MAAM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CAAA;AAED,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDlC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AA4UA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAU9E,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EACF,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,CAAA;IACpC,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,+FAA+F;IAC/F,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;;WAfQ,MAAM;oBAMG,OAAO;;AAoX5B,wBAOG"}
1
+ {"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AAoVA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAU9E,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EACF,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,CAAA;IACpC,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,+FAA+F;IAC/F,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;;WAfQ,MAAM;oBAMG,OAAO;;AAyX5B,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Schema.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9d26eedb"]]);
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-530c72b2"]]);
5
5
  export {
6
- a as default
6
+ c as default
7
7
  };
@@ -181,10 +181,11 @@ const M = {
181
181
  key: 1,
182
182
  compact: e.compact,
183
183
  hideHeading: e.hideHeading,
184
+ level: e.level,
184
185
  name: e.value.name,
185
186
  schemas: e.schemas,
186
187
  value: e.value
187
- }, null, 8, ["compact", "hideHeading", "name", "schemas", "value"]))
188
+ }, null, 8, ["compact", "hideHeading", "level", "name", "schemas", "value"]))
188
189
  ];
189
190
  }),
190
191
  _: 1
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaDiscriminator.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaDiscriminator.vue"],"names":[],"mappings":"AA+QA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAU9E,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA4UF,wBAOG"}
1
+ {"version":3,"file":"SchemaDiscriminator.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaDiscriminator.vue"],"names":[],"mappings":"AAwJA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAU9E,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA2LF,wBAOG"}
@@ -1,7 +1,101 @@
1
- import o from "./SchemaDiscriminator.vue2.js";
2
- /* empty css */
3
- import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-97ac13d3"]]);
1
+ import { defineComponent as g, ref as h, computed as p, createElementBlock as u, openBlock as i, createBlock as S, Fragment as k, createVNode as s, createElementVNode as r, unref as m, withCtx as O, toDisplayString as d } from "vue";
2
+ import { ScalarListbox as C } from "@scalar/components";
3
+ import { ScalarIconCaretDown as V } from "@scalar/icons";
4
+ import { stringify as f } from "flatted";
5
+ import { mergeAllOfSchemas as j } from "./helpers/merge-all-of-schemas.js";
6
+ import v from "./Schema.vue.js";
7
+ const B = { class: "property-rule" }, N = {
8
+ class: "discriminator-selector bg-b-1.5 hover:bg-b-2 py-1.25 flex cursor-pointer gap-1 rounded-t-lg border border-b-0 px-2 pr-3 text-left",
9
+ type: "button"
10
+ }, w = { class: "text-c-2" }, H = { class: "discriminator-selector-label text-c-1 relative" }, z = { class: "discriminator-panel" }, I = /* @__PURE__ */ g({
11
+ __name: "SchemaDiscriminator",
12
+ props: {
13
+ discriminator: {},
14
+ schemas: {},
15
+ name: {},
16
+ value: {},
17
+ level: {},
18
+ compact: { type: Boolean },
19
+ hideHeading: { type: Boolean }
20
+ },
21
+ setup(o) {
22
+ const l = h(0), c = p(
23
+ () => o.value[o.discriminator].map((e, t) => ({
24
+ id: String(t),
25
+ label: y(e) || "Schema"
26
+ }))
27
+ ), n = p({
28
+ get: () => c.value.find(
29
+ (e) => e.id === String(l.value)
30
+ ),
31
+ set: (e) => l.value = Number(e.id)
32
+ }), y = (e) => {
33
+ if (!e)
34
+ return null;
35
+ if (e.name)
36
+ return e.name;
37
+ if (e.title)
38
+ return e.title;
39
+ if (o.schemas && typeof o.schemas == "object") {
40
+ for (const [t, a] of Object.entries(o.schemas))
41
+ if (f(a) === f(e))
42
+ return t;
43
+ return Object.keys(e)[0];
44
+ }
45
+ if (e.type === "array" && e.items)
46
+ return `Array of ${e.items.type || "any"}`;
47
+ if (e.type)
48
+ return e.type;
49
+ if (typeof e == "object") {
50
+ const t = Object.keys(e);
51
+ if (t.length > 0)
52
+ return t[0];
53
+ }
54
+ return null;
55
+ }, b = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase()).toLowerCase().replace(/^(\w)/, (t) => t.toUpperCase());
56
+ return (e, t) => (i(), u("div", B, [
57
+ e.discriminator === "oneOf" || e.discriminator === "anyOf" ? (i(), u(k, { key: 0 }, [
58
+ s(m(C), {
59
+ modelValue: n.value,
60
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => n.value = a),
61
+ options: c.value,
62
+ resize: ""
63
+ }, {
64
+ default: O(() => {
65
+ var a;
66
+ return [
67
+ r("button", N, [
68
+ r("span", w, d(b(e.discriminator)), 1),
69
+ r("span", H, d(((a = n.value) == null ? void 0 : a.label) || "Schema"), 1),
70
+ s(m(V), { class: "z-1" })
71
+ ])
72
+ ];
73
+ }),
74
+ _: 1
75
+ }, 8, ["modelValue", "options"]),
76
+ r("div", z, [
77
+ s(v, {
78
+ compact: e.compact,
79
+ level: e.level,
80
+ hideHeading: e.hideHeading,
81
+ name: e.name,
82
+ noncollapsible: !0,
83
+ schemas: e.schemas,
84
+ value: e.value[e.discriminator][l.value]
85
+ }, null, 8, ["compact", "level", "hideHeading", "name", "schemas", "value"])
86
+ ])
87
+ ], 64)) : (i(), S(v, {
88
+ key: 1,
89
+ compact: e.compact,
90
+ level: e.level,
91
+ name: e.name,
92
+ noncollapsible: e.level == 0,
93
+ schemas: e.schemas,
94
+ value: m(j)(e.value[e.discriminator])
95
+ }, null, 8, ["compact", "level", "name", "noncollapsible", "schemas", "value"]))
96
+ ]));
97
+ }
98
+ });
5
99
  export {
6
- c as default
100
+ I as default
7
101
  };
@@ -1,167 +1,4 @@
1
- import { defineComponent as B, ref as v, onMounted as N, nextTick as L, computed as C, createElementBlock as b, openBlock as n, createBlock as i, unref as l, withCtx as o, createVNode as u, createElementVNode as m, toDisplayString as y, Fragment as V, renderList as O, normalizeClass as T } from "vue";
2
- import { TabGroup as U, TabList as A, Tab as D, TabPanel as H } from "@headlessui/vue";
3
- import { cva as $, cx as w, ScalarListbox as E } from "@scalar/components";
4
- import { ScalarIconCaretDown as F } from "@scalar/icons";
5
- import { stringify as z } from "flatted";
6
- import { mergeAllOfSchemas as I } from "./helpers/merge-all-of-schemas.js";
7
- import h from "./Schema.vue.js";
8
- const M = { class: "property-rule" }, W = { class: "text-c-3" }, G = { class: "schema-tab-label z-1 relative" }, P = { class: "schema-tab-label z-1 text-c-1 relative" }, x = /* @__PURE__ */ B({
9
- __name: "SchemaDiscriminator",
10
- props: {
11
- discriminator: {},
12
- schemas: {},
13
- name: {},
14
- value: {},
15
- level: {},
16
- compact: { type: Boolean },
17
- hideHeading: { type: Boolean }
18
- },
19
- setup(s) {
20
- const r = v(0), d = v(null), p = v(!1);
21
- N(async () => {
22
- if (await L(), d.value) {
23
- const e = d.value;
24
- p.value = e.scrollWidth > e.clientWidth;
25
- }
26
- });
27
- const g = $({
28
- base: "schema-tab",
29
- variants: {
30
- selected: {
31
- true: "schema-tab-selected",
32
- false: "text-c-3"
33
- }
34
- }
35
- }), k = C(
36
- () => s.value[s.discriminator].map((e, a) => ({
37
- id: String(a),
38
- label: S(e) || "Schema"
39
- }))
40
- ), f = C({
41
- get: () => k.value.find(
42
- (e) => e.id === String(r.value)
43
- ),
44
- set: (e) => r.value = Number(e.id)
45
- }), S = (e) => {
46
- if (!e)
47
- return null;
48
- if (e.name)
49
- return e.name;
50
- if (e.title)
51
- return e.title;
52
- if (s.schemas && typeof s.schemas == "object") {
53
- for (const [a, t] of Object.entries(s.schemas))
54
- if (z(t) === z(e))
55
- return a;
56
- return Object.keys(e)[0];
57
- }
58
- if (e.type === "array" && e.items)
59
- return `Array of ${e.items.type || "any"}`;
60
- if (e.type)
61
- return e.type;
62
- if (typeof e == "object") {
63
- const a = Object.keys(e);
64
- if (a.length > 0)
65
- return a[0];
66
- }
67
- return null;
68
- }, j = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (a) => a.toUpperCase()).toLowerCase().replace(/^(\w)/, (a) => a.toUpperCase());
69
- return (e, a) => (n(), b("div", M, [
70
- e.discriminator === "oneOf" || e.discriminator === "anyOf" ? (n(), i(l(U), {
71
- key: 0,
72
- modelValue: r.value,
73
- "onUpdate:modelValue": a[1] || (a[1] = (t) => r.value = t),
74
- as: "div"
75
- }, {
76
- default: o(() => [
77
- u(l(A), { class: "discriminator-tab-list py-1.25 flex flex-col gap-1 rounded-t-lg border border-b-0 px-2 pr-3" }, {
78
- default: o(() => [
79
- m("span", W, y(j(e.discriminator)), 1),
80
- m("div", {
81
- ref_key: "tabsContainer",
82
- ref: d,
83
- class: "flex items-center gap-1.5"
84
- }, [
85
- p.value ? (n(), i(l(E), {
86
- key: 1,
87
- modelValue: f.value,
88
- "onUpdate:modelValue": a[0] || (a[0] = (t) => f.value = t),
89
- options: k.value,
90
- resize: ""
91
- }, {
92
- default: o(() => {
93
- var t;
94
- return [
95
- m("div", {
96
- class: T(["flex cursor-pointer items-center gap-1", l(w)(l(g)({ selected: !0 }))])
97
- }, [
98
- m("span", P, y(((t = f.value) == null ? void 0 : t.label) || "Schema"), 1),
99
- u(l(F), { class: "z-1" })
100
- ], 2)
101
- ];
102
- }),
103
- _: 1
104
- }, 8, ["modelValue", "options"])) : (n(!0), b(V, { key: 0 }, O(e.value[e.discriminator], (t, c) => (n(), i(l(D), {
105
- key: c,
106
- class: T(
107
- l(w)(l(g)({ selected: r.value === c }))
108
- ),
109
- onClick: (Z) => r.value = c
110
- }, {
111
- default: o(() => [
112
- m("span", G, y(S(t) || "Schema"), 1)
113
- ]),
114
- _: 2
115
- }, 1032, ["class", "onClick"]))), 128))
116
- ], 512)
117
- ]),
118
- _: 1
119
- }),
120
- p.value ? (n(), i(l(H), {
121
- key: 1,
122
- class: "discriminator-panel"
123
- }, {
124
- default: o(() => [
125
- u(h, {
126
- compact: e.compact,
127
- hideHeading: e.hideHeading,
128
- name: e.name,
129
- noncollapsible: !0,
130
- schemas: e.schemas,
131
- value: e.value[e.discriminator][r.value]
132
- }, null, 8, ["compact", "hideHeading", "name", "schemas", "value"])
133
- ]),
134
- _: 1
135
- })) : (n(!0), b(V, { key: 0 }, O(e.value[e.discriminator], (t, c) => (n(), i(l(H), {
136
- key: c,
137
- class: "discriminator-panel"
138
- }, {
139
- default: o(() => [
140
- u(h, {
141
- compact: e.compact,
142
- hideHeading: e.hideHeading,
143
- name: e.name,
144
- noncollapsible: !0,
145
- schemas: e.schemas,
146
- value: t
147
- }, null, 8, ["compact", "hideHeading", "name", "schemas", "value"])
148
- ]),
149
- _: 2
150
- }, 1024))), 128))
151
- ]),
152
- _: 1
153
- }, 8, ["modelValue"])) : (n(), i(h, {
154
- key: 1,
155
- compact: e.compact,
156
- level: e.level,
157
- name: e.name,
158
- noncollapsible: e.level == 0,
159
- schemas: e.schemas,
160
- value: l(I)(e.value[e.discriminator])
161
- }, null, 8, ["compact", "level", "name", "noncollapsible", "schemas", "value"]))
162
- ]));
163
- }
164
- });
1
+ import f from "./SchemaDiscriminator.vue.js";
165
2
  export {
166
- x as default
3
+ f as default
167
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AA0gBA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAe9C;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAA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pB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;cAZW,OAAO;WAFV,MAAM;aAGJ,OAAO;kBAIF,OAAO;;AAmd1B,0BAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaProperty.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-82c33291"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-03890de7"]]);
5
5
  export {
6
- a as default
6
+ p as default
7
7
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as $, computed as y, createBlock as h, openBlock as l, resolveDynamicComponent as M, normalizeClass as I, withCtx as m, createCommentVNode as r, createElementBlock as s, createVNode as a, createSlots as G, createTextVNode as D, toDisplayString as c, unref as i, Fragment as d, renderList as k, createElementVNode as f } from "vue";
1
+ import { defineComponent as Z, computed as y, createBlock as h, openBlock as l, resolveDynamicComponent as M, normalizeClass as A, withCtx as m, createCommentVNode as r, createElementBlock as s, createVNode as a, createSlots as G, createTextVNode as D, toDisplayString as c, unref as i, Fragment as d, renderList as k, createElementVNode as f } from "vue";
2
2
  import { Disclosure as J, DisclosurePanel as K, DisclosureButton as Q } from "@headlessui/vue";
3
- import { ScalarMarkdown as S, ScalarIcon as W } from "@scalar/components";
3
+ import { ScalarMarkdown as H, ScalarIcon as W } from "@scalar/components";
4
4
  import { optimizeValueForDisplay as X, discriminators as Y } from "./helpers/optimizeValueForDisplay.js";
5
- import L from "./Schema.vue.js";
6
- import O from "./SchemaDiscriminator.vue.js";
5
+ import I from "./Schema.vue.js";
6
+ import L from "./SchemaDiscriminator.vue.js";
7
7
  import x from "./SchemaPropertyHeading.vue.js";
8
8
  import ee from "../../SpecificationExtension/SpecificationExtension.vue.js";
9
9
  const ne = {
@@ -27,7 +27,7 @@ const ne = {
27
27
  }, de = {
28
28
  key: 0,
29
29
  class: "children"
30
- }, Be = /* @__PURE__ */ $({
30
+ }, Be = /* @__PURE__ */ Z({
31
31
  __name: "SchemaProperty",
32
32
  props: {
33
33
  is: {},
@@ -44,8 +44,8 @@ const ne = {
44
44
  schemas: {},
45
45
  hideHeading: { type: Boolean }
46
46
  },
47
- setup(_) {
48
- const R = _, H = {
47
+ setup(O) {
48
+ const $ = O, S = {
49
49
  integer: {
50
50
  _default: "Integer numbers.",
51
51
  int32: "Signed 32-bit integers (commonly used integer type).",
@@ -58,20 +58,20 @@ const ne = {
58
58
  byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
59
59
  binary: "binary data, used to describe files"
60
60
  }
61
- }, B = (e, t) => t != null && t.properties || t != null && t.additionalProperties || t != null && t.patternProperties || t != null && t.allOf ? null : e || (t == null ? void 0 : t.description) || null, E = (e) => !e || !H[e.type] ? null : H[e.type][e.format || "_default"], p = (e) => {
61
+ }, B = (e, t) => t != null && t.properties || t != null && t.additionalProperties || t != null && t.patternProperties || t != null && t.allOf ? null : e || (t == null ? void 0 : t.description) || null, E = (e) => !e || !S[e.type] ? null : S[e.type][e.format || "_default"], p = (e) => {
62
62
  var t;
63
63
  return (e == null ? void 0 : e.enum) || ((t = e == null ? void 0 : e.items) == null ? void 0 : t.enum) || [];
64
64
  }, C = y(
65
65
  () => p(n.value).length > 9
66
- ), P = y(() => C.value ? 5 : 9), T = y(
66
+ ), P = y(() => C.value ? 5 : 9), R = y(
67
67
  () => p(n.value).slice(0, P.value)
68
- ), U = y(
68
+ ), T = y(
69
69
  () => p(n.value).slice(P.value)
70
- ), n = y(() => X(R.value)), Z = (e, t, g, b, v) => t || g || b || (e == null ? void 0 : e.deprecated) || (e == null ? void 0 : e.const) || (e == null ? void 0 : e.enum) && e.enum.length === 1 || (e == null ? void 0 : e.type) || (e == null ? void 0 : e.nullable) === !0 || (e == null ? void 0 : e.writeOnly) || (e == null ? void 0 : e.readOnly) || v;
70
+ ), n = y(() => X($.value)), U = (e, t, g, b, v) => t || g || b || (e == null ? void 0 : e.deprecated) || (e == null ? void 0 : e.const) || (e == null ? void 0 : e.enum) && e.enum.length === 1 || (e == null ? void 0 : e.type) || (e == null ? void 0 : e.nullable) === !0 || (e == null ? void 0 : e.writeOnly) || (e == null ? void 0 : e.readOnly) || v;
71
71
  return (e, t) => {
72
72
  var g;
73
73
  return l(), h(M(e.is ?? "li"), {
74
- class: I(["property", [
74
+ class: A(["property", [
75
75
  (B(e.description, n.value), ""),
76
76
  `property--level-${e.level}`,
77
77
  {
@@ -83,7 +83,7 @@ const ne = {
83
83
  default: m(() => {
84
84
  var b, v, w, q, F, N, V, j, z;
85
85
  return [
86
- Z(
86
+ U(
87
87
  n.value,
88
88
  e.name,
89
89
  e.additional,
@@ -114,11 +114,11 @@ const ne = {
114
114
  } : void 0
115
115
  ]), 1032, ["additional", "enum", "pattern", "required", "value", "schemas"])) : r("", !0),
116
116
  B(e.description, n.value) ? (l(), s("div", ne, [
117
- a(i(S), {
117
+ a(i(H), {
118
118
  value: B(e.description, n.value)
119
119
  }, null, 8, ["value"])
120
120
  ])) : E(n.value) ? (l(), s("div", te, [
121
- a(i(S), {
121
+ a(i(H), {
122
122
  value: E(n.value) || ""
123
123
  }, null, 8, ["value"])
124
124
  ])) : r("", !0),
@@ -132,13 +132,13 @@ const ne = {
132
132
  f("div", ae, c(o), 1)
133
133
  ]),
134
134
  f("div", ie, [
135
- a(i(S), {
135
+ a(i(H), {
136
136
  value: n.value["x-enumDescriptions"][o]
137
137
  }, null, 8, ["value"])
138
138
  ])
139
139
  ]))), 128))
140
140
  ])) : (l(), s("ul", re, [
141
- (l(!0), s(d, null, k(T.value, (o) => (l(), s("li", {
141
+ (l(!0), s(d, null, k(R.value, (o) => (l(), s("li", {
142
142
  key: o,
143
143
  class: "property-enum-value"
144
144
  }, [
@@ -148,7 +148,7 @@ const ne = {
148
148
  default: m(({ open: o }) => [
149
149
  a(i(K), null, {
150
150
  default: m(() => [
151
- (l(!0), s(d, null, k(U.value, (u) => (l(), s("li", {
151
+ (l(!0), s(d, null, k(T.value, (u) => (l(), s("li", {
152
152
  key: u,
153
153
  class: "property-enum-value"
154
154
  }, [
@@ -160,7 +160,7 @@ const ne = {
160
160
  a(i(Q), { class: "enum-toggle-button" }, {
161
161
  default: m(() => [
162
162
  a(i(W), {
163
- class: I(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": o }]),
163
+ class: A(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": o }]),
164
164
  icon: "Add",
165
165
  size: "sm"
166
166
  }, null, 8, ["class"]),
@@ -174,17 +174,18 @@ const ne = {
174
174
  ]))
175
175
  ])) : r("", !0),
176
176
  ((q = n.value) == null ? void 0 : q.type) === "object" && ((F = n.value) != null && F.properties || (N = n.value) != null && N.additionalProperties) ? (l(), s("div", ce, [
177
- a(L, {
177
+ a(I, {
178
178
  compact: e.compact,
179
179
  level: e.level + 1,
180
180
  name: e.name,
181
181
  noncollapsible: e.noncollapsible,
182
- value: n.value
183
- }, null, 8, ["compact", "level", "name", "noncollapsible", "value"])
182
+ value: n.value,
183
+ schemas: e.schemas
184
+ }, null, 8, ["compact", "level", "name", "noncollapsible", "value", "schemas"])
184
185
  ])) : r("", !0),
185
186
  (V = n.value) != null && V.items && typeof n.value.items == "object" && "type" in n.value.items && typeof n.value.items.type == "string" ? (l(), s(d, { key: 5 }, [
186
187
  ["object"].includes((z = (j = n.value) == null ? void 0 : j.items) == null ? void 0 : z.type) ? (l(), s("div", de, [
187
- a(L, {
188
+ a(I, {
188
189
  compact: e.compact,
189
190
  level: e.level + 1,
190
191
  name: e.name,
@@ -194,9 +195,9 @@ const ne = {
194
195
  ])) : r("", !0)
195
196
  ], 64)) : r("", !0),
196
197
  (l(!0), s(d, null, k(i(Y), (o) => {
197
- var u, A;
198
+ var u, _;
198
199
  return l(), s(d, { key: o }, [
199
- (u = n.value) != null && u[o] ? (l(), h(O, {
200
+ (u = n.value) != null && u[o] ? (l(), h(L, {
200
201
  key: 0,
201
202
  compact: e.compact,
202
203
  discriminator: o,
@@ -206,7 +207,7 @@ const ne = {
206
207
  noncollapsible: e.noncollapsible,
207
208
  schemas: e.schemas,
208
209
  value: n.value
209
- }, null, 8, ["compact", "discriminator", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : (A = n.value) != null && A.items && typeof o == "string" && typeof n.value.items == "object" && o in n.value.items ? (l(), h(O, {
210
+ }, null, 8, ["compact", "discriminator", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : (_ = n.value) != null && _.items && typeof o == "string" && typeof n.value.items == "object" && !("type" in n.value.items) && o in n.value.items ? (l(), h(L, {
210
211
  key: 1,
211
212
  compact: e.compact,
212
213
  discriminator: o,
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAuRA,OAAO,KAAK,EAEV,SAAS,EACT,SAAS,EACT,WAAW,EACZ,MAAM,uBAAuB,CAAA;AAY9B,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;AAoDF,iBAAS,cAAc;WA+TT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAqSA,OAAO,KAAK,EAEV,SAAS,EACT,SAAS,EACT,WAAW,EACZ,MAAM,uBAAuB,CAAA;AAY9B,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;AA8DF,iBAAS,cAAc;WA+TT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaPropertyHeading.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-9d959541"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b06c8228"]]);
5
5
  export {
6
6
  m as default
7
7
  };