@scalar/api-reference 1.32.10 → 1.33.0

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 (345) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/dist/browser/standalone.js +15385 -15039
  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 +50 -5
  6. package/dist/components/Anchor/Anchor.vue2.js +2 -42
  7. package/dist/components/ApiReference.vue.js +6 -6
  8. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  9. package/dist/components/ApiReferenceLayout.vue.js +6 -6
  10. package/dist/components/ApiReferenceLayout.vue2.js +107 -104
  11. package/dist/components/ApiReferenceLayout.vue3.js +4 -0
  12. package/dist/components/ApiReferenceLayout.vue4.js +4 -0
  13. package/dist/components/ApiReferenceLayout.vue5.js +4 -0
  14. package/dist/components/ApiReferenceLayout.vue6.js +4 -0
  15. package/dist/components/Badge/Badge.vue.js +1 -1
  16. package/dist/components/Badge/Badge.vue2.js +4 -0
  17. package/dist/components/ClassicHeader.vue.js +1 -1
  18. package/dist/components/ClassicHeader.vue2.js +4 -0
  19. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +14 -1
  20. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  21. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +3 -3
  22. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +74 -84
  23. package/dist/components/Content/ClientLibraries/ClientLibraries.vue3.js +4 -0
  24. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +8 -0
  25. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  26. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
  27. package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +81 -80
  28. package/dist/components/Content/ClientLibraries/ClientSelector.vue3.js +4 -0
  29. package/dist/components/Content/ClientLibraries/featured-clients.d.ts +11 -0
  30. package/dist/components/Content/ClientLibraries/featured-clients.d.ts.map +1 -0
  31. package/dist/components/Content/ClientLibraries/featured-clients.js +17 -0
  32. package/dist/components/Content/Content.vue.d.ts +5 -6
  33. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  34. package/dist/components/Content/Content.vue.js +49 -6
  35. package/dist/components/Content/Content.vue2.js +2 -160
  36. package/dist/components/Content/Content.vue3.js +5 -0
  37. package/dist/components/Content/Introduction/Description.vue.js +1 -1
  38. package/dist/components/Content/Introduction/Description.vue3.js +4 -0
  39. package/dist/components/Content/Introduction/Introduction.vue.d.ts +7 -17
  40. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  41. package/dist/components/Content/Introduction/Introduction.vue.js +3 -3
  42. package/dist/components/Content/Introduction/Introduction.vue2.js +103 -150
  43. package/dist/components/Content/Introduction/Introduction.vue3.js +4 -0
  44. package/dist/components/Content/Introduction/IntroductionSection.vue.d.ts +25 -0
  45. package/dist/components/Content/Introduction/IntroductionSection.vue.d.ts.map +1 -0
  46. package/dist/components/Content/Introduction/IntroductionSection.vue.js +7 -0
  47. package/dist/components/Content/Introduction/IntroductionSection.vue2.js +159 -0
  48. package/dist/components/Content/Introduction/IntroductionSection.vue3.js +4 -0
  49. package/dist/components/Content/Models/{ModelsAccordion.vue.d.ts → ClassicLayout.vue.d.ts} +2 -2
  50. package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -0
  51. package/dist/components/Content/Models/ClassicLayout.vue.js +7 -0
  52. package/dist/components/Content/Models/{ModelsAccordion.vue2.js → ClassicLayout.vue2.js} +30 -30
  53. package/dist/components/Content/Models/ClassicLayout.vue3.js +4 -0
  54. package/dist/components/Content/Models/Models.vue.d.ts +3 -1
  55. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  56. package/dist/components/Content/Models/Models.vue.js +38 -5
  57. package/dist/components/Content/Models/Models.vue2.js +2 -114
  58. package/dist/components/Content/Models/ModernLayout.vue.d.ts +7 -0
  59. package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -0
  60. package/dist/components/Content/Models/ModernLayout.vue.js +7 -0
  61. package/dist/components/Content/Models/ModernLayout.vue2.js +100 -0
  62. package/dist/components/Content/Models/ModernLayout.vue3.js +4 -0
  63. package/dist/components/Content/Models/index.d.ts +0 -1
  64. package/dist/components/Content/Models/index.d.ts.map +1 -1
  65. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +21 -0
  66. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -0
  67. package/dist/components/Content/Operations/TraversedEntry.vue.js +95 -0
  68. package/dist/components/Content/Operations/TraversedEntry.vue2.js +4 -0
  69. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +17 -0
  70. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -0
  71. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +56 -0
  72. package/dist/components/Content/Operations/TraversedEntryContainer.vue2.js +4 -0
  73. package/dist/components/Content/Operations/index.d.ts +2 -0
  74. package/dist/components/Content/Operations/index.d.ts.map +1 -0
  75. package/dist/components/Content/Schema/Schema.vue.js +1 -1
  76. package/dist/components/Content/Schema/Schema.vue3.js +4 -0
  77. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  78. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -1
  79. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +3 -3
  80. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue3.js +4 -0
  81. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
  82. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +3 -3
  83. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +63 -68
  84. package/dist/components/Content/Schema/SchemaEnumValues.vue3.js +4 -0
  85. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  86. package/dist/components/Content/Schema/SchemaHeading.vue.js +4 -4
  87. package/dist/components/Content/Schema/SchemaHeading.vue2.js +23 -22
  88. package/dist/components/Content/Schema/SchemaHeading.vue3.js +4 -0
  89. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  90. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  91. package/dist/components/Content/Schema/SchemaProperty.vue2.js +34 -33
  92. package/dist/components/Content/Schema/SchemaProperty.vue3.js +4 -0
  93. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts.map +1 -1
  94. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js +2 -2
  95. package/dist/components/Content/Schema/SchemaPropertyDetail.vue3.js +4 -0
  96. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +3 -3
  97. package/dist/components/Content/Schema/SchemaPropertyExamples.vue3.js +4 -0
  98. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  99. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +3 -3
  100. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +26 -23
  101. package/dist/components/Content/Schema/SchemaPropertyHeading.vue3.js +4 -0
  102. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -1
  103. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  104. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +59 -52
  105. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -1
  106. package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +24 -20
  107. package/dist/components/Content/Schema/helpers/schema-name.d.ts +1 -1
  108. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  109. package/dist/components/Content/{Tag/TagAccordion.vue.d.ts → Tags/ClassicLayout.vue.d.ts} +3 -3
  110. package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -0
  111. package/dist/components/Content/Tags/ClassicLayout.vue.js +7 -0
  112. package/dist/components/Content/Tags/ClassicLayout.vue2.js +51 -0
  113. package/dist/components/Content/Tags/ClassicLayout.vue3.js +4 -0
  114. package/dist/components/Content/{Tag/TagSection.vue.d.ts → Tags/ModernLayout.vue.d.ts} +17 -13
  115. package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -0
  116. package/dist/components/Content/Tags/ModernLayout.vue.js +7 -0
  117. package/dist/components/Content/Tags/ModernLayout.vue2.js +69 -0
  118. package/dist/components/Content/Tags/ModernLayout.vue3.js +4 -0
  119. package/dist/components/Content/Tags/Tag.vue.d.ts +25 -0
  120. package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -0
  121. package/dist/components/Content/Tags/Tag.vue.js +27 -0
  122. package/dist/components/Content/{Tag/Tag.vue.d.ts → Tags/TagSection.vue.d.ts} +3 -6
  123. package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -0
  124. package/dist/components/Content/Tags/TagSection.vue.js +104 -0
  125. package/dist/components/Content/Tags/TagSection.vue2.js +4 -0
  126. package/dist/components/Content/Tags/index.d.ts +2 -0
  127. package/dist/components/Content/Tags/index.d.ts.map +1 -0
  128. package/dist/components/GettingStarted.vue.js +1 -1
  129. package/dist/components/GettingStarted.vue3.js +4 -0
  130. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  131. package/dist/components/HttpMethod/HttpMethod.vue.js +8 -6
  132. package/dist/components/{Content/Lazy → Lazy}/Lazy.vue.d.ts +1 -10
  133. package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -0
  134. package/dist/components/Lazy/Lazy.vue2.js +25 -0
  135. package/dist/components/Lazy/index.d.ts +3 -0
  136. package/dist/components/Lazy/index.d.ts.map +1 -0
  137. package/dist/components/Lazy/lazyBus.d.ts +8 -0
  138. package/dist/components/Lazy/lazyBus.d.ts.map +1 -0
  139. package/dist/components/Lazy/lazyBus.js +7 -0
  140. package/dist/components/LinkList/LinkList.vue.d.ts +3 -1
  141. package/dist/components/LinkList/LinkList.vue.d.ts.map +1 -1
  142. package/dist/components/LinkList/LinkList.vue.js +5 -10
  143. package/dist/components/LinkList/LinkList.vue2.js +32 -0
  144. package/dist/components/LinkList/LinkList.vue3.js +4 -0
  145. package/dist/components/LoadingSkeleton.vue.d.ts.map +1 -1
  146. package/dist/components/LoadingSkeleton.vue.js +3 -3
  147. package/dist/components/LoadingSkeleton.vue3.js +4 -0
  148. package/dist/components/MobileHeader.vue.js +1 -1
  149. package/dist/components/MobileHeader.vue3.js +4 -0
  150. package/dist/components/OperationPath.vue.js +1 -1
  151. package/dist/components/OperationPath.vue3.js +4 -0
  152. package/dist/components/{Content/Tag → OperationsList}/OperationsList.vue.d.ts +2 -5
  153. package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -0
  154. package/dist/components/OperationsList/OperationsList.vue.js +7 -0
  155. package/dist/components/OperationsList/OperationsList.vue2.js +60 -0
  156. package/dist/components/OperationsList/OperationsList.vue3.js +4 -0
  157. package/dist/components/{Content/Tag → OperationsList}/OperationsListItem.vue.d.ts +2 -4
  158. package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -0
  159. package/dist/components/OperationsList/OperationsListItem.vue.js +7 -0
  160. package/dist/components/OperationsList/OperationsListItem.vue2.js +63 -0
  161. package/dist/components/OperationsList/OperationsListItem.vue3.js +4 -0
  162. package/dist/components/OperationsList/index.d.ts +2 -0
  163. package/dist/components/OperationsList/index.d.ts.map +1 -0
  164. package/dist/components/ScreenReader.vue.js +1 -1
  165. package/dist/components/ScreenReader.vue3.js +4 -0
  166. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  167. package/dist/components/Section/CompactSection.vue.js +3 -3
  168. package/dist/components/Section/CompactSection.vue2.js +35 -36
  169. package/dist/components/Section/CompactSection.vue3.js +4 -0
  170. package/dist/components/Section/Section.vue.js +1 -1
  171. package/dist/components/Section/Section.vue3.js +4 -0
  172. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  173. package/dist/components/Section/SectionAccordion.vue.js +3 -3
  174. package/dist/components/Section/SectionAccordion.vue2.js +42 -36
  175. package/dist/components/Section/SectionAccordion.vue3.js +4 -0
  176. package/dist/components/Section/SectionColumn.vue.js +1 -1
  177. package/dist/components/Section/SectionColumn.vue2.js +4 -0
  178. package/dist/components/Section/SectionColumns.vue.js +1 -1
  179. package/dist/components/Section/SectionColumns.vue2.js +4 -0
  180. package/dist/components/Section/SectionContainer.vue.d.ts +9 -2
  181. package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
  182. package/dist/components/Section/SectionContainer.vue.js +5 -11
  183. package/dist/components/Section/SectionContainer.vue2.js +18 -0
  184. package/dist/components/Section/SectionContainer.vue3.js +4 -0
  185. package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
  186. package/dist/components/Section/SectionContainerAccordion.vue.js +3 -3
  187. package/dist/components/Section/SectionContainerAccordion.vue3.js +4 -0
  188. package/dist/components/Section/SectionContent.vue.js +1 -1
  189. package/dist/components/Section/SectionContent.vue3.js +4 -0
  190. package/dist/components/Section/SectionHeader.vue.js +1 -1
  191. package/dist/components/Section/SectionHeader.vue3.js +4 -0
  192. package/dist/components/Section/SectionHeaderTag.vue.js +1 -1
  193. package/dist/components/Section/SectionHeaderTag.vue3.js +4 -0
  194. package/dist/components/SectionFlare/SectionFlare.vue.d.ts +3 -0
  195. package/dist/components/SectionFlare/SectionFlare.vue.d.ts.map +1 -0
  196. package/dist/components/SectionFlare/SectionFlare.vue.js +13 -0
  197. package/dist/components/SectionFlare/SectionFlare.vue2.js +4 -0
  198. package/dist/components/SectionFlare/index.d.ts +2 -0
  199. package/dist/components/SectionFlare/index.d.ts.map +1 -0
  200. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  201. package/dist/components/ShowMoreButton.vue.js +3 -3
  202. package/dist/components/ShowMoreButton.vue2.js +12 -12
  203. package/dist/components/ShowMoreButton.vue3.js +4 -0
  204. package/dist/features/Operation/Operation.vue.d.ts +5 -1
  205. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  206. package/dist/features/Operation/Operation.vue.js +55 -38
  207. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  208. package/dist/features/Operation/components/ContentTypeSelect.vue.js +28 -30
  209. package/dist/features/Operation/components/ParameterHeaders.vue.js +1 -1
  210. package/dist/features/Operation/components/ParameterHeaders.vue3.js +4 -0
  211. package/dist/features/Operation/components/ParameterList.vue.js +1 -1
  212. package/dist/features/Operation/components/ParameterList.vue3.js +4 -0
  213. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  214. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  215. package/dist/features/Operation/components/ParameterListItem.vue2.js +31 -29
  216. package/dist/features/Operation/components/ParameterListItem.vue3.js +4 -0
  217. package/dist/features/Operation/components/RequestBody.vue.js +1 -1
  218. package/dist/features/Operation/components/RequestBody.vue3.js +4 -0
  219. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  220. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  221. package/dist/features/Operation/components/callbacks/Callback.vue2.js +9 -9
  222. package/dist/features/Operation/components/callbacks/Callback.vue3.js +4 -0
  223. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  224. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +20 -28
  225. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +6 -0
  226. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  227. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  228. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +77 -62
  229. package/dist/features/Operation/layouts/ClassicLayout.vue3.js +4 -0
  230. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +6 -0
  231. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  232. package/dist/features/Operation/layouts/ModernLayout.vue.js +3 -3
  233. package/dist/features/Operation/layouts/ModernLayout.vue2.js +94 -81
  234. package/dist/features/Operation/layouts/ModernLayout.vue3.js +4 -0
  235. package/dist/features/Search/SearchModal.vue.js +4 -4
  236. package/dist/features/Search/SearchModal.vue2.js +9 -9
  237. package/dist/features/Search/SearchModal.vue3.js +4 -0
  238. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
  239. package/dist/features/api-client-modal/useApiClient.d.ts +414 -354
  240. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  241. package/dist/features/download-link/DownloadLink.vue.js +2 -2
  242. package/dist/features/download-link/DownloadLink.vue3.js +4 -0
  243. package/dist/features/example-responses/ExampleResponse.vue.d.ts +4 -2
  244. package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
  245. package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
  246. package/dist/features/example-responses/ExampleResponse.vue2.js +15 -14
  247. package/dist/features/example-responses/ExampleResponse.vue3.js +4 -0
  248. package/dist/features/example-responses/ExampleResponseTab.vue.js +1 -1
  249. package/dist/features/example-responses/ExampleResponseTab.vue3.js +4 -0
  250. package/dist/features/example-responses/ExampleResponseTabList.vue.js +1 -1
  251. package/dist/features/example-responses/ExampleResponseTabList.vue3.js +4 -0
  252. package/dist/features/example-responses/ExampleResponses.vue.d.ts +3 -2
  253. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  254. package/dist/features/example-responses/ExampleResponses.vue.js +4 -4
  255. package/dist/features/example-responses/ExampleResponses.vue2.js +107 -104
  256. package/dist/features/example-responses/ExampleResponses.vue3.js +4 -0
  257. package/dist/features/info-object/License.vue.d.ts.map +1 -1
  258. package/dist/features/info-object/License.vue.js +18 -15
  259. package/dist/features/sidebar/components/Sidebar.vue.js +3 -3
  260. package/dist/features/sidebar/components/Sidebar.vue3.js +4 -0
  261. package/dist/features/sidebar/components/SidebarElement.vue.js +3 -3
  262. package/dist/features/sidebar/components/SidebarElement.vue3.js +4 -0
  263. package/dist/features/sidebar/components/SidebarGroup.vue.js +1 -1
  264. package/dist/features/sidebar/components/SidebarGroup.vue3.js +4 -0
  265. package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +1 -1
  266. package/dist/features/sidebar/components/SidebarHttpBadge.vue3.js +4 -0
  267. package/dist/features/sidebar/helpers/create-sidebar.js +12 -12
  268. package/dist/features/test-request-button/TestRequestButton.vue.js +1 -1
  269. package/dist/features/test-request-button/TestRequestButton.vue3.js +4 -0
  270. package/dist/features/traverse-schema/index.d.ts +2 -1
  271. package/dist/features/traverse-schema/index.d.ts.map +1 -1
  272. package/dist/helpers/test-utils.d.ts +51 -0
  273. package/dist/helpers/test-utils.d.ts.map +1 -0
  274. package/dist/index.d.ts +1 -0
  275. package/dist/index.d.ts.map +1 -1
  276. package/dist/index.js +24 -21
  277. package/dist/style.css +1 -1
  278. package/dist/types.d.ts +5 -0
  279. package/dist/types.d.ts.map +1 -1
  280. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +1 -1
  281. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  282. package/dist/v2/ApiReferenceWorkspace.vue.js +83 -93
  283. package/dist/v2/ApiReferenceWorkspace.vue2.js +4 -0
  284. package/dist/v2/ApiReferenceWorkspace.vue3.js +1 -1
  285. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +2 -2
  286. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +1 -1
  287. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +32 -29
  288. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +4 -13
  289. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
  290. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +3 -3
  291. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +185 -181
  292. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue3.js +4 -0
  293. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +1 -0
  294. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +1 -1
  295. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +1 -0
  296. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts +12 -13
  297. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +1 -1
  298. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +28 -30
  299. package/dist/v2/blocks/scalar-request-example-block/types.d.ts +11 -3
  300. package/dist/v2/blocks/scalar-request-example-block/types.d.ts.map +1 -1
  301. package/package.json +19 -19
  302. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +0 -16
  303. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +0 -1
  304. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.js +0 -36
  305. package/dist/components/Content/Lazy/Lazy.vue.d.ts.map +0 -1
  306. package/dist/components/Content/Lazy/Lazy.vue2.js +0 -22
  307. package/dist/components/Content/Lazy/Loading.vue.d.ts +0 -18
  308. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +0 -1
  309. package/dist/components/Content/Lazy/Loading.vue.js +0 -163
  310. package/dist/components/Content/Lazy/Loading.vue3.js +0 -5
  311. package/dist/components/Content/Lazy/index.d.ts +0 -3
  312. package/dist/components/Content/Lazy/index.d.ts.map +0 -1
  313. package/dist/components/Content/Lazy/lazyBus.d.ts +0 -4
  314. package/dist/components/Content/Lazy/lazyBus.d.ts.map +0 -1
  315. package/dist/components/Content/Lazy/lazyBus.js +0 -5
  316. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +0 -1
  317. package/dist/components/Content/Models/ModelsAccordion.vue.js +0 -7
  318. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +0 -1
  319. package/dist/components/Content/Tag/OperationsList.vue.js +0 -7
  320. package/dist/components/Content/Tag/OperationsList.vue2.js +0 -58
  321. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +0 -1
  322. package/dist/components/Content/Tag/OperationsListItem.vue.js +0 -7
  323. package/dist/components/Content/Tag/OperationsListItem.vue2.js +0 -67
  324. package/dist/components/Content/Tag/Tag.vue.d.ts.map +0 -1
  325. package/dist/components/Content/Tag/Tag.vue.js +0 -99
  326. package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +0 -1
  327. package/dist/components/Content/Tag/TagAccordion.vue.js +0 -7
  328. package/dist/components/Content/Tag/TagAccordion.vue2.js +0 -50
  329. package/dist/components/Content/Tag/TagList.vue.d.ts +0 -22
  330. package/dist/components/Content/Tag/TagList.vue.d.ts.map +0 -1
  331. package/dist/components/Content/Tag/TagList.vue.js +0 -73
  332. package/dist/components/Content/Tag/TagList.vue2.js +0 -4
  333. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +0 -1
  334. package/dist/components/Content/Tag/TagSection.vue.js +0 -7
  335. package/dist/components/Content/Tag/TagSection.vue2.js +0 -67
  336. package/dist/components/Content/Tag/index.d.ts +0 -3
  337. package/dist/components/Content/Tag/index.d.ts.map +0 -1
  338. package/dist/stores/useHttpClientStore.d.ts +0 -43
  339. package/dist/stores/useHttpClientStore.d.ts.map +0 -1
  340. package/dist/stores/useHttpClientStore.js +0 -70
  341. package/dist/v2/hooks/useStore.d.ts +0 -9
  342. package/dist/v2/hooks/useStore.d.ts.map +0 -1
  343. package/dist/v2/hooks/useStore.js +0 -14
  344. /package/dist/components/Content/{Tag → Tags}/Tag.vue2.js +0 -0
  345. /package/dist/components/{Content/Lazy → Lazy}/Lazy.vue.js +0 -0
@@ -1,32 +1,33 @@
1
- import { defineComponent as $, computed as p, inject as z, createBlock as c, openBlock as r, resolveDynamicComponent as Z, normalizeClass as L, withCtx as v, createCommentVNode as l, createElementBlock as t, createVNode as d, createSlots as X, toDisplayString as y, Fragment as f, createTextVNode as V, unref as h, renderList as G } from "vue";
1
+ import { defineComponent as A, computed as p, inject as z, createBlock as c, openBlock as r, resolveDynamicComponent as Z, normalizeClass as L, withCtx as v, createCommentVNode as l, createElementBlock as t, createVNode as d, createSlots as X, toDisplayString as y, Fragment as f, createTextVNode as V, unref as h, renderList as G } from "vue";
2
2
  import { ScalarMarkdown as D } from "@scalar/components";
3
- import { optimizeValueForDisplay as J, compositions as K } from "./helpers/optimize-value-for-display.js";
4
- import Q from "./SchemaEnumValues.vue.js";
5
- import { DISCRIMINATOR_CONTEXT as W } from "../../../hooks/useDiscriminator.js";
3
+ import { isTypeObject as J } from "./helpers/is-type-object.js";
4
+ import { DISCRIMINATOR_CONTEXT as K } from "../../../hooks/useDiscriminator.js";
5
+ import { optimizeValueForDisplay as Q, compositions as W } from "./helpers/optimize-value-for-display.js";
6
6
  import C from "./Schema.vue.js";
7
7
  import H from "./SchemaComposition.vue.js";
8
8
  import Y from "./SchemaDiscriminator.vue.js";
9
- import _ from "./SchemaPropertyHeading.vue.js";
10
- import x from "../../../features/specification-extension/SpecificationExtension.vue.js";
11
- const ee = {
9
+ import _ from "./SchemaEnumValues.vue.js";
10
+ import x from "./SchemaPropertyHeading.vue.js";
11
+ import ee from "../../../features/specification-extension/SpecificationExtension.vue.js";
12
+ const ie = {
12
13
  key: 0,
13
14
  class: "property-name-pattern-properties"
14
- }, ie = {
15
+ }, ne = {
15
16
  key: 1,
16
17
  class: "property-name-additional-properties"
17
- }, ne = {
18
+ }, re = {
18
19
  key: 1,
19
20
  class: "property-description"
20
- }, re = {
21
+ }, ae = {
21
22
  key: 2,
22
23
  class: "property-description"
23
- }, ae = {
24
+ }, te = {
24
25
  key: 3,
25
26
  class: "children"
26
- }, te = {
27
+ }, oe = {
27
28
  key: 0,
28
29
  class: "children"
29
- }, he = /* @__PURE__ */ $({
30
+ }, be = /* @__PURE__ */ A({
30
31
  __name: "SchemaProperty",
31
32
  props: {
32
33
  is: {},
@@ -47,8 +48,8 @@ const ee = {
47
48
  variant: {}
48
49
  },
49
50
  emits: ["update:modelValue"],
50
- setup(R, { emit: T }) {
51
- const u = R, w = T, k = {
51
+ setup(T, { emit: R }) {
52
+ const u = T, w = R, k = {
52
53
  integer: {
53
54
  _default: "Integer numbers.",
54
55
  int32: "Signed 32-bit integers (commonly used integer type).",
@@ -65,13 +66,13 @@ const ee = {
65
66
  }, g = (e, i) => i != null && i.properties || i != null && i.additionalProperties || i != null && i.patternProperties || i != null && i.allOf ? null : e || (i == null ? void 0 : i.description) || null, N = (e) => !e || !k[e.type] ? null : k[e.type][e.format || e.contentEncoding || "_default"], E = (e) => {
66
67
  var i;
67
68
  return (e == null ? void 0 : e.enum) || ((i = e == null ? void 0 : e.items) == null ? void 0 : i.enum) || [];
68
- }, n = p(() => J(u.value)), o = z(W, null), a = p(() => {
69
+ }, n = p(() => Q(u.value)), o = z(K, null), a = p(() => {
69
70
  var e;
70
71
  return u.level > 0 ? n.value : (e = o == null ? void 0 : o.value) != null && e.mergedSchema ? o.value.mergedSchema : n.value;
71
72
  }), I = p(() => {
72
73
  var e;
73
74
  return ((e = o == null ? void 0 : o.value) == null ? void 0 : e.selectedType) || (u.discriminatorMapping ? Object.keys(u.discriminatorMapping)[0] : "");
74
- }), A = (e, i, m) => i || (e == null ? void 0 : e.deprecated) || (e == null ? void 0 : e.const) !== void 0 || (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) || m, b = (e) => {
75
+ }), U = (e, i, m) => i || (e == null ? void 0 : e.deprecated) || (e == null ? void 0 : e.const) !== void 0 || (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) || m, b = (e) => {
75
76
  w("update:modelValue", e);
76
77
  }, P = p(() => {
77
78
  const e = n.value;
@@ -79,13 +80,13 @@ const ee = {
79
80
  return !1;
80
81
  const i = e.items;
81
82
  return "type" in i && ["object"].includes(i.type) || "$ref" in i || "discriminator" in i || "allOf" in i || "oneOf" in i || "anyOf" in i;
82
- }), U = (e) => {
83
+ }), q = (e) => {
83
84
  const i = n.value;
84
85
  return !(i != null && i.items) || typeof i.items != "object" || !(e in i.items) ? !1 : !P.value;
85
- }, q = p(() => P.value), F = p(() => {
86
+ }, F = p(() => P.value), $ = p(() => {
86
87
  if (!n.value)
87
88
  return !1;
88
- const e = n.value, i = e.type === "object" || Array.isArray(e.type) && e.type.includes("object"), m = e.properties || e.additionalProperties;
89
+ const e = n.value, i = J(e), m = e.properties || e.additionalProperties;
89
90
  return i && m;
90
91
  });
91
92
  return (e, i) => {
@@ -103,7 +104,7 @@ const ee = {
103
104
  default: v(() => {
104
105
  var M, S;
105
106
  return [
106
- A(n.value, e.name, e.required) ? (r(), c(_, {
107
+ U(n.value, e.name, e.required) ? (r(), c(x, {
107
108
  key: 0,
108
109
  enum: E(n.value).length > 0,
109
110
  required: e.required,
@@ -114,7 +115,7 @@ const ee = {
114
115
  e.name ? {
115
116
  name: "name",
116
117
  fn: v(() => [
117
- e.variant === "patternProperties" ? (r(), t("span", ee, y(e.name), 1)) : e.variant === "additionalProperties" ? (r(), t("span", ie, y(e.name), 1)) : (r(), t(f, { key: 2 }, [
118
+ e.variant === "patternProperties" ? (r(), t("span", ie, y(e.name), 1)) : e.variant === "additionalProperties" ? (r(), t("span", ne, y(e.name), 1)) : (r(), t(f, { key: 2 }, [
118
119
  V(y(e.name), 1)
119
120
  ], 64))
120
121
  ]),
@@ -128,17 +129,17 @@ const ee = {
128
129
  key: "1"
129
130
  } : void 0
130
131
  ]), 1032, ["enum", "required", "value", "schemas", "hideModelNames"])) : l("", !0),
131
- g(e.description, n.value) ? (r(), t("div", ne, [
132
+ g(e.description, n.value) ? (r(), t("div", re, [
132
133
  d(h(D), {
133
134
  value: g(e.description, n.value)
134
135
  }, null, 8, ["value"])
135
- ])) : N(n.value) ? (r(), t("div", re, [
136
+ ])) : N(n.value) ? (r(), t("div", ae, [
136
137
  d(h(D), {
137
138
  value: N(n.value) || ""
138
139
  }, null, 8, ["value"])
139
140
  ])) : l("", !0),
140
- d(Q, { value: n.value }, null, 8, ["value"]),
141
- F.value ? (r(), t("div", ae, [
141
+ d(_, { value: n.value }, null, 8, ["value"]),
142
+ $.value ? (r(), t("div", te, [
142
143
  d(C, {
143
144
  compact: e.compact,
144
145
  level: e.level + 1,
@@ -153,7 +154,7 @@ const ee = {
153
154
  }, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
154
155
  ])) : l("", !0),
155
156
  (S = n.value) != null && S.items && typeof n.value.items == "object" ? (r(), t(f, { key: 4 }, [
156
- q.value ? (r(), t("div", te, [
157
+ F.value ? (r(), t("div", oe, [
157
158
  d(C, {
158
159
  compact: e.compact,
159
160
  level: e.level + 1,
@@ -168,10 +169,10 @@ const ee = {
168
169
  }, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
169
170
  ])) : l("", !0)
170
171
  ], 64)) : l("", !0),
171
- (r(!0), t(f, null, G(h(K), (s) => {
172
- var j, O, B;
172
+ (r(!0), t(f, null, G(h(W), (s) => {
173
+ var O, j, B;
173
174
  return r(), t(f, { key: s }, [
174
- (j = n.value) != null && j[s] && !((O = n.value) != null && O.items && typeof s == "string" && typeof n.value.items == "object" && s in n.value.items) ? (r(), c(H, {
175
+ (O = n.value) != null && O[s] && !((j = n.value) != null && j.items && typeof s == "string" && typeof n.value.items == "object" && s in n.value.items) ? (r(), c(H, {
175
176
  key: 0,
176
177
  compact: e.compact,
177
178
  composition: s,
@@ -181,7 +182,7 @@ const ee = {
181
182
  noncollapsible: e.noncollapsible,
182
183
  schemas: e.schemas,
183
184
  value: n.value
184
- }, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : U(s) ? (r(), c(H, {
185
+ }, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : q(s) ? (r(), c(H, {
185
186
  key: 1,
186
187
  compact: e.compact,
187
188
  composition: s,
@@ -200,7 +201,7 @@ const ee = {
200
201
  discriminator: I.value,
201
202
  "onUpdate:modelValue": b
202
203
  }, null, 8, ["discriminator-mapping", "discriminator"])) : l("", !0),
203
- d(h(x), { value: n.value }, null, 8, ["value"])
204
+ d(h(ee), { value: n.value }, null, 8, ["value"])
204
205
  ];
205
206
  }),
206
207
  _: 1
@@ -209,5 +210,5 @@ const ee = {
209
210
  }
210
211
  });
211
212
  export {
212
- he as default
213
+ be as default
213
214
  };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaPropertyDetail.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyDetail.vue"],"names":[],"mappings":"AA+DA,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAQF,iBAAS,cAAc;WAgET,OAAO,IAA6B;;wBAVtB,GAAG;yBACF,GAAG;yBACH,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,8SAOnB,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":"SchemaPropertyDetail.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyDetail.vue"],"names":[],"mappings":"AAgEA,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAQF,iBAAS,cAAc;WAgET,OAAO,IAA6B;;wBAVtB,GAAG;yBACF,GAAG;yBACH,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,8SAOnB,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 "./SchemaPropertyDetail.vue2.js";
2
- /* empty css */
2
+ import "./SchemaPropertyDetail.vue3.js";
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3ae98a1b"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-827ea49d"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaPropertyExamples.vue2.js";
2
- /* empty css */
2
+ import "./SchemaPropertyExamples.vue3.js";
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-1c1ebd80"]]);
4
+ const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-3f177f42"]]);
5
5
  export {
6
- p as default
6
+ a as default
7
7
  };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AA2SA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAWjE,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,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AAuEF,iBAAS,cAAc;WA2UT,OAAO,IAA6B;;sBARxB,GAAG;;;;EAa5B;AAkBD,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":"AA6SA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAWjE,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,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AAuEF,iBAAS,cAAc;WA2UT,OAAO,IAA6B;;sBARxB,GAAG;;;;EAa5B;AAkBD,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
- /* empty css */
3
- import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-10b9288a"]]);
2
+ import "./SchemaPropertyHeading.vue3.js";
3
+ import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-956a258a"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -4,29 +4,29 @@ import S from "../../ScreenReader.vue.js";
4
4
  import { getDiscriminatorSchemaName as b } from "../../../hooks/useDiscriminator.js";
5
5
  import { getSchemaType as F } from "./helpers/get-schema-type.js";
6
6
  import { getModelName as J } from "./helpers/schema-name.js";
7
- import z from "./RenderString.vue.js";
7
+ import h from "./RenderString.vue.js";
8
8
  import n from "./SchemaPropertyDetail.vue.js";
9
- import H from "./SchemaPropertyExamples.vue.js";
10
- import R from "../../Badge/Badge.vue.js";
11
- const j = { class: "property-heading" }, G = {
9
+ import z from "./SchemaPropertyExamples.vue.js";
10
+ import H from "../../Badge/Badge.vue.js";
11
+ const R = { class: "property-heading" }, j = {
12
12
  key: 1,
13
13
  class: "property-discriminator"
14
- }, K = {
14
+ }, G = {
15
15
  key: 3,
16
16
  class: "property-additional"
17
- }, Q = {
17
+ }, K = {
18
18
  key: 4,
19
19
  class: "property-deprecated"
20
- }, U = {
20
+ }, Q = {
21
21
  key: 5,
22
22
  class: "property-const"
23
- }, W = {
23
+ }, U = {
24
24
  key: 7,
25
25
  class: "property-write-only"
26
- }, X = {
26
+ }, W = {
27
27
  key: 8,
28
28
  class: "property-read-only"
29
- }, Y = {
29
+ }, X = {
30
30
  key: 9,
31
31
  class: "property-required"
32
32
  }, ae = /* @__PURE__ */ L({
@@ -61,16 +61,19 @@ const j = { class: "property-heading" }, G = {
61
61
  ) : null);
62
62
  return (e, t) => {
63
63
  var v, k, g, N, M, q, w, O, P, I, V, A;
64
- return r(), m("div", j, [
64
+ return r(), m("div", R, [
65
65
  e.$slots.name ? (r(), m("div", {
66
66
  key: 0,
67
67
  class: $(["property-name", { deprecated: (v = e.value) == null ? void 0 : v.deprecated }])
68
68
  }, [
69
69
  T(e.$slots, "name", {}, void 0, !0)
70
70
  ], 2)) : a("", !0),
71
- (k = e.value) != null && k.isDiscriminator ? (r(), m("div", G, " Discriminator ")) : a("", !0),
71
+ (k = e.value) != null && k.isDiscriminator ? (r(), m("div", j, " Discriminator ")) : a("", !0),
72
72
  e.value ? (r(), m(f, { key: 2 }, [
73
- (g = e.value) != null && g.type ? (r(), i(n, { key: 0 }, {
73
+ (g = e.value) != null && g.type ? (r(), i(n, {
74
+ key: 0,
75
+ truncate: ""
76
+ }, {
74
77
  default: u(() => [
75
78
  y(S, null, {
76
79
  default: u(() => t[0] || (t[0] = [
@@ -95,7 +98,7 @@ const j = { class: "property-heading" }, G = {
95
98
  })) : a("", !0),
96
99
  e.value.minLength ? (r(), i(n, { key: 2 }, {
97
100
  prefix: u(() => t[1] || (t[1] = [
98
- l("min: ")
101
+ l("min length: ")
99
102
  ])),
100
103
  default: u(() => [
101
104
  l(" " + o(e.value.minLength), 1)
@@ -104,7 +107,7 @@ const j = { class: "property-heading" }, G = {
104
107
  })) : a("", !0),
105
108
  e.value.maxLength ? (r(), i(n, { key: 3 }, {
106
109
  prefix: u(() => t[2] || (t[2] = [
107
- l("max: ")
110
+ l("max length: ")
108
111
  ])),
109
112
  default: u(() => [
110
113
  l(" " + o(e.value.maxLength), 1)
@@ -213,15 +216,15 @@ const j = { class: "property-heading" }, G = {
213
216
  _: 1
214
217
  })) : a("", !0)
215
218
  ], 64)) : a("", !0),
216
- e.additional ? (r(), m("div", K, [
219
+ e.additional ? (r(), m("div", G, [
217
220
  (N = e.value) != null && N["x-additionalPropertiesName"] ? (r(), m(f, { key: 0 }, [
218
221
  l(o(e.value["x-additionalPropertiesName"]), 1)
219
222
  ], 64)) : (r(), m(f, { key: 1 }, [
220
223
  l("additional properties")
221
224
  ], 64))
222
225
  ])) : a("", !0),
223
- (M = e.value) != null && M.deprecated ? (r(), m("div", Q, [
224
- y(s(R), null, {
226
+ (M = e.value) != null && M.deprecated ? (r(), m("div", K, [
227
+ y(s(H), null, {
225
228
  default: u(() => t[13] || (t[13] = [
226
229
  l("deprecated")
227
230
  ])),
@@ -229,13 +232,13 @@ const j = { class: "property-heading" }, G = {
229
232
  __: [13]
230
233
  })
231
234
  ])) : a("", !0),
232
- B.value !== void 0 ? (r(), m("div", U, [
235
+ B.value !== void 0 ? (r(), m("div", Q, [
233
236
  y(n, { truncate: "" }, {
234
237
  prefix: u(() => t[14] || (t[14] = [
235
238
  l("const: ")
236
239
  ])),
237
240
  default: u(() => [
238
- y(z, { value: B.value }, null, 8, ["value"])
241
+ y(h, { value: B.value }, null, 8, ["value"])
239
242
  ]),
240
243
  _: 1
241
244
  })
@@ -248,9 +251,9 @@ const j = { class: "property-heading" }, G = {
248
251
  __: [15]
249
252
  })) : a("", !0)
250
253
  ], 64)),
251
- (w = e.value) != null && w.writeOnly ? (r(), m("div", W, " write-only ")) : (O = e.value) != null && O.readOnly ? (r(), m("div", X, " read-only ")) : a("", !0),
252
- e.required ? (r(), m("div", Y, " required ")) : a("", !0),
253
- e.withExamples ? (r(), i(H, {
254
+ (w = e.value) != null && w.writeOnly ? (r(), m("div", U, " write-only ")) : (O = e.value) != null && O.readOnly ? (r(), m("div", W, " read-only ")) : a("", !0),
255
+ e.required ? (r(), m("div", X, " required ")) : a("", !0),
256
+ e.withExamples ? (r(), i(z, {
254
257
  key: 10,
255
258
  examples: (P = e.value) == null ? void 0 : P.examples,
256
259
  example: ((I = e.value) == null ? void 0 : I.example) || ((A = (V = e.value) == null ? void 0 : V.items) == null ? void 0 : A.example)
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -5,8 +5,9 @@ type SchemaObject = OpenAPIV3_1.SchemaObject;
5
5
  * Handles nested allOf compositions and merges properties recursively.
6
6
  *
7
7
  * @param schemas - Array of OpenAPI schema objects to merge
8
+ * @param rootSchema - Optional root schema to merge with the result
8
9
  * @returns Merged schema object
9
10
  */
10
- export declare function mergeAllOfSchemas(schemas: SchemaObject[], depth?: number): SchemaObject;
11
+ export declare function mergeAllOfSchemas(schemas: SchemaObject[], rootSchema?: SchemaObject, depth?: number): SchemaObject;
11
12
  export {};
12
13
  //# sourceMappingURL=merge-all-of-schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"merge-all-of-schemas.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/merge-all-of-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,KAAK,YAAY,GAAG,WAAW,CAAC,YAAY,CAAA;AAQ5C;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,SAAI,GAAG,YAAY,CA4ClF"}
1
+ {"version":3,"file":"merge-all-of-schemas.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/merge-all-of-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,KAAK,YAAY,GAAG,WAAW,CAAC,YAAY,CAAA;AAQ5C;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,UAAU,CAAC,EAAE,YAAY,EAAE,KAAK,SAAI,GAAG,YAAY,CAmD7G"}
@@ -1,85 +1,92 @@
1
- function o(f, e = 0) {
2
- return e >= 20 || !Array.isArray(f) || f.length === 0 ? {} : f.reduce((p, r) => {
1
+ function n(f, i, p = 0) {
2
+ if (p >= 20 || !Array.isArray(f) || f.length === 0)
3
+ return i || {};
4
+ const e = f.reduce((t, r) => {
3
5
  if (!r || typeof r != "object")
4
- return p;
6
+ return t;
5
7
  if (r.allOf) {
6
- const i = o(r.allOf, e + 1);
7
- return o([p, i], e + 1);
8
+ const s = n(r.allOf, void 0, p + 1);
9
+ return n([t, s], void 0, p + 1);
8
10
  }
9
- const t = typeof p == "object" ? { ...p } : {};
10
- if (r.properties && (t.properties = n(t.properties || {}, r.properties, e + 1)), r.items) {
11
+ const o = typeof t == "object" ? { ...t } : {};
12
+ if (r.properties && (o.properties = l(o.properties || {}, r.properties, p + 1)), r.items) {
11
13
  if (r.type === "array")
12
- t.items = O(t.items || {}, r.items, e + 1);
14
+ o.items = d(o.items || {}, r.items, p + 1);
13
15
  else if (typeof r.type == "string" && ["object", "string"].includes(r.type) && r.items.allOf) {
14
- const i = o(r.items.allOf, e + 1);
15
- t.properties = n(
16
- t.properties || {},
17
- i.properties || {},
18
- e + 1
16
+ const s = n(r.items.allOf, void 0, p + 1);
17
+ o.properties = l(
18
+ o.properties || {},
19
+ s.properties || {},
20
+ p + 1
19
21
  );
20
22
  }
21
23
  }
22
- return m(t, r, e + 1);
24
+ return O(o, r, p + 1);
23
25
  }, {});
26
+ return i ? O(e, i, p + 1) : e;
24
27
  }
25
- function n(f, e, p = 0) {
28
+ function l(f, i, p = 0) {
26
29
  if (p >= 20)
27
30
  return f;
28
- const r = typeof f == "object" ? { ...f } : {};
29
- return Object.entries(e).forEach(([t, i]) => {
30
- var s;
31
- if (!i || typeof i != "object") {
32
- r[t] = i;
31
+ const e = typeof f == "object" ? { ...f } : {};
32
+ return Object.entries(i).forEach(([t, r]) => {
33
+ var o;
34
+ if (!r || typeof r != "object") {
35
+ e[t] = r;
33
36
  return;
34
37
  }
35
- if (!r[t]) {
36
- i.type === "array" && ((s = i.items) != null && s.allOf) ? r[t] = {
37
- ...i,
38
- items: o(i.items.allOf, p + 1)
39
- } : i.allOf ? r[t] = o(i.allOf, p + 1) : r[t] = i;
38
+ if (!e[t]) {
39
+ r.type === "array" && ((o = r.items) != null && o.allOf) ? e[t] = {
40
+ ...r,
41
+ items: n(r.items.allOf, void 0, p + 1)
42
+ } : r.allOf ? e[t] = n(r.allOf, void 0, p + 1) : e[t] = r;
40
43
  return;
41
44
  }
42
- if (i.allOf)
43
- r[t] = o([r[t], ...i.allOf], p + 1);
44
- else if (i.type === "array" && i.items)
45
- r[t] = {
46
- ...r[t],
45
+ if (r.allOf)
46
+ e[t] = n([e[t], ...r.allOf], void 0, p + 1);
47
+ else if (r.type === "array" && r.items)
48
+ e[t] = {
49
+ ...e[t],
47
50
  type: "array",
48
- items: O(r[t].items || {}, i.items, p + 1)
51
+ items: d(e[t].items || {}, r.items, p + 1)
49
52
  };
50
53
  else {
51
- const l = r[t].properties || i.properties ? n(r[t].properties || {}, i.properties || {}, p + 1) : void 0;
52
- r[t] = {
53
- ...r[t],
54
- ...i
55
- }, l && (r[t].properties = l);
54
+ const s = e[t].properties || r.properties ? l(e[t].properties || {}, r.properties || {}, p + 1) : void 0;
55
+ e[t] = {
56
+ ...e[t],
57
+ ...r
58
+ }, s && (e[t].properties = s);
56
59
  }
57
- }), r;
60
+ }), e;
58
61
  }
59
- function O(f, e, p = 0) {
62
+ function d(f, i, p = 0) {
60
63
  if (p >= 20)
61
64
  return f;
62
- if (f.allOf || e.allOf) {
63
- const t = [...f.allOf || [f], ...e.allOf || [e]];
64
- return o(t, p + 1);
65
+ if (f.allOf || i.allOf) {
66
+ const t = [...f.allOf || [f], ...i.allOf || [i]];
67
+ return n(t, void 0, p + 1);
65
68
  }
66
- const r = {
69
+ const e = {
67
70
  ...f,
68
- ...e
71
+ ...i
69
72
  };
70
- return (r.properties || e.properties) && (r.properties = n(r.properties || {}, e.properties || {}, p + 1)), r;
73
+ return f.properties && i.properties && (e.properties = l(f.properties, i.properties, p + 1)), e;
71
74
  }
72
- const m = (f, e, p = 0) => {
75
+ const O = (f, i, p = 0) => {
73
76
  if (p >= 20)
74
77
  return f;
75
- const r = typeof f == "object" ? { ...f } : {};
76
- return e.required && Array.isArray(e.required) && (r.required = [...f.required || [], ...e.required]), e.type && !f.type && (r.type = e.type), e.title && !f.title && (r.title = e.title), e.name && !f.name && (r.name = e.name), e.description && !f.description && (r.description = e.description), ["oneOf", "anyOf"].forEach((t) => {
77
- const i = e[t];
78
- i && i.forEach((s) => {
79
- s.properties && (r.properties = n(r.properties || {}, s.properties, p + 1));
78
+ const e = typeof f == "object" ? { ...f } : {};
79
+ if (i.required && Array.isArray(i.required)) {
80
+ const t = f.required || [], r = i.required;
81
+ e.required = [.../* @__PURE__ */ new Set([...t, ...r])];
82
+ }
83
+ return i.type && !f.type && (e.type = i.type), i.title && !f.title && (e.title = i.title), i.name && !f.name && (e.name = i.name), i.description && !f.description && (e.description = i.description), i.properties && (e.properties = l(e.properties || {}, i.properties, p + 1)), ["oneOf", "anyOf"].forEach((t) => {
84
+ const r = i[t];
85
+ r && r.forEach((o) => {
86
+ o.properties && (e.properties = l(e.properties || {}, o.properties, p + 1));
80
87
  });
81
- }), r;
88
+ }), e;
82
89
  };
83
90
  export {
84
- o as mergeAllOfSchemas
91
+ n as mergeAllOfSchemas
85
92
  };
@@ -1 +1 @@
1
- {"version":3,"file":"optimize-value-for-display.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/optimize-value-for-display.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAE9D,eAAO,MAAM,YAAY,EAAE,kBAAkB,EAAuC,CAAA;AAEpF;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAuEzG"}
1
+ {"version":3,"file":"optimize-value-for-display.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/optimize-value-for-display.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAE9D,eAAO,MAAM,YAAY,EAAE,kBAAkB,EAAuC,CAAA;AAEpF;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CA2GzG"}
@@ -1,30 +1,34 @@
1
1
  import { mergeAllOfSchemas as y } from "./merge-all-of-schemas.js";
2
- const m = ["oneOf", "anyOf", "allOf", "not"];
3
- function O(i) {
4
- var p;
5
- if (!i || typeof i != "object")
6
- return i;
7
- let r = { ...i };
8
- const o = m.find((t) => r == null ? void 0 : r[t]);
2
+ const d = ["oneOf", "anyOf", "allOf", "not"];
3
+ function b(e) {
4
+ var O;
5
+ if (!e || typeof e != "object")
6
+ return e;
7
+ let r = { ...e };
8
+ const o = d.find((t) => r == null ? void 0 : r[t]);
9
9
  if (!o || o === "not")
10
10
  return r;
11
- const c = r == null ? void 0 : r[o];
12
- if (!Array.isArray(c))
11
+ const s = r == null ? void 0 : r[o];
12
+ if (!Array.isArray(s))
13
13
  return r;
14
- const l = c.map((t) => {
14
+ const i = { ...r };
15
+ delete i[o], delete i.nullable;
16
+ const u = Object.keys(i).length > 0, c = (o === "oneOf" || o === "anyOf") && (s.some((t) => t.allOf) || u), p = s.map((t) => {
15
17
  if (t.allOf && Array.isArray(t.allOf)) {
16
- const s = y(t.allOf);
17
- return Object.keys(t).forEach((f) => {
18
- !m.includes(f) && !(f in s) && (s[f] = t[f]);
19
- }), s;
18
+ let l = y(t.allOf);
19
+ return c && (l = y(t.allOf, i)), Object.keys(t).forEach((n) => {
20
+ !d.includes(n) && !(n in l) && (l[n] = t[n]);
21
+ }), l;
20
22
  }
21
- return t;
23
+ return c && !t.allOf ? { ...i, ...t } : t;
22
24
  });
23
- l.some((t) => t.type === "null") && (r.nullable = !0);
24
- const n = l.filter((t) => t.type !== "null");
25
- return n.length === 1 && (r != null && r[o]) ? (r = { ...r, ...n[0] }, r == null || delete r[o], r) : (Array.isArray(r == null ? void 0 : r[o]) && ((p = r == null ? void 0 : r[o]) == null ? void 0 : p.length) > 1 && (r[o] = n), r);
25
+ p.some((t) => t.type === "null") && (r.nullable = !0);
26
+ const f = p.filter((t) => t.type !== "null");
27
+ return f.length === 1 && (r != null && r[o]) ? (r = { ...r, ...f[0] }, r == null || delete r[o], r) : c ? (r = {
28
+ [o]: f
29
+ }, r.nullable && (r.nullable = !0), r) : (Array.isArray(r == null ? void 0 : r[o]) && ((O = r == null ? void 0 : r[o]) == null ? void 0 : O.length) > 1 && (r[o] = f), r);
26
30
  }
27
31
  export {
28
- m as compositions,
29
- O as optimizeValueForDisplay
32
+ d as compositions,
33
+ b as optimizeValueForDisplay
30
34
  };
@@ -25,5 +25,5 @@ export declare function hasName(name: string | null): boolean;
25
25
  /**
26
26
  * Choose the schemas to display in composition panel
27
27
  */
28
- export declare function getCompositionDisplay(baseSchemas: OpenAPIV3_1.SchemaObject[], compositionSchemas: OpenAPIV3_1.SchemaObject[], schemas?: Schemas): OpenAPIV3_1.SchemaObject[];
28
+ export declare function getCompositionDisplay(baseSchemas: OpenAPIV3_1.SchemaObject[], compositionSchemas: OpenAPIV3_1.SchemaObject[], _schemas?: Schemas): OpenAPIV3_1.SchemaObject[];
29
29
  //# sourceMappingURL=schema-name.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-name.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAGxD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,GAAG,MAAM,GAAG,IAAI,CAyBtF;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAwB3G;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAE3E;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,OAAO,CAAC,EAAE,OAAO,EACjB,cAAc,UAAQ,EACtB,0BAA0B,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,MAAM,GAAG,IAAI,GAC7E,MAAM,GAAG,IAAI,CAmDf;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAgBpD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,WAAW,CAAC,YAAY,EAAE,EACvC,kBAAkB,EAAE,WAAW,CAAC,YAAY,EAAE,EAC9C,OAAO,CAAC,EAAE,OAAO,GAChB,WAAW,CAAC,YAAY,EAAE,CA0B5B"}
1
+ {"version":3,"file":"schema-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-name.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAGxD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,GAAG,MAAM,GAAG,IAAI,CAyBtF;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAwB3G;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAE3E;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,OAAO,CAAC,EAAE,OAAO,EACjB,cAAc,UAAQ,EACtB,0BAA0B,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,MAAM,GAAG,IAAI,GAC7E,MAAM,GAAG,IAAI,CAmDf;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAgBpD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,WAAW,CAAC,YAAY,EAAE,EACvC,kBAAkB,EAAE,WAAW,CAAC,YAAY,EAAE,EAC9C,QAAQ,CAAC,EAAE,OAAO,GACjB,WAAW,CAAC,YAAY,EAAE,CA0B5B"}